conductor-remote 1.108.0 → 1.108.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/{PierrePatch-DF-STc4J.js → PierrePatch-Cugc0r1i.js} +1 -1
- package/dist/assets/index-ByreP_8T.css +1 -0
- package/dist/assets/index-SstyV8SS.js +59 -0
- package/dist/index.html +2 -2
- package/dist/licenses/vscode-icons.txt +25 -0
- package/dist/sw.js +1 -1
- package/package.json +2 -1
- package/dist/assets/index-DM7eCDXg.css +0 -1
- package/dist/assets/index-DWbWwEOp.js +0 -59
- package/dist/licenses/vscode-seti.txt +0 -48
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))i(l);new MutationObserver(l=>{for(const o of l)if(o.type==="childList")for(const u of o.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&i(u)}).observe(document,{childList:!0,subtree:!0});function r(l){const o={};return l.integrity&&(o.integrity=l.integrity),l.referrerPolicy&&(o.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?o.credentials="include":l.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function i(l){if(l.ep)return;l.ep=!0;const o=r(l);fetch(l.href,o)}})();function no(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var yx={exports:{}},Fl={};var Fm;function Ab(){if(Fm)return Fl;Fm=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function r(i,l,o){var u=null;if(o!==void 0&&(u=""+o),l.key!==void 0&&(u=""+l.key),"key"in l){o={};for(var d in l)d!=="key"&&(o[d]=l[d])}else o=l;return l=o.ref,{$$typeof:e,type:i,key:u,ref:l!==void 0?l:null,props:o}}return Fl.Fragment=t,Fl.jsx=r,Fl.jsxs=r,Fl}var Sm;function Bb(){return Sm||(Sm=1,yx.exports=Ab()),yx.exports}var x=Bb(),ro=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(){}},Db=class extends ro{#e;#t;#n;constructor(){super(),this.#n=e=>{if(typeof window<"u"&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(t=>{typeof t=="boolean"?this.setFocused(t):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#e=="boolean"?this.#e:globalThis.document?.visibilityState!=="hidden"}},qd=new Db,wb={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},Fb=class{#e=wb;#t=!1;setTimeoutProvider(e){this.#e=e}setTimeout(e,t){return this.#e.setTimeout(e,t)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,t){return this.#e.setInterval(e,t)}clearInterval(e){this.#e.clearInterval(e)}},Si=new Fb;function Sb(e){setTimeout(e,0)}var Nb=typeof window>"u"||"Deno"in globalThis;function Xn(){}function _b(e,t){return typeof e=="function"?e(t):e}function sd(e){return typeof e=="number"&&e>=0&&e!==1/0}function a8(e,t){return Math.max(e+(t||0)-Date.now(),0)}function ti(e,t){return typeof e=="function"?e(t):e}function cr(e,t){return typeof e=="function"?e(t):e}function Nm(e,t){const{type:r="all",exact:i,fetchStatus:l,predicate:o,queryKey:u,stale:d}=e;if(u){if(i){if(t.queryHash!==Gd(u,t.options))return!1}else if(!Vl(t.queryKey,u))return!1}if(r!=="all"){const f=t.isActive();if(r==="active"&&!f||r==="inactive"&&f)return!1}return!(typeof d=="boolean"&&t.isStale()!==d||l&&l!==t.state.fetchStatus||o&&!o(t))}function _m(e,t){const{exact:r,status:i,predicate:l,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(r){if(Gl(t.options.mutationKey)!==Gl(o))return!1}else if(!Vl(t.options.mutationKey,o))return!1}return!(i&&t.state.status!==i||l&&!l(t))}function Gd(e,t){return(t?.queryKeyHashFn||Gl)(e)}function Gl(e){return JSON.stringify(e,(t,r)=>od(r)?Object.keys(r).sort().reduce((i,l)=>(i[l]=r[l],i),{}):r)}function Vl(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(r=>Vl(e[r],t[r])):!1}var Mb=Object.prototype.hasOwnProperty;function i8(e,t,r=0){if(e===t)return e;if(r>500)return t;const i=Mm(e)&&Mm(t);if(!i&&!(od(e)&&od(t)))return t;const o=(i?e:Object.keys(e)).length,u=i?t:Object.keys(t),d=u.length,f=i?new Array(d):{};let h=0;for(let m=0;m<d;m++){const p=i?m:u[m],y=e[p],b=t[p];if(y===b){f[p]=y,(i?m<o:Mb.call(e,p))&&h++;continue}if(y===null||b===null||typeof y!="object"||typeof b!="object"){f[p]=b;continue}const C=i8(y,b,r+1);f[p]=C,C===y&&h++}return o===d&&h===o?e:f}function ld(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e)if(e[r]!==t[r])return!1;return!0}function Mm(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function od(e){if(!jm(e))return!1;const t=e.constructor;if(t===void 0)return!0;const r=t.prototype;return!(!jm(r)||!r.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function jm(e){return Object.prototype.toString.call(e)==="[object Object]"}function jb(e){return new Promise(t=>{Si.setTimeout(t,e)})}function cd(e,t,r){return typeof r.structuralSharing=="function"?r.structuralSharing(e,t):r.structuralSharing!==!1?i8(e,t):t}function Tb(e){return e}function Rb(e,t,r=0){const i=[...e,t];return r&&i.length>r?i.slice(1):i}function Ob(e,t,r=0){const i=[t,...e];return r&&i.length>r?i.slice(0,-1):i}var Vd=Symbol();function s8(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===Vd?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function l8(e,t){return typeof e=="function"?e(...t):!!e}function zb(e,t,r){let i=!1,l;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(l??=t(),i||(i=!0,l.aborted?r():l.addEventListener("abort",r,{once:!0})),l)}),e}var Ql=(()=>{let e=()=>Nb;return{isServer(){return e()},setIsServer(t){e=t}}})();function ud(){let e,t;const r=new Promise((l,o)=>{e=l,t=o});r.status="pending",r.catch(()=>{});function i(l){Object.assign(r,l),delete r.resolve,delete r.reject}return r.resolve=l=>{i({status:"fulfilled",value:l}),e(l)},r.reject=l=>{i({status:"rejected",reason:l}),t(l)},r}var Lb=Sb;function Pb(){let e=[],t=0,r=d=>{d()},i=d=>{d()},l=Lb;const o=d=>{t?e.push(d):l(()=>{r(d)})},u=()=>{const d=e;e=[],d.length&&l(()=>{i(()=>{d.forEach(f=>{r(f)})})})};return{batch:d=>{let f;t++;try{f=d()}finally{t--,t||u()}return f},batchCalls:d=>(...f)=>{o(()=>{d(...f)})},schedule:o,setNotifyFunction:d=>{r=d},setBatchNotifyFunction:d=>{i=d},setScheduler:d=>{l=d}}}var Nn=Pb(),Ib=class extends ro{#e=!0;#t;#n;constructor(){super(),this.#n=e=>{if(typeof window<"u"&&window.addEventListener){const t=()=>e(!0),r=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",r)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#e!==e&&(this.#e=e,this.listeners.forEach(r=>{r(e)}))}isOnline(){return this.#e}},W0=new Ib;function Ub(e){return Math.min(1e3*2**e,3e4)}function o8(e){return(e??"online")==="online"?W0.isOnline():!0}var xd=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function c8(e){let t=!1,r=0,i;const l=ud(),o=()=>l.status!=="pending",u=k=>{if(!o()){const v=new xd(k);y(v),e.onCancel?.(v)}},d=()=>{t=!0},f=()=>{t=!1},h=()=>qd.isFocused()&&(e.networkMode==="always"||W0.isOnline())&&e.canRun(),m=()=>o8(e.networkMode)&&e.canRun(),p=k=>{o()||(i?.(),l.resolve(k))},y=k=>{o()||(i?.(),l.reject(k))},b=()=>new Promise(k=>{i=v=>{(o()||h())&&k(v)},e.onPause?.()}).then(()=>{i=void 0,o()||e.onContinue?.()}),C=()=>{if(o())return;let k;const v=r===0?e.initialPromise:void 0;try{k=v??e.fn()}catch(A){k=Promise.reject(A)}Promise.resolve(k).then(p).catch(A=>{if(o())return;const F=e.retry??(Ql.isServer()?0:3),N=e.retryDelay??Ub,_=typeof N=="function"?N(r,A):N,S=F===!0||typeof F=="number"&&r<F||typeof F=="function"&&F(r,A);if(t||!S){y(A);return}r++,e.onFail?.(r,A),jb(_).then(()=>h()?void 0:b()).then(()=>{t?y(A):C()})})};return{promise:l,status:()=>l.status,cancel:u,continue:()=>(i?.(),l),cancelRetry:d,continueRetry:f,canStart:m,start:()=>(m()?C():b().then(C),l)}}var u8=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),sd(this.gcTime)&&(this.#e=Si.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Ql.isServer()?1/0:300*1e3))}clearGcTimeout(){this.#e!==void 0&&(Si.clearTimeout(this.#e),this.#e=void 0)}};function $b(e){return{onFetch:(t,r)=>{const i=t.options,l=t.fetchOptions?.meta?.fetchMore?.direction,o=t.state.data?.pages||[],u=t.state.data?.pageParams||[];let d={pages:[],pageParams:[]},f=0;const h=async()=>{let m=!1;const p=C=>{zb(C,()=>t.signal,()=>m=!0)},y=s8(t.options,t.fetchOptions),b=async(C,k,v)=>{if(m)return Promise.reject(t.signal.reason);if(k==null&&C.pages.length)return Promise.resolve(C);const F=(()=>{const w={client:t.client,queryKey:t.queryKey,pageParam:k,direction:v?"backward":"forward",meta:t.options.meta};return p(w),w})(),N=await y(F),{maxPages:_}=t.options,S=v?Ob:Rb;return{pages:S(C.pages,N,_),pageParams:S(C.pageParams,k,_)}};if(l&&o.length){const C=l==="backward",k=C?Hb:Tm,v={pages:o,pageParams:u},A=k(i,v);d=await b(v,A,C)}else{const C=e??o.length;do{const k=f===0?u[0]??i.initialPageParam:Tm(i,d);if(f>0&&k==null)break;d=await b(d,k),f++}while(f<C)}return d};t.options.persister?t.fetchFn=()=>t.options.persister?.(h,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},r):t.fetchFn=h}}}function Tm(e,{pages:t,pageParams:r}){const i=t.length-1;return t.length>0?e.getNextPageParam(t[i],t,r[i],r):void 0}function Hb(e,{pages:t,pageParams:r}){return t.length>0?e.getPreviousPageParam?.(t[0],t,r[0],r):void 0}var qb=class extends u8{#e;#t;#n;#r;#i;#a;#l;#s;constructor(e){super(),this.#s=!1,this.#l=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#i=e.client,this.#r=this.#i.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#t=Om(this.options),this.state=e.state??this.#t,this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return this.#e}get promise(){return this.#a?.promise}setOptions(e){if(this.options={...this.#l,...e},e?._type&&(this.#e=e._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const t=Om(this.options);t.data!==void 0&&(this.setState(Rm(t.data,t.dataUpdatedAt)),this.#t=t)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#r.remove(this)}setData(e,t){const r=cd(this.state.data,e,this.options);return this.#o({data:r,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),r}setState(e){this.#o({type:"setState",state:e})}cancel(e){const t=this.#a?.promise;return this.#a?.cancel(e),t?t.then(Xn).catch(Xn):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#t}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(e=>cr(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Vd||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>ti(e.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e==="static"?!1:this.state.isInvalidated?!0:!a8(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(t=>t.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#a?.continue()}onOnline(){this.observers.find(t=>t.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#a?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#r.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#a&&(this.#s||this.#u()?this.#a.cancel({revert:!0}):this.#a.cancelRetry()),this.scheduleGc()),this.#r.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}#u(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"}invalidate(){this.state.isInvalidated||this.#o({type:"invalidate"})}async fetch(e,t){if(this.state.fetchStatus!=="idle"&&this.#a?.status()!=="rejected"){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#a)return this.#a.continueRetry(),this.#a.promise}if(e&&this.setOptions(e),!this.options.queryFn){const f=this.observers.find(h=>h.options.queryFn);f&&this.setOptions(f.options)}const r=new AbortController,i=f=>{Object.defineProperty(f,"signal",{enumerable:!0,get:()=>(this.#s=!0,r.signal)})},l=()=>{const f=s8(this.options,t),m=(()=>{const p={client:this.#i,queryKey:this.queryKey,meta:this.meta};return i(p),p})();return this.#s=!1,this.options.persister?this.options.persister(f,m,this):f(m)},u=(()=>{const f={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#i,state:this.state,fetchFn:l};return i(f),f})();(this.#e==="infinite"?$b(this.options.pages):this.options.behavior)?.onFetch(u,this),this.#n=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==u.fetchOptions?.meta)&&this.#o({type:"fetch",meta:u.fetchOptions?.meta}),this.#a=c8({initialPromise:t?.initialPromise,fn:u.fetchFn,onCancel:f=>{f instanceof xd&&f.revert&&this.setState({...this.#n,fetchStatus:"idle"}),r.abort()},onFail:(f,h)=>{this.#o({type:"failed",failureCount:f,error:h})},onPause:()=>{this.#o({type:"pause"})},onContinue:()=>{this.#o({type:"continue"})},retry:u.options.retry,retryDelay:u.options.retryDelay,networkMode:u.options.networkMode,canRun:()=>!0});try{const f=await this.#a.start();if(f===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(f),this.#r.config.onSuccess?.(f,this),this.#r.config.onSettled?.(f,this.state.error,this),f}catch(f){if(f instanceof xd){if(f.silent)return this.#a.promise;if(f.revert){if(this.state.data===void 0)throw f;return this.state.data}}throw this.#o({type:"error",error:f}),this.#r.config.onError?.(f,this),this.#r.config.onSettled?.(this.state.data,f,this),f}finally{this.scheduleGc()}}#o(e){const t=r=>{switch(e.type){case"failed":return{...r,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...x8(r.data,this.options),fetchMeta:e.meta??null};case"success":const i={...r,...Rm(e.data,e.dataUpdatedAt),dataUpdateCount:r.dataUpdateCount+1,...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#n=e.manual?i:void 0,i;case"error":const l=e.error;return{...r,error:l,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:l,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...e.state}}};this.state=t(this.state),Nn.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),this.#r.notify({query:this,type:"updated",action:e})})}};function x8(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:o8(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function Rm(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function Om(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,r=t!==void 0,i=r?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?i??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var Gb=class extends ro{constructor(e,t){super(),this.options=t,this.#e=e,this.#s=null,this.#l=ud(),this.bindMethods(),this.setOptions(t)}#e;#t=void 0;#n=void 0;#r=void 0;#i;#a;#l;#s;#u;#o;#h;#x;#d;#c;#p=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),zm(this.#t,this.options)?this.#f():this.updateResult(),this.#y())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return dd(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return dd(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#b(),this.#C(),this.#t.removeObserver(this)}setOptions(e){const t=this.options,r=this.#t;if(this.options=this.#e.defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof cr(this.options.enabled,this.#t)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#v(),this.#t.setOptions(this.options),t._defaulted&&!ld(this.options,t)&&this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#t,observer:this});const i=this.hasListeners();i&&Lm(this.#t,r,this.options,t)&&this.#f(),this.updateResult(),i&&(this.#t!==r||cr(this.options.enabled,this.#t)!==cr(t.enabled,this.#t)||ti(this.options.staleTime,this.#t)!==ti(t.staleTime,this.#t))&&this.#m();const l=this.#g();i&&(this.#t!==r||cr(this.options.enabled,this.#t)!==cr(t.enabled,this.#t)||l!==this.#c)&&this.#E(l)}getOptimisticResult(e){const t=this.#e.getQueryCache().build(this.#e,e),r=this.createResult(t,e);return Qb(this,r)&&(this.#r=r,this.#a=this.options,this.#i=this.#t.state),r}getCurrentResult(){return this.#r}trackResult(e,t){return new Proxy(e,{get:(r,i)=>(this.trackProp(i),t?.(i),i==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&this.#l.status==="pending"&&this.#l.reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(r,i))})}trackProp(e){this.#p.add(e)}getCurrentQuery(){return this.#t}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const t=this.#e.defaultQueryOptions(e),r=this.#e.getQueryCache().build(this.#e,t);return r.fetch().then(()=>this.createResult(r,t))}fetch(e){return this.#f({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#r))}#f(e){this.#v();let t=this.#t.fetch(this.options,e);return e?.throwOnError||(t=t.catch(Xn)),t}#m(){this.#b();const e=ti(this.options.staleTime,this.#t);if(Ql.isServer()||this.#r.isStale||!sd(e))return;const r=a8(this.#r.dataUpdatedAt,e)+1;this.#x=Si.setTimeout(()=>{this.#r.isStale||this.updateResult()},r)}#g(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#E(e){this.#C(),this.#c=e,!(Ql.isServer()||cr(this.options.enabled,this.#t)===!1||!sd(this.#c)||this.#c===0)&&(this.#d=Si.setInterval(()=>{(this.options.refetchIntervalInBackground||qd.isFocused())&&this.#f()},this.#c))}#y(){this.#m(),this.#E(this.#g())}#b(){this.#x!==void 0&&(Si.clearTimeout(this.#x),this.#x=void 0)}#C(){this.#d!==void 0&&(Si.clearInterval(this.#d),this.#d=void 0)}createResult(e,t){const r=this.#t,i=this.options,l=this.#r,o=this.#i,u=this.#a,f=e!==r?e.state:this.#n,{state:h}=e;let m={...h},p=!1,y;if(t._optimisticResults){const z=this.hasListeners(),P=!z&&zm(e,t),T=z&&Lm(e,r,t,i);(P||T)&&(m={...m,...x8(h.data,e.options)}),t._optimisticResults==="isRestoring"&&(m.fetchStatus="idle")}let{error:b,errorUpdatedAt:C,status:k}=m;y=m.data;let v=!1;if(t.placeholderData!==void 0&&y===void 0&&k==="pending"){let z;l?.isPlaceholderData&&t.placeholderData===u?.placeholderData?(z=l.data,v=!0):z=typeof t.placeholderData=="function"?t.placeholderData(this.#h?.state.data,this.#h):t.placeholderData,z!==void 0&&(k="success",y=cd(l?.data,z,t),p=!0)}if(t.select&&y!==void 0&&!v)if(l&&y===o?.data&&t.select===this.#u)y=this.#o;else try{this.#u=t.select,y=t.select(y),y=cd(l?.data,y,t),this.#o=y,this.#s=null}catch(z){this.#s=z}this.#s&&(b=this.#s,y=this.#o,C=Date.now(),k="error");const A=m.fetchStatus==="fetching",F=k==="pending",N=k==="error",_=F&&A,S=y!==void 0,O={status:k,fetchStatus:m.fetchStatus,isPending:F,isSuccess:k==="success",isError:N,isInitialLoading:_,isLoading:_,data:y,dataUpdatedAt:m.dataUpdatedAt,error:b,errorUpdatedAt:C,failureCount:m.fetchFailureCount,failureReason:m.fetchFailureReason,errorUpdateCount:m.errorUpdateCount,isFetched:e.isFetched(),isFetchedAfterMount:m.dataUpdateCount>f.dataUpdateCount||m.errorUpdateCount>f.errorUpdateCount,isFetching:A,isRefetching:A&&!F,isLoadingError:N&&!S,isPaused:m.fetchStatus==="paused",isPlaceholderData:p,isRefetchError:N&&S,isStale:Qd(e,t),refetch:this.refetch,promise:this.#l,isEnabled:cr(t.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){const z=O.data!==void 0,P=O.status==="error"&&!z,T=ae=>{P?ae.reject(O.error):z&&ae.resolve(O.data)},$=()=>{const ae=this.#l=O.promise=ud();T(ae)},G=this.#l;switch(G.status){case"pending":e.queryHash===r.queryHash&&T(G);break;case"fulfilled":(P||O.data!==G.value)&&$();break;case"rejected":(!P||O.error!==G.reason)&&$();break}}return O}updateResult(){const e=this.#r,t=this.createResult(this.#t,this.options);if(this.#i=this.#t.state,this.#a=this.options,this.#i.data!==void 0&&(this.#h=this.#t),ld(t,e))return;this.#r=t;const r=()=>{if(!e)return!0;const{notifyOnChangeProps:i}=this.options,l=typeof i=="function"?i():i;if(l==="all"||!l&&!this.#p.size)return!0;const o=new Set(l??this.#p);return this.options.throwOnError&&o.add("error"),Object.keys(this.#r).some(u=>{const d=u;return this.#r[d]!==e[d]&&o.has(d)})};this.#k({listeners:r()})}#v(){const e=this.#e.getQueryCache().build(this.#e,this.options);if(e===this.#t)return;const t=this.#t;this.#t=e,this.#n=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#y()}#k(e){Nn.batch(()=>{e.listeners&&this.listeners.forEach(t=>{t(this.#r)}),this.#e.getQueryCache().notify({query:this.#t,type:"observerResultsUpdated"})})}};function Vb(e,t){return cr(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&cr(t.retryOnMount,e)===!1)}function zm(e,t){return Vb(e,t)||e.state.data!==void 0&&dd(e,t,t.refetchOnMount)}function dd(e,t,r){if(cr(t.enabled,e)!==!1&&ti(t.staleTime,e)!=="static"){const i=typeof r=="function"?r(e):r;return i==="always"||i!==!1&&Qd(e,t)}return!1}function Lm(e,t,r,i){return(e!==t||cr(i.enabled,e)===!1)&&(!r.suspense||e.state.status!=="error")&&Qd(e,r)}function Qd(e,t){return cr(t.enabled,e)!==!1&&e.isStaleByTime(ti(t.staleTime,e))}function Qb(e,t){return!ld(e.getCurrentResult(),t)}var Kb=class extends u8{#e;#t;#n;#r;constructor(e){super(),this.#e=e.client,this.mutationId=e.mutationId,this.#n=e.mutationCache,this.#t=[],this.state=e.state||Yb(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#t.includes(e)||(this.#t.push(e),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(t=>t!==e),this.scheduleGc(),this.#n.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#t.length||(this.state.status==="pending"?this.scheduleGc():this.#n.remove(this))}continue(){return this.#r?.continue()??this.execute(this.state.variables)}async execute(e){const t=()=>{this.#i({type:"continue"})},r={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#r=c8({fn:()=>this.options.mutationFn?this.options.mutationFn(e,r):Promise.reject(new Error("No mutationFn found")),onFail:(o,u)=>{this.#i({type:"failed",failureCount:o,error:u})},onPause:()=>{this.#i({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});const i=this.state.status==="pending",l=!this.#r.canStart();try{if(i)t();else{this.#i({type:"pending",variables:e,isPaused:l}),this.#n.config.onMutate&&await this.#n.config.onMutate(e,this,r);const u=await this.options.onMutate?.(e,r);u!==this.state.context&&this.#i({type:"pending",context:u,variables:e,isPaused:l})}const o=await this.#r.start();return await this.#n.config.onSuccess?.(o,e,this.state.context,this,r),await this.options.onSuccess?.(o,e,this.state.context,r),await this.#n.config.onSettled?.(o,null,this.state.variables,this.state.context,this,r),await this.options.onSettled?.(o,null,e,this.state.context,r),this.#i({type:"success",data:o}),o}catch(o){try{await this.#n.config.onError?.(o,e,this.state.context,this,r)}catch(u){Promise.reject(u)}try{await this.options.onError?.(o,e,this.state.context,r)}catch(u){Promise.reject(u)}try{await this.#n.config.onSettled?.(void 0,o,this.state.variables,this.state.context,this,r)}catch(u){Promise.reject(u)}try{await this.options.onSettled?.(void 0,o,e,this.state.context,r)}catch(u){Promise.reject(u)}throw this.#i({type:"error",error:o}),o}finally{this.#n.runNext(this)}}#i(e){const t=r=>{switch(e.type){case"failed":return{...r,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,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{...r,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:e.error,failureCount:r.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=t(this.state),Nn.batch(()=>{this.#t.forEach(r=>{r.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:"updated",action:e})})}};function Yb(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Xb=class extends ro{constructor(e={}){super(),this.config=e,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(e,t,r){const i=new Kb({client:e,mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:r});return this.add(i),i}add(e){this.#e.add(e);const t=w0(e);if(typeof t=="string"){const r=this.#t.get(t);r?r.push(e):this.#t.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#e.delete(e)){const t=w0(e);if(typeof t=="string"){const r=this.#t.get(t);if(r)if(r.length>1){const i=r.indexOf(e);i!==-1&&r.splice(i,1)}else r[0]===e&&this.#t.delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){const t=w0(e);if(typeof t=="string"){const i=this.#t.get(t)?.find(l=>l.state.status==="pending");return!i||i===e}else return!0}runNext(e){const t=w0(e);return typeof t=="string"?this.#t.get(t)?.find(i=>i!==e&&i.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){Nn.batch(()=>{this.#e.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(e){const t={exact:!0,...e};return this.getAll().find(r=>_m(t,r))}findAll(e={}){return this.getAll().filter(t=>_m(e,t))}notify(e){Nn.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){const e=this.getAll().filter(t=>t.state.isPaused);return Nn.batch(()=>Promise.all(e.map(t=>t.continue().catch(Xn))))}};function w0(e){return e.options.scope?.id}var Wb=class extends ro{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,r){const i=t.queryKey,l=t.queryHash??Gd(i,t);let o=this.get(l);return o||(o=new qb({client:e,queryKey:i,queryHash:l,options:e.defaultQueryOptions(t),state:r,defaultOptions:e.getQueryDefaults(i)}),this.add(o)),o}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=this.#e.get(e.queryHash);t&&(e.destroy(),t===e&&this.#e.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){Nn.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){const t={exact:!0,...e};return this.getAll().find(r=>Nm(t,r))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(r=>Nm(e,r)):t}notify(e){Nn.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){Nn.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){Nn.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},Zb=class{#e;#t;#n;#r;#i;#a;#l;#s;constructor(e={}){this.#e=e.queryCache||new Wb,this.#t=e.mutationCache||new Xb,this.#n=e.defaultOptions||{},this.#r=new Map,this.#i=new Map,this.#a=0}mount(){this.#a++,this.#a===1&&(this.#l=qd.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#s=W0.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#a--,this.#a===0&&(this.#l?.(),this.#l=void 0,this.#s?.(),this.#s=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#t.findAll({...e,status:"pending"}).length}getQueryData(e){const t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),r=this.#e.build(this,t),i=r.state.data;return i===void 0?this.fetchQuery(e):(e.revalidateIfStale&&r.isStaleByTime(ti(t.staleTime,r))&&this.prefetchQuery(t),Promise.resolve(i))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:t,state:r})=>{const i=r.data;return[t,i]})}setQueryData(e,t,r){const i=this.defaultQueryOptions({queryKey:e}),o=this.#e.get(i.queryHash)?.state.data,u=_b(t,o);if(u!==void 0)return this.#e.build(this,i).setData(u,{...r,manual:!0})}setQueriesData(e,t,r){return Nn.batch(()=>this.#e.findAll(e).map(({queryKey:i})=>[i,this.setQueryData(i,t,r)]))}getQueryState(e){const t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state}removeQueries(e){const t=this.#e;Nn.batch(()=>{t.findAll(e).forEach(r=>{t.remove(r)})})}resetQueries(e,t){const r=this.#e;return Nn.batch(()=>(r.findAll(e).forEach(i=>{i.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const r={revert:!0,...t},i=Nn.batch(()=>this.#e.findAll(e).map(l=>l.cancel(r)));return Promise.all(i).then(Xn).catch(Xn)}invalidateQueries(e,t={}){return Nn.batch(()=>(this.#e.findAll(e).forEach(r=>{r.invalidate()}),e?.refetchType==="none"?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t)))}refetchQueries(e,t={}){const r={...t,cancelRefetch:t.cancelRefetch??!0},i=Nn.batch(()=>this.#e.findAll(e).filter(l=>!l.isDisabled()&&!l.isStatic()).map(l=>{let o=l.fetch(void 0,r);return r.throwOnError||(o=o.catch(Xn)),l.state.fetchStatus==="paused"?Promise.resolve():o}));return Promise.all(i).then(Xn)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const r=this.#e.build(this,t);return r.isStaleByTime(ti(t.staleTime,r))?r.fetch(t):Promise.resolve(r.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Xn).catch(Xn)}fetchInfiniteQuery(e){return e._type="infinite",this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Xn).catch(Xn)}ensureInfiniteQueryData(e){return e._type="infinite",this.ensureQueryData(e)}resumePausedMutations(){return W0.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,t){this.#r.set(Gl(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...this.#r.values()],r={};return t.forEach(i=>{Vl(e,i.queryKey)&&Object.assign(r,i.defaultOptions)}),r}setMutationDefaults(e,t){this.#i.set(Gl(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...this.#i.values()],r={};return t.forEach(i=>{Vl(e,i.mutationKey)&&Object.assign(r,i.defaultOptions)}),r}defaultQueryOptions(e){if(e._defaulted)return e;const t={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Gd(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===Vd&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},bx={exports:{}},Ze={};var Pm;function Jb(){if(Pm)return Ze;Pm=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),o=Symbol.for("react.consumer"),u=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),p=Symbol.for("react.activity"),y=Symbol.iterator;function b(L){return L===null||typeof L!="object"?null:(L=y&&L[y]||L["@@iterator"],typeof L=="function"?L:null)}var C={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},k=Object.assign,v={};function A(L,V,R){this.props=L,this.context=V,this.refs=v,this.updater=R||C}A.prototype.isReactComponent={},A.prototype.setState=function(L,V){if(typeof L!="object"&&typeof L!="function"&&L!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,L,V,"setState")},A.prototype.forceUpdate=function(L){this.updater.enqueueForceUpdate(this,L,"forceUpdate")};function F(){}F.prototype=A.prototype;function N(L,V,R){this.props=L,this.context=V,this.refs=v,this.updater=R||C}var _=N.prototype=new F;_.constructor=N,k(_,A.prototype),_.isPureReactComponent=!0;var S=Array.isArray;function w(){}var O={H:null,A:null,T:null,S:null},z=Object.prototype.hasOwnProperty;function P(L,V,R){var se=R.ref;return{$$typeof:e,type:L,key:V,ref:se!==void 0?se:null,props:R}}function T(L,V){return P(L.type,V,L.props)}function $(L){return typeof L=="object"&&L!==null&&L.$$typeof===e}function G(L){var V={"=":"=0",":":"=2"};return"$"+L.replace(/[=:]/g,function(R){return V[R]})}var ae=/\/+/g;function ee(L,V){return typeof L=="object"&&L!==null&&L.key!=null?G(""+L.key):V.toString(36)}function K(L){switch(L.status){case"fulfilled":return L.value;case"rejected":throw L.reason;default:switch(typeof L.status=="string"?L.then(w,w):(L.status="pending",L.then(function(V){L.status==="pending"&&(L.status="fulfilled",L.value=V)},function(V){L.status==="pending"&&(L.status="rejected",L.reason=V)})),L.status){case"fulfilled":return L.value;case"rejected":throw L.reason}}throw L}function I(L,V,R,se,be){var W=typeof L;(W==="undefined"||W==="boolean")&&(L=null);var me=!1;if(L===null)me=!0;else switch(W){case"bigint":case"string":case"number":me=!0;break;case"object":switch(L.$$typeof){case e:case t:me=!0;break;case m:return me=L._init,I(me(L._payload),V,R,se,be)}}if(me)return be=be(L),me=se===""?"."+ee(L,0):se,S(be)?(R="",me!=null&&(R=me.replace(ae,"$&/")+"/"),I(be,V,R,"",function(tt){return tt})):be!=null&&($(be)&&(be=T(be,R+(be.key==null||L&&L.key===be.key?"":(""+be.key).replace(ae,"$&/")+"/")+me)),V.push(be)),1;me=0;var Ue=se===""?".":se+":";if(S(L))for(var Be=0;Be<L.length;Be++)se=L[Be],W=Ue+ee(se,Be),me+=I(se,V,R,W,be);else if(Be=b(L),typeof Be=="function")for(L=Be.call(L),Be=0;!(se=L.next()).done;)se=se.value,W=Ue+ee(se,Be++),me+=I(se,V,R,W,be);else if(W==="object"){if(typeof L.then=="function")return I(K(L),V,R,se,be);throw V=String(L),Error("Objects are not valid as a React child (found: "+(V==="[object Object]"?"object with keys {"+Object.keys(L).join(", ")+"}":V)+"). If you meant to render a collection of children, use an array instead.")}return me}function Y(L,V,R){if(L==null)return L;var se=[],be=0;return I(L,se,"","",function(W){return V.call(R,W,be++)}),se}function ie(L){if(L._status===-1){var V=L._result;V=V(),V.then(function(R){(L._status===0||L._status===-1)&&(L._status=1,L._result=R)},function(R){(L._status===0||L._status===-1)&&(L._status=2,L._result=R)}),L._status===-1&&(L._status=0,L._result=V)}if(L._status===1)return L._result.default;throw L._result}var xe=typeof reportError=="function"?reportError:function(L){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var V=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof L=="object"&&L!==null&&typeof L.message=="string"?String(L.message):String(L),error:L});if(!window.dispatchEvent(V))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",L);return}console.error(L)},j={map:Y,forEach:function(L,V,R){Y(L,function(){V.apply(this,arguments)},R)},count:function(L){var V=0;return Y(L,function(){V++}),V},toArray:function(L){return Y(L,function(V){return V})||[]},only:function(L){if(!$(L))throw Error("React.Children.only expected to receive a single React element child.");return L}};return Ze.Activity=p,Ze.Children=j,Ze.Component=A,Ze.Fragment=r,Ze.Profiler=l,Ze.PureComponent=N,Ze.StrictMode=i,Ze.Suspense=f,Ze.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=O,Ze.__COMPILER_RUNTIME={__proto__:null,c:function(L){return O.H.useMemoCache(L)}},Ze.cache=function(L){return function(){return L.apply(null,arguments)}},Ze.cacheSignal=function(){return null},Ze.cloneElement=function(L,V,R){if(L==null)throw Error("The argument must be a React element, but you passed "+L+".");var se=k({},L.props),be=L.key;if(V!=null)for(W in V.key!==void 0&&(be=""+V.key),V)!z.call(V,W)||W==="key"||W==="__self"||W==="__source"||W==="ref"&&V.ref===void 0||(se[W]=V[W]);var W=arguments.length-2;if(W===1)se.children=R;else if(1<W){for(var me=Array(W),Ue=0;Ue<W;Ue++)me[Ue]=arguments[Ue+2];se.children=me}return P(L.type,be,se)},Ze.createContext=function(L){return L={$$typeof:u,_currentValue:L,_currentValue2:L,_threadCount:0,Provider:null,Consumer:null},L.Provider=L,L.Consumer={$$typeof:o,_context:L},L},Ze.createElement=function(L,V,R){var se,be={},W=null;if(V!=null)for(se in V.key!==void 0&&(W=""+V.key),V)z.call(V,se)&&se!=="key"&&se!=="__self"&&se!=="__source"&&(be[se]=V[se]);var me=arguments.length-2;if(me===1)be.children=R;else if(1<me){for(var Ue=Array(me),Be=0;Be<me;Be++)Ue[Be]=arguments[Be+2];be.children=Ue}if(L&&L.defaultProps)for(se in me=L.defaultProps,me)be[se]===void 0&&(be[se]=me[se]);return P(L,W,be)},Ze.createRef=function(){return{current:null}},Ze.forwardRef=function(L){return{$$typeof:d,render:L}},Ze.isValidElement=$,Ze.lazy=function(L){return{$$typeof:m,_payload:{_status:-1,_result:L},_init:ie}},Ze.memo=function(L,V){return{$$typeof:h,type:L,compare:V===void 0?null:V}},Ze.startTransition=function(L){var V=O.T,R={};O.T=R;try{var se=L(),be=O.S;be!==null&&be(R,se),typeof se=="object"&&se!==null&&typeof se.then=="function"&&se.then(w,xe)}catch(W){xe(W)}finally{V!==null&&R.types!==null&&(V.types=R.types),O.T=V}},Ze.unstable_useCacheRefresh=function(){return O.H.useCacheRefresh()},Ze.use=function(L){return O.H.use(L)},Ze.useActionState=function(L,V,R){return O.H.useActionState(L,V,R)},Ze.useCallback=function(L,V){return O.H.useCallback(L,V)},Ze.useContext=function(L){return O.H.useContext(L)},Ze.useDebugValue=function(){},Ze.useDeferredValue=function(L,V){return O.H.useDeferredValue(L,V)},Ze.useEffect=function(L,V){return O.H.useEffect(L,V)},Ze.useEffectEvent=function(L){return O.H.useEffectEvent(L)},Ze.useId=function(){return O.H.useId()},Ze.useImperativeHandle=function(L,V,R){return O.H.useImperativeHandle(L,V,R)},Ze.useInsertionEffect=function(L,V){return O.H.useInsertionEffect(L,V)},Ze.useLayoutEffect=function(L,V){return O.H.useLayoutEffect(L,V)},Ze.useMemo=function(L,V){return O.H.useMemo(L,V)},Ze.useOptimistic=function(L,V){return O.H.useOptimistic(L,V)},Ze.useReducer=function(L,V,R){return O.H.useReducer(L,V,R)},Ze.useRef=function(L){return O.H.useRef(L)},Ze.useState=function(L){return O.H.useState(L)},Ze.useSyncExternalStore=function(L,V,R){return O.H.useSyncExternalStore(L,V,R)},Ze.useTransition=function(){return O.H.useTransition()},Ze.version="19.2.7",Ze}var Im;function Kd(){return Im||(Im=1,bx.exports=Jb()),bx.exports}var D=Kd();const F0=no(D);var d8=D.createContext(void 0),On=e=>{const t=D.useContext(d8);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},e4=({client:e,children:t})=>(D.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),x.jsx(d8.Provider,{value:e,children:t})),f8=D.createContext(!1),t4=()=>D.useContext(f8);f8.Provider;function n4(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var r4=D.createContext(n4()),a4=()=>D.useContext(r4),i4=(e,t,r)=>{const i=r?.state.error&&typeof e.throwOnError=="function"?l8(e.throwOnError,[r.state.error,r]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||i)&&(t.isReset()||(e.retryOnMount=!1))},s4=e=>{D.useEffect(()=>{e.clearReset()},[e])},l4=({result:e,errorResetBoundary:t,throwOnError:r,query:i,suspense:l})=>e.isError&&!t.isReset()&&!e.isFetching&&i&&(l&&e.data===void 0||l8(r,[e.error,i])),o4=e=>{if(e.suspense){const r=l=>l==="static"?l:Math.max(l??1e3,1e3),i=e.staleTime;e.staleTime=typeof i=="function"?(...l)=>r(i(...l)):r(i),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},c4=(e,t)=>e.isLoading&&e.isFetching&&!t,u4=(e,t)=>e?.suspense&&t.isPending,Um=(e,t,r)=>t.fetchOptimistic(e).catch(()=>{r.clearReset()});function x4(e,t,r){const i=t4(),l=a4(),o=On(),u=o.defaultQueryOptions(e);o.getDefaultOptions().queries?._experimental_beforeQuery?.(u);const d=o.getQueryCache().get(u.queryHash),f=e.subscribed!==!1;u._optimisticResults=i?"isRestoring":f?"optimistic":void 0,o4(u),i4(u,l,d),s4(l);const h=!o.getQueryCache().get(u.queryHash),[m]=D.useState(()=>new t(o,u)),p=m.getOptimisticResult(u),y=!i&&f;if(D.useSyncExternalStore(D.useCallback(b=>{const C=y?m.subscribe(Nn.batchCalls(b)):Xn;return m.updateResult(),C},[m,y]),()=>m.getCurrentResult(),()=>m.getCurrentResult()),D.useEffect(()=>{m.setOptions(u)},[u,m]),u4(u,p))throw Um(u,m,l);if(l4({result:p,errorResetBoundary:l,throwOnError:u.throwOnError,query:d,suspense:u.suspense}))throw p.error;return o.getDefaultOptions().queries?._experimental_afterQuery?.(u,p),u.experimental_prefetchInRender&&!Ql.isServer()&&c4(p,i)&&(h?Um(u,m,l):d?.promise)?.catch(Xn).finally(()=>{m.updateResult()}),u.notifyOnChangeProps?p:m.trackResult(p)}function fn(e,t){return x4(e,Gb)}var Cx={exports:{}},Sl={},vx={exports:{}},kx={};var $m;function d4(){return $m||($m=1,(function(e){function t(I,Y){var ie=I.length;I.push(Y);e:for(;0<ie;){var xe=ie-1>>>1,j=I[xe];if(0<l(j,Y))I[xe]=Y,I[ie]=j,ie=xe;else break e}}function r(I){return I.length===0?null:I[0]}function i(I){if(I.length===0)return null;var Y=I[0],ie=I.pop();if(ie!==Y){I[0]=ie;e:for(var xe=0,j=I.length,L=j>>>1;xe<L;){var V=2*(xe+1)-1,R=I[V],se=V+1,be=I[se];if(0>l(R,ie))se<j&&0>l(be,R)?(I[xe]=be,I[se]=ie,xe=se):(I[xe]=R,I[V]=ie,xe=V);else if(se<j&&0>l(be,ie))I[xe]=be,I[se]=ie,xe=se;else break e}}return Y}function l(I,Y){var ie=I.sortIndex-Y.sortIndex;return ie!==0?ie:I.id-Y.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var u=Date,d=u.now();e.unstable_now=function(){return u.now()-d}}var f=[],h=[],m=1,p=null,y=3,b=!1,C=!1,k=!1,v=!1,A=typeof setTimeout=="function"?setTimeout:null,F=typeof clearTimeout=="function"?clearTimeout:null,N=typeof setImmediate<"u"?setImmediate:null;function _(I){for(var Y=r(h);Y!==null;){if(Y.callback===null)i(h);else if(Y.startTime<=I)i(h),Y.sortIndex=Y.expirationTime,t(f,Y);else break;Y=r(h)}}function S(I){if(k=!1,_(I),!C)if(r(f)!==null)C=!0,w||(w=!0,G());else{var Y=r(h);Y!==null&&K(S,Y.startTime-I)}}var w=!1,O=-1,z=5,P=-1;function T(){return v?!0:!(e.unstable_now()-P<z)}function $(){if(v=!1,w){var I=e.unstable_now();P=I;var Y=!0;try{e:{C=!1,k&&(k=!1,F(O),O=-1),b=!0;var ie=y;try{t:{for(_(I),p=r(f);p!==null&&!(p.expirationTime>I&&T());){var xe=p.callback;if(typeof xe=="function"){p.callback=null,y=p.priorityLevel;var j=xe(p.expirationTime<=I);if(I=e.unstable_now(),typeof j=="function"){p.callback=j,_(I),Y=!0;break t}p===r(f)&&i(f),_(I)}else i(f);p=r(f)}if(p!==null)Y=!0;else{var L=r(h);L!==null&&K(S,L.startTime-I),Y=!1}}break e}finally{p=null,y=ie,b=!1}Y=void 0}}finally{Y?G():w=!1}}}var G;if(typeof N=="function")G=function(){N($)};else if(typeof MessageChannel<"u"){var ae=new MessageChannel,ee=ae.port2;ae.port1.onmessage=$,G=function(){ee.postMessage(null)}}else G=function(){A($,0)};function K(I,Y){O=A(function(){I(e.unstable_now())},Y)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(I){I.callback=null},e.unstable_forceFrameRate=function(I){0>I||125<I?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):z=0<I?Math.floor(1e3/I):5},e.unstable_getCurrentPriorityLevel=function(){return y},e.unstable_next=function(I){switch(y){case 1:case 2:case 3:var Y=3;break;default:Y=y}var ie=y;y=Y;try{return I()}finally{y=ie}},e.unstable_requestPaint=function(){v=!0},e.unstable_runWithPriority=function(I,Y){switch(I){case 1:case 2:case 3:case 4:case 5:break;default:I=3}var ie=y;y=I;try{return Y()}finally{y=ie}},e.unstable_scheduleCallback=function(I,Y,ie){var xe=e.unstable_now();switch(typeof ie=="object"&&ie!==null?(ie=ie.delay,ie=typeof ie=="number"&&0<ie?xe+ie:xe):ie=xe,I){case 1:var j=-1;break;case 2:j=250;break;case 5:j=1073741823;break;case 4:j=1e4;break;default:j=5e3}return j=ie+j,I={id:m++,callback:Y,priorityLevel:I,startTime:ie,expirationTime:j,sortIndex:-1},ie>xe?(I.sortIndex=ie,t(h,I),r(f)===null&&I===r(h)&&(k?(F(O),O=-1):k=!0,K(S,ie-xe))):(I.sortIndex=j,t(f,I),C||b||(C=!0,w||(w=!0,G()))),I},e.unstable_shouldYield=T,e.unstable_wrapCallback=function(I){var Y=y;return function(){var ie=y;y=Y;try{return I.apply(this,arguments)}finally{y=ie}}}})(kx)),kx}var Hm;function f4(){return Hm||(Hm=1,vx.exports=d4()),vx.exports}var Ax={exports:{}},Tn={};var qm;function h4(){if(qm)return Tn;qm=1;var e=Kd();function t(f){var h="https://react.dev/errors/"+f;if(1<arguments.length){h+="?args[]="+encodeURIComponent(arguments[1]);for(var m=2;m<arguments.length;m++)h+="&args[]="+encodeURIComponent(arguments[m])}return"Minified React error #"+f+"; visit "+h+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var i={d:{f:r,r:function(){throw Error(t(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},l=Symbol.for("react.portal");function o(f,h,m){var p=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:l,key:p==null?null:""+p,children:f,containerInfo:h,implementation:m}}var u=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function d(f,h){if(f==="font")return"";if(typeof h=="string")return h==="use-credentials"?h:""}return Tn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,Tn.createPortal=function(f,h){var m=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!h||h.nodeType!==1&&h.nodeType!==9&&h.nodeType!==11)throw Error(t(299));return o(f,h,null,m)},Tn.flushSync=function(f){var h=u.T,m=i.p;try{if(u.T=null,i.p=2,f)return f()}finally{u.T=h,i.p=m,i.d.f()}},Tn.preconnect=function(f,h){typeof f=="string"&&(h?(h=h.crossOrigin,h=typeof h=="string"?h==="use-credentials"?h:"":void 0):h=null,i.d.C(f,h))},Tn.prefetchDNS=function(f){typeof f=="string"&&i.d.D(f)},Tn.preinit=function(f,h){if(typeof f=="string"&&h&&typeof h.as=="string"){var m=h.as,p=d(m,h.crossOrigin),y=typeof h.integrity=="string"?h.integrity:void 0,b=typeof h.fetchPriority=="string"?h.fetchPriority:void 0;m==="style"?i.d.S(f,typeof h.precedence=="string"?h.precedence:void 0,{crossOrigin:p,integrity:y,fetchPriority:b}):m==="script"&&i.d.X(f,{crossOrigin:p,integrity:y,fetchPriority:b,nonce:typeof h.nonce=="string"?h.nonce:void 0})}},Tn.preinitModule=function(f,h){if(typeof f=="string")if(typeof h=="object"&&h!==null){if(h.as==null||h.as==="script"){var m=d(h.as,h.crossOrigin);i.d.M(f,{crossOrigin:m,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0})}}else h==null&&i.d.M(f)},Tn.preload=function(f,h){if(typeof f=="string"&&typeof h=="object"&&h!==null&&typeof h.as=="string"){var m=h.as,p=d(m,h.crossOrigin);i.d.L(f,m,{crossOrigin:p,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0,type:typeof h.type=="string"?h.type:void 0,fetchPriority:typeof h.fetchPriority=="string"?h.fetchPriority:void 0,referrerPolicy:typeof h.referrerPolicy=="string"?h.referrerPolicy:void 0,imageSrcSet:typeof h.imageSrcSet=="string"?h.imageSrcSet:void 0,imageSizes:typeof h.imageSizes=="string"?h.imageSizes:void 0,media:typeof h.media=="string"?h.media:void 0})}},Tn.preloadModule=function(f,h){if(typeof f=="string")if(h){var m=d(h.as,h.crossOrigin);i.d.m(f,{as:typeof h.as=="string"&&h.as!=="script"?h.as:void 0,crossOrigin:m,integrity:typeof h.integrity=="string"?h.integrity:void 0})}else i.d.m(f)},Tn.requestFormReset=function(f){i.d.r(f)},Tn.unstable_batchedUpdates=function(f,h){return f(h)},Tn.useFormState=function(f,h,m){return u.H.useFormState(f,h,m)},Tn.useFormStatus=function(){return u.H.useHostTransitionStatus()},Tn.version="19.2.7",Tn}var Gm;function h8(){if(Gm)return Ax.exports;Gm=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Ax.exports=h4(),Ax.exports}var Vm;function p4(){if(Vm)return Sl;Vm=1;var e=f4(),t=Kd(),r=h8();function i(n){var a="https://react.dev/errors/"+n;if(1<arguments.length){a+="?args[]="+encodeURIComponent(arguments[1]);for(var s=2;s<arguments.length;s++)a+="&args[]="+encodeURIComponent(arguments[s])}return"Minified React error #"+n+"; visit "+a+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function l(n){return!(!n||n.nodeType!==1&&n.nodeType!==9&&n.nodeType!==11)}function o(n){var a=n,s=n;if(n.alternate)for(;a.return;)a=a.return;else{n=a;do a=n,(a.flags&4098)!==0&&(s=a.return),n=a.return;while(n)}return a.tag===3?s:null}function u(n){if(n.tag===13){var a=n.memoizedState;if(a===null&&(n=n.alternate,n!==null&&(a=n.memoizedState)),a!==null)return a.dehydrated}return null}function d(n){if(n.tag===31){var a=n.memoizedState;if(a===null&&(n=n.alternate,n!==null&&(a=n.memoizedState)),a!==null)return a.dehydrated}return null}function f(n){if(o(n)!==n)throw Error(i(188))}function h(n){var a=n.alternate;if(!a){if(a=o(n),a===null)throw Error(i(188));return a!==n?null:n}for(var s=n,c=a;;){var g=s.return;if(g===null)break;var E=g.alternate;if(E===null){if(c=g.return,c!==null){s=c;continue}break}if(g.child===E.child){for(E=g.child;E;){if(E===s)return f(g),n;if(E===c)return f(g),a;E=E.sibling}throw Error(i(188))}if(s.return!==c.return)s=g,c=E;else{for(var B=!1,M=g.child;M;){if(M===s){B=!0,s=g,c=E;break}if(M===c){B=!0,c=g,s=E;break}M=M.sibling}if(!B){for(M=E.child;M;){if(M===s){B=!0,s=E,c=g;break}if(M===c){B=!0,c=E,s=g;break}M=M.sibling}if(!B)throw Error(i(189))}}if(s.alternate!==c)throw Error(i(190))}if(s.tag!==3)throw Error(i(188));return s.stateNode.current===s?n:a}function m(n){var a=n.tag;if(a===5||a===26||a===27||a===6)return n;for(n=n.child;n!==null;){if(a=m(n),a!==null)return a;n=n.sibling}return null}var p=Object.assign,y=Symbol.for("react.element"),b=Symbol.for("react.transitional.element"),C=Symbol.for("react.portal"),k=Symbol.for("react.fragment"),v=Symbol.for("react.strict_mode"),A=Symbol.for("react.profiler"),F=Symbol.for("react.consumer"),N=Symbol.for("react.context"),_=Symbol.for("react.forward_ref"),S=Symbol.for("react.suspense"),w=Symbol.for("react.suspense_list"),O=Symbol.for("react.memo"),z=Symbol.for("react.lazy"),P=Symbol.for("react.activity"),T=Symbol.for("react.memo_cache_sentinel"),$=Symbol.iterator;function G(n){return n===null||typeof n!="object"?null:(n=$&&n[$]||n["@@iterator"],typeof n=="function"?n:null)}var ae=Symbol.for("react.client.reference");function ee(n){if(n==null)return null;if(typeof n=="function")return n.$$typeof===ae?null:n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case k:return"Fragment";case A:return"Profiler";case v:return"StrictMode";case S:return"Suspense";case w:return"SuspenseList";case P:return"Activity"}if(typeof n=="object")switch(n.$$typeof){case C:return"Portal";case N:return n.displayName||"Context";case F:return(n._context.displayName||"Context")+".Consumer";case _:var a=n.render;return n=n.displayName,n||(n=a.displayName||a.name||"",n=n!==""?"ForwardRef("+n+")":"ForwardRef"),n;case O:return a=n.displayName||null,a!==null?a:ee(n.type)||"Memo";case z:a=n._payload,n=n._init;try{return ee(n(a))}catch{}}return null}var K=Array.isArray,I=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Y=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ie={pending:!1,data:null,method:null,action:null},xe=[],j=-1;function L(n){return{current:n}}function V(n){0>j||(n.current=xe[j],xe[j]=null,j--)}function R(n,a){j++,xe[j]=n.current,n.current=a}var se=L(null),be=L(null),W=L(null),me=L(null);function Ue(n,a){switch(R(W,a),R(be,n),R(se,null),a.nodeType){case 9:case 11:n=(n=a.documentElement)&&(n=n.namespaceURI)?Wp(n):0;break;default:if(n=a.tagName,a=a.namespaceURI)a=Wp(a),n=Zp(a,n);else switch(n){case"svg":n=1;break;case"math":n=2;break;default:n=0}}V(se),R(se,n)}function Be(){V(se),V(be),V(W)}function tt(n){n.memoizedState!==null&&R(me,n);var a=se.current,s=Zp(a,n.type);a!==s&&(R(be,n),R(se,s))}function ct(n){be.current===n&&(V(se),V(be)),me.current===n&&(V(me),Al._currentValue=ie)}var we,Nt;function Fe(n){if(we===void 0)try{throw Error()}catch(s){var a=s.stack.trim().match(/\n( *(at )?)/);we=a&&a[1]||"",Nt=-1<s.stack.indexOf(`
|
|
2
|
-
at`)?" (<anonymous>)":-1<s.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
3
|
-
`+we+n+Nt}var ne=!1;function Oe(n,a){if(!n||ne)return"";ne=!0;var s=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var c={DetermineComponentFrameRoot:function(){try{if(a){var fe=function(){throw Error()};if(Object.defineProperty(fe.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(fe,[])}catch(oe){var re=oe}Reflect.construct(n,[],fe)}else{try{fe.call()}catch(oe){re=oe}n.call(fe.prototype)}}else{try{throw Error()}catch(oe){re=oe}(fe=n())&&typeof fe.catch=="function"&&fe.catch(function(){})}}catch(oe){if(oe&&re&&typeof oe.stack=="string")return[oe.stack,re.stack]}return[null,null]}};c.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var g=Object.getOwnPropertyDescriptor(c.DetermineComponentFrameRoot,"name");g&&g.configurable&&Object.defineProperty(c.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var E=c.DetermineComponentFrameRoot(),B=E[0],M=E[1];if(B&&M){var U=B.split(`
|
|
4
|
-
`),te=M.split(`
|
|
5
|
-
`);for(g=c=0;c<U.length&&!U[c].includes("DetermineComponentFrameRoot");)c++;for(;g<te.length&&!te[g].includes("DetermineComponentFrameRoot");)g++;if(c===U.length||g===te.length)for(c=U.length-1,g=te.length-1;1<=c&&0<=g&&U[c]!==te[g];)g--;for(;1<=c&&0<=g;c--,g--)if(U[c]!==te[g]){if(c!==1||g!==1)do if(c--,g--,0>g||U[c]!==te[g]){var ce=`
|
|
6
|
-
`+U[c].replace(" at new "," at ");return n.displayName&&ce.includes("<anonymous>")&&(ce=ce.replace("<anonymous>",n.displayName)),ce}while(1<=c&&0<=g);break}}}finally{ne=!1,Error.prepareStackTrace=s}return(s=n?n.displayName||n.name:"")?Fe(s):""}function at(n,a){switch(n.tag){case 26:case 27:case 5:return Fe(n.type);case 16:return Fe("Lazy");case 13:return n.child!==a&&a!==null?Fe("Suspense Fallback"):Fe("Suspense");case 19:return Fe("SuspenseList");case 0:case 15:return Oe(n.type,!1);case 11:return Oe(n.type.render,!1);case 1:return Oe(n.type,!0);case 31:return Fe("Activity");default:return""}}function Ct(n){try{var a="",s=null;do a+=at(n,s),s=n,n=n.return;while(n);return a}catch(c){return`
|
|
7
|
-
Error generating stack: `+c.message+`
|
|
8
|
-
`+c.stack}}var Et=Object.prototype.hasOwnProperty,hn=e.unstable_scheduleCallback,nt=e.unstable_cancelCallback,yn=e.unstable_shouldYield,ge=e.unstable_requestPaint,Ne=e.unstable_now,kn=e.unstable_getCurrentPriorityLevel,le=e.unstable_ImmediatePriority,Z=e.unstable_UserBlockingPriority,_e=e.unstable_NormalPriority,Ge=e.unstable_LowPriority,Xe=e.unstable_IdlePriority,nn=e.log,bn=e.unstable_setDisableYieldValue,Yt=null,Bt=null;function Cn(n){if(typeof nn=="function"&&bn(n),Bt&&typeof Bt.setStrictMode=="function")try{Bt.setStrictMode(Yt,n)}catch{}}var vt=Math.clz32?Math.clz32:Yr,hr=Math.log,rn=Math.LN2;function Yr(n){return n>>>=0,n===0?32:31-(hr(n)/rn|0)|0}var Lr=256,Xr=262144,Wr=4194304;function Mn(n){var a=n&42;if(a!==0)return a;switch(n&-n){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:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return n&261888;case 262144:case 524288:case 1048576:case 2097152:return n&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return n&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return n}}function H(n,a,s){var c=n.pendingLanes;if(c===0)return 0;var g=0,E=n.suspendedLanes,B=n.pingedLanes;n=n.warmLanes;var M=c&134217727;return M!==0?(c=M&~E,c!==0?g=Mn(c):(B&=M,B!==0?g=Mn(B):s||(s=M&~n,s!==0&&(g=Mn(s))))):(M=c&~E,M!==0?g=Mn(M):B!==0?g=Mn(B):s||(s=c&~n,s!==0&&(g=Mn(s)))),g===0?0:a!==0&&a!==g&&(a&E)===0&&(E=g&-g,s=a&-a,E>=s||E===32&&(s&4194048)!==0)?a:g}function ue(n,a){return(n.pendingLanes&~(n.suspendedLanes&~n.pingedLanes)&a)===0}function Ae(n,a){switch(n){case 1:case 2:case 4:case 8:case 64:return a+250;case 16:case 32: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 a+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Ke(){var n=Wr;return Wr<<=1,(Wr&62914560)===0&&(Wr=4194304),n}function _t(n){for(var a=[],s=0;31>s;s++)a.push(n);return a}function kt(n,a){n.pendingLanes|=a,a!==268435456&&(n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0)}function Re(n,a,s,c,g,E){var B=n.pendingLanes;n.pendingLanes=s,n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0,n.expiredLanes&=s,n.entangledLanes&=s,n.errorRecoveryDisabledLanes&=s,n.shellSuspendCounter=0;var M=n.entanglements,U=n.expirationTimes,te=n.hiddenUpdates;for(s=B&~s;0<s;){var ce=31-vt(s),fe=1<<ce;M[ce]=0,U[ce]=-1;var re=te[ce];if(re!==null)for(te[ce]=null,ce=0;ce<re.length;ce++){var oe=re[ce];oe!==null&&(oe.lane&=-536870913)}s&=~fe}c!==0&&Se(n,c,0),E!==0&&g===0&&n.tag!==0&&(n.suspendedLanes|=E&~(B&~a))}function Se(n,a,s){n.pendingLanes|=a,n.suspendedLanes&=~a;var c=31-vt(a);n.entangledLanes|=a,n.entanglements[c]=n.entanglements[c]|1073741824|s&261930}function qe(n,a){var s=n.entangledLanes|=a;for(n=n.entanglements;s;){var c=31-vt(s),g=1<<c;g&a|n[c]&a&&(n[c]|=a),s&=~g}}function Vt(n,a){var s=a&-a;return s=(s&42)!==0?1:Mt(s),(s&(n.suspendedLanes|a))!==0?0:s}function Mt(n){switch(n){case 2:n=1;break;case 8:n=4;break;case 32:n=16;break;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:n=128;break;case 268435456:n=134217728;break;default:n=0}return n}function _r(n){return n&=-n,2<n?8<n?(n&134217727)!==0?32:268435456:8:2}function Ee(){var n=Y.p;return n!==0?n:(n=window.event,n===void 0?32:Cm(n.type))}function Zt(n,a){var s=Y.p;try{return Y.p=n,a()}finally{Y.p=s}}var An=Math.random().toString(36).slice(2),it="__reactFiber$"+An,an="__reactProps$"+An,Pr="__reactContainer$"+An,pn="__reactEvents$"+An,ii="__reactListeners$"+An,Pi="__reactHandles$"+An,fo="__reactResources$"+An,si="__reactMarker$"+An;function Os(n){delete n[it],delete n[an],delete n[pn],delete n[ii],delete n[Pi]}function Ln(n){var a=n[it];if(a)return a;for(var s=n.parentNode;s;){if(a=s[Pr]||s[it]){if(s=a.alternate,a.child!==null||s!==null&&s.child!==null)for(n=im(n);n!==null;){if(s=n[it])return s;n=im(n)}return a}n=s,s=n.parentNode}return null}function Zr(n){if(n=n[it]||n[Pr]){var a=n.tag;if(a===5||a===6||a===13||a===31||a===26||a===27||a===3)return n}return null}function Ba(n){var a=n.tag;if(a===5||a===26||a===27||a===6)return n.stateNode;throw Error(i(33))}function Da(n){var a=n[fo];return a||(a=n[fo]={hoistableStyles:new Map,hoistableScripts:new Map}),a}function sn(n){n[si]=!0}var ho=new Set,li={};function Jr(n,a){ye(n,a),ye(n+"Capture",a)}function ye(n,a){for(li[n]=a,n=0;n<a.length;n++)ho.add(a[n])}var $e=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]*$"),ot={},Dt={};function Jt(n){return Et.call(Dt,n)?!0:Et.call(ot,n)?!1:$e.test(n)?Dt[n]=!0:(ot[n]=!0,!1)}function jn(n,a,s){if(Jt(a))if(s===null)n.removeAttribute(a);else{switch(typeof s){case"undefined":case"function":case"symbol":n.removeAttribute(a);return;case"boolean":var c=a.toLowerCase().slice(0,5);if(c!=="data-"&&c!=="aria-"){n.removeAttribute(a);return}}n.setAttribute(a,""+s)}}function Jn(n,a,s){if(s===null)n.removeAttribute(a);else{switch(typeof s){case"undefined":case"function":case"symbol":case"boolean":n.removeAttribute(a);return}n.setAttribute(a,""+s)}}function Un(n,a,s,c){if(c===null)n.removeAttribute(s);else{switch(typeof c){case"undefined":case"function":case"symbol":case"boolean":n.removeAttribute(s);return}n.setAttributeNS(a,s,""+c)}}function It(n){switch(typeof n){case"bigint":case"boolean":case"number":case"string":case"undefined":return n;case"object":return n;default:return""}}function er(n){var a=n.type;return(n=n.nodeName)&&n.toLowerCase()==="input"&&(a==="checkbox"||a==="radio")}function po(n,a,s){var c=Object.getOwnPropertyDescriptor(n.constructor.prototype,a);if(!n.hasOwnProperty(a)&&typeof c<"u"&&typeof c.get=="function"&&typeof c.set=="function"){var g=c.get,E=c.set;return Object.defineProperty(n,a,{configurable:!0,get:function(){return g.call(this)},set:function(B){s=""+B,E.call(this,B)}}),Object.defineProperty(n,a,{enumerable:c.enumerable}),{getValue:function(){return s},setValue:function(B){s=""+B},stopTracking:function(){n._valueTracker=null,delete n[a]}}}}function Ii(n){if(!n._valueTracker){var a=er(n)?"checked":"value";n._valueTracker=po(n,a,""+n[a])}}function zs(n){if(!n)return!1;var a=n._valueTracker;if(!a)return!0;var s=a.getValue(),c="";return n&&(c=er(n)?n.checked?"true":"false":n.value),n=c,n!==s?(a.setValue(n),!0):!1}function Ui(n){if(n=n||(typeof document<"u"?document:void 0),typeof n>"u")return null;try{return n.activeElement||n.body}catch{return n.body}}var Ec=/[\n"\\]/g;function $n(n){return n.replace(Ec,function(a){return"\\"+a.charCodeAt(0).toString(16)+" "})}function Ls(n,a,s,c,g,E,B,M){n.name="",B!=null&&typeof B!="function"&&typeof B!="symbol"&&typeof B!="boolean"?n.type=B:n.removeAttribute("type"),a!=null?B==="number"?(a===0&&n.value===""||n.value!=a)&&(n.value=""+It(a)):n.value!==""+It(a)&&(n.value=""+It(a)):B!=="submit"&&B!=="reset"||n.removeAttribute("value"),a!=null?$i(n,B,It(a)):s!=null?$i(n,B,It(s)):c!=null&&n.removeAttribute("value"),g==null&&E!=null&&(n.defaultChecked=!!E),g!=null&&(n.checked=g&&typeof g!="function"&&typeof g!="symbol"),M!=null&&typeof M!="function"&&typeof M!="symbol"&&typeof M!="boolean"?n.name=""+It(M):n.removeAttribute("name")}function oi(n,a,s,c,g,E,B,M){if(E!=null&&typeof E!="function"&&typeof E!="symbol"&&typeof E!="boolean"&&(n.type=E),a!=null||s!=null){if(!(E!=="submit"&&E!=="reset"||a!=null)){Ii(n);return}s=s!=null?""+It(s):"",a=a!=null?""+It(a):s,M||a===n.value||(n.value=a),n.defaultValue=a}c=c??g,c=typeof c!="function"&&typeof c!="symbol"&&!!c,n.checked=M?n.checked:!!c,n.defaultChecked=!!c,B!=null&&typeof B!="function"&&typeof B!="symbol"&&typeof B!="boolean"&&(n.name=B),Ii(n)}function $i(n,a,s){a==="number"&&Ui(n.ownerDocument)===n||n.defaultValue===""+s||(n.defaultValue=""+s)}function Bn(n,a,s,c){if(n=n.options,a){a={};for(var g=0;g<s.length;g++)a["$"+s[g]]=!0;for(s=0;s<n.length;s++)g=a.hasOwnProperty("$"+n[s].value),n[s].selected!==g&&(n[s].selected=g),g&&c&&(n[s].defaultSelected=!0)}else{for(s=""+It(s),a=null,g=0;g<n.length;g++){if(n[g].value===s){n[g].selected=!0,c&&(n[g].defaultSelected=!0);return}a!==null||n[g].disabled||(a=n[g])}a!==null&&(a.selected=!0)}}function mo(n,a,s){if(a!=null&&(a=""+It(a),a!==n.value&&(n.value=a),s==null)){n.defaultValue!==a&&(n.defaultValue=a);return}n.defaultValue=s!=null?""+It(s):""}function Hi(n,a,s,c){if(a==null){if(c!=null){if(s!=null)throw Error(i(92));if(K(c)){if(1<c.length)throw Error(i(93));c=c[0]}s=c}s==null&&(s=""),a=s}s=It(a),n.defaultValue=s,c=n.textContent,c===s&&c!==""&&c!==null&&(n.value=c),Ii(n)}function Ye(n,a){if(a){var s=n.firstChild;if(s&&s===n.lastChild&&s.nodeType===3){s.nodeValue=a;return}}n.textContent=a}var go=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 ln(n,a,s){var c=a.indexOf("--")===0;s==null||typeof s=="boolean"||s===""?c?n.setProperty(a,""):a==="float"?n.cssFloat="":n[a]="":c?n.setProperty(a,s):typeof s!="number"||s===0||go.has(a)?a==="float"?n.cssFloat=s:n[a]=(""+s).trim():n[a]=s+"px"}function wt(n,a,s){if(a!=null&&typeof a!="object")throw Error(i(62));if(n=n.style,s!=null){for(var c in s)!s.hasOwnProperty(c)||a!=null&&a.hasOwnProperty(c)||(c.indexOf("--")===0?n.setProperty(c,""):c==="float"?n.cssFloat="":n[c]="");for(var g in a)c=a[g],a.hasOwnProperty(g)&&s[g]!==c&&ln(n,g,c)}else for(var E in a)a.hasOwnProperty(E)&&ln(n,E,a[E])}function wa(n){if(n.indexOf("-")===-1)return!1;switch(n){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 ea=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-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"]]),Ps=/^[\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 Fa(n){return Ps.test(""+n)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":n}function ke(){}var ze=null;function Je(n){return n=n.target||n.srcElement||window,n.correspondingUseElement&&(n=n.correspondingUseElement),n.nodeType===3?n.parentNode:n}var ft=null,Kt=null;function pr(n){var a=Zr(n);if(a&&(n=a.stateNode)){var s=n[an]||null;e:switch(n=a.stateNode,a.type){case"input":if(Ls(n,s.value,s.defaultValue,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name),a=s.name,s.type==="radio"&&a!=null){for(s=n;s.parentNode;)s=s.parentNode;for(s=s.querySelectorAll('input[name="'+$n(""+a)+'"][type="radio"]'),a=0;a<s.length;a++){var c=s[a];if(c!==n&&c.form===n.form){var g=c[an]||null;if(!g)throw Error(i(90));Ls(c,g.value,g.defaultValue,g.defaultValue,g.checked,g.defaultChecked,g.type,g.name)}}for(a=0;a<s.length;a++)c=s[a],c.form===n.form&&zs(c)}break e;case"textarea":mo(n,s.value,s.defaultValue);break e;case"select":a=s.value,a!=null&&Bn(n,!!s.multiple,a,!1)}}}var Is=!1;function Eo(n,a,s){if(Is)return n(a,s);Is=!0;try{var c=n(a);return c}finally{if(Is=!1,(ft!==null||Kt!==null)&&(i0(),ft&&(a=ft,n=Kt,Kt=ft=null,pr(a),n)))for(a=0;a<n.length;a++)pr(n[a])}}function Us(n,a){var s=n.stateNode;if(s===null)return null;var c=s[an]||null;if(c===null)return null;s=c[a];e:switch(a){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(c=!c.disabled)||(n=n.type,c=!(n==="button"||n==="input"||n==="select"||n==="textarea")),n=!c;break e;default:n=!1}if(n)return null;if(s&&typeof s!="function")throw Error(i(231,a,typeof s));return s}var ta=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),yc=!1;if(ta)try{var $s={};Object.defineProperty($s,"passive",{get:function(){yc=!0}}),window.addEventListener("test",$s,$s),window.removeEventListener("test",$s,$s)}catch{yc=!1}var Sa=null,bc=null,yo=null;function Zf(){if(yo)return yo;var n,a=bc,s=a.length,c,g="value"in Sa?Sa.value:Sa.textContent,E=g.length;for(n=0;n<s&&a[n]===g[n];n++);var B=s-n;for(c=1;c<=B&&a[s-c]===g[E-c];c++);return yo=g.slice(n,1<c?1-c:void 0)}function bo(n){var a=n.keyCode;return"charCode"in n?(n=n.charCode,n===0&&a===13&&(n=13)):n=a,n===10&&(n=13),32<=n||n===13?n:0}function Co(){return!0}function Jf(){return!1}function Hn(n){function a(s,c,g,E,B){this._reactName=s,this._targetInst=g,this.type=c,this.nativeEvent=E,this.target=B,this.currentTarget=null;for(var M in n)n.hasOwnProperty(M)&&(s=n[M],this[M]=s?s(E):E[M]);return this.isDefaultPrevented=(E.defaultPrevented!=null?E.defaultPrevented:E.returnValue===!1)?Co:Jf,this.isPropagationStopped=Jf,this}return p(a.prototype,{preventDefault:function(){this.defaultPrevented=!0;var s=this.nativeEvent;s&&(s.preventDefault?s.preventDefault():typeof s.returnValue!="unknown"&&(s.returnValue=!1),this.isDefaultPrevented=Co)},stopPropagation:function(){var s=this.nativeEvent;s&&(s.stopPropagation?s.stopPropagation():typeof s.cancelBubble!="unknown"&&(s.cancelBubble=!0),this.isPropagationStopped=Co)},persist:function(){},isPersistent:Co}),a}var ci={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(n){return n.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},vo=Hn(ci),Hs=p({},ci,{view:0,detail:0}),v6=Hn(Hs),Cc,vc,qs,ko=p({},Hs,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ac,button:0,buttons:0,relatedTarget:function(n){return n.relatedTarget===void 0?n.fromElement===n.srcElement?n.toElement:n.fromElement:n.relatedTarget},movementX:function(n){return"movementX"in n?n.movementX:(n!==qs&&(qs&&n.type==="mousemove"?(Cc=n.screenX-qs.screenX,vc=n.screenY-qs.screenY):vc=Cc=0,qs=n),Cc)},movementY:function(n){return"movementY"in n?n.movementY:vc}}),eh=Hn(ko),k6=p({},ko,{dataTransfer:0}),A6=Hn(k6),B6=p({},Hs,{relatedTarget:0}),kc=Hn(B6),D6=p({},ci,{animationName:0,elapsedTime:0,pseudoElement:0}),w6=Hn(D6),F6=p({},ci,{clipboardData:function(n){return"clipboardData"in n?n.clipboardData:window.clipboardData}}),S6=Hn(F6),N6=p({},ci,{data:0}),th=Hn(N6),_6={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},M6={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"},j6={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function T6(n){var a=this.nativeEvent;return a.getModifierState?a.getModifierState(n):(n=j6[n])?!!a[n]:!1}function Ac(){return T6}var R6=p({},Hs,{key:function(n){if(n.key){var a=_6[n.key]||n.key;if(a!=="Unidentified")return a}return n.type==="keypress"?(n=bo(n),n===13?"Enter":String.fromCharCode(n)):n.type==="keydown"||n.type==="keyup"?M6[n.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ac,charCode:function(n){return n.type==="keypress"?bo(n):0},keyCode:function(n){return n.type==="keydown"||n.type==="keyup"?n.keyCode:0},which:function(n){return n.type==="keypress"?bo(n):n.type==="keydown"||n.type==="keyup"?n.keyCode:0}}),O6=Hn(R6),z6=p({},ko,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),nh=Hn(z6),L6=p({},Hs,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ac}),P6=Hn(L6),I6=p({},ci,{propertyName:0,elapsedTime:0,pseudoElement:0}),U6=Hn(I6),$6=p({},ko,{deltaX:function(n){return"deltaX"in n?n.deltaX:"wheelDeltaX"in n?-n.wheelDeltaX:0},deltaY:function(n){return"deltaY"in n?n.deltaY:"wheelDeltaY"in n?-n.wheelDeltaY:"wheelDelta"in n?-n.wheelDelta:0},deltaZ:0,deltaMode:0}),H6=Hn($6),q6=p({},ci,{newState:0,oldState:0}),G6=Hn(q6),V6=[9,13,27,32],Bc=ta&&"CompositionEvent"in window,Gs=null;ta&&"documentMode"in document&&(Gs=document.documentMode);var Q6=ta&&"TextEvent"in window&&!Gs,rh=ta&&(!Bc||Gs&&8<Gs&&11>=Gs),ah=" ",ih=!1;function sh(n,a){switch(n){case"keyup":return V6.indexOf(a.keyCode)!==-1;case"keydown":return a.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function lh(n){return n=n.detail,typeof n=="object"&&"data"in n?n.data:null}var qi=!1;function K6(n,a){switch(n){case"compositionend":return lh(a);case"keypress":return a.which!==32?null:(ih=!0,ah);case"textInput":return n=a.data,n===ah&&ih?null:n;default:return null}}function Y6(n,a){if(qi)return n==="compositionend"||!Bc&&sh(n,a)?(n=Zf(),yo=bc=Sa=null,qi=!1,n):null;switch(n){case"paste":return null;case"keypress":if(!(a.ctrlKey||a.altKey||a.metaKey)||a.ctrlKey&&a.altKey){if(a.char&&1<a.char.length)return a.char;if(a.which)return String.fromCharCode(a.which)}return null;case"compositionend":return rh&&a.locale!=="ko"?null:a.data;default:return null}}var X6={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 oh(n){var a=n&&n.nodeName&&n.nodeName.toLowerCase();return a==="input"?!!X6[n.type]:a==="textarea"}function ch(n,a,s,c){ft?Kt?Kt.push(c):Kt=[c]:ft=c,a=d0(a,"onChange"),0<a.length&&(s=new vo("onChange","change",null,s,c),n.push({event:s,listeners:a}))}var Vs=null,Qs=null;function W6(n){Gp(n,0)}function Ao(n){var a=Ba(n);if(zs(a))return n}function uh(n,a){if(n==="change")return a}var xh=!1;if(ta){var Dc;if(ta){var wc="oninput"in document;if(!wc){var dh=document.createElement("div");dh.setAttribute("oninput","return;"),wc=typeof dh.oninput=="function"}Dc=wc}else Dc=!1;xh=Dc&&(!document.documentMode||9<document.documentMode)}function fh(){Vs&&(Vs.detachEvent("onpropertychange",hh),Qs=Vs=null)}function hh(n){if(n.propertyName==="value"&&Ao(Qs)){var a=[];ch(a,Qs,n,Je(n)),Eo(W6,a)}}function Z6(n,a,s){n==="focusin"?(fh(),Vs=a,Qs=s,Vs.attachEvent("onpropertychange",hh)):n==="focusout"&&fh()}function J6(n){if(n==="selectionchange"||n==="keyup"||n==="keydown")return Ao(Qs)}function ey(n,a){if(n==="click")return Ao(a)}function ty(n,a){if(n==="input"||n==="change")return Ao(a)}function ny(n,a){return n===a&&(n!==0||1/n===1/a)||n!==n&&a!==a}var tr=typeof Object.is=="function"?Object.is:ny;function Ks(n,a){if(tr(n,a))return!0;if(typeof n!="object"||n===null||typeof a!="object"||a===null)return!1;var s=Object.keys(n),c=Object.keys(a);if(s.length!==c.length)return!1;for(c=0;c<s.length;c++){var g=s[c];if(!Et.call(a,g)||!tr(n[g],a[g]))return!1}return!0}function ph(n){for(;n&&n.firstChild;)n=n.firstChild;return n}function mh(n,a){var s=ph(n);n=0;for(var c;s;){if(s.nodeType===3){if(c=n+s.textContent.length,n<=a&&c>=a)return{node:s,offset:a-n};n=c}e:{for(;s;){if(s.nextSibling){s=s.nextSibling;break e}s=s.parentNode}s=void 0}s=ph(s)}}function gh(n,a){return n&&a?n===a?!0:n&&n.nodeType===3?!1:a&&a.nodeType===3?gh(n,a.parentNode):"contains"in n?n.contains(a):n.compareDocumentPosition?!!(n.compareDocumentPosition(a)&16):!1:!1}function Eh(n){n=n!=null&&n.ownerDocument!=null&&n.ownerDocument.defaultView!=null?n.ownerDocument.defaultView:window;for(var a=Ui(n.document);a instanceof n.HTMLIFrameElement;){try{var s=typeof a.contentWindow.location.href=="string"}catch{s=!1}if(s)n=a.contentWindow;else break;a=Ui(n.document)}return a}function Fc(n){var a=n&&n.nodeName&&n.nodeName.toLowerCase();return a&&(a==="input"&&(n.type==="text"||n.type==="search"||n.type==="tel"||n.type==="url"||n.type==="password")||a==="textarea"||n.contentEditable==="true")}var ry=ta&&"documentMode"in document&&11>=document.documentMode,Gi=null,Sc=null,Ys=null,Nc=!1;function yh(n,a,s){var c=s.window===s?s.document:s.nodeType===9?s:s.ownerDocument;Nc||Gi==null||Gi!==Ui(c)||(c=Gi,"selectionStart"in c&&Fc(c)?c={start:c.selectionStart,end:c.selectionEnd}:(c=(c.ownerDocument&&c.ownerDocument.defaultView||window).getSelection(),c={anchorNode:c.anchorNode,anchorOffset:c.anchorOffset,focusNode:c.focusNode,focusOffset:c.focusOffset}),Ys&&Ks(Ys,c)||(Ys=c,c=d0(Sc,"onSelect"),0<c.length&&(a=new vo("onSelect","select",null,a,s),n.push({event:a,listeners:c}),a.target=Gi)))}function ui(n,a){var s={};return s[n.toLowerCase()]=a.toLowerCase(),s["Webkit"+n]="webkit"+a,s["Moz"+n]="moz"+a,s}var Vi={animationend:ui("Animation","AnimationEnd"),animationiteration:ui("Animation","AnimationIteration"),animationstart:ui("Animation","AnimationStart"),transitionrun:ui("Transition","TransitionRun"),transitionstart:ui("Transition","TransitionStart"),transitioncancel:ui("Transition","TransitionCancel"),transitionend:ui("Transition","TransitionEnd")},_c={},bh={};ta&&(bh=document.createElement("div").style,"AnimationEvent"in window||(delete Vi.animationend.animation,delete Vi.animationiteration.animation,delete Vi.animationstart.animation),"TransitionEvent"in window||delete Vi.transitionend.transition);function xi(n){if(_c[n])return _c[n];if(!Vi[n])return n;var a=Vi[n],s;for(s in a)if(a.hasOwnProperty(s)&&s in bh)return _c[n]=a[s];return n}var Ch=xi("animationend"),vh=xi("animationiteration"),kh=xi("animationstart"),ay=xi("transitionrun"),iy=xi("transitionstart"),sy=xi("transitioncancel"),Ah=xi("transitionend"),Bh=new Map,Mc="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 toggle touchMove waiting wheel".split(" ");Mc.push("scrollEnd");function Mr(n,a){Bh.set(n,a),Jr(a,[n])}var Bo=typeof reportError=="function"?reportError:function(n){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var a=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof n=="object"&&n!==null&&typeof n.message=="string"?String(n.message):String(n),error:n});if(!window.dispatchEvent(a))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",n);return}console.error(n)},mr=[],Qi=0,jc=0;function Do(){for(var n=Qi,a=jc=Qi=0;a<n;){var s=mr[a];mr[a++]=null;var c=mr[a];mr[a++]=null;var g=mr[a];mr[a++]=null;var E=mr[a];if(mr[a++]=null,c!==null&&g!==null){var B=c.pending;B===null?g.next=g:(g.next=B.next,B.next=g),c.pending=g}E!==0&&Dh(s,g,E)}}function wo(n,a,s,c){mr[Qi++]=n,mr[Qi++]=a,mr[Qi++]=s,mr[Qi++]=c,jc|=c,n.lanes|=c,n=n.alternate,n!==null&&(n.lanes|=c)}function Tc(n,a,s,c){return wo(n,a,s,c),Fo(n)}function di(n,a){return wo(n,null,null,a),Fo(n)}function Dh(n,a,s){n.lanes|=s;var c=n.alternate;c!==null&&(c.lanes|=s);for(var g=!1,E=n.return;E!==null;)E.childLanes|=s,c=E.alternate,c!==null&&(c.childLanes|=s),E.tag===22&&(n=E.stateNode,n===null||n._visibility&1||(g=!0)),n=E,E=E.return;return n.tag===3?(E=n.stateNode,g&&a!==null&&(g=31-vt(s),n=E.hiddenUpdates,c=n[g],c===null?n[g]=[a]:c.push(a),a.lane=s|536870912),E):null}function Fo(n){if(50<gl)throw gl=0,Hu=null,Error(i(185));for(var a=n.return;a!==null;)n=a,a=n.return;return n.tag===3?n.stateNode:null}var Ki={};function ly(n,a,s,c){this.tag=n,this.key=s,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=a,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=c,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function nr(n,a,s,c){return new ly(n,a,s,c)}function Rc(n){return n=n.prototype,!(!n||!n.isReactComponent)}function na(n,a){var s=n.alternate;return s===null?(s=nr(n.tag,a,n.key,n.mode),s.elementType=n.elementType,s.type=n.type,s.stateNode=n.stateNode,s.alternate=n,n.alternate=s):(s.pendingProps=a,s.type=n.type,s.flags=0,s.subtreeFlags=0,s.deletions=null),s.flags=n.flags&65011712,s.childLanes=n.childLanes,s.lanes=n.lanes,s.child=n.child,s.memoizedProps=n.memoizedProps,s.memoizedState=n.memoizedState,s.updateQueue=n.updateQueue,a=n.dependencies,s.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext},s.sibling=n.sibling,s.index=n.index,s.ref=n.ref,s.refCleanup=n.refCleanup,s}function wh(n,a){n.flags&=65011714;var s=n.alternate;return s===null?(n.childLanes=0,n.lanes=a,n.child=null,n.subtreeFlags=0,n.memoizedProps=null,n.memoizedState=null,n.updateQueue=null,n.dependencies=null,n.stateNode=null):(n.childLanes=s.childLanes,n.lanes=s.lanes,n.child=s.child,n.subtreeFlags=0,n.deletions=null,n.memoizedProps=s.memoizedProps,n.memoizedState=s.memoizedState,n.updateQueue=s.updateQueue,n.type=s.type,a=s.dependencies,n.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext}),n}function So(n,a,s,c,g,E){var B=0;if(c=n,typeof n=="function")Rc(n)&&(B=1);else if(typeof n=="string")B=db(n,s,se.current)?26:n==="html"||n==="head"||n==="body"?27:5;else e:switch(n){case P:return n=nr(31,s,a,g),n.elementType=P,n.lanes=E,n;case k:return fi(s.children,g,E,a);case v:B=8,g|=24;break;case A:return n=nr(12,s,a,g|2),n.elementType=A,n.lanes=E,n;case S:return n=nr(13,s,a,g),n.elementType=S,n.lanes=E,n;case w:return n=nr(19,s,a,g),n.elementType=w,n.lanes=E,n;default:if(typeof n=="object"&&n!==null)switch(n.$$typeof){case N:B=10;break e;case F:B=9;break e;case _:B=11;break e;case O:B=14;break e;case z:B=16,c=null;break e}B=29,s=Error(i(130,n===null?"null":typeof n,"")),c=null}return a=nr(B,s,a,g),a.elementType=n,a.type=c,a.lanes=E,a}function fi(n,a,s,c){return n=nr(7,n,c,a),n.lanes=s,n}function Oc(n,a,s){return n=nr(6,n,null,a),n.lanes=s,n}function Fh(n){var a=nr(18,null,null,0);return a.stateNode=n,a}function zc(n,a,s){return a=nr(4,n.children!==null?n.children:[],n.key,a),a.lanes=s,a.stateNode={containerInfo:n.containerInfo,pendingChildren:null,implementation:n.implementation},a}var Sh=new WeakMap;function gr(n,a){if(typeof n=="object"&&n!==null){var s=Sh.get(n);return s!==void 0?s:(a={value:n,source:a,stack:Ct(a)},Sh.set(n,a),a)}return{value:n,source:a,stack:Ct(a)}}var Yi=[],Xi=0,No=null,Xs=0,Er=[],yr=0,Na=null,Ir=1,Ur="";function ra(n,a){Yi[Xi++]=Xs,Yi[Xi++]=No,No=n,Xs=a}function Nh(n,a,s){Er[yr++]=Ir,Er[yr++]=Ur,Er[yr++]=Na,Na=n;var c=Ir;n=Ur;var g=32-vt(c)-1;c&=~(1<<g),s+=1;var E=32-vt(a)+g;if(30<E){var B=g-g%5;E=(c&(1<<B)-1).toString(32),c>>=B,g-=B,Ir=1<<32-vt(a)+g|s<<g|c,Ur=E+n}else Ir=1<<E|s<<g|c,Ur=n}function Lc(n){n.return!==null&&(ra(n,1),Nh(n,1,0))}function Pc(n){for(;n===No;)No=Yi[--Xi],Yi[Xi]=null,Xs=Yi[--Xi],Yi[Xi]=null;for(;n===Na;)Na=Er[--yr],Er[yr]=null,Ur=Er[--yr],Er[yr]=null,Ir=Er[--yr],Er[yr]=null}function _h(n,a){Er[yr++]=Ir,Er[yr++]=Ur,Er[yr++]=Na,Ir=a.id,Ur=a.overflow,Na=n}var Dn=null,$t=null,mt=!1,_a=null,br=!1,Ic=Error(i(519));function Ma(n){var a=Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Ws(gr(a,n)),Ic}function Mh(n){var a=n.stateNode,s=n.type,c=n.memoizedProps;switch(a[it]=n,a[an]=c,s){case"dialog":xt("cancel",a),xt("close",a);break;case"iframe":case"object":case"embed":xt("load",a);break;case"video":case"audio":for(s=0;s<yl.length;s++)xt(yl[s],a);break;case"source":xt("error",a);break;case"img":case"image":case"link":xt("error",a),xt("load",a);break;case"details":xt("toggle",a);break;case"input":xt("invalid",a),oi(a,c.value,c.defaultValue,c.checked,c.defaultChecked,c.type,c.name,!0);break;case"select":xt("invalid",a);break;case"textarea":xt("invalid",a),Hi(a,c.value,c.defaultValue,c.children)}s=c.children,typeof s!="string"&&typeof s!="number"&&typeof s!="bigint"||a.textContent===""+s||c.suppressHydrationWarning===!0||Yp(a.textContent,s)?(c.popover!=null&&(xt("beforetoggle",a),xt("toggle",a)),c.onScroll!=null&&xt("scroll",a),c.onScrollEnd!=null&&xt("scrollend",a),c.onClick!=null&&(a.onclick=ke),a=!0):a=!1,a||Ma(n,!0)}function jh(n){for(Dn=n.return;Dn;)switch(Dn.tag){case 5:case 31:case 13:br=!1;return;case 27:case 3:br=!0;return;default:Dn=Dn.return}}function Wi(n){if(n!==Dn)return!1;if(!mt)return jh(n),mt=!0,!1;var a=n.tag,s;if((s=a!==3&&a!==27)&&((s=a===5)&&(s=n.type,s=!(s!=="form"&&s!=="button")||ax(n.type,n.memoizedProps)),s=!s),s&&$t&&Ma(n),jh(n),a===13){if(n=n.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(i(317));$t=am(n)}else if(a===31){if(n=n.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(i(317));$t=am(n)}else a===27?(a=$t,Va(n.type)?(n=cx,cx=null,$t=n):$t=a):$t=Dn?vr(n.stateNode.nextSibling):null;return!0}function hi(){$t=Dn=null,mt=!1}function Uc(){var n=_a;return n!==null&&(Qn===null?Qn=n:Qn.push.apply(Qn,n),_a=null),n}function Ws(n){_a===null?_a=[n]:_a.push(n)}var $c=L(null),pi=null,aa=null;function ja(n,a,s){R($c,a._currentValue),a._currentValue=s}function ia(n){n._currentValue=$c.current,V($c)}function Hc(n,a,s){for(;n!==null;){var c=n.alternate;if((n.childLanes&a)!==a?(n.childLanes|=a,c!==null&&(c.childLanes|=a)):c!==null&&(c.childLanes&a)!==a&&(c.childLanes|=a),n===s)break;n=n.return}}function qc(n,a,s,c){var g=n.child;for(g!==null&&(g.return=n);g!==null;){var E=g.dependencies;if(E!==null){var B=g.child;E=E.firstContext;e:for(;E!==null;){var M=E;E=g;for(var U=0;U<a.length;U++)if(M.context===a[U]){E.lanes|=s,M=E.alternate,M!==null&&(M.lanes|=s),Hc(E.return,s,n),c||(B=null);break e}E=M.next}}else if(g.tag===18){if(B=g.return,B===null)throw Error(i(341));B.lanes|=s,E=B.alternate,E!==null&&(E.lanes|=s),Hc(B,s,n),B=null}else B=g.child;if(B!==null)B.return=g;else for(B=g;B!==null;){if(B===n){B=null;break}if(g=B.sibling,g!==null){g.return=B.return,B=g;break}B=B.return}g=B}}function Zi(n,a,s,c){n=null;for(var g=a,E=!1;g!==null;){if(!E){if((g.flags&524288)!==0)E=!0;else if((g.flags&262144)!==0)break}if(g.tag===10){var B=g.alternate;if(B===null)throw Error(i(387));if(B=B.memoizedProps,B!==null){var M=g.type;tr(g.pendingProps.value,B.value)||(n!==null?n.push(M):n=[M])}}else if(g===me.current){if(B=g.alternate,B===null)throw Error(i(387));B.memoizedState.memoizedState!==g.memoizedState.memoizedState&&(n!==null?n.push(Al):n=[Al])}g=g.return}n!==null&&qc(a,n,s,c),a.flags|=262144}function _o(n){for(n=n.firstContext;n!==null;){if(!tr(n.context._currentValue,n.memoizedValue))return!0;n=n.next}return!1}function mi(n){pi=n,aa=null,n=n.dependencies,n!==null&&(n.firstContext=null)}function wn(n){return Th(pi,n)}function Mo(n,a){return pi===null&&mi(n),Th(n,a)}function Th(n,a){var s=a._currentValue;if(a={context:a,memoizedValue:s,next:null},aa===null){if(n===null)throw Error(i(308));aa=a,n.dependencies={lanes:0,firstContext:a},n.flags|=524288}else aa=aa.next=a;return s}var oy=typeof AbortController<"u"?AbortController:function(){var n=[],a=this.signal={aborted:!1,addEventListener:function(s,c){n.push(c)}};this.abort=function(){a.aborted=!0,n.forEach(function(s){return s()})}},cy=e.unstable_scheduleCallback,uy=e.unstable_NormalPriority,on={$$typeof:N,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Gc(){return{controller:new oy,data:new Map,refCount:0}}function Zs(n){n.refCount--,n.refCount===0&&cy(uy,function(){n.controller.abort()})}var Js=null,Vc=0,Ji=0,es=null;function xy(n,a){if(Js===null){var s=Js=[];Vc=0,Ji=Yu(),es={status:"pending",value:void 0,then:function(c){s.push(c)}}}return Vc++,a.then(Rh,Rh),a}function Rh(){if(--Vc===0&&Js!==null){es!==null&&(es.status="fulfilled");var n=Js;Js=null,Ji=0,es=null;for(var a=0;a<n.length;a++)(0,n[a])()}}function dy(n,a){var s=[],c={status:"pending",value:null,reason:null,then:function(g){s.push(g)}};return n.then(function(){c.status="fulfilled",c.value=a;for(var g=0;g<s.length;g++)(0,s[g])(a)},function(g){for(c.status="rejected",c.reason=g,g=0;g<s.length;g++)(0,s[g])(void 0)}),c}var Oh=I.S;I.S=function(n,a){yp=Ne(),typeof a=="object"&&a!==null&&typeof a.then=="function"&&xy(n,a),Oh!==null&&Oh(n,a)};var gi=L(null);function Qc(){var n=gi.current;return n!==null?n:zt.pooledCache}function jo(n,a){a===null?R(gi,gi.current):R(gi,a.pool)}function zh(){var n=Qc();return n===null?null:{parent:on._currentValue,pool:n}}var ts=Error(i(460)),Kc=Error(i(474)),To=Error(i(542)),Ro={then:function(){}};function Lh(n){return n=n.status,n==="fulfilled"||n==="rejected"}function Ph(n,a,s){switch(s=n[s],s===void 0?n.push(a):s!==a&&(a.then(ke,ke),a=s),a.status){case"fulfilled":return a.value;case"rejected":throw n=a.reason,Uh(n),n;default:if(typeof a.status=="string")a.then(ke,ke);else{if(n=zt,n!==null&&100<n.shellSuspendCounter)throw Error(i(482));n=a,n.status="pending",n.then(function(c){if(a.status==="pending"){var g=a;g.status="fulfilled",g.value=c}},function(c){if(a.status==="pending"){var g=a;g.status="rejected",g.reason=c}})}switch(a.status){case"fulfilled":return a.value;case"rejected":throw n=a.reason,Uh(n),n}throw yi=a,ts}}function Ei(n){try{var a=n._init;return a(n._payload)}catch(s){throw s!==null&&typeof s=="object"&&typeof s.then=="function"?(yi=s,ts):s}}var yi=null;function Ih(){if(yi===null)throw Error(i(459));var n=yi;return yi=null,n}function Uh(n){if(n===ts||n===To)throw Error(i(483))}var ns=null,el=0;function Oo(n){var a=el;return el+=1,ns===null&&(ns=[]),Ph(ns,n,a)}function tl(n,a){a=a.props.ref,n.ref=a!==void 0?a:null}function zo(n,a){throw a.$$typeof===y?Error(i(525)):(n=Object.prototype.toString.call(a),Error(i(31,n==="[object Object]"?"object with keys {"+Object.keys(a).join(", ")+"}":n)))}function $h(n){function a(X,Q){if(n){var J=X.deletions;J===null?(X.deletions=[Q],X.flags|=16):J.push(Q)}}function s(X,Q){if(!n)return null;for(;Q!==null;)a(X,Q),Q=Q.sibling;return null}function c(X){for(var Q=new Map;X!==null;)X.key!==null?Q.set(X.key,X):Q.set(X.index,X),X=X.sibling;return Q}function g(X,Q){return X=na(X,Q),X.index=0,X.sibling=null,X}function E(X,Q,J){return X.index=J,n?(J=X.alternate,J!==null?(J=J.index,J<Q?(X.flags|=67108866,Q):J):(X.flags|=67108866,Q)):(X.flags|=1048576,Q)}function B(X){return n&&X.alternate===null&&(X.flags|=67108866),X}function M(X,Q,J,de){return Q===null||Q.tag!==6?(Q=Oc(J,X.mode,de),Q.return=X,Q):(Q=g(Q,J),Q.return=X,Q)}function U(X,Q,J,de){var He=J.type;return He===k?ce(X,Q,J.props.children,de,J.key):Q!==null&&(Q.elementType===He||typeof He=="object"&&He!==null&&He.$$typeof===z&&Ei(He)===Q.type)?(Q=g(Q,J.props),tl(Q,J),Q.return=X,Q):(Q=So(J.type,J.key,J.props,null,X.mode,de),tl(Q,J),Q.return=X,Q)}function te(X,Q,J,de){return Q===null||Q.tag!==4||Q.stateNode.containerInfo!==J.containerInfo||Q.stateNode.implementation!==J.implementation?(Q=zc(J,X.mode,de),Q.return=X,Q):(Q=g(Q,J.children||[]),Q.return=X,Q)}function ce(X,Q,J,de,He){return Q===null||Q.tag!==7?(Q=fi(J,X.mode,de,He),Q.return=X,Q):(Q=g(Q,J),Q.return=X,Q)}function fe(X,Q,J){if(typeof Q=="string"&&Q!==""||typeof Q=="number"||typeof Q=="bigint")return Q=Oc(""+Q,X.mode,J),Q.return=X,Q;if(typeof Q=="object"&&Q!==null){switch(Q.$$typeof){case b:return J=So(Q.type,Q.key,Q.props,null,X.mode,J),tl(J,Q),J.return=X,J;case C:return Q=zc(Q,X.mode,J),Q.return=X,Q;case z:return Q=Ei(Q),fe(X,Q,J)}if(K(Q)||G(Q))return Q=fi(Q,X.mode,J,null),Q.return=X,Q;if(typeof Q.then=="function")return fe(X,Oo(Q),J);if(Q.$$typeof===N)return fe(X,Mo(X,Q),J);zo(X,Q)}return null}function re(X,Q,J,de){var He=Q!==null?Q.key:null;if(typeof J=="string"&&J!==""||typeof J=="number"||typeof J=="bigint")return He!==null?null:M(X,Q,""+J,de);if(typeof J=="object"&&J!==null){switch(J.$$typeof){case b:return J.key===He?U(X,Q,J,de):null;case C:return J.key===He?te(X,Q,J,de):null;case z:return J=Ei(J),re(X,Q,J,de)}if(K(J)||G(J))return He!==null?null:ce(X,Q,J,de,null);if(typeof J.then=="function")return re(X,Q,Oo(J),de);if(J.$$typeof===N)return re(X,Q,Mo(X,J),de);zo(X,J)}return null}function oe(X,Q,J,de,He){if(typeof de=="string"&&de!==""||typeof de=="number"||typeof de=="bigint")return X=X.get(J)||null,M(Q,X,""+de,He);if(typeof de=="object"&&de!==null){switch(de.$$typeof){case b:return X=X.get(de.key===null?J:de.key)||null,U(Q,X,de,He);case C:return X=X.get(de.key===null?J:de.key)||null,te(Q,X,de,He);case z:return de=Ei(de),oe(X,Q,J,de,He)}if(K(de)||G(de))return X=X.get(J)||null,ce(Q,X,de,He,null);if(typeof de.then=="function")return oe(X,Q,J,Oo(de),He);if(de.$$typeof===N)return oe(X,Q,J,Mo(Q,de),He);zo(Q,de)}return null}function Te(X,Q,J,de){for(var He=null,yt=null,Pe=Q,rt=Q=0,pt=null;Pe!==null&&rt<J.length;rt++){Pe.index>rt?(pt=Pe,Pe=null):pt=Pe.sibling;var bt=re(X,Pe,J[rt],de);if(bt===null){Pe===null&&(Pe=pt);break}n&&Pe&&bt.alternate===null&&a(X,Pe),Q=E(bt,Q,rt),yt===null?He=bt:yt.sibling=bt,yt=bt,Pe=pt}if(rt===J.length)return s(X,Pe),mt&&ra(X,rt),He;if(Pe===null){for(;rt<J.length;rt++)Pe=fe(X,J[rt],de),Pe!==null&&(Q=E(Pe,Q,rt),yt===null?He=Pe:yt.sibling=Pe,yt=Pe);return mt&&ra(X,rt),He}for(Pe=c(Pe);rt<J.length;rt++)pt=oe(Pe,X,rt,J[rt],de),pt!==null&&(n&&pt.alternate!==null&&Pe.delete(pt.key===null?rt:pt.key),Q=E(pt,Q,rt),yt===null?He=pt:yt.sibling=pt,yt=pt);return n&&Pe.forEach(function(Wa){return a(X,Wa)}),mt&&ra(X,rt),He}function Qe(X,Q,J,de){if(J==null)throw Error(i(151));for(var He=null,yt=null,Pe=Q,rt=Q=0,pt=null,bt=J.next();Pe!==null&&!bt.done;rt++,bt=J.next()){Pe.index>rt?(pt=Pe,Pe=null):pt=Pe.sibling;var Wa=re(X,Pe,bt.value,de);if(Wa===null){Pe===null&&(Pe=pt);break}n&&Pe&&Wa.alternate===null&&a(X,Pe),Q=E(Wa,Q,rt),yt===null?He=Wa:yt.sibling=Wa,yt=Wa,Pe=pt}if(bt.done)return s(X,Pe),mt&&ra(X,rt),He;if(Pe===null){for(;!bt.done;rt++,bt=J.next())bt=fe(X,bt.value,de),bt!==null&&(Q=E(bt,Q,rt),yt===null?He=bt:yt.sibling=bt,yt=bt);return mt&&ra(X,rt),He}for(Pe=c(Pe);!bt.done;rt++,bt=J.next())bt=oe(Pe,X,rt,bt.value,de),bt!==null&&(n&&bt.alternate!==null&&Pe.delete(bt.key===null?rt:bt.key),Q=E(bt,Q,rt),yt===null?He=bt:yt.sibling=bt,yt=bt);return n&&Pe.forEach(function(kb){return a(X,kb)}),mt&&ra(X,rt),He}function Rt(X,Q,J,de){if(typeof J=="object"&&J!==null&&J.type===k&&J.key===null&&(J=J.props.children),typeof J=="object"&&J!==null){switch(J.$$typeof){case b:e:{for(var He=J.key;Q!==null;){if(Q.key===He){if(He=J.type,He===k){if(Q.tag===7){s(X,Q.sibling),de=g(Q,J.props.children),de.return=X,X=de;break e}}else if(Q.elementType===He||typeof He=="object"&&He!==null&&He.$$typeof===z&&Ei(He)===Q.type){s(X,Q.sibling),de=g(Q,J.props),tl(de,J),de.return=X,X=de;break e}s(X,Q);break}else a(X,Q);Q=Q.sibling}J.type===k?(de=fi(J.props.children,X.mode,de,J.key),de.return=X,X=de):(de=So(J.type,J.key,J.props,null,X.mode,de),tl(de,J),de.return=X,X=de)}return B(X);case C:e:{for(He=J.key;Q!==null;){if(Q.key===He)if(Q.tag===4&&Q.stateNode.containerInfo===J.containerInfo&&Q.stateNode.implementation===J.implementation){s(X,Q.sibling),de=g(Q,J.children||[]),de.return=X,X=de;break e}else{s(X,Q);break}else a(X,Q);Q=Q.sibling}de=zc(J,X.mode,de),de.return=X,X=de}return B(X);case z:return J=Ei(J),Rt(X,Q,J,de)}if(K(J))return Te(X,Q,J,de);if(G(J)){if(He=G(J),typeof He!="function")throw Error(i(150));return J=He.call(J),Qe(X,Q,J,de)}if(typeof J.then=="function")return Rt(X,Q,Oo(J),de);if(J.$$typeof===N)return Rt(X,Q,Mo(X,J),de);zo(X,J)}return typeof J=="string"&&J!==""||typeof J=="number"||typeof J=="bigint"?(J=""+J,Q!==null&&Q.tag===6?(s(X,Q.sibling),de=g(Q,J),de.return=X,X=de):(s(X,Q),de=Oc(J,X.mode,de),de.return=X,X=de),B(X)):s(X,Q)}return function(X,Q,J,de){try{el=0;var He=Rt(X,Q,J,de);return ns=null,He}catch(Pe){if(Pe===ts||Pe===To)throw Pe;var yt=nr(29,Pe,null,X.mode);return yt.lanes=de,yt.return=X,yt}}}var bi=$h(!0),Hh=$h(!1),Ta=!1;function Yc(n){n.updateQueue={baseState:n.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Xc(n,a){n=n.updateQueue,a.updateQueue===n&&(a.updateQueue={baseState:n.baseState,firstBaseUpdate:n.firstBaseUpdate,lastBaseUpdate:n.lastBaseUpdate,shared:n.shared,callbacks:null})}function Ra(n){return{lane:n,tag:0,payload:null,callback:null,next:null}}function Oa(n,a,s){var c=n.updateQueue;if(c===null)return null;if(c=c.shared,(At&2)!==0){var g=c.pending;return g===null?a.next=a:(a.next=g.next,g.next=a),c.pending=a,a=Fo(n),Dh(n,null,s),a}return wo(n,c,a,s),Fo(n)}function nl(n,a,s){if(a=a.updateQueue,a!==null&&(a=a.shared,(s&4194048)!==0)){var c=a.lanes;c&=n.pendingLanes,s|=c,a.lanes=s,qe(n,s)}}function Wc(n,a){var s=n.updateQueue,c=n.alternate;if(c!==null&&(c=c.updateQueue,s===c)){var g=null,E=null;if(s=s.firstBaseUpdate,s!==null){do{var B={lane:s.lane,tag:s.tag,payload:s.payload,callback:null,next:null};E===null?g=E=B:E=E.next=B,s=s.next}while(s!==null);E===null?g=E=a:E=E.next=a}else g=E=a;s={baseState:c.baseState,firstBaseUpdate:g,lastBaseUpdate:E,shared:c.shared,callbacks:c.callbacks},n.updateQueue=s;return}n=s.lastBaseUpdate,n===null?s.firstBaseUpdate=a:n.next=a,s.lastBaseUpdate=a}var Zc=!1;function rl(){if(Zc){var n=es;if(n!==null)throw n}}function al(n,a,s,c){Zc=!1;var g=n.updateQueue;Ta=!1;var E=g.firstBaseUpdate,B=g.lastBaseUpdate,M=g.shared.pending;if(M!==null){g.shared.pending=null;var U=M,te=U.next;U.next=null,B===null?E=te:B.next=te,B=U;var ce=n.alternate;ce!==null&&(ce=ce.updateQueue,M=ce.lastBaseUpdate,M!==B&&(M===null?ce.firstBaseUpdate=te:M.next=te,ce.lastBaseUpdate=U))}if(E!==null){var fe=g.baseState;B=0,ce=te=U=null,M=E;do{var re=M.lane&-536870913,oe=re!==M.lane;if(oe?(ht&re)===re:(c&re)===re){re!==0&&re===Ji&&(Zc=!0),ce!==null&&(ce=ce.next={lane:0,tag:M.tag,payload:M.payload,callback:null,next:null});e:{var Te=n,Qe=M;re=a;var Rt=s;switch(Qe.tag){case 1:if(Te=Qe.payload,typeof Te=="function"){fe=Te.call(Rt,fe,re);break e}fe=Te;break e;case 3:Te.flags=Te.flags&-65537|128;case 0:if(Te=Qe.payload,re=typeof Te=="function"?Te.call(Rt,fe,re):Te,re==null)break e;fe=p({},fe,re);break e;case 2:Ta=!0}}re=M.callback,re!==null&&(n.flags|=64,oe&&(n.flags|=8192),oe=g.callbacks,oe===null?g.callbacks=[re]:oe.push(re))}else oe={lane:re,tag:M.tag,payload:M.payload,callback:M.callback,next:null},ce===null?(te=ce=oe,U=fe):ce=ce.next=oe,B|=re;if(M=M.next,M===null){if(M=g.shared.pending,M===null)break;oe=M,M=oe.next,oe.next=null,g.lastBaseUpdate=oe,g.shared.pending=null}}while(!0);ce===null&&(U=fe),g.baseState=U,g.firstBaseUpdate=te,g.lastBaseUpdate=ce,E===null&&(g.shared.lanes=0),Ua|=B,n.lanes=B,n.memoizedState=fe}}function qh(n,a){if(typeof n!="function")throw Error(i(191,n));n.call(a)}function Gh(n,a){var s=n.callbacks;if(s!==null)for(n.callbacks=null,n=0;n<s.length;n++)qh(s[n],a)}var rs=L(null),Lo=L(0);function Vh(n,a){n=ha,R(Lo,n),R(rs,a),ha=n|a.baseLanes}function Jc(){R(Lo,ha),R(rs,rs.current)}function eu(){ha=Lo.current,V(rs),V(Lo)}var rr=L(null),Cr=null;function za(n){var a=n.alternate;R(en,en.current&1),R(rr,n),Cr===null&&(a===null||rs.current!==null||a.memoizedState!==null)&&(Cr=n)}function tu(n){R(en,en.current),R(rr,n),Cr===null&&(Cr=n)}function Qh(n){n.tag===22?(R(en,en.current),R(rr,n),Cr===null&&(Cr=n)):La()}function La(){R(en,en.current),R(rr,rr.current)}function ar(n){V(rr),Cr===n&&(Cr=null),V(en)}var en=L(0);function Po(n){for(var a=n;a!==null;){if(a.tag===13){var s=a.memoizedState;if(s!==null&&(s=s.dehydrated,s===null||lx(s)||ox(s)))return a}else if(a.tag===19&&(a.memoizedProps.revealOrder==="forwards"||a.memoizedProps.revealOrder==="backwards"||a.memoizedProps.revealOrder==="unstable_legacy-backwards"||a.memoizedProps.revealOrder==="together")){if((a.flags&128)!==0)return a}else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===n)break;for(;a.sibling===null;){if(a.return===null||a.return===n)return null;a=a.return}a.sibling.return=a.return,a=a.sibling}return null}var sa=0,et=null,jt=null,cn=null,Io=!1,as=!1,Ci=!1,Uo=0,il=0,is=null,fy=0;function Xt(){throw Error(i(321))}function nu(n,a){if(a===null)return!1;for(var s=0;s<a.length&&s<n.length;s++)if(!tr(n[s],a[s]))return!1;return!0}function ru(n,a,s,c,g,E){return sa=E,et=a,a.memoizedState=null,a.updateQueue=null,a.lanes=0,I.H=n===null||n.memoizedState===null?N1:Eu,Ci=!1,E=s(c,g),Ci=!1,as&&(E=Yh(a,s,c,g)),Kh(n),E}function Kh(n){I.H=ol;var a=jt!==null&&jt.next!==null;if(sa=0,cn=jt=et=null,Io=!1,il=0,is=null,a)throw Error(i(300));n===null||un||(n=n.dependencies,n!==null&&_o(n)&&(un=!0))}function Yh(n,a,s,c){et=n;var g=0;do{if(as&&(is=null),il=0,as=!1,25<=g)throw Error(i(301));if(g+=1,cn=jt=null,n.updateQueue!=null){var E=n.updateQueue;E.lastEffect=null,E.events=null,E.stores=null,E.memoCache!=null&&(E.memoCache.index=0)}I.H=_1,E=a(s,c)}while(as);return E}function hy(){var n=I.H,a=n.useState()[0];return a=typeof a.then=="function"?sl(a):a,n=n.useState()[0],(jt!==null?jt.memoizedState:null)!==n&&(et.flags|=1024),a}function au(){var n=Uo!==0;return Uo=0,n}function iu(n,a,s){a.updateQueue=n.updateQueue,a.flags&=-2053,n.lanes&=~s}function su(n){if(Io){for(n=n.memoizedState;n!==null;){var a=n.queue;a!==null&&(a.pending=null),n=n.next}Io=!1}sa=0,cn=jt=et=null,as=!1,il=Uo=0,is=null}function Pn(){var n={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return cn===null?et.memoizedState=cn=n:cn=cn.next=n,cn}function tn(){if(jt===null){var n=et.alternate;n=n!==null?n.memoizedState:null}else n=jt.next;var a=cn===null?et.memoizedState:cn.next;if(a!==null)cn=a,jt=n;else{if(n===null)throw et.alternate===null?Error(i(467)):Error(i(310));jt=n,n={memoizedState:jt.memoizedState,baseState:jt.baseState,baseQueue:jt.baseQueue,queue:jt.queue,next:null},cn===null?et.memoizedState=cn=n:cn=cn.next=n}return cn}function $o(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function sl(n){var a=il;return il+=1,is===null&&(is=[]),n=Ph(is,n,a),a=et,(cn===null?a.memoizedState:cn.next)===null&&(a=a.alternate,I.H=a===null||a.memoizedState===null?N1:Eu),n}function Ho(n){if(n!==null&&typeof n=="object"){if(typeof n.then=="function")return sl(n);if(n.$$typeof===N)return wn(n)}throw Error(i(438,String(n)))}function lu(n){var a=null,s=et.updateQueue;if(s!==null&&(a=s.memoCache),a==null){var c=et.alternate;c!==null&&(c=c.updateQueue,c!==null&&(c=c.memoCache,c!=null&&(a={data:c.data.map(function(g){return g.slice()}),index:0})))}if(a==null&&(a={data:[],index:0}),s===null&&(s=$o(),et.updateQueue=s),s.memoCache=a,s=a.data[a.index],s===void 0)for(s=a.data[a.index]=Array(n),c=0;c<n;c++)s[c]=T;return a.index++,s}function la(n,a){return typeof a=="function"?a(n):a}function qo(n){var a=tn();return ou(a,jt,n)}function ou(n,a,s){var c=n.queue;if(c===null)throw Error(i(311));c.lastRenderedReducer=s;var g=n.baseQueue,E=c.pending;if(E!==null){if(g!==null){var B=g.next;g.next=E.next,E.next=B}a.baseQueue=g=E,c.pending=null}if(E=n.baseState,g===null)n.memoizedState=E;else{a=g.next;var M=B=null,U=null,te=a,ce=!1;do{var fe=te.lane&-536870913;if(fe!==te.lane?(ht&fe)===fe:(sa&fe)===fe){var re=te.revertLane;if(re===0)U!==null&&(U=U.next={lane:0,revertLane:0,gesture:null,action:te.action,hasEagerState:te.hasEagerState,eagerState:te.eagerState,next:null}),fe===Ji&&(ce=!0);else if((sa&re)===re){te=te.next,re===Ji&&(ce=!0);continue}else fe={lane:0,revertLane:te.revertLane,gesture:null,action:te.action,hasEagerState:te.hasEagerState,eagerState:te.eagerState,next:null},U===null?(M=U=fe,B=E):U=U.next=fe,et.lanes|=re,Ua|=re;fe=te.action,Ci&&s(E,fe),E=te.hasEagerState?te.eagerState:s(E,fe)}else re={lane:fe,revertLane:te.revertLane,gesture:te.gesture,action:te.action,hasEagerState:te.hasEagerState,eagerState:te.eagerState,next:null},U===null?(M=U=re,B=E):U=U.next=re,et.lanes|=fe,Ua|=fe;te=te.next}while(te!==null&&te!==a);if(U===null?B=E:U.next=M,!tr(E,n.memoizedState)&&(un=!0,ce&&(s=es,s!==null)))throw s;n.memoizedState=E,n.baseState=B,n.baseQueue=U,c.lastRenderedState=E}return g===null&&(c.lanes=0),[n.memoizedState,c.dispatch]}function cu(n){var a=tn(),s=a.queue;if(s===null)throw Error(i(311));s.lastRenderedReducer=n;var c=s.dispatch,g=s.pending,E=a.memoizedState;if(g!==null){s.pending=null;var B=g=g.next;do E=n(E,B.action),B=B.next;while(B!==g);tr(E,a.memoizedState)||(un=!0),a.memoizedState=E,a.baseQueue===null&&(a.baseState=E),s.lastRenderedState=E}return[E,c]}function Xh(n,a,s){var c=et,g=tn(),E=mt;if(E){if(s===void 0)throw Error(i(407));s=s()}else s=a();var B=!tr((jt||g).memoizedState,s);if(B&&(g.memoizedState=s,un=!0),g=g.queue,du(Jh.bind(null,c,g,n),[n]),g.getSnapshot!==a||B||cn!==null&&cn.memoizedState.tag&1){if(c.flags|=2048,ss(9,{destroy:void 0},Zh.bind(null,c,g,s,a),null),zt===null)throw Error(i(349));E||(sa&127)!==0||Wh(c,a,s)}return s}function Wh(n,a,s){n.flags|=16384,n={getSnapshot:a,value:s},a=et.updateQueue,a===null?(a=$o(),et.updateQueue=a,a.stores=[n]):(s=a.stores,s===null?a.stores=[n]:s.push(n))}function Zh(n,a,s,c){a.value=s,a.getSnapshot=c,e1(a)&&t1(n)}function Jh(n,a,s){return s(function(){e1(a)&&t1(n)})}function e1(n){var a=n.getSnapshot;n=n.value;try{var s=a();return!tr(n,s)}catch{return!0}}function t1(n){var a=di(n,2);a!==null&&Kn(a,n,2)}function uu(n){var a=Pn();if(typeof n=="function"){var s=n;if(n=s(),Ci){Cn(!0);try{s()}finally{Cn(!1)}}}return a.memoizedState=a.baseState=n,a.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:la,lastRenderedState:n},a}function n1(n,a,s,c){return n.baseState=s,ou(n,jt,typeof c=="function"?c:la)}function py(n,a,s,c,g){if(Qo(n))throw Error(i(485));if(n=a.action,n!==null){var E={payload:g,action:n,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(B){E.listeners.push(B)}};I.T!==null?s(!0):E.isTransition=!1,c(E),s=a.pending,s===null?(E.next=a.pending=E,r1(a,E)):(E.next=s.next,a.pending=s.next=E)}}function r1(n,a){var s=a.action,c=a.payload,g=n.state;if(a.isTransition){var E=I.T,B={};I.T=B;try{var M=s(g,c),U=I.S;U!==null&&U(B,M),a1(n,a,M)}catch(te){xu(n,a,te)}finally{E!==null&&B.types!==null&&(E.types=B.types),I.T=E}}else try{E=s(g,c),a1(n,a,E)}catch(te){xu(n,a,te)}}function a1(n,a,s){s!==null&&typeof s=="object"&&typeof s.then=="function"?s.then(function(c){i1(n,a,c)},function(c){return xu(n,a,c)}):i1(n,a,s)}function i1(n,a,s){a.status="fulfilled",a.value=s,s1(a),n.state=s,a=n.pending,a!==null&&(s=a.next,s===a?n.pending=null:(s=s.next,a.next=s,r1(n,s)))}function xu(n,a,s){var c=n.pending;if(n.pending=null,c!==null){c=c.next;do a.status="rejected",a.reason=s,s1(a),a=a.next;while(a!==c)}n.action=null}function s1(n){n=n.listeners;for(var a=0;a<n.length;a++)(0,n[a])()}function l1(n,a){return a}function o1(n,a){if(mt){var s=zt.formState;if(s!==null){e:{var c=et;if(mt){if($t){t:{for(var g=$t,E=br;g.nodeType!==8;){if(!E){g=null;break t}if(g=vr(g.nextSibling),g===null){g=null;break t}}E=g.data,g=E==="F!"||E==="F"?g:null}if(g){$t=vr(g.nextSibling),c=g.data==="F!";break e}}Ma(c)}c=!1}c&&(a=s[0])}}return s=Pn(),s.memoizedState=s.baseState=a,c={pending:null,lanes:0,dispatch:null,lastRenderedReducer:l1,lastRenderedState:a},s.queue=c,s=w1.bind(null,et,c),c.dispatch=s,c=uu(!1),E=gu.bind(null,et,!1,c.queue),c=Pn(),g={state:a,dispatch:null,action:n,pending:null},c.queue=g,s=py.bind(null,et,g,E,s),g.dispatch=s,c.memoizedState=n,[a,s,!1]}function c1(n){var a=tn();return u1(a,jt,n)}function u1(n,a,s){if(a=ou(n,a,l1)[0],n=qo(la)[0],typeof a=="object"&&a!==null&&typeof a.then=="function")try{var c=sl(a)}catch(B){throw B===ts?To:B}else c=a;a=tn();var g=a.queue,E=g.dispatch;return s!==a.memoizedState&&(et.flags|=2048,ss(9,{destroy:void 0},my.bind(null,g,s),null)),[c,E,n]}function my(n,a){n.action=a}function x1(n){var a=tn(),s=jt;if(s!==null)return u1(a,s,n);tn(),a=a.memoizedState,s=tn();var c=s.queue.dispatch;return s.memoizedState=n,[a,c,!1]}function ss(n,a,s,c){return n={tag:n,create:s,deps:c,inst:a,next:null},a=et.updateQueue,a===null&&(a=$o(),et.updateQueue=a),s=a.lastEffect,s===null?a.lastEffect=n.next=n:(c=s.next,s.next=n,n.next=c,a.lastEffect=n),n}function d1(){return tn().memoizedState}function Go(n,a,s,c){var g=Pn();et.flags|=n,g.memoizedState=ss(1|a,{destroy:void 0},s,c===void 0?null:c)}function Vo(n,a,s,c){var g=tn();c=c===void 0?null:c;var E=g.memoizedState.inst;jt!==null&&c!==null&&nu(c,jt.memoizedState.deps)?g.memoizedState=ss(a,E,s,c):(et.flags|=n,g.memoizedState=ss(1|a,E,s,c))}function f1(n,a){Go(8390656,8,n,a)}function du(n,a){Vo(2048,8,n,a)}function gy(n){et.flags|=4;var a=et.updateQueue;if(a===null)a=$o(),et.updateQueue=a,a.events=[n];else{var s=a.events;s===null?a.events=[n]:s.push(n)}}function h1(n){var a=tn().memoizedState;return gy({ref:a,nextImpl:n}),function(){if((At&2)!==0)throw Error(i(440));return a.impl.apply(void 0,arguments)}}function p1(n,a){return Vo(4,2,n,a)}function m1(n,a){return Vo(4,4,n,a)}function g1(n,a){if(typeof a=="function"){n=n();var s=a(n);return function(){typeof s=="function"?s():a(null)}}if(a!=null)return n=n(),a.current=n,function(){a.current=null}}function E1(n,a,s){s=s!=null?s.concat([n]):null,Vo(4,4,g1.bind(null,a,n),s)}function fu(){}function y1(n,a){var s=tn();a=a===void 0?null:a;var c=s.memoizedState;return a!==null&&nu(a,c[1])?c[0]:(s.memoizedState=[n,a],n)}function b1(n,a){var s=tn();a=a===void 0?null:a;var c=s.memoizedState;if(a!==null&&nu(a,c[1]))return c[0];if(c=n(),Ci){Cn(!0);try{n()}finally{Cn(!1)}}return s.memoizedState=[c,a],c}function hu(n,a,s){return s===void 0||(sa&1073741824)!==0&&(ht&261930)===0?n.memoizedState=a:(n.memoizedState=s,n=Cp(),et.lanes|=n,Ua|=n,s)}function C1(n,a,s,c){return tr(s,a)?s:rs.current!==null?(n=hu(n,s,c),tr(n,a)||(un=!0),n):(sa&42)===0||(sa&1073741824)!==0&&(ht&261930)===0?(un=!0,n.memoizedState=s):(n=Cp(),et.lanes|=n,Ua|=n,a)}function v1(n,a,s,c,g){var E=Y.p;Y.p=E!==0&&8>E?E:8;var B=I.T,M={};I.T=M,gu(n,!1,a,s);try{var U=g(),te=I.S;if(te!==null&&te(M,U),U!==null&&typeof U=="object"&&typeof U.then=="function"){var ce=dy(U,c);ll(n,a,ce,lr(n))}else ll(n,a,c,lr(n))}catch(fe){ll(n,a,{then:function(){},status:"rejected",reason:fe},lr())}finally{Y.p=E,B!==null&&M.types!==null&&(B.types=M.types),I.T=B}}function Ey(){}function pu(n,a,s,c){if(n.tag!==5)throw Error(i(476));var g=k1(n).queue;v1(n,g,a,ie,s===null?Ey:function(){return A1(n),s(c)})}function k1(n){var a=n.memoizedState;if(a!==null)return a;a={memoizedState:ie,baseState:ie,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:la,lastRenderedState:ie},next:null};var s={};return a.next={memoizedState:s,baseState:s,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:la,lastRenderedState:s},next:null},n.memoizedState=a,n=n.alternate,n!==null&&(n.memoizedState=a),a}function A1(n){var a=k1(n);a.next===null&&(a=n.alternate.memoizedState),ll(n,a.next.queue,{},lr())}function mu(){return wn(Al)}function B1(){return tn().memoizedState}function D1(){return tn().memoizedState}function yy(n){for(var a=n.return;a!==null;){switch(a.tag){case 24:case 3:var s=lr();n=Ra(s);var c=Oa(a,n,s);c!==null&&(Kn(c,a,s),nl(c,a,s)),a={cache:Gc()},n.payload=a;return}a=a.return}}function by(n,a,s){var c=lr();s={lane:c,revertLane:0,gesture:null,action:s,hasEagerState:!1,eagerState:null,next:null},Qo(n)?F1(a,s):(s=Tc(n,a,s,c),s!==null&&(Kn(s,n,c),S1(s,a,c)))}function w1(n,a,s){var c=lr();ll(n,a,s,c)}function ll(n,a,s,c){var g={lane:c,revertLane:0,gesture:null,action:s,hasEagerState:!1,eagerState:null,next:null};if(Qo(n))F1(a,g);else{var E=n.alternate;if(n.lanes===0&&(E===null||E.lanes===0)&&(E=a.lastRenderedReducer,E!==null))try{var B=a.lastRenderedState,M=E(B,s);if(g.hasEagerState=!0,g.eagerState=M,tr(M,B))return wo(n,a,g,0),zt===null&&Do(),!1}catch{}if(s=Tc(n,a,g,c),s!==null)return Kn(s,n,c),S1(s,a,c),!0}return!1}function gu(n,a,s,c){if(c={lane:2,revertLane:Yu(),gesture:null,action:c,hasEagerState:!1,eagerState:null,next:null},Qo(n)){if(a)throw Error(i(479))}else a=Tc(n,s,c,2),a!==null&&Kn(a,n,2)}function Qo(n){var a=n.alternate;return n===et||a!==null&&a===et}function F1(n,a){as=Io=!0;var s=n.pending;s===null?a.next=a:(a.next=s.next,s.next=a),n.pending=a}function S1(n,a,s){if((s&4194048)!==0){var c=a.lanes;c&=n.pendingLanes,s|=c,a.lanes=s,qe(n,s)}}var ol={readContext:wn,use:Ho,useCallback:Xt,useContext:Xt,useEffect:Xt,useImperativeHandle:Xt,useLayoutEffect:Xt,useInsertionEffect:Xt,useMemo:Xt,useReducer:Xt,useRef:Xt,useState:Xt,useDebugValue:Xt,useDeferredValue:Xt,useTransition:Xt,useSyncExternalStore:Xt,useId:Xt,useHostTransitionStatus:Xt,useFormState:Xt,useActionState:Xt,useOptimistic:Xt,useMemoCache:Xt,useCacheRefresh:Xt};ol.useEffectEvent=Xt;var N1={readContext:wn,use:Ho,useCallback:function(n,a){return Pn().memoizedState=[n,a===void 0?null:a],n},useContext:wn,useEffect:f1,useImperativeHandle:function(n,a,s){s=s!=null?s.concat([n]):null,Go(4194308,4,g1.bind(null,a,n),s)},useLayoutEffect:function(n,a){return Go(4194308,4,n,a)},useInsertionEffect:function(n,a){Go(4,2,n,a)},useMemo:function(n,a){var s=Pn();a=a===void 0?null:a;var c=n();if(Ci){Cn(!0);try{n()}finally{Cn(!1)}}return s.memoizedState=[c,a],c},useReducer:function(n,a,s){var c=Pn();if(s!==void 0){var g=s(a);if(Ci){Cn(!0);try{s(a)}finally{Cn(!1)}}}else g=a;return c.memoizedState=c.baseState=g,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:n,lastRenderedState:g},c.queue=n,n=n.dispatch=by.bind(null,et,n),[c.memoizedState,n]},useRef:function(n){var a=Pn();return n={current:n},a.memoizedState=n},useState:function(n){n=uu(n);var a=n.queue,s=w1.bind(null,et,a);return a.dispatch=s,[n.memoizedState,s]},useDebugValue:fu,useDeferredValue:function(n,a){var s=Pn();return hu(s,n,a)},useTransition:function(){var n=uu(!1);return n=v1.bind(null,et,n.queue,!0,!1),Pn().memoizedState=n,[!1,n]},useSyncExternalStore:function(n,a,s){var c=et,g=Pn();if(mt){if(s===void 0)throw Error(i(407));s=s()}else{if(s=a(),zt===null)throw Error(i(349));(ht&127)!==0||Wh(c,a,s)}g.memoizedState=s;var E={value:s,getSnapshot:a};return g.queue=E,f1(Jh.bind(null,c,E,n),[n]),c.flags|=2048,ss(9,{destroy:void 0},Zh.bind(null,c,E,s,a),null),s},useId:function(){var n=Pn(),a=zt.identifierPrefix;if(mt){var s=Ur,c=Ir;s=(c&~(1<<32-vt(c)-1)).toString(32)+s,a="_"+a+"R_"+s,s=Uo++,0<s&&(a+="H"+s.toString(32)),a+="_"}else s=fy++,a="_"+a+"r_"+s.toString(32)+"_";return n.memoizedState=a},useHostTransitionStatus:mu,useFormState:o1,useActionState:o1,useOptimistic:function(n){var a=Pn();a.memoizedState=a.baseState=n;var s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return a.queue=s,a=gu.bind(null,et,!0,s),s.dispatch=a,[n,a]},useMemoCache:lu,useCacheRefresh:function(){return Pn().memoizedState=yy.bind(null,et)},useEffectEvent:function(n){var a=Pn(),s={impl:n};return a.memoizedState=s,function(){if((At&2)!==0)throw Error(i(440));return s.impl.apply(void 0,arguments)}}},Eu={readContext:wn,use:Ho,useCallback:y1,useContext:wn,useEffect:du,useImperativeHandle:E1,useInsertionEffect:p1,useLayoutEffect:m1,useMemo:b1,useReducer:qo,useRef:d1,useState:function(){return qo(la)},useDebugValue:fu,useDeferredValue:function(n,a){var s=tn();return C1(s,jt.memoizedState,n,a)},useTransition:function(){var n=qo(la)[0],a=tn().memoizedState;return[typeof n=="boolean"?n:sl(n),a]},useSyncExternalStore:Xh,useId:B1,useHostTransitionStatus:mu,useFormState:c1,useActionState:c1,useOptimistic:function(n,a){var s=tn();return n1(s,jt,n,a)},useMemoCache:lu,useCacheRefresh:D1};Eu.useEffectEvent=h1;var _1={readContext:wn,use:Ho,useCallback:y1,useContext:wn,useEffect:du,useImperativeHandle:E1,useInsertionEffect:p1,useLayoutEffect:m1,useMemo:b1,useReducer:cu,useRef:d1,useState:function(){return cu(la)},useDebugValue:fu,useDeferredValue:function(n,a){var s=tn();return jt===null?hu(s,n,a):C1(s,jt.memoizedState,n,a)},useTransition:function(){var n=cu(la)[0],a=tn().memoizedState;return[typeof n=="boolean"?n:sl(n),a]},useSyncExternalStore:Xh,useId:B1,useHostTransitionStatus:mu,useFormState:x1,useActionState:x1,useOptimistic:function(n,a){var s=tn();return jt!==null?n1(s,jt,n,a):(s.baseState=n,[n,s.queue.dispatch])},useMemoCache:lu,useCacheRefresh:D1};_1.useEffectEvent=h1;function yu(n,a,s,c){a=n.memoizedState,s=s(c,a),s=s==null?a:p({},a,s),n.memoizedState=s,n.lanes===0&&(n.updateQueue.baseState=s)}var bu={enqueueSetState:function(n,a,s){n=n._reactInternals;var c=lr(),g=Ra(c);g.payload=a,s!=null&&(g.callback=s),a=Oa(n,g,c),a!==null&&(Kn(a,n,c),nl(a,n,c))},enqueueReplaceState:function(n,a,s){n=n._reactInternals;var c=lr(),g=Ra(c);g.tag=1,g.payload=a,s!=null&&(g.callback=s),a=Oa(n,g,c),a!==null&&(Kn(a,n,c),nl(a,n,c))},enqueueForceUpdate:function(n,a){n=n._reactInternals;var s=lr(),c=Ra(s);c.tag=2,a!=null&&(c.callback=a),a=Oa(n,c,s),a!==null&&(Kn(a,n,s),nl(a,n,s))}};function M1(n,a,s,c,g,E,B){return n=n.stateNode,typeof n.shouldComponentUpdate=="function"?n.shouldComponentUpdate(c,E,B):a.prototype&&a.prototype.isPureReactComponent?!Ks(s,c)||!Ks(g,E):!0}function j1(n,a,s,c){n=a.state,typeof a.componentWillReceiveProps=="function"&&a.componentWillReceiveProps(s,c),typeof a.UNSAFE_componentWillReceiveProps=="function"&&a.UNSAFE_componentWillReceiveProps(s,c),a.state!==n&&bu.enqueueReplaceState(a,a.state,null)}function vi(n,a){var s=a;if("ref"in a){s={};for(var c in a)c!=="ref"&&(s[c]=a[c])}if(n=n.defaultProps){s===a&&(s=p({},s));for(var g in n)s[g]===void 0&&(s[g]=n[g])}return s}function T1(n){Bo(n)}function R1(n){console.error(n)}function O1(n){Bo(n)}function Ko(n,a){try{var s=n.onUncaughtError;s(a.value,{componentStack:a.stack})}catch(c){setTimeout(function(){throw c})}}function z1(n,a,s){try{var c=n.onCaughtError;c(s.value,{componentStack:s.stack,errorBoundary:a.tag===1?a.stateNode:null})}catch(g){setTimeout(function(){throw g})}}function Cu(n,a,s){return s=Ra(s),s.tag=3,s.payload={element:null},s.callback=function(){Ko(n,a)},s}function L1(n){return n=Ra(n),n.tag=3,n}function P1(n,a,s,c){var g=s.type.getDerivedStateFromError;if(typeof g=="function"){var E=c.value;n.payload=function(){return g(E)},n.callback=function(){z1(a,s,c)}}var B=s.stateNode;B!==null&&typeof B.componentDidCatch=="function"&&(n.callback=function(){z1(a,s,c),typeof g!="function"&&($a===null?$a=new Set([this]):$a.add(this));var M=c.stack;this.componentDidCatch(c.value,{componentStack:M!==null?M:""})})}function Cy(n,a,s,c,g){if(s.flags|=32768,c!==null&&typeof c=="object"&&typeof c.then=="function"){if(a=s.alternate,a!==null&&Zi(a,s,g,!0),s=rr.current,s!==null){switch(s.tag){case 31:case 13:return Cr===null?s0():s.alternate===null&&Wt===0&&(Wt=3),s.flags&=-257,s.flags|=65536,s.lanes=g,c===Ro?s.flags|=16384:(a=s.updateQueue,a===null?s.updateQueue=new Set([c]):a.add(c),Vu(n,c,g)),!1;case 22:return s.flags|=65536,c===Ro?s.flags|=16384:(a=s.updateQueue,a===null?(a={transitions:null,markerInstances:null,retryQueue:new Set([c])},s.updateQueue=a):(s=a.retryQueue,s===null?a.retryQueue=new Set([c]):s.add(c)),Vu(n,c,g)),!1}throw Error(i(435,s.tag))}return Vu(n,c,g),s0(),!1}if(mt)return a=rr.current,a!==null?((a.flags&65536)===0&&(a.flags|=256),a.flags|=65536,a.lanes=g,c!==Ic&&(n=Error(i(422),{cause:c}),Ws(gr(n,s)))):(c!==Ic&&(a=Error(i(423),{cause:c}),Ws(gr(a,s))),n=n.current.alternate,n.flags|=65536,g&=-g,n.lanes|=g,c=gr(c,s),g=Cu(n.stateNode,c,g),Wc(n,g),Wt!==4&&(Wt=2)),!1;var E=Error(i(520),{cause:c});if(E=gr(E,s),ml===null?ml=[E]:ml.push(E),Wt!==4&&(Wt=2),a===null)return!0;c=gr(c,s),s=a;do{switch(s.tag){case 3:return s.flags|=65536,n=g&-g,s.lanes|=n,n=Cu(s.stateNode,c,n),Wc(s,n),!1;case 1:if(a=s.type,E=s.stateNode,(s.flags&128)===0&&(typeof a.getDerivedStateFromError=="function"||E!==null&&typeof E.componentDidCatch=="function"&&($a===null||!$a.has(E))))return s.flags|=65536,g&=-g,s.lanes|=g,g=L1(g),P1(g,n,s,c),Wc(s,g),!1}s=s.return}while(s!==null);return!1}var vu=Error(i(461)),un=!1;function Fn(n,a,s,c){a.child=n===null?Hh(a,null,s,c):bi(a,n.child,s,c)}function I1(n,a,s,c,g){s=s.render;var E=a.ref;if("ref"in c){var B={};for(var M in c)M!=="ref"&&(B[M]=c[M])}else B=c;return mi(a),c=ru(n,a,s,B,E,g),M=au(),n!==null&&!un?(iu(n,a,g),oa(n,a,g)):(mt&&M&&Lc(a),a.flags|=1,Fn(n,a,c,g),a.child)}function U1(n,a,s,c,g){if(n===null){var E=s.type;return typeof E=="function"&&!Rc(E)&&E.defaultProps===void 0&&s.compare===null?(a.tag=15,a.type=E,$1(n,a,E,c,g)):(n=So(s.type,null,c,a,a.mode,g),n.ref=a.ref,n.return=a,a.child=n)}if(E=n.child,!Nu(n,g)){var B=E.memoizedProps;if(s=s.compare,s=s!==null?s:Ks,s(B,c)&&n.ref===a.ref)return oa(n,a,g)}return a.flags|=1,n=na(E,c),n.ref=a.ref,n.return=a,a.child=n}function $1(n,a,s,c,g){if(n!==null){var E=n.memoizedProps;if(Ks(E,c)&&n.ref===a.ref)if(un=!1,a.pendingProps=c=E,Nu(n,g))(n.flags&131072)!==0&&(un=!0);else return a.lanes=n.lanes,oa(n,a,g)}return ku(n,a,s,c,g)}function H1(n,a,s,c){var g=c.children,E=n!==null?n.memoizedState:null;if(n===null&&a.stateNode===null&&(a.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),c.mode==="hidden"){if((a.flags&128)!==0){if(E=E!==null?E.baseLanes|s:s,n!==null){for(c=a.child=n.child,g=0;c!==null;)g=g|c.lanes|c.childLanes,c=c.sibling;c=g&~E}else c=0,a.child=null;return q1(n,a,E,s,c)}if((s&536870912)!==0)a.memoizedState={baseLanes:0,cachePool:null},n!==null&&jo(a,E!==null?E.cachePool:null),E!==null?Vh(a,E):Jc(),Qh(a);else return c=a.lanes=536870912,q1(n,a,E!==null?E.baseLanes|s:s,s,c)}else E!==null?(jo(a,E.cachePool),Vh(a,E),La(),a.memoizedState=null):(n!==null&&jo(a,null),Jc(),La());return Fn(n,a,g,s),a.child}function cl(n,a){return n!==null&&n.tag===22||a.stateNode!==null||(a.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.sibling}function q1(n,a,s,c,g){var E=Qc();return E=E===null?null:{parent:on._currentValue,pool:E},a.memoizedState={baseLanes:s,cachePool:E},n!==null&&jo(a,null),Jc(),Qh(a),n!==null&&Zi(n,a,c,!0),a.childLanes=g,null}function Yo(n,a){return a=Wo({mode:a.mode,children:a.children},n.mode),a.ref=n.ref,n.child=a,a.return=n,a}function G1(n,a,s){return bi(a,n.child,null,s),n=Yo(a,a.pendingProps),n.flags|=2,ar(a),a.memoizedState=null,n}function vy(n,a,s){var c=a.pendingProps,g=(a.flags&128)!==0;if(a.flags&=-129,n===null){if(mt){if(c.mode==="hidden")return n=Yo(a,c),a.lanes=536870912,cl(null,n);if(tu(a),(n=$t)?(n=rm(n,br),n=n!==null&&n.data==="&"?n:null,n!==null&&(a.memoizedState={dehydrated:n,treeContext:Na!==null?{id:Ir,overflow:Ur}:null,retryLane:536870912,hydrationErrors:null},s=Fh(n),s.return=a,a.child=s,Dn=a,$t=null)):n=null,n===null)throw Ma(a);return a.lanes=536870912,null}return Yo(a,c)}var E=n.memoizedState;if(E!==null){var B=E.dehydrated;if(tu(a),g)if(a.flags&256)a.flags&=-257,a=G1(n,a,s);else if(a.memoizedState!==null)a.child=n.child,a.flags|=128,a=null;else throw Error(i(558));else if(un||Zi(n,a,s,!1),g=(s&n.childLanes)!==0,un||g){if(c=zt,c!==null&&(B=Vt(c,s),B!==0&&B!==E.retryLane))throw E.retryLane=B,di(n,B),Kn(c,n,B),vu;s0(),a=G1(n,a,s)}else n=E.treeContext,$t=vr(B.nextSibling),Dn=a,mt=!0,_a=null,br=!1,n!==null&&_h(a,n),a=Yo(a,c),a.flags|=4096;return a}return n=na(n.child,{mode:c.mode,children:c.children}),n.ref=a.ref,a.child=n,n.return=a,n}function Xo(n,a){var s=a.ref;if(s===null)n!==null&&n.ref!==null&&(a.flags|=4194816);else{if(typeof s!="function"&&typeof s!="object")throw Error(i(284));(n===null||n.ref!==s)&&(a.flags|=4194816)}}function ku(n,a,s,c,g){return mi(a),s=ru(n,a,s,c,void 0,g),c=au(),n!==null&&!un?(iu(n,a,g),oa(n,a,g)):(mt&&c&&Lc(a),a.flags|=1,Fn(n,a,s,g),a.child)}function V1(n,a,s,c,g,E){return mi(a),a.updateQueue=null,s=Yh(a,c,s,g),Kh(n),c=au(),n!==null&&!un?(iu(n,a,E),oa(n,a,E)):(mt&&c&&Lc(a),a.flags|=1,Fn(n,a,s,E),a.child)}function Q1(n,a,s,c,g){if(mi(a),a.stateNode===null){var E=Ki,B=s.contextType;typeof B=="object"&&B!==null&&(E=wn(B)),E=new s(c,E),a.memoizedState=E.state!==null&&E.state!==void 0?E.state:null,E.updater=bu,a.stateNode=E,E._reactInternals=a,E=a.stateNode,E.props=c,E.state=a.memoizedState,E.refs={},Yc(a),B=s.contextType,E.context=typeof B=="object"&&B!==null?wn(B):Ki,E.state=a.memoizedState,B=s.getDerivedStateFromProps,typeof B=="function"&&(yu(a,s,B,c),E.state=a.memoizedState),typeof s.getDerivedStateFromProps=="function"||typeof E.getSnapshotBeforeUpdate=="function"||typeof E.UNSAFE_componentWillMount!="function"&&typeof E.componentWillMount!="function"||(B=E.state,typeof E.componentWillMount=="function"&&E.componentWillMount(),typeof E.UNSAFE_componentWillMount=="function"&&E.UNSAFE_componentWillMount(),B!==E.state&&bu.enqueueReplaceState(E,E.state,null),al(a,c,E,g),rl(),E.state=a.memoizedState),typeof E.componentDidMount=="function"&&(a.flags|=4194308),c=!0}else if(n===null){E=a.stateNode;var M=a.memoizedProps,U=vi(s,M);E.props=U;var te=E.context,ce=s.contextType;B=Ki,typeof ce=="object"&&ce!==null&&(B=wn(ce));var fe=s.getDerivedStateFromProps;ce=typeof fe=="function"||typeof E.getSnapshotBeforeUpdate=="function",M=a.pendingProps!==M,ce||typeof E.UNSAFE_componentWillReceiveProps!="function"&&typeof E.componentWillReceiveProps!="function"||(M||te!==B)&&j1(a,E,c,B),Ta=!1;var re=a.memoizedState;E.state=re,al(a,c,E,g),rl(),te=a.memoizedState,M||re!==te||Ta?(typeof fe=="function"&&(yu(a,s,fe,c),te=a.memoizedState),(U=Ta||M1(a,s,U,c,re,te,B))?(ce||typeof E.UNSAFE_componentWillMount!="function"&&typeof E.componentWillMount!="function"||(typeof E.componentWillMount=="function"&&E.componentWillMount(),typeof E.UNSAFE_componentWillMount=="function"&&E.UNSAFE_componentWillMount()),typeof E.componentDidMount=="function"&&(a.flags|=4194308)):(typeof E.componentDidMount=="function"&&(a.flags|=4194308),a.memoizedProps=c,a.memoizedState=te),E.props=c,E.state=te,E.context=B,c=U):(typeof E.componentDidMount=="function"&&(a.flags|=4194308),c=!1)}else{E=a.stateNode,Xc(n,a),B=a.memoizedProps,ce=vi(s,B),E.props=ce,fe=a.pendingProps,re=E.context,te=s.contextType,U=Ki,typeof te=="object"&&te!==null&&(U=wn(te)),M=s.getDerivedStateFromProps,(te=typeof M=="function"||typeof E.getSnapshotBeforeUpdate=="function")||typeof E.UNSAFE_componentWillReceiveProps!="function"&&typeof E.componentWillReceiveProps!="function"||(B!==fe||re!==U)&&j1(a,E,c,U),Ta=!1,re=a.memoizedState,E.state=re,al(a,c,E,g),rl();var oe=a.memoizedState;B!==fe||re!==oe||Ta||n!==null&&n.dependencies!==null&&_o(n.dependencies)?(typeof M=="function"&&(yu(a,s,M,c),oe=a.memoizedState),(ce=Ta||M1(a,s,ce,c,re,oe,U)||n!==null&&n.dependencies!==null&&_o(n.dependencies))?(te||typeof E.UNSAFE_componentWillUpdate!="function"&&typeof E.componentWillUpdate!="function"||(typeof E.componentWillUpdate=="function"&&E.componentWillUpdate(c,oe,U),typeof E.UNSAFE_componentWillUpdate=="function"&&E.UNSAFE_componentWillUpdate(c,oe,U)),typeof E.componentDidUpdate=="function"&&(a.flags|=4),typeof E.getSnapshotBeforeUpdate=="function"&&(a.flags|=1024)):(typeof E.componentDidUpdate!="function"||B===n.memoizedProps&&re===n.memoizedState||(a.flags|=4),typeof E.getSnapshotBeforeUpdate!="function"||B===n.memoizedProps&&re===n.memoizedState||(a.flags|=1024),a.memoizedProps=c,a.memoizedState=oe),E.props=c,E.state=oe,E.context=U,c=ce):(typeof E.componentDidUpdate!="function"||B===n.memoizedProps&&re===n.memoizedState||(a.flags|=4),typeof E.getSnapshotBeforeUpdate!="function"||B===n.memoizedProps&&re===n.memoizedState||(a.flags|=1024),c=!1)}return E=c,Xo(n,a),c=(a.flags&128)!==0,E||c?(E=a.stateNode,s=c&&typeof s.getDerivedStateFromError!="function"?null:E.render(),a.flags|=1,n!==null&&c?(a.child=bi(a,n.child,null,g),a.child=bi(a,null,s,g)):Fn(n,a,s,g),a.memoizedState=E.state,n=a.child):n=oa(n,a,g),n}function K1(n,a,s,c){return hi(),a.flags|=256,Fn(n,a,s,c),a.child}var Au={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Bu(n){return{baseLanes:n,cachePool:zh()}}function Du(n,a,s){return n=n!==null?n.childLanes&~s:0,a&&(n|=sr),n}function Y1(n,a,s){var c=a.pendingProps,g=!1,E=(a.flags&128)!==0,B;if((B=E)||(B=n!==null&&n.memoizedState===null?!1:(en.current&2)!==0),B&&(g=!0,a.flags&=-129),B=(a.flags&32)!==0,a.flags&=-33,n===null){if(mt){if(g?za(a):La(),(n=$t)?(n=rm(n,br),n=n!==null&&n.data!=="&"?n:null,n!==null&&(a.memoizedState={dehydrated:n,treeContext:Na!==null?{id:Ir,overflow:Ur}:null,retryLane:536870912,hydrationErrors:null},s=Fh(n),s.return=a,a.child=s,Dn=a,$t=null)):n=null,n===null)throw Ma(a);return ox(n)?a.lanes=32:a.lanes=536870912,null}var M=c.children;return c=c.fallback,g?(La(),g=a.mode,M=Wo({mode:"hidden",children:M},g),c=fi(c,g,s,null),M.return=a,c.return=a,M.sibling=c,a.child=M,c=a.child,c.memoizedState=Bu(s),c.childLanes=Du(n,B,s),a.memoizedState=Au,cl(null,c)):(za(a),wu(a,M))}var U=n.memoizedState;if(U!==null&&(M=U.dehydrated,M!==null)){if(E)a.flags&256?(za(a),a.flags&=-257,a=Fu(n,a,s)):a.memoizedState!==null?(La(),a.child=n.child,a.flags|=128,a=null):(La(),M=c.fallback,g=a.mode,c=Wo({mode:"visible",children:c.children},g),M=fi(M,g,s,null),M.flags|=2,c.return=a,M.return=a,c.sibling=M,a.child=c,bi(a,n.child,null,s),c=a.child,c.memoizedState=Bu(s),c.childLanes=Du(n,B,s),a.memoizedState=Au,a=cl(null,c));else if(za(a),ox(M)){if(B=M.nextSibling&&M.nextSibling.dataset,B)var te=B.dgst;B=te,c=Error(i(419)),c.stack="",c.digest=B,Ws({value:c,source:null,stack:null}),a=Fu(n,a,s)}else if(un||Zi(n,a,s,!1),B=(s&n.childLanes)!==0,un||B){if(B=zt,B!==null&&(c=Vt(B,s),c!==0&&c!==U.retryLane))throw U.retryLane=c,di(n,c),Kn(B,n,c),vu;lx(M)||s0(),a=Fu(n,a,s)}else lx(M)?(a.flags|=192,a.child=n.child,a=null):(n=U.treeContext,$t=vr(M.nextSibling),Dn=a,mt=!0,_a=null,br=!1,n!==null&&_h(a,n),a=wu(a,c.children),a.flags|=4096);return a}return g?(La(),M=c.fallback,g=a.mode,U=n.child,te=U.sibling,c=na(U,{mode:"hidden",children:c.children}),c.subtreeFlags=U.subtreeFlags&65011712,te!==null?M=na(te,M):(M=fi(M,g,s,null),M.flags|=2),M.return=a,c.return=a,c.sibling=M,a.child=c,cl(null,c),c=a.child,M=n.child.memoizedState,M===null?M=Bu(s):(g=M.cachePool,g!==null?(U=on._currentValue,g=g.parent!==U?{parent:U,pool:U}:g):g=zh(),M={baseLanes:M.baseLanes|s,cachePool:g}),c.memoizedState=M,c.childLanes=Du(n,B,s),a.memoizedState=Au,cl(n.child,c)):(za(a),s=n.child,n=s.sibling,s=na(s,{mode:"visible",children:c.children}),s.return=a,s.sibling=null,n!==null&&(B=a.deletions,B===null?(a.deletions=[n],a.flags|=16):B.push(n)),a.child=s,a.memoizedState=null,s)}function wu(n,a){return a=Wo({mode:"visible",children:a},n.mode),a.return=n,n.child=a}function Wo(n,a){return n=nr(22,n,null,a),n.lanes=0,n}function Fu(n,a,s){return bi(a,n.child,null,s),n=wu(a,a.pendingProps.children),n.flags|=2,a.memoizedState=null,n}function X1(n,a,s){n.lanes|=a;var c=n.alternate;c!==null&&(c.lanes|=a),Hc(n.return,a,s)}function Su(n,a,s,c,g,E){var B=n.memoizedState;B===null?n.memoizedState={isBackwards:a,rendering:null,renderingStartTime:0,last:c,tail:s,tailMode:g,treeForkCount:E}:(B.isBackwards=a,B.rendering=null,B.renderingStartTime=0,B.last=c,B.tail=s,B.tailMode=g,B.treeForkCount=E)}function W1(n,a,s){var c=a.pendingProps,g=c.revealOrder,E=c.tail;c=c.children;var B=en.current,M=(B&2)!==0;if(M?(B=B&1|2,a.flags|=128):B&=1,R(en,B),Fn(n,a,c,s),c=mt?Xs:0,!M&&n!==null&&(n.flags&128)!==0)e:for(n=a.child;n!==null;){if(n.tag===13)n.memoizedState!==null&&X1(n,s,a);else if(n.tag===19)X1(n,s,a);else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===a)break e;for(;n.sibling===null;){if(n.return===null||n.return===a)break e;n=n.return}n.sibling.return=n.return,n=n.sibling}switch(g){case"forwards":for(s=a.child,g=null;s!==null;)n=s.alternate,n!==null&&Po(n)===null&&(g=s),s=s.sibling;s=g,s===null?(g=a.child,a.child=null):(g=s.sibling,s.sibling=null),Su(a,!1,g,s,E,c);break;case"backwards":case"unstable_legacy-backwards":for(s=null,g=a.child,a.child=null;g!==null;){if(n=g.alternate,n!==null&&Po(n)===null){a.child=g;break}n=g.sibling,g.sibling=s,s=g,g=n}Su(a,!0,s,null,E,c);break;case"together":Su(a,!1,null,null,void 0,c);break;default:a.memoizedState=null}return a.child}function oa(n,a,s){if(n!==null&&(a.dependencies=n.dependencies),Ua|=a.lanes,(s&a.childLanes)===0)if(n!==null){if(Zi(n,a,s,!1),(s&a.childLanes)===0)return null}else return null;if(n!==null&&a.child!==n.child)throw Error(i(153));if(a.child!==null){for(n=a.child,s=na(n,n.pendingProps),a.child=s,s.return=a;n.sibling!==null;)n=n.sibling,s=s.sibling=na(n,n.pendingProps),s.return=a;s.sibling=null}return a.child}function Nu(n,a){return(n.lanes&a)!==0?!0:(n=n.dependencies,!!(n!==null&&_o(n)))}function ky(n,a,s){switch(a.tag){case 3:Ue(a,a.stateNode.containerInfo),ja(a,on,n.memoizedState.cache),hi();break;case 27:case 5:tt(a);break;case 4:Ue(a,a.stateNode.containerInfo);break;case 10:ja(a,a.type,a.memoizedProps.value);break;case 31:if(a.memoizedState!==null)return a.flags|=128,tu(a),null;break;case 13:var c=a.memoizedState;if(c!==null)return c.dehydrated!==null?(za(a),a.flags|=128,null):(s&a.child.childLanes)!==0?Y1(n,a,s):(za(a),n=oa(n,a,s),n!==null?n.sibling:null);za(a);break;case 19:var g=(n.flags&128)!==0;if(c=(s&a.childLanes)!==0,c||(Zi(n,a,s,!1),c=(s&a.childLanes)!==0),g){if(c)return W1(n,a,s);a.flags|=128}if(g=a.memoizedState,g!==null&&(g.rendering=null,g.tail=null,g.lastEffect=null),R(en,en.current),c)break;return null;case 22:return a.lanes=0,H1(n,a,s,a.pendingProps);case 24:ja(a,on,n.memoizedState.cache)}return oa(n,a,s)}function Z1(n,a,s){if(n!==null)if(n.memoizedProps!==a.pendingProps)un=!0;else{if(!Nu(n,s)&&(a.flags&128)===0)return un=!1,ky(n,a,s);un=(n.flags&131072)!==0}else un=!1,mt&&(a.flags&1048576)!==0&&Nh(a,Xs,a.index);switch(a.lanes=0,a.tag){case 16:e:{var c=a.pendingProps;if(n=Ei(a.elementType),a.type=n,typeof n=="function")Rc(n)?(c=vi(n,c),a.tag=1,a=Q1(null,a,n,c,s)):(a.tag=0,a=ku(null,a,n,c,s));else{if(n!=null){var g=n.$$typeof;if(g===_){a.tag=11,a=I1(null,a,n,c,s);break e}else if(g===O){a.tag=14,a=U1(null,a,n,c,s);break e}}throw a=ee(n)||n,Error(i(306,a,""))}}return a;case 0:return ku(n,a,a.type,a.pendingProps,s);case 1:return c=a.type,g=vi(c,a.pendingProps),Q1(n,a,c,g,s);case 3:e:{if(Ue(a,a.stateNode.containerInfo),n===null)throw Error(i(387));c=a.pendingProps;var E=a.memoizedState;g=E.element,Xc(n,a),al(a,c,null,s);var B=a.memoizedState;if(c=B.cache,ja(a,on,c),c!==E.cache&&qc(a,[on],s,!0),rl(),c=B.element,E.isDehydrated)if(E={element:c,isDehydrated:!1,cache:B.cache},a.updateQueue.baseState=E,a.memoizedState=E,a.flags&256){a=K1(n,a,c,s);break e}else if(c!==g){g=gr(Error(i(424)),a),Ws(g),a=K1(n,a,c,s);break e}else for(n=a.stateNode.containerInfo,n.nodeType===9?n=n.body:n=n.nodeName==="HTML"?n.ownerDocument.body:n,$t=vr(n.firstChild),Dn=a,mt=!0,_a=null,br=!0,s=Hh(a,null,c,s),a.child=s;s;)s.flags=s.flags&-3|4096,s=s.sibling;else{if(hi(),c===g){a=oa(n,a,s);break e}Fn(n,a,c,s)}a=a.child}return a;case 26:return Xo(n,a),n===null?(s=cm(a.type,null,a.pendingProps,null))?a.memoizedState=s:mt||(s=a.type,n=a.pendingProps,c=f0(W.current).createElement(s),c[it]=a,c[an]=n,Sn(c,s,n),sn(c),a.stateNode=c):a.memoizedState=cm(a.type,n.memoizedProps,a.pendingProps,n.memoizedState),null;case 27:return tt(a),n===null&&mt&&(c=a.stateNode=sm(a.type,a.pendingProps,W.current),Dn=a,br=!0,g=$t,Va(a.type)?(cx=g,$t=vr(c.firstChild)):$t=g),Fn(n,a,a.pendingProps.children,s),Xo(n,a),n===null&&(a.flags|=4194304),a.child;case 5:return n===null&&mt&&((g=c=$t)&&(c=Jy(c,a.type,a.pendingProps,br),c!==null?(a.stateNode=c,Dn=a,$t=vr(c.firstChild),br=!1,g=!0):g=!1),g||Ma(a)),tt(a),g=a.type,E=a.pendingProps,B=n!==null?n.memoizedProps:null,c=E.children,ax(g,E)?c=null:B!==null&&ax(g,B)&&(a.flags|=32),a.memoizedState!==null&&(g=ru(n,a,hy,null,null,s),Al._currentValue=g),Xo(n,a),Fn(n,a,c,s),a.child;case 6:return n===null&&mt&&((n=s=$t)&&(s=eb(s,a.pendingProps,br),s!==null?(a.stateNode=s,Dn=a,$t=null,n=!0):n=!1),n||Ma(a)),null;case 13:return Y1(n,a,s);case 4:return Ue(a,a.stateNode.containerInfo),c=a.pendingProps,n===null?a.child=bi(a,null,c,s):Fn(n,a,c,s),a.child;case 11:return I1(n,a,a.type,a.pendingProps,s);case 7:return Fn(n,a,a.pendingProps,s),a.child;case 8:return Fn(n,a,a.pendingProps.children,s),a.child;case 12:return Fn(n,a,a.pendingProps.children,s),a.child;case 10:return c=a.pendingProps,ja(a,a.type,c.value),Fn(n,a,c.children,s),a.child;case 9:return g=a.type._context,c=a.pendingProps.children,mi(a),g=wn(g),c=c(g),a.flags|=1,Fn(n,a,c,s),a.child;case 14:return U1(n,a,a.type,a.pendingProps,s);case 15:return $1(n,a,a.type,a.pendingProps,s);case 19:return W1(n,a,s);case 31:return vy(n,a,s);case 22:return H1(n,a,s,a.pendingProps);case 24:return mi(a),c=wn(on),n===null?(g=Qc(),g===null&&(g=zt,E=Gc(),g.pooledCache=E,E.refCount++,E!==null&&(g.pooledCacheLanes|=s),g=E),a.memoizedState={parent:c,cache:g},Yc(a),ja(a,on,g)):((n.lanes&s)!==0&&(Xc(n,a),al(a,null,null,s),rl()),g=n.memoizedState,E=a.memoizedState,g.parent!==c?(g={parent:c,cache:c},a.memoizedState=g,a.lanes===0&&(a.memoizedState=a.updateQueue.baseState=g),ja(a,on,c)):(c=E.cache,ja(a,on,c),c!==g.cache&&qc(a,[on],s,!0))),Fn(n,a,a.pendingProps.children,s),a.child;case 29:throw a.pendingProps}throw Error(i(156,a.tag))}function ca(n){n.flags|=4}function _u(n,a,s,c,g){if((a=(n.mode&32)!==0)&&(a=!1),a){if(n.flags|=16777216,(g&335544128)===g)if(n.stateNode.complete)n.flags|=8192;else if(Bp())n.flags|=8192;else throw yi=Ro,Kc}else n.flags&=-16777217}function J1(n,a){if(a.type!=="stylesheet"||(a.state.loading&4)!==0)n.flags&=-16777217;else if(n.flags|=16777216,!hm(a))if(Bp())n.flags|=8192;else throw yi=Ro,Kc}function Zo(n,a){a!==null&&(n.flags|=4),n.flags&16384&&(a=n.tag!==22?Ke():536870912,n.lanes|=a,us|=a)}function ul(n,a){if(!mt)switch(n.tailMode){case"hidden":a=n.tail;for(var s=null;a!==null;)a.alternate!==null&&(s=a),a=a.sibling;s===null?n.tail=null:s.sibling=null;break;case"collapsed":s=n.tail;for(var c=null;s!==null;)s.alternate!==null&&(c=s),s=s.sibling;c===null?a||n.tail===null?n.tail=null:n.tail.sibling=null:c.sibling=null}}function Ht(n){var a=n.alternate!==null&&n.alternate.child===n.child,s=0,c=0;if(a)for(var g=n.child;g!==null;)s|=g.lanes|g.childLanes,c|=g.subtreeFlags&65011712,c|=g.flags&65011712,g.return=n,g=g.sibling;else for(g=n.child;g!==null;)s|=g.lanes|g.childLanes,c|=g.subtreeFlags,c|=g.flags,g.return=n,g=g.sibling;return n.subtreeFlags|=c,n.childLanes=s,a}function Ay(n,a,s){var c=a.pendingProps;switch(Pc(a),a.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ht(a),null;case 1:return Ht(a),null;case 3:return s=a.stateNode,c=null,n!==null&&(c=n.memoizedState.cache),a.memoizedState.cache!==c&&(a.flags|=2048),ia(on),Be(),s.pendingContext&&(s.context=s.pendingContext,s.pendingContext=null),(n===null||n.child===null)&&(Wi(a)?ca(a):n===null||n.memoizedState.isDehydrated&&(a.flags&256)===0||(a.flags|=1024,Uc())),Ht(a),null;case 26:var g=a.type,E=a.memoizedState;return n===null?(ca(a),E!==null?(Ht(a),J1(a,E)):(Ht(a),_u(a,g,null,c,s))):E?E!==n.memoizedState?(ca(a),Ht(a),J1(a,E)):(Ht(a),a.flags&=-16777217):(n=n.memoizedProps,n!==c&&ca(a),Ht(a),_u(a,g,n,c,s)),null;case 27:if(ct(a),s=W.current,g=a.type,n!==null&&a.stateNode!=null)n.memoizedProps!==c&&ca(a);else{if(!c){if(a.stateNode===null)throw Error(i(166));return Ht(a),null}n=se.current,Wi(a)?Mh(a):(n=sm(g,c,s),a.stateNode=n,ca(a))}return Ht(a),null;case 5:if(ct(a),g=a.type,n!==null&&a.stateNode!=null)n.memoizedProps!==c&&ca(a);else{if(!c){if(a.stateNode===null)throw Error(i(166));return Ht(a),null}if(E=se.current,Wi(a))Mh(a);else{var B=f0(W.current);switch(E){case 1:E=B.createElementNS("http://www.w3.org/2000/svg",g);break;case 2:E=B.createElementNS("http://www.w3.org/1998/Math/MathML",g);break;default:switch(g){case"svg":E=B.createElementNS("http://www.w3.org/2000/svg",g);break;case"math":E=B.createElementNS("http://www.w3.org/1998/Math/MathML",g);break;case"script":E=B.createElement("div"),E.innerHTML="<script><\/script>",E=E.removeChild(E.firstChild);break;case"select":E=typeof c.is=="string"?B.createElement("select",{is:c.is}):B.createElement("select"),c.multiple?E.multiple=!0:c.size&&(E.size=c.size);break;default:E=typeof c.is=="string"?B.createElement(g,{is:c.is}):B.createElement(g)}}E[it]=a,E[an]=c;e:for(B=a.child;B!==null;){if(B.tag===5||B.tag===6)E.appendChild(B.stateNode);else if(B.tag!==4&&B.tag!==27&&B.child!==null){B.child.return=B,B=B.child;continue}if(B===a)break e;for(;B.sibling===null;){if(B.return===null||B.return===a)break e;B=B.return}B.sibling.return=B.return,B=B.sibling}a.stateNode=E;e:switch(Sn(E,g,c),g){case"button":case"input":case"select":case"textarea":c=!!c.autoFocus;break e;case"img":c=!0;break e;default:c=!1}c&&ca(a)}}return Ht(a),_u(a,a.type,n===null?null:n.memoizedProps,a.pendingProps,s),null;case 6:if(n&&a.stateNode!=null)n.memoizedProps!==c&&ca(a);else{if(typeof c!="string"&&a.stateNode===null)throw Error(i(166));if(n=W.current,Wi(a)){if(n=a.stateNode,s=a.memoizedProps,c=null,g=Dn,g!==null)switch(g.tag){case 27:case 5:c=g.memoizedProps}n[it]=a,n=!!(n.nodeValue===s||c!==null&&c.suppressHydrationWarning===!0||Yp(n.nodeValue,s)),n||Ma(a,!0)}else n=f0(n).createTextNode(c),n[it]=a,a.stateNode=n}return Ht(a),null;case 31:if(s=a.memoizedState,n===null||n.memoizedState!==null){if(c=Wi(a),s!==null){if(n===null){if(!c)throw Error(i(318));if(n=a.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(i(557));n[it]=a}else hi(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;Ht(a),n=!1}else s=Uc(),n!==null&&n.memoizedState!==null&&(n.memoizedState.hydrationErrors=s),n=!0;if(!n)return a.flags&256?(ar(a),a):(ar(a),null);if((a.flags&128)!==0)throw Error(i(558))}return Ht(a),null;case 13:if(c=a.memoizedState,n===null||n.memoizedState!==null&&n.memoizedState.dehydrated!==null){if(g=Wi(a),c!==null&&c.dehydrated!==null){if(n===null){if(!g)throw Error(i(318));if(g=a.memoizedState,g=g!==null?g.dehydrated:null,!g)throw Error(i(317));g[it]=a}else hi(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;Ht(a),g=!1}else g=Uc(),n!==null&&n.memoizedState!==null&&(n.memoizedState.hydrationErrors=g),g=!0;if(!g)return a.flags&256?(ar(a),a):(ar(a),null)}return ar(a),(a.flags&128)!==0?(a.lanes=s,a):(s=c!==null,n=n!==null&&n.memoizedState!==null,s&&(c=a.child,g=null,c.alternate!==null&&c.alternate.memoizedState!==null&&c.alternate.memoizedState.cachePool!==null&&(g=c.alternate.memoizedState.cachePool.pool),E=null,c.memoizedState!==null&&c.memoizedState.cachePool!==null&&(E=c.memoizedState.cachePool.pool),E!==g&&(c.flags|=2048)),s!==n&&s&&(a.child.flags|=8192),Zo(a,a.updateQueue),Ht(a),null);case 4:return Be(),n===null&&Ju(a.stateNode.containerInfo),Ht(a),null;case 10:return ia(a.type),Ht(a),null;case 19:if(V(en),c=a.memoizedState,c===null)return Ht(a),null;if(g=(a.flags&128)!==0,E=c.rendering,E===null)if(g)ul(c,!1);else{if(Wt!==0||n!==null&&(n.flags&128)!==0)for(n=a.child;n!==null;){if(E=Po(n),E!==null){for(a.flags|=128,ul(c,!1),n=E.updateQueue,a.updateQueue=n,Zo(a,n),a.subtreeFlags=0,n=s,s=a.child;s!==null;)wh(s,n),s=s.sibling;return R(en,en.current&1|2),mt&&ra(a,c.treeForkCount),a.child}n=n.sibling}c.tail!==null&&Ne()>r0&&(a.flags|=128,g=!0,ul(c,!1),a.lanes=4194304)}else{if(!g)if(n=Po(E),n!==null){if(a.flags|=128,g=!0,n=n.updateQueue,a.updateQueue=n,Zo(a,n),ul(c,!0),c.tail===null&&c.tailMode==="hidden"&&!E.alternate&&!mt)return Ht(a),null}else 2*Ne()-c.renderingStartTime>r0&&s!==536870912&&(a.flags|=128,g=!0,ul(c,!1),a.lanes=4194304);c.isBackwards?(E.sibling=a.child,a.child=E):(n=c.last,n!==null?n.sibling=E:a.child=E,c.last=E)}return c.tail!==null?(n=c.tail,c.rendering=n,c.tail=n.sibling,c.renderingStartTime=Ne(),n.sibling=null,s=en.current,R(en,g?s&1|2:s&1),mt&&ra(a,c.treeForkCount),n):(Ht(a),null);case 22:case 23:return ar(a),eu(),c=a.memoizedState!==null,n!==null?n.memoizedState!==null!==c&&(a.flags|=8192):c&&(a.flags|=8192),c?(s&536870912)!==0&&(a.flags&128)===0&&(Ht(a),a.subtreeFlags&6&&(a.flags|=8192)):Ht(a),s=a.updateQueue,s!==null&&Zo(a,s.retryQueue),s=null,n!==null&&n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(s=n.memoizedState.cachePool.pool),c=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(c=a.memoizedState.cachePool.pool),c!==s&&(a.flags|=2048),n!==null&&V(gi),null;case 24:return s=null,n!==null&&(s=n.memoizedState.cache),a.memoizedState.cache!==s&&(a.flags|=2048),ia(on),Ht(a),null;case 25:return null;case 30:return null}throw Error(i(156,a.tag))}function By(n,a){switch(Pc(a),a.tag){case 1:return n=a.flags,n&65536?(a.flags=n&-65537|128,a):null;case 3:return ia(on),Be(),n=a.flags,(n&65536)!==0&&(n&128)===0?(a.flags=n&-65537|128,a):null;case 26:case 27:case 5:return ct(a),null;case 31:if(a.memoizedState!==null){if(ar(a),a.alternate===null)throw Error(i(340));hi()}return n=a.flags,n&65536?(a.flags=n&-65537|128,a):null;case 13:if(ar(a),n=a.memoizedState,n!==null&&n.dehydrated!==null){if(a.alternate===null)throw Error(i(340));hi()}return n=a.flags,n&65536?(a.flags=n&-65537|128,a):null;case 19:return V(en),null;case 4:return Be(),null;case 10:return ia(a.type),null;case 22:case 23:return ar(a),eu(),n!==null&&V(gi),n=a.flags,n&65536?(a.flags=n&-65537|128,a):null;case 24:return ia(on),null;case 25:return null;default:return null}}function ep(n,a){switch(Pc(a),a.tag){case 3:ia(on),Be();break;case 26:case 27:case 5:ct(a);break;case 4:Be();break;case 31:a.memoizedState!==null&&ar(a);break;case 13:ar(a);break;case 19:V(en);break;case 10:ia(a.type);break;case 22:case 23:ar(a),eu(),n!==null&&V(gi);break;case 24:ia(on)}}function xl(n,a){try{var s=a.updateQueue,c=s!==null?s.lastEffect:null;if(c!==null){var g=c.next;s=g;do{if((s.tag&n)===n){c=void 0;var E=s.create,B=s.inst;c=E(),B.destroy=c}s=s.next}while(s!==g)}}catch(M){St(a,a.return,M)}}function Pa(n,a,s){try{var c=a.updateQueue,g=c!==null?c.lastEffect:null;if(g!==null){var E=g.next;c=E;do{if((c.tag&n)===n){var B=c.inst,M=B.destroy;if(M!==void 0){B.destroy=void 0,g=a;var U=s,te=M;try{te()}catch(ce){St(g,U,ce)}}}c=c.next}while(c!==E)}}catch(ce){St(a,a.return,ce)}}function tp(n){var a=n.updateQueue;if(a!==null){var s=n.stateNode;try{Gh(a,s)}catch(c){St(n,n.return,c)}}}function np(n,a,s){s.props=vi(n.type,n.memoizedProps),s.state=n.memoizedState;try{s.componentWillUnmount()}catch(c){St(n,a,c)}}function dl(n,a){try{var s=n.ref;if(s!==null){switch(n.tag){case 26:case 27:case 5:var c=n.stateNode;break;case 30:c=n.stateNode;break;default:c=n.stateNode}typeof s=="function"?n.refCleanup=s(c):s.current=c}}catch(g){St(n,a,g)}}function $r(n,a){var s=n.ref,c=n.refCleanup;if(s!==null)if(typeof c=="function")try{c()}catch(g){St(n,a,g)}finally{n.refCleanup=null,n=n.alternate,n!=null&&(n.refCleanup=null)}else if(typeof s=="function")try{s(null)}catch(g){St(n,a,g)}else s.current=null}function rp(n){var a=n.type,s=n.memoizedProps,c=n.stateNode;try{e:switch(a){case"button":case"input":case"select":case"textarea":s.autoFocus&&c.focus();break e;case"img":s.src?c.src=s.src:s.srcSet&&(c.srcset=s.srcSet)}}catch(g){St(n,n.return,g)}}function Mu(n,a,s){try{var c=n.stateNode;Qy(c,n.type,s,a),c[an]=a}catch(g){St(n,n.return,g)}}function ap(n){return n.tag===5||n.tag===3||n.tag===26||n.tag===27&&Va(n.type)||n.tag===4}function ju(n){e:for(;;){for(;n.sibling===null;){if(n.return===null||ap(n.return))return null;n=n.return}for(n.sibling.return=n.return,n=n.sibling;n.tag!==5&&n.tag!==6&&n.tag!==18;){if(n.tag===27&&Va(n.type)||n.flags&2||n.child===null||n.tag===4)continue e;n.child.return=n,n=n.child}if(!(n.flags&2))return n.stateNode}}function Tu(n,a,s){var c=n.tag;if(c===5||c===6)n=n.stateNode,a?(s.nodeType===9?s.body:s.nodeName==="HTML"?s.ownerDocument.body:s).insertBefore(n,a):(a=s.nodeType===9?s.body:s.nodeName==="HTML"?s.ownerDocument.body:s,a.appendChild(n),s=s._reactRootContainer,s!=null||a.onclick!==null||(a.onclick=ke));else if(c!==4&&(c===27&&Va(n.type)&&(s=n.stateNode,a=null),n=n.child,n!==null))for(Tu(n,a,s),n=n.sibling;n!==null;)Tu(n,a,s),n=n.sibling}function Jo(n,a,s){var c=n.tag;if(c===5||c===6)n=n.stateNode,a?s.insertBefore(n,a):s.appendChild(n);else if(c!==4&&(c===27&&Va(n.type)&&(s=n.stateNode),n=n.child,n!==null))for(Jo(n,a,s),n=n.sibling;n!==null;)Jo(n,a,s),n=n.sibling}function ip(n){var a=n.stateNode,s=n.memoizedProps;try{for(var c=n.type,g=a.attributes;g.length;)a.removeAttributeNode(g[0]);Sn(a,c,s),a[it]=n,a[an]=s}catch(E){St(n,n.return,E)}}var ua=!1,xn=!1,Ru=!1,sp=typeof WeakSet=="function"?WeakSet:Set,vn=null;function Dy(n,a){if(n=n.containerInfo,nx=b0,n=Eh(n),Fc(n)){if("selectionStart"in n)var s={start:n.selectionStart,end:n.selectionEnd};else e:{s=(s=n.ownerDocument)&&s.defaultView||window;var c=s.getSelection&&s.getSelection();if(c&&c.rangeCount!==0){s=c.anchorNode;var g=c.anchorOffset,E=c.focusNode;c=c.focusOffset;try{s.nodeType,E.nodeType}catch{s=null;break e}var B=0,M=-1,U=-1,te=0,ce=0,fe=n,re=null;t:for(;;){for(var oe;fe!==s||g!==0&&fe.nodeType!==3||(M=B+g),fe!==E||c!==0&&fe.nodeType!==3||(U=B+c),fe.nodeType===3&&(B+=fe.nodeValue.length),(oe=fe.firstChild)!==null;)re=fe,fe=oe;for(;;){if(fe===n)break t;if(re===s&&++te===g&&(M=B),re===E&&++ce===c&&(U=B),(oe=fe.nextSibling)!==null)break;fe=re,re=fe.parentNode}fe=oe}s=M===-1||U===-1?null:{start:M,end:U}}else s=null}s=s||{start:0,end:0}}else s=null;for(rx={focusedElem:n,selectionRange:s},b0=!1,vn=a;vn!==null;)if(a=vn,n=a.child,(a.subtreeFlags&1028)!==0&&n!==null)n.return=a,vn=n;else for(;vn!==null;){switch(a=vn,E=a.alternate,n=a.flags,a.tag){case 0:if((n&4)!==0&&(n=a.updateQueue,n=n!==null?n.events:null,n!==null))for(s=0;s<n.length;s++)g=n[s],g.ref.impl=g.nextImpl;break;case 11:case 15:break;case 1:if((n&1024)!==0&&E!==null){n=void 0,s=a,g=E.memoizedProps,E=E.memoizedState,c=s.stateNode;try{var Te=vi(s.type,g);n=c.getSnapshotBeforeUpdate(Te,E),c.__reactInternalSnapshotBeforeUpdate=n}catch(Qe){St(s,s.return,Qe)}}break;case 3:if((n&1024)!==0){if(n=a.stateNode.containerInfo,s=n.nodeType,s===9)sx(n);else if(s===1)switch(n.nodeName){case"HEAD":case"HTML":case"BODY":sx(n);break;default:n.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((n&1024)!==0)throw Error(i(163))}if(n=a.sibling,n!==null){n.return=a.return,vn=n;break}vn=a.return}}function lp(n,a,s){var c=s.flags;switch(s.tag){case 0:case 11:case 15:da(n,s),c&4&&xl(5,s);break;case 1:if(da(n,s),c&4)if(n=s.stateNode,a===null)try{n.componentDidMount()}catch(B){St(s,s.return,B)}else{var g=vi(s.type,a.memoizedProps);a=a.memoizedState;try{n.componentDidUpdate(g,a,n.__reactInternalSnapshotBeforeUpdate)}catch(B){St(s,s.return,B)}}c&64&&tp(s),c&512&&dl(s,s.return);break;case 3:if(da(n,s),c&64&&(n=s.updateQueue,n!==null)){if(a=null,s.child!==null)switch(s.child.tag){case 27:case 5:a=s.child.stateNode;break;case 1:a=s.child.stateNode}try{Gh(n,a)}catch(B){St(s,s.return,B)}}break;case 27:a===null&&c&4&&ip(s);case 26:case 5:da(n,s),a===null&&c&4&&rp(s),c&512&&dl(s,s.return);break;case 12:da(n,s);break;case 31:da(n,s),c&4&&up(n,s);break;case 13:da(n,s),c&4&&xp(n,s),c&64&&(n=s.memoizedState,n!==null&&(n=n.dehydrated,n!==null&&(s=Ry.bind(null,s),tb(n,s))));break;case 22:if(c=s.memoizedState!==null||ua,!c){a=a!==null&&a.memoizedState!==null||xn,g=ua;var E=xn;ua=c,(xn=a)&&!E?fa(n,s,(s.subtreeFlags&8772)!==0):da(n,s),ua=g,xn=E}break;case 30:break;default:da(n,s)}}function op(n){var a=n.alternate;a!==null&&(n.alternate=null,op(a)),n.child=null,n.deletions=null,n.sibling=null,n.tag===5&&(a=n.stateNode,a!==null&&Os(a)),n.stateNode=null,n.return=null,n.dependencies=null,n.memoizedProps=null,n.memoizedState=null,n.pendingProps=null,n.stateNode=null,n.updateQueue=null}var Qt=null,qn=!1;function xa(n,a,s){for(s=s.child;s!==null;)cp(n,a,s),s=s.sibling}function cp(n,a,s){if(Bt&&typeof Bt.onCommitFiberUnmount=="function")try{Bt.onCommitFiberUnmount(Yt,s)}catch{}switch(s.tag){case 26:xn||$r(s,a),xa(n,a,s),s.memoizedState?s.memoizedState.count--:s.stateNode&&(s=s.stateNode,s.parentNode.removeChild(s));break;case 27:xn||$r(s,a);var c=Qt,g=qn;Va(s.type)&&(Qt=s.stateNode,qn=!1),xa(n,a,s),Cl(s.stateNode),Qt=c,qn=g;break;case 5:xn||$r(s,a);case 6:if(c=Qt,g=qn,Qt=null,xa(n,a,s),Qt=c,qn=g,Qt!==null)if(qn)try{(Qt.nodeType===9?Qt.body:Qt.nodeName==="HTML"?Qt.ownerDocument.body:Qt).removeChild(s.stateNode)}catch(E){St(s,a,E)}else try{Qt.removeChild(s.stateNode)}catch(E){St(s,a,E)}break;case 18:Qt!==null&&(qn?(n=Qt,tm(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,s.stateNode),Es(n)):tm(Qt,s.stateNode));break;case 4:c=Qt,g=qn,Qt=s.stateNode.containerInfo,qn=!0,xa(n,a,s),Qt=c,qn=g;break;case 0:case 11:case 14:case 15:Pa(2,s,a),xn||Pa(4,s,a),xa(n,a,s);break;case 1:xn||($r(s,a),c=s.stateNode,typeof c.componentWillUnmount=="function"&&np(s,a,c)),xa(n,a,s);break;case 21:xa(n,a,s);break;case 22:xn=(c=xn)||s.memoizedState!==null,xa(n,a,s),xn=c;break;default:xa(n,a,s)}}function up(n,a){if(a.memoizedState===null&&(n=a.alternate,n!==null&&(n=n.memoizedState,n!==null))){n=n.dehydrated;try{Es(n)}catch(s){St(a,a.return,s)}}}function xp(n,a){if(a.memoizedState===null&&(n=a.alternate,n!==null&&(n=n.memoizedState,n!==null&&(n=n.dehydrated,n!==null))))try{Es(n)}catch(s){St(a,a.return,s)}}function wy(n){switch(n.tag){case 31:case 13:case 19:var a=n.stateNode;return a===null&&(a=n.stateNode=new sp),a;case 22:return n=n.stateNode,a=n._retryCache,a===null&&(a=n._retryCache=new sp),a;default:throw Error(i(435,n.tag))}}function e0(n,a){var s=wy(n);a.forEach(function(c){if(!s.has(c)){s.add(c);var g=Oy.bind(null,n,c);c.then(g,g)}})}function Gn(n,a){var s=a.deletions;if(s!==null)for(var c=0;c<s.length;c++){var g=s[c],E=n,B=a,M=B;e:for(;M!==null;){switch(M.tag){case 27:if(Va(M.type)){Qt=M.stateNode,qn=!1;break e}break;case 5:Qt=M.stateNode,qn=!1;break e;case 3:case 4:Qt=M.stateNode.containerInfo,qn=!0;break e}M=M.return}if(Qt===null)throw Error(i(160));cp(E,B,g),Qt=null,qn=!1,E=g.alternate,E!==null&&(E.return=null),g.return=null}if(a.subtreeFlags&13886)for(a=a.child;a!==null;)dp(a,n),a=a.sibling}var jr=null;function dp(n,a){var s=n.alternate,c=n.flags;switch(n.tag){case 0:case 11:case 14:case 15:Gn(a,n),Vn(n),c&4&&(Pa(3,n,n.return),xl(3,n),Pa(5,n,n.return));break;case 1:Gn(a,n),Vn(n),c&512&&(xn||s===null||$r(s,s.return)),c&64&&ua&&(n=n.updateQueue,n!==null&&(c=n.callbacks,c!==null&&(s=n.shared.hiddenCallbacks,n.shared.hiddenCallbacks=s===null?c:s.concat(c))));break;case 26:var g=jr;if(Gn(a,n),Vn(n),c&512&&(xn||s===null||$r(s,s.return)),c&4){var E=s!==null?s.memoizedState:null;if(c=n.memoizedState,s===null)if(c===null)if(n.stateNode===null){e:{c=n.type,s=n.memoizedProps,g=g.ownerDocument||g;t:switch(c){case"title":E=g.getElementsByTagName("title")[0],(!E||E[si]||E[it]||E.namespaceURI==="http://www.w3.org/2000/svg"||E.hasAttribute("itemprop"))&&(E=g.createElement(c),g.head.insertBefore(E,g.querySelector("head > title"))),Sn(E,c,s),E[it]=n,sn(E),c=E;break e;case"link":var B=dm("link","href",g).get(c+(s.href||""));if(B){for(var M=0;M<B.length;M++)if(E=B[M],E.getAttribute("href")===(s.href==null||s.href===""?null:s.href)&&E.getAttribute("rel")===(s.rel==null?null:s.rel)&&E.getAttribute("title")===(s.title==null?null:s.title)&&E.getAttribute("crossorigin")===(s.crossOrigin==null?null:s.crossOrigin)){B.splice(M,1);break t}}E=g.createElement(c),Sn(E,c,s),g.head.appendChild(E);break;case"meta":if(B=dm("meta","content",g).get(c+(s.content||""))){for(M=0;M<B.length;M++)if(E=B[M],E.getAttribute("content")===(s.content==null?null:""+s.content)&&E.getAttribute("name")===(s.name==null?null:s.name)&&E.getAttribute("property")===(s.property==null?null:s.property)&&E.getAttribute("http-equiv")===(s.httpEquiv==null?null:s.httpEquiv)&&E.getAttribute("charset")===(s.charSet==null?null:s.charSet)){B.splice(M,1);break t}}E=g.createElement(c),Sn(E,c,s),g.head.appendChild(E);break;default:throw Error(i(468,c))}E[it]=n,sn(E),c=E}n.stateNode=c}else fm(g,n.type,n.stateNode);else n.stateNode=xm(g,c,n.memoizedProps);else E!==c?(E===null?s.stateNode!==null&&(s=s.stateNode,s.parentNode.removeChild(s)):E.count--,c===null?fm(g,n.type,n.stateNode):xm(g,c,n.memoizedProps)):c===null&&n.stateNode!==null&&Mu(n,n.memoizedProps,s.memoizedProps)}break;case 27:Gn(a,n),Vn(n),c&512&&(xn||s===null||$r(s,s.return)),s!==null&&c&4&&Mu(n,n.memoizedProps,s.memoizedProps);break;case 5:if(Gn(a,n),Vn(n),c&512&&(xn||s===null||$r(s,s.return)),n.flags&32){g=n.stateNode;try{Ye(g,"")}catch(Te){St(n,n.return,Te)}}c&4&&n.stateNode!=null&&(g=n.memoizedProps,Mu(n,g,s!==null?s.memoizedProps:g)),c&1024&&(Ru=!0);break;case 6:if(Gn(a,n),Vn(n),c&4){if(n.stateNode===null)throw Error(i(162));c=n.memoizedProps,s=n.stateNode;try{s.nodeValue=c}catch(Te){St(n,n.return,Te)}}break;case 3:if(m0=null,g=jr,jr=h0(a.containerInfo),Gn(a,n),jr=g,Vn(n),c&4&&s!==null&&s.memoizedState.isDehydrated)try{Es(a.containerInfo)}catch(Te){St(n,n.return,Te)}Ru&&(Ru=!1,fp(n));break;case 4:c=jr,jr=h0(n.stateNode.containerInfo),Gn(a,n),Vn(n),jr=c;break;case 12:Gn(a,n),Vn(n);break;case 31:Gn(a,n),Vn(n),c&4&&(c=n.updateQueue,c!==null&&(n.updateQueue=null,e0(n,c)));break;case 13:Gn(a,n),Vn(n),n.child.flags&8192&&n.memoizedState!==null!=(s!==null&&s.memoizedState!==null)&&(n0=Ne()),c&4&&(c=n.updateQueue,c!==null&&(n.updateQueue=null,e0(n,c)));break;case 22:g=n.memoizedState!==null;var U=s!==null&&s.memoizedState!==null,te=ua,ce=xn;if(ua=te||g,xn=ce||U,Gn(a,n),xn=ce,ua=te,Vn(n),c&8192)e:for(a=n.stateNode,a._visibility=g?a._visibility&-2:a._visibility|1,g&&(s===null||U||ua||xn||ki(n)),s=null,a=n;;){if(a.tag===5||a.tag===26){if(s===null){U=s=a;try{if(E=U.stateNode,g)B=E.style,typeof B.setProperty=="function"?B.setProperty("display","none","important"):B.display="none";else{M=U.stateNode;var fe=U.memoizedProps.style,re=fe!=null&&fe.hasOwnProperty("display")?fe.display:null;M.style.display=re==null||typeof re=="boolean"?"":(""+re).trim()}}catch(Te){St(U,U.return,Te)}}}else if(a.tag===6){if(s===null){U=a;try{U.stateNode.nodeValue=g?"":U.memoizedProps}catch(Te){St(U,U.return,Te)}}}else if(a.tag===18){if(s===null){U=a;try{var oe=U.stateNode;g?nm(oe,!0):nm(U.stateNode,!1)}catch(Te){St(U,U.return,Te)}}}else if((a.tag!==22&&a.tag!==23||a.memoizedState===null||a===n)&&a.child!==null){a.child.return=a,a=a.child;continue}if(a===n)break e;for(;a.sibling===null;){if(a.return===null||a.return===n)break e;s===a&&(s=null),a=a.return}s===a&&(s=null),a.sibling.return=a.return,a=a.sibling}c&4&&(c=n.updateQueue,c!==null&&(s=c.retryQueue,s!==null&&(c.retryQueue=null,e0(n,s))));break;case 19:Gn(a,n),Vn(n),c&4&&(c=n.updateQueue,c!==null&&(n.updateQueue=null,e0(n,c)));break;case 30:break;case 21:break;default:Gn(a,n),Vn(n)}}function Vn(n){var a=n.flags;if(a&2){try{for(var s,c=n.return;c!==null;){if(ap(c)){s=c;break}c=c.return}if(s==null)throw Error(i(160));switch(s.tag){case 27:var g=s.stateNode,E=ju(n);Jo(n,E,g);break;case 5:var B=s.stateNode;s.flags&32&&(Ye(B,""),s.flags&=-33);var M=ju(n);Jo(n,M,B);break;case 3:case 4:var U=s.stateNode.containerInfo,te=ju(n);Tu(n,te,U);break;default:throw Error(i(161))}}catch(ce){St(n,n.return,ce)}n.flags&=-3}a&4096&&(n.flags&=-4097)}function fp(n){if(n.subtreeFlags&1024)for(n=n.child;n!==null;){var a=n;fp(a),a.tag===5&&a.flags&1024&&a.stateNode.reset(),n=n.sibling}}function da(n,a){if(a.subtreeFlags&8772)for(a=a.child;a!==null;)lp(n,a.alternate,a),a=a.sibling}function ki(n){for(n=n.child;n!==null;){var a=n;switch(a.tag){case 0:case 11:case 14:case 15:Pa(4,a,a.return),ki(a);break;case 1:$r(a,a.return);var s=a.stateNode;typeof s.componentWillUnmount=="function"&&np(a,a.return,s),ki(a);break;case 27:Cl(a.stateNode);case 26:case 5:$r(a,a.return),ki(a);break;case 22:a.memoizedState===null&&ki(a);break;case 30:ki(a);break;default:ki(a)}n=n.sibling}}function fa(n,a,s){for(s=s&&(a.subtreeFlags&8772)!==0,a=a.child;a!==null;){var c=a.alternate,g=n,E=a,B=E.flags;switch(E.tag){case 0:case 11:case 15:fa(g,E,s),xl(4,E);break;case 1:if(fa(g,E,s),c=E,g=c.stateNode,typeof g.componentDidMount=="function")try{g.componentDidMount()}catch(te){St(c,c.return,te)}if(c=E,g=c.updateQueue,g!==null){var M=c.stateNode;try{var U=g.shared.hiddenCallbacks;if(U!==null)for(g.shared.hiddenCallbacks=null,g=0;g<U.length;g++)qh(U[g],M)}catch(te){St(c,c.return,te)}}s&&B&64&&tp(E),dl(E,E.return);break;case 27:ip(E);case 26:case 5:fa(g,E,s),s&&c===null&&B&4&&rp(E),dl(E,E.return);break;case 12:fa(g,E,s);break;case 31:fa(g,E,s),s&&B&4&&up(g,E);break;case 13:fa(g,E,s),s&&B&4&&xp(g,E);break;case 22:E.memoizedState===null&&fa(g,E,s),dl(E,E.return);break;case 30:break;default:fa(g,E,s)}a=a.sibling}}function Ou(n,a){var s=null;n!==null&&n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(s=n.memoizedState.cachePool.pool),n=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(n=a.memoizedState.cachePool.pool),n!==s&&(n!=null&&n.refCount++,s!=null&&Zs(s))}function zu(n,a){n=null,a.alternate!==null&&(n=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==n&&(a.refCount++,n!=null&&Zs(n))}function Tr(n,a,s,c){if(a.subtreeFlags&10256)for(a=a.child;a!==null;)hp(n,a,s,c),a=a.sibling}function hp(n,a,s,c){var g=a.flags;switch(a.tag){case 0:case 11:case 15:Tr(n,a,s,c),g&2048&&xl(9,a);break;case 1:Tr(n,a,s,c);break;case 3:Tr(n,a,s,c),g&2048&&(n=null,a.alternate!==null&&(n=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==n&&(a.refCount++,n!=null&&Zs(n)));break;case 12:if(g&2048){Tr(n,a,s,c),n=a.stateNode;try{var E=a.memoizedProps,B=E.id,M=E.onPostCommit;typeof M=="function"&&M(B,a.alternate===null?"mount":"update",n.passiveEffectDuration,-0)}catch(U){St(a,a.return,U)}}else Tr(n,a,s,c);break;case 31:Tr(n,a,s,c);break;case 13:Tr(n,a,s,c);break;case 23:break;case 22:E=a.stateNode,B=a.alternate,a.memoizedState!==null?E._visibility&2?Tr(n,a,s,c):fl(n,a):E._visibility&2?Tr(n,a,s,c):(E._visibility|=2,ls(n,a,s,c,(a.subtreeFlags&10256)!==0||!1)),g&2048&&Ou(B,a);break;case 24:Tr(n,a,s,c),g&2048&&zu(a.alternate,a);break;default:Tr(n,a,s,c)}}function ls(n,a,s,c,g){for(g=g&&((a.subtreeFlags&10256)!==0||!1),a=a.child;a!==null;){var E=n,B=a,M=s,U=c,te=B.flags;switch(B.tag){case 0:case 11:case 15:ls(E,B,M,U,g),xl(8,B);break;case 23:break;case 22:var ce=B.stateNode;B.memoizedState!==null?ce._visibility&2?ls(E,B,M,U,g):fl(E,B):(ce._visibility|=2,ls(E,B,M,U,g)),g&&te&2048&&Ou(B.alternate,B);break;case 24:ls(E,B,M,U,g),g&&te&2048&&zu(B.alternate,B);break;default:ls(E,B,M,U,g)}a=a.sibling}}function fl(n,a){if(a.subtreeFlags&10256)for(a=a.child;a!==null;){var s=n,c=a,g=c.flags;switch(c.tag){case 22:fl(s,c),g&2048&&Ou(c.alternate,c);break;case 24:fl(s,c),g&2048&&zu(c.alternate,c);break;default:fl(s,c)}a=a.sibling}}var hl=8192;function os(n,a,s){if(n.subtreeFlags&hl)for(n=n.child;n!==null;)pp(n,a,s),n=n.sibling}function pp(n,a,s){switch(n.tag){case 26:os(n,a,s),n.flags&hl&&n.memoizedState!==null&&fb(s,jr,n.memoizedState,n.memoizedProps);break;case 5:os(n,a,s);break;case 3:case 4:var c=jr;jr=h0(n.stateNode.containerInfo),os(n,a,s),jr=c;break;case 22:n.memoizedState===null&&(c=n.alternate,c!==null&&c.memoizedState!==null?(c=hl,hl=16777216,os(n,a,s),hl=c):os(n,a,s));break;default:os(n,a,s)}}function mp(n){var a=n.alternate;if(a!==null&&(n=a.child,n!==null)){a.child=null;do a=n.sibling,n.sibling=null,n=a;while(n!==null)}}function pl(n){var a=n.deletions;if((n.flags&16)!==0){if(a!==null)for(var s=0;s<a.length;s++){var c=a[s];vn=c,Ep(c,n)}mp(n)}if(n.subtreeFlags&10256)for(n=n.child;n!==null;)gp(n),n=n.sibling}function gp(n){switch(n.tag){case 0:case 11:case 15:pl(n),n.flags&2048&&Pa(9,n,n.return);break;case 3:pl(n);break;case 12:pl(n);break;case 22:var a=n.stateNode;n.memoizedState!==null&&a._visibility&2&&(n.return===null||n.return.tag!==13)?(a._visibility&=-3,t0(n)):pl(n);break;default:pl(n)}}function t0(n){var a=n.deletions;if((n.flags&16)!==0){if(a!==null)for(var s=0;s<a.length;s++){var c=a[s];vn=c,Ep(c,n)}mp(n)}for(n=n.child;n!==null;){switch(a=n,a.tag){case 0:case 11:case 15:Pa(8,a,a.return),t0(a);break;case 22:s=a.stateNode,s._visibility&2&&(s._visibility&=-3,t0(a));break;default:t0(a)}n=n.sibling}}function Ep(n,a){for(;vn!==null;){var s=vn;switch(s.tag){case 0:case 11:case 15:Pa(8,s,a);break;case 23:case 22:if(s.memoizedState!==null&&s.memoizedState.cachePool!==null){var c=s.memoizedState.cachePool.pool;c!=null&&c.refCount++}break;case 24:Zs(s.memoizedState.cache)}if(c=s.child,c!==null)c.return=s,vn=c;else e:for(s=n;vn!==null;){c=vn;var g=c.sibling,E=c.return;if(op(c),c===s){vn=null;break e}if(g!==null){g.return=E,vn=g;break e}vn=E}}}var Fy={getCacheForType:function(n){var a=wn(on),s=a.data.get(n);return s===void 0&&(s=n(),a.data.set(n,s)),s},cacheSignal:function(){return wn(on).controller.signal}},Sy=typeof WeakMap=="function"?WeakMap:Map,At=0,zt=null,ut=null,ht=0,Ft=0,ir=null,Ia=!1,cs=!1,Lu=!1,ha=0,Wt=0,Ua=0,Ai=0,Pu=0,sr=0,us=0,ml=null,Qn=null,Iu=!1,n0=0,yp=0,r0=1/0,a0=null,$a=null,mn=0,Ha=null,xs=null,pa=0,Uu=0,$u=null,bp=null,gl=0,Hu=null;function lr(){return(At&2)!==0&&ht!==0?ht&-ht:I.T!==null?Yu():Ee()}function Cp(){if(sr===0)if((ht&536870912)===0||mt){var n=Xr;Xr<<=1,(Xr&3932160)===0&&(Xr=262144),sr=n}else sr=536870912;return n=rr.current,n!==null&&(n.flags|=32),sr}function Kn(n,a,s){(n===zt&&(Ft===2||Ft===9)||n.cancelPendingCommit!==null)&&(ds(n,0),qa(n,ht,sr,!1)),kt(n,s),((At&2)===0||n!==zt)&&(n===zt&&((At&2)===0&&(Ai|=s),Wt===4&&qa(n,ht,sr,!1)),Hr(n))}function vp(n,a,s){if((At&6)!==0)throw Error(i(327));var c=!s&&(a&127)===0&&(a&n.expiredLanes)===0||ue(n,a),g=c?My(n,a):Gu(n,a,!0),E=c;do{if(g===0){cs&&!c&&qa(n,a,0,!1);break}else{if(s=n.current.alternate,E&&!Ny(s)){g=Gu(n,a,!1),E=!1;continue}if(g===2){if(E=a,n.errorRecoveryDisabledLanes&E)var B=0;else B=n.pendingLanes&-536870913,B=B!==0?B:B&536870912?536870912:0;if(B!==0){a=B;e:{var M=n;g=ml;var U=M.current.memoizedState.isDehydrated;if(U&&(ds(M,B).flags|=256),B=Gu(M,B,!1),B!==2){if(Lu&&!U){M.errorRecoveryDisabledLanes|=E,Ai|=E,g=4;break e}E=Qn,Qn=g,E!==null&&(Qn===null?Qn=E:Qn.push.apply(Qn,E))}g=B}if(E=!1,g!==2)continue}}if(g===1){ds(n,0),qa(n,a,0,!0);break}e:{switch(c=n,E=g,E){case 0:case 1:throw Error(i(345));case 4:if((a&4194048)!==a)break;case 6:qa(c,a,sr,!Ia);break e;case 2:Qn=null;break;case 3:case 5:break;default:throw Error(i(329))}if((a&62914560)===a&&(g=n0+300-Ne(),10<g)){if(qa(c,a,sr,!Ia),H(c,0,!0)!==0)break e;pa=a,c.timeoutHandle=Jp(kp.bind(null,c,s,Qn,a0,Iu,a,sr,Ai,us,Ia,E,"Throttled",-0,0),g);break e}kp(c,s,Qn,a0,Iu,a,sr,Ai,us,Ia,E,null,-0,0)}}break}while(!0);Hr(n)}function kp(n,a,s,c,g,E,B,M,U,te,ce,fe,re,oe){if(n.timeoutHandle=-1,fe=a.subtreeFlags,fe&8192||(fe&16785408)===16785408){fe={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:ke},pp(a,E,fe);var Te=(E&62914560)===E?n0-Ne():(E&4194048)===E?yp-Ne():0;if(Te=hb(fe,Te),Te!==null){pa=E,n.cancelPendingCommit=Te(_p.bind(null,n,a,E,s,c,g,B,M,U,ce,fe,null,re,oe)),qa(n,E,B,!te);return}}_p(n,a,E,s,c,g,B,M,U)}function Ny(n){for(var a=n;;){var s=a.tag;if((s===0||s===11||s===15)&&a.flags&16384&&(s=a.updateQueue,s!==null&&(s=s.stores,s!==null)))for(var c=0;c<s.length;c++){var g=s[c],E=g.getSnapshot;g=g.value;try{if(!tr(E(),g))return!1}catch{return!1}}if(s=a.child,a.subtreeFlags&16384&&s!==null)s.return=a,a=s;else{if(a===n)break;for(;a.sibling===null;){if(a.return===null||a.return===n)return!0;a=a.return}a.sibling.return=a.return,a=a.sibling}}return!0}function qa(n,a,s,c){a&=~Pu,a&=~Ai,n.suspendedLanes|=a,n.pingedLanes&=~a,c&&(n.warmLanes|=a),c=n.expirationTimes;for(var g=a;0<g;){var E=31-vt(g),B=1<<E;c[E]=-1,g&=~B}s!==0&&Se(n,s,a)}function i0(){return(At&6)===0?(El(0),!1):!0}function qu(){if(ut!==null){if(Ft===0)var n=ut.return;else n=ut,aa=pi=null,su(n),ns=null,el=0,n=ut;for(;n!==null;)ep(n.alternate,n),n=n.return;ut=null}}function ds(n,a){var s=n.timeoutHandle;s!==-1&&(n.timeoutHandle=-1,Xy(s)),s=n.cancelPendingCommit,s!==null&&(n.cancelPendingCommit=null,s()),pa=0,qu(),zt=n,ut=s=na(n.current,null),ht=a,Ft=0,ir=null,Ia=!1,cs=ue(n,a),Lu=!1,us=sr=Pu=Ai=Ua=Wt=0,Qn=ml=null,Iu=!1,(a&8)!==0&&(a|=a&32);var c=n.entangledLanes;if(c!==0)for(n=n.entanglements,c&=a;0<c;){var g=31-vt(c),E=1<<g;a|=n[g],c&=~E}return ha=a,Do(),s}function Ap(n,a){et=null,I.H=ol,a===ts||a===To?(a=Ih(),Ft=3):a===Kc?(a=Ih(),Ft=4):Ft=a===vu?8:a!==null&&typeof a=="object"&&typeof a.then=="function"?6:1,ir=a,ut===null&&(Wt=1,Ko(n,gr(a,n.current)))}function Bp(){var n=rr.current;return n===null?!0:(ht&4194048)===ht?Cr===null:(ht&62914560)===ht||(ht&536870912)!==0?n===Cr:!1}function Dp(){var n=I.H;return I.H=ol,n===null?ol:n}function wp(){var n=I.A;return I.A=Fy,n}function s0(){Wt=4,Ia||(ht&4194048)!==ht&&rr.current!==null||(cs=!0),(Ua&134217727)===0&&(Ai&134217727)===0||zt===null||qa(zt,ht,sr,!1)}function Gu(n,a,s){var c=At;At|=2;var g=Dp(),E=wp();(zt!==n||ht!==a)&&(a0=null,ds(n,a)),a=!1;var B=Wt;e:do try{if(Ft!==0&&ut!==null){var M=ut,U=ir;switch(Ft){case 8:qu(),B=6;break e;case 3:case 2:case 9:case 6:rr.current===null&&(a=!0);var te=Ft;if(Ft=0,ir=null,fs(n,M,U,te),s&&cs){B=0;break e}break;default:te=Ft,Ft=0,ir=null,fs(n,M,U,te)}}_y(),B=Wt;break}catch(ce){Ap(n,ce)}while(!0);return a&&n.shellSuspendCounter++,aa=pi=null,At=c,I.H=g,I.A=E,ut===null&&(zt=null,ht=0,Do()),B}function _y(){for(;ut!==null;)Fp(ut)}function My(n,a){var s=At;At|=2;var c=Dp(),g=wp();zt!==n||ht!==a?(a0=null,r0=Ne()+500,ds(n,a)):cs=ue(n,a);e:do try{if(Ft!==0&&ut!==null){a=ut;var E=ir;t:switch(Ft){case 1:Ft=0,ir=null,fs(n,a,E,1);break;case 2:case 9:if(Lh(E)){Ft=0,ir=null,Sp(a);break}a=function(){Ft!==2&&Ft!==9||zt!==n||(Ft=7),Hr(n)},E.then(a,a);break e;case 3:Ft=7;break e;case 4:Ft=5;break e;case 7:Lh(E)?(Ft=0,ir=null,Sp(a)):(Ft=0,ir=null,fs(n,a,E,7));break;case 5:var B=null;switch(ut.tag){case 26:B=ut.memoizedState;case 5:case 27:var M=ut;if(B?hm(B):M.stateNode.complete){Ft=0,ir=null;var U=M.sibling;if(U!==null)ut=U;else{var te=M.return;te!==null?(ut=te,l0(te)):ut=null}break t}}Ft=0,ir=null,fs(n,a,E,5);break;case 6:Ft=0,ir=null,fs(n,a,E,6);break;case 8:qu(),Wt=6;break e;default:throw Error(i(462))}}jy();break}catch(ce){Ap(n,ce)}while(!0);return aa=pi=null,I.H=c,I.A=g,At=s,ut!==null?0:(zt=null,ht=0,Do(),Wt)}function jy(){for(;ut!==null&&!yn();)Fp(ut)}function Fp(n){var a=Z1(n.alternate,n,ha);n.memoizedProps=n.pendingProps,a===null?l0(n):ut=a}function Sp(n){var a=n,s=a.alternate;switch(a.tag){case 15:case 0:a=V1(s,a,a.pendingProps,a.type,void 0,ht);break;case 11:a=V1(s,a,a.pendingProps,a.type.render,a.ref,ht);break;case 5:su(a);default:ep(s,a),a=ut=wh(a,ha),a=Z1(s,a,ha)}n.memoizedProps=n.pendingProps,a===null?l0(n):ut=a}function fs(n,a,s,c){aa=pi=null,su(a),ns=null,el=0;var g=a.return;try{if(Cy(n,g,a,s,ht)){Wt=1,Ko(n,gr(s,n.current)),ut=null;return}}catch(E){if(g!==null)throw ut=g,E;Wt=1,Ko(n,gr(s,n.current)),ut=null;return}a.flags&32768?(mt||c===1?n=!0:cs||(ht&536870912)!==0?n=!1:(Ia=n=!0,(c===2||c===9||c===3||c===6)&&(c=rr.current,c!==null&&c.tag===13&&(c.flags|=16384))),Np(a,n)):l0(a)}function l0(n){var a=n;do{if((a.flags&32768)!==0){Np(a,Ia);return}n=a.return;var s=Ay(a.alternate,a,ha);if(s!==null){ut=s;return}if(a=a.sibling,a!==null){ut=a;return}ut=a=n}while(a!==null);Wt===0&&(Wt=5)}function Np(n,a){do{var s=By(n.alternate,n);if(s!==null){s.flags&=32767,ut=s;return}if(s=n.return,s!==null&&(s.flags|=32768,s.subtreeFlags=0,s.deletions=null),!a&&(n=n.sibling,n!==null)){ut=n;return}ut=n=s}while(n!==null);Wt=6,ut=null}function _p(n,a,s,c,g,E,B,M,U){n.cancelPendingCommit=null;do o0();while(mn!==0);if((At&6)!==0)throw Error(i(327));if(a!==null){if(a===n.current)throw Error(i(177));if(E=a.lanes|a.childLanes,E|=jc,Re(n,s,E,B,M,U),n===zt&&(ut=zt=null,ht=0),xs=a,Ha=n,pa=s,Uu=E,$u=g,bp=c,(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?(n.callbackNode=null,n.callbackPriority=0,zy(_e,function(){return Op(),null})):(n.callbackNode=null,n.callbackPriority=0),c=(a.flags&13878)!==0,(a.subtreeFlags&13878)!==0||c){c=I.T,I.T=null,g=Y.p,Y.p=2,B=At,At|=4;try{Dy(n,a,s)}finally{At=B,Y.p=g,I.T=c}}mn=1,Mp(),jp(),Tp()}}function Mp(){if(mn===1){mn=0;var n=Ha,a=xs,s=(a.flags&13878)!==0;if((a.subtreeFlags&13878)!==0||s){s=I.T,I.T=null;var c=Y.p;Y.p=2;var g=At;At|=4;try{dp(a,n);var E=rx,B=Eh(n.containerInfo),M=E.focusedElem,U=E.selectionRange;if(B!==M&&M&&M.ownerDocument&&gh(M.ownerDocument.documentElement,M)){if(U!==null&&Fc(M)){var te=U.start,ce=U.end;if(ce===void 0&&(ce=te),"selectionStart"in M)M.selectionStart=te,M.selectionEnd=Math.min(ce,M.value.length);else{var fe=M.ownerDocument||document,re=fe&&fe.defaultView||window;if(re.getSelection){var oe=re.getSelection(),Te=M.textContent.length,Qe=Math.min(U.start,Te),Rt=U.end===void 0?Qe:Math.min(U.end,Te);!oe.extend&&Qe>Rt&&(B=Rt,Rt=Qe,Qe=B);var X=mh(M,Qe),Q=mh(M,Rt);if(X&&Q&&(oe.rangeCount!==1||oe.anchorNode!==X.node||oe.anchorOffset!==X.offset||oe.focusNode!==Q.node||oe.focusOffset!==Q.offset)){var J=fe.createRange();J.setStart(X.node,X.offset),oe.removeAllRanges(),Qe>Rt?(oe.addRange(J),oe.extend(Q.node,Q.offset)):(J.setEnd(Q.node,Q.offset),oe.addRange(J))}}}}for(fe=[],oe=M;oe=oe.parentNode;)oe.nodeType===1&&fe.push({element:oe,left:oe.scrollLeft,top:oe.scrollTop});for(typeof M.focus=="function"&&M.focus(),M=0;M<fe.length;M++){var de=fe[M];de.element.scrollLeft=de.left,de.element.scrollTop=de.top}}b0=!!nx,rx=nx=null}finally{At=g,Y.p=c,I.T=s}}n.current=a,mn=2}}function jp(){if(mn===2){mn=0;var n=Ha,a=xs,s=(a.flags&8772)!==0;if((a.subtreeFlags&8772)!==0||s){s=I.T,I.T=null;var c=Y.p;Y.p=2;var g=At;At|=4;try{lp(n,a.alternate,a)}finally{At=g,Y.p=c,I.T=s}}mn=3}}function Tp(){if(mn===4||mn===3){mn=0,ge();var n=Ha,a=xs,s=pa,c=bp;(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?mn=5:(mn=0,xs=Ha=null,Rp(n,n.pendingLanes));var g=n.pendingLanes;if(g===0&&($a=null),_r(s),a=a.stateNode,Bt&&typeof Bt.onCommitFiberRoot=="function")try{Bt.onCommitFiberRoot(Yt,a,void 0,(a.current.flags&128)===128)}catch{}if(c!==null){a=I.T,g=Y.p,Y.p=2,I.T=null;try{for(var E=n.onRecoverableError,B=0;B<c.length;B++){var M=c[B];E(M.value,{componentStack:M.stack})}}finally{I.T=a,Y.p=g}}(pa&3)!==0&&o0(),Hr(n),g=n.pendingLanes,(s&261930)!==0&&(g&42)!==0?n===Hu?gl++:(gl=0,Hu=n):gl=0,El(0)}}function Rp(n,a){(n.pooledCacheLanes&=a)===0&&(a=n.pooledCache,a!=null&&(n.pooledCache=null,Zs(a)))}function o0(){return Mp(),jp(),Tp(),Op()}function Op(){if(mn!==5)return!1;var n=Ha,a=Uu;Uu=0;var s=_r(pa),c=I.T,g=Y.p;try{Y.p=32>s?32:s,I.T=null,s=$u,$u=null;var E=Ha,B=pa;if(mn=0,xs=Ha=null,pa=0,(At&6)!==0)throw Error(i(331));var M=At;if(At|=4,gp(E.current),hp(E,E.current,B,s),At=M,El(0,!1),Bt&&typeof Bt.onPostCommitFiberRoot=="function")try{Bt.onPostCommitFiberRoot(Yt,E)}catch{}return!0}finally{Y.p=g,I.T=c,Rp(n,a)}}function zp(n,a,s){a=gr(s,a),a=Cu(n.stateNode,a,2),n=Oa(n,a,2),n!==null&&(kt(n,2),Hr(n))}function St(n,a,s){if(n.tag===3)zp(n,n,s);else for(;a!==null;){if(a.tag===3){zp(a,n,s);break}else if(a.tag===1){var c=a.stateNode;if(typeof a.type.getDerivedStateFromError=="function"||typeof c.componentDidCatch=="function"&&($a===null||!$a.has(c))){n=gr(s,n),s=L1(2),c=Oa(a,s,2),c!==null&&(P1(s,c,a,n),kt(c,2),Hr(c));break}}a=a.return}}function Vu(n,a,s){var c=n.pingCache;if(c===null){c=n.pingCache=new Sy;var g=new Set;c.set(a,g)}else g=c.get(a),g===void 0&&(g=new Set,c.set(a,g));g.has(s)||(Lu=!0,g.add(s),n=Ty.bind(null,n,a,s),a.then(n,n))}function Ty(n,a,s){var c=n.pingCache;c!==null&&c.delete(a),n.pingedLanes|=n.suspendedLanes&s,n.warmLanes&=~s,zt===n&&(ht&s)===s&&(Wt===4||Wt===3&&(ht&62914560)===ht&&300>Ne()-n0?(At&2)===0&&ds(n,0):Pu|=s,us===ht&&(us=0)),Hr(n)}function Lp(n,a){a===0&&(a=Ke()),n=di(n,a),n!==null&&(kt(n,a),Hr(n))}function Ry(n){var a=n.memoizedState,s=0;a!==null&&(s=a.retryLane),Lp(n,s)}function Oy(n,a){var s=0;switch(n.tag){case 31:case 13:var c=n.stateNode,g=n.memoizedState;g!==null&&(s=g.retryLane);break;case 19:c=n.stateNode;break;case 22:c=n.stateNode._retryCache;break;default:throw Error(i(314))}c!==null&&c.delete(a),Lp(n,s)}function zy(n,a){return hn(n,a)}var c0=null,hs=null,Qu=!1,u0=!1,Ku=!1,Ga=0;function Hr(n){n!==hs&&n.next===null&&(hs===null?c0=hs=n:hs=hs.next=n),u0=!0,Qu||(Qu=!0,Py())}function El(n,a){if(!Ku&&u0){Ku=!0;do for(var s=!1,c=c0;c!==null;){if(n!==0){var g=c.pendingLanes;if(g===0)var E=0;else{var B=c.suspendedLanes,M=c.pingedLanes;E=(1<<31-vt(42|n)+1)-1,E&=g&~(B&~M),E=E&201326741?E&201326741|1:E?E|2:0}E!==0&&(s=!0,$p(c,E))}else E=ht,E=H(c,c===zt?E:0,c.cancelPendingCommit!==null||c.timeoutHandle!==-1),(E&3)===0||ue(c,E)||(s=!0,$p(c,E));c=c.next}while(s);Ku=!1}}function Ly(){Pp()}function Pp(){u0=Qu=!1;var n=0;Ga!==0&&Yy()&&(n=Ga);for(var a=Ne(),s=null,c=c0;c!==null;){var g=c.next,E=Ip(c,a);E===0?(c.next=null,s===null?c0=g:s.next=g,g===null&&(hs=s)):(s=c,(n!==0||(E&3)!==0)&&(u0=!0)),c=g}mn!==0&&mn!==5||El(n),Ga!==0&&(Ga=0)}function Ip(n,a){for(var s=n.suspendedLanes,c=n.pingedLanes,g=n.expirationTimes,E=n.pendingLanes&-62914561;0<E;){var B=31-vt(E),M=1<<B,U=g[B];U===-1?((M&s)===0||(M&c)!==0)&&(g[B]=Ae(M,a)):U<=a&&(n.expiredLanes|=M),E&=~M}if(a=zt,s=ht,s=H(n,n===a?s:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),c=n.callbackNode,s===0||n===a&&(Ft===2||Ft===9)||n.cancelPendingCommit!==null)return c!==null&&c!==null&&nt(c),n.callbackNode=null,n.callbackPriority=0;if((s&3)===0||ue(n,s)){if(a=s&-s,a===n.callbackPriority)return a;switch(c!==null&&nt(c),_r(s)){case 2:case 8:s=Z;break;case 32:s=_e;break;case 268435456:s=Xe;break;default:s=_e}return c=Up.bind(null,n),s=hn(s,c),n.callbackPriority=a,n.callbackNode=s,a}return c!==null&&c!==null&&nt(c),n.callbackPriority=2,n.callbackNode=null,2}function Up(n,a){if(mn!==0&&mn!==5)return n.callbackNode=null,n.callbackPriority=0,null;var s=n.callbackNode;if(o0()&&n.callbackNode!==s)return null;var c=ht;return c=H(n,n===zt?c:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),c===0?null:(vp(n,c,a),Ip(n,Ne()),n.callbackNode!=null&&n.callbackNode===s?Up.bind(null,n):null)}function $p(n,a){if(o0())return null;vp(n,a,!0)}function Py(){Wy(function(){(At&6)!==0?hn(le,Ly):Pp()})}function Yu(){if(Ga===0){var n=Ji;n===0&&(n=Lr,Lr<<=1,(Lr&261888)===0&&(Lr=256)),Ga=n}return Ga}function Hp(n){return n==null||typeof n=="symbol"||typeof n=="boolean"?null:typeof n=="function"?n:Fa(""+n)}function qp(n,a){var s=a.ownerDocument.createElement("input");return s.name=a.name,s.value=a.value,n.id&&s.setAttribute("form",n.id),a.parentNode.insertBefore(s,a),n=new FormData(n),s.parentNode.removeChild(s),n}function Iy(n,a,s,c,g){if(a==="submit"&&s&&s.stateNode===g){var E=Hp((g[an]||null).action),B=c.submitter;B&&(a=(a=B[an]||null)?Hp(a.formAction):B.getAttribute("formAction"),a!==null&&(E=a,B=null));var M=new vo("action","action",null,c,g);n.push({event:M,listeners:[{instance:null,listener:function(){if(c.defaultPrevented){if(Ga!==0){var U=B?qp(g,B):new FormData(g);pu(s,{pending:!0,data:U,method:g.method,action:E},null,U)}}else typeof E=="function"&&(M.preventDefault(),U=B?qp(g,B):new FormData(g),pu(s,{pending:!0,data:U,method:g.method,action:E},E,U))},currentTarget:g}]})}}for(var Xu=0;Xu<Mc.length;Xu++){var Wu=Mc[Xu],Uy=Wu.toLowerCase(),$y=Wu[0].toUpperCase()+Wu.slice(1);Mr(Uy,"on"+$y)}Mr(Ch,"onAnimationEnd"),Mr(vh,"onAnimationIteration"),Mr(kh,"onAnimationStart"),Mr("dblclick","onDoubleClick"),Mr("focusin","onFocus"),Mr("focusout","onBlur"),Mr(ay,"onTransitionRun"),Mr(iy,"onTransitionStart"),Mr(sy,"onTransitionCancel"),Mr(Ah,"onTransitionEnd"),ye("onMouseEnter",["mouseout","mouseover"]),ye("onMouseLeave",["mouseout","mouseover"]),ye("onPointerEnter",["pointerout","pointerover"]),ye("onPointerLeave",["pointerout","pointerover"]),Jr("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Jr("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Jr("onBeforeInput",["compositionend","keypress","textInput","paste"]),Jr("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Jr("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Jr("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var yl="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(" "),Hy=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(yl));function Gp(n,a){a=(a&4)!==0;for(var s=0;s<n.length;s++){var c=n[s],g=c.event;c=c.listeners;e:{var E=void 0;if(a)for(var B=c.length-1;0<=B;B--){var M=c[B],U=M.instance,te=M.currentTarget;if(M=M.listener,U!==E&&g.isPropagationStopped())break e;E=M,g.currentTarget=te;try{E(g)}catch(ce){Bo(ce)}g.currentTarget=null,E=U}else for(B=0;B<c.length;B++){if(M=c[B],U=M.instance,te=M.currentTarget,M=M.listener,U!==E&&g.isPropagationStopped())break e;E=M,g.currentTarget=te;try{E(g)}catch(ce){Bo(ce)}g.currentTarget=null,E=U}}}}function xt(n,a){var s=a[pn];s===void 0&&(s=a[pn]=new Set);var c=n+"__bubble";s.has(c)||(Vp(a,n,2,!1),s.add(c))}function Zu(n,a,s){var c=0;a&&(c|=4),Vp(s,n,c,a)}var x0="_reactListening"+Math.random().toString(36).slice(2);function Ju(n){if(!n[x0]){n[x0]=!0,ho.forEach(function(s){s!=="selectionchange"&&(Hy.has(s)||Zu(s,!1,n),Zu(s,!0,n))});var a=n.nodeType===9?n:n.ownerDocument;a===null||a[x0]||(a[x0]=!0,Zu("selectionchange",!1,a))}}function Vp(n,a,s,c){switch(Cm(a)){case 2:var g=gb;break;case 8:g=Eb;break;default:g=hx}s=g.bind(null,a,s,n),g=void 0,!yc||a!=="touchstart"&&a!=="touchmove"&&a!=="wheel"||(g=!0),c?g!==void 0?n.addEventListener(a,s,{capture:!0,passive:g}):n.addEventListener(a,s,!0):g!==void 0?n.addEventListener(a,s,{passive:g}):n.addEventListener(a,s,!1)}function ex(n,a,s,c,g){var E=c;if((a&1)===0&&(a&2)===0&&c!==null)e:for(;;){if(c===null)return;var B=c.tag;if(B===3||B===4){var M=c.stateNode.containerInfo;if(M===g)break;if(B===4)for(B=c.return;B!==null;){var U=B.tag;if((U===3||U===4)&&B.stateNode.containerInfo===g)return;B=B.return}for(;M!==null;){if(B=Ln(M),B===null)return;if(U=B.tag,U===5||U===6||U===26||U===27){c=E=B;continue e}M=M.parentNode}}c=c.return}Eo(function(){var te=E,ce=Je(s),fe=[];e:{var re=Bh.get(n);if(re!==void 0){var oe=vo,Te=n;switch(n){case"keypress":if(bo(s)===0)break e;case"keydown":case"keyup":oe=O6;break;case"focusin":Te="focus",oe=kc;break;case"focusout":Te="blur",oe=kc;break;case"beforeblur":case"afterblur":oe=kc;break;case"click":if(s.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":oe=eh;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":oe=A6;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":oe=P6;break;case Ch:case vh:case kh:oe=w6;break;case Ah:oe=U6;break;case"scroll":case"scrollend":oe=v6;break;case"wheel":oe=H6;break;case"copy":case"cut":case"paste":oe=S6;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":oe=nh;break;case"toggle":case"beforetoggle":oe=G6}var Qe=(a&4)!==0,Rt=!Qe&&(n==="scroll"||n==="scrollend"),X=Qe?re!==null?re+"Capture":null:re;Qe=[];for(var Q=te,J;Q!==null;){var de=Q;if(J=de.stateNode,de=de.tag,de!==5&&de!==26&&de!==27||J===null||X===null||(de=Us(Q,X),de!=null&&Qe.push(bl(Q,de,J))),Rt)break;Q=Q.return}0<Qe.length&&(re=new oe(re,Te,null,s,ce),fe.push({event:re,listeners:Qe}))}}if((a&7)===0){e:{if(re=n==="mouseover"||n==="pointerover",oe=n==="mouseout"||n==="pointerout",re&&s!==ze&&(Te=s.relatedTarget||s.fromElement)&&(Ln(Te)||Te[Pr]))break e;if((oe||re)&&(re=ce.window===ce?ce:(re=ce.ownerDocument)?re.defaultView||re.parentWindow:window,oe?(Te=s.relatedTarget||s.toElement,oe=te,Te=Te?Ln(Te):null,Te!==null&&(Rt=o(Te),Qe=Te.tag,Te!==Rt||Qe!==5&&Qe!==27&&Qe!==6)&&(Te=null)):(oe=null,Te=te),oe!==Te)){if(Qe=eh,de="onMouseLeave",X="onMouseEnter",Q="mouse",(n==="pointerout"||n==="pointerover")&&(Qe=nh,de="onPointerLeave",X="onPointerEnter",Q="pointer"),Rt=oe==null?re:Ba(oe),J=Te==null?re:Ba(Te),re=new Qe(de,Q+"leave",oe,s,ce),re.target=Rt,re.relatedTarget=J,de=null,Ln(ce)===te&&(Qe=new Qe(X,Q+"enter",Te,s,ce),Qe.target=J,Qe.relatedTarget=Rt,de=Qe),Rt=de,oe&&Te)t:{for(Qe=qy,X=oe,Q=Te,J=0,de=X;de;de=Qe(de))J++;de=0;for(var He=Q;He;He=Qe(He))de++;for(;0<J-de;)X=Qe(X),J--;for(;0<de-J;)Q=Qe(Q),de--;for(;J--;){if(X===Q||Q!==null&&X===Q.alternate){Qe=X;break t}X=Qe(X),Q=Qe(Q)}Qe=null}else Qe=null;oe!==null&&Qp(fe,re,oe,Qe,!1),Te!==null&&Rt!==null&&Qp(fe,Rt,Te,Qe,!0)}}e:{if(re=te?Ba(te):window,oe=re.nodeName&&re.nodeName.toLowerCase(),oe==="select"||oe==="input"&&re.type==="file")var yt=uh;else if(oh(re))if(xh)yt=ty;else{yt=J6;var Pe=Z6}else oe=re.nodeName,!oe||oe.toLowerCase()!=="input"||re.type!=="checkbox"&&re.type!=="radio"?te&&wa(te.elementType)&&(yt=uh):yt=ey;if(yt&&(yt=yt(n,te))){ch(fe,yt,s,ce);break e}Pe&&Pe(n,re,te),n==="focusout"&&te&&re.type==="number"&&te.memoizedProps.value!=null&&$i(re,"number",re.value)}switch(Pe=te?Ba(te):window,n){case"focusin":(oh(Pe)||Pe.contentEditable==="true")&&(Gi=Pe,Sc=te,Ys=null);break;case"focusout":Ys=Sc=Gi=null;break;case"mousedown":Nc=!0;break;case"contextmenu":case"mouseup":case"dragend":Nc=!1,yh(fe,s,ce);break;case"selectionchange":if(ry)break;case"keydown":case"keyup":yh(fe,s,ce)}var rt;if(Bc)e:{switch(n){case"compositionstart":var pt="onCompositionStart";break e;case"compositionend":pt="onCompositionEnd";break e;case"compositionupdate":pt="onCompositionUpdate";break e}pt=void 0}else qi?sh(n,s)&&(pt="onCompositionEnd"):n==="keydown"&&s.keyCode===229&&(pt="onCompositionStart");pt&&(rh&&s.locale!=="ko"&&(qi||pt!=="onCompositionStart"?pt==="onCompositionEnd"&&qi&&(rt=Zf()):(Sa=ce,bc="value"in Sa?Sa.value:Sa.textContent,qi=!0)),Pe=d0(te,pt),0<Pe.length&&(pt=new th(pt,n,null,s,ce),fe.push({event:pt,listeners:Pe}),rt?pt.data=rt:(rt=lh(s),rt!==null&&(pt.data=rt)))),(rt=Q6?K6(n,s):Y6(n,s))&&(pt=d0(te,"onBeforeInput"),0<pt.length&&(Pe=new th("onBeforeInput","beforeinput",null,s,ce),fe.push({event:Pe,listeners:pt}),Pe.data=rt)),Iy(fe,n,te,s,ce)}Gp(fe,a)})}function bl(n,a,s){return{instance:n,listener:a,currentTarget:s}}function d0(n,a){for(var s=a+"Capture",c=[];n!==null;){var g=n,E=g.stateNode;if(g=g.tag,g!==5&&g!==26&&g!==27||E===null||(g=Us(n,s),g!=null&&c.unshift(bl(n,g,E)),g=Us(n,a),g!=null&&c.push(bl(n,g,E))),n.tag===3)return c;n=n.return}return[]}function qy(n){if(n===null)return null;do n=n.return;while(n&&n.tag!==5&&n.tag!==27);return n||null}function Qp(n,a,s,c,g){for(var E=a._reactName,B=[];s!==null&&s!==c;){var M=s,U=M.alternate,te=M.stateNode;if(M=M.tag,U!==null&&U===c)break;M!==5&&M!==26&&M!==27||te===null||(U=te,g?(te=Us(s,E),te!=null&&B.unshift(bl(s,te,U))):g||(te=Us(s,E),te!=null&&B.push(bl(s,te,U)))),s=s.return}B.length!==0&&n.push({event:a,listeners:B})}var Gy=/\r\n?/g,Vy=/\u0000|\uFFFD/g;function Kp(n){return(typeof n=="string"?n:""+n).replace(Gy,`
|
|
9
|
-
`).replace(Vy,"")}function Yp(n,a){return a=Kp(a),Kp(n)===a}function Tt(n,a,s,c,g,E){switch(s){case"children":typeof c=="string"?a==="body"||a==="textarea"&&c===""||Ye(n,c):(typeof c=="number"||typeof c=="bigint")&&a!=="body"&&Ye(n,""+c);break;case"className":Jn(n,"class",c);break;case"tabIndex":Jn(n,"tabindex",c);break;case"dir":case"role":case"viewBox":case"width":case"height":Jn(n,s,c);break;case"style":wt(n,c,E);break;case"data":if(a!=="object"){Jn(n,"data",c);break}case"src":case"href":if(c===""&&(a!=="a"||s!=="href")){n.removeAttribute(s);break}if(c==null||typeof c=="function"||typeof c=="symbol"||typeof c=="boolean"){n.removeAttribute(s);break}c=Fa(""+c),n.setAttribute(s,c);break;case"action":case"formAction":if(typeof c=="function"){n.setAttribute(s,"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}else typeof E=="function"&&(s==="formAction"?(a!=="input"&&Tt(n,a,"name",g.name,g,null),Tt(n,a,"formEncType",g.formEncType,g,null),Tt(n,a,"formMethod",g.formMethod,g,null),Tt(n,a,"formTarget",g.formTarget,g,null)):(Tt(n,a,"encType",g.encType,g,null),Tt(n,a,"method",g.method,g,null),Tt(n,a,"target",g.target,g,null)));if(c==null||typeof c=="symbol"||typeof c=="boolean"){n.removeAttribute(s);break}c=Fa(""+c),n.setAttribute(s,c);break;case"onClick":c!=null&&(n.onclick=ke);break;case"onScroll":c!=null&&xt("scroll",n);break;case"onScrollEnd":c!=null&&xt("scrollend",n);break;case"dangerouslySetInnerHTML":if(c!=null){if(typeof c!="object"||!("__html"in c))throw Error(i(61));if(s=c.__html,s!=null){if(g.children!=null)throw Error(i(60));n.innerHTML=s}}break;case"multiple":n.multiple=c&&typeof c!="function"&&typeof c!="symbol";break;case"muted":n.muted=c&&typeof c!="function"&&typeof c!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(c==null||typeof c=="function"||typeof c=="boolean"||typeof c=="symbol"){n.removeAttribute("xlink:href");break}s=Fa(""+c),n.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",s);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":c!=null&&typeof c!="function"&&typeof c!="symbol"?n.setAttribute(s,""+c):n.removeAttribute(s);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"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":c&&typeof c!="function"&&typeof c!="symbol"?n.setAttribute(s,""):n.removeAttribute(s);break;case"capture":case"download":c===!0?n.setAttribute(s,""):c!==!1&&c!=null&&typeof c!="function"&&typeof c!="symbol"?n.setAttribute(s,c):n.removeAttribute(s);break;case"cols":case"rows":case"size":case"span":c!=null&&typeof c!="function"&&typeof c!="symbol"&&!isNaN(c)&&1<=c?n.setAttribute(s,c):n.removeAttribute(s);break;case"rowSpan":case"start":c==null||typeof c=="function"||typeof c=="symbol"||isNaN(c)?n.removeAttribute(s):n.setAttribute(s,c);break;case"popover":xt("beforetoggle",n),xt("toggle",n),jn(n,"popover",c);break;case"xlinkActuate":Un(n,"http://www.w3.org/1999/xlink","xlink:actuate",c);break;case"xlinkArcrole":Un(n,"http://www.w3.org/1999/xlink","xlink:arcrole",c);break;case"xlinkRole":Un(n,"http://www.w3.org/1999/xlink","xlink:role",c);break;case"xlinkShow":Un(n,"http://www.w3.org/1999/xlink","xlink:show",c);break;case"xlinkTitle":Un(n,"http://www.w3.org/1999/xlink","xlink:title",c);break;case"xlinkType":Un(n,"http://www.w3.org/1999/xlink","xlink:type",c);break;case"xmlBase":Un(n,"http://www.w3.org/XML/1998/namespace","xml:base",c);break;case"xmlLang":Un(n,"http://www.w3.org/XML/1998/namespace","xml:lang",c);break;case"xmlSpace":Un(n,"http://www.w3.org/XML/1998/namespace","xml:space",c);break;case"is":jn(n,"is",c);break;case"innerText":case"textContent":break;default:(!(2<s.length)||s[0]!=="o"&&s[0]!=="O"||s[1]!=="n"&&s[1]!=="N")&&(s=ea.get(s)||s,jn(n,s,c))}}function tx(n,a,s,c,g,E){switch(s){case"style":wt(n,c,E);break;case"dangerouslySetInnerHTML":if(c!=null){if(typeof c!="object"||!("__html"in c))throw Error(i(61));if(s=c.__html,s!=null){if(g.children!=null)throw Error(i(60));n.innerHTML=s}}break;case"children":typeof c=="string"?Ye(n,c):(typeof c=="number"||typeof c=="bigint")&&Ye(n,""+c);break;case"onScroll":c!=null&&xt("scroll",n);break;case"onScrollEnd":c!=null&&xt("scrollend",n);break;case"onClick":c!=null&&(n.onclick=ke);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!li.hasOwnProperty(s))e:{if(s[0]==="o"&&s[1]==="n"&&(g=s.endsWith("Capture"),a=s.slice(2,g?s.length-7:void 0),E=n[an]||null,E=E!=null?E[s]:null,typeof E=="function"&&n.removeEventListener(a,E,g),typeof c=="function")){typeof E!="function"&&E!==null&&(s in n?n[s]=null:n.hasAttribute(s)&&n.removeAttribute(s)),n.addEventListener(a,c,g);break e}s in n?n[s]=c:c===!0?n.setAttribute(s,""):jn(n,s,c)}}}function Sn(n,a,s){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":xt("error",n),xt("load",n);var c=!1,g=!1,E;for(E in s)if(s.hasOwnProperty(E)){var B=s[E];if(B!=null)switch(E){case"src":c=!0;break;case"srcSet":g=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(i(137,a));default:Tt(n,a,E,B,s,null)}}g&&Tt(n,a,"srcSet",s.srcSet,s,null),c&&Tt(n,a,"src",s.src,s,null);return;case"input":xt("invalid",n);var M=E=B=g=null,U=null,te=null;for(c in s)if(s.hasOwnProperty(c)){var ce=s[c];if(ce!=null)switch(c){case"name":g=ce;break;case"type":B=ce;break;case"checked":U=ce;break;case"defaultChecked":te=ce;break;case"value":E=ce;break;case"defaultValue":M=ce;break;case"children":case"dangerouslySetInnerHTML":if(ce!=null)throw Error(i(137,a));break;default:Tt(n,a,c,ce,s,null)}}oi(n,E,M,U,te,B,g,!1);return;case"select":xt("invalid",n),c=B=E=null;for(g in s)if(s.hasOwnProperty(g)&&(M=s[g],M!=null))switch(g){case"value":E=M;break;case"defaultValue":B=M;break;case"multiple":c=M;default:Tt(n,a,g,M,s,null)}a=E,s=B,n.multiple=!!c,a!=null?Bn(n,!!c,a,!1):s!=null&&Bn(n,!!c,s,!0);return;case"textarea":xt("invalid",n),E=g=c=null;for(B in s)if(s.hasOwnProperty(B)&&(M=s[B],M!=null))switch(B){case"value":c=M;break;case"defaultValue":g=M;break;case"children":E=M;break;case"dangerouslySetInnerHTML":if(M!=null)throw Error(i(91));break;default:Tt(n,a,B,M,s,null)}Hi(n,c,g,E);return;case"option":for(U in s)s.hasOwnProperty(U)&&(c=s[U],c!=null)&&(U==="selected"?n.selected=c&&typeof c!="function"&&typeof c!="symbol":Tt(n,a,U,c,s,null));return;case"dialog":xt("beforetoggle",n),xt("toggle",n),xt("cancel",n),xt("close",n);break;case"iframe":case"object":xt("load",n);break;case"video":case"audio":for(c=0;c<yl.length;c++)xt(yl[c],n);break;case"image":xt("error",n),xt("load",n);break;case"details":xt("toggle",n);break;case"embed":case"source":case"link":xt("error",n),xt("load",n);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(te in s)if(s.hasOwnProperty(te)&&(c=s[te],c!=null))switch(te){case"children":case"dangerouslySetInnerHTML":throw Error(i(137,a));default:Tt(n,a,te,c,s,null)}return;default:if(wa(a)){for(ce in s)s.hasOwnProperty(ce)&&(c=s[ce],c!==void 0&&tx(n,a,ce,c,s,void 0));return}}for(M in s)s.hasOwnProperty(M)&&(c=s[M],c!=null&&Tt(n,a,M,c,s,null))}function Qy(n,a,s,c){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var g=null,E=null,B=null,M=null,U=null,te=null,ce=null;for(oe in s){var fe=s[oe];if(s.hasOwnProperty(oe)&&fe!=null)switch(oe){case"checked":break;case"value":break;case"defaultValue":U=fe;default:c.hasOwnProperty(oe)||Tt(n,a,oe,null,c,fe)}}for(var re in c){var oe=c[re];if(fe=s[re],c.hasOwnProperty(re)&&(oe!=null||fe!=null))switch(re){case"type":E=oe;break;case"name":g=oe;break;case"checked":te=oe;break;case"defaultChecked":ce=oe;break;case"value":B=oe;break;case"defaultValue":M=oe;break;case"children":case"dangerouslySetInnerHTML":if(oe!=null)throw Error(i(137,a));break;default:oe!==fe&&Tt(n,a,re,oe,c,fe)}}Ls(n,B,M,U,te,ce,E,g);return;case"select":oe=B=M=re=null;for(E in s)if(U=s[E],s.hasOwnProperty(E)&&U!=null)switch(E){case"value":break;case"multiple":oe=U;default:c.hasOwnProperty(E)||Tt(n,a,E,null,c,U)}for(g in c)if(E=c[g],U=s[g],c.hasOwnProperty(g)&&(E!=null||U!=null))switch(g){case"value":re=E;break;case"defaultValue":M=E;break;case"multiple":B=E;default:E!==U&&Tt(n,a,g,E,c,U)}a=M,s=B,c=oe,re!=null?Bn(n,!!s,re,!1):!!c!=!!s&&(a!=null?Bn(n,!!s,a,!0):Bn(n,!!s,s?[]:"",!1));return;case"textarea":oe=re=null;for(M in s)if(g=s[M],s.hasOwnProperty(M)&&g!=null&&!c.hasOwnProperty(M))switch(M){case"value":break;case"children":break;default:Tt(n,a,M,null,c,g)}for(B in c)if(g=c[B],E=s[B],c.hasOwnProperty(B)&&(g!=null||E!=null))switch(B){case"value":re=g;break;case"defaultValue":oe=g;break;case"children":break;case"dangerouslySetInnerHTML":if(g!=null)throw Error(i(91));break;default:g!==E&&Tt(n,a,B,g,c,E)}mo(n,re,oe);return;case"option":for(var Te in s)re=s[Te],s.hasOwnProperty(Te)&&re!=null&&!c.hasOwnProperty(Te)&&(Te==="selected"?n.selected=!1:Tt(n,a,Te,null,c,re));for(U in c)re=c[U],oe=s[U],c.hasOwnProperty(U)&&re!==oe&&(re!=null||oe!=null)&&(U==="selected"?n.selected=re&&typeof re!="function"&&typeof re!="symbol":Tt(n,a,U,re,c,oe));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 Qe in s)re=s[Qe],s.hasOwnProperty(Qe)&&re!=null&&!c.hasOwnProperty(Qe)&&Tt(n,a,Qe,null,c,re);for(te in c)if(re=c[te],oe=s[te],c.hasOwnProperty(te)&&re!==oe&&(re!=null||oe!=null))switch(te){case"children":case"dangerouslySetInnerHTML":if(re!=null)throw Error(i(137,a));break;default:Tt(n,a,te,re,c,oe)}return;default:if(wa(a)){for(var Rt in s)re=s[Rt],s.hasOwnProperty(Rt)&&re!==void 0&&!c.hasOwnProperty(Rt)&&tx(n,a,Rt,void 0,c,re);for(ce in c)re=c[ce],oe=s[ce],!c.hasOwnProperty(ce)||re===oe||re===void 0&&oe===void 0||tx(n,a,ce,re,c,oe);return}}for(var X in s)re=s[X],s.hasOwnProperty(X)&&re!=null&&!c.hasOwnProperty(X)&&Tt(n,a,X,null,c,re);for(fe in c)re=c[fe],oe=s[fe],!c.hasOwnProperty(fe)||re===oe||re==null&&oe==null||Tt(n,a,fe,re,c,oe)}function Xp(n){switch(n){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Ky(){if(typeof performance.getEntriesByType=="function"){for(var n=0,a=0,s=performance.getEntriesByType("resource"),c=0;c<s.length;c++){var g=s[c],E=g.transferSize,B=g.initiatorType,M=g.duration;if(E&&M&&Xp(B)){for(B=0,M=g.responseEnd,c+=1;c<s.length;c++){var U=s[c],te=U.startTime;if(te>M)break;var ce=U.transferSize,fe=U.initiatorType;ce&&Xp(fe)&&(U=U.responseEnd,B+=ce*(U<M?1:(M-te)/(U-te)))}if(--c,a+=8*(E+B)/(g.duration/1e3),n++,10<n)break}}if(0<n)return a/n/1e6}return navigator.connection&&(n=navigator.connection.downlink,typeof n=="number")?n:5}var nx=null,rx=null;function f0(n){return n.nodeType===9?n:n.ownerDocument}function Wp(n){switch(n){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Zp(n,a){if(n===0)switch(a){case"svg":return 1;case"math":return 2;default:return 0}return n===1&&a==="foreignObject"?0:n}function ax(n,a){return n==="textarea"||n==="noscript"||typeof a.children=="string"||typeof a.children=="number"||typeof a.children=="bigint"||typeof a.dangerouslySetInnerHTML=="object"&&a.dangerouslySetInnerHTML!==null&&a.dangerouslySetInnerHTML.__html!=null}var ix=null;function Yy(){var n=window.event;return n&&n.type==="popstate"?n===ix?!1:(ix=n,!0):(ix=null,!1)}var Jp=typeof setTimeout=="function"?setTimeout:void 0,Xy=typeof clearTimeout=="function"?clearTimeout:void 0,em=typeof Promise=="function"?Promise:void 0,Wy=typeof queueMicrotask=="function"?queueMicrotask:typeof em<"u"?function(n){return em.resolve(null).then(n).catch(Zy)}:Jp;function Zy(n){setTimeout(function(){throw n})}function Va(n){return n==="head"}function tm(n,a){var s=a,c=0;do{var g=s.nextSibling;if(n.removeChild(s),g&&g.nodeType===8)if(s=g.data,s==="/$"||s==="/&"){if(c===0){n.removeChild(g),Es(a);return}c--}else if(s==="$"||s==="$?"||s==="$~"||s==="$!"||s==="&")c++;else if(s==="html")Cl(n.ownerDocument.documentElement);else if(s==="head"){s=n.ownerDocument.head,Cl(s);for(var E=s.firstChild;E;){var B=E.nextSibling,M=E.nodeName;E[si]||M==="SCRIPT"||M==="STYLE"||M==="LINK"&&E.rel.toLowerCase()==="stylesheet"||s.removeChild(E),E=B}}else s==="body"&&Cl(n.ownerDocument.body);s=g}while(s);Es(a)}function nm(n,a){var s=n;n=0;do{var c=s.nextSibling;if(s.nodeType===1?a?(s._stashedDisplay=s.style.display,s.style.display="none"):(s.style.display=s._stashedDisplay||"",s.getAttribute("style")===""&&s.removeAttribute("style")):s.nodeType===3&&(a?(s._stashedText=s.nodeValue,s.nodeValue=""):s.nodeValue=s._stashedText||""),c&&c.nodeType===8)if(s=c.data,s==="/$"){if(n===0)break;n--}else s!=="$"&&s!=="$?"&&s!=="$~"&&s!=="$!"||n++;s=c}while(s)}function sx(n){var a=n.firstChild;for(a&&a.nodeType===10&&(a=a.nextSibling);a;){var s=a;switch(a=a.nextSibling,s.nodeName){case"HTML":case"HEAD":case"BODY":sx(s),Os(s);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(s.rel.toLowerCase()==="stylesheet")continue}n.removeChild(s)}}function Jy(n,a,s,c){for(;n.nodeType===1;){var g=s;if(n.nodeName.toLowerCase()!==a.toLowerCase()){if(!c&&(n.nodeName!=="INPUT"||n.type!=="hidden"))break}else if(c){if(!n[si])switch(a){case"meta":if(!n.hasAttribute("itemprop"))break;return n;case"link":if(E=n.getAttribute("rel"),E==="stylesheet"&&n.hasAttribute("data-precedence"))break;if(E!==g.rel||n.getAttribute("href")!==(g.href==null||g.href===""?null:g.href)||n.getAttribute("crossorigin")!==(g.crossOrigin==null?null:g.crossOrigin)||n.getAttribute("title")!==(g.title==null?null:g.title))break;return n;case"style":if(n.hasAttribute("data-precedence"))break;return n;case"script":if(E=n.getAttribute("src"),(E!==(g.src==null?null:g.src)||n.getAttribute("type")!==(g.type==null?null:g.type)||n.getAttribute("crossorigin")!==(g.crossOrigin==null?null:g.crossOrigin))&&E&&n.hasAttribute("async")&&!n.hasAttribute("itemprop"))break;return n;default:return n}}else if(a==="input"&&n.type==="hidden"){var E=g.name==null?null:""+g.name;if(g.type==="hidden"&&n.getAttribute("name")===E)return n}else return n;if(n=vr(n.nextSibling),n===null)break}return null}function eb(n,a,s){if(a==="")return null;for(;n.nodeType!==3;)if((n.nodeType!==1||n.nodeName!=="INPUT"||n.type!=="hidden")&&!s||(n=vr(n.nextSibling),n===null))return null;return n}function rm(n,a){for(;n.nodeType!==8;)if((n.nodeType!==1||n.nodeName!=="INPUT"||n.type!=="hidden")&&!a||(n=vr(n.nextSibling),n===null))return null;return n}function lx(n){return n.data==="$?"||n.data==="$~"}function ox(n){return n.data==="$!"||n.data==="$?"&&n.ownerDocument.readyState!=="loading"}function tb(n,a){var s=n.ownerDocument;if(n.data==="$~")n._reactRetry=a;else if(n.data!=="$?"||s.readyState!=="loading")a();else{var c=function(){a(),s.removeEventListener("DOMContentLoaded",c)};s.addEventListener("DOMContentLoaded",c),n._reactRetry=c}}function vr(n){for(;n!=null;n=n.nextSibling){var a=n.nodeType;if(a===1||a===3)break;if(a===8){if(a=n.data,a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"||a==="F!"||a==="F")break;if(a==="/$"||a==="/&")return null}}return n}var cx=null;function am(n){n=n.nextSibling;for(var a=0;n;){if(n.nodeType===8){var s=n.data;if(s==="/$"||s==="/&"){if(a===0)return vr(n.nextSibling);a--}else s!=="$"&&s!=="$!"&&s!=="$?"&&s!=="$~"&&s!=="&"||a++}n=n.nextSibling}return null}function im(n){n=n.previousSibling;for(var a=0;n;){if(n.nodeType===8){var s=n.data;if(s==="$"||s==="$!"||s==="$?"||s==="$~"||s==="&"){if(a===0)return n;a--}else s!=="/$"&&s!=="/&"||a++}n=n.previousSibling}return null}function sm(n,a,s){switch(a=f0(s),n){case"html":if(n=a.documentElement,!n)throw Error(i(452));return n;case"head":if(n=a.head,!n)throw Error(i(453));return n;case"body":if(n=a.body,!n)throw Error(i(454));return n;default:throw Error(i(451))}}function Cl(n){for(var a=n.attributes;a.length;)n.removeAttributeNode(a[0]);Os(n)}var kr=new Map,lm=new Set;function h0(n){return typeof n.getRootNode=="function"?n.getRootNode():n.nodeType===9?n:n.ownerDocument}var ma=Y.d;Y.d={f:nb,r:rb,D:ab,C:ib,L:sb,m:lb,X:cb,S:ob,M:ub};function nb(){var n=ma.f(),a=i0();return n||a}function rb(n){var a=Zr(n);a!==null&&a.tag===5&&a.type==="form"?A1(a):ma.r(n)}var ps=typeof document>"u"?null:document;function om(n,a,s){var c=ps;if(c&&typeof a=="string"&&a){var g=$n(a);g='link[rel="'+n+'"][href="'+g+'"]',typeof s=="string"&&(g+='[crossorigin="'+s+'"]'),lm.has(g)||(lm.add(g),n={rel:n,crossOrigin:s,href:a},c.querySelector(g)===null&&(a=c.createElement("link"),Sn(a,"link",n),sn(a),c.head.appendChild(a)))}}function ab(n){ma.D(n),om("dns-prefetch",n,null)}function ib(n,a){ma.C(n,a),om("preconnect",n,a)}function sb(n,a,s){ma.L(n,a,s);var c=ps;if(c&&n&&a){var g='link[rel="preload"][as="'+$n(a)+'"]';a==="image"&&s&&s.imageSrcSet?(g+='[imagesrcset="'+$n(s.imageSrcSet)+'"]',typeof s.imageSizes=="string"&&(g+='[imagesizes="'+$n(s.imageSizes)+'"]')):g+='[href="'+$n(n)+'"]';var E=g;switch(a){case"style":E=ms(n);break;case"script":E=gs(n)}kr.has(E)||(n=p({rel:"preload",href:a==="image"&&s&&s.imageSrcSet?void 0:n,as:a},s),kr.set(E,n),c.querySelector(g)!==null||a==="style"&&c.querySelector(vl(E))||a==="script"&&c.querySelector(kl(E))||(a=c.createElement("link"),Sn(a,"link",n),sn(a),c.head.appendChild(a)))}}function lb(n,a){ma.m(n,a);var s=ps;if(s&&n){var c=a&&typeof a.as=="string"?a.as:"script",g='link[rel="modulepreload"][as="'+$n(c)+'"][href="'+$n(n)+'"]',E=g;switch(c){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":E=gs(n)}if(!kr.has(E)&&(n=p({rel:"modulepreload",href:n},a),kr.set(E,n),s.querySelector(g)===null)){switch(c){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(s.querySelector(kl(E)))return}c=s.createElement("link"),Sn(c,"link",n),sn(c),s.head.appendChild(c)}}}function ob(n,a,s){ma.S(n,a,s);var c=ps;if(c&&n){var g=Da(c).hoistableStyles,E=ms(n);a=a||"default";var B=g.get(E);if(!B){var M={loading:0,preload:null};if(B=c.querySelector(vl(E)))M.loading=5;else{n=p({rel:"stylesheet",href:n,"data-precedence":a},s),(s=kr.get(E))&&ux(n,s);var U=B=c.createElement("link");sn(U),Sn(U,"link",n),U._p=new Promise(function(te,ce){U.onload=te,U.onerror=ce}),U.addEventListener("load",function(){M.loading|=1}),U.addEventListener("error",function(){M.loading|=2}),M.loading|=4,p0(B,a,c)}B={type:"stylesheet",instance:B,count:1,state:M},g.set(E,B)}}}function cb(n,a){ma.X(n,a);var s=ps;if(s&&n){var c=Da(s).hoistableScripts,g=gs(n),E=c.get(g);E||(E=s.querySelector(kl(g)),E||(n=p({src:n,async:!0},a),(a=kr.get(g))&&xx(n,a),E=s.createElement("script"),sn(E),Sn(E,"link",n),s.head.appendChild(E)),E={type:"script",instance:E,count:1,state:null},c.set(g,E))}}function ub(n,a){ma.M(n,a);var s=ps;if(s&&n){var c=Da(s).hoistableScripts,g=gs(n),E=c.get(g);E||(E=s.querySelector(kl(g)),E||(n=p({src:n,async:!0,type:"module"},a),(a=kr.get(g))&&xx(n,a),E=s.createElement("script"),sn(E),Sn(E,"link",n),s.head.appendChild(E)),E={type:"script",instance:E,count:1,state:null},c.set(g,E))}}function cm(n,a,s,c){var g=(g=W.current)?h0(g):null;if(!g)throw Error(i(446));switch(n){case"meta":case"title":return null;case"style":return typeof s.precedence=="string"&&typeof s.href=="string"?(a=ms(s.href),s=Da(g).hoistableStyles,c=s.get(a),c||(c={type:"style",instance:null,count:0,state:null},s.set(a,c)),c):{type:"void",instance:null,count:0,state:null};case"link":if(s.rel==="stylesheet"&&typeof s.href=="string"&&typeof s.precedence=="string"){n=ms(s.href);var E=Da(g).hoistableStyles,B=E.get(n);if(B||(g=g.ownerDocument||g,B={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},E.set(n,B),(E=g.querySelector(vl(n)))&&!E._p&&(B.instance=E,B.state.loading=5),kr.has(n)||(s={rel:"preload",as:"style",href:s.href,crossOrigin:s.crossOrigin,integrity:s.integrity,media:s.media,hrefLang:s.hrefLang,referrerPolicy:s.referrerPolicy},kr.set(n,s),E||xb(g,n,s,B.state))),a&&c===null)throw Error(i(528,""));return B}if(a&&c!==null)throw Error(i(529,""));return null;case"script":return a=s.async,s=s.src,typeof s=="string"&&a&&typeof a!="function"&&typeof a!="symbol"?(a=gs(s),s=Da(g).hoistableScripts,c=s.get(a),c||(c={type:"script",instance:null,count:0,state:null},s.set(a,c)),c):{type:"void",instance:null,count:0,state:null};default:throw Error(i(444,n))}}function ms(n){return'href="'+$n(n)+'"'}function vl(n){return'link[rel="stylesheet"]['+n+"]"}function um(n){return p({},n,{"data-precedence":n.precedence,precedence:null})}function xb(n,a,s,c){n.querySelector('link[rel="preload"][as="style"]['+a+"]")?c.loading=1:(a=n.createElement("link"),c.preload=a,a.addEventListener("load",function(){return c.loading|=1}),a.addEventListener("error",function(){return c.loading|=2}),Sn(a,"link",s),sn(a),n.head.appendChild(a))}function gs(n){return'[src="'+$n(n)+'"]'}function kl(n){return"script[async]"+n}function xm(n,a,s){if(a.count++,a.instance===null)switch(a.type){case"style":var c=n.querySelector('style[data-href~="'+$n(s.href)+'"]');if(c)return a.instance=c,sn(c),c;var g=p({},s,{"data-href":s.href,"data-precedence":s.precedence,href:null,precedence:null});return c=(n.ownerDocument||n).createElement("style"),sn(c),Sn(c,"style",g),p0(c,s.precedence,n),a.instance=c;case"stylesheet":g=ms(s.href);var E=n.querySelector(vl(g));if(E)return a.state.loading|=4,a.instance=E,sn(E),E;c=um(s),(g=kr.get(g))&&ux(c,g),E=(n.ownerDocument||n).createElement("link"),sn(E);var B=E;return B._p=new Promise(function(M,U){B.onload=M,B.onerror=U}),Sn(E,"link",c),a.state.loading|=4,p0(E,s.precedence,n),a.instance=E;case"script":return E=gs(s.src),(g=n.querySelector(kl(E)))?(a.instance=g,sn(g),g):(c=s,(g=kr.get(E))&&(c=p({},s),xx(c,g)),n=n.ownerDocument||n,g=n.createElement("script"),sn(g),Sn(g,"link",c),n.head.appendChild(g),a.instance=g);case"void":return null;default:throw Error(i(443,a.type))}else a.type==="stylesheet"&&(a.state.loading&4)===0&&(c=a.instance,a.state.loading|=4,p0(c,s.precedence,n));return a.instance}function p0(n,a,s){for(var c=s.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),g=c.length?c[c.length-1]:null,E=g,B=0;B<c.length;B++){var M=c[B];if(M.dataset.precedence===a)E=M;else if(E!==g)break}E?E.parentNode.insertBefore(n,E.nextSibling):(a=s.nodeType===9?s.head:s,a.insertBefore(n,a.firstChild))}function ux(n,a){n.crossOrigin==null&&(n.crossOrigin=a.crossOrigin),n.referrerPolicy==null&&(n.referrerPolicy=a.referrerPolicy),n.title==null&&(n.title=a.title)}function xx(n,a){n.crossOrigin==null&&(n.crossOrigin=a.crossOrigin),n.referrerPolicy==null&&(n.referrerPolicy=a.referrerPolicy),n.integrity==null&&(n.integrity=a.integrity)}var m0=null;function dm(n,a,s){if(m0===null){var c=new Map,g=m0=new Map;g.set(s,c)}else g=m0,c=g.get(s),c||(c=new Map,g.set(s,c));if(c.has(n))return c;for(c.set(n,null),s=s.getElementsByTagName(n),g=0;g<s.length;g++){var E=s[g];if(!(E[si]||E[it]||n==="link"&&E.getAttribute("rel")==="stylesheet")&&E.namespaceURI!=="http://www.w3.org/2000/svg"){var B=E.getAttribute(a)||"";B=n+B;var M=c.get(B);M?M.push(E):c.set(B,[E])}}return c}function fm(n,a,s){n=n.ownerDocument||n,n.head.insertBefore(s,a==="title"?n.querySelector("head > title"):null)}function db(n,a,s){if(s===1||a.itemProp!=null)return!1;switch(n){case"meta":case"title":return!0;case"style":if(typeof a.precedence!="string"||typeof a.href!="string"||a.href==="")break;return!0;case"link":if(typeof a.rel!="string"||typeof a.href!="string"||a.href===""||a.onLoad||a.onError)break;return a.rel==="stylesheet"?(n=a.disabled,typeof a.precedence=="string"&&n==null):!0;case"script":if(a.async&&typeof a.async!="function"&&typeof a.async!="symbol"&&!a.onLoad&&!a.onError&&a.src&&typeof a.src=="string")return!0}return!1}function hm(n){return!(n.type==="stylesheet"&&(n.state.loading&3)===0)}function fb(n,a,s,c){if(s.type==="stylesheet"&&(typeof c.media!="string"||matchMedia(c.media).matches!==!1)&&(s.state.loading&4)===0){if(s.instance===null){var g=ms(c.href),E=a.querySelector(vl(g));if(E){a=E._p,a!==null&&typeof a=="object"&&typeof a.then=="function"&&(n.count++,n=g0.bind(n),a.then(n,n)),s.state.loading|=4,s.instance=E,sn(E);return}E=a.ownerDocument||a,c=um(c),(g=kr.get(g))&&ux(c,g),E=E.createElement("link"),sn(E);var B=E;B._p=new Promise(function(M,U){B.onload=M,B.onerror=U}),Sn(E,"link",c),s.instance=E}n.stylesheets===null&&(n.stylesheets=new Map),n.stylesheets.set(s,a),(a=s.state.preload)&&(s.state.loading&3)===0&&(n.count++,s=g0.bind(n),a.addEventListener("load",s),a.addEventListener("error",s))}}var dx=0;function hb(n,a){return n.stylesheets&&n.count===0&&y0(n,n.stylesheets),0<n.count||0<n.imgCount?function(s){var c=setTimeout(function(){if(n.stylesheets&&y0(n,n.stylesheets),n.unsuspend){var E=n.unsuspend;n.unsuspend=null,E()}},6e4+a);0<n.imgBytes&&dx===0&&(dx=62500*Ky());var g=setTimeout(function(){if(n.waitingForImages=!1,n.count===0&&(n.stylesheets&&y0(n,n.stylesheets),n.unsuspend)){var E=n.unsuspend;n.unsuspend=null,E()}},(n.imgBytes>dx?50:800)+a);return n.unsuspend=s,function(){n.unsuspend=null,clearTimeout(c),clearTimeout(g)}}:null}function g0(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)y0(this,this.stylesheets);else if(this.unsuspend){var n=this.unsuspend;this.unsuspend=null,n()}}}var E0=null;function y0(n,a){n.stylesheets=null,n.unsuspend!==null&&(n.count++,E0=new Map,a.forEach(pb,n),E0=null,g0.call(n))}function pb(n,a){if(!(a.state.loading&4)){var s=E0.get(n);if(s)var c=s.get(null);else{s=new Map,E0.set(n,s);for(var g=n.querySelectorAll("link[data-precedence],style[data-precedence]"),E=0;E<g.length;E++){var B=g[E];(B.nodeName==="LINK"||B.getAttribute("media")!=="not all")&&(s.set(B.dataset.precedence,B),c=B)}c&&s.set(null,c)}g=a.instance,B=g.getAttribute("data-precedence"),E=s.get(B)||c,E===c&&s.set(null,g),s.set(B,g),this.count++,c=g0.bind(this),g.addEventListener("load",c),g.addEventListener("error",c),E?E.parentNode.insertBefore(g,E.nextSibling):(n=n.nodeType===9?n.head:n,n.insertBefore(g,n.firstChild)),a.state.loading|=4}}var Al={$$typeof:N,Provider:null,Consumer:null,_currentValue:ie,_currentValue2:ie,_threadCount:0};function mb(n,a,s,c,g,E,B,M,U){this.tag=1,this.containerInfo=n,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=_t(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=_t(0),this.hiddenUpdates=_t(null),this.identifierPrefix=c,this.onUncaughtError=g,this.onCaughtError=E,this.onRecoverableError=B,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=U,this.incompleteTransitions=new Map}function pm(n,a,s,c,g,E,B,M,U,te,ce,fe){return n=new mb(n,a,s,B,U,te,ce,fe,M),a=1,E===!0&&(a|=24),E=nr(3,null,null,a),n.current=E,E.stateNode=n,a=Gc(),a.refCount++,n.pooledCache=a,a.refCount++,E.memoizedState={element:c,isDehydrated:s,cache:a},Yc(E),n}function mm(n){return n?(n=Ki,n):Ki}function gm(n,a,s,c,g,E){g=mm(g),c.context===null?c.context=g:c.pendingContext=g,c=Ra(a),c.payload={element:s},E=E===void 0?null:E,E!==null&&(c.callback=E),s=Oa(n,c,a),s!==null&&(Kn(s,n,a),nl(s,n,a))}function Em(n,a){if(n=n.memoizedState,n!==null&&n.dehydrated!==null){var s=n.retryLane;n.retryLane=s!==0&&s<a?s:a}}function fx(n,a){Em(n,a),(n=n.alternate)&&Em(n,a)}function ym(n){if(n.tag===13||n.tag===31){var a=di(n,67108864);a!==null&&Kn(a,n,67108864),fx(n,67108864)}}function bm(n){if(n.tag===13||n.tag===31){var a=lr();a=Mt(a);var s=di(n,a);s!==null&&Kn(s,n,a),fx(n,a)}}var b0=!0;function gb(n,a,s,c){var g=I.T;I.T=null;var E=Y.p;try{Y.p=2,hx(n,a,s,c)}finally{Y.p=E,I.T=g}}function Eb(n,a,s,c){var g=I.T;I.T=null;var E=Y.p;try{Y.p=8,hx(n,a,s,c)}finally{Y.p=E,I.T=g}}function hx(n,a,s,c){if(b0){var g=px(c);if(g===null)ex(n,a,c,C0,s),vm(n,c);else if(bb(g,n,a,s,c))c.stopPropagation();else if(vm(n,c),a&4&&-1<yb.indexOf(n)){for(;g!==null;){var E=Zr(g);if(E!==null)switch(E.tag){case 3:if(E=E.stateNode,E.current.memoizedState.isDehydrated){var B=Mn(E.pendingLanes);if(B!==0){var M=E;for(M.pendingLanes|=2,M.entangledLanes|=2;B;){var U=1<<31-vt(B);M.entanglements[1]|=U,B&=~U}Hr(E),(At&6)===0&&(r0=Ne()+500,El(0))}}break;case 31:case 13:M=di(E,2),M!==null&&Kn(M,E,2),i0(),fx(E,2)}if(E=px(c),E===null&&ex(n,a,c,C0,s),E===g)break;g=E}g!==null&&c.stopPropagation()}else ex(n,a,c,null,s)}}function px(n){return n=Je(n),mx(n)}var C0=null;function mx(n){if(C0=null,n=Ln(n),n!==null){var a=o(n);if(a===null)n=null;else{var s=a.tag;if(s===13){if(n=u(a),n!==null)return n;n=null}else if(s===31){if(n=d(a),n!==null)return n;n=null}else if(s===3){if(a.stateNode.current.memoizedState.isDehydrated)return a.tag===3?a.stateNode.containerInfo:null;n=null}else a!==n&&(n=null)}}return C0=n,null}function Cm(n){switch(n){case"beforetoggle":case"cancel":case"click":case"close":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(kn()){case le:return 2;case Z:return 8;case _e:case Ge:return 32;case Xe:return 268435456;default:return 32}default:return 32}}var gx=!1,Qa=null,Ka=null,Ya=null,Bl=new Map,Dl=new Map,Xa=[],yb="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 vm(n,a){switch(n){case"focusin":case"focusout":Qa=null;break;case"dragenter":case"dragleave":Ka=null;break;case"mouseover":case"mouseout":Ya=null;break;case"pointerover":case"pointerout":Bl.delete(a.pointerId);break;case"gotpointercapture":case"lostpointercapture":Dl.delete(a.pointerId)}}function wl(n,a,s,c,g,E){return n===null||n.nativeEvent!==E?(n={blockedOn:a,domEventName:s,eventSystemFlags:c,nativeEvent:E,targetContainers:[g]},a!==null&&(a=Zr(a),a!==null&&ym(a)),n):(n.eventSystemFlags|=c,a=n.targetContainers,g!==null&&a.indexOf(g)===-1&&a.push(g),n)}function bb(n,a,s,c,g){switch(a){case"focusin":return Qa=wl(Qa,n,a,s,c,g),!0;case"dragenter":return Ka=wl(Ka,n,a,s,c,g),!0;case"mouseover":return Ya=wl(Ya,n,a,s,c,g),!0;case"pointerover":var E=g.pointerId;return Bl.set(E,wl(Bl.get(E)||null,n,a,s,c,g)),!0;case"gotpointercapture":return E=g.pointerId,Dl.set(E,wl(Dl.get(E)||null,n,a,s,c,g)),!0}return!1}function km(n){var a=Ln(n.target);if(a!==null){var s=o(a);if(s!==null){if(a=s.tag,a===13){if(a=u(s),a!==null){n.blockedOn=a,Zt(n.priority,function(){bm(s)});return}}else if(a===31){if(a=d(s),a!==null){n.blockedOn=a,Zt(n.priority,function(){bm(s)});return}}else if(a===3&&s.stateNode.current.memoizedState.isDehydrated){n.blockedOn=s.tag===3?s.stateNode.containerInfo:null;return}}}n.blockedOn=null}function v0(n){if(n.blockedOn!==null)return!1;for(var a=n.targetContainers;0<a.length;){var s=px(n.nativeEvent);if(s===null){s=n.nativeEvent;var c=new s.constructor(s.type,s);ze=c,s.target.dispatchEvent(c),ze=null}else return a=Zr(s),a!==null&&ym(a),n.blockedOn=s,!1;a.shift()}return!0}function Am(n,a,s){v0(n)&&s.delete(a)}function Cb(){gx=!1,Qa!==null&&v0(Qa)&&(Qa=null),Ka!==null&&v0(Ka)&&(Ka=null),Ya!==null&&v0(Ya)&&(Ya=null),Bl.forEach(Am),Dl.forEach(Am)}function k0(n,a){n.blockedOn===a&&(n.blockedOn=null,gx||(gx=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,Cb)))}var A0=null;function Bm(n){A0!==n&&(A0=n,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){A0===n&&(A0=null);for(var a=0;a<n.length;a+=3){var s=n[a],c=n[a+1],g=n[a+2];if(typeof c!="function"){if(mx(c||s)===null)continue;break}var E=Zr(s);E!==null&&(n.splice(a,3),a-=3,pu(E,{pending:!0,data:g,method:s.method,action:c},c,g))}}))}function Es(n){function a(U){return k0(U,n)}Qa!==null&&k0(Qa,n),Ka!==null&&k0(Ka,n),Ya!==null&&k0(Ya,n),Bl.forEach(a),Dl.forEach(a);for(var s=0;s<Xa.length;s++){var c=Xa[s];c.blockedOn===n&&(c.blockedOn=null)}for(;0<Xa.length&&(s=Xa[0],s.blockedOn===null);)km(s),s.blockedOn===null&&Xa.shift();if(s=(n.ownerDocument||n).$$reactFormReplay,s!=null)for(c=0;c<s.length;c+=3){var g=s[c],E=s[c+1],B=g[an]||null;if(typeof E=="function")B||Bm(s);else if(B){var M=null;if(E&&E.hasAttribute("formAction")){if(g=E,B=E[an]||null)M=B.formAction;else if(mx(g)!==null)continue}else M=B.action;typeof M=="function"?s[c+1]=M:(s.splice(c,3),c-=3),Bm(s)}}}function Dm(){function n(E){E.canIntercept&&E.info==="react-transition"&&E.intercept({handler:function(){return new Promise(function(B){return g=B})},focusReset:"manual",scroll:"manual"})}function a(){g!==null&&(g(),g=null),c||setTimeout(s,20)}function s(){if(!c&&!navigation.transition){var E=navigation.currentEntry;E&&E.url!=null&&navigation.navigate(E.url,{state:E.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var c=!1,g=null;return navigation.addEventListener("navigate",n),navigation.addEventListener("navigatesuccess",a),navigation.addEventListener("navigateerror",a),setTimeout(s,100),function(){c=!0,navigation.removeEventListener("navigate",n),navigation.removeEventListener("navigatesuccess",a),navigation.removeEventListener("navigateerror",a),g!==null&&(g(),g=null)}}}function Ex(n){this._internalRoot=n}B0.prototype.render=Ex.prototype.render=function(n){var a=this._internalRoot;if(a===null)throw Error(i(409));var s=a.current,c=lr();gm(s,c,n,a,null,null)},B0.prototype.unmount=Ex.prototype.unmount=function(){var n=this._internalRoot;if(n!==null){this._internalRoot=null;var a=n.containerInfo;gm(n.current,2,null,n,null,null),i0(),a[Pr]=null}};function B0(n){this._internalRoot=n}B0.prototype.unstable_scheduleHydration=function(n){if(n){var a=Ee();n={blockedOn:null,target:n,priority:a};for(var s=0;s<Xa.length&&a!==0&&a<Xa[s].priority;s++);Xa.splice(s,0,n),s===0&&km(n)}};var wm=t.version;if(wm!=="19.2.7")throw Error(i(527,wm,"19.2.7"));Y.findDOMNode=function(n){var a=n._reactInternals;if(a===void 0)throw typeof n.render=="function"?Error(i(188)):(n=Object.keys(n).join(","),Error(i(268,n)));return n=h(a),n=n!==null?m(n):null,n=n===null?null:n.stateNode,n};var vb={bundleType:0,version:"19.2.7",rendererPackageName:"react-dom",currentDispatcherRef:I,reconcilerVersion:"19.2.7"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var D0=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!D0.isDisabled&&D0.supportsFiber)try{Yt=D0.inject(vb),Bt=D0}catch{}}return Sl.createRoot=function(n,a){if(!l(n))throw Error(i(299));var s=!1,c="",g=T1,E=R1,B=O1;return a!=null&&(a.unstable_strictMode===!0&&(s=!0),a.identifierPrefix!==void 0&&(c=a.identifierPrefix),a.onUncaughtError!==void 0&&(g=a.onUncaughtError),a.onCaughtError!==void 0&&(E=a.onCaughtError),a.onRecoverableError!==void 0&&(B=a.onRecoverableError)),a=pm(n,1,!1,null,null,s,c,null,g,E,B,Dm),n[Pr]=a.current,Ju(n),new Ex(a)},Sl.hydrateRoot=function(n,a,s){if(!l(n))throw Error(i(299));var c=!1,g="",E=T1,B=R1,M=O1,U=null;return s!=null&&(s.unstable_strictMode===!0&&(c=!0),s.identifierPrefix!==void 0&&(g=s.identifierPrefix),s.onUncaughtError!==void 0&&(E=s.onUncaughtError),s.onCaughtError!==void 0&&(B=s.onCaughtError),s.onRecoverableError!==void 0&&(M=s.onRecoverableError),s.formState!==void 0&&(U=s.formState)),a=pm(n,1,!0,a,s??null,c,g,U,E,B,M,Dm),a.context=mm(null),s=a.current,c=lr(),c=Mt(c),g=Ra(c),g.callback=null,Oa(s,g,c),s=c,a.current.lanes=s,kt(a,s),Hr(a),n[Pr]=a.current,Ju(n),new B0(a)},Sl.version="19.2.7",Sl}var Qm;function m4(){if(Qm)return Cx.exports;Qm=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Cx.exports=p4(),Cx.exports}var g4=m4();var Yd=/^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i,p8=/^[\\/]{2}/;function E4(e,t){return t+e.replace(/\\/g,"/")}var Km="popstate";function Ym(e){return typeof e=="object"&&e!=null&&"pathname"in e&&"search"in e&&"hash"in e&&"state"in e&&"key"in e}function y4(e={}){function t(i,l){let o=l.state?.masked,{pathname:u,search:d,hash:f}=o||i.location;return fd("",{pathname:u,search:d,hash:f},l.state&&l.state.usr||null,l.state&&l.state.key||"default",o?{pathname:i.location.pathname,search:i.location.search,hash:i.location.hash}:void 0)}function r(i,l){return typeof l=="string"?l:Kl(l)}return C4(t,r,null,e)}function Gt(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function wr(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function b4(){return Math.random().toString(36).substring(2,10)}function Xm(e,t){return{usr:e.state,key:e.key,idx:t,masked:e.mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}function fd(e,t,r=null,i,l){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?Ss(t):t,state:r,key:t&&t.key||i||b4(),mask:l}}function Kl({pathname:e="/",search:t="",hash:r=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),r&&r!=="#"&&(e+=r.charAt(0)==="#"?r:"#"+r),e}function Ss(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substring(r),e=e.substring(0,r));let i=e.indexOf("?");i>=0&&(t.search=e.substring(i),e=e.substring(0,i)),e&&(t.pathname=e)}return t}function C4(e,t,r,i={}){let{window:l=document.defaultView,v5Compat:o=!1}=i,u=l.history,d="POP",f=null,h=m();h==null&&(h=0,u.replaceState({...u.state,idx:h},""));function m(){return(u.state||{idx:null}).idx}function p(){d="POP";let v=m(),A=v==null?null:v-h;h=v,f&&f({action:d,location:k.location,delta:A})}function y(v,A){d="PUSH";let F=Ym(v)?v:fd(k.location,v,A);h=m()+1;let N=Xm(F,h),_=k.createHref(F.mask||F);try{u.pushState(N,"",_)}catch(S){if(S instanceof DOMException&&S.name==="DataCloneError")throw S;l.location.assign(_)}o&&f&&f({action:d,location:k.location,delta:1})}function b(v,A){d="REPLACE";let F=Ym(v)?v:fd(k.location,v,A);h=m();let N=Xm(F,h),_=k.createHref(F.mask||F);u.replaceState(N,"",_),o&&f&&f({action:d,location:k.location,delta:0})}function C(v){return v4(l,v)}let k={get action(){return d},get location(){return e(l,u)},listen(v){if(f)throw new Error("A history only accepts one active listener");return l.addEventListener(Km,p),f=v,()=>{l.removeEventListener(Km,p),f=null}},createHref(v){return t(l,v)},createURL:C,encodeLocation(v){let A=C(v);return{pathname:A.pathname,search:A.search,hash:A.hash}},push:y,replace:b,go(v){return u.go(v)}};return k}function v4(e,t,r=!1){let i="http://localhost";e&&(i=e.location.origin!=="null"?e.location.origin:e.location.href),Gt(i,"No window.location.(origin|href) available to create URL");let l=typeof t=="string"?t:Kl(t);return l=l.replace(/ $/,"%20"),!r&&p8.test(l)&&(l=i+l),new URL(l,i)}function m8(e,t,r="/"){return k4(e,t,r,!1)}function k4(e,t,r,i,l){let o=typeof t=="string"?Ss(t):t,u=ba(o.pathname||"/",r);if(u==null)return null;let d=A4(e),f=null,h=C8(u);for(let m=0;f==null&&m<d.length;++m)f=T4(d[m],h,i);return f}function A4(e){let t=g8(e);return B4(t),t}function g8(e,t=[],r=[],i="",l=!1){let o=(u,d,f=l,h)=>{let m={relativePath:h===void 0?u.path||"":h,caseSensitive:u.caseSensitive===!0,childrenIndex:d,route:u};if(m.relativePath.startsWith("/")){if(!m.relativePath.startsWith(i)&&f)return;Gt(m.relativePath.startsWith(i),`Absolute route path "${m.relativePath}" nested under path "${i}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),m.relativePath=m.relativePath.slice(i.length)}let p=Or([i,m.relativePath]),y=r.concat(m);u.children&&u.children.length>0&&(Gt(u.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${p}".`),g8(u.children,t,y,p,f)),!(u.path==null&&!u.index)&&t.push({path:p,score:M4(p,u.index),routesMeta:y.map((b,C)=>{let[k,v]=b8(b.relativePath,b.caseSensitive,C===y.length-1);return{...b,matcher:k,compiledParams:v}})})};return e.forEach((u,d)=>{if(u.path===""||!u.path?.includes("?"))o(u,d);else for(let f of E8(u.path))o(u,d,!0,f)}),t}function E8(e){let t=e.split("/");if(t.length===0)return[];let[r,...i]=t,l=r.endsWith("?"),o=r.replace(/\?$/,"");if(i.length===0)return l?[o,""]:[o];let u=E8(i.join("/")),d=[];return d.push(...u.map(f=>f===""?o:[o,f].join("/"))),l&&d.push(...u),d.map(f=>e.startsWith("/")&&f===""?"/":f)}function B4(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:j4(t.routesMeta.map(i=>i.childrenIndex),r.routesMeta.map(i=>i.childrenIndex)))}var D4=/^:[\w-]+$/,w4=3,F4=2,S4=1,N4=10,_4=-2,Wm=e=>e==="*";function M4(e,t){let r=e.split("/"),i=r.length;return r.some(Wm)&&(i+=_4),t&&(i+=F4),r.filter(l=>!Wm(l)).reduce((l,o)=>l+(D4.test(o)?w4:o===""?S4:N4),i)}function j4(e,t){return e.length===t.length&&e.slice(0,-1).every((i,l)=>i===t[l])?e[e.length-1]-t[t.length-1]:0}function T4(e,t,r=!1){let{routesMeta:i}=e,l={},o="/",u=[];for(let d=0;d<i.length;++d){let f=i[d],h=d===i.length-1,m=o==="/"?t:t.slice(o.length)||"/",p={path:f.relativePath,caseSensitive:f.caseSensitive,end:h},y=f.matcher&&f.compiledParams?y8(p,m,f.matcher,f.compiledParams):Yl(p,m),b=f.route;if(!y&&h&&r&&!i[i.length-1].route.index&&(y=Yl({path:f.relativePath,caseSensitive:f.caseSensitive,end:!1},m)),!y)return null;Object.assign(l,y.params),u.push({params:l,pathname:Or([o,y.pathname]),pathnameBase:z4(Or([o,y.pathnameBase])),route:b}),y.pathnameBase!=="/"&&(o=Or([o,y.pathnameBase]))}return u}function Yl(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[r,i]=b8(e.path,e.caseSensitive,e.end);return y8(e,t,r,i)}function y8(e,t,r,i){let l=t.match(r);if(!l)return null;let o=l[0],u=o.replace(/(.)\/+$/,"$1"),d=l.slice(1);return{params:i.reduce((h,{paramName:m,isOptional:p},y)=>{if(m==="*"){let C=d[y]||"";u=o.slice(0,o.length-C.length).replace(/(.)\/+$/,"$1")}const b=d[y];return p&&!b?h[m]=void 0:h[m]=(b||"").replace(/%2F/g,"/"),h},{}),pathname:o,pathnameBase:u,pattern:e}}function b8(e,t=!1,r=!0){wr(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let i=[],l="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(u,d,f,h,m)=>{if(i.push({paramName:d,isOptional:f!=null}),f){let p=m.charAt(h+u.length);return p&&p!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(i.push({paramName:"*"}),l+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?l+="\\/*$":e!==""&&e!=="/"&&(l+="(?:(?=\\/|$))"),[new RegExp(l,t?void 0:"i"),i]}function C8(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return wr(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function ba(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,i=e.charAt(r);return i&&i!=="/"?null:e.slice(r)||"/"}function R4(e,t="/"){let{pathname:r,search:i="",hash:l=""}=typeof e=="string"?Ss(e):e,o;return r?(r=v8(r),r.startsWith("/")?o=Zm(r.substring(1),"/"):o=Zm(r,t)):o=t,{pathname:o,search:L4(i),hash:P4(l)}}function Zm(e,t){let r=Z0(t).split("/");return e.split("/").forEach(l=>{l===".."?r.length>1&&r.pop():l!=="."&&r.push(l)}),r.length>1?r.join("/"):"/"}function Bx(e,t,r,i){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(i)}]. Please separate it out to the \`to.${r}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function O4(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function Xd(e){let t=O4(e);return t.map((r,i)=>i===t.length-1?r.pathname:r.pathnameBase)}function sc(e,t,r,i=!1){let l;typeof e=="string"?l=Ss(e):(l={...e},Gt(!l.pathname||!l.pathname.includes("?"),Bx("?","pathname","search",l)),Gt(!l.pathname||!l.pathname.includes("#"),Bx("#","pathname","hash",l)),Gt(!l.search||!l.search.includes("#"),Bx("#","search","hash",l)));let o=e===""||l.pathname==="",u=o?"/":l.pathname,d;if(u==null)d=r;else{let p=t.length-1;if(!i&&u.startsWith("..")){let y=u.split("/");for(;y[0]==="..";)y.shift(),p-=1;l.pathname=y.join("/")}d=p>=0?t[p]:"/"}let f=R4(l,d),h=u&&u!=="/"&&u.endsWith("/"),m=(o||u===".")&&r.endsWith("/");return!f.pathname.endsWith("/")&&(h||m)&&(f.pathname+="/"),f}var v8=e=>e.replace(/[\\/]{2,}/g,"/"),Or=e=>v8(e.join("/")),Z0=e=>e.replace(/\/+$/,""),z4=e=>Z0(e).replace(/^\/*/,"/"),L4=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,P4=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,I4=class{constructor(e,t,r,i=!1){this.status=e,this.statusText=t||"",this.internal=i,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}};function U4(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function $4(e){let t=e.map(r=>r.route.path).filter(Boolean);return Or(t)||"/"}var k8=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function A8(e,t){let r=e;if(typeof r!="string"||!Yd.test(r))return{absoluteURL:void 0,isExternal:!1,to:r};let i=r,l=!1;if(k8)try{let o=new URL(window.location.href),u=p8.test(r)?new URL(E4(r,o.protocol)):new URL(r),d=ba(u.pathname,t);u.origin===o.origin&&d!=null?r=d+u.search+u.hash:l=!0}catch{wr(!1,`<Link to="${r}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:i,isExternal:l,to:r}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var B8=["POST","PUT","PATCH","DELETE"];new Set(B8);var H4=["GET",...B8];new Set(H4);var q4=["about:","blob:","chrome:","chrome-untrusted:","content:","data:","devtools:","file:","filesystem:","javascript:"];function G4(e){try{return q4.includes(new URL(e).protocol)}catch{return!1}}var Ns=D.createContext(null);Ns.displayName="DataRouter";var lc=D.createContext(null);lc.displayName="DataRouterState";var D8=D.createContext(!1);function V4(){return D.useContext(D8)}var w8=D.createContext({isTransitioning:!1});w8.displayName="ViewTransition";var Q4=D.createContext(new Map);Q4.displayName="Fetchers";var K4=D.createContext(null);K4.displayName="Await";var fr=D.createContext(null);fr.displayName="Navigation";var ao=D.createContext(null);ao.displayName="Location";var Fr=D.createContext({outlet:null,matches:[],isDataRoute:!1});Fr.displayName="Route";var Wd=D.createContext(null);Wd.displayName="RouteError";var F8="REACT_ROUTER_ERROR",Y4="REDIRECT",X4="ROUTE_ERROR_RESPONSE";function W4(e){if(e.startsWith(`${F8}:${Y4}:{`))try{let t=JSON.parse(e.slice(28));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.location=="string"&&typeof t.reloadDocument=="boolean"&&typeof t.replace=="boolean")return t}catch{}}function Z4(e){if(e.startsWith(`${F8}:${X4}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string")return new I4(t.status,t.statusText,t.data)}catch{}}function J4(e,{relative:t}={}){Gt(Ti(),"useHref() may be used only in the context of a <Router> component.");let{basename:r,navigator:i}=D.useContext(fr),{hash:l,pathname:o,search:u}=io(e,{relative:t}),d=o;return r!=="/"&&(d=o==="/"?r:Or([r,o])),i.createHref({pathname:d,search:u,hash:l})}function Ti(){return D.useContext(ao)!=null}function Sr(){return Gt(Ti(),"useLocation() may be used only in the context of a <Router> component."),D.useContext(ao).location}function e7(e){Gt(Ti(),"useMatch() may be used only in the context of a <Router> component.");let{pathname:t}=Sr();return D.useMemo(()=>Yl(e,C8(t)),[t,e])}var S8="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function N8(e){D.useContext(fr).static||D.useLayoutEffect(e)}function Ri(){let{isDataRoute:e}=D.useContext(Fr);return e?m7():t7()}function t7(){Gt(Ti(),"useNavigate() may be used only in the context of a <Router> component.");let e=D.useContext(Ns),{basename:t,navigator:r}=D.useContext(fr),{matches:i}=D.useContext(Fr),{pathname:l}=Sr(),o=JSON.stringify(Xd(i)),u=D.useRef(!1);return N8(()=>{u.current=!0}),D.useCallback((f,h={})=>{if(wr(u.current,S8),!u.current)return;if(typeof f=="number"){r.go(f);return}let m=sc(f,JSON.parse(o),l,h.relative==="path");e==null&&t!=="/"&&(m.pathname=m.pathname==="/"?t:Or([t,m.pathname])),(h.replace?r.replace:r.push)(m,h.state,h)},[t,r,o,l,e])}var n7=D.createContext(null);function r7(e){let t=D.useContext(Fr).outlet;return D.useMemo(()=>t&&D.createElement(n7.Provider,{value:e},t),[t,e])}function a7(){let{matches:e}=D.useContext(Fr);return e[e.length-1]?.params??{}}function io(e,{relative:t}={}){let{matches:r}=D.useContext(Fr),{pathname:i}=Sr(),l=JSON.stringify(Xd(r));return D.useMemo(()=>sc(e,JSON.parse(l),i,t==="path"),[e,l,i,t])}function i7(e,t){return _8(e,t)}function _8(e,t,r){Gt(Ti(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:i}=D.useContext(fr),{matches:l}=D.useContext(Fr),o=l[l.length-1],u=o?o.params:{},d=o?o.pathname:"/",f=o?o.pathnameBase:"/",h=o&&o.route;{let v=h&&h.path||"";j8(d,!h||v.endsWith("*")||v.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${d}" (under <Route path="${v}">) 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.
|
|
10
|
-
|
|
11
|
-
Please change the parent <Route path="${v}"> to <Route path="${v==="/"?"*":`${v}/*`}">.`)}let m=Sr(),p;if(t){let v=typeof t=="string"?Ss(t):t;Gt(f==="/"||v.pathname?.startsWith(f),`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 "${f}" but pathname "${v.pathname}" was given in the \`location\` prop.`),p=v}else p=m;let y=p.pathname||"/",b=y;if(f!=="/"){let v=f.replace(/^\//,"").split("/");b="/"+y.replace(/^\//,"").split("/").slice(v.length).join("/")}let C=r&&r.state.matches.length?r.state.matches.map(v=>Object.assign(v,{route:r.manifest[v.route.id]||v.route})):m8(e,{pathname:b});wr(h||C!=null,`No routes matched location "${p.pathname}${p.search}${p.hash}" `),wr(C==null||C[C.length-1].route.element!==void 0||C[C.length-1].route.Component!==void 0||C[C.length-1].route.lazy!==void 0,`Matched leaf route at location "${p.pathname}${p.search}${p.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 k=u7(C&&C.map(v=>Object.assign({},v,{params:Object.assign({},u,v.params),pathname:Or([f,i.encodeLocation?i.encodeLocation(v.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:v.pathname]),pathnameBase:v.pathnameBase==="/"?f:Or([f,i.encodeLocation?i.encodeLocation(v.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:v.pathnameBase])})),l,r);return t&&k?D.createElement(ao.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",mask:void 0,...p},navigationType:"POP"}},k):k}function s7(){let e=p7(),t=U4(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,i="rgba(200,200,200, 0.5)",l={padding:"0.5rem",backgroundColor:i},o={padding:"2px 4px",backgroundColor:i},u=null;return console.error("Error handled by React Router default ErrorBoundary:",e),u=D.createElement(D.Fragment,null,D.createElement("p",null,"💿 Hey developer 👋"),D.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",D.createElement("code",{style:o},"ErrorBoundary")," or"," ",D.createElement("code",{style:o},"errorElement")," prop on your route.")),D.createElement(D.Fragment,null,D.createElement("h2",null,"Unexpected Application Error!"),D.createElement("h3",{style:{fontStyle:"italic"}},t),r?D.createElement("pre",{style:l},r):null,u)}var l7=D.createElement(s7,null),M8=class extends D.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||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error("React Router caught the following error during render",e)}render(){let e=this.state.error;if(this.context&&typeof e=="object"&&e&&"digest"in e&&typeof e.digest=="string"){const r=Z4(e.digest);r&&(e=r)}let t=e!==void 0?D.createElement(Fr.Provider,{value:this.props.routeContext},D.createElement(Wd.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?D.createElement(o7,{error:e},t):t}};M8.contextType=D8;var Dx=new WeakMap;function o7({children:e,error:t}){let{basename:r}=D.useContext(fr);if(typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){let i=W4(t.digest);if(i){let l=Dx.get(t);if(l)throw l;let o=A8(i.location,r),u=o.absoluteURL||o.to;if(G4(u))throw new Error("Invalid redirect location");if(k8&&!Dx.get(t))if(o.isExternal||i.reloadDocument)window.location.href=u;else{const d=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(o.to,{replace:i.replace}));throw Dx.set(t,d),d}return D.createElement("meta",{httpEquiv:"refresh",content:`0;url=${u}`})}}return e}function c7({routeContext:e,match:t,children:r}){let i=D.useContext(Ns);return i&&i.static&&i.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=t.route.id),D.createElement(Fr.Provider,{value:e},r)}function u7(e,t=[],r){let i=r?.state;if(e==null){if(!i)return null;if(i.errors)e=i.matches;else if(t.length===0&&!i.initialized&&i.matches.length>0)e=i.matches;else return null}let l=e,o=i?.errors;if(o!=null){let m=l.findIndex(p=>p.route.id&&o?.[p.route.id]!==void 0);Gt(m>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(o).join(",")}`),l=l.slice(0,Math.min(l.length,m+1))}let u=!1,d=-1;if(r&&i){u=i.renderFallback;for(let m=0;m<l.length;m++){let p=l[m];if((p.route.HydrateFallback||p.route.hydrateFallbackElement)&&(d=m),p.route.id){let{loaderData:y,errors:b}=i,C=p.route.loader&&!y.hasOwnProperty(p.route.id)&&(!b||b[p.route.id]===void 0);if(p.route.lazy||C){r.isStatic&&(u=!0),d>=0?l=l.slice(0,d+1):l=[l[0]];break}}}}let f=r?.onError,h=i&&f?(m,p)=>{f(m,{location:i.location,params:i.matches?.[0]?.params??{},pattern:$4(i.matches),errorInfo:p})}:void 0;return l.reduceRight((m,p,y)=>{let b,C=!1,k=null,v=null;i&&(b=o&&p.route.id?o[p.route.id]:void 0,k=p.route.errorElement||l7,u&&(d<0&&y===0?(j8("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),C=!0,v=null):d===y&&(C=!0,v=p.route.hydrateFallbackElement||null)));let A=t.concat(l.slice(0,y+1)),F=()=>{let N;return b?N=k:C?N=v:p.route.Component?N=D.createElement(p.route.Component,null):p.route.element?N=p.route.element:N=m,D.createElement(c7,{match:p,routeContext:{outlet:m,matches:A,isDataRoute:i!=null},children:N})};return i&&(p.route.ErrorBoundary||p.route.errorElement||y===0)?D.createElement(M8,{location:i.location,revalidation:i.revalidation,component:k,error:b,children:F(),routeContext:{outlet:null,matches:A,isDataRoute:!0},onError:h}):F()},null)}function Zd(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function x7(e){let t=D.useContext(Ns);return Gt(t,Zd(e)),t}function d7(e){let t=D.useContext(lc);return Gt(t,Zd(e)),t}function f7(e){let t=D.useContext(Fr);return Gt(t,Zd(e)),t}function Jd(e){let t=f7(e),r=t.matches[t.matches.length-1];return Gt(r.route.id,`${e} can only be used on routes that contain a unique "id"`),r.route.id}function h7(){return Jd("useRouteId")}function p7(){let e=D.useContext(Wd),t=d7("useRouteError"),r=Jd("useRouteError");return e!==void 0?e:t.errors?.[r]}function m7(){let{router:e}=x7("useNavigate"),t=Jd("useNavigate"),r=D.useRef(!1);return N8(()=>{r.current=!0}),D.useCallback(async(l,o={})=>{wr(r.current,S8),r.current&&(typeof l=="number"?await e.navigate(l):await e.navigate(l,{fromRouteId:t,...o}))},[e,t])}var Jm={};function j8(e,t,r){!t&&!Jm[e]&&(Jm[e]=!0,wr(!1,r))}D.memo(g7);function g7({routes:e,manifest:t,future:r,state:i,isStatic:l,onError:o}){return _8(e,void 0,{manifest:t,state:i,isStatic:l,onError:o})}function E7({to:e,replace:t,state:r,relative:i}){Gt(Ti(),"<Navigate> may be used only in the context of a <Router> component.");let{static:l}=D.useContext(fr);wr(!l,"<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{matches:o}=D.useContext(Fr),{pathname:u}=Sr(),d=Ri(),f=sc(e,Xd(o),u,i==="path"),h=JSON.stringify(f);return D.useEffect(()=>{d(JSON.parse(h),{replace:t,state:r,relative:i})},[d,h,i,t,r]),null}function y7(e){return r7(e.context)}function Il(e){Gt(!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 b7({basename:e="/",children:t=null,location:r,navigationType:i="POP",navigator:l,static:o=!1,useTransitions:u}){Gt(!Ti(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let d=e.replace(/^\/*/,"/"),f=D.useMemo(()=>({basename:d,navigator:l,static:o,useTransitions:u,future:{}}),[d,l,o,u]);typeof r=="string"&&(r=Ss(r));let{pathname:h="/",search:m="",hash:p="",state:y=null,key:b="default",mask:C}=r,k=D.useMemo(()=>{let v=ba(h,d);return v==null?null:{location:{pathname:v,search:m,hash:p,state:y,key:b,mask:C},navigationType:i}},[d,h,m,p,y,b,i,C]);return wr(k!=null,`<Router basename="${d}"> is not able to match the URL "${h}${m}${p}" because it does not start with the basename, so the <Router> won't render anything.`),k==null?null:D.createElement(fr.Provider,{value:f},D.createElement(ao.Provider,{children:t,value:k}))}function C7({children:e,location:t}){return i7(hd(e),t)}function hd(e,t=[]){let r=[];return D.Children.forEach(e,(i,l)=>{if(!D.isValidElement(i))return;let o=[...t,l];if(i.type===D.Fragment){r.push.apply(r,hd(i.props.children,o));return}Gt(i.type===Il,`[${typeof i.type=="string"?i.type:i.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),Gt(!i.props.index||!i.props.children,"An index route cannot have child routes.");let u={id:i.props.id||o.join("-"),caseSensitive:i.props.caseSensitive,element:i.props.element,Component:i.props.Component,index:i.props.index,path:i.props.path,middleware:i.props.middleware,loader:i.props.loader,action:i.props.action,hydrateFallbackElement:i.props.hydrateFallbackElement,HydrateFallback:i.props.HydrateFallback,errorElement:i.props.errorElement,ErrorBoundary:i.props.ErrorBoundary,hasErrorBoundary:i.props.hasErrorBoundary===!0||i.props.ErrorBoundary!=null||i.props.errorElement!=null,shouldRevalidate:i.props.shouldRevalidate,handle:i.props.handle,lazy:i.props.lazy};i.props.children&&(u.children=hd(i.props.children,o)),r.push(u)}),r}var q0="get",G0="application/x-www-form-urlencoded";function oc(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}function v7(e){return oc(e)&&e.tagName.toLowerCase()==="button"}function k7(e){return oc(e)&&e.tagName.toLowerCase()==="form"}function A7(e){return oc(e)&&e.tagName.toLowerCase()==="input"}function B7(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function D7(e,t){return e.button===0&&(!t||t==="_self")&&!B7(e)}function pd(e=""){return new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,r)=>{let i=e[r];return t.concat(Array.isArray(i)?i.map(l=>[r,l]):[[r,i]])},[]))}function w7(e,t){let r=pd(e);return t&&t.forEach((i,l)=>{r.has(l)||t.getAll(l).forEach(o=>{r.append(l,o)})}),r}var S0=null;function F7(){if(S0===null)try{new FormData(document.createElement("form"),0),S0=!1}catch{S0=!0}return S0}var S7=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function wx(e){return e!=null&&!S7.has(e)?(wr(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${G0}"`),null):e}function N7(e,t){let r,i,l,o,u;if(k7(e)){let d=e.getAttribute("action");i=d?ba(d,t):null,r=e.getAttribute("method")||q0,l=wx(e.getAttribute("enctype"))||G0,o=new FormData(e)}else if(v7(e)||A7(e)&&(e.type==="submit"||e.type==="image")){let d=e.form;if(d==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let f=e.getAttribute("formaction")||d.getAttribute("action");if(i=f?ba(f,t):null,r=e.getAttribute("formmethod")||d.getAttribute("method")||q0,l=wx(e.getAttribute("formenctype"))||wx(d.getAttribute("enctype"))||G0,o=new FormData(d,e),!F7()){let{name:h,type:m,value:p}=e;if(m==="image"){let y=h?`${h}.`:"";o.append(`${y}x`,"0"),o.append(`${y}y`,"0")}else h&&o.append(h,p)}}else{if(oc(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=q0,i=null,l=G0,u=e}return o&&l==="text/plain"&&(u=o,o=void 0),{action:i,method:r.toLowerCase(),encType:l,formData:o,body:u}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function ef(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function T8(e,t,r,i){let l=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return r?l.pathname.endsWith("/")?l.pathname=`${l.pathname}_.${i}`:l.pathname=`${l.pathname}.${i}`:l.pathname==="/"?l.pathname=`_root.${i}`:t&&ba(l.pathname,t)==="/"?l.pathname=`${Z0(t)}/_root.${i}`:l.pathname=`${Z0(l.pathname)}.${i}`,l}async function _7(e,t){if(e.id in t)return t[e.id];try{let r=await import(e.module);return t[e.id]=r,r}catch(r){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(r),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function M7(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function j7(e,t,r){let i=await Promise.all(e.map(async l=>{let o=t.routes[l.route.id];if(o){let u=await _7(o,r);return u.links?u.links():[]}return[]}));return z7(i.flat(1).filter(M7).filter(l=>l.rel==="stylesheet"||l.rel==="preload").map(l=>l.rel==="stylesheet"?{...l,rel:"prefetch",as:"style"}:{...l,rel:"prefetch"}))}function e9(e,t,r,i,l,o){let u=(f,h)=>r[h]?f.route.id!==r[h].route.id:!0,d=(f,h)=>r[h].pathname!==f.pathname||r[h].route.path?.endsWith("*")&&r[h].params["*"]!==f.params["*"];return o==="assets"?t.filter((f,h)=>u(f,h)||d(f,h)):o==="data"?t.filter((f,h)=>{let m=i.routes[f.route.id];if(!m||!m.hasLoader)return!1;if(u(f,h)||d(f,h))return!0;if(f.route.shouldRevalidate){let p=f.route.shouldRevalidate({currentUrl:new URL(l.pathname+l.search+l.hash,window.origin),currentParams:r[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:f.params,defaultShouldRevalidate:!0});if(typeof p=="boolean")return p}return!0}):[]}function T7(e,t,{includeHydrateFallback:r}={}){return R7(e.map(i=>{let l=t.routes[i.route.id];if(!l)return[];let o=[l.module];return l.clientActionModule&&(o=o.concat(l.clientActionModule)),l.clientLoaderModule&&(o=o.concat(l.clientLoaderModule)),r&&l.hydrateFallbackModule&&(o=o.concat(l.hydrateFallbackModule)),l.imports&&(o=o.concat(l.imports)),o}).flat(1))}function R7(e){return[...new Set(e)]}function O7(e){let t={},r=Object.keys(e).sort();for(let i of r)t[i]=e[i];return t}function z7(e,t){let r=new Set;return new Set(t),e.reduce((i,l)=>{let o=JSON.stringify(O7(l));return r.has(o)||(r.add(o),i.push({key:o,link:l})),i},[])}function tf(){let e=D.useContext(Ns);return ef(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function L7(){let e=D.useContext(lc);return ef(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var nf=D.createContext(void 0);nf.displayName="FrameworkContext";function cc(){let e=D.useContext(nf);return ef(e,"You must render this element inside a <HydratedRouter> element"),e}function P7(e,t){let r=D.useContext(nf),[i,l]=D.useState(!1),[o,u]=D.useState(!1),{onFocus:d,onBlur:f,onMouseEnter:h,onMouseLeave:m,onTouchStart:p}=t,y=D.useRef(null);D.useEffect(()=>{if(e==="render"&&u(!0),e==="viewport"){let k=A=>{A.forEach(F=>{u(F.isIntersecting)})},v=new IntersectionObserver(k,{threshold:.5});return y.current&&v.observe(y.current),()=>{v.disconnect()}}},[e]),D.useEffect(()=>{if(i){let k=setTimeout(()=>{u(!0)},100);return()=>{clearTimeout(k)}}},[i]);let b=()=>{l(!0)},C=()=>{l(!1),u(!1)};return r?e!=="intent"?[o,y,{}]:[o,y,{onFocus:Nl(d,b),onBlur:Nl(f,C),onMouseEnter:Nl(h,b),onMouseLeave:Nl(m,C),onTouchStart:Nl(p,b)}]:[!1,y,{}]}function Nl(e,t){return r=>{e&&e(r),r.defaultPrevented||t(r)}}function I7({page:e,...t}){let r=V4(),{nonce:i}=cc(),{router:l}=tf(),o=D.useMemo(()=>m8(l.routes,e,l.basename),[l.routes,e,l.basename]);return o?(t.nonce==null&&i&&(t={...t,nonce:i}),r?D.createElement($7,{page:e,matches:o,...t}):D.createElement(H7,{page:e,matches:o,...t})):null}function U7(e){let{manifest:t,routeModules:r}=cc(),[i,l]=D.useState([]);return D.useEffect(()=>{let o=!1;return j7(e,t,r).then(u=>{o||l(u)}),()=>{o=!0}},[e,t,r]),i}function $7({page:e,matches:t,...r}){let i=Sr(),{future:l}=cc(),{basename:o}=tf(),u=D.useMemo(()=>{if(e===i.pathname+i.search+i.hash)return[];let d=T8(e,o,l.v8_trailingSlashAwareDataRequests,"rsc"),f=!1,h=[];for(let m of t)typeof m.route.shouldRevalidate=="function"?f=!0:h.push(m.route.id);return f&&h.length>0&&d.searchParams.set("_routes",h.join(",")),[d.pathname+d.search]},[o,l.v8_trailingSlashAwareDataRequests,e,i,t]);return D.createElement(D.Fragment,null,u.map(d=>D.createElement("link",{key:d,rel:"prefetch",as:"fetch",href:d,...r})))}function H7({page:e,matches:t,...r}){let i=Sr(),{future:l,manifest:o,routeModules:u}=cc(),{basename:d}=tf(),{loaderData:f,matches:h}=L7(),m=D.useMemo(()=>e9(e,t,h,o,i,"data"),[e,t,h,o,i]),p=D.useMemo(()=>e9(e,t,h,o,i,"assets"),[e,t,h,o,i]),y=D.useMemo(()=>{if(e===i.pathname+i.search+i.hash)return[];let k=new Set,v=!1;if(t.forEach(F=>{let N=o.routes[F.route.id];!N||!N.hasLoader||(!m.some(_=>_.route.id===F.route.id)&&F.route.id in f&&u[F.route.id]?.shouldRevalidate||N.hasClientLoader?v=!0:k.add(F.route.id))}),k.size===0)return[];let A=T8(e,d,l.v8_trailingSlashAwareDataRequests,"data");return v&&k.size>0&&A.searchParams.set("_routes",t.filter(F=>k.has(F.route.id)).map(F=>F.route.id).join(",")),[A.pathname+A.search]},[d,l.v8_trailingSlashAwareDataRequests,f,i,o,m,t,e,u]),b=D.useMemo(()=>T7(p,o),[p,o]),C=U7(p);return D.createElement(D.Fragment,null,y.map(k=>D.createElement("link",{key:k,rel:"prefetch",as:"fetch",href:k,...r})),b.map(k=>D.createElement("link",{key:k,rel:"modulepreload",href:k,...r})),C.map(({key:k,link:v})=>D.createElement("link",{key:k,nonce:r.nonce,...v,crossOrigin:v.crossOrigin??r.crossOrigin})))}function q7(...e){return t=>{e.forEach(r=>{typeof r=="function"?r(t):r!=null&&(r.current=t)})}}var G7=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{G7&&(window.__reactRouterVersion="7.18.1")}catch{}function V7({basename:e,children:t,useTransitions:r,window:i}){let l=D.useRef();l.current==null&&(l.current=y4({window:i,v5Compat:!0}));let o=l.current,[u,d]=D.useState({action:o.action,location:o.location}),f=D.useCallback(h=>{r===!1?d(h):D.startTransition(()=>d(h))},[r]);return D.useLayoutEffect(()=>o.listen(f),[o,f]),D.createElement(b7,{basename:e,children:t,location:u.location,navigationType:u.action,navigator:o,useTransitions:r})}var R8=D.forwardRef(function({onClick:t,discover:r="render",prefetch:i="none",relative:l,reloadDocument:o,replace:u,mask:d,state:f,target:h,to:m,preventScrollReset:p,viewTransition:y,defaultShouldRevalidate:b,...C},k){let{basename:v,navigator:A,useTransitions:F}=D.useContext(fr),N=typeof m=="string"&&Yd.test(m),_=A8(m,v);m=_.to;let S=J4(m,{relative:l}),w=Sr(),O=null;if(d){let K=sc(d,[],w.mask?w.mask.pathname:"/",!0);v!=="/"&&(K.pathname=K.pathname==="/"?v:Or([v,K.pathname])),O=A.createHref(K)}let[z,P,T]=P7(i,C),$=X7(m,{replace:u,mask:d,state:f,target:h,preventScrollReset:p,relative:l,viewTransition:y,defaultShouldRevalidate:b,useTransitions:F});function G(K){t&&t(K),K.defaultPrevented||$(K)}let ae=!(_.isExternal||o),ee=D.createElement("a",{...C,...T,href:(ae?O:void 0)||_.absoluteURL||S,onClick:ae?G:t,ref:q7(k,P),target:h,"data-discover":!N&&r==="render"?"true":void 0});return z&&!N?D.createElement(D.Fragment,null,ee,D.createElement(I7,{page:S})):ee});R8.displayName="Link";var Q7=D.forwardRef(function({"aria-current":t="page",caseSensitive:r=!1,className:i="",end:l=!1,style:o,to:u,viewTransition:d,children:f,...h},m){let p=io(u,{relative:h.relative}),y=Sr(),b=D.useContext(lc),{navigator:C,basename:k}=D.useContext(fr),v=b!=null&&tC(p)&&d===!0,A=C.encodeLocation?C.encodeLocation(p).pathname:p.pathname,F=y.pathname,N=b&&b.navigation&&b.navigation.location?b.navigation.location.pathname:null;r||(F=F.toLowerCase(),N=N?N.toLowerCase():null,A=A.toLowerCase()),N&&k&&(N=ba(N,k)||N);const _=A!=="/"&&A.endsWith("/")?A.length-1:A.length;let S=F===A||!l&&F.startsWith(A)&&F.charAt(_)==="/",w=N!=null&&(N===A||!l&&N.startsWith(A)&&N.charAt(A.length)==="/"),O={isActive:S,isPending:w,isTransitioning:v},z=S?t:void 0,P;typeof i=="function"?P=i(O):P=[i,S?"active":null,w?"pending":null,v?"transitioning":null].filter(Boolean).join(" ");let T=typeof o=="function"?o(O):o;return D.createElement(R8,{...h,"aria-current":z,className:P,ref:m,style:T,to:u,viewTransition:d},typeof f=="function"?f(O):f)});Q7.displayName="NavLink";var K7=D.forwardRef(({discover:e="render",fetcherKey:t,navigate:r,reloadDocument:i,replace:l,state:o,method:u=q0,action:d,onSubmit:f,relative:h,preventScrollReset:m,viewTransition:p,defaultShouldRevalidate:y,...b},C)=>{let{useTransitions:k}=D.useContext(fr),v=J7(),A=eC(d,{relative:h}),F=u.toLowerCase()==="get"?"get":"post",N=typeof d=="string"&&Yd.test(d),_=S=>{if(f&&f(S),S.defaultPrevented)return;S.preventDefault();let w=S.nativeEvent.submitter,O=w?.getAttribute("formmethod")||u,z=()=>v(w||S.currentTarget,{fetcherKey:t,method:O,navigate:r,replace:l,state:o,relative:h,preventScrollReset:m,viewTransition:p,defaultShouldRevalidate:y});k&&r!==!1?D.startTransition(()=>z()):z()};return D.createElement("form",{ref:C,method:F,action:A,onSubmit:i?f:_,...b,"data-discover":!N&&e==="render"?"true":void 0})});K7.displayName="Form";function Y7(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function O8(e){let t=D.useContext(Ns);return Gt(t,Y7(e)),t}function X7(e,{target:t,replace:r,mask:i,state:l,preventScrollReset:o,relative:u,viewTransition:d,defaultShouldRevalidate:f,useTransitions:h}={}){let m=Ri(),p=Sr(),y=io(e,{relative:u});return D.useCallback(b=>{if(D7(b,t)){b.preventDefault();let C=r!==void 0?r:Kl(p)===Kl(y),k=()=>m(e,{replace:C,mask:i,state:l,preventScrollReset:o,relative:u,viewTransition:d,defaultShouldRevalidate:f});h?D.startTransition(()=>k()):k()}},[p,m,y,r,i,l,t,e,o,u,d,f,h])}function z8(e){wr(typeof URLSearchParams<"u","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.");let t=D.useRef(pd(e)),r=D.useRef(!1),i=Sr(),l=D.useMemo(()=>w7(i.search,r.current?null:t.current),[i.search]),o=Ri(),u=D.useCallback((d,f)=>{const h=pd(typeof d=="function"?d(new URLSearchParams(l)):d);r.current=!0,o("?"+h,f)},[o,l]);return[l,u]}var W7=0,Z7=()=>`__${String(++W7)}__`;function J7(){let{router:e}=O8("useSubmit"),{basename:t}=D.useContext(fr),r=h7(),i=e.fetch,l=e.navigate;return D.useCallback(async(o,u={})=>{let{action:d,method:f,encType:h,formData:m,body:p}=N7(o,t);if(u.navigate===!1){let y=u.fetcherKey||Z7();await i(y,r,u.action||d,{defaultShouldRevalidate:u.defaultShouldRevalidate,preventScrollReset:u.preventScrollReset,formData:m,body:p,formMethod:u.method||f,formEncType:u.encType||h,flushSync:u.flushSync})}else await l(u.action||d,{defaultShouldRevalidate:u.defaultShouldRevalidate,preventScrollReset:u.preventScrollReset,formData:m,body:p,formMethod:u.method||f,formEncType:u.encType||h,replace:u.replace,state:u.state,fromRouteId:r,flushSync:u.flushSync,viewTransition:u.viewTransition})},[i,l,t,r])}function eC(e,{relative:t}={}){let{basename:r}=D.useContext(fr),i=D.useContext(Fr);Gt(i,"useFormAction must be used inside a RouteContext");let[l]=i.matches.slice(-1),o={...io(e||".",{relative:t})},u=Sr();if(e==null){o.search=u.search;let d=new URLSearchParams(o.search),f=d.getAll("index");if(f.some(m=>m==="")){d.delete("index"),f.filter(p=>p).forEach(p=>d.append("index",p));let m=d.toString();o.search=m?`?${m}`:""}}return(!e||e===".")&&l.route.index&&(o.search=o.search?o.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(o.pathname=o.pathname==="/"?r:Or([r,o.pathname])),Kl(o)}function tC(e,{relative:t}={}){let r=D.useContext(w8);Gt(r!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:i}=O8("useViewTransitionState"),l=io(e,{relative:t});if(!r.isTransitioning)return!1;let o=ba(r.currentLocation.pathname,i)||r.currentLocation.pathname,u=ba(r.nextLocation.pathname,i)||r.nextLocation.pathname;return Yl(l.pathname,u)!=null||Yl(l.pathname,o)!=null}const L8=(...e)=>e.filter((t,r,i)=>!!t&&t.trim()!==""&&i.indexOf(t)===r).join(" ").trim();const nC=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const rC=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,r,i)=>i?i.toUpperCase():r.toLowerCase());const t9=e=>{const t=rC(e);return t.charAt(0).toUpperCase()+t.slice(1)};var aC={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 iC=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1};const sC=D.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:i,className:l="",children:o,iconNode:u,...d},f)=>D.createElement("svg",{ref:f,...aC,width:t,height:t,stroke:e,strokeWidth:i?Number(r)*24/Number(t):r,className:L8("lucide",l),...!o&&!iC(d)&&{"aria-hidden":"true"},...d},[...u.map(([h,m])=>D.createElement(h,m)),...Array.isArray(o)?o:[o]]));const q=(e,t)=>{const r=D.forwardRef(({className:i,...l},o)=>D.createElement(sC,{ref:o,iconNode:t,className:L8(`lucide-${nC(t9(e))}`,`lucide-${e}`,i),...l}));return r.displayName=t9(e),r};const lC=[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]],oC=q("activity",lC);const cC=[["path",{d:"M12 6v16",key:"nqf5sj"}],["path",{d:"m19 13 2-1a9 9 0 0 1-18 0l2 1",key:"y7qv08"}],["path",{d:"M9 11h6",key:"1fldmi"}],["circle",{cx:"12",cy:"4",r:"2",key:"muu5ef"}]],uC=q("anchor",cC);const xC=[["path",{d:"M12 6.528V3a1 1 0 0 1 1-1h0",key:"11qiee"}],["path",{d:"M18.237 21A15 15 0 0 0 22 11a6 6 0 0 0-10-4.472A6 6 0 0 0 2 11a15.1 15.1 0 0 0 3.763 10 3 3 0 0 0 3.648.648 5.5 5.5 0 0 1 5.178 0A3 3 0 0 0 18.237 21",key:"110c12"}]],dC=q("apple",xC);const fC=[["rect",{width:"20",height:"5",x:"2",y:"3",rx:"1",key:"1wp1u1"}],["path",{d:"M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8",key:"1s80jp"}],["path",{d:"m9.5 17 5-5",key:"nakeu6"}],["path",{d:"m9.5 12 5 5",key:"1hccrj"}]],hC=q("archive-x",fC);const pC=[["rect",{width:"20",height:"5",x:"2",y:"3",rx:"1",key:"1wp1u1"}],["path",{d:"M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8",key:"1s80jp"}],["path",{d:"M10 12h4",key:"a56b0p"}]],rf=q("archive",pC);const mC=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],P8=q("arrow-left",mC);const gC=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],EC=q("arrow-right",gC);const yC=[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]],bC=q("arrow-up-right",yC);const CC=[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]],vC=q("arrow-up",CC);const kC=[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["path",{d:"M20.2 20.2c2.04-2.03.02-7.36-4.5-11.9-4.54-4.52-9.87-6.54-11.9-4.5-2.04 2.03-.02 7.36 4.5 11.9 4.54 4.52 9.87 6.54 11.9 4.5Z",key:"1l2ple"}],["path",{d:"M15.7 15.7c4.52-4.54 6.54-9.87 4.5-11.9-2.03-2.04-7.36-.02-11.9 4.5-4.52 4.54-6.54 9.87-4.5 11.9 2.03 2.04 7.36.02 11.9-4.5Z",key:"1wam0m"}]],AC=q("atom",kC);const BC=[["path",{d:"m15.477 12.89 1.515 8.526a.5.5 0 0 1-.81.47l-3.58-2.687a1 1 0 0 0-1.197 0l-3.586 2.686a.5.5 0 0 1-.81-.469l1.514-8.526",key:"1yiouv"}],["circle",{cx:"12",cy:"8",r:"6",key:"1vp47v"}]],DC=q("award",BC);const wC=[["rect",{width:"20",height:"12",x:"2",y:"6",rx:"2",key:"9lu3g6"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["path",{d:"M6 12h.01M18 12h.01",key:"113zkx"}]],FC=q("banknote",wC);const SC=[["path",{d:"M 22 14 L 22 10",key:"nqc4tb"}],["rect",{x:"2",y:"6",width:"16",height:"12",rx:"2",key:"13zb55"}]],NC=q("battery",SC);const _C=[["path",{d:"M17 11h1a3 3 0 0 1 0 6h-1",key:"1yp76v"}],["path",{d:"M9 12v6",key:"1u1cab"}],["path",{d:"M13 12v6",key:"1sugkk"}],["path",{d:"M14 7.5c-1 0-1.44.5-3 .5s-2-.5-3-.5-1.72.5-2.5.5a2.5 2.5 0 0 1 0-5c.78 0 1.57.5 2.5.5S9.44 2 11 2s2 1.5 3 1.5 1.72-.5 2.5-.5a2.5 2.5 0 0 1 0 5c-.78 0-1.5-.5-2.5-.5Z",key:"1510fo"}],["path",{d:"M5 8v12a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V8",key:"19jb7n"}]],MC=q("beer",_C);const jC=[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]],I8=q("bell",jC);const TC=[["circle",{cx:"18.5",cy:"17.5",r:"3.5",key:"15x4ox"}],["circle",{cx:"5.5",cy:"17.5",r:"3.5",key:"1noe27"}],["circle",{cx:"15",cy:"5",r:"1",key:"19l28e"}],["path",{d:"M12 17.5V14l-3-3 4-3 2 3h2",key:"1npguv"}]],RC=q("bike",TC);const OC=[["path",{d:"M16 7h.01",key:"1kdx03"}],["path",{d:"M3.4 18H12a8 8 0 0 0 8-8V7a4 4 0 0 0-7.28-2.3L2 20",key:"oj1oa8"}],["path",{d:"m20 7 2 .5-2 .5",key:"12nv4d"}],["path",{d:"M10 18v3",key:"1yea0a"}],["path",{d:"M14 17.75V21",key:"1pymcb"}],["path",{d:"M7 18a6 6 0 0 0 3.84-10.61",key:"1npnn0"}]],zC=q("bird",OC);const LC=[["path",{d:"m7 7 10 10-5 5V2l5 5L7 17",key:"1q5490"}]],PC=q("bluetooth",LC);const IC=[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]],UC=q("book-open",IC);const $C=[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20",key:"k3hazp"}]],HC=q("book",$C);const qC=[["path",{d:"M17 3a2 2 0 0 1 2 2v15a1 1 0 0 1-1.496.868l-4.512-2.578a2 2 0 0 0-1.984 0l-4.512 2.578A1 1 0 0 1 5 20V5a2 2 0 0 1 2-2z",key:"oz39mx"}]],GC=q("bookmark",qC);const VC=[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]],U8=q("bot",VC);const QC=[["path",{d:"M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z",key:"hh9hay"}],["path",{d:"m3.3 7 8.7 5 8.7-5",key:"g66t2b"}],["path",{d:"M12 22V12",key:"d0xqtd"}]],KC=q("box",QC);const YC=[["path",{d:"M12 18V5",key:"adv99a"}],["path",{d:"M15 13a4.17 4.17 0 0 1-3-4 4.17 4.17 0 0 1-3 4",key:"1e3is1"}],["path",{d:"M17.598 6.5A3 3 0 1 0 12 5a3 3 0 1 0-5.598 1.5",key:"1gqd8o"}],["path",{d:"M17.997 5.125a4 4 0 0 1 2.526 5.77",key:"iwvgf7"}],["path",{d:"M18 18a4 4 0 0 0 2-7.464",key:"efp6ie"}],["path",{d:"M19.967 17.483A4 4 0 1 1 12 18a4 4 0 1 1-7.967-.517",key:"1gq6am"}],["path",{d:"M6 18a4 4 0 0 1-2-7.464",key:"k1g0md"}],["path",{d:"M6.003 5.125a4 4 0 0 0-2.526 5.77",key:"q97ue3"}]],XC=q("brain",YC);const WC=[["path",{d:"M16 20V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16",key:"jecpp"}],["rect",{width:"20",height:"14",x:"2",y:"6",rx:"2",key:"i6l2r4"}]],ZC=q("briefcase",WC);const JC=[["path",{d:"m11 10 3 3",key:"fzmg1i"}],["path",{d:"M6.5 21A3.5 3.5 0 1 0 3 17.5a2.62 2.62 0 0 1-.708 1.792A1 1 0 0 0 3 21z",key:"p4q2r7"}],["path",{d:"M9.969 17.031 21.378 5.624a1 1 0 0 0-3.002-3.002L6.967 14.031",key:"wy6l02"}]],e3=q("brush",JC);const t3=[["path",{d:"M10 19.655A6 6 0 0 1 6 14v-3a4 4 0 0 1 4-4h4a4 4 0 0 1 4 3.97",key:"1gnv52"}],["path",{d:"M14 15.003a1 1 0 0 1 1.517-.859l4.997 2.997a1 1 0 0 1 0 1.718l-4.997 2.997a1 1 0 0 1-1.517-.86z",key:"1weqy9"}],["path",{d:"M14.12 3.88 16 2",key:"qol33r"}],["path",{d:"M21 5a4 4 0 0 1-3.55 3.97",key:"5cxbf6"}],["path",{d:"M3 21a4 4 0 0 1 3.81-4",key:"1fjd4g"}],["path",{d:"M3 5a4 4 0 0 0 3.55 3.97",key:"1d7oge"}],["path",{d:"M6 13H2",key:"82j7cp"}],["path",{d:"m8 2 1.88 1.88",key:"fmnt4t"}],["path",{d:"M9 7.13V6a3 3 0 1 1 6 0v1.13",key:"1vgav8"}]],n3=q("bug-play",t3);const r3=[["path",{d:"M12 20v-9",key:"1qisl0"}],["path",{d:"M14 7a4 4 0 0 1 4 4v3a6 6 0 0 1-12 0v-3a4 4 0 0 1 4-4z",key:"uouzyp"}],["path",{d:"M14.12 3.88 16 2",key:"qol33r"}],["path",{d:"M21 21a4 4 0 0 0-3.81-4",key:"1b0z45"}],["path",{d:"M21 5a4 4 0 0 1-3.55 3.97",key:"5cxbf6"}],["path",{d:"M22 13h-4",key:"1jl80f"}],["path",{d:"M3 21a4 4 0 0 1 3.81-4",key:"1fjd4g"}],["path",{d:"M3 5a4 4 0 0 0 3.55 3.97",key:"1d7oge"}],["path",{d:"M6 13H2",key:"82j7cp"}],["path",{d:"m8 2 1.88 1.88",key:"fmnt4t"}],["path",{d:"M9 7.13V6a3 3 0 1 1 6 0v1.13",key:"1vgav8"}]],a3=q("bug",r3);const i3=[["path",{d:"M10 12h4",key:"a56b0p"}],["path",{d:"M10 8h4",key:"1sr2af"}],["path",{d:"M14 21v-3a2 2 0 0 0-4 0v3",key:"1rgiei"}],["path",{d:"M6 10H4a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-2",key:"secmi2"}],["path",{d:"M6 21V5a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v16",key:"16ra0t"}]],s3=q("building-2",i3);const l3=[["path",{d:"M12 10h.01",key:"1nrarc"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M12 6h.01",key:"1vi96p"}],["path",{d:"M16 10h.01",key:"1m94wz"}],["path",{d:"M16 14h.01",key:"1gbofw"}],["path",{d:"M16 6h.01",key:"1x0f13"}],["path",{d:"M8 10h.01",key:"19clt8"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M8 6h.01",key:"1dz90k"}],["path",{d:"M9 22v-3a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v3",key:"cabbwy"}],["rect",{x:"4",y:"2",width:"16",height:"20",rx:"2",key:"1uxh74"}]],o3=q("building",l3);const c3=[["path",{d:"M20 21v-8a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v8",key:"1w3rig"}],["path",{d:"M4 16s.5-1 2-1 2.5 2 4 2 2.5-2 4-2 2.5 2 4 2 2-1 2-1",key:"n2jgmb"}],["path",{d:"M2 21h20",key:"1nyx9w"}],["path",{d:"M7 8v3",key:"1qtyvj"}],["path",{d:"M12 8v3",key:"hwp4zt"}],["path",{d:"M17 8v3",key:"1i6e5u"}],["path",{d:"M7 4h.01",key:"1bh4kh"}],["path",{d:"M12 4h.01",key:"1ujb9j"}],["path",{d:"M17 4h.01",key:"1upcoc"}]],u3=q("cake",c3);const x3=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]],d3=q("calendar",x3);const f3=[["path",{d:"M13.997 4a2 2 0 0 1 1.76 1.05l.486.9A2 2 0 0 0 18.003 7H20a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h1.997a2 2 0 0 0 1.759-1.048l.489-.904A2 2 0 0 1 10.004 4z",key:"18u6gg"}],["circle",{cx:"12",cy:"13",r:"3",key:"1vg3eu"}]],h3=q("camera",f3);const p3=[["path",{d:"M19 17h2c.6 0 1-.4 1-1v-3c0-.9-.7-1.7-1.5-1.9C18.7 10.6 16 10 16 10s-1.3-1.4-2.2-2.3c-.5-.4-1.1-.7-1.8-.7H5c-.6 0-1.1.4-1.4.9l-1.4 2.9A3.7 3.7 0 0 0 2 12v4c0 .6.4 1 1 1h2",key:"5owen"}],["circle",{cx:"7",cy:"17",r:"2",key:"u2ysq9"}],["path",{d:"M9 17h6",key:"r8uit2"}],["circle",{cx:"17",cy:"17",r:"2",key:"axvx0g"}]],m3=q("car",p3);const g3=[["path",{d:"M2.27 21.7s9.87-3.5 12.73-6.36a4.5 4.5 0 0 0-6.36-6.37C5.77 11.84 2.27 21.7 2.27 21.7zM8.64 14l-2.05-2.04M15.34 15l-2.46-2.46",key:"rfqxbe"}],["path",{d:"M22 9s-1.33-2-3.5-2C16.86 7 15 9 15 9s1.33 2 3.5 2S22 9 22 9z",key:"6b25w4"}],["path",{d:"M15 2s-2 1.33-2 3.5S15 9 15 9s2-1.84 2-3.5C17 3.33 15 2 15 2z",key:"fn65lo"}]],E3=q("carrot",g3);const y3=[["path",{d:"M12 5c.67 0 1.35.09 2 .26 1.78-2 5.03-2.84 6.42-2.26 1.4.58-.42 7-.42 7 .57 1.07 1 2.24 1 3.44C21 17.9 16.97 21 12 21s-9-3-9-7.56c0-1.25.5-2.4 1-3.44 0 0-1.89-6.42-.5-7 1.39-.58 4.72.23 6.5 2.23A9.04 9.04 0 0 1 12 5Z",key:"x6xyqk"}],["path",{d:"M8 14v.5",key:"1nzgdb"}],["path",{d:"M16 14v.5",key:"1lajdz"}],["path",{d:"M11.25 16.25h1.5L12 17l-.75-.75Z",key:"12kq1m"}]],b3=q("cat",y3);const C3=[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M7 16h8",key:"srdodz"}],["path",{d:"M7 11h12",key:"127s9w"}],["path",{d:"M7 6h3",key:"w9rmul"}]],v3=q("chart-bar",C3);const k3=[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"m19 9-5 5-4-4-3 3",key:"2osh9i"}]],A3=q("chart-line",k3);const B3=[["path",{d:"M21 12c.552 0 1.005-.449.95-.998a10 10 0 0 0-8.953-8.951c-.55-.055-.998.398-.998.95v8a1 1 0 0 0 1 1z",key:"pzmjnu"}],["path",{d:"M21.21 15.89A10 10 0 1 1 8 2.83",key:"k2fpak"}]],D3=q("chart-pie",B3);const w3=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Ca=q("check",w3);const F3=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],ka=q("chevron-down",F3);const S3=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],N3=q("chevron-left",S3);const _3=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],$8=q("chevron-right",_3);const M3=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],j3=q("chevron-up",M3);const T3=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],H8=q("circle-check",T3);const R3=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],O3=q("circle-x",R3);const z3=[["path",{d:"M20.2 6 3 11l-.9-2.4c-.3-1.1.3-2.2 1.3-2.5l13.5-4c1.1-.3 2.2.3 2.5 1.3Z",key:"1tn4o7"}],["path",{d:"m6.2 5.3 3.1 3.9",key:"iuk76l"}],["path",{d:"m12.4 3.4 3.1 4",key:"6hsd6n"}],["path",{d:"M3 11h18v8a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2Z",key:"ltgou9"}]],L3=q("clapperboard",z3);const P3=[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],q8=q("clock",P3);const I3=[["path",{d:"M10.94 5.274A7 7 0 0 1 15.71 10h1.79a4.5 4.5 0 0 1 4.222 6.057",key:"1uxyv8"}],["path",{d:"M18.796 18.81A4.5 4.5 0 0 1 17.5 19H9A7 7 0 0 1 5.79 5.78",key:"99tcn7"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],U3=q("cloud-off",I3);const $3=[["path",{d:"M12 13v8",key:"1l5pq0"}],["path",{d:"M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242",key:"1pljnt"}],["path",{d:"m8 17 4-4 4 4",key:"1quai1"}]],H3=q("cloud-upload",$3);const q3=[["path",{d:"M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z",key:"p7xjir"}]],G3=q("cloud",q3);const V3=[["path",{d:"m18 16 4-4-4-4",key:"1inbqp"}],["path",{d:"m6 8-4 4 4 4",key:"15zrgr"}],["path",{d:"m14.5 4-5 16",key:"e7oirm"}]],Q3=q("code-xml",V3);const K3=[["path",{d:"m16 18 6-6-6-6",key:"eg8j8"}],["path",{d:"m8 6-6 6 6 6",key:"ppft3o"}]],Y3=q("code",K3);const X3=[["path",{d:"M10 2v2",key:"7u0qdc"}],["path",{d:"M14 2v2",key:"6buw04"}],["path",{d:"M16 8a1 1 0 0 1 1 1v8a4 4 0 0 1-4 4H7a4 4 0 0 1-4-4V9a1 1 0 0 1 1-1h14a4 4 0 1 1 0 8h-1",key:"pwadti"}],["path",{d:"M6 2v2",key:"colzsn"}]],W3=q("coffee",X3);const Z3=[["path",{d:"M11 10.27 7 3.34",key:"16pf9h"}],["path",{d:"m11 13.73-4 6.93",key:"794ttg"}],["path",{d:"M12 22v-2",key:"1osdcq"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M14 12h8",key:"4f43i9"}],["path",{d:"m17 20.66-1-1.73",key:"eq3orb"}],["path",{d:"m17 3.34-1 1.73",key:"2wel8s"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"m20.66 17-1.73-1",key:"sg0v6f"}],["path",{d:"m20.66 7-1.73 1",key:"1ow05n"}],["path",{d:"m3.34 17 1.73-1",key:"nuk764"}],["path",{d:"m3.34 7 1.73 1",key:"1ulond"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["circle",{cx:"12",cy:"12",r:"8",key:"46899m"}]],J3=q("cog",Z3);const ev=[["path",{d:"m16.24 7.76-1.804 5.411a2 2 0 0 1-1.265 1.265L7.76 16.24l1.804-5.411a2 2 0 0 1 1.265-1.265z",key:"9ktpf1"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],tv=q("compass",ev);const nv=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],af=q("copy",nv);const rv=[["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M17 20v2",key:"1rnc9c"}],["path",{d:"M17 2v2",key:"11trls"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M2 17h2",key:"7oei6x"}],["path",{d:"M2 7h2",key:"asdhe0"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"M20 17h2",key:"1fpfkl"}],["path",{d:"M20 7h2",key:"1o8tra"}],["path",{d:"M7 20v2",key:"4gnj0m"}],["path",{d:"M7 2v2",key:"1i4yhu"}],["rect",{x:"4",y:"4",width:"16",height:"16",rx:"2",key:"1vbyd7"}],["rect",{x:"8",y:"8",width:"8",height:"8",rx:"1",key:"z9xiuo"}]],av=q("cpu",rv);const iv=[["rect",{width:"20",height:"14",x:"2",y:"5",rx:"2",key:"ynyp8z"}],["line",{x1:"2",x2:"22",y1:"10",y2:"10",key:"1b3vmo"}]],sv=q("credit-card",iv);const lv=[["path",{d:"M11.562 3.266a.5.5 0 0 1 .876 0L15.39 8.87a1 1 0 0 0 1.516.294L21.183 5.5a.5.5 0 0 1 .798.519l-2.834 10.246a1 1 0 0 1-.956.734H5.81a1 1 0 0 1-.957-.734L2.02 6.02a.5.5 0 0 1 .798-.519l4.276 3.664a1 1 0 0 0 1.516-.294z",key:"1vdc57"}],["path",{d:"M5 21h14",key:"11awu3"}]],ov=q("crown",lv);const cv=[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]],uv=q("database",cv);const xv=[["path",{d:"m10 16 1.5 1.5",key:"11lckj"}],["path",{d:"m14 8-1.5-1.5",key:"1ohn8i"}],["path",{d:"M15 2c-1.798 1.998-2.518 3.995-2.807 5.993",key:"80uv8i"}],["path",{d:"m16.5 10.5 1 1",key:"696xn5"}],["path",{d:"m17 6-2.891-2.891",key:"xu6p2f"}],["path",{d:"M2 15c6.667-6 13.333 0 20-6",key:"1pyr53"}],["path",{d:"m20 9 .891.891",key:"3xwk7g"}],["path",{d:"M3.109 14.109 4 15",key:"q76aoh"}],["path",{d:"m6.5 12.5 1 1",key:"cs35ky"}],["path",{d:"m7 18 2.891 2.891",key:"1sisit"}],["path",{d:"M9 22c1.798-1.998 2.518-3.995 2.807-5.993",key:"q3hbxp"}]],dv=q("dna",xv);const fv=[["path",{d:"M11.25 16.25h1.5L12 17z",key:"w7jh35"}],["path",{d:"M16 14v.5",key:"1lajdz"}],["path",{d:"M4.42 11.247A13.152 13.152 0 0 0 4 14.556C4 18.728 7.582 21 12 21s8-2.272 8-6.444a11.702 11.702 0 0 0-.493-3.309",key:"u7s9ue"}],["path",{d:"M8 14v.5",key:"1nzgdb"}],["path",{d:"M8.5 8.5c-.384 1.05-1.083 2.028-2.344 2.5-1.931.722-3.576-.297-3.656-1-.113-.994 1.177-6.53 4-7 1.923-.321 3.651.845 3.651 2.235A7.497 7.497 0 0 1 14 5.277c0-1.39 1.844-2.598 3.767-2.277 2.823.47 4.113 6.006 4 7-.08.703-1.725 1.722-3.656 1-1.261-.472-1.855-1.45-2.239-2.5",key:"v8hric"}]],hv=q("dog",fv);const pv=[["line",{x1:"12",x2:"12",y1:"2",y2:"22",key:"7eqyqh"}],["path",{d:"M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6",key:"1b0p4s"}]],mv=q("dollar-sign",pv);const gv=[["path",{d:"M17.596 12.768a2 2 0 1 0 2.829-2.829l-1.768-1.767a2 2 0 0 0 2.828-2.829l-2.828-2.828a2 2 0 0 0-2.829 2.828l-1.767-1.768a2 2 0 1 0-2.829 2.829z",key:"9m4mmf"}],["path",{d:"m2.5 21.5 1.4-1.4",key:"17g3f0"}],["path",{d:"m20.1 3.9 1.4-1.4",key:"1qn309"}],["path",{d:"M5.343 21.485a2 2 0 1 0 2.829-2.828l1.767 1.768a2 2 0 1 0 2.829-2.829l-6.364-6.364a2 2 0 1 0-2.829 2.829l1.768 1.767a2 2 0 0 0-2.828 2.829z",key:"1t2c92"}],["path",{d:"m9.6 14.4 4.8-4.8",key:"6umqxw"}]],Ev=q("dumbbell",gv);const yv=[["path",{d:"M21.54 15H17a2 2 0 0 0-2 2v4.54",key:"1djwo0"}],["path",{d:"M7 3.34V5a3 3 0 0 0 3 3a2 2 0 0 1 2 2c0 1.1.9 2 2 2a2 2 0 0 0 2-2c0-1.1.9-2 2-2h3.17",key:"1tzkfa"}],["path",{d:"M11 21.95V18a2 2 0 0 0-2-2a2 2 0 0 1-2-2v-1a2 2 0 0 0-2-2H2.05",key:"14pb5j"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],bv=q("earth",yv);const Cv=[["path",{d:"M12 2C8 2 4 8 4 14a8 8 0 0 0 16 0c0-6-4-12-8-12",key:"1le142"}]],vv=q("egg",Cv);const kv=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],Av=q("external-link",kv);const Bv=[["path",{d:"M12 16h.01",key:"1drbdi"}],["path",{d:"M16 16h.01",key:"1f9h7w"}],["path",{d:"M3 19a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V8.5a.5.5 0 0 0-.769-.422l-4.462 2.844A.5.5 0 0 1 15 10.5v-2a.5.5 0 0 0-.769-.422L9.77 10.922A.5.5 0 0 1 9 10.5V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2z",key:"1iv0i2"}],["path",{d:"M8 16h.01",key:"18s6g9"}]],Dv=q("factory",Bv);const wv=[["path",{d:"M12.67 19a2 2 0 0 0 1.416-.588l6.154-6.172a6 6 0 0 0-8.49-8.49L5.586 9.914A2 2 0 0 0 5 11.328V18a1 1 0 0 0 1 1z",key:"18jl4k"}],["path",{d:"M16 8 2 22",key:"vp34q"}],["path",{d:"M17.5 15H9",key:"1oz8nu"}]],Fv=q("feather",wv);const Sv=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 12.5 8 15l2 2.5",key:"1tg20x"}],["path",{d:"m14 12.5 2 2.5-2 2.5",key:"yinavb"}]],Nv=q("file-code",Sv);const _v=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M9 10h6",key:"9gxzsh"}],["path",{d:"M12 13V7",key:"h0r20n"}],["path",{d:"M9 17h6",key:"r8uit2"}]],G8=q("file-diff",_v);const Mv=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}]],jv=q("file",Mv);const Tv=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M7 3v18",key:"bbkbws"}],["path",{d:"M3 7.5h4",key:"zfgn84"}],["path",{d:"M3 12h18",key:"1i2n21"}],["path",{d:"M3 16.5h4",key:"1230mu"}],["path",{d:"M17 3v18",key:"in4fa5"}],["path",{d:"M17 7.5h4",key:"myr1c1"}],["path",{d:"M17 16.5h4",key:"go4c1d"}]],Rv=q("film",Tv);const Ov=[["path",{d:"M6.5 12c.94-3.46 4.94-6 8.5-6 3.56 0 6.06 2.54 7 6-.94 3.47-3.44 6-7 6s-7.56-2.53-8.5-6Z",key:"15baut"}],["path",{d:"M18 12v.5",key:"18hhni"}],["path",{d:"M16 17.93a9.77 9.77 0 0 1 0-11.86",key:"16dt7o"}],["path",{d:"M7 10.67C7 8 5.58 5.97 2.73 5.5c-1 1.5-1 5 .23 6.5-1.24 1.5-1.24 5-.23 6.5C5.58 18.03 7 16 7 13.33",key:"l9di03"}],["path",{d:"M10.46 7.26C10.2 5.88 9.17 4.24 8 3h5.8a2 2 0 0 1 1.98 1.67l.23 1.4",key:"1kjonw"}],["path",{d:"m16.01 17.93-.23 1.4A2 2 0 0 1 13.8 21H9.5a5.96 5.96 0 0 0 1.49-3.98",key:"1zlm23"}]],zv=q("fish",Ov);const Lv=[["path",{d:"M4 22V4a1 1 0 0 1 .4-.8A6 6 0 0 1 8 2c3 0 5 2 7.333 2q2 0 3.067-.8A1 1 0 0 1 20 4v10a1 1 0 0 1-.4.8A6 6 0 0 1 16 16c-3 0-5-2-8-2a6 6 0 0 0-4 1.528",key:"1jaruq"}]],Pv=q("flag",Lv);const Iv=[["path",{d:"M12 3q1 4 4 6.5t3 5.5a1 1 0 0 1-14 0 5 5 0 0 1 1-3 1 1 0 0 0 5 0c0-2-1.5-3-1.5-5q0-2 2.5-4",key:"1slcih"}]],Uv=q("flame",Iv);const $v=[["path",{d:"M14 2v6a2 2 0 0 0 .245.96l5.51 10.08A2 2 0 0 1 18 22H6a2 2 0 0 1-1.755-2.96l5.51-10.08A2 2 0 0 0 10 8V2",key:"18mbvz"}],["path",{d:"M6.453 15h11.094",key:"3shlmq"}],["path",{d:"M8.5 2h7",key:"csnxdl"}]],Hv=q("flask-conical",$v);const qv=[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]],Gv=q("folder-open",qv);const Vv=[["path",{d:"M20 10a1 1 0 0 0 1-1V6a1 1 0 0 0-1-1h-2.5a1 1 0 0 1-.8-.4l-.9-1.2A1 1 0 0 0 15 3h-2a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1Z",key:"hod4my"}],["path",{d:"M20 21a1 1 0 0 0 1-1v-3a1 1 0 0 0-1-1h-2.9a1 1 0 0 1-.88-.55l-.42-.85a1 1 0 0 0-.92-.6H13a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1Z",key:"w4yl2u"}],["path",{d:"M3 5a2 2 0 0 0 2 2h3",key:"f2jnh7"}],["path",{d:"M3 3v13a2 2 0 0 0 2 2h3",key:"k8epm1"}]],Qv=q("folder-tree",Vv);const Kv=[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]],V8=q("folder",Kv);const Yv=[["path",{d:"M10 20a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341L21.74 4.67A1 1 0 0 0 21 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14z",key:"sc7q7i"}]],Xv=q("funnel",Yv);const Wv=[["line",{x1:"6",x2:"10",y1:"11",y2:"11",key:"1gktln"}],["line",{x1:"8",x2:"8",y1:"9",y2:"13",key:"qnk9ow"}],["line",{x1:"15",x2:"15.01",y1:"12",y2:"12",key:"krot7o"}],["line",{x1:"18",x2:"18.01",y1:"10",y2:"10",key:"1lcuu1"}],["path",{d:"M17.32 5H6.68a4 4 0 0 0-3.978 3.59c-.006.052-.01.101-.017.152C2.604 9.416 2 14.456 2 16a3 3 0 0 0 3 3c1 0 1.5-.5 2-1l1.414-1.414A2 2 0 0 1 9.828 16h4.344a2 2 0 0 1 1.414.586L17 18c.5.5 1 1 2 1a3 3 0 0 0 3-3c0-1.545-.604-6.584-.685-7.258-.007-.05-.011-.1-.017-.151A4 4 0 0 0 17.32 5z",key:"mfqc10"}]],Zv=q("gamepad-2",Wv);const Jv=[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]],ek=q("gauge",Jv);const tk=[["path",{d:"M10.5 3 8 9l4 13 4-13-2.5-6",key:"b3dvk1"}],["path",{d:"M17 3a2 2 0 0 1 1.6.8l3 4a2 2 0 0 1 .013 2.382l-7.99 10.986a2 2 0 0 1-3.247 0l-7.99-10.986A2 2 0 0 1 2.4 7.8l2.998-3.997A2 2 0 0 1 7 3z",key:"7w4byz"}],["path",{d:"M2 9h20",key:"16fsjt"}]],nk=q("gem",tk);const rk=[["rect",{x:"3",y:"8",width:"18",height:"4",rx:"1",key:"bkv52"}],["path",{d:"M12 8v13",key:"1c76mn"}],["path",{d:"M19 12v7a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2v-7",key:"6wjy6b"}],["path",{d:"M7.5 8a2.5 2.5 0 0 1 0-5A4.8 8 0 0 1 12 8a4.8 8 0 0 1 4.5-5 2.5 2.5 0 0 1 0 5",key:"1ihvrl"}]],ak=q("gift",rk);const ik=[["path",{d:"M6 3v12",key:"qpgusn"}],["path",{d:"M18 9a3 3 0 1 0 0-6 3 3 0 0 0 0 6z",key:"1d02ji"}],["path",{d:"M6 21a3 3 0 1 0 0-6 3 3 0 0 0 0 6z",key:"chk6ph"}],["path",{d:"M15 6a9 9 0 0 0-9 9",key:"or332x"}],["path",{d:"M18 15v6",key:"9wciyi"}],["path",{d:"M21 18h-6",key:"139f0c"}]],sk=q("git-branch-plus",ik);const lk=[["line",{x1:"6",x2:"6",y1:"3",y2:"15",key:"17qcm7"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M18 9a9 9 0 0 1-9 9",key:"n2h4wq"}]],ok=q("git-branch",lk);const ck=[["circle",{cx:"12",cy:"18",r:"3",key:"1mpf1b"}],["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["path",{d:"M18 9v2c0 .6-.4 1-1 1H7c-.6 0-1-.4-1-1V9",key:"1uq4wg"}],["path",{d:"M12 12v3",key:"158kv8"}]],Q8=q("git-fork",ck);const uk=[["circle",{cx:"18",cy:"18",r:"3",key:"1xkwt0"}],["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M6 21V9a9 9 0 0 0 9 9",key:"7kw0sc"}]],K8=q("git-merge",uk);const xk=[["path",{d:"M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4",key:"tonef"}],["path",{d:"M9 18c-4.51 2-5-2-7-2",key:"9comsn"}]],dk=q("github",xk);const fk=[["circle",{cx:"6",cy:"15",r:"4",key:"vux9w4"}],["circle",{cx:"18",cy:"15",r:"4",key:"18o8ve"}],["path",{d:"M14 15a2 2 0 0 0-2-2 2 2 0 0 0-2 2",key:"1ag4bs"}],["path",{d:"M2.5 13 5 7c.7-1.3 1.4-2 3-2",key:"1hm1gs"}],["path",{d:"M21.5 13 19 7c-.7-1.3-1.5-2-3-2",key:"1r31ai"}]],hk=q("glasses",fk);const pk=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]],mk=q("globe",pk);const gk=[["path",{d:"M21.42 10.922a1 1 0 0 0-.019-1.838L12.83 5.18a2 2 0 0 0-1.66 0L2.6 9.08a1 1 0 0 0 0 1.832l8.57 3.908a2 2 0 0 0 1.66 0z",key:"j76jl0"}],["path",{d:"M22 10v6",key:"1lu8f3"}],["path",{d:"M6 12.5V16a6 3 0 0 0 12 0v-3.5",key:"1r8lef"}]],Ek=q("graduation-cap",gk);const yk=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M3 15h18",key:"5xshup"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"M15 3v18",key:"14nvp0"}]],bk=q("grid-3x3",yk);const Ck=[["path",{d:"m15 12-9.373 9.373a1 1 0 0 1-3.001-3L12 9",key:"1hayfq"}],["path",{d:"m18 15 4-4",key:"16gjal"}],["path",{d:"m21.5 11.5-1.914-1.914A2 2 0 0 1 19 8.172v-.344a2 2 0 0 0-.586-1.414l-1.657-1.657A6 6 0 0 0 12.516 3H9l1.243 1.243A6 6 0 0 1 12 8.485V10l2 2h1.172a2 2 0 0 1 1.414.586L18.5 14.5",key:"15ts47"}]],vk=q("hammer",Ck);const kk=[["path",{d:"M3 14h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-7a9 9 0 0 1 18 0v7a2 2 0 0 1-2 2h-1a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h3",key:"1xhozi"}]],Ak=q("headphones",kk);const Bk=[["path",{d:"M2 9.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5c0 2.29-1.5 4-3 5.5l-5.492 5.313a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5",key:"mvr1a0"}],["path",{d:"M3.22 13H9.5l.5-1 2 4.5 2-7 1.5 3.5h5.27",key:"auskq0"}]],Dk=q("heart-pulse",Bk);const wk=[["path",{d:"M2 9.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5c0 2.29-1.5 4-3 5.5l-5.492 5.313a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5",key:"mvr1a0"}]],Fk=q("heart",wk);const Sk=[["path",{d:"M5 22h14",key:"ehvnwv"}],["path",{d:"M5 2h14",key:"pdyrp9"}],["path",{d:"M17 22v-4.172a2 2 0 0 0-.586-1.414L12 12l-4.414 4.414A2 2 0 0 0 7 17.828V22",key:"1d314k"}],["path",{d:"M7 2v4.172a2 2 0 0 0 .586 1.414L12 12l4.414-4.414A2 2 0 0 0 17 6.172V2",key:"1vvvr6"}]],sf=q("hourglass",Sk);const Nk=[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"r6nss1"}]],_k=q("house",Nk);const Mk=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]],jk=q("image",Mk);const Tk=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],Rk=q("info",Tk);const Ok=[["path",{d:"m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4",key:"g0fldk"}],["path",{d:"m21 2-9.6 9.6",key:"1j0ho8"}],["circle",{cx:"7.5",cy:"15.5",r:"5.5",key:"yqb3hr"}]],zk=q("key",Ok);const Lk=[["path",{d:"M18 5a2 2 0 0 1 2 2v8.526a2 2 0 0 0 .212.897l1.068 2.127a1 1 0 0 1-.9 1.45H3.62a1 1 0 0 1-.9-1.45l1.068-2.127A2 2 0 0 0 4 15.526V7a2 2 0 0 1 2-2z",key:"1pdavp"}],["path",{d:"M20.054 15.987H3.946",key:"14rxg9"}]],Pk=q("laptop",Lk);const Ik=[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]],Uk=q("layers",Ik);const $k=[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",key:"nxv5o0"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}]],Hk=q("layout-grid",$k);const qk=[["path",{d:"M11 20A7 7 0 0 1 9.8 6.1C15.5 5 17 4.48 19 2c1 2 2 4.18 2 8 0 5.5-4.78 10-10 10Z",key:"nnexq3"}],["path",{d:"M2 21c0-3 1.85-5.36 5.08-6C9.5 14.52 12 13 13 12",key:"mt58a7"}]],Gk=q("leaf",qk);const Vk=[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]],Qk=q("lightbulb",Vk);const Kk=[["path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",key:"1cjeqo"}],["path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",key:"19qd67"}]],Yk=q("link",Kk);const Xk=[["path",{d:"M3 5h.01",key:"18ugdj"}],["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M3 19h.01",key:"noohij"}],["path",{d:"M8 5h13",key:"1pao27"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 19h13",key:"m83p4d"}]],Y8=q("list",Xk);const Wk=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],_n=q("loader-circle",Wk);const Zk=[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]],Jk=q("lock",Zk);const eA=[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]],tA=q("log-out",eA);const nA=[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]],rA=q("mail",nA);const aA=[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]],iA=q("map-pin",aA);const sA=[["path",{d:"M14.106 5.553a2 2 0 0 0 1.788 0l3.659-1.83A1 1 0 0 1 21 4.619v12.764a1 1 0 0 1-.553.894l-4.553 2.277a2 2 0 0 1-1.788 0l-4.212-2.106a2 2 0 0 0-1.788 0l-3.659 1.83A1 1 0 0 1 3 19.381V6.618a1 1 0 0 1 .553-.894l4.553-2.277a2 2 0 0 1 1.788 0z",key:"169xi5"}],["path",{d:"M15 5.764v15",key:"1pn4in"}],["path",{d:"M9 3.236v15",key:"1uimfh"}]],X8=q("map",sA);const lA=[["path",{d:"M8 22h8",key:"rmew8v"}],["path",{d:"M12 11v11",key:"ur9y6a"}],["path",{d:"m19 3-7 8-7-8Z",key:"1sgpiw"}]],oA=q("martini",lA);const cA=[["path",{d:"M7.21 15 2.66 7.14a2 2 0 0 1 .13-2.2L4.4 2.8A2 2 0 0 1 6 2h12a2 2 0 0 1 1.6.8l1.6 2.14a2 2 0 0 1 .14 2.2L16.79 15",key:"143lza"}],["path",{d:"M11 12 5.12 2.2",key:"qhuxz6"}],["path",{d:"m13 12 5.88-9.8",key:"hbye0f"}],["path",{d:"M8 7h8",key:"i86dvs"}],["circle",{cx:"12",cy:"17",r:"5",key:"qbz8iq"}],["path",{d:"M12 18v-2h-.5",key:"fawc4q"}]],uA=q("medal",cA);const xA=[["path",{d:"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719",key:"1sd12s"}]],dA=q("message-circle",xA);const fA=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]],hA=q("message-square",fA);const pA=[["path",{d:"M12 19v3",key:"npa21l"}],["path",{d:"M15 9.34V5a3 3 0 0 0-5.68-1.33",key:"1gzdoj"}],["path",{d:"M16.95 16.95A7 7 0 0 1 5 12v-2",key:"cqa7eg"}],["path",{d:"M18.89 13.23A7 7 0 0 0 19 12v-2",key:"16hl24"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M9 9v3a3 3 0 0 0 5.12 2.12",key:"r2i35w"}]],mA=q("mic-off",pA);const gA=[["path",{d:"M12 19v3",key:"npa21l"}],["path",{d:"M19 10v2a7 7 0 0 1-14 0v-2",key:"1vc78b"}],["rect",{x:"9",y:"2",width:"6",height:"13",rx:"3",key:"s6n7sd"}]],W8=q("mic",gA);const EA=[["path",{d:"M6 18h8",key:"1borvv"}],["path",{d:"M3 22h18",key:"8prr45"}],["path",{d:"M14 22a7 7 0 1 0 0-14h-1",key:"1jwaiy"}],["path",{d:"M9 14h2",key:"197e7h"}],["path",{d:"M9 12a2 2 0 0 1-2-2V6h6v4a2 2 0 0 1-2 2Z",key:"1bmzmy"}],["path",{d:"M12 6V3a1 1 0 0 0-1-1H9a1 1 0 0 0-1 1v3",key:"1drr47"}]],yA=q("microscope",EA);const bA=[["path",{d:"M5 12h14",key:"1ays0h"}]],CA=q("minus",bA);const vA=[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]],kA=q("monitor",vA);const AA=[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]],BA=q("moon",AA);const DA=[["path",{d:"M9 18V5l12-2v13",key:"1jmyc2"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["circle",{cx:"18",cy:"16",r:"3",key:"1hluhg"}]],wA=q("music",DA);const FA=[["path",{d:"M20.341 6.484A10 10 0 0 1 10.266 21.85",key:"1enhxb"}],["path",{d:"M3.659 17.516A10 10 0 0 1 13.74 2.152",key:"1crzgf"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}],["circle",{cx:"19",cy:"5",r:"2",key:"mhkx31"}],["circle",{cx:"5",cy:"19",r:"2",key:"v8kfzx"}]],SA=q("orbit",FA);const NA=[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]],_A=q("package",NA);const MA=[["path",{d:"m14.622 17.897-10.68-2.913",key:"vj2p1u"}],["path",{d:"M18.376 2.622a1 1 0 1 1 3.002 3.002L17.36 9.643a.5.5 0 0 0 0 .707l.944.944a2.41 2.41 0 0 1 0 3.408l-.944.944a.5.5 0 0 1-.707 0L8.354 7.348a.5.5 0 0 1 0-.707l.944-.944a2.41 2.41 0 0 1 3.408 0l.944.944a.5.5 0 0 0 .707 0z",key:"18tc5c"}],["path",{d:"M9 8c-1.804 2.71-3.97 3.46-6.583 3.948a.507.507 0 0 0-.302.819l7.32 8.883a1 1 0 0 0 1.185.204C12.735 20.405 16 16.792 16 15",key:"ytzfxy"}]],jA=q("paintbrush",MA);const TA=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]],RA=q("panel-left",TA);const OA=[["path",{d:"m16 6-8.414 8.586a2 2 0 0 0 2.829 2.829l8.414-8.586a4 4 0 1 0-5.657-5.657l-8.379 8.551a6 6 0 1 0 8.485 8.485l8.379-8.551",key:"1miecu"}]],lf=q("paperclip",OA);const zA=[["circle",{cx:"11",cy:"4",r:"2",key:"vol9p0"}],["circle",{cx:"18",cy:"8",r:"2",key:"17gozi"}],["circle",{cx:"20",cy:"16",r:"2",key:"1v9bxh"}],["path",{d:"M9 10a5 5 0 0 1 5 5v3.5a3.5 3.5 0 0 1-6.84 1.045Q6.52 17.48 4.46 16.84A3.5 3.5 0 0 1 5.5 10Z",key:"1ydw1z"}]],LA=q("paw-print",zA);const PA=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}]],IA=q("pen",PA);const UA=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]],$A=q("pencil",UA);const HA=[["path",{d:"M13 2a9 9 0 0 1 9 9",key:"1itnx2"}],["path",{d:"M13 6a5 5 0 0 1 5 5",key:"11nki7"}],["path",{d:"M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384",key:"9njp5v"}]],V0=q("phone-call",HA);const qA=[["path",{d:"M10.1 13.9a14 14 0 0 0 3.732 2.668 1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2 18 18 0 0 1-12.728-5.272",key:"1wngk7"}],["path",{d:"M22 2 2 22",key:"y4kqgn"}],["path",{d:"M4.76 13.582A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 .244.473",key:"10hv5p"}]],GA=q("phone-off",qA);const VA=[["path",{d:"M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384",key:"9njp5v"}]],QA=q("phone",VA);const KA=[["path",{d:"m10.5 20.5 10-10a4.95 4.95 0 1 0-7-7l-10 10a4.95 4.95 0 1 0 7 7Z",key:"wa1lgi"}],["path",{d:"m8.5 8.5 7 7",key:"rvfmvr"}]],YA=q("pill",KA);const XA=[["path",{d:"m12 9-8.414 8.414A2 2 0 0 0 3 18.828v1.344a2 2 0 0 1-.586 1.414A2 2 0 0 1 3.828 21h1.344a2 2 0 0 0 1.414-.586L15 12",key:"1y3wsu"}],["path",{d:"m18 9 .4.4a1 1 0 1 1-3 3l-3.8-3.8a1 1 0 1 1 3-3l.4.4 3.4-3.4a1 1 0 1 1 3 3z",key:"110lr1"}],["path",{d:"m2 22 .414-.414",key:"jhxm08"}]],WA=q("pipette",XA);const ZA=[["path",{d:"m12 14-1 1",key:"11onhr"}],["path",{d:"m13.75 18.25-1.25 1.42",key:"1yisr3"}],["path",{d:"M17.775 5.654a15.68 15.68 0 0 0-12.121 12.12",key:"1qtqk6"}],["path",{d:"M18.8 9.3a1 1 0 0 0 2.1 7.7",key:"fbbbr2"}],["path",{d:"M21.964 20.732a1 1 0 0 1-1.232 1.232l-18-5a1 1 0 0 1-.695-1.232A19.68 19.68 0 0 1 15.732 2.037a1 1 0 0 1 1.232.695z",key:"1hyfdd"}]],JA=q("pizza",ZA);const eB=[["path",{d:"M17.8 19.2 16 11l3.5-3.5C21 6 21.5 4 21 3c-1-.5-3 0-4.5 1.5L13 8 4.8 6.2c-.5-.1-.9.1-1.1.5l-.3.5c-.2.5-.1 1 .3 1.3L9 12l-2 3H4l-1 1 3 2 2 3 1-1v-3l3-2 3.5 5.3c.3.4.8.5 1.3.3l.5-.2c.4-.3.6-.7.5-1.2z",key:"1v9wt8"}]],tB=q("plane",eB);const nB=[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]],md=q("play",nB);const rB=[["path",{d:"M12 22v-5",key:"1ega77"}],["path",{d:"M15 8V2",key:"18g5xt"}],["path",{d:"M17 8a1 1 0 0 1 1 1v4a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V9a1 1 0 0 1 1-1z",key:"1xoxul"}],["path",{d:"M9 8V2",key:"14iosj"}]],aB=q("plug",rB);const iB=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],of=q("plus",iB);const sB=[["path",{d:"M12 2v10",key:"mnfbl"}],["path",{d:"M18.4 6.6a9 9 0 1 1-12.77.04",key:"obofu9"}]],lB=q("power",sB);const oB=[["path",{d:"M15.39 4.39a1 1 0 0 0 1.68-.474 2.5 2.5 0 1 1 3.014 3.015 1 1 0 0 0-.474 1.68l1.683 1.682a2.414 2.414 0 0 1 0 3.414L19.61 15.39a1 1 0 0 1-1.68-.474 2.5 2.5 0 1 0-3.014 3.015 1 1 0 0 1 .474 1.68l-1.683 1.682a2.414 2.414 0 0 1-3.414 0L8.61 19.61a1 1 0 0 0-1.68.474 2.5 2.5 0 1 1-3.014-3.015 1 1 0 0 0 .474-1.68l-1.683-1.682a2.414 2.414 0 0 1 0-3.414L4.39 8.61a1 1 0 0 1 1.68.474 2.5 2.5 0 1 0 3.014-3.015 1 1 0 0 1-.474-1.68l1.683-1.682a2.414 2.414 0 0 1 3.414 0z",key:"w46dr5"}]],cB=q("puzzle",oB);const uB=[["rect",{width:"5",height:"5",x:"3",y:"3",rx:"1",key:"1tu5fj"}],["rect",{width:"5",height:"5",x:"16",y:"3",rx:"1",key:"1v8r4q"}],["rect",{width:"5",height:"5",x:"3",y:"16",rx:"1",key:"1x03jg"}],["path",{d:"M21 16h-3a2 2 0 0 0-2 2v3",key:"177gqh"}],["path",{d:"M21 21v.01",key:"ents32"}],["path",{d:"M12 7v3a2 2 0 0 1-2 2H7",key:"8crl2c"}],["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M12 3h.01",key:"n36tog"}],["path",{d:"M12 16v.01",key:"133mhm"}],["path",{d:"M16 12h1",key:"1slzba"}],["path",{d:"M21 12v.01",key:"1lwtk9"}],["path",{d:"M12 21v-1",key:"1880an"}]],Z8=q("qr-code",uB);const xB=[["path",{d:"M13 16a3 3 0 0 1 2.24 5",key:"1epib5"}],["path",{d:"M18 12h.01",key:"yjnet6"}],["path",{d:"M18 21h-8a4 4 0 0 1-4-4 7 7 0 0 1 7-7h.2L9.6 6.4a1 1 0 1 1 2.8-2.8L15.8 7h.2c3.3 0 6 2.7 6 6v1a2 2 0 0 1-2 2h-1a3 3 0 0 0-3 3",key:"ue9ozu"}],["path",{d:"M20 8.54V4a2 2 0 1 0-4 0v3",key:"49iql8"}],["path",{d:"M7.612 12.524a3 3 0 1 0-1.6 4.3",key:"1e33i0"}]],dB=q("rabbit",xB);const fB=[["path",{d:"M16.247 7.761a6 6 0 0 1 0 8.478",key:"1fwjs5"}],["path",{d:"M19.075 4.933a10 10 0 0 1 0 14.134",key:"ehdyv1"}],["path",{d:"M4.925 19.067a10 10 0 0 1 0-14.134",key:"1q22gi"}],["path",{d:"M7.753 16.239a6 6 0 0 1 0-8.478",key:"r2q7qm"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]],hB=q("radio",fB);const pB=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],so=q("refresh-cw",pB);const mB=[["path",{d:"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09z",key:"m3kijz"}],["path",{d:"m12 15-3-3a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.35 22.35 0 0 1-4 2z",key:"1fmvmk"}],["path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 0 5 0",key:"1f8sc4"}],["path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5",key:"qeys4"}]],gB=q("rocket",mB);const EB=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]],J8=q("rotate-ccw",EB);const yB=[["path",{d:"M7 21h10",key:"1b0cd5"}],["path",{d:"M12 21a9 9 0 0 0 9-9H3a9 9 0 0 0 9 9Z",key:"4rw317"}],["path",{d:"M11.38 12a2.4 2.4 0 0 1-.4-4.77 2.4 2.4 0 0 1 3.2-2.77 2.4 2.4 0 0 1 3.47-.63 2.4 2.4 0 0 1 3.37 3.37 2.4 2.4 0 0 1-1.1 3.7 2.51 2.51 0 0 1 .03 1.1",key:"10xrj0"}],["path",{d:"m13 12 4-4",key:"1hckqy"}],["path",{d:"M10.9 7.25A3.99 3.99 0 0 0 4 10c0 .73.2 1.41.54 2",key:"1p4srx"}]],bB=q("salad",yB);const CB=[["path",{d:"M21.3 15.3a2.4 2.4 0 0 1 0 3.4l-2.6 2.6a2.4 2.4 0 0 1-3.4 0L2.7 8.7a2.41 2.41 0 0 1 0-3.4l2.6-2.6a2.41 2.41 0 0 1 3.4 0Z",key:"icamh8"}],["path",{d:"m14.5 12.5 2-2",key:"inckbg"}],["path",{d:"m11.5 9.5 2-2",key:"fmmyf7"}],["path",{d:"m8.5 6.5 2-2",key:"vc6u1g"}],["path",{d:"m17.5 15.5 2-2",key:"wo5hmg"}]],vB=q("ruler",CB);const kB=[["path",{d:"m13.5 6.5-3.148-3.148a1.205 1.205 0 0 0-1.704 0L6.352 5.648a1.205 1.205 0 0 0 0 1.704L9.5 10.5",key:"dzhfyz"}],["path",{d:"M16.5 7.5 19 5",key:"1ltcjm"}],["path",{d:"m17.5 10.5 3.148 3.148a1.205 1.205 0 0 1 0 1.704l-2.296 2.296a1.205 1.205 0 0 1-1.704 0L13.5 14.5",key:"nfoymv"}],["path",{d:"M9 21a6 6 0 0 0-6-6",key:"1iajcf"}],["path",{d:"M9.352 10.648a1.205 1.205 0 0 0 0 1.704l2.296 2.296a1.205 1.205 0 0 0 1.704 0l4.296-4.296a1.205 1.205 0 0 0 0-1.704l-2.296-2.296a1.205 1.205 0 0 0-1.704 0z",key:"nv9zqy"}]],AB=q("satellite",kB);const BB=[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]],DB=q("save",BB);const wB=[["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M8.12 8.12 12 12",key:"1alkpv"}],["path",{d:"M20 4 8.12 15.88",key:"xgtan2"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M14.8 14.8 20 20",key:"ptml3r"}]],FB=q("scissors",wB);const SB=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],eg=q("search",SB);const NB=[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]],_B=q("send",NB);const MB=[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]],jB=q("server",MB);const TB=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],RB=q("settings",TB);const OB=[["path",{d:"M14 11a2 2 0 1 1-4 0 4 4 0 0 1 8 0 6 6 0 0 1-12 0 8 8 0 0 1 16 0 10 10 0 1 1-20 0 11.93 11.93 0 0 1 2.42-7.22 2 2 0 1 1 3.16 2.44",key:"1cn552"}]],zB=q("shell",OB);const LB=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],tg=q("shield-check",LB);const PB=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]],IB=q("shield",PB);const UB=[["path",{d:"M12 10.189V14",key:"1p8cqu"}],["path",{d:"M12 2v3",key:"qbqxhf"}],["path",{d:"M19 13V7a2 2 0 0 0-2-2H7a2 2 0 0 0-2 2v6",key:"qpkstq"}],["path",{d:"M19.38 20A11.6 11.6 0 0 0 21 14l-8.188-3.639a2 2 0 0 0-1.624 0L3 14a11.6 11.6 0 0 0 2.81 7.76",key:"7tigtc"}],["path",{d:"M2 21c.6.5 1.2 1 2.5 1 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1s1.2 1 2.5 1c2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1",key:"1924j5"}]],$B=q("ship",UB);const HB=[["path",{d:"M16 10a4 4 0 0 1-8 0",key:"1ltviw"}],["path",{d:"M3.103 6.034h17.794",key:"awc11p"}],["path",{d:"M3.4 5.467a2 2 0 0 0-.4 1.2V20a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6.667a2 2 0 0 0-.4-1.2l-2-2.667A2 2 0 0 0 17 2H7a2 2 0 0 0-1.6.8z",key:"o988cm"}]],qB=q("shopping-bag",HB);const GB=[["circle",{cx:"8",cy:"21",r:"1",key:"jimo8o"}],["circle",{cx:"19",cy:"21",r:"1",key:"13723u"}],["path",{d:"M2.05 2.05h2l2.66 12.42a2 2 0 0 0 2 1.58h9.78a2 2 0 0 0 1.95-1.57l1.65-7.43H5.12",key:"9zh506"}]],VB=q("shopping-cart",GB);const QB=[["path",{d:"M10 5H3",key:"1qgfaw"}],["path",{d:"M12 19H3",key:"yhmn1j"}],["path",{d:"M14 3v4",key:"1sua03"}],["path",{d:"M16 17v4",key:"1q0r14"}],["path",{d:"M21 12h-9",key:"1o4lsq"}],["path",{d:"M21 19h-5",key:"1rlt1p"}],["path",{d:"M21 5h-7",key:"1oszz2"}],["path",{d:"M8 10v4",key:"tgpxqk"}],["path",{d:"M8 12H3",key:"a7s4jb"}]],KB=q("sliders-horizontal",QB);const YB=[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12 18h.01",key:"mhygvu"}]],XB=q("smartphone",YB);const WB=[["path",{d:"M2 13a6 6 0 1 0 12 0 4 4 0 1 0-8 0 2 2 0 0 0 4 0",key:"hneq2s"}],["circle",{cx:"10",cy:"13",r:"8",key:"194lz3"}],["path",{d:"M2 21h12c4.4 0 8-3.6 8-8V7a2 2 0 1 0-4 0v6",key:"ixqyt7"}],["path",{d:"M18 3 19.1 5.2",key:"9tjm43"}],["path",{d:"M22 3 20.9 5.2",key:"j3odrs"}]],ZB=q("snail",WB);const JB=[["path",{d:"m10 20-1.25-2.5L6 18",key:"18frcb"}],["path",{d:"M10 4 8.75 6.5 6 6",key:"7mghy3"}],["path",{d:"m14 20 1.25-2.5L18 18",key:"1chtki"}],["path",{d:"m14 4 1.25 2.5L18 6",key:"1b4wsy"}],["path",{d:"m17 21-3-6h-4",key:"15hhxa"}],["path",{d:"m17 3-3 6 1.5 3",key:"11697g"}],["path",{d:"M2 12h6.5L10 9",key:"kv9z4n"}],["path",{d:"m20 10-1.5 2 1.5 2",key:"1swlpi"}],["path",{d:"M22 12h-6.5L14 15",key:"1mxi28"}],["path",{d:"m4 10 1.5 2L4 14",key:"k9enpj"}],["path",{d:"m7 21 3-6-1.5-3",key:"j8hb9u"}],["path",{d:"m7 3 3 6h4",key:"1otusx"}]],eD=q("snowflake",JB);const tD=[["path",{d:"M12 21a9 9 0 0 0 9-9H3a9 9 0 0 0 9 9Z",key:"4rw317"}],["path",{d:"M7 21h10",key:"1b0cd5"}],["path",{d:"M19.5 12 22 6",key:"shfsr5"}],["path",{d:"M16.25 3c.27.1.8.53.75 1.36-.06.83-.93 1.2-1 2.02-.05.78.34 1.24.73 1.62",key:"rpc6vp"}],["path",{d:"M11.25 3c.27.1.8.53.74 1.36-.05.83-.93 1.2-.98 2.02-.06.78.33 1.24.72 1.62",key:"1lf63m"}],["path",{d:"M6.25 3c.27.1.8.53.75 1.36-.06.83-.93 1.2-1 2.02-.05.78.34 1.24.74 1.62",key:"97tijn"}]],nD=q("soup",tD);const rD=[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],aD=q("sparkles",rD);const iD=[["path",{d:"M14 9.536V7a4 4 0 0 1 4-4h1.5a.5.5 0 0 1 .5.5V5a4 4 0 0 1-4 4 4 4 0 0 0-4 4c0 2 1 3 1 5a5 5 0 0 1-1 3",key:"139s4v"}],["path",{d:"M4 9a5 5 0 0 1 8 4 5 5 0 0 1-8-4",key:"1dlkgp"}],["path",{d:"M5 21h14",key:"11awu3"}]],sD=q("sprout",iD);const lD=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]],ng=q("square",lD);const oD=[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]],gd=q("star",oD);const cD=[["path",{d:"M11 2v2",key:"1539x4"}],["path",{d:"M5 2v2",key:"1yf1q8"}],["path",{d:"M5 3H4a2 2 0 0 0-2 2v4a6 6 0 0 0 12 0V5a2 2 0 0 0-2-2h-1",key:"rb5t3r"}],["path",{d:"M8 15a6 6 0 0 0 12 0v-3",key:"x18d4x"}],["circle",{cx:"20",cy:"10",r:"2",key:"ts1r5v"}]],uD=q("stethoscope",cD);const xD=[["path",{d:"M15 21v-5a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v5",key:"slp6dd"}],["path",{d:"M17.774 10.31a1.12 1.12 0 0 0-1.549 0 2.5 2.5 0 0 1-3.451 0 1.12 1.12 0 0 0-1.548 0 2.5 2.5 0 0 1-3.452 0 1.12 1.12 0 0 0-1.549 0 2.5 2.5 0 0 1-3.77-3.248l2.889-4.184A2 2 0 0 1 7 2h10a2 2 0 0 1 1.653.873l2.895 4.192a2.5 2.5 0 0 1-3.774 3.244",key:"o0xfot"}],["path",{d:"M4 10.95V19a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8.05",key:"wn3emo"}]],dD=q("store",xD);const fD=[["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M14.837 16.385a6 6 0 1 1-7.223-7.222c.624-.147.97.66.715 1.248a4 4 0 0 0 5.26 5.259c.589-.255 1.396.09 1.248.715",key:"xlf6rm"}],["path",{d:"M16 12a4 4 0 0 0-4-4",key:"6vsxu"}],["path",{d:"m19 5-1.256 1.256",key:"1yg6a6"}],["path",{d:"M20 12h2",key:"1q8mjw"}]],hD=q("sun-moon",fD);const pD=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]],rg=q("sun",pD);const mD=[["path",{d:"M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z",key:"vktsd0"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor",key:"kqv944"}]],gD=q("tag",mD);const ED=[["path",{d:"M13.172 2a2 2 0 0 1 1.414.586l6.71 6.71a2.4 2.4 0 0 1 0 3.408l-4.592 4.592a2.4 2.4 0 0 1-3.408 0l-6.71-6.71A2 2 0 0 1 6 9.172V3a1 1 0 0 1 1-1z",key:"16rjxf"}],["path",{d:"M2 7v6.172a2 2 0 0 0 .586 1.414l6.71 6.71a2.4 2.4 0 0 0 3.191.193",key:"178nd4"}],["circle",{cx:"10.5",cy:"6.5",r:".5",fill:"currentColor",key:"12ikhr"}]],yD=q("tags",ED);const bD=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"6",key:"1vlfrh"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]],CD=q("target",bD);const vD=[["path",{d:"m10.065 12.493-6.18 1.318a.934.934 0 0 1-1.108-.702l-.537-2.15a1.07 1.07 0 0 1 .691-1.265l13.504-4.44",key:"k4qptu"}],["path",{d:"m13.56 11.747 4.332-.924",key:"19l80z"}],["path",{d:"m16 21-3.105-6.21",key:"7oh9d"}],["path",{d:"M16.485 5.94a2 2 0 0 1 1.455-2.425l1.09-.272a1 1 0 0 1 1.212.727l1.515 6.06a1 1 0 0 1-.727 1.213l-1.09.272a2 2 0 0 1-2.425-1.455z",key:"m7xp4m"}],["path",{d:"m6.158 8.633 1.114 4.456",key:"74o979"}],["path",{d:"m8 21 3.105-6.21",key:"1fvxut"}],["circle",{cx:"12",cy:"13",r:"2",key:"1c1ljs"}]],kD=q("telescope",vD);const AD=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],BD=q("terminal",AD);const DD=[["path",{d:"M2 9a3 3 0 0 1 0 6v2a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-2a3 3 0 0 1 0-6V7a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2Z",key:"qn84l0"}],["path",{d:"M13 5v2",key:"dyzc3o"}],["path",{d:"M13 17v2",key:"1ont0d"}],["path",{d:"M13 11v2",key:"1wjjxi"}]],wD=q("ticket",DD);const FD=[["path",{d:"M8 3.1V7a4 4 0 0 0 8 0V3.1",key:"1v71zp"}],["path",{d:"m9 15-1-1",key:"1yrq24"}],["path",{d:"m15 15 1-1",key:"1t0d6s"}],["path",{d:"M9 19c-2.8 0-5-2.2-5-5v-4a8 8 0 0 1 16 0v4c0 2.8-2.2 5-5 5Z",key:"1p0hjs"}],["path",{d:"m8 19-2 3",key:"13i0xs"}],["path",{d:"m16 19 2 3",key:"xo31yx"}]],SD=q("train-front",FD);const ND=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],_D=q("trash-2",ND);const MD=[["path",{d:"m17 14 3 3.3a1 1 0 0 1-.7 1.7H4.7a1 1 0 0 1-.7-1.7L7 14h-.3a1 1 0 0 1-.7-1.7L9 9h-.2A1 1 0 0 1 8 7.3L12 3l4 4.3a1 1 0 0 1-.8 1.7H15l3 3.3a1 1 0 0 1-.7 1.7H17Z",key:"cpyugq"}],["path",{d:"M12 22v-3",key:"kmzjlo"}]],jD=q("tree-pine",MD);const TD=[["path",{d:"M16 7h6v6",key:"box55l"}],["path",{d:"m22 7-8.5 8.5-5-5L2 17",key:"1t1m79"}]],RD=q("trending-up",TD);const OD=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],Oi=q("triangle-alert",OD);const zD=[["path",{d:"M10 14.66v1.626a2 2 0 0 1-.976 1.696A5 5 0 0 0 7 21.978",key:"1n3hpd"}],["path",{d:"M14 14.66v1.626a2 2 0 0 0 .976 1.696A5 5 0 0 1 17 21.978",key:"rfe1zi"}],["path",{d:"M18 9h1.5a1 1 0 0 0 0-5H18",key:"7xy6bh"}],["path",{d:"M4 22h16",key:"57wxv0"}],["path",{d:"M6 9a6 6 0 0 0 12 0V3a1 1 0 0 0-1-1H7a1 1 0 0 0-1 1z",key:"1mhfuq"}],["path",{d:"M6 9H4.5a1 1 0 0 1 0-5H6",key:"tex48p"}]],LD=q("trophy",zD);const PD=[["path",{d:"m12 10 2 4v3a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1v-3a8 8 0 1 0-16 0v3a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1v-3l2-4h4Z",key:"1lbbv7"}],["path",{d:"M4.82 7.9 8 10",key:"m9wose"}],["path",{d:"M15.18 7.9 12 10",key:"p8dp2u"}],["path",{d:"M16.93 10H20a2 2 0 0 1 0 4H2",key:"12nsm7"}]],ID=q("turtle",PD);const UD=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],$D=q("user",UD);const HD=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]],qD=q("users",HD);const GD=[["path",{d:"M3 2v7c0 1.1.9 2 2 2h4a2 2 0 0 0 2-2V2",key:"cjf0a3"}],["path",{d:"M7 2v20",key:"1473qp"}],["path",{d:"M21 15V2a5 5 0 0 0-5 5v6c0 1.1.9 2 2 2h3Zm0 0v7",key:"j28e5"}]],VD=q("utensils",GD);const QD=[["path",{d:"m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5",key:"ftymec"}],["rect",{x:"2",y:"6",width:"14",height:"12",rx:"2",key:"158x01"}]],KD=q("video",QD);const YD=[["path",{d:"M19 7V4a1 1 0 0 0-1-1H5a2 2 0 0 0 0 4h15a1 1 0 0 1 1 1v4h-3a2 2 0 0 0 0 4h3a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1",key:"18etb6"}],["path",{d:"M3 5v14a2 2 0 0 0 2 2h15a1 1 0 0 0 1-1v-4",key:"xoc0q4"}]],XD=q("wallet",YD);const WD=[["path",{d:"m21.64 3.64-1.28-1.28a1.21 1.21 0 0 0-1.72 0L2.36 18.64a1.21 1.21 0 0 0 0 1.72l1.28 1.28a1.2 1.2 0 0 0 1.72 0L21.64 5.36a1.2 1.2 0 0 0 0-1.72",key:"ul74o6"}],["path",{d:"m14 7 3 3",key:"1r5n42"}],["path",{d:"M5 6v4",key:"ilb8ba"}],["path",{d:"M19 14v4",key:"blhpug"}],["path",{d:"M10 2v2",key:"7u0qdc"}],["path",{d:"M7 8H3",key:"zfb6yr"}],["path",{d:"M21 16h-4",key:"1cnmox"}],["path",{d:"M11 3H9",key:"1obp7u"}]],n9=q("wand-sparkles",WD);const ZD=[["path",{d:"M18 21V10a1 1 0 0 0-1-1H7a1 1 0 0 0-1 1v11",key:"pb2vm6"}],["path",{d:"M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V8a2 2 0 0 1 1.132-1.803l7.95-3.974a2 2 0 0 1 1.837 0l7.948 3.974A2 2 0 0 1 22 8z",key:"doq5xv"}],["path",{d:"M6 13h12",key:"yf64js"}],["path",{d:"M6 17h12",key:"1jwigz"}]],JD=q("warehouse",ZD);const ew=[["path",{d:"m10.586 5.414-5.172 5.172",key:"4mc350"}],["path",{d:"m18.586 13.414-5.172 5.172",key:"8c96vv"}],["path",{d:"M6 12h12",key:"8npq4p"}],["circle",{cx:"12",cy:"20",r:"2",key:"144qzu"}],["circle",{cx:"12",cy:"4",r:"2",key:"muu5ef"}],["circle",{cx:"20",cy:"12",r:"2",key:"1xzzfp"}],["circle",{cx:"4",cy:"12",r:"2",key:"1hvhnz"}]],tw=q("waypoints",ew);const nw=[["path",{d:"M2 22 16 8",key:"60hf96"}],["path",{d:"M3.47 12.53 5 11l1.53 1.53a3.5 3.5 0 0 1 0 4.94L5 19l-1.53-1.53a3.5 3.5 0 0 1 0-4.94Z",key:"1rdhi6"}],["path",{d:"M7.47 8.53 9 7l1.53 1.53a3.5 3.5 0 0 1 0 4.94L9 15l-1.53-1.53a3.5 3.5 0 0 1 0-4.94Z",key:"1sdzmb"}],["path",{d:"M11.47 4.53 13 3l1.53 1.53a3.5 3.5 0 0 1 0 4.94L13 11l-1.53-1.53a3.5 3.5 0 0 1 0-4.94Z",key:"eoatbi"}],["path",{d:"M20 2h2v2a4 4 0 0 1-4 4h-2V6a4 4 0 0 1 4-4Z",key:"19rau1"}],["path",{d:"M11.47 17.47 13 19l-1.53 1.53a3.5 3.5 0 0 1-4.94 0L5 19l1.53-1.53a3.5 3.5 0 0 1 4.94 0Z",key:"tc8ph9"}],["path",{d:"M15.47 13.47 17 15l-1.53 1.53a3.5 3.5 0 0 1-4.94 0L9 15l1.53-1.53a3.5 3.5 0 0 1 4.94 0Z",key:"2m8kc5"}],["path",{d:"M19.47 9.47 21 11l-1.53 1.53a3.5 3.5 0 0 1-4.94 0L13 11l1.53-1.53a3.5 3.5 0 0 1 4.94 0Z",key:"vex3ng"}]],rw=q("wheat",nw);const aw=[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}],["path",{d:"M5 12.859a10 10 0 0 1 5.17-2.69",key:"1dl1wf"}],["path",{d:"M19 12.859a10 10 0 0 0-2.007-1.523",key:"4k23kn"}],["path",{d:"M2 8.82a15 15 0 0 1 4.177-2.643",key:"1grhjp"}],["path",{d:"M22 8.82a15 15 0 0 0-11.288-3.764",key:"z3jwby"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],cf=q("wifi-off",aw);const iw=[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M2 8.82a15 15 0 0 1 20 0",key:"dnpr2z"}],["path",{d:"M5 12.859a10 10 0 0 1 14 0",key:"1x1e6c"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}]],ag=q("wifi",iw);const sw=[["path",{d:"M8 22h8",key:"rmew8v"}],["path",{d:"M7 10h10",key:"1101jm"}],["path",{d:"M12 15v7",key:"t2xh3l"}],["path",{d:"M12 15a5 5 0 0 0 5-5c0-2-.5-4-2-8H9c-1.5 4-2 6-2 8a5 5 0 0 0 5 5Z",key:"10ffi3"}]],lw=q("wine",sw);const ow=[["rect",{width:"8",height:"8",x:"3",y:"3",rx:"2",key:"by2w9f"}],["path",{d:"M7 11v4a2 2 0 0 0 2 2h4",key:"xkn7yn"}],["rect",{width:"8",height:"8",x:"13",y:"13",rx:"2",key:"1cgmvn"}]],lo=q("workflow",ow);const cw=[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z",key:"1ngwbx"}]],uw=q("wrench",cw);const xw=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],En=q("x",xw);const dw=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]],uf=q("zap",dw);function r9(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Ot(e,t){return{method:e,pattern:t,path:()=>t}}function st(e,t){const[r,i]=t.split(/:[a-zA-Z]+/);if(i===void 0)throw new Error(`route ${t} declares no :param`);return{method:e,pattern:t,path:l=>`${r}${encodeURIComponent(l)}${i}`,re:new RegExp(`^${r9(r)}([^/]+)${r9(i)}$`)}}const pe={state:Ot("GET","/api/state"),search:Ot("GET","/api/search"),repos:Ot("GET","/api/repos"),modelCatalog:Ot("GET","/api/models"),modelDefaults:Ot("GET","/api/models/defaults"),updateModelDefaults:Ot("PATCH","/api/models/defaults"),planUsage:Ot("GET","/api/usage"),voiceTicket:Ot("POST","/api/voice/ticket"),voiceCall:Ot("POST","/api/voice/calls"),voiceCallReady:st("POST","/api/voice/calls/:callId/ready"),voiceCallEnd:st("DELETE","/api/voice/calls/:callId"),repoIcon:st("GET","/api/repos/:repo/icon"),localImage:st("GET","/api/local-images/:path"),filePreview:st("GET","/api/files/:reference"),toolImage:st("GET","/api/tool-images/:reference"),stageAttachment:Ot("POST","/api/attachments"),discardStagedAttachment:st("DELETE","/api/attachments/:attachmentId"),logs:Ot("GET","/api/logs"),restartConductor:Ot("POST","/api/conductor/restart"),settings:Ot("GET","/api/settings"),updateSettings:Ot("PATCH","/api/settings"),prefs:Ot("GET","/api/prefs"),updatePrefs:Ot("PATCH","/api/prefs"),armNoSleep:Ot("POST","/api/nosleep"),disarmNoSleep:Ot("DELETE","/api/nosleep"),push:Ot("GET","/api/push"),pushSubscribe:Ot("POST","/api/push/subscribe"),pushUnsubscribe:Ot("POST","/api/push/unsubscribe"),pushTest:Ot("POST","/api/push/test"),roles:Ot("GET","/api/roles"),updateRoles:Ot("PATCH","/api/roles"),delegations:Ot("GET","/api/delegations"),dismissDelegation:st("DELETE","/api/delegations/:delegationId"),workflows:Ot("POST","/api/workflows"),workflow:st("DELETE","/api/workflows/:workflowId"),workflowDelegation:st("POST","/api/workflows/:workflowId/delegations"),workflowRetry:st("POST","/api/workflows/:workflowId/retry"),workflowAdopt:st("POST","/api/workflows/:workflowId/adopt"),workflowReplay:st("POST","/api/workflows/:workflowId/replay"),workflowComplete:st("POST","/api/workflows/:workflowId/complete"),confirmUiStable:Ot("POST","/api/ui-quarantine/confirm"),createWorkspace:Ot("POST","/api/workspaces"),workspace:st("GET","/api/workspaces/:workspaceId"),sessions:st("GET","/api/workspaces/:workspaceId/sessions"),newChat:st("POST","/api/workspaces/:workspaceId/sessions"),diff:st("GET","/api/workspaces/:workspaceId/diff"),fileDiff:st("GET","/api/workspaces/:workspaceId/diff/file"),workspaceFiles:st("GET","/api/workspaces/:workspaceId/files"),merge:st("POST","/api/workspaces/:workspaceId/merge"),continueWorkspace:st("POST","/api/workspaces/:workspaceId/continue"),workspaceStatus:st("POST","/api/workspaces/:workspaceId/status"),archiveWorkspace:st("POST","/api/workspaces/:workspaceId/archive"),devServer:st("GET","/api/workspaces/:workspaceId/dev-server"),startDevServer:st("POST","/api/workspaces/:workspaceId/dev-server"),stopDevServer:st("DELETE","/api/workspaces/:workspaceId/dev-server"),dismissFirstPrompt:st("DELETE","/api/workspaces/:workspaceId/prompt"),messages:st("GET","/api/sessions/:sessionId/messages"),context:st("GET","/api/sessions/:sessionId/context"),models:st("GET","/api/sessions/:sessionId/models"),defaultModel:st("POST","/api/sessions/:sessionId/default-model"),agent:st("POST","/api/sessions/:sessionId/agent"),stop:st("POST","/api/sessions/:sessionId/stop"),closeChat:st("DELETE","/api/sessions/:sessionId"),sendPrompt:st("POST","/api/sessions/:sessionId/prompt"),uploadAttachment:st("POST","/api/sessions/:sessionId/attachments"),splitChat:st("POST","/api/sessions/:sessionId/split"),delegateTask:st("POST","/api/sessions/:sessionId/delegate"),dismissParkedPrompt:st("DELETE","/api/sessions/:sessionId/prompt")};function fw(e){const t=/^(\d+)(s|m|h)?$/.exec(e.trim());if(!t)return null;const r=Number(t[1]),i=t[2]??"s",l=r*(i==="h"?3600:i==="m"?60:1);return Number.isSafeInteger(l)?l:null}const hw="## Workflow objective";function pw(e){const t=e??"",i=(t.includes("/")?t.slice(t.indexOf("/")+1):t).replace(/[-_]/g," ").trim();return i?i[0].toUpperCase()+i.slice(1):""}function Vr(e){return e.workspace_name||e.pr_title||pw(e.branch)||e.directory_name||e.id.slice(0,8)}function mw(e){return e.toLowerCase().match(/[\p{L}\p{N}_]+/gu)??[]}function Wn(e){const t=/^\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}(?:\.\d+)?$/.test(e);return Date.parse(t?`${e.replace(" ","T")}Z`:e)}function Ds(e){return e.endsWith(" NEW")?e.slice(0,-4):e}function Ed(e){return Ds(e).replace(/^opencode-/i,"")}function ig(e){return e?e.replace(/^claude-/,"").replace(/-\d{8}$/,"").replace(/-latest$/,""):""}const yd=e=>e.toLowerCase().replace(/[^a-z0-9]/g,""),a9=e=>yd(e.replace(/[\s\-_]\d+[mk]$/i,""));function gw(e){const t=[];for(const r of e){const i=t[t.length-1];i!==void 0&&/^\d+$/.test(r)&&/^\d[\d.]*$/.test(i)?t[t.length-1]=`${i}.${r}`:t.push(r)}return t}function Ew(e){const t=gw(e.split("-")),r=i=>i?i.toLowerCase()==="1m"?"1M":i[0].toUpperCase()+i.slice(1):"";return t[0]==="gpt"&&t[1]?[t[1],...t.slice(2).map(r)].join(" "):/^(opus|sonnet|haiku|fable)$/.test(t[0]??"")?t.map(r).join(" "):e}function sg(e,t=[]){const r=ig(e);if(!r)return"";const i=r.split("/").pop()??r,l=i.split(":").pop()??i,o=yd(l);if(o){const u=t.find(f=>yd(f)===o);if(u)return u;const d=t.filter(f=>a9(f)===a9(l));if(d.length===1)return d[0]}return Ew(l)}function lg(e){const t=Ds(e).trim().toLowerCase();if(t.startsWith("anthropic/"))return"Anthropic";if(t.startsWith("openai/"))return"OpenAI";if(t.startsWith("cursor/"))return"Cursor";if(/^(claude|fable|haiku|opus|sonnet)(?:[\s-]|$)/.test(t))return"Anthropic";if(/^(?:auto|gpt|o[1-9]|\d)(?:[\s.-]|$)/.test(t))return"OpenAI";if(/^(composer|grok)(?:[\s-]|$)/.test(t))return"Cursor";if(/^opencode(?:-go)?\//.test(t))return"OpenCode";const r=t.indexOf("/");return r>0?t.slice(0,r):"Other"}function _s(e){const t=lg(e);if(t==="Anthropic")return"claude";if(t==="OpenAI")return"codex";if(t==="Cursor")return"cursor";if(t==="OpenCode")return"acp"}function xf(e){return e==="claude"||e==="codex"}function df(e){return e==="claude"||e==="codex"}function og(e,t){const r=Ds(e);return t.some(i=>i.models.some(l=>Ds(l)===r))}function ff(e){let t=null;for(const r of e){if(!r.models.some(o=>Ds(o).trim())||r.snapshotAt===null)continue;const i=r.snapshotAt??r.updatedAt,l=t?t.snapshotAt??t.updatedAt:-1;(!t||i>=l)&&(t=r)}return t}function yw(e){const t=new Map;for(const r of e){const i=Ds(r).trim();if(!i)continue;const l=lg(i),o=t.get(l)??[];o.includes(i)||o.push(i),t.set(l,o)}return[...t].map(([r,i])=>({label:r,models:i.sort((l,o)=>l.localeCompare(o))})).sort((r,i)=>r.label.localeCompare(i.label))}function cg(e,t){if(typeof e=="string"&&e.trim())return e;if(e&&typeof e=="object"){const r=e.message;if(typeof r=="string"&&r.trim())return r}return t}const bw="",Cw="",ug=["marin","cedar","alloy","ash","ballad","coral","echo","sage","shimmer","verse"],vw=["auto","no","en"];function kw(e){return typeof e=="string"&&ug.includes(e)}function Aw(e){return typeof e=="string"&&vw.includes(e)}const i9=".context/attachments/";function Bw(e){const t=[];let r=0;for(;r<e.length;){const i=e.indexOf("@⟦",r);if(i<0)break;const l=e.indexOf("⟧(",i+2);if(l<0||/[\r\n]/.test(e.slice(i,l))){r=i+2;continue}const o=e.slice(i+2,l),u=l+2;let d=u,f=!1;for(;!f&&(d=e.indexOf(")",d),!(d<0));){const h=e.slice(u,d);try{const m=decodeURIComponent(h),p=m.startsWith(i9)?m.slice(i9.length):"",y=p.indexOf("/"),b=y<0?"":p.slice(0,y),C=y<0?"":p.slice(y+1);if(/^[A-Za-z0-9]{6}$/.test(b)&&C===o&&!C.includes("/")){t.push({start:i,end:d+1,name:o,path:m}),r=d+1,f=!0;continue}}catch{}d+=1}f||(r=i+2)}return t}const Dw=new Set([".bash",".c",".cc",".cpp",".css",".go",".h",".hpp",".html",".java",".js",".json",".jsx",".md",".mjs",".mts",".php",".py",".rb",".rs",".scss",".sh",".sql",".svg",".swift",".toml",".ts",".tsx",".txt",".yaml",".yml"]),ww=new Set([".avif",".gif",".jpeg",".jpg",".png",".webp"]);function xg(e){const t=e.slice(e.lastIndexOf("/")+1),r=t.lastIndexOf(".");return r===-1?null:t.slice(r).toLowerCase()}function hf(e){const t=xg(e);return t!==null&&Dw.has(t)}function dg(e){const t=xg(e);return t!==null&&ww.has(t)}function s9(e){return e.role==="tool"&&!e.tool&&e.output!==void 0}const Fw="The Mac is locked";function Mi(e){return(e??"").includes(Fw)}const Sw="x-relay-device",Xl="conductor-remote-token";function Nw(){const t=new URLSearchParams(location.hash.slice(1)).get("token");return t&&(localStorage.setItem(Xl,t),history.replaceState(null,"",location.pathname+location.search)),localStorage.getItem(Xl)}function pf(){return localStorage.getItem(Xl)}function _w(){localStorage.removeItem(Xl)}function Mw(e){localStorage.setItem(Xl,e)}function jw(e){const t=e.trim();if(!t)return null;const r=t.match(/token=([^&\s]+)/);return r?decodeURIComponent(r[1]):/\s/.test(t)?null:t}class ur extends Error{constructor(t,r){super(t),this.status=r}status}const fg=6e3,Ut=45e3,Tw=75e3,Rw=75e3,l9=75e3,Ow=75e3;async function Le(e,t={},r=fg,i){const l=pf();let o;try{o=await fetch(e,{...t,signal:AbortSignal.timeout(r),headers:{authorization:`Bearer ${l??""}`,"content-type":"application/json","x-client-timeout-ms":String(r),...t.headers}})}catch(u){throw u instanceof DOMException&&u.name==="TimeoutError"?new ur("Request timed out",0):u}if(!o.ok){const u=await o.json().catch(()=>({}));throw new ur(cg(u.error,`HTTP ${o.status}`),o.status)}if(i!==void 0&&o.status!==i)throw new ur(`Expected HTTP ${i}, received ${o.status}`,o.status);return o.json()}async function o9(e,t){const r=pf();let i;try{i=await fetch(e,{method:"POST",body:t,signal:AbortSignal.timeout(Ut),headers:{authorization:`Bearer ${r??""}`,"content-type":t.type||"application/octet-stream","x-attachment-name":encodeURIComponent(t.name),"x-client-timeout-ms":String(Ut)}})}catch(l){throw l instanceof DOMException&&l.name==="TimeoutError"?new ur("Upload timed out",0):l}if(!i.ok){const l=await i.json().catch(()=>({}));throw new ur(cg(l.error,`HTTP ${i.status}`),i.status)}return i.json()}const Fx=new Map;async function zw(e){const t=pf(),r=await fetch(e,{headers:{authorization:`Bearer ${t??""}`},signal:AbortSignal.timeout(fg)});if(!r.ok)throw new ur(`HTTP ${r.status}`,r.status);return URL.createObjectURL(await r.blob())}function Sx(e){let t=Fx.get(e);return t||(t=zw(e),t.catch(()=>Fx.delete(e)),Fx.set(e,t)),t}const De={state:()=>Le(pe.state.path()),voiceTicket:()=>Le(pe.voiceTicket.path(),{method:pe.voiceTicket.method}),voiceCall:(e,t,r)=>Le(pe.voiceCall.path(),{method:pe.voiceCall.method,body:JSON.stringify({sdp:e,voice:t,language:r})},Ut),voiceCallReady:e=>Le(pe.voiceCallReady.path(e),{method:pe.voiceCallReady.method},Ut),voiceCallEnd:e=>Le(pe.voiceCallEnd.path(e),{method:pe.voiceCallEnd.method},Ut),repoIcon:e=>Sx(pe.repoIcon.path(e)),localImage:e=>Sx(pe.localImage.path(e)),toolImage:e=>Sx(pe.toolImage.path(e)),filePreview:e=>Le(pe.filePreview.path(e)),stageAttachment:e=>o9(pe.stageAttachment.path(),e),discardStagedAttachment:e=>Le(pe.discardStagedAttachment.path(e),{method:pe.discardStagedAttachment.method}),workspace:e=>Le(pe.workspace.path(e)),sessions:e=>Le(pe.sessions.path(e)),messages:(e,t,r)=>Le(`${pe.messages.path(e)}?after=${t}`,{headers:r?{[Sw]:r}:{}}),contextBreakdown:e=>Le(pe.context.path(e)),uploadAttachment:(e,t,r)=>o9(`${pe.uploadAttachment.path(e)}?workspaceId=${encodeURIComponent(t)}`,r),diff:e=>Le(pe.diff.path(e)),fileDiff:(e,t)=>Le(`${pe.fileDiff.path(e)}?path=${encodeURIComponent(t)}`),workspaceFiles:e=>Le(pe.workspaceFiles.path(e)),sendPrompt:(e,t,r,i,l,o)=>Le(pe.sendPrompt.path(e),{method:pe.sendPrompt.method,body:JSON.stringify({text:t,workspaceId:r,agent:i,clientId:l,queue:o})},Rw),startWorkflow:e=>Le(pe.workflows.path(),{method:pe.workflows.method,body:JSON.stringify(e)},Ut,202),retryWorkflow:(e,t)=>Le(pe.workflowRetry.path(e),{method:pe.workflowRetry.method,body:JSON.stringify(t)},Ut),adoptWorkflow:(e,t)=>Le(pe.workflowAdopt.path(e),{method:pe.workflowAdopt.method,body:JSON.stringify(t)},Ut),replayWorkflow:(e,t)=>Le(pe.workflowReplay.path(e),{method:pe.workflowReplay.method,body:JSON.stringify(t)},Ut),completeWorkflow:(e,t)=>Le(pe.workflowComplete.path(e),{method:pe.workflowComplete.method,body:JSON.stringify(t)},Ut),cancelWorkflow:(e,t)=>{const r=new URLSearchParams({clientId:t.clientId});return Le(`${pe.workflow.path(e)}?${r}`,{method:pe.workflow.method},Ut)},confirmUiStable:e=>Le(pe.confirmUiStable.path(),{method:pe.confirmUiStable.method,body:JSON.stringify(e)},Ut),stop:(e,t)=>Le(pe.stop.path(e),{method:pe.stop.method,body:JSON.stringify({workspaceId:t})},Ut),closeChat:(e,t,r=!1)=>Le(pe.closeChat.path(e),{method:pe.closeChat.method,body:JSON.stringify({workspaceId:t,closeRunning:r})},Ut),newChat:e=>Le(pe.newChat.path(e),{method:pe.newChat.method},Ut),splitChat:(e,t,r,i,l,o,u="chat")=>Le(pe.splitChat.path(e),{method:pe.splitChat.method,body:JSON.stringify({workspaceId:t,includeThinking:r,includeTools:i,throughRowid:l,onlyRowid:o,destination:u})},Ut),repos:()=>Le(pe.repos.path()),modelCatalog:()=>Le(pe.modelCatalog.path()),modelDefaults:()=>Le(pe.modelDefaults.path()),patchModelDefaults:e=>Le(pe.updateModelDefaults.path(),{method:pe.updateModelDefaults.method,body:JSON.stringify(e)}),planUsage:(e=!1)=>Le(`${pe.planUsage.path()}${e?"?refresh=1":""}`,{},15e3),roles:()=>Le(pe.roles.path()),updateRoles:e=>Le(pe.updateRoles.path(),{method:pe.updateRoles.method,body:JSON.stringify(e)}),delegations:e=>Le(`${pe.delegations.path()}${e?`?workspaceId=${encodeURIComponent(e)}`:""}`),delegateTask:(e,t)=>Le(pe.delegateTask.path(e),{method:pe.delegateTask.method,body:JSON.stringify(t)}),dismissDelegation:e=>Le(pe.dismissDelegation.path(e),{method:pe.dismissDelegation.method}),search:(e,t=[],r=!0)=>{const i=new URLSearchParams({q:e});for(const l of t)i.append("repo",l);return r||i.set("archived","0"),Le(`${pe.search.path()}?${i}`)},dismissPrompt:e=>Le(pe.dismissFirstPrompt.path(e),{method:pe.dismissFirstPrompt.method}),dismissParked:e=>Le(pe.dismissParkedPrompt.path(e),{method:pe.dismissParkedPrompt.method}),createWorkspace:e=>Le(pe.createWorkspace.path(),{method:pe.createWorkspace.method,body:JSON.stringify(e)},Ut),setAgent:(e,t,r)=>Le(pe.agent.path(e),{method:pe.agent.method,body:JSON.stringify({...t,workspaceId:r})},Ut),models:(e,t)=>Le(`${pe.models.path(e)}?workspaceId=${encodeURIComponent(t)}`,{},Ut),setDefaultModel:(e,t,r)=>Le(pe.defaultModel.path(e),{method:pe.defaultModel.method,body:JSON.stringify({model:t,workspaceId:r})},Ut),logs:(e,t=300)=>Le(`${pe.logs.path()}?limit=${t}${e?`&file=${encodeURIComponent(e)}`:""}`),push:()=>Le(pe.push.path()),pushSubscribe:(e,t)=>Le(pe.pushSubscribe.path(),{method:pe.pushSubscribe.method,body:JSON.stringify({subscription:e,label:t})}),pushUnsubscribe:e=>Le(pe.pushUnsubscribe.path(),{method:pe.pushUnsubscribe.method,body:JSON.stringify({endpoint:e})}),pushTest:e=>Le(pe.pushTest.path(),{method:pe.pushTest.method,body:JSON.stringify({id:e})},Ut),merge:e=>Le(pe.merge.path(e),{method:pe.merge.method},Ut),continueWorkspace:(e,t)=>Le(pe.continueWorkspace.path(e),{method:pe.continueWorkspace.method,body:JSON.stringify({sessionId:t})},Tw),setStatus:(e,t)=>Le(pe.workspaceStatus.path(e),{method:pe.workspaceStatus.method,body:JSON.stringify({status:t})},Ut),archive:(e,t=!1)=>Le(pe.archiveWorkspace.path(e),{method:pe.archiveWorkspace.method,body:JSON.stringify({stopAgents:t})},Ut),devServer:e=>Le(pe.devServer.path(e)),startDevServer:(e,t)=>Le(pe.startDevServer.path(e),{method:pe.startDevServer.method,body:t?JSON.stringify({runConfigId:t}):void 0},l9),stopDevServer:e=>Le(pe.stopDevServer.path(e),{method:pe.stopDevServer.method},l9),settings:()=>Le(pe.settings.path()),patchSettings:e=>Le(pe.updateSettings.path(),{method:pe.updateSettings.method,body:JSON.stringify(e)}),prefs:()=>Le(pe.prefs.path()),patchPrefs:(e,t=!1)=>Le(pe.updatePrefs.path(),{method:pe.updatePrefs.method,body:JSON.stringify(e),keepalive:t}),armNoSleep:e=>Le(pe.armNoSleep.path(),{method:pe.armNoSleep.method,body:JSON.stringify({seconds:e})},Ut),disarmNoSleep:()=>Le(pe.disarmNoSleep.path(),{method:pe.disarmNoSleep.method},Ut),restartConductor:(e=!1)=>Le(pe.restartConductor.path(),{method:pe.restartConductor.method,body:JSON.stringify({stopAgents:e})},Ow)},bd="conductor-remote-pending",Cd="conductor-remote-workflow-attempts",uc=20,Lw=1440*60*1e3;function hg(e,t){return t.kind==="new_workspace"?JSON.stringify(["new_workspace",t.repo,t.sendImmediately,e]):JSON.stringify(["existing_session",t.workspaceId,t.sessionId,e])}function Pw(e){const t=e;return!!t&&typeof t.key=="string"&&typeof t.fingerprint=="string"&&typeof t.clientId=="string"&&typeof t.createdAt=="number"}function Iw(){try{const e=JSON.parse(localStorage.getItem(Cd)??"[]");return Array.isArray(e)?Object.fromEntries(e.filter(Pw).slice(-uc).map(t=>[t.key,t])):{}}catch{return{}}}function c9(e){try{const t=Object.values(e).sort((r,i)=>r.createdAt-i.createdAt).slice(-uc);t.length?localStorage.setItem(Cd,JSON.stringify(t)):localStorage.removeItem(Cd)}catch{}}function pg(e,t=[],r=!1){let i=r;const l=new Set;for(const o of e){if(l.add(o.text.trim()),o.status==="error")return"failed";o.status==="sending"&&(i=!0)}for(const o of t)if(!l.has(o.text.trim())){if(o.status==="failed")return"failed";o.status==="waiting"&&(i=!0)}return i?"sending":null}const u9=e=>e.status==="sending"||!!e.interrupted;function x9(e,t){const r=e.text.trim(),i=t.trim();return e.workflow?i.endsWith(`${hw}
|
|
12
|
-
|
|
13
|
-
${r}`):i===r}function Uw(e){const t=e;return!!t&&typeof t.id=="string"&&typeof t.sessionId=="string"&&typeof t.workspaceId=="string"&&typeof t.text=="string"&&typeof t.createdAt=="number"&&(t.workflow===void 0||typeof t.workflow=="boolean")&&(t.status==="sending"||t.status==="error")}const $w=e=>e.status==="sending"?{...e,status:"error",interrupted:!0,error:"Never confirmed — the app reloaded"}:e;function Hw(){try{const e=JSON.parse(localStorage.getItem(bd)??"[]");if(!Array.isArray(e))return[];const t=Date.now()-Lw;return e.filter(Uw).filter(r=>r.createdAt>t).slice(-uc).map($w)}catch{return[]}}function qw(e){try{const t=e.slice(-uc);t.length?localStorage.setItem(bd,JSON.stringify(t)):localStorage.removeItem(bd)}catch{}}const N0="conductor-remote-agent:",_0="conductor-remote-draft:",ga="new-workspace",d9="conductor-remote-read",mg=(e,t,r)=>(e[t]??"")<r;function Gw(e,t){return(e.unread_sessions??[]).filter(r=>mg(t,r.id,r.at)).length}function Vw(e,t){return!!e.unread_count&&mg(t,e.id,e.updated_at)}const f9="conductor-remote-prefs-v1";function Br(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)?e:null}function vd(e){const t=Br(e);if(!t)return{};const r={};return typeof t.model=="string"&&(r.model=t.model),typeof t.effort=="string"&&(r.effort=t.effort),typeof t.plan=="boolean"&&(r.plan=t.plan),typeof t.fast=="boolean"&&(r.fast=t.fast),r}function vs(e){return Object.keys(e).length>0}function Qw(e){const t=Br(e);return!t||typeof t.name!="string"||typeof t.path!="string"||typeof t.token!="string"||!Number.isSafeInteger(Number(t.bytes))||Number(t.bytes)<0||t.stageId!==void 0&&typeof t.stageId!="string"?null:{name:t.name,path:t.path,bytes:Number(t.bytes),token:t.token,...t.stageId?{stageId:t.stageId}:{}}}function gg(e){if(!Array.isArray(e))return[];const t=new Set;return e.flatMap(r=>{const i=Qw(r);return!i||t.has(i.path)?[]:(t.add(i.path),[i])})}function h9(e){const t=Br(e);if(!t)return null;const r=Number(t.updatedAt);return!Number.isSafeInteger(r)||r<0?null:t.deleted===!0?{text:"",agent:{},attachments:[],updatedAt:r,deleted:!0}:typeof t.text!="string"?null:{text:t.text,agent:vd(t.agent),attachments:gg(t.attachments),updatedAt:r,deleted:!1}}function Eg(e,t){return e.model===t.model&&e.effort===t.effort&&e.plan===t.plan&&e.fast===t.fast}function Kw(e,t){return e.text===t.text&&e.updatedAt===t.updatedAt&&e.deleted===t.deleted&&Eg(e.agent,t.agent)&&e.attachments.length===t.attachments.length&&e.attachments.every((r,i)=>{const l=t.attachments[i];return r.name===l?.name&&r.path===l.path&&r.bytes===l.bytes&&r.token===l.token&&r.stageId===l.stageId})}function ys(e,t,r,i){return e||vs(t)||r.length?{text:e,agent:{...t},attachments:gg(r),updatedAt:i,deleted:!1}:{text:"",agent:{},attachments:[],updatedAt:i,deleted:!0}}class Yw{storage;prefs;clock;generation=0;touched=new Set;listeners=new Set;constructor(t){this.storage=t;const r=this.readRawDrafts(),i=this.readRawAgents(),l=this.readMetadata(),o=l?.drafts??{};if(this.clock=Math.max(Date.now(),...Object.values(o).map(u=>u.updatedAt)),l){const u={...o};for(const d of new Set([...Object.keys(o),...Object.keys(r),...Object.keys(i)])){const f=ys(r[d]??"",i[d]??{},[],o[d]?.updatedAt??0),h=o[d];!(h&&!h.deleted&&h.attachments.length>0&&!h.text&&!vs(h.agent)&&f.deleted)&&(!h||h.text!==f.text||h.deleted!==f.deleted||!Eg(h.agent,f.agent))&&(u[d]=ys(f.text,f.agent,[],this.tick()),this.touched.add(d))}this.prefs={readMarks:this.readRawMarks(),drafts:u}}else{const u={};for(const d of new Set([...Object.keys(r),...Object.keys(i)]))u[d]=ys(r[d]??"",i[d]??{},[],0);this.prefs={readMarks:this.readRawMarks(),drafts:u}}this.persistAll()}snapshot(){return{readMarks:{...this.prefs.readMarks},drafts:Object.fromEntries(Object.entries(this.prefs.drafts).map(([t,r])=>[t,{...r,agent:{...r.agent},attachments:r.attachments.map(i=>({...i}))}]))}}project(){const t={},r={},i={};for(const[l,o]of Object.entries(this.prefs.drafts))o.deleted||(t[l]=o.text,vs(o.agent)&&(r[l]={...o.agent}),o.attachments.length&&(i[l]=o.attachments.map(u=>({...u}))));return{drafts:t,agentDrafts:r,draftAttachments:i,readMarks:{...this.prefs.readMarks}}}currentGeneration(){return this.generation}setDraft(t,r,i){return this.setLocal(t,r,i,this.prefs.drafts[t]?.attachments??[]),this.project()}setAgent(t,r,i){return this.setLocal(t,i,r,this.prefs.drafts[t]?.attachments??[]),this.project()}setAttachments(t,r,i,l){return this.setLocal(t,i,l,r),this.project()}setContent(t,r,i,l){return this.setLocal(t,r,i,l),this.project()}moveDraft(t,r){const i=this.prefs.drafts[t],l=this.prefs.drafts[r];return!i||i.deleted||t===r||l&&!l.deleted?this.project():(this.prefs.drafts[t]=ys("",{},[],this.tick()),this.prefs.drafts[r]=ys(i.text,i.agent,i.attachments,this.tick()),this.touched.add(t),this.touched.add(r),this.changed(),this.project())}markRead(t,r){return(this.prefs.readMarks[t]??"")>=r?this.project():(this.prefs.readMarks[t]=r,this.changed(),this.project())}merge(t,r){const i=Br(Br(t)?.drafts),l=this.cleanPrefs(t);for(const d of Object.values(l.drafts))this.clock=Math.max(this.clock,d.updatedAt);let o=!1,u=!1;for(const[d,f]of Object.entries(l.readMarks))(this.prefs.readMarks[d]??"")>=f||(this.prefs.readMarks[d]=f,o=!0);for(const[d,f]of Object.entries(this.prefs.readMarks))(l.readMarks[d]??"")<f&&(u=!0);for(const d of new Set([...Object.keys(this.prefs.drafts),...Object.keys(l.drafts)])){const f=this.prefs.drafts[d],h=l.drafts[d],m=Br(i?.[d]);if(f&&h&&!h.deleted&&m&&!Object.hasOwn(m,"attachments")&&(h.attachments=f.attachments.map(b=>({...b}))),!f&&h){this.prefs.drafts[d]=h,o=!0;continue}if(f&&!h){u=!0;continue}if(!(f&&h)||Kw(f,h))continue;const p=r===d&&(this.touched.has(d)||!f.deleted&&(f.text.length>0||vs(f.agent)||f.attachments.length>0)),y=h.updatedAt>f.updatedAt||h.updatedAt===f.updatedAt&&(h.deleted||!f.deleted);if(y&&!p){this.prefs.drafts[d]=h,o=!0;continue}y&&(f.updatedAt=this.tick(h.updatedAt),o=!0),u=!0}return o&&this.persistAll(),{state:this.project(),needsUpload:u}}subscribe(t){return this.listeners.add(t),()=>this.listeners.delete(t)}requestFlush(){for(const t of this.listeners)t(!0)}setLocal(t,r,i,l){this.prefs.drafts[t]=ys(r,vd(i),l,this.tick()),this.touched.add(t),this.changed()}changed(){this.generation+=1,this.persistAll();for(const t of this.listeners)t(!1)}tick(t=0){return this.clock=Math.max(Date.now(),this.clock+1,t+1),this.clock}cleanPrefs(t){const r=Br(t),i={};for(const[o,u]of Object.entries(Br(r?.readMarks)??{}))typeof u=="string"&&(i[o]=u);const l={};for(const[o,u]of Object.entries(Br(r?.drafts)??{})){const d=h9(u);d&&(l[o]=d)}return{readMarks:i,drafts:l}}readMetadata(){try{const t=Br(JSON.parse(this.storage.getItem(f9)??"null"));if(t?.version!==1)return null;const r={};for(const[i,l]of Object.entries(Br(t.drafts)??{})){const o=h9(l);o&&(r[i]=o)}return{drafts:r}}catch{return null}}readRawDrafts(){const t={};try{for(let r=0;r<this.storage.length;r++){const i=this.storage.key(r);if(!i?.startsWith(_0))continue;const l=this.storage.getItem(i);l&&(t[i.slice(_0.length)]=l)}}catch{}return t}readRawAgents(){const t={};try{for(let r=0;r<this.storage.length;r++){const i=this.storage.key(r);if(!i?.startsWith(N0))continue;const l=this.storage.getItem(i);if(!l)continue;const o=vd(JSON.parse(l));vs(o)&&(t[i.slice(N0.length)]=o)}}catch{}return t}readRawMarks(){try{const t=Br(JSON.parse(this.storage.getItem(d9)??"{}"));return t?Object.fromEntries(Object.entries(t).filter(r=>typeof r[1]=="string")):{}}catch{return{}}}persistAll(){try{for(const[t,r]of Object.entries(this.prefs.drafts))!r.deleted&&r.text?this.storage.setItem(_0+t,r.text):this.storage.removeItem(_0+t),!r.deleted&&vs(r.agent)?this.storage.setItem(N0+t,JSON.stringify(r.agent)):this.storage.removeItem(N0+t);this.storage.setItem(d9,JSON.stringify(this.prefs.readMarks)),this.storage.setItem(f9,JSON.stringify({version:1,drafts:this.prefs.drafts}))}catch{}}}let Nx=null;function Nr(){return Nx||(Nx=new Yw(localStorage)),Nx}const Xw=()=>Nr().project(),Ww=()=>Nr().snapshot(),p9=()=>Nr().currentGeneration(),Zw=(e,t,r)=>Nr().setDraft(e,t,r),m9=(e,t,r)=>Nr().setAgent(e,t,r),g9=(e,t,r,i)=>Nr().setAttachments(e,t,r,i),Jw=(e,t,r,i)=>Nr().setContent(e,t,r,i),eF=(e,t)=>Nr().moveDraft(e,t),tF=(e,t)=>Nr().markRead(e,t),nF=(e,t)=>Nr().merge(e,t),rF=e=>Nr().subscribe(e),kd=()=>Nr().requestFlush();function aF(){return/iP(hone|ad|od)/.test(navigator.userAgent)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1}function yg(){return window.matchMedia("(display-mode: standalone)").matches||navigator.standalone===!0}function bg(){return window.isSecureContext?"serviceWorker"in navigator?!("PushManager"in window)||!("Notification"in window)?aF()&&!yg()?"needs-install":"unsupported":"ok":"unsupported":"insecure"}function Cg(){const e=navigator.userAgent,t=/iPhone/.test(e)?"iPhone":/iPad/.test(e)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1?"iPad":/Android/.test(e)?"Android":/Mac OS X/.test(e)?"Mac":/Windows/.test(e)?"Windows":"Browser";return yg()?t:`${t} (browser)`}function iF(e){const t=e+"=".repeat((4-e.length%4)%4),r=atob(t.replace(/-/g,"+").replace(/_/g,"/")),i=new Uint8Array(r.length);for(let l=0;l<r.length;l++)i[l]=r.charCodeAt(l);return i}function sF(e){let t="";for(const r of new Uint8Array(e))t+=String.fromCharCode(r);return btoa(t).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}async function mf(){if(!("serviceWorker"in navigator))return null;const e=await navigator.serviceWorker.getRegistration();return e||Promise.race([navigator.serviceWorker.ready,new Promise(t=>setTimeout(()=>t(null),5e3))])}async function lF(e){const t=await mf();if(typeof t?.getNotifications=="function")try{for(const r of await t.getNotifications({tag:e}))r.close()}catch{}}async function vg(){return await(await mf())?.pushManager.getSubscription()??null}function oF(e,t){const r=e.options.applicationServerKey;return!!r&&sF(r)===t}async function kg(e){const t=await mf();if(!t)throw new Error("the app’s service worker isn’t running yet — reload and try again");return t.pushManager.subscribe({userVisibleOnly:!0,applicationServerKey:iF(e)})}function Ag(e){const t=e.toJSON(),r=t.keys??{};if(!t.endpoint||!r.p256dh||!r.auth)throw new Error("the browser returned an incomplete subscription");return{endpoint:t.endpoint,keys:{p256dh:r.p256dh,auth:r.auth}}}async function cF(e){let t=await vg();if(t&&!oF(t,e)&&(await t.unsubscribe().catch(()=>{}),t=Notification.permission==="granted"?await kg(e):null),!t)return null;const r=await De.pushSubscribe(Ag(t),Cg());return{id:r.id??null,devices:r.devices.length}}function J0(){const e=window.getSelection();return!!e&&!e.isCollapsed&&e.toString().length>0}const M0=28;function uF(e,t){const r=window.getSelection();if(!r||r.isCollapsed||!r.rangeCount)return!1;for(const i of r.getRangeAt(0).getClientRects())if(e>=i.left-M0&&e<=i.right+M0&&t>=i.top-M0&&t<=i.bottom+M0)return!0;return!1}function xF(e,t){const r=t.filter(o=>s9(o)&&o.toolUseId);if(!r.length)return[...e,...t];const i=[...e,...t.filter(o=>!s9(o))],l=new Map;i.forEach((o,u)=>{o.tool&&o.toolUseId&&!l.has(o.toolUseId)&&l.set(o.toolUseId,u)});for(const o of r){const u=o.toolUseId?l.get(o.toolUseId):void 0;if(u===void 0){o.error&&i.push(o);continue}const d=i[u];i[u]={...d,output:o.output,diff:o.diff,images:o.images,error:o.error??d.error}}return i}function dF(e,t){if(!t.length)return[...e];const r=new Set(e.map(i=>i.id));return[...e,...t.filter(i=>!r.has(i.id))]}const E9=e=>{let t;const r=new Set,i=(h,m)=>{const p=typeof h=="function"?h(t):h;if(!Object.is(p,t)){const y=t;t=m??(typeof p!="object"||p===null)?p:Object.assign({},t,p),r.forEach(b=>b(t,y))}},l=()=>t,d={setState:i,getState:l,getInitialState:()=>f,subscribe:h=>(r.add(h),()=>r.delete(h))},f=t=e(i,l,d);return d},fF=(e=>e?E9(e):E9),hF=e=>e;function pF(e,t=hF){const r=F0.useSyncExternalStore(e.subscribe,F0.useCallback(()=>t(e.getState()),[e,t]),F0.useCallback(()=>t(e.getInitialState()),[e,t]));return F0.useDebugValue(r),r}const y9=e=>{const t=fF(e),r=i=>pF(t,i);return Object.assign(r,t),r},mF=(e=>e?y9(e):y9),gF=1e4;function EF(e,t=Date.now()){return Math.max(0,(e??t)+gF-t)}function yF({total:e,shown:t,hidden:r,repoFiltered:i}){if(e)return!i&&!r?`${e} active`:[`${t} of ${e}`,r?`${r} hidden`:null].filter(Boolean).join(" · ")}const ws={mode:"all"};function bF(e,t){if(e&&typeof e=="object"&&"mode"in e){if(e.mode==="all")return ws;if(e.mode==="selected"&&"repos"in e&&Array.isArray(e.repos))return{mode:"selected",repos:e.repos.filter(i=>typeof i=="string")}}const r=Array.isArray(t)?t.filter(i=>typeof i=="string"):typeof t=="string"?[t]:[];return r.length?{mode:"selected",repos:r}:ws}function gf(e){return e.mode==="selected"?e.repos:[]}function CF(){return{mode:"selected",repos:[]}}function Ad(e,t){return e.mode==="all"||e.repos.includes(t)}function vF(e,t,r){const i=t.mode==="all"?[...e]:t.repos,l=i.includes(r)?i.filter(o=>o!==r):[...i,r];return e.length>0&&e.every(o=>l.includes(o))?ws:{mode:"selected",repos:l}}let bs=null;const j0=Xw(),Bd=15e3,Bg="conductor-remote-view",Dg="conductor-remote-last-new-workspace-repo",b9={groupBy:"status",repoSelection:ws,sortBy:"updated",showDiffs:!0,showFolders:!0,hideMerged:!1,hideDone:!1,collapsed:[]};function C9(e){const t={};return e.model!==void 0&&(t.model=e.model),e.effort!==void 0&&(t.effort=e.effort),e.plan!==void 0&&(t.plan=e.plan),e.fast!==void 0&&(t.fast=e.fast),t}function kF(){try{const{repo:e,repos:t,repoSelection:r,...i}=JSON.parse(localStorage.getItem(Bg)??"{}"),l=bF(r,t??e);return{...b9,...i,repoSelection:l}}catch{return b9}}function AF(){try{return localStorage.getItem(Dg)??""}catch{return""}}const ve=mF((e,t)=>{const r=l=>{localStorage.setItem(Bg,JSON.stringify(l)),e({view:l})},i=l=>{qw(l),e({pending:l})};return{token:Nw(),online:!0,lastSyncAt:null,update:null,workingHints:{},pending:Hw(),workflowClientAttempts:Iw(),drafts:j0.drafts,draftAttachments:j0.draftAttachments,agentDrafts:j0.agentDrafts,readMarks:j0.readMarks,focusedDraft:null,push:{deviceId:null,devices:0},sidebarOpen:!location.pathname.startsWith("/w/"),lastNewWorkspaceRepo:AF(),view:kF(),setToken:l=>{l?Mw(l):_w(),e({token:l})},setOnline:l=>{if(l){bs&&clearTimeout(bs),bs=null,e({online:l,lastSyncAt:Date.now()});return}if(!t().online||bs)return;const o=EF(t().lastSyncAt);if(o===0){e({online:!1});return}bs=setTimeout(()=>{bs=null,e({online:!1})},o)},setUpdate:l=>e({update:l}),markWorking:l=>e({workingHints:{...t().workingHints,[l]:Date.now()}}),clearWorking:l=>{const{[l]:o,...u}=t().workingHints;e({workingHints:u})},addPending:l=>i([...t().pending.filter(o=>o.id!==l.id),{...l,status:"sending",error:void 0,createdAt:Date.now()}]),failPending:(l,o)=>i(t().pending.map(u=>u.id===l?{...u,status:"error",error:o}:u)),removePending:l=>i(t().pending.filter(o=>o.id!==l)),workflowClientId:(l,o)=>{const u=t().workflowClientAttempts[l];if(u?.fingerprint===o)return u.clientId;const d={...t().workflowClientAttempts,[l]:{key:l,fingerprint:o,clientId:crypto.randomUUID(),createdAt:Date.now()}};return c9(d),e({workflowClientAttempts:d}),d[l].clientId},finishWorkflowAttempt:(l,o)=>{const u=t().workflowClientAttempts[l];if(!u||u.clientId!==o)return;const{[l]:d,...f}=t().workflowClientAttempts;c9(f),e({workflowClientAttempts:f})},setDraft:(l,o)=>{const u=Zw(l,o,t().agentDrafts[l]??{});e({drafts:u.drafts,agentDrafts:u.agentDrafts,draftAttachments:u.draftAttachments})},addDraftAttachment:(l,o)=>{const u=t().draftAttachments[l]??[];if(u.some(f=>f.path===o.path))return;const d=g9(l,[...u,o],t().drafts[l]??"",t().agentDrafts[l]??{});e({drafts:d.drafts,agentDrafts:d.agentDrafts,draftAttachments:d.draftAttachments})},removeDraftAttachment:(l,o)=>{const u=t().draftAttachments[l]??[],d=u.filter(h=>h.path!==o);if(d.length===u.length)return;const f=g9(l,d,t().drafts[l]??"",t().agentDrafts[l]??{});e({drafts:f.drafts,agentDrafts:f.agentDrafts,draftAttachments:f.draftAttachments})},clearDraftContent:l=>{const o=Jw(l,"",t().agentDrafts[l]??{},[]);e({drafts:o.drafts,agentDrafts:o.agentDrafts,draftAttachments:o.draftAttachments})},moveDraft:(l,o)=>{const u=t().drafts,f=u[l]!==void 0||t().agentDrafts[l]!==void 0||t().draftAttachments[l]!==void 0,h=u[o]!==void 0||t().agentDrafts[o]!==void 0||t().draftAttachments[o]!==void 0;if(!f||l===o||h)return;const m=eF(l,o);e({drafts:m.drafts,agentDrafts:m.agentDrafts,draftAttachments:m.draftAttachments})},markRead:(l,o)=>{(t().readMarks[l]??"")>=o||e({readMarks:tF(l,o).readMarks})},stageAgent:(l,o)=>{const u=C9({...t().agentDrafts[l],...o}),d=m9(l,u,t().drafts[l]??"");e({drafts:d.drafts,agentDrafts:d.agentDrafts,draftAttachments:d.draftAttachments})},clearAgentDraft:(l,o)=>{const u=t().agentDrafts[l];if(!u)return;const d=C9({model:u.model===o.model?void 0:u.model,effort:u.effort===o.effort?void 0:u.effort,plan:u.plan===o.plan?void 0:u.plan,fast:u.fast===o.fast?void 0:u.fast}),f=m9(l,d,t().drafts[l]??"");e({drafts:f.drafts,agentDrafts:f.agentDrafts,draftAttachments:f.draftAttachments})},applySyncedPrefs:l=>e({drafts:l.drafts,agentDrafts:l.agentDrafts,draftAttachments:l.draftAttachments,readMarks:l.readMarks}),setFocusedDraft:l=>e({focusedDraft:l}),setPush:l=>e({push:l}),setSidebarOpen:l=>e({sidebarOpen:l}),setLastNewWorkspaceRepo:l=>{try{localStorage.setItem(Dg,l)}catch{}e({lastNewWorkspaceRepo:l})},setView:l=>r({...t().view,...l}),toggleGroup:l=>{const{collapsed:o}=t().view;r({...t().view,collapsed:o.includes(l)?o.filter(u=>u!==l):[...o,l]})}}});function BF(e){const t=ve(l=>l.setSidebarOpen),r=ve(l=>l.sidebarOpen),i=D.useRef(r);i.current=r,D.useEffect(()=>{const l=e.current;l&&(l.style.transition="",l.style.transform="")},[r,e]),D.useEffect(()=>{const u=window.matchMedia("(min-width: 768px)"),d=()=>e.current;let f=!1,h=!1,m=!1,p=!1,y=0,b=0,C=0,k=0;const v=O=>{const z=d();z&&(z.style.transition="none",z.style.transform=`translateX(${O}px)`,k=O)},A=()=>{const O=d();O&&(O.style.transition="",O.style.transform="")},F=O=>{for(let z=O;z;z=z.parentElement)if(z.scrollLeft>0)return!0;return!1},N=()=>{f&&(f=!1,A())},_=O=>{if(N(),u.matches||O.touches.length!==1)return;const z=O.touches[0];if(i.current){const P=d()?.getBoundingClientRect().right??0;if(z.clientX>P)return}else if(z.clientX>44||F(O.target))return;uF(z.clientX,z.clientY)||(f=!0,h=!1,m=!1,p=J0(),y=z.clientX,b=z.clientY,C=d()?.offsetWidth??0)},S=O=>{if(!f||m)return;if(!p&&J0()){m=!0;return}const z=O.touches[0],P=z.clientX-y,T=z.clientY-b;if(!h){if(Math.abs(T)>Math.abs(P)&&Math.abs(T)>8){m=!0;return}if(Math.abs(P)<6)return;h=!0}O.preventDefault();const $=i.current?0:-C;v(Math.max(-C,Math.min(0,$+P)))},w=()=>{if(!f)return;if(f=!1,!h||m)return A();const O=C?(k+C)/C:0;A(),t(O>.4)};return window.addEventListener("touchstart",_,{passive:!0}),window.addEventListener("touchmove",S,{passive:!1}),window.addEventListener("touchend",w),window.addEventListener("touchcancel",w),document.addEventListener("visibilitychange",N),()=>{window.removeEventListener("touchstart",_),window.removeEventListener("touchmove",S),window.removeEventListener("touchend",w),window.removeEventListener("touchcancel",w),document.removeEventListener("visibilitychange",N)}},[e,t])}const v9='input, textarea, [contenteditable]:not([contenteditable="false"])';function DF(){D.useEffect(()=>{const e=window.visualViewport;if(!e)return;const t=document.documentElement;(matchMedia("(display-mode: standalone)").matches||navigator.standalone)&&t.setAttribute("data-standalone","");let r=0,i;const l=()=>{t.style.removeProperty("--app-height"),t.removeAttribute("data-keyboard")},o=m=>{m&&!i?i=setInterval(u,300):!m&&i&&(clearInterval(i),i=void 0)},u=()=>{const m=document.activeElement,p=m instanceof HTMLElement&&m.matches(v9),y=e.scale>1.01;!p||y?(!y&&window.innerHeight-e.height<120&&(r=e.height),l()):(r||window.innerHeight)-e.height>40?(t.style.setProperty("--app-height",`${Math.round(e.height+e.offsetTop)}px`),t.setAttribute("data-keyboard","")):l(),o(p||t.hasAttribute("data-keyboard")),window.scrollY!==0&&window.scrollTo(0,0)};let d;const f=()=>{u(),clearTimeout(d),d=setTimeout(u,350)},h=()=>{if(document.visibilityState==="hidden"){const m=document.activeElement;m instanceof HTMLElement&&m.matches(v9)&&m.blur(),l(),o(!1)}else f()};return u(),e.addEventListener("resize",u),e.addEventListener("scroll",u),window.addEventListener("pageshow",f),document.addEventListener("visibilitychange",h),document.addEventListener("focusin",f),document.addEventListener("focusout",f),()=>{clearTimeout(d),o(!1),e.removeEventListener("resize",u),e.removeEventListener("scroll",u),window.removeEventListener("pageshow",f),document.removeEventListener("visibilitychange",h),document.removeEventListener("focusin",f),document.removeEventListener("focusout",f),l()}},[])}function Ms(){const e=ve(r=>r.setOnline),t=ve(r=>r.setToken);return D.useCallback((r,i)=>{e(r),i instanceof ur&&i.status===401&&t(null)},[e,t])}function Ef(){const e=Ms(),t=ve(i=>i.setUpdate),r=fn({queryKey:["state"],queryFn:()=>De.state(),refetchInterval:2500});return D.useEffect(()=>{r.isSuccess&&(e(!0),t(r.data.update??null)),r.isError&&e(!1,r.error)},[r.isSuccess,r.isError,r.error,r.data,e,t]),r}function wg(e,t){e.setQueryData(["state"],r=>{if(!r)return r;const i=[...(r.workflows??[]).filter(o=>o.id!==t.id),t],l=r.workspaces.map(o=>o.id===t.workspaceId?{...o,workflow:t}:o);return{...r,workflows:i,workspaces:l}})}function Fg(){const e=On();return D.useCallback(async t=>{const r=await De.startWorkflow(t);return wg(e,r.workflow),e.invalidateQueries({queryKey:["state"]}),r},[e])}function wF(){const e=On(),t=ve(l=>l.workflowClientId),r=ve(l=>l.finishWorkflowAttempt),i=D.useCallback(async(l,o)=>{const u=t(l,l),d=await o(u);return r(l,u),wg(e,d.workflow),e.invalidateQueries({queryKey:["state"]}),d.workflow},[e,t,r]);return D.useMemo(()=>({retry:l=>i(`retry:${l.id}:${l.adoption?.actionId??l.updatedAt}`,o=>De.retryWorkflow(l.id,{clientId:o})),adopt:(l,o)=>{const u=l.adoption?.actionId;return u?i(`adopt:${l.id}:${u}:${o.id}`,d=>De.adoptWorkflow(l.id,{clientId:d,actionId:u,...l.adoption?.kind==="workspace"?{workspaceId:o.id}:{sessionId:o.id}})):Promise.reject(new Error("This Workflow has no action to adopt."))},replay:l=>{const o=l.adoption?.actionId;return o?i(`replay:${l.id}:${o}`,u=>De.replayWorkflow(l.id,{clientId:u,actionId:o,confirmDuplicateRisk:!0})):Promise.reject(new Error("This Workflow has no ambiguous action to replay."))},complete:l=>i(`complete:${l.id}`,o=>De.completeWorkflow(l.id,{clientId:o})),cancel:l=>i(`cancel:${l.id}`,o=>De.cancelWorkflow(l.id,{clientId:o}))}),[i])}function k9(e){return JSON.stringify([e.createdAt,e.actionId??"",e.effectId??"",e.reason])}function FF(){const e=On(),t=ve(i=>i.workflowClientId),r=ve(i=>i.finishWorkflowAttempt);return D.useCallback(async i=>{const l="confirm-ui-stable",o=k9(i),u=t(l,o),d=await De.confirmUiStable({clientId:u,confirmStable:!0,createdAt:i.createdAt,...i.actionId?{actionId:i.actionId}:{},...i.effectId?{effectId:i.effectId}:{}});return r(l,u),e.setQueryData(["state"],f=>!f?.uiQuarantine||k9(f.uiQuarantine)!==o?f:{...f,uiQuarantine:void 0}),e.invalidateQueries({queryKey:["state"]}),d},[e,t,r])}function SF(){const e=Ms();D.useEffect(()=>{let i=!0,l=!1,o=!1,u=!1,d=null;const f=k=>{const v=nF(k,ve.getState().focusedDraft);ve.getState().applySyncedPrefs(v.state),v.needsUpload&&m(!1)},h=async(k,v=!1)=>{if(!i)return;if(l){o||=k,u||=v;return}l=!0;const A=p9();try{const F=k?await De.patchPrefs(Ww(),v):await De.prefs();if(!i)return;e(!0),f(F.prefs),p9()!==A&&m(!1)}catch(F){if(!i)return;F instanceof ur&&F.status===404||e(!1,F)}finally{if(l=!1,i&&o){const F=u;o=!1,u=!1,h(!0,F)}}};function m(k,v=!1){d&&clearTimeout(d),d=null,k?h(!0,v):d=setTimeout(()=>{h(!0)},700)}const p=rF(k=>m(k)),y=setInterval(()=>{h(!1)},15e3),b=()=>{document.visibilityState==="hidden"?m(!0,!0):h(!1)},C=()=>m(!0);return document.addEventListener("visibilitychange",b),window.addEventListener("online",C),h(!0),()=>{i=!1,d&&clearTimeout(d),clearInterval(y),p(),document.removeEventListener("visibilitychange",b),window.removeEventListener("online",C)}},[e])}function Sg(){return fn({queryKey:["repos"],queryFn:()=>De.repos(),staleTime:6e4})}function NF(e,t){const[r,i]=D.useState(e);return D.useEffect(()=>{const l=setTimeout(()=>i(e),t);return()=>clearTimeout(l)},[e,t]),r}function _F(e,t=[],r=!0){const i=e.trim();return fn({queryKey:["search",i,t,r],queryFn:()=>De.search(i,t,r),enabled:i.length>=2,staleTime:3e4,placeholderData:Tb})}function MF(e,t){const r=Ms(),i=fn({queryKey:["workspace",e],queryFn:()=>De.workspace(e),enabled:t&&!!e,staleTime:Number.POSITIVE_INFINITY,retry:(l,o)=>!(o instanceof ur&&o.status===404)&&l<1});return D.useEffect(()=>{i.isError&&!(i.error instanceof ur&&i.error.status===404)&&r(!1,i.error)},[i.isError,i.error,r]),i}function Ng(e,t=!0){const r=Ms(),i=fn({queryKey:["sessions",e],queryFn:()=>De.sessions(e),enabled:!!e,refetchInterval:t?2e3:!1});return D.useEffect(()=>{i.isError&&r(!1,i.error)},[i.isError,i.error,r]),i}function jF(e,t,r=!1){return fn({queryKey:["workspaceFiles",e],queryFn:()=>De.workspaceFiles(e),enabled:t&&!!e,staleTime:12e4,refetchInterval:r?5e3:!1,retry:!1})}function TF(e){return fn({queryKey:["dev-server",e],queryFn:()=>De.devServer(e),enabled:!!e,refetchInterval:2500})}function RF(e,t){const r=Ms(),i=fn({queryKey:["diff",e],queryFn:()=>De.diff(e),enabled:t&&!!e,refetchInterval:5e3});return D.useEffect(()=>{i.isError&&r(!1,i.error)},[i.isError,i.error,r]),i}function OF(e,t,r){return fn({queryKey:["fileDiff",e,t],queryFn:()=>De.fileDiff(e,t),enabled:r&&!!e&&!!t,refetchInterval:5e3,retry:!1})}function zF(e,t){return fn({queryKey:["filePreview",e],queryFn:()=>De.filePreview(e),enabled:t&&!!e,refetchInterval:5e3,retry:!1})}function LF(e){return fn({queryKey:["repoIcon",e],queryFn:()=>De.repoIcon(e),enabled:!!e,staleTime:Number.POSITIVE_INFINITY,gcTime:Number.POSITIVE_INFINITY,retry:!1})}function PF(e,t){return fn({queryKey:["logs",e],queryFn:()=>De.logs(e),enabled:t,refetchInterval:3e3,retry:!1})}function xc(){return fn({queryKey:["model-catalog"],queryFn:De.modelCatalog,staleTime:6e4,gcTime:Number.POSITIVE_INFINITY,retry:!1})}function _g(){return fn({queryKey:["model-defaults"],queryFn:De.modelDefaults,staleTime:0,gcTime:Number.POSITIVE_INFINITY,retry:!1})}function IF(e){return fn({queryKey:["plan-usage"],queryFn:()=>De.planUsage(),enabled:e,staleTime:6e4,gcTime:Number.POSITIVE_INFINITY,retry:!1})}function Mg(e,t=!0,r){return fn({queryKey:["context-breakdown",e,r??null],queryFn:()=>De.contextBreakdown(e),enabled:t&&!!e,staleTime:0,retry:!1})}function jg(e=!0){return fn({queryKey:["roles"],queryFn:De.roles,enabled:e,staleTime:3e4,retry:!1})}const _x=["planning","exploration","implementation"];function Tg(e=!0){const t=jg(e),r=t.data?_x.find(o=>!t.data.roles[o]):void 0,i=t.data?.issues.find(o=>_x.some(u=>u===o.role)),l=t.isError?"Could not load delegated roles.":t.data?.warning??(r?`Workflow needs a configured ${r} role.`:i?.error.message);return{roles:t,planningRole:t.data?.roles.planning,problem:l,ready:_x.every(o=>!!t.data?.roles[o])&&!l}}function UF(e,t,r){const i=e?.agent_type??"claude",l=On();return fn({queryKey:["models",i],queryFn:async()=>{const o=await De.models(e.id,t);if(!o.ok||!o.models?.length)throw new Error(o.error??"could not read the model list");return await l.invalidateQueries({queryKey:["model-catalog"]}),o},enabled:r&&!!e,staleTime:0,gcTime:Number.POSITIVE_INFINITY,retry:!1})}const $F=(e,t)=>e.length===t.length&&e.every((r,i)=>r.id===t[i].id&&r.text===t[i].text);function HF(e,t=!0){const r=Ms(),[i,l]=D.useState({entries:[],queued:[],loading:!0,error:null}),o=D.useRef(0),u=ve(h=>h.push.deviceId),d=D.useRef(u);return d.current=u,D.useEffect(()=>{if(!e){l({entries:[],queued:[],loading:!1,error:null});return}o.current=0,l({entries:[],queued:[],loading:!0,error:null});let h=!0,m=!1;const p=async()=>{if(!m){m=!0;try{const b=document.visibilityState==="visible"?d.current:null,{entries:C,queued:k=[],cursor:v}=await De.messages(e,o.current,b);if(!h)return;r(!0),o.current=v,l(A=>{const F=C.length?xF(A.entries,C):A.entries,N=$F(A.queued,k);return F===A.entries&&N&&!A.loading&&!A.error?A:{entries:F,queued:N?A.queued:k,loading:!1,error:null}})}catch(b){if(!h)return;r(!1,b),l(C=>({...C,loading:!1,error:b instanceof Error?b.message:String(b)}))}finally{m=!1}}};p();const y=t?setInterval(p,1e3):void 0;return()=>{h=!1,y&&clearInterval(y)}},[e,t,r]),{entries:D.useMemo(()=>dF(i.entries,i.queued),[i.entries,i.queued]),loading:i.loading,error:i.error}}function Rg(){const e=On(),t=Fg(),r=ve(m=>m.addPending),i=ve(m=>m.failPending),l=ve(m=>m.removePending),o=ve(m=>m.markWorking),u=ve(m=>m.clearAgentDraft),d=ve(m=>m.clearDraftContent),f=ve(m=>m.workflowClientId),h=ve(m=>m.finishWorkflowAttempt);return D.useCallback(async m=>{const p=m.text.trim();if(!p)return!1;const{sessionId:y,workspaceId:b}=m,C={kind:"existing_session",workspaceId:b,sessionId:y},k=`workflow:existing:${b}:${y}`,v=m.id??(m.workflow?f(k,hg(p,C)):crypto.randomUUID());r({id:v,sessionId:y,workspaceId:b,text:p,queue:m.queue,workflow:m.workflow});try{const A=ve.getState().agentDrafts[y],F=!m.workflow&&A&&Object.keys(A).length?A:void 0;if(m.workflow){if(await t({clientId:v,objective:p,target:C}),d(y),h(k,v),A){const _=Object.fromEntries(Object.entries(A).filter(([S])=>S!=="plan"));Object.keys(_).length&&u(y,_)}return l(v),e.invalidateQueries({queryKey:["sessions",b]}),!0}const N=await De.sendPrompt(y,p,b,F,v,m.queue);if(N.ok||N.parked){const _=F;return _&&(u(y,_),e.invalidateQueries({queryKey:["sessions",b]})),N.ok&&o(y),e.invalidateQueries({queryKey:["state"]}),setTimeout(()=>l(v),4e3),!0}i(v,N.error||"Send failed")}catch(A){i(v,A instanceof Error?A.message:String(A))}return!1},[r,i,l,o,u,d,e,t,f,h])}function Og(e){return fn({queryKey:["push"],queryFn:()=>De.push(),enabled:e,staleTime:3e4})}function qF(){const[e]=D.useState(bg),t=ve(l=>l.setPush),{data:r}=Og(e==="ok"),i=r?.publicKey;D.useEffect(()=>{if(e!=="ok"||!i)return;let l=!0;return cF(i).then(o=>{l&&t({deviceId:o?.id??null,devices:o?.devices??0})}).catch(()=>{}),()=>{l=!1}},[e,i,t])}function GF(){const[e]=D.useState(bg),[t,r]=D.useState(()=>"Notification"in window?Notification.permission:"unsupported"),[i,l]=D.useState(!1),[o,u]=D.useState(null),{deviceId:d,devices:f}=ve(k=>k.push),h=ve(k=>k.setPush),m=Og(e==="ok"),p=m.data?.publicKey,y=D.useCallback(async()=>{l(!0),u(null);try{const k=await Notification.requestPermission();if(r(k),k!=="granted"){u(k==="denied"?"Notifications are blocked for this app — allow them in your device settings, then try again.":"Notification permission wasn’t granted.");return}const v=p??(await De.push()).publicKey,A=await kg(v),F=await De.pushSubscribe(Ag(A),Cg());h({deviceId:F.id??null,devices:F.devices.length})}catch(k){u(k instanceof Error?k.message:String(k))}finally{l(!1)}},[p,h]),b=D.useCallback(async()=>{l(!0),u(null);try{const k=await vg();let v=0;k&&(v=(await De.pushUnsubscribe(k.endpoint).catch(()=>null))?.devices.length??0,await k.unsubscribe()),h({deviceId:null,devices:v})}catch(k){u(k instanceof Error?k.message:String(k))}finally{l(!1)}},[h]),C=D.useCallback(async()=>{if(d){l(!0),u(null);try{const k=await De.pushTest(d);k.ok||u(k.error??"The push service rejected it.")}catch(k){u(k instanceof Error?k.message:String(k))}finally{l(!1)}}},[d]);return{support:e,permission:t,enabled:!!d,relayDisabled:m.data?.enabled===!1,busy:i,error:o,devices:f,enable:y,disable:b,test:C}}const VF="push-route",A9="/__push-route",QF=12e4;async function B9(){if(!("caches"in window))return null;try{const e=await caches.open(VF),t=await e.match(A9);if(!t)return null;await e.delete(A9);const{url:r,ts:i}=await t.json();return typeof r!="string"||!r.startsWith("/")||typeof i!="number"||Date.now()-i>QF?null:r}catch{return null}}function KF(){const e=Ri();D.useEffect(()=>{let t=!0;const r=()=>{B9().then(o=>{t&&o&&e(o)})},i=o=>{const u=o.data;u?.type==="push-navigate"&&typeof u.url=="string"&&u.url.startsWith("/")&&(B9(),e(u.url))},l=()=>{document.visibilityState==="visible"&&r()};return"serviceWorker"in navigator&&navigator.serviceWorker.addEventListener("message",i),document.addEventListener("visibilitychange",l),r(),()=>{t=!1,"serviceWorker"in navigator&&navigator.serviceWorker.removeEventListener("message",i),document.removeEventListener("visibilitychange",l)}},[e])}function YF(e,t){D.useEffect(()=>{if(!e)return;const r=()=>{document.visibilityState==="visible"&&lF(e)};return r(),document.addEventListener("visibilitychange",r),()=>document.removeEventListener("visibilitychange",r)},[e,t])}function zg(e){var t,r,i="";if(typeof e=="string"||typeof e=="number")i+=e;else if(typeof e=="object")if(Array.isArray(e)){var l=e.length;for(t=0;t<l;t++)e[t]&&(r=zg(e[t]))&&(i&&(i+=" "),i+=r)}else for(r in e)e[r]&&(i&&(i+=" "),i+=r);return i}function XF(){for(var e,t,r=0,i="",l=arguments.length;r<l;r++)(e=arguments[r])&&(t=zg(e))&&(i&&(i+=" "),i+=t);return i}const WF=(e,t)=>{const r=new Array(e.length+t.length);for(let i=0;i<e.length;i++)r[i]=e[i];for(let i=0;i<t.length;i++)r[e.length+i]=t[i];return r},ZF=(e,t)=>({classGroupId:e,validator:t}),Lg=(e=new Map,t=null,r)=>({nextPart:e,validators:t,classGroupId:r}),ec="-",D9=[],JF="arbitrary..",eS=e=>{const t=nS(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:i}=e;return{getClassGroupId:u=>{if(u.startsWith("[")&&u.endsWith("]"))return tS(u);const d=u.split(ec),f=d[0]===""&&d.length>1?1:0;return Pg(d,f,t)},getConflictingClassGroupIds:(u,d)=>{if(d){const f=i[u],h=r[u];return f?h?WF(h,f):f:h||D9}return r[u]||D9}}},Pg=(e,t,r)=>{if(e.length-t===0)return r.classGroupId;const l=e[t],o=r.nextPart.get(l);if(o){const h=Pg(e,t+1,o);if(h)return h}const u=r.validators;if(u===null)return;const d=t===0?e.join(ec):e.slice(t).join(ec),f=u.length;for(let h=0;h<f;h++){const m=u[h];if(m.validator(d))return m.classGroupId}},tS=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),r=t.indexOf(":"),i=t.slice(0,r);return i?JF+i:void 0})(),nS=e=>{const{theme:t,classGroups:r}=e;return rS(r,t)},rS=(e,t)=>{const r=Lg();for(const i in e){const l=e[i];yf(l,r,i,t)}return r},yf=(e,t,r,i)=>{const l=e.length;for(let o=0;o<l;o++){const u=e[o];aS(u,t,r,i)}},aS=(e,t,r,i)=>{if(typeof e=="string"){iS(e,t,r);return}if(typeof e=="function"){sS(e,t,r,i);return}lS(e,t,r,i)},iS=(e,t,r)=>{const i=e===""?t:Ig(t,e);i.classGroupId=r},sS=(e,t,r,i)=>{if(oS(e)){yf(e(i),t,r,i);return}t.validators===null&&(t.validators=[]),t.validators.push(ZF(r,e))},lS=(e,t,r,i)=>{const l=Object.entries(e),o=l.length;for(let u=0;u<o;u++){const[d,f]=l[u];yf(f,Ig(t,d),r,i)}},Ig=(e,t)=>{let r=e;const i=t.split(ec),l=i.length;for(let o=0;o<l;o++){const u=i[o];let d=r.nextPart.get(u);d||(d=Lg(),r.nextPart.set(u,d)),r=d}return r},oS=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,cS=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=Object.create(null),i=Object.create(null);const l=(o,u)=>{r[o]=u,t++,t>e&&(t=0,i=r,r=Object.create(null))};return{get(o){let u=r[o];if(u!==void 0)return u;if((u=i[o])!==void 0)return l(o,u),u},set(o,u){o in r?r[o]=u:l(o,u)}}},Dd="!",w9=":",uS=[],F9=(e,t,r,i,l)=>({modifiers:e,hasImportantModifier:t,baseClassName:r,maybePostfixModifierPosition:i,isExternal:l}),xS=e=>{const{prefix:t,experimentalParseClassName:r}=e;let i=l=>{const o=[];let u=0,d=0,f=0,h;const m=l.length;for(let k=0;k<m;k++){const v=l[k];if(u===0&&d===0){if(v===w9){o.push(l.slice(f,k)),f=k+1;continue}if(v==="/"){h=k;continue}}v==="["?u++:v==="]"?u--:v==="("?d++:v===")"&&d--}const p=o.length===0?l:l.slice(f);let y=p,b=!1;p.endsWith(Dd)?(y=p.slice(0,-1),b=!0):p.startsWith(Dd)&&(y=p.slice(1),b=!0);const C=h&&h>f?h-f:void 0;return F9(o,b,y,C)};if(t){const l=t+w9,o=i;i=u=>u.startsWith(l)?o(u.slice(l.length)):F9(uS,!1,u,void 0,!0)}if(r){const l=i;i=o=>r({className:o,parseClassName:l})}return i},dS=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((r,i)=>{t.set(r,1e6+i)}),r=>{const i=[];let l=[];for(let o=0;o<r.length;o++){const u=r[o],d=u[0]==="[",f=t.has(u);d||f?(l.length>0&&(l.sort(),i.push(...l),l=[]),i.push(u)):l.push(u)}return l.length>0&&(l.sort(),i.push(...l)),i}},fS=e=>({cache:cS(e.cacheSize),parseClassName:xS(e),sortModifiers:dS(e),postfixLookupClassGroupIds:hS(e),...eS(e)}),hS=e=>{const t=Object.create(null),r=e.postfixLookupClassGroups;if(r)for(let i=0;i<r.length;i++)t[r[i]]=!0;return t},pS=/\s+/,mS=(e,t)=>{const{parseClassName:r,getClassGroupId:i,getConflictingClassGroupIds:l,sortModifiers:o,postfixLookupClassGroupIds:u}=t,d=[],f=e.trim().split(pS);let h="";for(let m=f.length-1;m>=0;m-=1){const p=f[m],{isExternal:y,modifiers:b,hasImportantModifier:C,baseClassName:k,maybePostfixModifierPosition:v}=r(p);if(y){h=p+(h.length>0?" "+h:h);continue}let A=!!v,F;if(A){const O=k.substring(0,v);F=i(O);const z=F&&u[F]?i(k):void 0;z&&z!==F&&(F=z,A=!1)}else F=i(k);if(!F){if(!A){h=p+(h.length>0?" "+h:h);continue}if(F=i(k),!F){h=p+(h.length>0?" "+h:h);continue}A=!1}const N=b.length===0?"":b.length===1?b[0]:o(b).join(":"),_=C?N+Dd:N,S=_+F;if(d.indexOf(S)>-1)continue;d.push(S);const w=l(F,A);for(let O=0;O<w.length;++O){const z=w[O];d.push(_+z)}h=p+(h.length>0?" "+h:h)}return h},gS=(...e)=>{let t=0,r,i,l="";for(;t<e.length;)(r=e[t++])&&(i=Ug(r))&&(l&&(l+=" "),l+=i);return l},Ug=e=>{if(typeof e=="string")return e;let t,r="";for(let i=0;i<e.length;i++)e[i]&&(t=Ug(e[i]))&&(r&&(r+=" "),r+=t);return r},ES=(e,...t)=>{let r,i,l,o;const u=f=>{const h=t.reduce((m,p)=>p(m),e());return r=fS(h),i=r.cache.get,l=r.cache.set,o=d,d(f)},d=f=>{const h=i(f);if(h)return h;const m=mS(f,r);return l(f,m),m};return o=u,(...f)=>o(gS(...f))},yS=[],gn=e=>{const t=r=>r[e]||yS;return t.isThemeGetter=!0,t},$g=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Hg=/^\((?:(\w[\w-]*):)?(.+)\)$/i,bS=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,CS=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,vS=/\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)|color-mix)\(.+\)$/,AS=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,BS=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Za=e=>bS.test(e),lt=e=>!!e&&!Number.isNaN(Number(e)),qr=e=>!!e&&Number.isInteger(Number(e)),Mx=e=>e.endsWith("%")&<(e.slice(0,-1)),Ea=e=>CS.test(e),qg=()=>!0,DS=e=>vS.test(e)&&!kS.test(e),bf=()=>!1,wS=e=>AS.test(e),FS=e=>BS.test(e),SS=e=>!Me(e)&&!je(e),NS=e=>e.startsWith("@container")&&(e[10]==="/"&&e[11]!==void 0||e[11]==="s"&&e[16]!==void 0&&e.startsWith("-size/",10)||e[11]==="n"&&e[18]!==void 0&&e.startsWith("-normal/",10)),_S=e=>ri(e,Qg,bf),Me=e=>$g.test(e),Bi=e=>ri(e,Kg,DS),S9=e=>ri(e,PS,lt),MS=e=>ri(e,Xg,qg),jS=e=>ri(e,Yg,bf),N9=e=>ri(e,Gg,bf),TS=e=>ri(e,Vg,FS),T0=e=>ri(e,Wg,wS),je=e=>Hg.test(e),_l=e=>zi(e,Kg),RS=e=>zi(e,Yg),_9=e=>zi(e,Gg),OS=e=>zi(e,Qg),zS=e=>zi(e,Vg),R0=e=>zi(e,Wg,!0),LS=e=>zi(e,Xg,!0),ri=(e,t,r)=>{const i=$g.exec(e);return i?i[1]?t(i[1]):r(i[2]):!1},zi=(e,t,r=!1)=>{const i=Hg.exec(e);return i?i[1]?t(i[1]):r:!1},Gg=e=>e==="position"||e==="percentage",Vg=e=>e==="image"||e==="url",Qg=e=>e==="length"||e==="size"||e==="bg-size",Kg=e=>e==="length",PS=e=>e==="number",Yg=e=>e==="family-name",Xg=e=>e==="number"||e==="weight",Wg=e=>e==="shadow",IS=()=>{const e=gn("color"),t=gn("font"),r=gn("text"),i=gn("font-weight"),l=gn("tracking"),o=gn("leading"),u=gn("breakpoint"),d=gn("container"),f=gn("spacing"),h=gn("radius"),m=gn("shadow"),p=gn("inset-shadow"),y=gn("text-shadow"),b=gn("drop-shadow"),C=gn("blur"),k=gn("perspective"),v=gn("aspect"),A=gn("ease"),F=gn("animate"),N=()=>["auto","avoid","all","avoid-page","page","left","right","column"],_=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],S=()=>[..._(),je,Me],w=()=>["auto","hidden","clip","visible","scroll"],O=()=>["auto","contain","none"],z=()=>[je,Me,f],P=()=>[Za,"full","auto",...z()],T=()=>[qr,"none","subgrid",je,Me],$=()=>["auto",{span:["full",qr,je,Me]},qr,je,Me],G=()=>[qr,"auto",je,Me],ae=()=>["auto","min","max","fr",je,Me],ee=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],K=()=>["start","end","center","stretch","center-safe","end-safe"],I=()=>["auto",...z()],Y=()=>[Za,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...z()],ie=()=>[Za,"screen","full","dvw","lvw","svw","min","max","fit",...z()],xe=()=>[Za,"screen","full","lh","dvh","lvh","svh","min","max","fit",...z()],j=()=>[e,je,Me],L=()=>[..._(),_9,N9,{position:[je,Me]}],V=()=>["no-repeat",{repeat:["","x","y","space","round"]}],R=()=>["auto","cover","contain",OS,_S,{size:[je,Me]}],se=()=>[Mx,_l,Bi],be=()=>["","none","full",h,je,Me],W=()=>["",lt,_l,Bi],me=()=>["solid","dashed","dotted","double"],Ue=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Be=()=>[lt,Mx,_9,N9],tt=()=>["","none",C,je,Me],ct=()=>["none",lt,je,Me],we=()=>["none",lt,je,Me],Nt=()=>[lt,je,Me],Fe=()=>[Za,"full",...z()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Ea],breakpoint:[Ea],color:[qg],container:[Ea],"drop-shadow":[Ea],ease:["in","out","in-out"],font:[SS],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Ea],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Ea],shadow:[Ea],spacing:["px",lt],text:[Ea],"text-shadow":[Ea],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Za,Me,je,v]}],container:["container"],"container-type":[{"@container":["","normal","size",je,Me]}],"container-named":[NS],columns:[{columns:[lt,Me,je,d]}],"break-after":[{"break-after":N()}],"break-before":[{"break-before":N()}],"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:S()}],overflow:[{overflow:w()}],"overflow-x":[{"overflow-x":w()}],"overflow-y":[{"overflow-y":w()}],overscroll:[{overscroll:O()}],"overscroll-x":[{"overscroll-x":O()}],"overscroll-y":[{"overscroll-y":O()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:P()}],"inset-x":[{"inset-x":P()}],"inset-y":[{"inset-y":P()}],start:[{"inset-s":P(),start:P()}],end:[{"inset-e":P(),end:P()}],"inset-bs":[{"inset-bs":P()}],"inset-be":[{"inset-be":P()}],top:[{top:P()}],right:[{right:P()}],bottom:[{bottom:P()}],left:[{left:P()}],visibility:["visible","invisible","collapse"],z:[{z:[qr,"auto",je,Me]}],basis:[{basis:[Za,"full","auto",d,...z()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[lt,Za,"auto","initial","none",Me]}],grow:[{grow:["",lt,je,Me]}],shrink:[{shrink:["",lt,je,Me]}],order:[{order:[qr,"first","last","none",je,Me]}],"grid-cols":[{"grid-cols":T()}],"col-start-end":[{col:$()}],"col-start":[{"col-start":G()}],"col-end":[{"col-end":G()}],"grid-rows":[{"grid-rows":T()}],"row-start-end":[{row:$()}],"row-start":[{"row-start":G()}],"row-end":[{"row-end":G()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":ae()}],"auto-rows":[{"auto-rows":ae()}],gap:[{gap:z()}],"gap-x":[{"gap-x":z()}],"gap-y":[{"gap-y":z()}],"justify-content":[{justify:[...ee(),"normal"]}],"justify-items":[{"justify-items":[...K(),"normal"]}],"justify-self":[{"justify-self":["auto",...K()]}],"align-content":[{content:["normal",...ee()]}],"align-items":[{items:[...K(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...K(),{baseline:["","last"]}]}],"place-content":[{"place-content":ee()}],"place-items":[{"place-items":[...K(),"baseline"]}],"place-self":[{"place-self":["auto",...K()]}],p:[{p:z()}],px:[{px:z()}],py:[{py:z()}],ps:[{ps:z()}],pe:[{pe:z()}],pbs:[{pbs:z()}],pbe:[{pbe:z()}],pt:[{pt:z()}],pr:[{pr:z()}],pb:[{pb:z()}],pl:[{pl:z()}],m:[{m:I()}],mx:[{mx:I()}],my:[{my:I()}],ms:[{ms:I()}],me:[{me:I()}],mbs:[{mbs:I()}],mbe:[{mbe:I()}],mt:[{mt:I()}],mr:[{mr:I()}],mb:[{mb:I()}],ml:[{ml:I()}],"space-x":[{"space-x":z()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":z()}],"space-y-reverse":["space-y-reverse"],size:[{size:Y()}],"inline-size":[{inline:["auto",...ie()]}],"min-inline-size":[{"min-inline":["auto",...ie()]}],"max-inline-size":[{"max-inline":["none",...ie()]}],"block-size":[{block:["auto",...xe()]}],"min-block-size":[{"min-block":["auto",...xe()]}],"max-block-size":[{"max-block":["none",...xe()]}],w:[{w:[d,"screen",...Y()]}],"min-w":[{"min-w":[d,"screen","none",...Y()]}],"max-w":[{"max-w":[d,"screen","none","prose",{screen:[u]},...Y()]}],h:[{h:["screen","lh",...Y()]}],"min-h":[{"min-h":["screen","lh","none",...Y()]}],"max-h":[{"max-h":["screen","lh",...Y()]}],"font-size":[{text:["base",r,_l,Bi]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[i,LS,MS]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Mx,Me]}],"font-family":[{font:[RS,jS,t]}],"font-features":[{"font-features":[Me]}],"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:[l,je,Me]}],"line-clamp":[{"line-clamp":[lt,"none",je,S9]}],leading:[{leading:[o,...z()]}],"list-image":[{"list-image":["none",je,Me]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",je,Me]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:j()}],"text-color":[{text:j()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...me(),"wavy"]}],"text-decoration-thickness":[{decoration:[lt,"from-font","auto",je,Bi]}],"text-decoration-color":[{decoration:j()}],"underline-offset":[{"underline-offset":[lt,"auto",je,Me]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:z()}],"tab-size":[{tab:[qr,je,Me]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",je,Me]}],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",je,Me]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:L()}],"bg-repeat":[{bg:V()}],"bg-size":[{bg:R()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},qr,je,Me],radial:["",je,Me],conic:[qr,je,Me]},zS,TS]}],"bg-color":[{bg:j()}],"gradient-from-pos":[{from:se()}],"gradient-via-pos":[{via:se()}],"gradient-to-pos":[{to:se()}],"gradient-from":[{from:j()}],"gradient-via":[{via:j()}],"gradient-to":[{to:j()}],rounded:[{rounded:be()}],"rounded-s":[{"rounded-s":be()}],"rounded-e":[{"rounded-e":be()}],"rounded-t":[{"rounded-t":be()}],"rounded-r":[{"rounded-r":be()}],"rounded-b":[{"rounded-b":be()}],"rounded-l":[{"rounded-l":be()}],"rounded-ss":[{"rounded-ss":be()}],"rounded-se":[{"rounded-se":be()}],"rounded-ee":[{"rounded-ee":be()}],"rounded-es":[{"rounded-es":be()}],"rounded-tl":[{"rounded-tl":be()}],"rounded-tr":[{"rounded-tr":be()}],"rounded-br":[{"rounded-br":be()}],"rounded-bl":[{"rounded-bl":be()}],"border-w":[{border:W()}],"border-w-x":[{"border-x":W()}],"border-w-y":[{"border-y":W()}],"border-w-s":[{"border-s":W()}],"border-w-e":[{"border-e":W()}],"border-w-bs":[{"border-bs":W()}],"border-w-be":[{"border-be":W()}],"border-w-t":[{"border-t":W()}],"border-w-r":[{"border-r":W()}],"border-w-b":[{"border-b":W()}],"border-w-l":[{"border-l":W()}],"divide-x":[{"divide-x":W()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":W()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...me(),"hidden","none"]}],"divide-style":[{divide:[...me(),"hidden","none"]}],"border-color":[{border:j()}],"border-color-x":[{"border-x":j()}],"border-color-y":[{"border-y":j()}],"border-color-s":[{"border-s":j()}],"border-color-e":[{"border-e":j()}],"border-color-bs":[{"border-bs":j()}],"border-color-be":[{"border-be":j()}],"border-color-t":[{"border-t":j()}],"border-color-r":[{"border-r":j()}],"border-color-b":[{"border-b":j()}],"border-color-l":[{"border-l":j()}],"divide-color":[{divide:j()}],"outline-style":[{outline:[...me(),"none","hidden"]}],"outline-offset":[{"outline-offset":[lt,je,Me]}],"outline-w":[{outline:["",lt,_l,Bi]}],"outline-color":[{outline:j()}],shadow:[{shadow:["","none",m,R0,T0]}],"shadow-color":[{shadow:j()}],"inset-shadow":[{"inset-shadow":["none",p,R0,T0]}],"inset-shadow-color":[{"inset-shadow":j()}],"ring-w":[{ring:W()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:j()}],"ring-offset-w":[{"ring-offset":[lt,Bi]}],"ring-offset-color":[{"ring-offset":j()}],"inset-ring-w":[{"inset-ring":W()}],"inset-ring-color":[{"inset-ring":j()}],"text-shadow":[{"text-shadow":["none",y,R0,T0]}],"text-shadow-color":[{"text-shadow":j()}],opacity:[{opacity:[lt,je,Me]}],"mix-blend":[{"mix-blend":[...Ue(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Ue()}],"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":[lt]}],"mask-image-linear-from-pos":[{"mask-linear-from":Be()}],"mask-image-linear-to-pos":[{"mask-linear-to":Be()}],"mask-image-linear-from-color":[{"mask-linear-from":j()}],"mask-image-linear-to-color":[{"mask-linear-to":j()}],"mask-image-t-from-pos":[{"mask-t-from":Be()}],"mask-image-t-to-pos":[{"mask-t-to":Be()}],"mask-image-t-from-color":[{"mask-t-from":j()}],"mask-image-t-to-color":[{"mask-t-to":j()}],"mask-image-r-from-pos":[{"mask-r-from":Be()}],"mask-image-r-to-pos":[{"mask-r-to":Be()}],"mask-image-r-from-color":[{"mask-r-from":j()}],"mask-image-r-to-color":[{"mask-r-to":j()}],"mask-image-b-from-pos":[{"mask-b-from":Be()}],"mask-image-b-to-pos":[{"mask-b-to":Be()}],"mask-image-b-from-color":[{"mask-b-from":j()}],"mask-image-b-to-color":[{"mask-b-to":j()}],"mask-image-l-from-pos":[{"mask-l-from":Be()}],"mask-image-l-to-pos":[{"mask-l-to":Be()}],"mask-image-l-from-color":[{"mask-l-from":j()}],"mask-image-l-to-color":[{"mask-l-to":j()}],"mask-image-x-from-pos":[{"mask-x-from":Be()}],"mask-image-x-to-pos":[{"mask-x-to":Be()}],"mask-image-x-from-color":[{"mask-x-from":j()}],"mask-image-x-to-color":[{"mask-x-to":j()}],"mask-image-y-from-pos":[{"mask-y-from":Be()}],"mask-image-y-to-pos":[{"mask-y-to":Be()}],"mask-image-y-from-color":[{"mask-y-from":j()}],"mask-image-y-to-color":[{"mask-y-to":j()}],"mask-image-radial":[{"mask-radial":[je,Me]}],"mask-image-radial-from-pos":[{"mask-radial-from":Be()}],"mask-image-radial-to-pos":[{"mask-radial-to":Be()}],"mask-image-radial-from-color":[{"mask-radial-from":j()}],"mask-image-radial-to-color":[{"mask-radial-to":j()}],"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":_()}],"mask-image-conic-pos":[{"mask-conic":[lt]}],"mask-image-conic-from-pos":[{"mask-conic-from":Be()}],"mask-image-conic-to-pos":[{"mask-conic-to":Be()}],"mask-image-conic-from-color":[{"mask-conic-from":j()}],"mask-image-conic-to-color":[{"mask-conic-to":j()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:L()}],"mask-repeat":[{mask:V()}],"mask-size":[{mask:R()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",je,Me]}],filter:[{filter:["","none",je,Me]}],blur:[{blur:tt()}],brightness:[{brightness:[lt,je,Me]}],contrast:[{contrast:[lt,je,Me]}],"drop-shadow":[{"drop-shadow":["","none",b,R0,T0]}],"drop-shadow-color":[{"drop-shadow":j()}],grayscale:[{grayscale:["",lt,je,Me]}],"hue-rotate":[{"hue-rotate":[lt,je,Me]}],invert:[{invert:["",lt,je,Me]}],saturate:[{saturate:[lt,je,Me]}],sepia:[{sepia:["",lt,je,Me]}],"backdrop-filter":[{"backdrop-filter":["","none",je,Me]}],"backdrop-blur":[{"backdrop-blur":tt()}],"backdrop-brightness":[{"backdrop-brightness":[lt,je,Me]}],"backdrop-contrast":[{"backdrop-contrast":[lt,je,Me]}],"backdrop-grayscale":[{"backdrop-grayscale":["",lt,je,Me]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[lt,je,Me]}],"backdrop-invert":[{"backdrop-invert":["",lt,je,Me]}],"backdrop-opacity":[{"backdrop-opacity":[lt,je,Me]}],"backdrop-saturate":[{"backdrop-saturate":[lt,je,Me]}],"backdrop-sepia":[{"backdrop-sepia":["",lt,je,Me]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":z()}],"border-spacing-x":[{"border-spacing-x":z()}],"border-spacing-y":[{"border-spacing-y":z()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",je,Me]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[lt,"initial",je,Me]}],ease:[{ease:["linear","initial",A,je,Me]}],delay:[{delay:[lt,je,Me]}],animate:[{animate:["none",F,je,Me]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[k,je,Me]}],"perspective-origin":[{"perspective-origin":S()}],rotate:[{rotate:ct()}],"rotate-x":[{"rotate-x":ct()}],"rotate-y":[{"rotate-y":ct()}],"rotate-z":[{"rotate-z":ct()}],scale:[{scale:we()}],"scale-x":[{"scale-x":we()}],"scale-y":[{"scale-y":we()}],"scale-z":[{"scale-z":we()}],"scale-3d":["scale-3d"],skew:[{skew:Nt()}],"skew-x":[{"skew-x":Nt()}],"skew-y":[{"skew-y":Nt()}],transform:[{transform:[je,Me,"","none","gpu","cpu"]}],"transform-origin":[{origin:S()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Fe()}],"translate-x":[{"translate-x":Fe()}],"translate-y":[{"translate-y":Fe()}],"translate-z":[{"translate-z":Fe()}],"translate-none":["translate-none"],zoom:[{zoom:[qr,je,Me]}],accent:[{accent:j()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:j()}],"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",je,Me]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":j()}],"scrollbar-track-color":[{"scrollbar-track":j()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":z()}],"scroll-mx":[{"scroll-mx":z()}],"scroll-my":[{"scroll-my":z()}],"scroll-ms":[{"scroll-ms":z()}],"scroll-me":[{"scroll-me":z()}],"scroll-mbs":[{"scroll-mbs":z()}],"scroll-mbe":[{"scroll-mbe":z()}],"scroll-mt":[{"scroll-mt":z()}],"scroll-mr":[{"scroll-mr":z()}],"scroll-mb":[{"scroll-mb":z()}],"scroll-ml":[{"scroll-ml":z()}],"scroll-p":[{"scroll-p":z()}],"scroll-px":[{"scroll-px":z()}],"scroll-py":[{"scroll-py":z()}],"scroll-ps":[{"scroll-ps":z()}],"scroll-pe":[{"scroll-pe":z()}],"scroll-pbs":[{"scroll-pbs":z()}],"scroll-pbe":[{"scroll-pbe":z()}],"scroll-pt":[{"scroll-pt":z()}],"scroll-pr":[{"scroll-pr":z()}],"scroll-pb":[{"scroll-pb":z()}],"scroll-pl":[{"scroll-pl":z()}],"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",je,Me]}],fill:[{fill:["none",...j()]}],"stroke-w":[{stroke:[lt,_l,Bi,S9]}],stroke:[{stroke:["none",...j()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","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","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","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-bs","border-w-be","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-bs","border-color-be","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-mbs","scroll-mbe","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-pbs","scroll-pbe","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"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},US=ES(IS);function he(...e){return US(XF(e))}const $S="data:image/svg+xml,%3csvg%20fill='currentColor'%20fill-rule='evenodd'%20height='1em'%20style='flex:none;line-height:1'%20viewBox='0%200%2024%2024'%20width='1em'%20xmlns='http://www.w3.org/2000/svg'%3e%3ctitle%3eClaude%3c/title%3e%3cpath%20d='M4.709%2015.955l4.72-2.647.08-.23-.08-.128H9.2l-.79-.048-2.698-.073-2.339-.097-2.266-.122-.571-.121L0%2011.784l.055-.352.48-.321.686.06%201.52.103%202.278.158%201.652.097%202.449.255h.389l.055-.157-.134-.098-.103-.097-2.358-1.596-2.552-1.688-1.336-.972-.724-.491-.364-.462-.158-1.008.656-.722.881.06.225.061.893.686%201.908%201.476%202.491%201.833.365.304.145-.103.019-.073-.164-.274-1.355-2.446-1.446-2.49-.644-1.032-.17-.619a2.97%202.97%200%2001-.104-.729L6.283.134%206.696%200l.996.134.42.364.62%201.414%201.002%202.229%201.555%203.03.456.898.243.832.091.255h.158V9.01l.128-1.706.237-2.095.23-2.695.08-.76.376-.91.747-.492.584.28.48.685-.067.444-.286%201.851-.559%202.903-.364%201.942h.212l.243-.242.985-1.306%201.652-2.064.73-.82.85-.904.547-.431h1.033l.76%201.129-.34%201.166-1.064%201.347-.881%201.142-1.264%201.7-.79%201.36.073.11.188-.02%202.856-.606%201.543-.28%201.841-.315.833.388.091.395-.328.807-1.969.486-2.309.462-3.439.813-.042.03.049.061%201.549.146.662.036h1.622l3.02.225.79.522.474.638-.079.485-1.215.62-1.64-.389-3.829-.91-1.312-.329h-.182v.11l1.093%201.068%202.006%201.81%202.509%202.33.127.578-.322.455-.34-.049-2.205-1.657-.851-.747-1.926-1.62h-.128v.17l.444.649%202.345%203.521.122%201.08-.17.353-.608.213-.668-.122-1.374-1.925-1.415-2.167-1.143-1.943-.14.08-.674%207.254-.316.37-.729.28-.607-.461-.322-.747.322-1.476.389-1.924.315-1.53.286-1.9.17-.632-.012-.042-.14.018-1.434%201.967-2.18%202.945-1.726%201.845-.414.164-.717-.37.067-.662.401-.589%202.388-3.036%201.44-1.882.93-1.086-.006-.158h-.055L4.132%2018.56l-1.13.146-.487-.456.061-.746.231-.243%201.908-1.312-.006.006z'%3e%3c/path%3e%3c/svg%3e",HS="data:image/svg+xml,%3csvg%20fill='currentColor'%20fill-rule='evenodd'%20height='1em'%20style='flex:none;line-height:1'%20viewBox='0%200%2024%2024'%20width='1em'%20xmlns='http://www.w3.org/2000/svg'%3e%3ctitle%3eCursor%3c/title%3e%3cpath%20d='M22.106%205.68L12.5.135a.998.998%200%2000-.998%200L1.893%205.68a.84.84%200%2000-.419.726v11.186c0%20.3.16.577.42.727l9.607%205.547a.999.999%200%2000.998%200l9.608-5.547a.84.84%200%2000.42-.727V6.407a.84.84%200%2000-.42-.726zm-.603%201.176L12.228%2022.92c-.063.108-.228.064-.228-.061V12.34a.59.59%200%2000-.295-.51l-9.11-5.26c-.107-.062-.063-.228.062-.228h18.55c.264%200%20.428.286.296.514z'%3e%3c/path%3e%3c/svg%3e",qS="data:image/svg+xml,%3csvg%20fill='currentColor'%20fill-rule='evenodd'%20height='1em'%20style='flex:none;line-height:1'%20viewBox='0%200%2024%2024'%20width='1em'%20xmlns='http://www.w3.org/2000/svg'%3e%3ctitle%3eOpenAI%3c/title%3e%3cpath%20d='M9.205%208.658v-2.26c0-.19.072-.333.238-.428l4.543-2.616c.619-.357%201.356-.523%202.117-.523%202.854%200%204.662%202.212%204.662%204.566%200%20.167%200%20.357-.024.547l-4.71-2.759a.797.797%200%2000-.856%200l-5.97%203.473zm10.609%208.8V12.06c0-.333-.143-.57-.429-.737l-5.97-3.473%201.95-1.118a.433.433%200%2001.476%200l4.543%202.617c1.309.76%202.189%202.378%202.189%203.948%200%201.808-1.07%203.473-2.76%204.163zM7.802%2012.703l-1.95-1.142c-.167-.095-.239-.238-.239-.428V5.899c0-2.545%201.95-4.472%204.591-4.472%201%200%201.927.333%202.712.928L8.23%205.067c-.285.166-.428.404-.428.737v6.898zM12%2015.128l-2.795-1.57v-3.33L12%208.658l2.795%201.57v3.33L12%2015.128zm1.796%207.23c-1%200-1.927-.332-2.712-.927l4.686-2.712c.285-.166.428-.404.428-.737v-6.898l1.974%201.142c.167.095.238.238.238.428v5.233c0%202.545-1.974%204.472-4.614%204.472zm-5.637-5.303l-4.544-2.617c-1.308-.761-2.188-2.378-2.188-3.948A4.482%204.482%200%20014.21%206.327v5.423c0%20.333.143.571.428.738l5.947%203.449-1.95%201.118a.432.432%200%2001-.476%200zm-.262%203.9c-2.688%200-4.662-2.021-4.662-4.519%200-.19.024-.38.047-.57l4.686%202.71c.286.167.571.167.856%200l5.97-3.448v2.26c0%20.19-.07.333-.237.428l-4.543%202.616c-.619.357-1.356.523-2.117.523zm5.899%202.83a5.947%205.947%200%20005.827-4.756C22.287%2018.339%2024%2015.84%2024%2013.296c0-1.665-.713-3.282-1.998-4.448.119-.5.19-.999.19-1.498%200-3.401-2.759-5.947-5.946-5.947-.642%200-1.26.095-1.88.31A5.962%205.962%200%200010.205%200a5.947%205.947%200%2000-5.827%204.757C1.713%205.447%200%207.945%200%2010.49c0%201.666.713%203.283%201.998%204.448-.119.5-.19%201-.19%201.499%200%203.401%202.759%205.946%205.946%205.946.642%200%201.26-.095%201.88-.309a5.96%205.96%200%20004.162%201.713z'%3e%3c/path%3e%3c/svg%3e",GS="data:image/svg+xml,%3csvg%20fill='currentColor'%20fill-rule='evenodd'%20height='1em'%20style='flex:none;line-height:1'%20viewBox='0%200%2024%2024'%20width='1em'%20xmlns='http://www.w3.org/2000/svg'%3e%3ctitle%3eopencode%3c/title%3e%3cpath%20d='M16%206H8v12h8V6zm4%2016H4V2h16v20z'%3e%3c/path%3e%3c/svg%3e",Wl={none:"None",low:"Low",medium:"Medium",high:"High",xhigh:"Extra high",max:"Max",ultracode:"Ultracode"},Ni=["low","medium","high","xhigh","max","ultracode"];function Zg(e){return Ni[(Ni.indexOf(e??"")+1)%Ni.length]}function oo(e,t){const r=t?.toLowerCase()??"";if(/^(?:anthropic\/|claude|fable|haiku|opus|sonnet)/.test(r))return"claude";if(/^(?:openai\/|gpt|o[1-9]|\d)/.test(r))return"openai";if(/^(?:cursor\/|composer|grok)/.test(r))return"cursor";if(/^opencode(?:-go)?\//.test(r))return"opencode";const i=e?.toLowerCase();if(i==="claude"||i==="anthropic")return"claude";if(i==="codex"||i==="openai")return"openai";if(i==="cursor")return"cursor";if(i==="acp"||i==="opencode")return"opencode"}function Cf(e,t){return oo(e,t)==="claude"}function vf(e,t){const r=oo(e,t);return r==="claude"||r==="openai"}function kf(e,t){const r=oo(e,t);return r==="claude"||r==="openai"}function VS(e,t){const r=oo(null,e),i=r==="claude"?t?.claude:r==="openai"?t?.codex:void 0;return i&&Ni.includes(i)?i:void 0}function QS(e,t){const r=Zg(e);if(!(r===t||!t&&e===Ni.at(-1)))return r}const KS={claude:$S,cursor:HS,openai:qS,opencode:GS},YS={claude:"#D97757",openai:"var(--color-provider-openai)"};function js({agentType:e,model:t,className:r}){const i=oo(e,t);if(!i)return x.jsx(U8,{"aria-hidden":"true",className:r});const l=KS[i];return x.jsx("span",{"aria-hidden":"true",className:he("inline-block shrink-0 bg-current",r),style:{color:YS[i],WebkitMaskImage:`url("${l}")`,maskImage:`url("${l}")`,WebkitMaskPosition:"center",maskPosition:"center",WebkitMaskRepeat:"no-repeat",maskRepeat:"no-repeat",WebkitMaskSize:"contain",maskSize:"contain"}})}const XS=[5,7,9,11,13,15],WS={low:1,medium:2,high:3,xhigh:4,max:5,ultracode:6};function Jg({effort:e,className:t}){const r=WS[e]??0;return x.jsx("span",{"aria-hidden":"true",className:he("flex h-[15px] shrink-0 items-end gap-[1.5px]",t),children:XS.map((i,l)=>x.jsx("span",{className:he("w-0.5 rounded-full bg-current transition-opacity",l<r?"opacity-100":"opacity-20"),style:{height:i}},i))})}var Qr=h8();function ZS(e,t){const r=t||{};return(e[e.length-1]===""?[...e,""]:e).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}const JS=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,eN=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,tN={};function M9(e,t){return(tN.jsx?eN:JS).test(e)}const nN=/[ \t\n\f\r]/g;function rN(e){return typeof e=="object"?e.type==="text"?j9(e.value):!1:j9(e)}function j9(e){return e.replace(nN,"")===""}class co{constructor(t,r,i){this.normal=r,this.property=t,i&&(this.space=i)}}co.prototype.normal={};co.prototype.property={};co.prototype.space=void 0;function eE(e,t){const r={},i={};for(const l of e)Object.assign(r,l.property),Object.assign(i,l.normal);return new co(r,i,t)}function wd(e){return e.toLowerCase()}class Zn{constructor(t,r){this.attribute=r,this.property=t}}Zn.prototype.attribute="";Zn.prototype.booleanish=!1;Zn.prototype.boolean=!1;Zn.prototype.commaOrSpaceSeparated=!1;Zn.prototype.commaSeparated=!1;Zn.prototype.defined=!1;Zn.prototype.mustUseProperty=!1;Zn.prototype.number=!1;Zn.prototype.overloadedBoolean=!1;Zn.prototype.property="";Zn.prototype.spaceSeparated=!1;Zn.prototype.space=void 0;let aN=0;const We=Li(),dn=Li(),Fd=Li(),Ce=Li(),Lt=Li(),_i=Li(),or=Li();function Li(){return 2**++aN}const Sd=Object.freeze(Object.defineProperty({__proto__:null,boolean:We,booleanish:dn,commaOrSpaceSeparated:or,commaSeparated:_i,number:Ce,overloadedBoolean:Fd,spaceSeparated:Lt},Symbol.toStringTag,{value:"Module"})),jx=Object.keys(Sd);class Af extends Zn{constructor(t,r,i,l){let o=-1;if(super(t,r),T9(this,"space",l),typeof i=="number")for(;++o<jx.length;){const u=jx[o];T9(this,jx[o],(i&Sd[u])===Sd[u])}}}Af.prototype.defined=!0;function T9(e,t,r){r&&(e[t]=r)}function Ts(e){const t={},r={};for(const[i,l]of Object.entries(e.properties)){const o=new Af(i,e.transform(e.attributes||{},i),l,e.space);e.mustUseProperty&&e.mustUseProperty.includes(i)&&(o.mustUseProperty=!0),t[i]=o,r[wd(i)]=i,r[wd(o.attribute)]=i}return new co(t,r,e.space)}const tE=Ts({properties:{ariaActiveDescendant:null,ariaAtomic:dn,ariaAutoComplete:null,ariaBusy:dn,ariaChecked:dn,ariaColCount:Ce,ariaColIndex:Ce,ariaColSpan:Ce,ariaControls:Lt,ariaCurrent:null,ariaDescribedBy:Lt,ariaDetails:null,ariaDisabled:dn,ariaDropEffect:Lt,ariaErrorMessage:null,ariaExpanded:dn,ariaFlowTo:Lt,ariaGrabbed:dn,ariaHasPopup:null,ariaHidden:dn,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Lt,ariaLevel:Ce,ariaLive:null,ariaModal:dn,ariaMultiLine:dn,ariaMultiSelectable:dn,ariaOrientation:null,ariaOwns:Lt,ariaPlaceholder:null,ariaPosInSet:Ce,ariaPressed:dn,ariaReadOnly:dn,ariaRelevant:null,ariaRequired:dn,ariaRoleDescription:Lt,ariaRowCount:Ce,ariaRowIndex:Ce,ariaRowSpan:Ce,ariaSelected:dn,ariaSetSize:Ce,ariaSort:null,ariaValueMax:Ce,ariaValueMin:Ce,ariaValueNow:Ce,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function nE(e,t){return t in e?e[t]:t}function rE(e,t){return nE(e,t.toLowerCase())}const iN=Ts({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:_i,acceptCharset:Lt,accessKey:Lt,action:null,allow:null,allowFullScreen:We,allowPaymentRequest:We,allowUserMedia:We,alpha:We,alt:null,as:null,async:We,autoCapitalize:null,autoComplete:Lt,autoFocus:We,autoPlay:We,blocking:Lt,capture:null,charSet:null,checked:We,cite:null,className:Lt,closedBy:null,colorSpace:null,cols:Ce,colSpan:Ce,command:null,commandFor:null,content:null,contentEditable:dn,controls:We,controlsList:Lt,coords:Ce|_i,crossOrigin:null,data:null,dateTime:null,decoding:null,default:We,defer:We,dir:null,dirName:null,disabled:We,download:Fd,draggable:dn,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:We,formTarget:null,headers:Lt,height:Ce,hidden:Fd,high:Ce,href:null,hrefLang:null,htmlFor:Lt,httpEquiv:Lt,id:null,imageSizes:null,imageSrcSet:null,inert:We,inputMode:null,integrity:null,is:null,isMap:We,itemId:null,itemProp:Lt,itemRef:Lt,itemScope:We,itemType:Lt,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:We,low:Ce,manifest:null,max:null,maxLength:Ce,media:null,method:null,min:null,minLength:Ce,multiple:We,muted:We,name:null,nonce:null,noModule:We,noValidate:We,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:We,optimum:Ce,pattern:null,ping:Lt,placeholder:null,playsInline:We,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:We,referrerPolicy:null,rel:Lt,required:We,reversed:We,rows:Ce,rowSpan:Ce,sandbox:Lt,scope:null,scoped:We,seamless:We,selected:We,shadowRootClonable:We,shadowRootCustomElementRegistry:We,shadowRootDelegatesFocus:We,shadowRootMode:null,shadowRootSerializable:We,shape:null,size:Ce,sizes:null,slot:null,span:Ce,spellCheck:dn,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Ce,step:null,style:null,tabIndex:Ce,target:null,title:null,translate:null,type:null,typeMustMatch:We,useMap:null,value:dn,width:Ce,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Lt,axis:null,background:null,bgColor:null,border:Ce,borderColor:null,bottomMargin:Ce,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:We,declare:We,event:null,face:null,frame:null,frameBorder:null,hSpace:Ce,leftMargin:Ce,link:null,longDesc:null,lowSrc:null,marginHeight:Ce,marginWidth:Ce,noResize:We,noHref:We,noShade:We,noWrap:We,object:null,profile:null,prompt:null,rev:null,rightMargin:Ce,rules:null,scheme:null,scrolling:dn,standby:null,summary:null,text:null,topMargin:Ce,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Ce,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:We,disablePictureInPicture:We,disableRemotePlayback:We,exportParts:_i,part:Lt,prefix:null,property:null,results:Ce,security:null,unselectable:null},space:"html",transform:rE}),sN=Ts({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-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:or,accentHeight:Ce,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Ce,amplitude:Ce,arabicForm:null,ascent:Ce,attributeName:null,attributeType:null,azimuth:Ce,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Ce,by:null,calcMode:null,capHeight:Ce,className:Lt,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:Ce,diffuseConstant:Ce,direction:null,display:null,dur:null,divisor:Ce,dominantBaseline:null,download:We,dx:null,dy:null,edgeMode:null,editable:null,elevation:Ce,enableBackground:null,end:null,event:null,exponent:Ce,externalResourcesRequired:null,fill:null,fillOpacity:Ce,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:_i,g2:_i,glyphName:_i,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Ce,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Ce,horizOriginX:Ce,horizOriginY:Ce,id:null,ideographic:Ce,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Ce,k:Ce,k1:Ce,k2:Ce,k3:Ce,k4:Ce,kernelMatrix:or,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Ce,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:Ce,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,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:Ce,overlineThickness:Ce,paintOrder:null,panose1:null,path:null,pathLength:Ce,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Lt,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Ce,pointsAtY:Ce,pointsAtZ:Ce,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:or,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:or,rev:or,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:or,requiredFeatures:or,requiredFonts:or,requiredFormats:or,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:Ce,specularExponent:Ce,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Ce,strikethroughThickness:Ce,string:null,stroke:null,strokeDashArray:or,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Ce,strokeOpacity:Ce,strokeWidth:null,style:null,surfaceScale:Ce,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:or,tabIndex:Ce,tableValues:null,target:null,targetX:Ce,targetY:Ce,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:or,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Ce,underlineThickness:Ce,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Ce,values:null,vAlphabetic:Ce,vMathematical:Ce,vectorEffect:null,vHanging:Ce,vIdeographic:Ce,version:null,vertAdvY:Ce,vertOriginX:Ce,vertOriginY:Ce,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Ce,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:nE}),aE=Ts({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),iE=Ts({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:rE}),sE=Ts({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),lN={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"},oN=/[A-Z]/g,R9=/-[a-z]/g,cN=/^data[-\w.:]+$/i;function uN(e,t){const r=wd(t);let i=t,l=Zn;if(r in e.normal)return e.property[e.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&cN.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(R9,dN);i="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!R9.test(o)){let u=o.replace(oN,xN);u.charAt(0)!=="-"&&(u="-"+u),t="data"+u}}l=Af}return new l(i,t)}function xN(e){return"-"+e.toLowerCase()}function dN(e){return e.charAt(1).toUpperCase()}const fN=eE([tE,iN,aE,iE,sE],"html"),Bf=eE([tE,sN,aE,iE,sE],"svg");function hN(e){return e.join(" ").trim()}var Cs={},Tx,O9;function pN(){if(O9)return Tx;O9=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,r=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,l=/^:\s*/,o=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,u=/^[;\s]*/,d=/^\s+|\s+$/g,f=`
|
|
14
|
-
`,h="/",m="*",p="",y="comment",b="declaration";function C(v,A){if(typeof v!="string")throw new TypeError("First argument must be a string");if(!v)return[];A=A||{};var F=1,N=1;function _(ee){var K=ee.match(t);K&&(F+=K.length);var I=ee.lastIndexOf(f);N=~I?ee.length-I:N+ee.length}function S(){var ee={line:F,column:N};return function(K){return K.position=new w(ee),P(),K}}function w(ee){this.start=ee,this.end={line:F,column:N},this.source=A.source}w.prototype.content=v;function O(ee){var K=new Error(A.source+":"+F+":"+N+": "+ee);if(K.reason=ee,K.filename=A.source,K.line=F,K.column=N,K.source=v,!A.silent)throw K}function z(ee){var K=ee.exec(v);if(K){var I=K[0];return _(I),v=v.slice(I.length),K}}function P(){z(r)}function T(ee){var K;for(ee=ee||[];K=$();)K!==!1&&ee.push(K);return ee}function $(){var ee=S();if(!(h!=v.charAt(0)||m!=v.charAt(1))){for(var K=2;p!=v.charAt(K)&&(m!=v.charAt(K)||h!=v.charAt(K+1));)++K;if(K+=2,p===v.charAt(K-1))return O("End of comment missing");var I=v.slice(2,K-2);return N+=2,_(I),v=v.slice(K),N+=2,ee({type:y,comment:I})}}function G(){var ee=S(),K=z(i);if(K){if($(),!z(l))return O("property missing ':'");var I=z(o),Y=ee({type:b,property:k(K[0].replace(e,p)),value:I?k(I[0].replace(e,p)):p});return z(u),Y}}function ae(){var ee=[];T(ee);for(var K;K=G();)K!==!1&&(ee.push(K),T(ee));return ee}return P(),ae()}function k(v){return v?v.replace(d,p):p}return Tx=C,Tx}var z9;function mN(){if(z9)return Cs;z9=1;var e=Cs&&Cs.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Cs,"__esModule",{value:!0}),Cs.default=r;const t=e(pN());function r(i,l){let o=null;if(!i||typeof i!="string")return o;const u=(0,t.default)(i),d=typeof l=="function";return u.forEach(f=>{if(f.type!=="declaration")return;const{property:h,value:m}=f;d?l(h,m,f):m&&(o=o||{},o[h]=m)}),o}return Cs}var Ml={},L9;function gN(){if(L9)return Ml;L9=1,Object.defineProperty(Ml,"__esModule",{value:!0}),Ml.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,r=/^[^-]+$/,i=/^-(webkit|moz|ms|o|khtml)-/,l=/^-(ms)-/,o=function(h){return!h||r.test(h)||e.test(h)},u=function(h,m){return m.toUpperCase()},d=function(h,m){return"".concat(m,"-")},f=function(h,m){return m===void 0&&(m={}),o(h)?h:(h=h.toLowerCase(),m.reactCompat?h=h.replace(l,d):h=h.replace(i,d),h.replace(t,u))};return Ml.camelCase=f,Ml}var jl,P9;function EN(){if(P9)return jl;P9=1;var e=jl&&jl.__importDefault||function(l){return l&&l.__esModule?l:{default:l}},t=e(mN()),r=gN();function i(l,o){var u={};return!l||typeof l!="string"||(0,t.default)(l,function(d,f){d&&f&&(u[(0,r.camelCase)(d,o)]=f)}),u}return i.default=i,jl=i,jl}var yN=EN();const bN=no(yN),lE=oE("end"),Df=oE("start");function oE(e){return t;function t(r){const i=r&&r.position&&r.position[e]||{};if(typeof i.line=="number"&&i.line>0&&typeof i.column=="number"&&i.column>0)return{line:i.line,column:i.column,offset:typeof i.offset=="number"&&i.offset>-1?i.offset:void 0}}}function CN(e){const t=Df(e),r=lE(e);if(t&&r)return{start:t,end:r}}function $l(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?I9(e.position):"start"in e||"end"in e?I9(e):"line"in e||"column"in e?Nd(e):""}function Nd(e){return U9(e&&e.line)+":"+U9(e&&e.column)}function I9(e){return Nd(e&&e.start)+"-"+Nd(e&&e.end)}function U9(e){return e&&typeof e=="number"?e:1}class zn extends Error{constructor(t,r,i){super(),typeof r=="string"&&(i=r,r=void 0);let l="",o={},u=!1;if(r&&("line"in r&&"column"in r?o={place:r}:"start"in r&&"end"in r?o={place:r}:"type"in r?o={ancestors:[r],place:r.position}:o={...r}),typeof t=="string"?l=t:!o.cause&&t&&(u=!0,l=t.message,o.cause=t),!o.ruleId&&!o.source&&typeof i=="string"){const f=i.indexOf(":");f===-1?o.ruleId=i:(o.source=i.slice(0,f),o.ruleId=i.slice(f+1))}if(!o.place&&o.ancestors&&o.ancestors){const f=o.ancestors[o.ancestors.length-1];f&&(o.place=f.position)}const d=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=d?d.column:void 0,this.fatal=void 0,this.file="",this.message=l,this.line=d?d.line:void 0,this.name=$l(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=u&&o.cause&&typeof o.cause.stack=="string"?o.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}zn.prototype.file="";zn.prototype.name="";zn.prototype.reason="";zn.prototype.message="";zn.prototype.stack="";zn.prototype.column=void 0;zn.prototype.line=void 0;zn.prototype.ancestors=void 0;zn.prototype.cause=void 0;zn.prototype.fatal=void 0;zn.prototype.place=void 0;zn.prototype.ruleId=void 0;zn.prototype.source=void 0;const wf={}.hasOwnProperty,vN=new Map,kN=/[A-Z]/g,AN=new Set(["table","tbody","thead","tfoot","tr"]),BN=new Set(["td","th"]),cE="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function DN(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const r=t.filePath||void 0;let i;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");i=TN(r,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");i=jN(r,t.jsx,t.jsxs)}const l={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:i,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:r,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?Bf:fN,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},o=uE(l,e,void 0);return o&&typeof o!="string"?o:l.create(e,l.Fragment,{children:o||void 0},void 0)}function uE(e,t,r){if(t.type==="element")return wN(e,t,r);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return FN(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return NN(e,t,r);if(t.type==="mdxjsEsm")return SN(e,t);if(t.type==="root")return _N(e,t,r);if(t.type==="text")return MN(e,t)}function wN(e,t,r){const i=e.schema;let l=i;t.tagName.toLowerCase()==="svg"&&i.space==="html"&&(l=Bf,e.schema=l),e.ancestors.push(t);const o=dE(e,t.tagName,!1),u=RN(e,t);let d=Sf(e,t);return AN.has(t.tagName)&&(d=d.filter(function(f){return typeof f=="string"?!rN(f):!0})),xE(e,u,o,t),Ff(u,d),e.ancestors.pop(),e.schema=i,e.create(t,o,u,r)}function FN(e,t){if(t.data&&t.data.estree&&e.evaluater){const i=t.data.estree.body[0];return i.type,e.evaluater.evaluateExpression(i.expression)}Zl(e,t.position)}function SN(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Zl(e,t.position)}function NN(e,t,r){const i=e.schema;let l=i;t.name==="svg"&&i.space==="html"&&(l=Bf,e.schema=l),e.ancestors.push(t);const o=t.name===null?e.Fragment:dE(e,t.name,!0),u=ON(e,t),d=Sf(e,t);return xE(e,u,o,t),Ff(u,d),e.ancestors.pop(),e.schema=i,e.create(t,o,u,r)}function _N(e,t,r){const i={};return Ff(i,Sf(e,t)),e.create(t,e.Fragment,i,r)}function MN(e,t){return t.value}function xE(e,t,r,i){typeof r!="string"&&r!==e.Fragment&&e.passNode&&(t.node=i)}function Ff(e,t){if(t.length>0){const r=t.length>1?t:t[0];r&&(e.children=r)}}function jN(e,t,r){return i;function i(l,o,u,d){const h=Array.isArray(u.children)?r:t;return d?h(o,u,d):h(o,u)}}function TN(e,t){return r;function r(i,l,o,u){const d=Array.isArray(o.children),f=Df(i);return t(l,o,u,d,{columnNumber:f?f.column-1:void 0,fileName:e,lineNumber:f?f.line:void 0},void 0)}}function RN(e,t){const r={};let i,l;for(l in t.properties)if(l!=="children"&&wf.call(t.properties,l)){const o=zN(e,l,t.properties[l]);if(o){const[u,d]=o;e.tableCellAlignToStyle&&u==="align"&&typeof d=="string"&&BN.has(t.tagName)?i=d:r[u]=d}}if(i){const o=r.style||(r.style={});o[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=i}return r}function ON(e,t){const r={};for(const i of t.attributes)if(i.type==="mdxJsxExpressionAttribute")if(i.data&&i.data.estree&&e.evaluater){const o=i.data.estree.body[0];o.type;const u=o.expression;u.type;const d=u.properties[0];d.type,Object.assign(r,e.evaluater.evaluateExpression(d.argument))}else Zl(e,t.position);else{const l=i.name;let o;if(i.value&&typeof i.value=="object")if(i.value.data&&i.value.data.estree&&e.evaluater){const d=i.value.data.estree.body[0];d.type,o=e.evaluater.evaluateExpression(d.expression)}else Zl(e,t.position);else o=i.value===null?!0:i.value;r[l]=o}return r}function Sf(e,t){const r=[];let i=-1;const l=e.passKeys?new Map:vN;for(;++i<t.children.length;){const o=t.children[i];let u;if(e.passKeys){const f=o.type==="element"?o.tagName:o.type==="mdxJsxFlowElement"||o.type==="mdxJsxTextElement"?o.name:void 0;if(f){const h=l.get(f)||0;u=f+"-"+h,l.set(f,h+1)}}const d=uE(e,o,u);d!==void 0&&r.push(d)}return r}function zN(e,t,r){const i=uN(e.schema,t);if(!(r==null||typeof r=="number"&&Number.isNaN(r))){if(Array.isArray(r)&&(r=i.commaSeparated?ZS(r):hN(r)),i.property==="style"){let l=typeof r=="object"?r:LN(e,String(r));return e.stylePropertyNameCase==="css"&&(l=PN(l)),["style",l]}return[e.elementAttributeNameCase==="react"&&i.space?lN[i.property]||i.property:i.attribute,r]}}function LN(e,t){try{return bN(t,{reactCompat:!0})}catch(r){if(e.ignoreInvalidStyle)return{};const i=r,l=new zn("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:i,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw l.file=e.filePath||void 0,l.url=cE+"#cannot-parse-style-attribute",l}}function dE(e,t,r){let i;if(!r)i={type:"Literal",value:t};else if(t.includes(".")){const l=t.split(".");let o=-1,u;for(;++o<l.length;){const d=M9(l[o])?{type:"Identifier",name:l[o]}:{type:"Literal",value:l[o]};u=u?{type:"MemberExpression",object:u,property:d,computed:!!(o&&d.type==="Literal"),optional:!1}:d}i=u}else i=M9(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(i.type==="Literal"){const l=i.value;return wf.call(e.components,l)?e.components[l]:l}if(e.evaluater)return e.evaluater.evaluateExpression(i);Zl(e)}function Zl(e,t){const r=new zn("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw r.file=e.filePath||void 0,r.url=cE+"#cannot-handle-mdx-estrees-without-createevaluater",r}function PN(e){const t={};let r;for(r in e)wf.call(e,r)&&(t[IN(r)]=e[r]);return t}function IN(e){let t=e.replace(kN,UN);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function UN(e){return"-"+e.toLowerCase()}const Rx={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"]},$N={};function Nf(e,t){const r=$N,i=typeof r.includeImageAlt=="boolean"?r.includeImageAlt:!0,l=typeof r.includeHtml=="boolean"?r.includeHtml:!0;return fE(e,i,l)}function fE(e,t,r){if(HN(e)){if("value"in e)return e.type==="html"&&!r?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return $9(e.children,t,r)}return Array.isArray(e)?$9(e,t,r):""}function $9(e,t,r){const i=[];let l=-1;for(;++l<e.length;)i[l]=fE(e[l],t,r);return i.join("")}function HN(e){return!!(e&&typeof e=="object")}const H9=document.createElement("i");function _f(e){const t="&"+e+";";H9.innerHTML=t;const r=H9.textContent;return r.charCodeAt(r.length-1)===59&&e!=="semi"||r===t?!1:r}function xr(e,t,r,i){const l=e.length;let o=0,u;if(t<0?t=-t>l?0:l+t:t=t>l?l:t,r=r>0?r:0,i.length<1e4)u=Array.from(i),u.unshift(t,r),e.splice(...u);else for(r&&e.splice(t,r);o<i.length;)u=i.slice(o,o+1e4),u.unshift(t,0),e.splice(...u),o+=1e4,t+=1e4}function Dr(e,t){return e.length>0?(xr(e,e.length,0,t),e):t}const q9={}.hasOwnProperty;function hE(e){const t={};let r=-1;for(;++r<e.length;)qN(t,e[r]);return t}function qN(e,t){let r;for(r in t){const l=(q9.call(e,r)?e[r]:void 0)||(e[r]={}),o=t[r];let u;if(o)for(u in o){q9.call(l,u)||(l[u]=[]);const d=o[u];GN(l[u],Array.isArray(d)?d:d?[d]:[])}}}function GN(e,t){let r=-1;const i=[];for(;++r<t.length;)(t[r].add==="after"?e:i).push(t[r]);xr(e,0,0,i)}function pE(e,t){const r=Number.parseInt(e,t);return r<9||r===11||r>13&&r<32||r>126&&r<160||r>55295&&r<57344||r>64975&&r<65008||(r&65535)===65535||(r&65535)===65534||r>1114111?"�":String.fromCodePoint(r)}function zr(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const In=ai(/[A-Za-z]/),Rn=ai(/[\dA-Za-z]/),VN=ai(/[#-'*+\--9=?A-Z^-~]/);function tc(e){return e!==null&&(e<32||e===127)}const _d=ai(/\d/),QN=ai(/[\dA-Fa-f]/),KN=ai(/[!-/:-@[-`{-~]/);function Ve(e){return e!==null&&e<-2}function Pt(e){return e!==null&&(e<0||e===32)}function dt(e){return e===-2||e===-1||e===32}const dc=ai(new RegExp("\\p{P}|\\p{S}","u")),ji=ai(/\s/);function ai(e){return t;function t(r){return r!==null&&r>-1&&e.test(String.fromCharCode(r))}}function Rs(e){const t=[];let r=-1,i=0,l=0;for(;++r<e.length;){const o=e.charCodeAt(r);let u="";if(o===37&&Rn(e.charCodeAt(r+1))&&Rn(e.charCodeAt(r+2)))l=2;else if(o<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o))||(u=String.fromCharCode(o));else if(o>55295&&o<57344){const d=e.charCodeAt(r+1);o<56320&&d>56319&&d<57344?(u=String.fromCharCode(o,d),l=1):u="�"}else u=String.fromCharCode(o);u&&(t.push(e.slice(i,r),encodeURIComponent(u)),i=r+l+1,u=""),l&&(r+=l,l=0)}return t.join("")+e.slice(i)}function gt(e,t,r,i){const l=i?i-1:Number.POSITIVE_INFINITY;let o=0;return u;function u(f){return dt(f)?(e.enter(r),d(f)):t(f)}function d(f){return dt(f)&&o++<l?(e.consume(f),d):(e.exit(r),t(f))}}const YN={tokenize:XN};function XN(e){const t=e.attempt(this.parser.constructs.contentInitial,i,l);let r;return t;function i(d){if(d===null){e.consume(d);return}return e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),gt(e,t,"linePrefix")}function l(d){return e.enter("paragraph"),o(d)}function o(d){const f=e.enter("chunkText",{contentType:"text",previous:r});return r&&(r.next=f),r=f,u(d)}function u(d){if(d===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(d);return}return Ve(d)?(e.consume(d),e.exit("chunkText"),o):(e.consume(d),u)}}const WN={tokenize:ZN},G9={tokenize:JN};function ZN(e){const t=this,r=[];let i=0,l,o,u;return d;function d(N){if(i<r.length){const _=r[i];return t.containerState=_[1],e.attempt(_[0].continuation,f,h)(N)}return h(N)}function f(N){if(i++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,l&&F();const _=t.events.length;let S=_,w;for(;S--;)if(t.events[S][0]==="exit"&&t.events[S][1].type==="chunkFlow"){w=t.events[S][1].end;break}A(i);let O=_;for(;O<t.events.length;)t.events[O][1].end={...w},O++;return xr(t.events,S+1,0,t.events.slice(_)),t.events.length=O,h(N)}return d(N)}function h(N){if(i===r.length){if(!l)return y(N);if(l.currentConstruct&&l.currentConstruct.concrete)return C(N);t.interrupt=!!(l.currentConstruct&&!l._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(G9,m,p)(N)}function m(N){return l&&F(),A(i),y(N)}function p(N){return t.parser.lazy[t.now().line]=i!==r.length,u=t.now().offset,C(N)}function y(N){return t.containerState={},e.attempt(G9,b,C)(N)}function b(N){return i++,r.push([t.currentConstruct,t.containerState]),y(N)}function C(N){if(N===null){l&&F(),A(0),e.consume(N);return}return l=l||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:l,contentType:"flow",previous:o}),k(N)}function k(N){if(N===null){v(e.exit("chunkFlow"),!0),A(0),e.consume(N);return}return Ve(N)?(e.consume(N),v(e.exit("chunkFlow")),i=0,t.interrupt=void 0,d):(e.consume(N),k)}function v(N,_){const S=t.sliceStream(N);if(_&&S.push(null),N.previous=o,o&&(o.next=N),o=N,l.defineSkip(N.start),l.write(S),t.parser.lazy[N.start.line]){let w=l.events.length;for(;w--;)if(l.events[w][1].start.offset<u&&(!l.events[w][1].end||l.events[w][1].end.offset>u))return;const O=t.events.length;let z=O,P,T;for(;z--;)if(t.events[z][0]==="exit"&&t.events[z][1].type==="chunkFlow"){if(P){T=t.events[z][1].end;break}P=!0}for(A(i),w=O;w<t.events.length;)t.events[w][1].end={...T},w++;xr(t.events,z+1,0,t.events.slice(O)),t.events.length=w}}function A(N){let _=r.length;for(;_-- >N;){const S=r[_];t.containerState=S[1],S[0].exit.call(t,e)}r.length=N}function F(){l.write([null]),o=void 0,l=void 0,t.containerState._closeFlow=void 0}}function JN(e,t,r){return gt(e,e.attempt(this.parser.constructs.document,t,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Fs(e){if(e===null||Pt(e)||ji(e))return 1;if(dc(e))return 2}function fc(e,t,r){const i=[];let l=-1;for(;++l<e.length;){const o=e[l].resolveAll;o&&!i.includes(o)&&(t=o(t,r),i.push(o))}return t}const Md={name:"attention",resolveAll:e_,tokenize:t_};function e_(e,t){let r=-1,i,l,o,u,d,f,h,m;for(;++r<e.length;)if(e[r][0]==="enter"&&e[r][1].type==="attentionSequence"&&e[r][1]._close){for(i=r;i--;)if(e[i][0]==="exit"&&e[i][1].type==="attentionSequence"&&e[i][1]._open&&t.sliceSerialize(e[i][1]).charCodeAt(0)===t.sliceSerialize(e[r][1]).charCodeAt(0)){if((e[i][1]._close||e[r][1]._open)&&(e[r][1].end.offset-e[r][1].start.offset)%3&&!((e[i][1].end.offset-e[i][1].start.offset+e[r][1].end.offset-e[r][1].start.offset)%3))continue;f=e[i][1].end.offset-e[i][1].start.offset>1&&e[r][1].end.offset-e[r][1].start.offset>1?2:1;const p={...e[i][1].end},y={...e[r][1].start};V9(p,-f),V9(y,f),u={type:f>1?"strongSequence":"emphasisSequence",start:p,end:{...e[i][1].end}},d={type:f>1?"strongSequence":"emphasisSequence",start:{...e[r][1].start},end:y},o={type:f>1?"strongText":"emphasisText",start:{...e[i][1].end},end:{...e[r][1].start}},l={type:f>1?"strong":"emphasis",start:{...u.start},end:{...d.end}},e[i][1].end={...u.start},e[r][1].start={...d.end},h=[],e[i][1].end.offset-e[i][1].start.offset&&(h=Dr(h,[["enter",e[i][1],t],["exit",e[i][1],t]])),h=Dr(h,[["enter",l,t],["enter",u,t],["exit",u,t],["enter",o,t]]),h=Dr(h,fc(t.parser.constructs.insideSpan.null,e.slice(i+1,r),t)),h=Dr(h,[["exit",o,t],["enter",d,t],["exit",d,t],["exit",l,t]]),e[r][1].end.offset-e[r][1].start.offset?(m=2,h=Dr(h,[["enter",e[r][1],t],["exit",e[r][1],t]])):m=0,xr(e,i-1,r-i+3,h),r=i+h.length-m-2;break}}for(r=-1;++r<e.length;)e[r][1].type==="attentionSequence"&&(e[r][1].type="data");return e}function t_(e,t){const r=this.parser.constructs.attentionMarkers.null,i=this.previous,l=Fs(i);let o;return u;function u(f){return o=f,e.enter("attentionSequence"),d(f)}function d(f){if(f===o)return e.consume(f),d;const h=e.exit("attentionSequence"),m=Fs(f),p=!m||m===2&&l||r.includes(f),y=!l||l===2&&m||r.includes(i);return h._open=!!(o===42?p:p&&(l||!y)),h._close=!!(o===42?y:y&&(m||!p)),t(f)}}function V9(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const n_={name:"autolink",tokenize:r_};function r_(e,t,r){let i=0;return l;function l(b){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(b),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o}function o(b){return In(b)?(e.consume(b),u):b===64?r(b):h(b)}function u(b){return b===43||b===45||b===46||Rn(b)?(i=1,d(b)):h(b)}function d(b){return b===58?(e.consume(b),i=0,f):(b===43||b===45||b===46||Rn(b))&&i++<32?(e.consume(b),d):(i=0,h(b))}function f(b){return b===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(b),e.exit("autolinkMarker"),e.exit("autolink"),t):b===null||b===32||b===60||tc(b)?r(b):(e.consume(b),f)}function h(b){return b===64?(e.consume(b),m):VN(b)?(e.consume(b),h):r(b)}function m(b){return Rn(b)?p(b):r(b)}function p(b){return b===46?(e.consume(b),i=0,m):b===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(b),e.exit("autolinkMarker"),e.exit("autolink"),t):y(b)}function y(b){if((b===45||Rn(b))&&i++<63){const C=b===45?y:p;return e.consume(b),C}return r(b)}}const uo={partial:!0,tokenize:a_};function a_(e,t,r){return i;function i(o){return dt(o)?gt(e,l,"linePrefix")(o):l(o)}function l(o){return o===null||Ve(o)?t(o):r(o)}}const mE={continuation:{tokenize:s_},exit:l_,name:"blockQuote",tokenize:i_};function i_(e,t,r){const i=this;return l;function l(u){if(u===62){const d=i.containerState;return d.open||(e.enter("blockQuote",{_container:!0}),d.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(u),e.exit("blockQuoteMarker"),o}return r(u)}function o(u){return dt(u)?(e.enter("blockQuotePrefixWhitespace"),e.consume(u),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(u))}}function s_(e,t,r){const i=this;return l;function l(u){return dt(u)?gt(e,o,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(u):o(u)}function o(u){return e.attempt(mE,t,r)(u)}}function l_(e){e.exit("blockQuote")}const gE={name:"characterEscape",tokenize:o_};function o_(e,t,r){return i;function i(o){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(o),e.exit("escapeMarker"),l}function l(o){return KN(o)?(e.enter("characterEscapeValue"),e.consume(o),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):r(o)}}const EE={name:"characterReference",tokenize:c_};function c_(e,t,r){const i=this;let l=0,o,u;return d;function d(p){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(p),e.exit("characterReferenceMarker"),f}function f(p){return p===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(p),e.exit("characterReferenceMarkerNumeric"),h):(e.enter("characterReferenceValue"),o=31,u=Rn,m(p))}function h(p){return p===88||p===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(p),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,u=QN,m):(e.enter("characterReferenceValue"),o=7,u=_d,m(p))}function m(p){if(p===59&&l){const y=e.exit("characterReferenceValue");return u===Rn&&!_f(i.sliceSerialize(y))?r(p):(e.enter("characterReferenceMarker"),e.consume(p),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return u(p)&&l++<o?(e.consume(p),m):r(p)}}const Q9={partial:!0,tokenize:x_},K9={concrete:!0,name:"codeFenced",tokenize:u_};function u_(e,t,r){const i=this,l={partial:!0,tokenize:S};let o=0,u=0,d;return f;function f(w){return h(w)}function h(w){const O=i.events[i.events.length-1];return o=O&&O[1].type==="linePrefix"?O[2].sliceSerialize(O[1],!0).length:0,d=w,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),m(w)}function m(w){return w===d?(u++,e.consume(w),m):u<3?r(w):(e.exit("codeFencedFenceSequence"),dt(w)?gt(e,p,"whitespace")(w):p(w))}function p(w){return w===null||Ve(w)?(e.exit("codeFencedFence"),i.interrupt?t(w):e.check(Q9,k,_)(w)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),y(w))}function y(w){return w===null||Ve(w)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),p(w)):dt(w)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),gt(e,b,"whitespace")(w)):w===96&&w===d?r(w):(e.consume(w),y)}function b(w){return w===null||Ve(w)?p(w):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),C(w))}function C(w){return w===null||Ve(w)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),p(w)):w===96&&w===d?r(w):(e.consume(w),C)}function k(w){return e.attempt(l,_,v)(w)}function v(w){return e.enter("lineEnding"),e.consume(w),e.exit("lineEnding"),A}function A(w){return o>0&&dt(w)?gt(e,F,"linePrefix",o+1)(w):F(w)}function F(w){return w===null||Ve(w)?e.check(Q9,k,_)(w):(e.enter("codeFlowValue"),N(w))}function N(w){return w===null||Ve(w)?(e.exit("codeFlowValue"),F(w)):(e.consume(w),N)}function _(w){return e.exit("codeFenced"),t(w)}function S(w,O,z){let P=0;return T;function T(K){return w.enter("lineEnding"),w.consume(K),w.exit("lineEnding"),$}function $(K){return w.enter("codeFencedFence"),dt(K)?gt(w,G,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(K):G(K)}function G(K){return K===d?(w.enter("codeFencedFenceSequence"),ae(K)):z(K)}function ae(K){return K===d?(P++,w.consume(K),ae):P>=u?(w.exit("codeFencedFenceSequence"),dt(K)?gt(w,ee,"whitespace")(K):ee(K)):z(K)}function ee(K){return K===null||Ve(K)?(w.exit("codeFencedFence"),O(K)):z(K)}}}function x_(e,t,r){const i=this;return l;function l(u){return u===null?r(u):(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),o)}function o(u){return i.parser.lazy[i.now().line]?r(u):t(u)}}const Ox={name:"codeIndented",tokenize:f_},d_={partial:!0,tokenize:h_};function f_(e,t,r){const i=this;return l;function l(h){return e.enter("codeIndented"),gt(e,o,"linePrefix",5)(h)}function o(h){const m=i.events[i.events.length-1];return m&&m[1].type==="linePrefix"&&m[2].sliceSerialize(m[1],!0).length>=4?u(h):r(h)}function u(h){return h===null?f(h):Ve(h)?e.attempt(d_,u,f)(h):(e.enter("codeFlowValue"),d(h))}function d(h){return h===null||Ve(h)?(e.exit("codeFlowValue"),u(h)):(e.consume(h),d)}function f(h){return e.exit("codeIndented"),t(h)}}function h_(e,t,r){const i=this;return l;function l(u){return i.parser.lazy[i.now().line]?r(u):Ve(u)?(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),l):gt(e,o,"linePrefix",5)(u)}function o(u){const d=i.events[i.events.length-1];return d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?t(u):Ve(u)?l(u):r(u)}}const p_={name:"codeText",previous:g_,resolve:m_,tokenize:E_};function m_(e){let t=e.length-4,r=3,i,l;if((e[r][1].type==="lineEnding"||e[r][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(i=r;++i<t;)if(e[i][1].type==="codeTextData"){e[r][1].type="codeTextPadding",e[t][1].type="codeTextPadding",r+=2,t-=2;break}}for(i=r-1,t++;++i<=t;)l===void 0?i!==t&&e[i][1].type!=="lineEnding"&&(l=i):(i===t||e[i][1].type==="lineEnding")&&(e[l][1].type="codeTextData",i!==l+2&&(e[l][1].end=e[i-1][1].end,e.splice(l+2,i-l-2),t-=i-l-2,i=l+2),l=void 0);return e}function g_(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function E_(e,t,r){let i=0,l,o;return u;function u(p){return e.enter("codeText"),e.enter("codeTextSequence"),d(p)}function d(p){return p===96?(e.consume(p),i++,d):(e.exit("codeTextSequence"),f(p))}function f(p){return p===null?r(p):p===32?(e.enter("space"),e.consume(p),e.exit("space"),f):p===96?(o=e.enter("codeTextSequence"),l=0,m(p)):Ve(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),f):(e.enter("codeTextData"),h(p))}function h(p){return p===null||p===32||p===96||Ve(p)?(e.exit("codeTextData"),f(p)):(e.consume(p),h)}function m(p){return p===96?(e.consume(p),l++,m):l===i?(e.exit("codeTextSequence"),e.exit("codeText"),t(p)):(o.type="codeTextData",h(p))}}class y_{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,r){const i=r??Number.POSITIVE_INFINITY;return i<this.left.length?this.left.slice(t,i):t>this.left.length?this.right.slice(this.right.length-i+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-i+this.left.length).reverse())}splice(t,r,i){const l=r||0;this.setCursor(Math.trunc(t));const o=this.right.splice(this.right.length-l,Number.POSITIVE_INFINITY);return i&&Tl(this.left,i),o.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),Tl(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),Tl(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const r=this.left.splice(t,Number.POSITIVE_INFINITY);Tl(this.right,r.reverse())}else{const r=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);Tl(this.left,r.reverse())}}}function Tl(e,t){let r=0;if(t.length<1e4)e.push(...t);else for(;r<t.length;)e.push(...t.slice(r,r+1e4)),r+=1e4}function yE(e){const t={};let r=-1,i,l,o,u,d,f,h;const m=new y_(e);for(;++r<m.length;){for(;r in t;)r=t[r];if(i=m.get(r),r&&i[1].type==="chunkFlow"&&m.get(r-1)[1].type==="listItemPrefix"&&(f=i[1]._tokenizer.events,o=0,o<f.length&&f[o][1].type==="lineEndingBlank"&&(o+=2),o<f.length&&f[o][1].type==="content"))for(;++o<f.length&&f[o][1].type!=="content";)f[o][1].type==="chunkText"&&(f[o][1]._isInFirstContentOfListItem=!0,o++);if(i[0]==="enter")i[1].contentType&&(Object.assign(t,b_(m,r)),r=t[r],h=!0);else if(i[1]._container){for(o=r,l=void 0;o--;)if(u=m.get(o),u[1].type==="lineEnding"||u[1].type==="lineEndingBlank")u[0]==="enter"&&(l&&(m.get(l)[1].type="lineEndingBlank"),u[1].type="lineEnding",l=o);else if(!(u[1].type==="linePrefix"||u[1].type==="listItemIndent"))break;l&&(i[1].end={...m.get(l)[1].start},d=m.slice(l,r),d.unshift(i),m.splice(l,r-l+1,d))}}return xr(e,0,Number.POSITIVE_INFINITY,m.slice(0)),!h}function b_(e,t){const r=e.get(t)[1],i=e.get(t)[2];let l=t-1;const o=[];let u=r._tokenizer;u||(u=i.parser[r.contentType](r.start),r._contentTypeTextTrailing&&(u._contentTypeTextTrailing=!0));const d=u.events,f=[],h={};let m,p,y=-1,b=r,C=0,k=0;const v=[k];for(;b;){for(;e.get(++l)[1]!==b;);o.push(l),b._tokenizer||(m=i.sliceStream(b),b.next||m.push(null),p&&u.defineSkip(b.start),b._isInFirstContentOfListItem&&(u._gfmTasklistFirstContentOfListItem=!0),u.write(m),b._isInFirstContentOfListItem&&(u._gfmTasklistFirstContentOfListItem=void 0)),p=b,b=b.next}for(b=r;++y<d.length;)d[y][0]==="exit"&&d[y-1][0]==="enter"&&d[y][1].type===d[y-1][1].type&&d[y][1].start.line!==d[y][1].end.line&&(k=y+1,v.push(k),b._tokenizer=void 0,b.previous=void 0,b=b.next);for(u.events=[],b?(b._tokenizer=void 0,b.previous=void 0):v.pop(),y=v.length;y--;){const A=d.slice(v[y],v[y+1]),F=o.pop();f.push([F,F+A.length-1]),e.splice(F,2,A)}for(f.reverse(),y=-1;++y<f.length;)h[C+f[y][0]]=C+f[y][1],C+=f[y][1]-f[y][0]-1;return h}const C_={resolve:k_,tokenize:A_},v_={partial:!0,tokenize:B_};function k_(e){return yE(e),e}function A_(e,t){let r;return i;function i(d){return e.enter("content"),r=e.enter("chunkContent",{contentType:"content"}),l(d)}function l(d){return d===null?o(d):Ve(d)?e.check(v_,u,o)(d):(e.consume(d),l)}function o(d){return e.exit("chunkContent"),e.exit("content"),t(d)}function u(d){return e.consume(d),e.exit("chunkContent"),r.next=e.enter("chunkContent",{contentType:"content",previous:r}),r=r.next,l}}function B_(e,t,r){const i=this;return l;function l(u){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),gt(e,o,"linePrefix")}function o(u){if(u===null||Ve(u))return r(u);const d=i.events[i.events.length-1];return!i.parser.constructs.disable.null.includes("codeIndented")&&d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?t(u):e.interrupt(i.parser.constructs.flow,r,t)(u)}}function bE(e,t,r,i,l,o,u,d,f){const h=f||Number.POSITIVE_INFINITY;let m=0;return p;function p(A){return A===60?(e.enter(i),e.enter(l),e.enter(o),e.consume(A),e.exit(o),y):A===null||A===32||A===41||tc(A)?r(A):(e.enter(i),e.enter(u),e.enter(d),e.enter("chunkString",{contentType:"string"}),k(A))}function y(A){return A===62?(e.enter(o),e.consume(A),e.exit(o),e.exit(l),e.exit(i),t):(e.enter(d),e.enter("chunkString",{contentType:"string"}),b(A))}function b(A){return A===62?(e.exit("chunkString"),e.exit(d),y(A)):A===null||A===60||Ve(A)?r(A):(e.consume(A),A===92?C:b)}function C(A){return A===60||A===62||A===92?(e.consume(A),b):b(A)}function k(A){return!m&&(A===null||A===41||Pt(A))?(e.exit("chunkString"),e.exit(d),e.exit(u),e.exit(i),t(A)):m<h&&A===40?(e.consume(A),m++,k):A===41?(e.consume(A),m--,k):A===null||A===32||A===40||tc(A)?r(A):(e.consume(A),A===92?v:k)}function v(A){return A===40||A===41||A===92?(e.consume(A),k):k(A)}}function CE(e,t,r,i,l,o){const u=this;let d=0,f;return h;function h(b){return e.enter(i),e.enter(l),e.consume(b),e.exit(l),e.enter(o),m}function m(b){return d>999||b===null||b===91||b===93&&!f||b===94&&!d&&"_hiddenFootnoteSupport"in u.parser.constructs?r(b):b===93?(e.exit(o),e.enter(l),e.consume(b),e.exit(l),e.exit(i),t):Ve(b)?(e.enter("lineEnding"),e.consume(b),e.exit("lineEnding"),m):(e.enter("chunkString",{contentType:"string"}),p(b))}function p(b){return b===null||b===91||b===93||Ve(b)||d++>999?(e.exit("chunkString"),m(b)):(e.consume(b),f||(f=!dt(b)),b===92?y:p)}function y(b){return b===91||b===92||b===93?(e.consume(b),d++,p):p(b)}}function vE(e,t,r,i,l,o){let u;return d;function d(y){return y===34||y===39||y===40?(e.enter(i),e.enter(l),e.consume(y),e.exit(l),u=y===40?41:y,f):r(y)}function f(y){return y===u?(e.enter(l),e.consume(y),e.exit(l),e.exit(i),t):(e.enter(o),h(y))}function h(y){return y===u?(e.exit(o),f(u)):y===null?r(y):Ve(y)?(e.enter("lineEnding"),e.consume(y),e.exit("lineEnding"),gt(e,h,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),m(y))}function m(y){return y===u||y===null||Ve(y)?(e.exit("chunkString"),h(y)):(e.consume(y),y===92?p:m)}function p(y){return y===u||y===92?(e.consume(y),m):m(y)}}function Hl(e,t){let r;return i;function i(l){return Ve(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),r=!0,i):dt(l)?gt(e,i,r?"linePrefix":"lineSuffix")(l):t(l)}}const D_={name:"definition",tokenize:F_},w_={partial:!0,tokenize:S_};function F_(e,t,r){const i=this;let l;return o;function o(b){return e.enter("definition"),u(b)}function u(b){return CE.call(i,e,d,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(b)}function d(b){return l=zr(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)),b===58?(e.enter("definitionMarker"),e.consume(b),e.exit("definitionMarker"),f):r(b)}function f(b){return Pt(b)?Hl(e,h)(b):h(b)}function h(b){return bE(e,m,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(b)}function m(b){return e.attempt(w_,p,p)(b)}function p(b){return dt(b)?gt(e,y,"whitespace")(b):y(b)}function y(b){return b===null||Ve(b)?(e.exit("definition"),i.parser.defined.push(l),t(b)):r(b)}}function S_(e,t,r){return i;function i(d){return Pt(d)?Hl(e,l)(d):r(d)}function l(d){return vE(e,o,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(d)}function o(d){return dt(d)?gt(e,u,"whitespace")(d):u(d)}function u(d){return d===null||Ve(d)?t(d):r(d)}}const N_={name:"hardBreakEscape",tokenize:__};function __(e,t,r){return i;function i(o){return e.enter("hardBreakEscape"),e.consume(o),l}function l(o){return Ve(o)?(e.exit("hardBreakEscape"),t(o)):r(o)}}const M_={name:"headingAtx",resolve:j_,tokenize:T_};function j_(e,t){let r=e.length-2,i=3,l,o;return e[i][1].type==="whitespace"&&(i+=2),r-2>i&&e[r][1].type==="whitespace"&&(r-=2),e[r][1].type==="atxHeadingSequence"&&(i===r-1||r-4>i&&e[r-2][1].type==="whitespace")&&(r-=i+1===r?2:4),r>i&&(l={type:"atxHeadingText",start:e[i][1].start,end:e[r][1].end},o={type:"chunkText",start:e[i][1].start,end:e[r][1].end,contentType:"text"},xr(e,i,r-i+1,[["enter",l,t],["enter",o,t],["exit",o,t],["exit",l,t]])),e}function T_(e,t,r){let i=0;return l;function l(m){return e.enter("atxHeading"),o(m)}function o(m){return e.enter("atxHeadingSequence"),u(m)}function u(m){return m===35&&i++<6?(e.consume(m),u):m===null||Pt(m)?(e.exit("atxHeadingSequence"),d(m)):r(m)}function d(m){return m===35?(e.enter("atxHeadingSequence"),f(m)):m===null||Ve(m)?(e.exit("atxHeading"),t(m)):dt(m)?gt(e,d,"whitespace")(m):(e.enter("atxHeadingText"),h(m))}function f(m){return m===35?(e.consume(m),f):(e.exit("atxHeadingSequence"),d(m))}function h(m){return m===null||m===35||Pt(m)?(e.exit("atxHeadingText"),d(m)):(e.consume(m),h)}}const R_=["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"],Y9=["pre","script","style","textarea"],O_={concrete:!0,name:"htmlFlow",resolveTo:P_,tokenize:I_},z_={partial:!0,tokenize:$_},L_={partial:!0,tokenize:U_};function P_(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function I_(e,t,r){const i=this;let l,o,u,d,f;return h;function h(R){return m(R)}function m(R){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(R),p}function p(R){return R===33?(e.consume(R),y):R===47?(e.consume(R),o=!0,k):R===63?(e.consume(R),l=3,i.interrupt?t:j):In(R)?(e.consume(R),u=String.fromCharCode(R),v):r(R)}function y(R){return R===45?(e.consume(R),l=2,b):R===91?(e.consume(R),l=5,d=0,C):In(R)?(e.consume(R),l=4,i.interrupt?t:j):r(R)}function b(R){return R===45?(e.consume(R),i.interrupt?t:j):r(R)}function C(R){const se="CDATA[";return R===se.charCodeAt(d++)?(e.consume(R),d===se.length?i.interrupt?t:G:C):r(R)}function k(R){return In(R)?(e.consume(R),u=String.fromCharCode(R),v):r(R)}function v(R){if(R===null||R===47||R===62||Pt(R)){const se=R===47,be=u.toLowerCase();return!se&&!o&&Y9.includes(be)?(l=1,i.interrupt?t(R):G(R)):R_.includes(u.toLowerCase())?(l=6,se?(e.consume(R),A):i.interrupt?t(R):G(R)):(l=7,i.interrupt&&!i.parser.lazy[i.now().line]?r(R):o?F(R):N(R))}return R===45||Rn(R)?(e.consume(R),u+=String.fromCharCode(R),v):r(R)}function A(R){return R===62?(e.consume(R),i.interrupt?t:G):r(R)}function F(R){return dt(R)?(e.consume(R),F):T(R)}function N(R){return R===47?(e.consume(R),T):R===58||R===95||In(R)?(e.consume(R),_):dt(R)?(e.consume(R),N):T(R)}function _(R){return R===45||R===46||R===58||R===95||Rn(R)?(e.consume(R),_):S(R)}function S(R){return R===61?(e.consume(R),w):dt(R)?(e.consume(R),S):N(R)}function w(R){return R===null||R===60||R===61||R===62||R===96?r(R):R===34||R===39?(e.consume(R),f=R,O):dt(R)?(e.consume(R),w):z(R)}function O(R){return R===f?(e.consume(R),f=null,P):R===null||Ve(R)?r(R):(e.consume(R),O)}function z(R){return R===null||R===34||R===39||R===47||R===60||R===61||R===62||R===96||Pt(R)?S(R):(e.consume(R),z)}function P(R){return R===47||R===62||dt(R)?N(R):r(R)}function T(R){return R===62?(e.consume(R),$):r(R)}function $(R){return R===null||Ve(R)?G(R):dt(R)?(e.consume(R),$):r(R)}function G(R){return R===45&&l===2?(e.consume(R),I):R===60&&l===1?(e.consume(R),Y):R===62&&l===4?(e.consume(R),L):R===63&&l===3?(e.consume(R),j):R===93&&l===5?(e.consume(R),xe):Ve(R)&&(l===6||l===7)?(e.exit("htmlFlowData"),e.check(z_,V,ae)(R)):R===null||Ve(R)?(e.exit("htmlFlowData"),ae(R)):(e.consume(R),G)}function ae(R){return e.check(L_,ee,V)(R)}function ee(R){return e.enter("lineEnding"),e.consume(R),e.exit("lineEnding"),K}function K(R){return R===null||Ve(R)?ae(R):(e.enter("htmlFlowData"),G(R))}function I(R){return R===45?(e.consume(R),j):G(R)}function Y(R){return R===47?(e.consume(R),u="",ie):G(R)}function ie(R){if(R===62){const se=u.toLowerCase();return Y9.includes(se)?(e.consume(R),L):G(R)}return In(R)&&u.length<8?(e.consume(R),u+=String.fromCharCode(R),ie):G(R)}function xe(R){return R===93?(e.consume(R),j):G(R)}function j(R){return R===62?(e.consume(R),L):R===45&&l===2?(e.consume(R),j):G(R)}function L(R){return R===null||Ve(R)?(e.exit("htmlFlowData"),V(R)):(e.consume(R),L)}function V(R){return e.exit("htmlFlow"),t(R)}}function U_(e,t,r){const i=this;return l;function l(u){return Ve(u)?(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),o):r(u)}function o(u){return i.parser.lazy[i.now().line]?r(u):t(u)}}function $_(e,t,r){return i;function i(l){return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),e.attempt(uo,t,r)}}const H_={name:"htmlText",tokenize:q_};function q_(e,t,r){const i=this;let l,o,u;return d;function d(j){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(j),f}function f(j){return j===33?(e.consume(j),h):j===47?(e.consume(j),S):j===63?(e.consume(j),N):In(j)?(e.consume(j),z):r(j)}function h(j){return j===45?(e.consume(j),m):j===91?(e.consume(j),o=0,C):In(j)?(e.consume(j),F):r(j)}function m(j){return j===45?(e.consume(j),b):r(j)}function p(j){return j===null?r(j):j===45?(e.consume(j),y):Ve(j)?(u=p,Y(j)):(e.consume(j),p)}function y(j){return j===45?(e.consume(j),b):p(j)}function b(j){return j===62?I(j):j===45?y(j):p(j)}function C(j){const L="CDATA[";return j===L.charCodeAt(o++)?(e.consume(j),o===L.length?k:C):r(j)}function k(j){return j===null?r(j):j===93?(e.consume(j),v):Ve(j)?(u=k,Y(j)):(e.consume(j),k)}function v(j){return j===93?(e.consume(j),A):k(j)}function A(j){return j===62?I(j):j===93?(e.consume(j),A):k(j)}function F(j){return j===null||j===62?I(j):Ve(j)?(u=F,Y(j)):(e.consume(j),F)}function N(j){return j===null?r(j):j===63?(e.consume(j),_):Ve(j)?(u=N,Y(j)):(e.consume(j),N)}function _(j){return j===62?I(j):N(j)}function S(j){return In(j)?(e.consume(j),w):r(j)}function w(j){return j===45||Rn(j)?(e.consume(j),w):O(j)}function O(j){return Ve(j)?(u=O,Y(j)):dt(j)?(e.consume(j),O):I(j)}function z(j){return j===45||Rn(j)?(e.consume(j),z):j===47||j===62||Pt(j)?P(j):r(j)}function P(j){return j===47?(e.consume(j),I):j===58||j===95||In(j)?(e.consume(j),T):Ve(j)?(u=P,Y(j)):dt(j)?(e.consume(j),P):I(j)}function T(j){return j===45||j===46||j===58||j===95||Rn(j)?(e.consume(j),T):$(j)}function $(j){return j===61?(e.consume(j),G):Ve(j)?(u=$,Y(j)):dt(j)?(e.consume(j),$):P(j)}function G(j){return j===null||j===60||j===61||j===62||j===96?r(j):j===34||j===39?(e.consume(j),l=j,ae):Ve(j)?(u=G,Y(j)):dt(j)?(e.consume(j),G):(e.consume(j),ee)}function ae(j){return j===l?(e.consume(j),l=void 0,K):j===null?r(j):Ve(j)?(u=ae,Y(j)):(e.consume(j),ae)}function ee(j){return j===null||j===34||j===39||j===60||j===61||j===96?r(j):j===47||j===62||Pt(j)?P(j):(e.consume(j),ee)}function K(j){return j===47||j===62||Pt(j)?P(j):r(j)}function I(j){return j===62?(e.consume(j),e.exit("htmlTextData"),e.exit("htmlText"),t):r(j)}function Y(j){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(j),e.exit("lineEnding"),ie}function ie(j){return dt(j)?gt(e,xe,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(j):xe(j)}function xe(j){return e.enter("htmlTextData"),u(j)}}const Mf={name:"labelEnd",resolveAll:K_,resolveTo:Y_,tokenize:X_},G_={tokenize:W_},V_={tokenize:Z_},Q_={tokenize:J_};function K_(e){let t=-1;const r=[];for(;++t<e.length;){const i=e[t][1];if(r.push(e[t]),i.type==="labelImage"||i.type==="labelLink"||i.type==="labelEnd"){const l=i.type==="labelImage"?4:2;i.type="data",t+=l}}return e.length!==r.length&&xr(e,0,e.length,r),e}function Y_(e,t){let r=e.length,i=0,l,o,u,d;for(;r--;)if(l=e[r][1],o){if(l.type==="link"||l.type==="labelLink"&&l._inactive)break;e[r][0]==="enter"&&l.type==="labelLink"&&(l._inactive=!0)}else if(u){if(e[r][0]==="enter"&&(l.type==="labelImage"||l.type==="labelLink")&&!l._balanced&&(o=r,l.type!=="labelLink")){i=2;break}}else l.type==="labelEnd"&&(u=r);const f={type:e[o][1].type==="labelLink"?"link":"image",start:{...e[o][1].start},end:{...e[e.length-1][1].end}},h={type:"label",start:{...e[o][1].start},end:{...e[u][1].end}},m={type:"labelText",start:{...e[o+i+2][1].end},end:{...e[u-2][1].start}};return d=[["enter",f,t],["enter",h,t]],d=Dr(d,e.slice(o+1,o+i+3)),d=Dr(d,[["enter",m,t]]),d=Dr(d,fc(t.parser.constructs.insideSpan.null,e.slice(o+i+4,u-3),t)),d=Dr(d,[["exit",m,t],e[u-2],e[u-1],["exit",h,t]]),d=Dr(d,e.slice(u+1)),d=Dr(d,[["exit",f,t]]),xr(e,o,e.length,d),e}function X_(e,t,r){const i=this;let l=i.events.length,o,u;for(;l--;)if((i.events[l][1].type==="labelImage"||i.events[l][1].type==="labelLink")&&!i.events[l][1]._balanced){o=i.events[l][1];break}return d;function d(y){return o?o._inactive?p(y):(u=i.parser.defined.includes(zr(i.sliceSerialize({start:o.end,end:i.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(y),e.exit("labelMarker"),e.exit("labelEnd"),f):r(y)}function f(y){return y===40?e.attempt(G_,m,u?m:p)(y):y===91?e.attempt(V_,m,u?h:p)(y):u?m(y):p(y)}function h(y){return e.attempt(Q_,m,p)(y)}function m(y){return t(y)}function p(y){return o._balanced=!0,r(y)}}function W_(e,t,r){return i;function i(p){return e.enter("resource"),e.enter("resourceMarker"),e.consume(p),e.exit("resourceMarker"),l}function l(p){return Pt(p)?Hl(e,o)(p):o(p)}function o(p){return p===41?m(p):bE(e,u,d,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(p)}function u(p){return Pt(p)?Hl(e,f)(p):m(p)}function d(p){return r(p)}function f(p){return p===34||p===39||p===40?vE(e,h,r,"resourceTitle","resourceTitleMarker","resourceTitleString")(p):m(p)}function h(p){return Pt(p)?Hl(e,m)(p):m(p)}function m(p){return p===41?(e.enter("resourceMarker"),e.consume(p),e.exit("resourceMarker"),e.exit("resource"),t):r(p)}}function Z_(e,t,r){const i=this;return l;function l(d){return CE.call(i,e,o,u,"reference","referenceMarker","referenceString")(d)}function o(d){return i.parser.defined.includes(zr(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)))?t(d):r(d)}function u(d){return r(d)}}function J_(e,t,r){return i;function i(o){return e.enter("reference"),e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),l}function l(o){return o===93?(e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),e.exit("reference"),t):r(o)}}const eM={name:"labelStartImage",resolveAll:Mf.resolveAll,tokenize:tM};function tM(e,t,r){const i=this;return l;function l(d){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(d),e.exit("labelImageMarker"),o}function o(d){return d===91?(e.enter("labelMarker"),e.consume(d),e.exit("labelMarker"),e.exit("labelImage"),u):r(d)}function u(d){return d===94&&"_hiddenFootnoteSupport"in i.parser.constructs?r(d):t(d)}}const nM={name:"labelStartLink",resolveAll:Mf.resolveAll,tokenize:rM};function rM(e,t,r){const i=this;return l;function l(u){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(u),e.exit("labelMarker"),e.exit("labelLink"),o}function o(u){return u===94&&"_hiddenFootnoteSupport"in i.parser.constructs?r(u):t(u)}}const zx={name:"lineEnding",tokenize:aM};function aM(e,t){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),gt(e,t,"linePrefix")}}const Q0={name:"thematicBreak",tokenize:iM};function iM(e,t,r){let i=0,l;return o;function o(h){return e.enter("thematicBreak"),u(h)}function u(h){return l=h,d(h)}function d(h){return h===l?(e.enter("thematicBreakSequence"),f(h)):i>=3&&(h===null||Ve(h))?(e.exit("thematicBreak"),t(h)):r(h)}function f(h){return h===l?(e.consume(h),i++,f):(e.exit("thematicBreakSequence"),dt(h)?gt(e,d,"whitespace")(h):d(h))}}const Yn={continuation:{tokenize:cM},exit:xM,name:"list",tokenize:oM},sM={partial:!0,tokenize:dM},lM={partial:!0,tokenize:uM};function oM(e,t,r){const i=this,l=i.events[i.events.length-1];let o=l&&l[1].type==="linePrefix"?l[2].sliceSerialize(l[1],!0).length:0,u=0;return d;function d(b){const C=i.containerState.type||(b===42||b===43||b===45?"listUnordered":"listOrdered");if(C==="listUnordered"?!i.containerState.marker||b===i.containerState.marker:_d(b)){if(i.containerState.type||(i.containerState.type=C,e.enter(C,{_container:!0})),C==="listUnordered")return e.enter("listItemPrefix"),b===42||b===45?e.check(Q0,r,h)(b):h(b);if(!i.interrupt||b===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),f(b)}return r(b)}function f(b){return _d(b)&&++u<10?(e.consume(b),f):(!i.interrupt||u<2)&&(i.containerState.marker?b===i.containerState.marker:b===41||b===46)?(e.exit("listItemValue"),h(b)):r(b)}function h(b){return e.enter("listItemMarker"),e.consume(b),e.exit("listItemMarker"),i.containerState.marker=i.containerState.marker||b,e.check(uo,i.interrupt?r:m,e.attempt(sM,y,p))}function m(b){return i.containerState.initialBlankLine=!0,o++,y(b)}function p(b){return dt(b)?(e.enter("listItemPrefixWhitespace"),e.consume(b),e.exit("listItemPrefixWhitespace"),y):r(b)}function y(b){return i.containerState.size=o+i.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(b)}}function cM(e,t,r){const i=this;return i.containerState._closeFlow=void 0,e.check(uo,l,o);function l(d){return i.containerState.furtherBlankLines=i.containerState.furtherBlankLines||i.containerState.initialBlankLine,gt(e,t,"listItemIndent",i.containerState.size+1)(d)}function o(d){return i.containerState.furtherBlankLines||!dt(d)?(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,u(d)):(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,e.attempt(lM,t,u)(d))}function u(d){return i.containerState._closeFlow=!0,i.interrupt=void 0,gt(e,e.attempt(Yn,t,r),"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(d)}}function uM(e,t,r){const i=this;return gt(e,l,"listItemIndent",i.containerState.size+1);function l(o){const u=i.events[i.events.length-1];return u&&u[1].type==="listItemIndent"&&u[2].sliceSerialize(u[1],!0).length===i.containerState.size?t(o):r(o)}}function xM(e){e.exit(this.containerState.type)}function dM(e,t,r){const i=this;return gt(e,l,"listItemPrefixWhitespace",i.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function l(o){const u=i.events[i.events.length-1];return!dt(o)&&u&&u[1].type==="listItemPrefixWhitespace"?t(o):r(o)}}const X9={name:"setextUnderline",resolveTo:fM,tokenize:hM};function fM(e,t){let r=e.length,i,l,o;for(;r--;)if(e[r][0]==="enter"){if(e[r][1].type==="content"){i=r;break}e[r][1].type==="paragraph"&&(l=r)}else e[r][1].type==="content"&&e.splice(r,1),!o&&e[r][1].type==="definition"&&(o=r);const u={type:"setextHeading",start:{...e[i][1].start},end:{...e[e.length-1][1].end}};return e[l][1].type="setextHeadingText",o?(e.splice(l,0,["enter",u,t]),e.splice(o+1,0,["exit",e[i][1],t]),e[i][1].end={...e[o][1].end}):e[i][1]=u,e.push(["exit",u,t]),e}function hM(e,t,r){const i=this;let l;return o;function o(h){let m=i.events.length,p;for(;m--;)if(i.events[m][1].type!=="lineEnding"&&i.events[m][1].type!=="linePrefix"&&i.events[m][1].type!=="content"){p=i.events[m][1].type==="paragraph";break}return!i.parser.lazy[i.now().line]&&(i.interrupt||p)?(e.enter("setextHeadingLine"),l=h,u(h)):r(h)}function u(h){return e.enter("setextHeadingLineSequence"),d(h)}function d(h){return h===l?(e.consume(h),d):(e.exit("setextHeadingLineSequence"),dt(h)?gt(e,f,"lineSuffix")(h):f(h))}function f(h){return h===null||Ve(h)?(e.exit("setextHeadingLine"),t(h)):r(h)}}const pM={tokenize:mM};function mM(e){const t=this,r=e.attempt(uo,i,e.attempt(this.parser.constructs.flowInitial,l,gt(e,e.attempt(this.parser.constructs.flow,l,e.attempt(C_,l)),"linePrefix")));return r;function i(o){if(o===null){e.consume(o);return}return e.enter("lineEndingBlank"),e.consume(o),e.exit("lineEndingBlank"),t.currentConstruct=void 0,r}function l(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),t.currentConstruct=void 0,r}}const gM={resolveAll:AE()},EM=kE("string"),yM=kE("text");function kE(e){return{resolveAll:AE(e==="text"?bM:void 0),tokenize:t};function t(r){const i=this,l=this.parser.constructs[e],o=r.attempt(l,u,d);return u;function u(m){return h(m)?o(m):d(m)}function d(m){if(m===null){r.consume(m);return}return r.enter("data"),r.consume(m),f}function f(m){return h(m)?(r.exit("data"),o(m)):(r.consume(m),f)}function h(m){if(m===null)return!0;const p=l[m];let y=-1;if(p)for(;++y<p.length;){const b=p[y];if(!b.previous||b.previous.call(i,i.previous))return!0}return!1}}}function AE(e){return t;function t(r,i){let l=-1,o;for(;++l<=r.length;)o===void 0?r[l]&&r[l][1].type==="data"&&(o=l,l++):(!r[l]||r[l][1].type!=="data")&&(l!==o+2&&(r[o][1].end=r[l-1][1].end,r.splice(o+2,l-o-2),l=o+2),o=void 0);return e?e(r,i):r}}function bM(e,t){let r=0;for(;++r<=e.length;)if((r===e.length||e[r][1].type==="lineEnding")&&e[r-1][1].type==="data"){const i=e[r-1][1],l=t.sliceStream(i);let o=l.length,u=-1,d=0,f;for(;o--;){const h=l[o];if(typeof h=="string"){for(u=h.length;h.charCodeAt(u-1)===32;)d++,u--;if(u)break;u=-1}else if(h===-2)f=!0,d++;else if(h!==-1){o++;break}}if(t._contentTypeTextTrailing&&r===e.length&&(d=0),d){const h={type:r===e.length||f||d<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:o?u:i.start._bufferIndex+u,_index:i.start._index+o,line:i.end.line,column:i.end.column-d,offset:i.end.offset-d},end:{...i.end}};i.end={...h.start},i.start.offset===i.end.offset?Object.assign(i,h):(e.splice(r,0,["enter",h,t],["exit",h,t]),r+=2)}r++}return e}const CM={42:Yn,43:Yn,45:Yn,48:Yn,49:Yn,50:Yn,51:Yn,52:Yn,53:Yn,54:Yn,55:Yn,56:Yn,57:Yn,62:mE},vM={91:D_},kM={[-2]:Ox,[-1]:Ox,32:Ox},AM={35:M_,42:Q0,45:[X9,Q0],60:O_,61:X9,95:Q0,96:K9,126:K9},BM={38:EE,92:gE},DM={[-5]:zx,[-4]:zx,[-3]:zx,33:eM,38:EE,42:Md,60:[n_,H_],91:nM,92:[N_,gE],93:Mf,95:Md,96:p_},wM={null:[Md,gM]},FM={null:[42,95]},SM={null:[]},NM=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:FM,contentInitial:vM,disable:SM,document:CM,flow:AM,flowInitial:kM,insideSpan:wM,string:BM,text:DM},Symbol.toStringTag,{value:"Module"}));function _M(e,t,r){let i={_bufferIndex:-1,_index:0,line:r&&r.line||1,column:r&&r.column||1,offset:r&&r.offset||0};const l={},o=[];let u=[],d=[];const f={attempt:O(S),check:O(w),consume:F,enter:N,exit:_,interrupt:O(w,{interrupt:!0})},h={code:null,containerState:{},defineSkip:k,events:[],now:C,parser:e,previous:null,sliceSerialize:y,sliceStream:b,write:p};let m=t.tokenize.call(h,f);return t.resolveAll&&o.push(t),h;function p($){return u=Dr(u,$),v(),u[u.length-1]!==null?[]:(z(t,0),h.events=fc(o,h.events,h),h.events)}function y($,G){return jM(b($),G)}function b($){return MM(u,$)}function C(){const{_bufferIndex:$,_index:G,line:ae,column:ee,offset:K}=i;return{_bufferIndex:$,_index:G,line:ae,column:ee,offset:K}}function k($){l[$.line]=$.column,T()}function v(){let $;for(;i._index<u.length;){const G=u[i._index];if(typeof G=="string")for($=i._index,i._bufferIndex<0&&(i._bufferIndex=0);i._index===$&&i._bufferIndex<G.length;)A(G.charCodeAt(i._bufferIndex));else A(G)}}function A($){m=m($)}function F($){Ve($)?(i.line++,i.column=1,i.offset+=$===-3?2:1,T()):$!==-1&&(i.column++,i.offset++),i._bufferIndex<0?i._index++:(i._bufferIndex++,i._bufferIndex===u[i._index].length&&(i._bufferIndex=-1,i._index++)),h.previous=$}function N($,G){const ae=G||{};return ae.type=$,ae.start=C(),h.events.push(["enter",ae,h]),d.push(ae),ae}function _($){const G=d.pop();return G.end=C(),h.events.push(["exit",G,h]),G}function S($,G){z($,G.from)}function w($,G){G.restore()}function O($,G){return ae;function ae(ee,K,I){let Y,ie,xe,j;return Array.isArray(ee)?V(ee):"tokenize"in ee?V([ee]):L(ee);function L(W){return me;function me(Ue){const Be=Ue!==null&&W[Ue],tt=Ue!==null&&W.null,ct=[...Array.isArray(Be)?Be:Be?[Be]:[],...Array.isArray(tt)?tt:tt?[tt]:[]];return V(ct)(Ue)}}function V(W){return Y=W,ie=0,W.length===0?I:R(W[ie])}function R(W){return me;function me(Ue){return j=P(),xe=W,W.partial||(h.currentConstruct=W),W.name&&h.parser.constructs.disable.null.includes(W.name)?be():W.tokenize.call(G?Object.assign(Object.create(h),G):h,f,se,be)(Ue)}}function se(W){return $(xe,j),K}function be(W){return j.restore(),++ie<Y.length?R(Y[ie]):I}}}function z($,G){$.resolveAll&&!o.includes($)&&o.push($),$.resolve&&xr(h.events,G,h.events.length-G,$.resolve(h.events.slice(G),h)),$.resolveTo&&(h.events=$.resolveTo(h.events,h))}function P(){const $=C(),G=h.previous,ae=h.currentConstruct,ee=h.events.length,K=Array.from(d);return{from:ee,restore:I};function I(){i=$,h.previous=G,h.currentConstruct=ae,h.events.length=ee,d=K,T()}}function T(){i.line in l&&i.column<2&&(i.column=l[i.line],i.offset+=l[i.line]-1)}}function MM(e,t){const r=t.start._index,i=t.start._bufferIndex,l=t.end._index,o=t.end._bufferIndex;let u;if(r===l)u=[e[r].slice(i,o)];else{if(u=e.slice(r,l),i>-1){const d=u[0];typeof d=="string"?u[0]=d.slice(i):u.shift()}o>0&&u.push(e[l].slice(0,o))}return u}function jM(e,t){let r=-1;const i=[];let l;for(;++r<e.length;){const o=e[r];let u;if(typeof o=="string")u=o;else switch(o){case-5:{u="\r";break}case-4:{u=`
|
|
15
|
-
`;break}case-3:{u=`\r
|
|
16
|
-
`;break}case-2:{u=t?" ":" ";break}case-1:{if(!t&&l)continue;u=" ";break}default:u=String.fromCharCode(o)}l=o===-2,i.push(u)}return i.join("")}function TM(e){const i={constructs:hE([NM,...(e||{}).extensions||[]]),content:l(YN),defined:[],document:l(WN),flow:l(pM),lazy:{},string:l(EM),text:l(yM)};return i;function l(o){return u;function u(d){return _M(i,o,d)}}}function RM(e){for(;!yE(e););return e}const W9=/[\0\t\n\r]/g;function OM(){let e=1,t="",r=!0,i;return l;function l(o,u,d){const f=[];let h,m,p,y,b;for(o=t+(typeof o=="string"?o.toString():new TextDecoder(u||void 0).decode(o)),p=0,t="",r&&(o.charCodeAt(0)===65279&&p++,r=void 0);p<o.length;){if(W9.lastIndex=p,h=W9.exec(o),y=h&&h.index!==void 0?h.index:o.length,b=o.charCodeAt(y),!h){t=o.slice(p);break}if(b===10&&p===y&&i)f.push(-3),i=void 0;else switch(i&&(f.push(-5),i=void 0),p<y&&(f.push(o.slice(p,y)),e+=y-p),b){case 0:{f.push(65533),e++;break}case 9:{for(m=Math.ceil(e/4)*4,f.push(-2);e++<m;)f.push(-1);break}case 10:{f.push(-4),e=1;break}default:i=!0,e=1}p=y+1}return d&&(i&&f.push(-5),t&&f.push(t),f.push(null)),f}}const zM=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function LM(e){return e.replace(zM,PM)}function PM(e,t,r){if(t)return t;if(r.charCodeAt(0)===35){const l=r.charCodeAt(1),o=l===120||l===88;return pE(r.slice(o?2:1),o?16:10)}return _f(r)||e}const BE={}.hasOwnProperty;function IM(e,t,r){return t&&typeof t=="object"&&(r=t,t=void 0),UM(r)(RM(TM(r).document().write(OM()(e,t,!0))))}function UM(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o(Et),autolinkProtocol:P,autolinkEmail:P,atxHeading:o(ne),blockQuote:o(tt),characterEscape:P,characterReference:P,codeFenced:o(ct),codeFencedFenceInfo:u,codeFencedFenceMeta:u,codeIndented:o(ct,u),codeText:o(we,u),codeTextData:P,data:P,codeFlowValue:P,definition:o(Nt),definitionDestinationString:u,definitionLabelString:u,definitionTitleString:u,emphasis:o(Fe),hardBreakEscape:o(Oe),hardBreakTrailing:o(Oe),htmlFlow:o(at,u),htmlFlowData:P,htmlText:o(at,u),htmlTextData:P,image:o(Ct),label:u,link:o(Et),listItem:o(nt),listItemValue:y,listOrdered:o(hn,p),listUnordered:o(hn),paragraph:o(yn),reference:R,referenceString:u,resourceDestinationString:u,resourceTitleString:u,setextHeading:o(ne),strong:o(ge),thematicBreak:o(kn)},exit:{atxHeading:f(),atxHeadingSequence:S,autolink:f(),autolinkEmail:Be,autolinkProtocol:Ue,blockQuote:f(),characterEscapeValue:T,characterReferenceMarkerHexadecimal:be,characterReferenceMarkerNumeric:be,characterReferenceValue:W,characterReference:me,codeFenced:f(v),codeFencedFence:k,codeFencedFenceInfo:b,codeFencedFenceMeta:C,codeFlowValue:T,codeIndented:f(A),codeText:f(K),codeTextData:T,data:T,definition:f(),definitionDestinationString:_,definitionLabelString:F,definitionTitleString:N,emphasis:f(),hardBreakEscape:f(G),hardBreakTrailing:f(G),htmlFlow:f(ae),htmlFlowData:T,htmlText:f(ee),htmlTextData:T,image:f(Y),label:xe,labelText:ie,lineEnding:$,link:f(I),listItem:f(),listOrdered:f(),listUnordered:f(),paragraph:f(),referenceString:se,resourceDestinationString:j,resourceTitleString:L,resource:V,setextHeading:f(z),setextHeadingLineSequence:O,setextHeadingText:w,strong:f(),thematicBreak:f()}};DE(t,(e||{}).mdastExtensions||[]);const r={};return i;function i(le){let Z={type:"root",children:[]};const _e={stack:[Z],tokenStack:[],config:t,enter:d,exit:h,buffer:u,resume:m,data:r},Ge=[];let Xe=-1;for(;++Xe<le.length;)if(le[Xe][1].type==="listOrdered"||le[Xe][1].type==="listUnordered")if(le[Xe][0]==="enter")Ge.push(Xe);else{const nn=Ge.pop();Xe=l(le,nn,Xe)}for(Xe=-1;++Xe<le.length;){const nn=t[le[Xe][0]];BE.call(nn,le[Xe][1].type)&&nn[le[Xe][1].type].call(Object.assign({sliceSerialize:le[Xe][2].sliceSerialize},_e),le[Xe][1])}if(_e.tokenStack.length>0){const nn=_e.tokenStack[_e.tokenStack.length-1];(nn[1]||Z9).call(_e,void 0,nn[0])}for(Z.position={start:Ja(le.length>0?le[0][1].start:{line:1,column:1,offset:0}),end:Ja(le.length>0?le[le.length-2][1].end:{line:1,column:1,offset:0})},Xe=-1;++Xe<t.transforms.length;)Z=t.transforms[Xe](Z)||Z;return Z}function l(le,Z,_e){let Ge=Z-1,Xe=-1,nn=!1,bn,Yt,Bt,Cn;for(;++Ge<=_e;){const vt=le[Ge];switch(vt[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{vt[0]==="enter"?Xe++:Xe--,Cn=void 0;break}case"lineEndingBlank":{vt[0]==="enter"&&(bn&&!Cn&&!Xe&&!Bt&&(Bt=Ge),Cn=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Cn=void 0}if(!Xe&&vt[0]==="enter"&&vt[1].type==="listItemPrefix"||Xe===-1&&vt[0]==="exit"&&(vt[1].type==="listUnordered"||vt[1].type==="listOrdered")){if(bn){let hr=Ge;for(Yt=void 0;hr--;){const rn=le[hr];if(rn[1].type==="lineEnding"||rn[1].type==="lineEndingBlank"){if(rn[0]==="exit")continue;Yt&&(le[Yt][1].type="lineEndingBlank",nn=!0),rn[1].type="lineEnding",Yt=hr}else if(!(rn[1].type==="linePrefix"||rn[1].type==="blockQuotePrefix"||rn[1].type==="blockQuotePrefixWhitespace"||rn[1].type==="blockQuoteMarker"||rn[1].type==="listItemIndent"))break}Bt&&(!Yt||Bt<Yt)&&(bn._spread=!0),bn.end=Object.assign({},Yt?le[Yt][1].start:vt[1].end),le.splice(Yt||Ge,0,["exit",bn,vt[2]]),Ge++,_e++}if(vt[1].type==="listItemPrefix"){const hr={type:"listItem",_spread:!1,start:Object.assign({},vt[1].start),end:void 0};bn=hr,le.splice(Ge,0,["enter",hr,vt[2]]),Ge++,_e++,Bt=void 0,Cn=!0}}}return le[Z][1]._spread=nn,_e}function o(le,Z){return _e;function _e(Ge){d.call(this,le(Ge),Ge),Z&&Z.call(this,Ge)}}function u(){this.stack.push({type:"fragment",children:[]})}function d(le,Z,_e){this.stack[this.stack.length-1].children.push(le),this.stack.push(le),this.tokenStack.push([Z,_e||void 0]),le.position={start:Ja(Z.start),end:void 0}}function f(le){return Z;function Z(_e){le&&le.call(this,_e),h.call(this,_e)}}function h(le,Z){const _e=this.stack.pop(),Ge=this.tokenStack.pop();if(Ge)Ge[0].type!==le.type&&(Z?Z.call(this,le,Ge[0]):(Ge[1]||Z9).call(this,le,Ge[0]));else throw new Error("Cannot close `"+le.type+"` ("+$l({start:le.start,end:le.end})+"): it’s not open");_e.position.end=Ja(le.end)}function m(){return Nf(this.stack.pop())}function p(){this.data.expectingFirstListItemValue=!0}function y(le){if(this.data.expectingFirstListItemValue){const Z=this.stack[this.stack.length-2];Z.start=Number.parseInt(this.sliceSerialize(le),10),this.data.expectingFirstListItemValue=void 0}}function b(){const le=this.resume(),Z=this.stack[this.stack.length-1];Z.lang=le}function C(){const le=this.resume(),Z=this.stack[this.stack.length-1];Z.meta=le}function k(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function v(){const le=this.resume(),Z=this.stack[this.stack.length-1];Z.value=le.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function A(){const le=this.resume(),Z=this.stack[this.stack.length-1];Z.value=le.replace(/(\r?\n|\r)$/g,"")}function F(le){const Z=this.resume(),_e=this.stack[this.stack.length-1];_e.label=Z,_e.identifier=zr(this.sliceSerialize(le)).toLowerCase()}function N(){const le=this.resume(),Z=this.stack[this.stack.length-1];Z.title=le}function _(){const le=this.resume(),Z=this.stack[this.stack.length-1];Z.url=le}function S(le){const Z=this.stack[this.stack.length-1];if(!Z.depth){const _e=this.sliceSerialize(le).length;Z.depth=_e}}function w(){this.data.setextHeadingSlurpLineEnding=!0}function O(le){const Z=this.stack[this.stack.length-1];Z.depth=this.sliceSerialize(le).codePointAt(0)===61?1:2}function z(){this.data.setextHeadingSlurpLineEnding=void 0}function P(le){const _e=this.stack[this.stack.length-1].children;let Ge=_e[_e.length-1];(!Ge||Ge.type!=="text")&&(Ge=Ne(),Ge.position={start:Ja(le.start),end:void 0},_e.push(Ge)),this.stack.push(Ge)}function T(le){const Z=this.stack.pop();Z.value+=this.sliceSerialize(le),Z.position.end=Ja(le.end)}function $(le){const Z=this.stack[this.stack.length-1];if(this.data.atHardBreak){const _e=Z.children[Z.children.length-1];_e.position.end=Ja(le.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(Z.type)&&(P.call(this,le),T.call(this,le))}function G(){this.data.atHardBreak=!0}function ae(){const le=this.resume(),Z=this.stack[this.stack.length-1];Z.value=le}function ee(){const le=this.resume(),Z=this.stack[this.stack.length-1];Z.value=le}function K(){const le=this.resume(),Z=this.stack[this.stack.length-1];Z.value=le}function I(){const le=this.stack[this.stack.length-1];if(this.data.inReference){const Z=this.data.referenceType||"shortcut";le.type+="Reference",le.referenceType=Z,delete le.url,delete le.title}else delete le.identifier,delete le.label;this.data.referenceType=void 0}function Y(){const le=this.stack[this.stack.length-1];if(this.data.inReference){const Z=this.data.referenceType||"shortcut";le.type+="Reference",le.referenceType=Z,delete le.url,delete le.title}else delete le.identifier,delete le.label;this.data.referenceType=void 0}function ie(le){const Z=this.sliceSerialize(le),_e=this.stack[this.stack.length-2];_e.label=LM(Z),_e.identifier=zr(Z).toLowerCase()}function xe(){const le=this.stack[this.stack.length-1],Z=this.resume(),_e=this.stack[this.stack.length-1];if(this.data.inReference=!0,_e.type==="link"){const Ge=le.children;_e.children=Ge}else _e.alt=Z}function j(){const le=this.resume(),Z=this.stack[this.stack.length-1];Z.url=le}function L(){const le=this.resume(),Z=this.stack[this.stack.length-1];Z.title=le}function V(){this.data.inReference=void 0}function R(){this.data.referenceType="collapsed"}function se(le){const Z=this.resume(),_e=this.stack[this.stack.length-1];_e.label=Z,_e.identifier=zr(this.sliceSerialize(le)).toLowerCase(),this.data.referenceType="full"}function be(le){this.data.characterReferenceType=le.type}function W(le){const Z=this.sliceSerialize(le),_e=this.data.characterReferenceType;let Ge;_e?(Ge=pE(Z,_e==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Ge=_f(Z);const Xe=this.stack[this.stack.length-1];Xe.value+=Ge}function me(le){const Z=this.stack.pop();Z.position.end=Ja(le.end)}function Ue(le){T.call(this,le);const Z=this.stack[this.stack.length-1];Z.url=this.sliceSerialize(le)}function Be(le){T.call(this,le);const Z=this.stack[this.stack.length-1];Z.url="mailto:"+this.sliceSerialize(le)}function tt(){return{type:"blockquote",children:[]}}function ct(){return{type:"code",lang:null,meta:null,value:""}}function we(){return{type:"inlineCode",value:""}}function Nt(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Fe(){return{type:"emphasis",children:[]}}function ne(){return{type:"heading",depth:0,children:[]}}function Oe(){return{type:"break"}}function at(){return{type:"html",value:""}}function Ct(){return{type:"image",title:null,url:"",alt:null}}function Et(){return{type:"link",title:null,url:"",children:[]}}function hn(le){return{type:"list",ordered:le.type==="listOrdered",start:null,spread:le._spread,children:[]}}function nt(le){return{type:"listItem",spread:le._spread,checked:null,children:[]}}function yn(){return{type:"paragraph",children:[]}}function ge(){return{type:"strong",children:[]}}function Ne(){return{type:"text",value:""}}function kn(){return{type:"thematicBreak"}}}function Ja(e){return{line:e.line,column:e.column,offset:e.offset}}function DE(e,t){let r=-1;for(;++r<t.length;){const i=t[r];Array.isArray(i)?DE(e,i):$M(e,i)}}function $M(e,t){let r;for(r in t)if(BE.call(t,r))switch(r){case"canContainEols":{const i=t[r];i&&e[r].push(...i);break}case"transforms":{const i=t[r];i&&e[r].push(...i);break}case"enter":case"exit":{const i=t[r];i&&Object.assign(e[r],i);break}}}function Z9(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+$l({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+$l({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+$l({start:t.start,end:t.end})+") is still open")}function HM(e){const t=this;t.parser=r;function r(i){return IM(i,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function qM(e,t){const r={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,r),e.applyData(t,r)}function GM(e,t){const r={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,r),[e.applyData(t,r),{type:"text",value:`
|
|
17
|
-
`}]}function VM(e,t){const r=t.value?t.value+`
|
|
18
|
-
`:"",i={},l=t.lang?t.lang.split(/\s+/):[];l.length>0&&(i.className=["language-"+l[0]]);let o={type:"element",tagName:"code",properties:i,children:[{type:"text",value:r}]};return t.meta&&(o.data={meta:t.meta}),e.patch(t,o),o=e.applyData(t,o),o={type:"element",tagName:"pre",properties:{},children:[o]},e.patch(t,o),o}function QM(e,t){const r={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function KM(e,t){const r={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function YM(e,t){const r=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",i=String(t.identifier).toUpperCase(),l=Rs(i.toLowerCase()),o=e.footnoteOrder.indexOf(i);let u,d=e.footnoteCounts.get(i);d===void 0?(d=0,e.footnoteOrder.push(i),u=e.footnoteOrder.length):u=o+1,d+=1,e.footnoteCounts.set(i,d);const f={type:"element",tagName:"a",properties:{href:"#"+r+"fn-"+l,id:r+"fnref-"+l+(d>1?"-"+d:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(u)}]};e.patch(t,f);const h={type:"element",tagName:"sup",properties:{},children:[f]};return e.patch(t,h),e.applyData(t,h)}function XM(e,t){const r={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function WM(e,t){if(e.options.allowDangerousHtml){const r={type:"raw",value:t.value};return e.patch(t,r),e.applyData(t,r)}}function wE(e,t){const r=t.referenceType;let i="]";if(r==="collapsed"?i+="[]":r==="full"&&(i+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+i}];const l=e.all(t),o=l[0];o&&o.type==="text"?o.value="["+o.value:l.unshift({type:"text",value:"["});const u=l[l.length-1];return u&&u.type==="text"?u.value+=i:l.push({type:"text",value:i}),l}function ZM(e,t){const r=String(t.identifier).toUpperCase(),i=e.definitionById.get(r);if(!i)return wE(e,t);const l={src:Rs(i.url||""),alt:t.alt};i.title!==null&&i.title!==void 0&&(l.title=i.title);const o={type:"element",tagName:"img",properties:l,children:[]};return e.patch(t,o),e.applyData(t,o)}function JM(e,t){const r={src:Rs(t.url)};t.alt!==null&&t.alt!==void 0&&(r.alt=t.alt),t.title!==null&&t.title!==void 0&&(r.title=t.title);const i={type:"element",tagName:"img",properties:r,children:[]};return e.patch(t,i),e.applyData(t,i)}function ej(e,t){const r={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,r);const i={type:"element",tagName:"code",properties:{},children:[r]};return e.patch(t,i),e.applyData(t,i)}function tj(e,t){const r=String(t.identifier).toUpperCase(),i=e.definitionById.get(r);if(!i)return wE(e,t);const l={href:Rs(i.url||"")};i.title!==null&&i.title!==void 0&&(l.title=i.title);const o={type:"element",tagName:"a",properties:l,children:e.all(t)};return e.patch(t,o),e.applyData(t,o)}function nj(e,t){const r={href:Rs(t.url)};t.title!==null&&t.title!==void 0&&(r.title=t.title);const i={type:"element",tagName:"a",properties:r,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function rj(e,t,r){const i=e.all(t),l=r?aj(r):FE(t),o={},u=[];if(typeof t.checked=="boolean"){const m=i[0];let p;m&&m.type==="element"&&m.tagName==="p"?p=m:(p={type:"element",tagName:"p",properties:{},children:[]},i.unshift(p)),p.children.length>0&&p.children.unshift({type:"text",value:" "}),p.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let d=-1;for(;++d<i.length;){const m=i[d];(l||d!==0||m.type!=="element"||m.tagName!=="p")&&u.push({type:"text",value:`
|
|
19
|
-
`}),m.type==="element"&&m.tagName==="p"&&!l?u.push(...m.children):u.push(m)}const f=i[i.length-1];f&&(l||f.type!=="element"||f.tagName!=="p")&&u.push({type:"text",value:`
|
|
20
|
-
`});const h={type:"element",tagName:"li",properties:o,children:u};return e.patch(t,h),e.applyData(t,h)}function aj(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const r=e.children;let i=-1;for(;!t&&++i<r.length;)t=FE(r[i])}return t}function FE(e){const t=e.spread;return t??e.children.length>1}function ij(e,t){const r={},i=e.all(t);let l=-1;for(typeof t.start=="number"&&t.start!==1&&(r.start=t.start);++l<i.length;){const u=i[l];if(u.type==="element"&&u.tagName==="li"&&u.properties&&Array.isArray(u.properties.className)&&u.properties.className.includes("task-list-item")){r.className=["contains-task-list"];break}}const o={type:"element",tagName:t.ordered?"ol":"ul",properties:r,children:e.wrap(i,!0)};return e.patch(t,o),e.applyData(t,o)}function sj(e,t){const r={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function lj(e,t){const r={type:"root",children:e.wrap(e.all(t))};return e.patch(t,r),e.applyData(t,r)}function oj(e,t){const r={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function cj(e,t){const r=e.all(t),i=r.shift(),l=[];if(i){const u={type:"element",tagName:"thead",properties:{},children:e.wrap([i],!0)};e.patch(t.children[0],u),l.push(u)}if(r.length>0){const u={type:"element",tagName:"tbody",properties:{},children:e.wrap(r,!0)},d=Df(t.children[1]),f=lE(t.children[t.children.length-1]);d&&f&&(u.position={start:d,end:f}),l.push(u)}const o={type:"element",tagName:"table",properties:{},children:e.wrap(l,!0)};return e.patch(t,o),e.applyData(t,o)}function uj(e,t,r){const i=r?r.children:void 0,o=(i?i.indexOf(t):1)===0?"th":"td",u=r&&r.type==="table"?r.align:void 0,d=u?u.length:t.children.length;let f=-1;const h=[];for(;++f<d;){const p=t.children[f],y={},b=u?u[f]:void 0;b&&(y.align=b);let C={type:"element",tagName:o,properties:y,children:[]};p&&(C.children=e.all(p),e.patch(p,C),C=e.applyData(p,C)),h.push(C)}const m={type:"element",tagName:"tr",properties:{},children:e.wrap(h,!0)};return e.patch(t,m),e.applyData(t,m)}function xj(e,t){const r={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}const J9=9,e2=32;function dj(e){const t=String(e),r=/\r?\n|\r/g;let i=r.exec(t),l=0;const o=[];for(;i;)o.push(t2(t.slice(l,i.index),l>0,!0),i[0]),l=i.index+i[0].length,i=r.exec(t);return o.push(t2(t.slice(l),l>0,!1)),o.join("")}function t2(e,t,r){let i=0,l=e.length;if(t){let o=e.codePointAt(i);for(;o===J9||o===e2;)i++,o=e.codePointAt(i)}if(r){let o=e.codePointAt(l-1);for(;o===J9||o===e2;)l--,o=e.codePointAt(l-1)}return l>i?e.slice(i,l):""}function fj(e,t){const r={type:"text",value:dj(String(t.value))};return e.patch(t,r),e.applyData(t,r)}function hj(e,t){const r={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,r),e.applyData(t,r)}const pj={blockquote:qM,break:GM,code:VM,delete:QM,emphasis:KM,footnoteReference:YM,heading:XM,html:WM,imageReference:ZM,image:JM,inlineCode:ej,linkReference:tj,link:nj,listItem:rj,list:ij,paragraph:sj,root:lj,strong:oj,table:cj,tableCell:xj,tableRow:uj,text:fj,thematicBreak:hj,toml:O0,yaml:O0,definition:O0,footnoteDefinition:O0};function O0(){}const SE=-1,hc=0,ql=1,nc=2,jf=3,Tf=4,Rf=5,Of=6,NE=7,_E=8,ME=typeof self=="object"?self:globalThis,n2=(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 ME[e](t)},mj=(e,t)=>{const r=(l,o)=>(e.set(o,l),l),i=l=>{if(e.has(l))return e.get(l);const[o,u]=t[l];switch(o){case hc:case SE:return r(u,l);case ql:{const d=r([],l);for(const f of u)d.push(i(f));return d}case nc:{const d=r({},l);for(const[f,h]of u)d[i(f)]=i(h);return d}case jf:return r(new Date(u),l);case Tf:{const{source:d,flags:f}=u;return r(new RegExp(d,f),l)}case Rf:{const d=r(new Map,l);for(const[f,h]of u)d.set(i(f),i(h));return d}case Of:{const d=r(new Set,l);for(const f of u)d.add(i(f));return d}case NE:{const{name:d,message:f}=u;return r(typeof ME[d]=="function"?n2(d,f):new Error(f),l)}case _E:return r(BigInt(u),l);case"BigInt":return r(Object(BigInt(u)),l);case"ArrayBuffer":return r(new Uint8Array(u).buffer,u);case"DataView":{const{buffer:d}=new Uint8Array(u);return r(new DataView(d),u)}}return r(n2(o,u),l)};return i},r2=e=>mj(new Map,e)(0),Fi="",{toString:gj}={},{keys:Ej}=Object,Rl=e=>{const t=typeof e;if(t!=="object"||!e)return[hc,t];const r=gj.call(e).slice(8,-1);switch(r){case"Array":return[ql,Fi];case"Object":return[nc,Fi];case"Date":return[jf,Fi];case"RegExp":return[Tf,Fi];case"Map":return[Rf,Fi];case"Set":return[Of,Fi];case"DataView":return[ql,r]}return r.includes("Array")?[ql,r]:e instanceof Error?[NE,e.name||"Error"]:[nc,r]},z0=([e,t])=>e===hc&&(t==="function"||t==="symbol"),yj=(e,t,r,i)=>{const l=(u,d)=>{const f=i.push(u)-1;return r.set(d,f),f},o=u=>{if(r.has(u))return r.get(u);let[d,f]=Rl(u);switch(d){case hc:{let m=u;switch(f){case"bigint":d=_E,m=u.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+f);m=null;break;case"undefined":return l([SE],u)}return l([d,m],u)}case ql:{if(f){let y=u;return f==="DataView"?y=new Uint8Array(u.buffer):f==="ArrayBuffer"&&(y=new Uint8Array(u)),l([f,[...y]],u)}const m=[],p=l([d,m],u);for(const y of u)m.push(o(y));return p}case nc:{if(f)switch(f){case"BigInt":return l([f,u.toString()],u);case"Boolean":case"Number":case"String":return l([f,u.valueOf()],u)}if(t&&"toJSON"in u)return o(u.toJSON());const m=[],p=l([d,m],u);for(const y of Ej(u))(e||!z0(Rl(u[y])))&&m.push([o(y),o(u[y])]);return p}case jf:return l([d,isNaN(u.getTime())?Fi:u.toISOString()],u);case Tf:{const{source:m,flags:p}=u;return l([d,{source:m,flags:p}],u)}case Rf:{const m=[],p=l([d,m],u);for(const[y,b]of u)(e||!(z0(Rl(y))||z0(Rl(b))))&&m.push([o(y),o(b)]);return p}case Of:{const m=[],p=l([d,m],u);for(const y of u)(e||!z0(Rl(y)))&&m.push(o(y));return p}}const{message:h}=u;return l([d,{name:f,message:h}],u)};return o},a2=(e,{json:t,lossy:r}={})=>{const i=[];return yj(!(t||r),!!t,new Map,i)(e),i},rc=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?r2(a2(e,t)):structuredClone(e):(e,t)=>r2(a2(e,t));function bj(e,t){const r=[{type:"text",value:"↩"}];return t>1&&r.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),r}function Cj(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function vj(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=e.options.footnoteBackContent||bj,i=e.options.footnoteBackLabel||Cj,l=e.options.footnoteLabel||"Footnotes",o=e.options.footnoteLabelTagName||"h2",u=e.options.footnoteLabelProperties||{className:["sr-only"]},d=[];let f=-1;for(;++f<e.footnoteOrder.length;){const h=e.footnoteById.get(e.footnoteOrder[f]);if(!h)continue;const m=e.all(h),p=String(h.identifier).toUpperCase(),y=Rs(p.toLowerCase());let b=0;const C=[],k=e.footnoteCounts.get(p);for(;k!==void 0&&++b<=k;){C.length>0&&C.push({type:"text",value:" "});let F=typeof r=="string"?r:r(f,b);typeof F=="string"&&(F={type:"text",value:F}),C.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+y+(b>1?"-"+b:""),dataFootnoteBackref:"",ariaLabel:typeof i=="string"?i:i(f,b),className:["data-footnote-backref"]},children:Array.isArray(F)?F:[F]})}const v=m[m.length-1];if(v&&v.type==="element"&&v.tagName==="p"){const F=v.children[v.children.length-1];F&&F.type==="text"?F.value+=" ":v.children.push({type:"text",value:" "}),v.children.push(...C)}else m.push(...C);const A={type:"element",tagName:"li",properties:{id:t+"fn-"+y},children:e.wrap(m,!0)};e.patch(h,A),d.push(A)}if(d.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:o,properties:{...rc(u),id:"footnote-label"},children:[{type:"text",value:l}]},{type:"text",value:`
|
|
21
|
-
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(d,!0)},{type:"text",value:`
|
|
22
|
-
`}]}}const pc=(function(e){if(e==null)return Dj;if(typeof e=="function")return mc(e);if(typeof e=="object")return Array.isArray(e)?kj(e):Aj(e);if(typeof e=="string")return Bj(e);throw new Error("Expected function, string, or object as test")});function kj(e){const t=[];let r=-1;for(;++r<e.length;)t[r]=pc(e[r]);return mc(i);function i(...l){let o=-1;for(;++o<t.length;)if(t[o].apply(this,l))return!0;return!1}}function Aj(e){const t=e;return mc(r);function r(i){const l=i;let o;for(o in e)if(l[o]!==t[o])return!1;return!0}}function Bj(e){return mc(t);function t(r){return r&&r.type===e}}function mc(e){return t;function t(r,i,l){return!!(wj(r)&&e.call(this,r,typeof i=="number"?i:void 0,l||void 0))}}function Dj(){return!0}function wj(e){return e!==null&&typeof e=="object"&&"type"in e}const jE=[],Fj=!0,jd=!1,Sj="skip";function TE(e,t,r,i){let l;typeof t=="function"&&typeof r!="function"?(i=r,r=t):l=t;const o=pc(l),u=i?-1:1;d(e,void 0,[])();function d(f,h,m){const p=f&&typeof f=="object"?f:{};if(typeof p.type=="string"){const b=typeof p.tagName=="string"?p.tagName:typeof p.name=="string"?p.name:void 0;Object.defineProperty(y,"name",{value:"node ("+(f.type+(b?"<"+b+">":""))+")"})}return y;function y(){let b=jE,C,k,v;if((!t||o(f,h,m[m.length-1]||void 0))&&(b=Nj(r(f,m)),b[0]===jd))return b;if("children"in f&&f.children){const A=f;if(A.children&&b[0]!==Sj)for(k=(i?A.children.length:-1)+u,v=m.concat(A);k>-1&&k<A.children.length;){const F=A.children[k];if(C=d(F,k,v)(),C[0]===jd)return C;k=typeof C[1]=="number"?C[1]:k+u}}return b}}}function Nj(e){return Array.isArray(e)?e:typeof e=="number"?[Fj,e]:e==null?jE:[e]}function zf(e,t,r,i){let l,o,u;typeof t=="function"&&typeof r!="function"?(o=void 0,u=t,l=r):(o=t,u=r,l=i),TE(e,o,d,l);function d(f,h){const m=h[h.length-1],p=m?m.children.indexOf(f):void 0;return u(f,p,m)}}const Td={}.hasOwnProperty,_j={};function Mj(e,t){const r=t||_j,i=new Map,l=new Map,o=new Map,u={...pj,...r.handlers},d={all:h,applyData:Tj,definitionById:i,footnoteById:l,footnoteCounts:o,footnoteOrder:[],handlers:u,one:f,options:r,patch:jj,wrap:Oj};return zf(e,function(m){if(m.type==="definition"||m.type==="footnoteDefinition"){const p=m.type==="definition"?i:l,y=String(m.identifier).toUpperCase();p.has(y)||p.set(y,m)}}),d;function f(m,p){const y=m.type,b=d.handlers[y];if(Td.call(d.handlers,y)&&b)return b(d,m,p);if(d.options.passThrough&&d.options.passThrough.includes(y)){if("children"in m){const{children:k,...v}=m,A=rc(v);return A.children=d.all(m),A}return rc(m)}return(d.options.unknownHandler||Rj)(d,m,p)}function h(m){const p=[];if("children"in m){const y=m.children;let b=-1;for(;++b<y.length;){const C=d.one(y[b],m);if(C){if(b&&y[b-1].type==="break"&&(!Array.isArray(C)&&C.type==="text"&&(C.value=i2(C.value)),!Array.isArray(C)&&C.type==="element")){const k=C.children[0];k&&k.type==="text"&&(k.value=i2(k.value))}Array.isArray(C)?p.push(...C):p.push(C)}}}return p}}function jj(e,t){e.position&&(t.position=CN(e))}function Tj(e,t){let r=t;if(e&&e.data){const i=e.data.hName,l=e.data.hChildren,o=e.data.hProperties;if(typeof i=="string")if(r.type==="element")r.tagName=i;else{const u="children"in r?r.children:[r];r={type:"element",tagName:i,properties:{},children:u}}r.type==="element"&&o&&Object.assign(r.properties,rc(o)),"children"in r&&r.children&&l!==null&&l!==void 0&&(r.children=l)}return r}function Rj(e,t){const r=t.data||{},i="value"in t&&!(Td.call(r,"hProperties")||Td.call(r,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function Oj(e,t){const r=[];let i=-1;for(t&&r.push({type:"text",value:`
|
|
23
|
-
`});++i<e.length;)i&&r.push({type:"text",value:`
|
|
24
|
-
`}),r.push(e[i]);return t&&e.length>0&&r.push({type:"text",value:`
|
|
25
|
-
`}),r}function i2(e){let t=0,r=e.charCodeAt(t);for(;r===9||r===32;)t++,r=e.charCodeAt(t);return e.slice(t)}function s2(e,t){const r=Mj(e,t),i=r.one(e,void 0),l=vj(r),o=Array.isArray(i)?{type:"root",children:i}:i||{type:"root",children:[]};return l&&o.children.push({type:"text",value:`
|
|
26
|
-
`},l),o}function zj(e,t){return e&&"run"in e?async function(r,i){const l=s2(r,{file:i,...t});await e.run(l,i)}:function(r,i){return s2(r,{file:i,...e||t})}}function l2(e){if(e)throw e}var Lx,o2;function Lj(){if(o2)return Lx;o2=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,l=function(h){return typeof Array.isArray=="function"?Array.isArray(h):t.call(h)==="[object Array]"},o=function(h){if(!h||t.call(h)!=="[object Object]")return!1;var m=e.call(h,"constructor"),p=h.constructor&&h.constructor.prototype&&e.call(h.constructor.prototype,"isPrototypeOf");if(h.constructor&&!m&&!p)return!1;var y;for(y in h);return typeof y>"u"||e.call(h,y)},u=function(h,m){r&&m.name==="__proto__"?r(h,m.name,{enumerable:!0,configurable:!0,value:m.newValue,writable:!0}):h[m.name]=m.newValue},d=function(h,m){if(m==="__proto__")if(e.call(h,m)){if(i)return i(h,m).value}else return;return h[m]};return Lx=function f(){var h,m,p,y,b,C,k=arguments[0],v=1,A=arguments.length,F=!1;for(typeof k=="boolean"&&(F=k,k=arguments[1]||{},v=2),(k==null||typeof k!="object"&&typeof k!="function")&&(k={});v<A;++v)if(h=arguments[v],h!=null)for(m in h)p=d(k,m),y=d(h,m),k!==y&&(F&&y&&(o(y)||(b=l(y)))?(b?(b=!1,C=p&&l(p)?p:[]):C=p&&o(p)?p:{},u(k,{name:m,newValue:f(F,C,y)})):typeof y<"u"&&u(k,{name:m,newValue:y}));return k},Lx}var Pj=Lj();const Px=no(Pj);function Rd(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Ij(){const e=[],t={run:r,use:i};return t;function r(...l){let o=-1;const u=l.pop();if(typeof u!="function")throw new TypeError("Expected function as last argument, not "+u);d(null,...l);function d(f,...h){const m=e[++o];let p=-1;if(f){u(f);return}for(;++p<l.length;)(h[p]===null||h[p]===void 0)&&(h[p]=l[p]);l=h,m?Uj(m,d)(...h):u(null,...h)}}function i(l){if(typeof l!="function")throw new TypeError("Expected `middelware` to be a function, not "+l);return e.push(l),t}}function Uj(e,t){let r;return i;function i(...u){const d=e.length>u.length;let f;d&&u.push(l);try{f=e.apply(this,u)}catch(h){const m=h;if(d&&r)throw m;return l(m)}d||(f&&f.then&&typeof f.then=="function"?f.then(o,l):f instanceof Error?l(f):o(f))}function l(u,...d){r||(r=!0,t(u,...d))}function o(u){l(null,u)}}const Gr={basename:$j,dirname:Hj,extname:qj,join:Gj,sep:"/"};function $j(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');xo(e);let r=0,i=-1,l=e.length,o;if(t===void 0||t.length===0||t.length>e.length){for(;l--;)if(e.codePointAt(l)===47){if(o){r=l+1;break}}else i<0&&(o=!0,i=l+1);return i<0?"":e.slice(r,i)}if(t===e)return"";let u=-1,d=t.length-1;for(;l--;)if(e.codePointAt(l)===47){if(o){r=l+1;break}}else u<0&&(o=!0,u=l+1),d>-1&&(e.codePointAt(l)===t.codePointAt(d--)?d<0&&(i=l):(d=-1,i=u));return r===i?i=u:i<0&&(i=e.length),e.slice(r,i)}function Hj(e){if(xo(e),e.length===0)return".";let t=-1,r=e.length,i;for(;--r;)if(e.codePointAt(r)===47){if(i){t=r;break}}else i||(i=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function qj(e){xo(e);let t=e.length,r=-1,i=0,l=-1,o=0,u;for(;t--;){const d=e.codePointAt(t);if(d===47){if(u){i=t+1;break}continue}r<0&&(u=!0,r=t+1),d===46?l<0?l=t:o!==1&&(o=1):l>-1&&(o=-1)}return l<0||r<0||o===0||o===1&&l===r-1&&l===i+1?"":e.slice(l,r)}function Gj(...e){let t=-1,r;for(;++t<e.length;)xo(e[t]),e[t]&&(r=r===void 0?e[t]:r+"/"+e[t]);return r===void 0?".":Vj(r)}function Vj(e){xo(e);const t=e.codePointAt(0)===47;let r=Qj(e,!t);return r.length===0&&!t&&(r="."),r.length>0&&e.codePointAt(e.length-1)===47&&(r+="/"),t?"/"+r:r}function Qj(e,t){let r="",i=0,l=-1,o=0,u=-1,d,f;for(;++u<=e.length;){if(u<e.length)d=e.codePointAt(u);else{if(d===47)break;d=47}if(d===47){if(!(l===u-1||o===1))if(l!==u-1&&o===2){if(r.length<2||i!==2||r.codePointAt(r.length-1)!==46||r.codePointAt(r.length-2)!==46){if(r.length>2){if(f=r.lastIndexOf("/"),f!==r.length-1){f<0?(r="",i=0):(r=r.slice(0,f),i=r.length-1-r.lastIndexOf("/")),l=u,o=0;continue}}else if(r.length>0){r="",i=0,l=u,o=0;continue}}t&&(r=r.length>0?r+"/..":"..",i=2)}else r.length>0?r+="/"+e.slice(l+1,u):r=e.slice(l+1,u),i=u-l-1;l=u,o=0}else d===46&&o>-1?o++:o=-1}return r}function xo(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const Kj={cwd:Yj};function Yj(){return"/"}function Od(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function Xj(e){if(typeof e=="string")e=new URL(e);else if(!Od(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(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return Wj(e)}function Wj(e){if(e.hostname!==""){const i=new TypeError('File URL host must be "localhost" or empty on darwin');throw i.code="ERR_INVALID_FILE_URL_HOST",i}const t=e.pathname;let r=-1;for(;++r<t.length;)if(t.codePointAt(r)===37&&t.codePointAt(r+1)===50){const i=t.codePointAt(r+2);if(i===70||i===102){const l=new TypeError("File URL path must not include encoded / characters");throw l.code="ERR_INVALID_FILE_URL_PATH",l}}return decodeURIComponent(t)}const Ix=["history","path","basename","stem","extname","dirname"];class RE{constructor(t){let r;t?Od(t)?r={path:t}:typeof t=="string"||Zj(t)?r={value:t}:r=t:r={},this.cwd="cwd"in r?"":Kj.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let i=-1;for(;++i<Ix.length;){const o=Ix[i];o in r&&r[o]!==void 0&&r[o]!==null&&(this[o]=o==="history"?[...r[o]]:r[o])}let l;for(l in r)Ix.includes(l)||(this[l]=r[l])}get basename(){return typeof this.path=="string"?Gr.basename(this.path):void 0}set basename(t){$x(t,"basename"),Ux(t,"basename"),this.path=Gr.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?Gr.dirname(this.path):void 0}set dirname(t){c2(this.basename,"dirname"),this.path=Gr.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?Gr.extname(this.path):void 0}set extname(t){if(Ux(t,"extname"),c2(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Gr.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){Od(t)&&(t=Xj(t)),$x(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?Gr.basename(this.path,this.extname):void 0}set stem(t){$x(t,"stem"),Ux(t,"stem"),this.path=Gr.join(this.dirname||"",t+(this.extname||""))}fail(t,r,i){const l=this.message(t,r,i);throw l.fatal=!0,l}info(t,r,i){const l=this.message(t,r,i);return l.fatal=void 0,l}message(t,r,i){const l=new zn(t,r,i);return this.path&&(l.name=this.path+":"+l.name,l.file=this.path),l.fatal=!1,this.messages.push(l),l}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function Ux(e,t){if(e&&e.includes(Gr.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+Gr.sep+"`")}function $x(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function c2(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function Zj(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Jj=(function(e){const i=this.constructor.prototype,l=i[e],o=function(){return l.apply(o,arguments)};return Object.setPrototypeOf(o,i),o}),eT={}.hasOwnProperty;class Lf extends Jj{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=Ij()}copy(){const t=new Lf;let r=-1;for(;++r<this.attachers.length;){const i=this.attachers[r];t.use(...i)}return t.data(Px(!0,{},this.namespace)),t}data(t,r){return typeof t=="string"?arguments.length===2?(Gx("data",this.frozen),this.namespace[t]=r,this):eT.call(this.namespace,t)&&this.namespace[t]||void 0:t?(Gx("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[r,...i]=this.attachers[this.freezeIndex];if(i[0]===!1)continue;i[0]===!0&&(i[0]=void 0);const l=r.call(t,...i);typeof l=="function"&&this.transformers.use(l)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const r=L0(t),i=this.parser||this.Parser;return Hx("parse",i),i(String(r),r)}process(t,r){const i=this;return this.freeze(),Hx("process",this.parser||this.Parser),qx("process",this.compiler||this.Compiler),r?l(void 0,r):new Promise(l);function l(o,u){const d=L0(t),f=i.parse(d);i.run(f,d,function(m,p,y){if(m||!p||!y)return h(m);const b=p,C=i.stringify(b,y);rT(C)?y.value=C:y.result=C,h(m,y)});function h(m,p){m||!p?u(m):o?o(p):r(void 0,p)}}}processSync(t){let r=!1,i;return this.freeze(),Hx("processSync",this.parser||this.Parser),qx("processSync",this.compiler||this.Compiler),this.process(t,l),x2("processSync","process",r),i;function l(o,u){r=!0,l2(o),i=u}}run(t,r,i){u2(t),this.freeze();const l=this.transformers;return!i&&typeof r=="function"&&(i=r,r=void 0),i?o(void 0,i):new Promise(o);function o(u,d){const f=L0(r);l.run(t,f,h);function h(m,p,y){const b=p||t;m?d(m):u?u(b):i(void 0,b,y)}}}runSync(t,r){let i=!1,l;return this.run(t,r,o),x2("runSync","run",i),l;function o(u,d){l2(u),l=d,i=!0}}stringify(t,r){this.freeze();const i=L0(r),l=this.compiler||this.Compiler;return qx("stringify",l),u2(t),l(t,i)}use(t,...r){const i=this.attachers,l=this.namespace;if(Gx("use",this.frozen),t!=null)if(typeof t=="function")f(t,r);else if(typeof t=="object")Array.isArray(t)?d(t):u(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function o(h){if(typeof h=="function")f(h,[]);else if(typeof h=="object")if(Array.isArray(h)){const[m,...p]=h;f(m,p)}else u(h);else throw new TypeError("Expected usable value, not `"+h+"`")}function u(h){if(!("plugins"in h)&&!("settings"in h))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");d(h.plugins),h.settings&&(l.settings=Px(!0,l.settings,h.settings))}function d(h){let m=-1;if(h!=null)if(Array.isArray(h))for(;++m<h.length;){const p=h[m];o(p)}else throw new TypeError("Expected a list of plugins, not `"+h+"`")}function f(h,m){let p=-1,y=-1;for(;++p<i.length;)if(i[p][0]===h){y=p;break}if(y===-1)i.push([h,...m]);else if(m.length>0){let[b,...C]=m;const k=i[y][1];Rd(k)&&Rd(b)&&(b=Px(!0,k,b)),i[y]=[h,b,...C]}}}}const tT=new Lf().freeze();function Hx(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function qx(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function Gx(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 u2(e){if(!Rd(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function x2(e,t,r){if(!r)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function L0(e){return nT(e)?e:new RE(e)}function nT(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function rT(e){return typeof e=="string"||aT(e)}function aT(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const iT="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",d2=[],f2={allowDangerousHtml:!0},sT=/^(https?|ircs?|mailto|xmpp)$/i,lT=[{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 oT(e){const t=cT(e),r=uT(e);return xT(t.runSync(t.parse(r),r),e)}function cT(e){const t=e.rehypePlugins||d2,r=e.remarkPlugins||d2,i=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...f2}:f2;return tT().use(HM).use(r).use(zj,i).use(t)}function uT(e){const t=e.children||"",r=new RE;return typeof t=="string"&&(r.value=t),r}function xT(e,t){const r=t.allowedElements,i=t.allowElement,l=t.components,o=t.disallowedElements,u=t.skipHtml,d=t.unwrapDisallowed,f=t.urlTransform||dT;for(const m of lT)Object.hasOwn(t,m.from)&&(""+m.from+(m.to?"use `"+m.to+"` instead":"remove it")+iT+m.id,void 0);return zf(e,h),DN(e,{Fragment:x.Fragment,components:l,ignoreInvalidStyle:!0,jsx:x.jsx,jsxs:x.jsxs,passKeys:!0,passNode:!0});function h(m,p,y){if(m.type==="raw"&&y&&typeof p=="number")return u?y.children.splice(p,1):y.children[p]={type:"text",value:m.value},p;if(m.type==="element"){let b;for(b in Rx)if(Object.hasOwn(Rx,b)&&Object.hasOwn(m.properties,b)){const C=m.properties[b],k=Rx[b];(k===null||k.includes(m.tagName))&&(m.properties[b]=f(String(C||""),b,m))}}if(m.type==="element"){let b=r?!r.includes(m.tagName):o?o.includes(m.tagName):!1;if(!b&&i&&typeof p=="number"&&(b=!i(m,p,y)),b&&y&&typeof p=="number")return d&&m.children?y.children.splice(p,1,...m.children):y.children.splice(p,1),p}}}function dT(e){const t=e.indexOf(":"),r=e.indexOf("?"),i=e.indexOf("#"),l=e.indexOf("/");return t===-1||l!==-1&&t>l||r!==-1&&t>r||i!==-1&&t>i||sT.test(e.slice(0,t))?e:""}function fT(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function OE(e,t,r){const l=pc((r||{}).ignore||[]),o=hT(t);let u=-1;for(;++u<o.length;)TE(e,"text",d);function d(h,m){let p=-1,y;for(;++p<m.length;){const b=m[p],C=y?y.children:void 0;if(l(b,C?C.indexOf(b):void 0,y))return;y=b}if(y)return f(h,m)}function f(h,m){const p=m[m.length-1],y=o[u][0],b=o[u][1];let C=0;const v=p.children.indexOf(h);let A=!1,F=[];y.lastIndex=0;let N=y.exec(h.value);for(;N;){const _=N.index,S={index:N.index,input:N.input,stack:[...m,h]};let w=b(...N,S);if(typeof w=="string"&&(w=w.length>0?{type:"text",value:w}:void 0),w===!1?y.lastIndex=_+1:(C!==_&&F.push({type:"text",value:h.value.slice(C,_)}),Array.isArray(w)?F.push(...w):w&&F.push(w),C=_+N[0].length,A=!0),!y.global)break;N=y.exec(h.value)}return A?(C<h.value.length&&F.push({type:"text",value:h.value.slice(C)}),p.children.splice(v,1,...F)):F=[h],v+F.length}}function hT(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const r=!e[0]||Array.isArray(e[0])?e:[e];let i=-1;for(;++i<r.length;){const l=r[i];t.push([pT(l[0]),mT(l[1])])}return t}function pT(e){return typeof e=="string"?new RegExp(fT(e),"g"):e}function mT(e){return typeof e=="function"?e:function(){return e}}function gT(e){OE(e,[/\r?\n|\r/g,ET])}function ET(){return{type:"break"}}function yT(){return function(e){gT(e)}}function h2(e,t){const r=String(e);if(typeof t!="string")throw new TypeError("Expected character");let i=0,l=r.indexOf(t);for(;l!==-1;)i++,l=r.indexOf(t,l+t.length);return i}const Vx="phrasing",Qx=["autolink","link","image","label"];function bT(){return{transforms:[wT],enter:{literalAutolink:vT,literalAutolinkEmail:Kx,literalAutolinkHttp:Kx,literalAutolinkWww:Kx},exit:{literalAutolink:DT,literalAutolinkEmail:BT,literalAutolinkHttp:kT,literalAutolinkWww:AT}}}function CT(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Vx,notInConstruct:Qx},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Vx,notInConstruct:Qx},{character:":",before:"[ps]",after:"\\/",inConstruct:Vx,notInConstruct:Qx}]}}function vT(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function Kx(e){this.config.enter.autolinkProtocol.call(this,e)}function kT(e){this.config.exit.autolinkProtocol.call(this,e)}function AT(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function BT(e){this.config.exit.autolinkEmail.call(this,e)}function DT(e){this.exit(e)}function wT(e){OE(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,FT],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),ST]],{ignore:["link","linkReference"]})}function FT(e,t,r,i,l){let o="";if(!zE(l)||(/^w/i.test(t)&&(r=t+r,t="",o="http://"),!NT(r)))return!1;const u=_T(r+i);if(!u[0])return!1;const d={type:"link",title:null,url:o+t+u[0],children:[{type:"text",value:t+u[0]}]};return u[1]?[d,{type:"text",value:u[1]}]:d}function ST(e,t,r,i){return!zE(i,!0)||/[-\d_]$/.test(r)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+r,children:[{type:"text",value:t+"@"+r}]}}function NT(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function _T(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let r=t[0],i=r.indexOf(")");const l=h2(e,"(");let o=h2(e,")");for(;i!==-1&&l>o;)e+=r.slice(0,i+1),r=r.slice(i+1),i=r.indexOf(")"),o++;return[e,r]}function zE(e,t){const r=e.input.charCodeAt(e.index-1);return(e.index===0||ji(r)||dc(r))&&(!t||r!==47)}LE.peek=IT;function MT(){this.buffer()}function jT(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function TT(){this.buffer()}function RT(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function OT(e){const t=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=zr(this.sliceSerialize(e)).toLowerCase(),r.label=t}function zT(e){this.exit(e)}function LT(e){const t=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=zr(this.sliceSerialize(e)).toLowerCase(),r.label=t}function PT(e){this.exit(e)}function IT(){return"["}function LE(e,t,r,i){const l=r.createTracker(i);let o=l.move("[^");const u=r.enter("footnoteReference"),d=r.enter("reference");return o+=l.move(r.safe(r.associationId(e),{after:"]",before:o})),d(),u(),o+=l.move("]"),o}function UT(){return{enter:{gfmFootnoteCallString:MT,gfmFootnoteCall:jT,gfmFootnoteDefinitionLabelString:TT,gfmFootnoteDefinition:RT},exit:{gfmFootnoteCallString:OT,gfmFootnoteCall:zT,gfmFootnoteDefinitionLabelString:LT,gfmFootnoteDefinition:PT}}}function $T(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:r,footnoteReference:LE},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function r(i,l,o,u){const d=o.createTracker(u);let f=d.move("[^");const h=o.enter("footnoteDefinition"),m=o.enter("label");return f+=d.move(o.safe(o.associationId(i),{before:f,after:"]"})),m(),f+=d.move("]:"),i.children&&i.children.length>0&&(d.shift(4),f+=d.move((t?`
|
|
27
|
-
`:" ")+o.indentLines(o.containerFlow(i,d.current()),t?PE:HT))),h(),f}}function HT(e,t,r){return t===0?e:PE(e,t,r)}function PE(e,t,r){return(r?"":" ")+e}const qT=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];IE.peek=YT;function GT(){return{canContainEols:["delete"],enter:{strikethrough:QT},exit:{strikethrough:KT}}}function VT(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:qT}],handlers:{delete:IE}}}function QT(e){this.enter({type:"delete",children:[]},e)}function KT(e){this.exit(e)}function IE(e,t,r,i){const l=r.createTracker(i),o=r.enter("strikethrough");let u=l.move("~~");return u+=r.containerPhrasing(e,{...l.current(),before:u,after:"~"}),u+=l.move("~~"),o(),u}function YT(){return"~"}function XT(e){return e.length}function WT(e,t){const r=t||{},i=(r.align||[]).concat(),l=r.stringLength||XT,o=[],u=[],d=[],f=[];let h=0,m=-1;for(;++m<e.length;){const k=[],v=[];let A=-1;for(e[m].length>h&&(h=e[m].length);++A<e[m].length;){const F=ZT(e[m][A]);if(r.alignDelimiters!==!1){const N=l(F);v[A]=N,(f[A]===void 0||N>f[A])&&(f[A]=N)}k.push(F)}u[m]=k,d[m]=v}let p=-1;if(typeof i=="object"&&"length"in i)for(;++p<h;)o[p]=p2(i[p]);else{const k=p2(i);for(;++p<h;)o[p]=k}p=-1;const y=[],b=[];for(;++p<h;){const k=o[p];let v="",A="";k===99?(v=":",A=":"):k===108?v=":":k===114&&(A=":");let F=r.alignDelimiters===!1?1:Math.max(1,f[p]-v.length-A.length);const N=v+"-".repeat(F)+A;r.alignDelimiters!==!1&&(F=v.length+F+A.length,F>f[p]&&(f[p]=F),b[p]=F),y[p]=N}u.splice(1,0,y),d.splice(1,0,b),m=-1;const C=[];for(;++m<u.length;){const k=u[m],v=d[m];p=-1;const A=[];for(;++p<h;){const F=k[p]||"";let N="",_="";if(r.alignDelimiters!==!1){const S=f[p]-(v[p]||0),w=o[p];w===114?N=" ".repeat(S):w===99?S%2?(N=" ".repeat(S/2+.5),_=" ".repeat(S/2-.5)):(N=" ".repeat(S/2),_=N):_=" ".repeat(S)}r.delimiterStart!==!1&&!p&&A.push("|"),r.padding!==!1&&!(r.alignDelimiters===!1&&F==="")&&(r.delimiterStart!==!1||p)&&A.push(" "),r.alignDelimiters!==!1&&A.push(N),A.push(F),r.alignDelimiters!==!1&&A.push(_),r.padding!==!1&&A.push(" "),(r.delimiterEnd!==!1||p!==h-1)&&A.push("|")}C.push(r.delimiterEnd===!1?A.join("").replace(/ +$/,""):A.join(""))}return C.join(`
|
|
28
|
-
`)}function ZT(e){return e==null?"":String(e)}function p2(e){const t=typeof e=="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}function JT(e,t,r,i){const l=r.enter("blockquote"),o=r.createTracker(i);o.move("> "),o.shift(2);const u=r.indentLines(r.containerFlow(e,o.current()),eR);return l(),u}function eR(e,t,r){return">"+(r?"":" ")+e}function tR(e,t){return m2(e,t.inConstruct,!0)&&!m2(e,t.notInConstruct,!1)}function m2(e,t,r){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return r;let i=-1;for(;++i<t.length;)if(e.includes(t[i]))return!0;return!1}function g2(e,t,r,i){let l=-1;for(;++l<r.unsafe.length;)if(r.unsafe[l].character===`
|
|
29
|
-
`&&tR(r.stack,r.unsafe[l]))return/[ \t]/.test(i.before)?"":" ";return`\\
|
|
30
|
-
`}function nR(e,t){const r=String(e);let i=r.indexOf(t),l=i,o=0,u=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;i!==-1;)i===l?++o>u&&(u=o):o=1,l=i+t.length,i=r.indexOf(t,l);return u}function rR(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function aR(e){const t=e.options.fence||"`";if(t!=="`"&&t!=="~")throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function iR(e,t,r,i){const l=aR(r),o=e.value||"",u=l==="`"?"GraveAccent":"Tilde";if(rR(e,r)){const p=r.enter("codeIndented"),y=r.indentLines(o,sR);return p(),y}const d=r.createTracker(i),f=l.repeat(Math.max(nR(o,l)+1,3)),h=r.enter("codeFenced");let m=d.move(f);if(e.lang){const p=r.enter(`codeFencedLang${u}`);m+=d.move(r.safe(e.lang,{before:m,after:" ",encode:["`"],...d.current()})),p()}if(e.lang&&e.meta){const p=r.enter(`codeFencedMeta${u}`);m+=d.move(" "),m+=d.move(r.safe(e.meta,{before:m,after:`
|
|
31
|
-
`,encode:["`"],...d.current()})),p()}return m+=d.move(`
|
|
32
|
-
`),o&&(m+=d.move(o+`
|
|
33
|
-
`)),m+=d.move(f),h(),m}function sR(e,t,r){return(r?"":" ")+e}function Pf(e){const t=e.options.quote||'"';if(t!=='"'&&t!=="'")throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function lR(e,t,r,i){const l=Pf(r),o=l==='"'?"Quote":"Apostrophe",u=r.enter("definition");let d=r.enter("label");const f=r.createTracker(i);let h=f.move("[");return h+=f.move(r.safe(r.associationId(e),{before:h,after:"]",...f.current()})),h+=f.move("]: "),d(),!e.url||/[\0- \u007F]/.test(e.url)?(d=r.enter("destinationLiteral"),h+=f.move("<"),h+=f.move(r.safe(e.url,{before:h,after:">",...f.current()})),h+=f.move(">")):(d=r.enter("destinationRaw"),h+=f.move(r.safe(e.url,{before:h,after:e.title?" ":`
|
|
34
|
-
`,...f.current()}))),d(),e.title&&(d=r.enter(`title${o}`),h+=f.move(" "+l),h+=f.move(r.safe(e.title,{before:h,after:l,...f.current()})),h+=f.move(l),d()),u(),h}function oR(e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function Jl(e){return"&#x"+e.toString(16).toUpperCase()+";"}function ac(e,t,r){const i=Fs(e),l=Fs(t);return i===void 0?l===void 0?r==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:l===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:i===1?l===void 0?{inside:!1,outside:!1}:l===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:l===void 0?{inside:!1,outside:!1}:l===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}UE.peek=cR;function UE(e,t,r,i){const l=oR(r),o=r.enter("emphasis"),u=r.createTracker(i),d=u.move(l);let f=u.move(r.containerPhrasing(e,{after:l,before:d,...u.current()}));const h=f.charCodeAt(0),m=ac(i.before.charCodeAt(i.before.length-1),h,l);m.inside&&(f=Jl(h)+f.slice(1));const p=f.charCodeAt(f.length-1),y=ac(i.after.charCodeAt(0),p,l);y.inside&&(f=f.slice(0,-1)+Jl(p));const b=u.move(l);return o(),r.attentionEncodeSurroundingInfo={after:y.outside,before:m.outside},d+f+b}function cR(e,t,r){return r.options.emphasis||"*"}function uR(e,t){let r=!1;return zf(e,function(i){if("value"in i&&/\r?\n|\r/.test(i.value)||i.type==="break")return r=!0,jd}),!!((!e.depth||e.depth<3)&&Nf(e)&&(t.options.setext||r))}function xR(e,t,r,i){const l=Math.max(Math.min(6,e.depth||1),1),o=r.createTracker(i);if(uR(e,r)){const m=r.enter("headingSetext"),p=r.enter("phrasing"),y=r.containerPhrasing(e,{...o.current(),before:`
|
|
35
|
-
`,after:`
|
|
36
|
-
`});return p(),m(),y+`
|
|
37
|
-
`+(l===1?"=":"-").repeat(y.length-(Math.max(y.lastIndexOf("\r"),y.lastIndexOf(`
|
|
38
|
-
`))+1))}const u="#".repeat(l),d=r.enter("headingAtx"),f=r.enter("phrasing");o.move(u+" ");let h=r.containerPhrasing(e,{before:"# ",after:`
|
|
39
|
-
`,...o.current()});return/^[\t ]/.test(h)&&(h=Jl(h.charCodeAt(0))+h.slice(1)),h=h?u+" "+h:u,r.options.closeAtx&&(h+=" "+u),f(),d(),h}$E.peek=dR;function $E(e){return e.value||""}function dR(){return"<"}HE.peek=fR;function HE(e,t,r,i){const l=Pf(r),o=l==='"'?"Quote":"Apostrophe",u=r.enter("image");let d=r.enter("label");const f=r.createTracker(i);let h=f.move("![");return h+=f.move(r.safe(e.alt,{before:h,after:"]",...f.current()})),h+=f.move("]("),d(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(d=r.enter("destinationLiteral"),h+=f.move("<"),h+=f.move(r.safe(e.url,{before:h,after:">",...f.current()})),h+=f.move(">")):(d=r.enter("destinationRaw"),h+=f.move(r.safe(e.url,{before:h,after:e.title?" ":")",...f.current()}))),d(),e.title&&(d=r.enter(`title${o}`),h+=f.move(" "+l),h+=f.move(r.safe(e.title,{before:h,after:l,...f.current()})),h+=f.move(l),d()),h+=f.move(")"),u(),h}function fR(){return"!"}qE.peek=hR;function qE(e,t,r,i){const l=e.referenceType,o=r.enter("imageReference");let u=r.enter("label");const d=r.createTracker(i);let f=d.move("![");const h=r.safe(e.alt,{before:f,after:"]",...d.current()});f+=d.move(h+"]["),u();const m=r.stack;r.stack=[],u=r.enter("reference");const p=r.safe(r.associationId(e),{before:f,after:"]",...d.current()});return u(),r.stack=m,o(),l==="full"||!h||h!==p?f+=d.move(p+"]"):l==="shortcut"?f=f.slice(0,-1):f+=d.move("]"),f}function hR(){return"!"}GE.peek=pR;function GE(e,t,r){let i=e.value||"",l="`",o=-1;for(;new RegExp("(^|[^`])"+l+"([^`]|$)").test(i);)l+="`";for(/[^ \r\n]/.test(i)&&(/^[ \r\n]/.test(i)&&/[ \r\n]$/.test(i)||/^`|`$/.test(i))&&(i=" "+i+" ");++o<r.unsafe.length;){const u=r.unsafe[o],d=r.compilePattern(u);let f;if(u.atBreak)for(;f=d.exec(i);){let h=f.index;i.charCodeAt(h)===10&&i.charCodeAt(h-1)===13&&h--,i=i.slice(0,h)+" "+i.slice(f.index+1)}}return l+i+l}function pR(){return"`"}function VE(e,t){const r=Nf(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(r===e.url||"mailto:"+r===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}QE.peek=mR;function QE(e,t,r,i){const l=Pf(r),o=l==='"'?"Quote":"Apostrophe",u=r.createTracker(i);let d,f;if(VE(e,r)){const m=r.stack;r.stack=[],d=r.enter("autolink");let p=u.move("<");return p+=u.move(r.containerPhrasing(e,{before:p,after:">",...u.current()})),p+=u.move(">"),d(),r.stack=m,p}d=r.enter("link"),f=r.enter("label");let h=u.move("[");return h+=u.move(r.containerPhrasing(e,{before:h,after:"](",...u.current()})),h+=u.move("]("),f(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(f=r.enter("destinationLiteral"),h+=u.move("<"),h+=u.move(r.safe(e.url,{before:h,after:">",...u.current()})),h+=u.move(">")):(f=r.enter("destinationRaw"),h+=u.move(r.safe(e.url,{before:h,after:e.title?" ":")",...u.current()}))),f(),e.title&&(f=r.enter(`title${o}`),h+=u.move(" "+l),h+=u.move(r.safe(e.title,{before:h,after:l,...u.current()})),h+=u.move(l),f()),h+=u.move(")"),d(),h}function mR(e,t,r){return VE(e,r)?"<":"["}KE.peek=gR;function KE(e,t,r,i){const l=e.referenceType,o=r.enter("linkReference");let u=r.enter("label");const d=r.createTracker(i);let f=d.move("[");const h=r.containerPhrasing(e,{before:f,after:"]",...d.current()});f+=d.move(h+"]["),u();const m=r.stack;r.stack=[],u=r.enter("reference");const p=r.safe(r.associationId(e),{before:f,after:"]",...d.current()});return u(),r.stack=m,o(),l==="full"||!h||h!==p?f+=d.move(p+"]"):l==="shortcut"?f=f.slice(0,-1):f+=d.move("]"),f}function gR(){return"["}function If(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function ER(e){const t=If(e),r=e.options.bulletOther;if(!r)return t==="*"?"-":"*";if(r!=="*"&&r!=="+"&&r!=="-")throw new Error("Cannot serialize items with `"+r+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(r===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+r+"`) to be different");return r}function yR(e){const t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function YE(e){const t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function bR(e,t,r,i){const l=r.enter("list"),o=r.bulletCurrent;let u=e.ordered?yR(r):If(r);const d=e.ordered?u==="."?")":".":ER(r);let f=t&&r.bulletLastUsed?u===r.bulletLastUsed:!1;if(!e.ordered){const m=e.children?e.children[0]:void 0;if((u==="*"||u==="-")&&m&&(!m.children||!m.children[0])&&r.stack[r.stack.length-1]==="list"&&r.stack[r.stack.length-2]==="listItem"&&r.stack[r.stack.length-3]==="list"&&r.stack[r.stack.length-4]==="listItem"&&r.indexStack[r.indexStack.length-1]===0&&r.indexStack[r.indexStack.length-2]===0&&r.indexStack[r.indexStack.length-3]===0&&(f=!0),YE(r)===u&&m){let p=-1;for(;++p<e.children.length;){const y=e.children[p];if(y&&y.type==="listItem"&&y.children&&y.children[0]&&y.children[0].type==="thematicBreak"){f=!0;break}}}}f&&(u=d),r.bulletCurrent=u;const h=r.containerFlow(e,i);return r.bulletLastUsed=u,r.bulletCurrent=o,l(),h}function CR(e){const t=e.options.listItemIndent||"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function vR(e,t,r,i){const l=CR(r);let o=r.bulletCurrent||If(r);t&&t.type==="list"&&t.ordered&&(o=(typeof t.start=="number"&&t.start>-1?t.start:1)+(r.options.incrementListMarker===!1?0:t.children.indexOf(e))+o);let u=o.length+1;(l==="tab"||l==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(u=Math.ceil(u/4)*4);const d=r.createTracker(i);d.move(o+" ".repeat(u-o.length)),d.shift(u);const f=r.enter("listItem"),h=r.indentLines(r.containerFlow(e,d.current()),m);return f(),h;function m(p,y,b){return y?(b?"":" ".repeat(u))+p:(b?o:o+" ".repeat(u-o.length))+p}}function kR(e,t,r,i){const l=r.enter("paragraph"),o=r.enter("phrasing"),u=r.containerPhrasing(e,i);return o(),l(),u}const AR=pc(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function BR(e,t,r,i){return(e.children.some(function(u){return AR(u)})?r.containerPhrasing:r.containerFlow).call(r,e,i)}function DR(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}XE.peek=wR;function XE(e,t,r,i){const l=DR(r),o=r.enter("strong"),u=r.createTracker(i),d=u.move(l+l);let f=u.move(r.containerPhrasing(e,{after:l,before:d,...u.current()}));const h=f.charCodeAt(0),m=ac(i.before.charCodeAt(i.before.length-1),h,l);m.inside&&(f=Jl(h)+f.slice(1));const p=f.charCodeAt(f.length-1),y=ac(i.after.charCodeAt(0),p,l);y.inside&&(f=f.slice(0,-1)+Jl(p));const b=u.move(l+l);return o(),r.attentionEncodeSurroundingInfo={after:y.outside,before:m.outside},d+f+b}function wR(e,t,r){return r.options.strong||"*"}function FR(e,t,r,i){return r.safe(e.value,i)}function SR(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function NR(e,t,r){const i=(YE(r)+(r.options.ruleSpaces?" ":"")).repeat(SR(r));return r.options.ruleSpaces?i.slice(0,-1):i}const WE={blockquote:JT,break:g2,code:iR,definition:lR,emphasis:UE,hardBreak:g2,heading:xR,html:$E,image:HE,imageReference:qE,inlineCode:GE,link:QE,linkReference:KE,list:bR,listItem:vR,paragraph:kR,root:BR,strong:XE,text:FR,thematicBreak:NR};function _R(){return{enter:{table:MR,tableData:E2,tableHeader:E2,tableRow:TR},exit:{codeText:RR,table:jR,tableData:Yx,tableHeader:Yx,tableRow:Yx}}}function MR(e){const t=e._align;this.enter({type:"table",align:t.map(function(r){return r==="none"?null:r}),children:[]},e),this.data.inTable=!0}function jR(e){this.exit(e),this.data.inTable=void 0}function TR(e){this.enter({type:"tableRow",children:[]},e)}function Yx(e){this.exit(e)}function E2(e){this.enter({type:"tableCell",children:[]},e)}function RR(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,OR));const r=this.stack[this.stack.length-1];r.type,r.value=t,this.exit(e)}function OR(e,t){return t==="|"?t:e}function zR(e){const t=e||{},r=t.tableCellPadding,i=t.tablePipeAlign,l=t.stringLength,o=r?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
|
|
40
|
-
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:y,table:u,tableCell:f,tableRow:d}};function u(b,C,k,v){return h(m(b,k,v),b.align)}function d(b,C,k,v){const A=p(b,k,v),F=h([A]);return F.slice(0,F.indexOf(`
|
|
41
|
-
`))}function f(b,C,k,v){const A=k.enter("tableCell"),F=k.enter("phrasing"),N=k.containerPhrasing(b,{...v,before:o,after:o});return F(),A(),N}function h(b,C){return WT(b,{align:C,alignDelimiters:i,padding:r,stringLength:l})}function m(b,C,k){const v=b.children;let A=-1;const F=[],N=C.enter("table");for(;++A<v.length;)F[A]=p(v[A],C,k);return N(),F}function p(b,C,k){const v=b.children;let A=-1;const F=[],N=C.enter("tableRow");for(;++A<v.length;)F[A]=f(v[A],b,C,k);return N(),F}function y(b,C,k){let v=WE.inlineCode(b,C,k);return k.stack.includes("tableCell")&&(v=v.replace(/\|/g,"\\$&")),v}}function LR(){return{exit:{taskListCheckValueChecked:y2,taskListCheckValueUnchecked:y2,paragraph:IR}}}function PR(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:UR}}}function y2(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function IR(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const r=this.stack[this.stack.length-1];r.type;const i=r.children[0];if(i&&i.type==="text"){const l=t.children;let o=-1,u;for(;++o<l.length;){const d=l[o];if(d.type==="paragraph"){u=d;break}}u===r&&(i.value=i.value.slice(1),i.value.length===0?r.children.shift():r.position&&i.position&&typeof i.position.start.offset=="number"&&(i.position.start.column++,i.position.start.offset++,r.position.start=Object.assign({},i.position.start)))}}this.exit(e)}function UR(e,t,r,i){const l=e.children[0],o=typeof e.checked=="boolean"&&l&&l.type==="paragraph",u="["+(e.checked?"x":" ")+"] ",d=r.createTracker(i);o&&d.move(u);let f=WE.listItem(e,t,r,{...i,...d.current()});return o&&(f=f.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,h)),f;function h(m){return m+u}}function $R(){return[bT(),UT(),GT(),_R(),LR()]}function HR(e){return{extensions:[CT(),$T(e),VT(),zR(e),PR()]}}const qR={tokenize:XR,partial:!0},ZE={tokenize:WR,partial:!0},JE={tokenize:ZR,partial:!0},e5={tokenize:JR,partial:!0},GR={tokenize:eO,partial:!0},t5={name:"wwwAutolink",tokenize:KR,previous:r5},n5={name:"protocolAutolink",tokenize:YR,previous:a5},Aa={name:"emailAutolink",tokenize:QR,previous:i5},Kr={};function VR(){return{text:Kr}}let Di=48;for(;Di<123;)Kr[Di]=Aa,Di++,Di===58?Di=65:Di===91&&(Di=97);Kr[43]=Aa;Kr[45]=Aa;Kr[46]=Aa;Kr[95]=Aa;Kr[72]=[Aa,n5];Kr[104]=[Aa,n5];Kr[87]=[Aa,t5];Kr[119]=[Aa,t5];function QR(e,t,r){const i=this;let l,o;return u;function u(p){return!zd(p)||!i5.call(i,i.previous)||Uf(i.events)?r(p):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),d(p))}function d(p){return zd(p)?(e.consume(p),d):p===64?(e.consume(p),f):r(p)}function f(p){return p===46?e.check(GR,m,h)(p):p===45||p===95||Rn(p)?(o=!0,e.consume(p),f):m(p)}function h(p){return e.consume(p),l=!0,f}function m(p){return o&&l&&In(i.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(p)):r(p)}}function KR(e,t,r){const i=this;return l;function l(u){return u!==87&&u!==119||!r5.call(i,i.previous)||Uf(i.events)?r(u):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(qR,e.attempt(ZE,e.attempt(JE,o),r),r)(u))}function o(u){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(u)}}function YR(e,t,r){const i=this;let l="",o=!1;return u;function u(p){return(p===72||p===104)&&a5.call(i,i.previous)&&!Uf(i.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),l+=String.fromCodePoint(p),e.consume(p),d):r(p)}function d(p){if(In(p)&&l.length<5)return l+=String.fromCodePoint(p),e.consume(p),d;if(p===58){const y=l.toLowerCase();if(y==="http"||y==="https")return e.consume(p),f}return r(p)}function f(p){return p===47?(e.consume(p),o?h:(o=!0,f)):r(p)}function h(p){return p===null||tc(p)||Pt(p)||ji(p)||dc(p)?r(p):e.attempt(ZE,e.attempt(JE,m),r)(p)}function m(p){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(p)}}function XR(e,t,r){let i=0;return l;function l(u){return(u===87||u===119)&&i<3?(i++,e.consume(u),l):u===46&&i===3?(e.consume(u),o):r(u)}function o(u){return u===null?r(u):t(u)}}function WR(e,t,r){let i,l,o;return u;function u(h){return h===46||h===95?e.check(e5,f,d)(h):h===null||Pt(h)||ji(h)||h!==45&&dc(h)?f(h):(o=!0,e.consume(h),u)}function d(h){return h===95?i=!0:(l=i,i=void 0),e.consume(h),u}function f(h){return l||i||!o?r(h):t(h)}}function ZR(e,t){let r=0,i=0;return l;function l(u){return u===40?(r++,e.consume(u),l):u===41&&i<r?o(u):u===33||u===34||u===38||u===39||u===41||u===42||u===44||u===46||u===58||u===59||u===60||u===63||u===93||u===95||u===126?e.check(e5,t,o)(u):u===null||Pt(u)||ji(u)?t(u):(e.consume(u),l)}function o(u){return u===41&&i++,e.consume(u),l}}function JR(e,t,r){return i;function i(d){return d===33||d===34||d===39||d===41||d===42||d===44||d===46||d===58||d===59||d===63||d===95||d===126?(e.consume(d),i):d===38?(e.consume(d),o):d===93?(e.consume(d),l):d===60||d===null||Pt(d)||ji(d)?t(d):r(d)}function l(d){return d===null||d===40||d===91||Pt(d)||ji(d)?t(d):i(d)}function o(d){return In(d)?u(d):r(d)}function u(d){return d===59?(e.consume(d),i):In(d)?(e.consume(d),u):r(d)}}function eO(e,t,r){return i;function i(o){return e.consume(o),l}function l(o){return Rn(o)?r(o):t(o)}}function r5(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||Pt(e)}function a5(e){return!In(e)}function i5(e){return!(e===47||zd(e))}function zd(e){return e===43||e===45||e===46||e===95||Rn(e)}function Uf(e){let t=e.length,r=!1;for(;t--;){const i=e[t][1];if((i.type==="labelLink"||i.type==="labelImage")&&!i._balanced){r=!0;break}if(i._gfmAutolinkLiteralWalkedInto){r=!1;break}}return e.length>0&&!r&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),r}const tO={tokenize:cO,partial:!0};function nO(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:sO,continuation:{tokenize:lO},exit:oO}},text:{91:{name:"gfmFootnoteCall",tokenize:iO},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:rO,resolveTo:aO}}}}function rO(e,t,r){const i=this;let l=i.events.length;const o=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let u;for(;l--;){const f=i.events[l][1];if(f.type==="labelImage"){u=f;break}if(f.type==="gfmFootnoteCall"||f.type==="labelLink"||f.type==="label"||f.type==="image"||f.type==="link")break}return d;function d(f){if(!u||!u._balanced)return r(f);const h=zr(i.sliceSerialize({start:u.end,end:i.now()}));return h.codePointAt(0)!==94||!o.includes(h.slice(1))?r(f):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(f),e.exit("gfmFootnoteCallLabelMarker"),t(f))}}function aO(e,t){let r=e.length;for(;r--;)if(e[r][1].type==="labelImage"&&e[r][0]==="enter"){e[r][1];break}e[r+1][1].type="data",e[r+3][1].type="gfmFootnoteCallLabelMarker";const i={type:"gfmFootnoteCall",start:Object.assign({},e[r+3][1].start),end:Object.assign({},e[e.length-1][1].end)},l={type:"gfmFootnoteCallMarker",start:Object.assign({},e[r+3][1].end),end:Object.assign({},e[r+3][1].end)};l.end.column++,l.end.offset++,l.end._bufferIndex++;const o={type:"gfmFootnoteCallString",start:Object.assign({},l.end),end:Object.assign({},e[e.length-1][1].start)},u={type:"chunkString",contentType:"string",start:Object.assign({},o.start),end:Object.assign({},o.end)},d=[e[r+1],e[r+2],["enter",i,t],e[r+3],e[r+4],["enter",l,t],["exit",l,t],["enter",o,t],["enter",u,t],["exit",u,t],["exit",o,t],e[e.length-2],e[e.length-1],["exit",i,t]];return e.splice(r,e.length-r+1,...d),e}function iO(e,t,r){const i=this,l=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let o=0,u;return d;function d(p){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(p),e.exit("gfmFootnoteCallLabelMarker"),f}function f(p){return p!==94?r(p):(e.enter("gfmFootnoteCallMarker"),e.consume(p),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",h)}function h(p){if(o>999||p===93&&!u||p===null||p===91||Pt(p))return r(p);if(p===93){e.exit("chunkString");const y=e.exit("gfmFootnoteCallString");return l.includes(zr(i.sliceSerialize(y)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(p),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):r(p)}return Pt(p)||(u=!0),o++,e.consume(p),p===92?m:h}function m(p){return p===91||p===92||p===93?(e.consume(p),o++,h):h(p)}}function sO(e,t,r){const i=this,l=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let o,u=0,d;return f;function f(C){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(C),e.exit("gfmFootnoteDefinitionLabelMarker"),h}function h(C){return C===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(C),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",m):r(C)}function m(C){if(u>999||C===93&&!d||C===null||C===91||Pt(C))return r(C);if(C===93){e.exit("chunkString");const k=e.exit("gfmFootnoteDefinitionLabelString");return o=zr(i.sliceSerialize(k)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(C),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),y}return Pt(C)||(d=!0),u++,e.consume(C),C===92?p:m}function p(C){return C===91||C===92||C===93?(e.consume(C),u++,m):m(C)}function y(C){return C===58?(e.enter("definitionMarker"),e.consume(C),e.exit("definitionMarker"),l.includes(o)||l.push(o),gt(e,b,"gfmFootnoteDefinitionWhitespace")):r(C)}function b(C){return t(C)}}function lO(e,t,r){return e.check(uo,t,e.attempt(tO,t,r))}function oO(e){e.exit("gfmFootnoteDefinition")}function cO(e,t,r){const i=this;return gt(e,l,"gfmFootnoteDefinitionIndent",5);function l(o){const u=i.events[i.events.length-1];return u&&u[1].type==="gfmFootnoteDefinitionIndent"&&u[2].sliceSerialize(u[1],!0).length===4?t(o):r(o)}}function uO(e){let r=(e||{}).singleTilde;const i={name:"strikethrough",tokenize:o,resolveAll:l};return r==null&&(r=!0),{text:{126:i},insideSpan:{null:[i]},attentionMarkers:{null:[126]}};function l(u,d){let f=-1;for(;++f<u.length;)if(u[f][0]==="enter"&&u[f][1].type==="strikethroughSequenceTemporary"&&u[f][1]._close){let h=f;for(;h--;)if(u[h][0]==="exit"&&u[h][1].type==="strikethroughSequenceTemporary"&&u[h][1]._open&&u[f][1].end.offset-u[f][1].start.offset===u[h][1].end.offset-u[h][1].start.offset){u[f][1].type="strikethroughSequence",u[h][1].type="strikethroughSequence";const m={type:"strikethrough",start:Object.assign({},u[h][1].start),end:Object.assign({},u[f][1].end)},p={type:"strikethroughText",start:Object.assign({},u[h][1].end),end:Object.assign({},u[f][1].start)},y=[["enter",m,d],["enter",u[h][1],d],["exit",u[h][1],d],["enter",p,d]],b=d.parser.constructs.insideSpan.null;b&&xr(y,y.length,0,fc(b,u.slice(h+1,f),d)),xr(y,y.length,0,[["exit",p,d],["enter",u[f][1],d],["exit",u[f][1],d],["exit",m,d]]),xr(u,h-1,f-h+3,y),f=h+y.length-2;break}}for(f=-1;++f<u.length;)u[f][1].type==="strikethroughSequenceTemporary"&&(u[f][1].type="data");return u}function o(u,d,f){const h=this.previous,m=this.events;let p=0;return y;function y(C){return h===126&&m[m.length-1][1].type!=="characterEscape"?f(C):(u.enter("strikethroughSequenceTemporary"),b(C))}function b(C){const k=Fs(h);if(C===126)return p>1?f(C):(u.consume(C),p++,b);if(p<2&&!r)return f(C);const v=u.exit("strikethroughSequenceTemporary"),A=Fs(C);return v._open=!A||A===2&&!!k,v._close=!k||k===2&&!!A,d(C)}}}class xO{constructor(){this.map=[]}add(t,r,i){dO(this,t,r,i)}consume(t){if(this.map.sort(function(o,u){return o[0]-u[0]}),this.map.length===0)return;let r=this.map.length;const i=[];for(;r>0;)r-=1,i.push(t.slice(this.map[r][0]+this.map[r][1]),this.map[r][2]),t.length=this.map[r][0];i.push(t.slice()),t.length=0;let l=i.pop();for(;l;){for(const o of l)t.push(o);l=i.pop()}this.map.length=0}}function dO(e,t,r,i){let l=0;if(!(r===0&&i.length===0)){for(;l<e.map.length;){if(e.map[l][0]===t){e.map[l][1]+=r,e.map[l][2].push(...i);return}l+=1}e.map.push([t,r,i])}}function fO(e,t){let r=!1;const i=[];for(;t<e.length;){const l=e[t];if(r){if(l[0]==="enter")l[1].type==="tableContent"&&i.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(l[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const o=i.length-1;i[o]=i[o]==="left"?"center":"right"}}else if(l[1].type==="tableDelimiterRow")break}else l[0]==="enter"&&l[1].type==="tableDelimiterRow"&&(r=!0);t+=1}return i}function hO(){return{flow:{null:{name:"table",tokenize:pO,resolveAll:mO}}}}function pO(e,t,r){const i=this;let l=0,o=0,u;return d;function d(T){let $=i.events.length-1;for(;$>-1;){const ee=i.events[$][1].type;if(ee==="lineEnding"||ee==="linePrefix")$--;else break}const G=$>-1?i.events[$][1].type:null,ae=G==="tableHead"||G==="tableRow"?w:f;return ae===w&&i.parser.lazy[i.now().line]?r(T):ae(T)}function f(T){return e.enter("tableHead"),e.enter("tableRow"),h(T)}function h(T){return T===124||(u=!0,o+=1),m(T)}function m(T){return T===null?r(T):Ve(T)?o>1?(o=0,i.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(T),e.exit("lineEnding"),b):r(T):dt(T)?gt(e,m,"whitespace")(T):(o+=1,u&&(u=!1,l+=1),T===124?(e.enter("tableCellDivider"),e.consume(T),e.exit("tableCellDivider"),u=!0,m):(e.enter("data"),p(T)))}function p(T){return T===null||T===124||Pt(T)?(e.exit("data"),m(T)):(e.consume(T),T===92?y:p)}function y(T){return T===92||T===124?(e.consume(T),p):p(T)}function b(T){return i.interrupt=!1,i.parser.lazy[i.now().line]?r(T):(e.enter("tableDelimiterRow"),u=!1,dt(T)?gt(e,C,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(T):C(T))}function C(T){return T===45||T===58?v(T):T===124?(u=!0,e.enter("tableCellDivider"),e.consume(T),e.exit("tableCellDivider"),k):S(T)}function k(T){return dt(T)?gt(e,v,"whitespace")(T):v(T)}function v(T){return T===58?(o+=1,u=!0,e.enter("tableDelimiterMarker"),e.consume(T),e.exit("tableDelimiterMarker"),A):T===45?(o+=1,A(T)):T===null||Ve(T)?_(T):S(T)}function A(T){return T===45?(e.enter("tableDelimiterFiller"),F(T)):S(T)}function F(T){return T===45?(e.consume(T),F):T===58?(u=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(T),e.exit("tableDelimiterMarker"),N):(e.exit("tableDelimiterFiller"),N(T))}function N(T){return dt(T)?gt(e,_,"whitespace")(T):_(T)}function _(T){return T===124?C(T):T===null||Ve(T)?!u||l!==o?S(T):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(T)):S(T)}function S(T){return r(T)}function w(T){return e.enter("tableRow"),O(T)}function O(T){return T===124?(e.enter("tableCellDivider"),e.consume(T),e.exit("tableCellDivider"),O):T===null||Ve(T)?(e.exit("tableRow"),t(T)):dt(T)?gt(e,O,"whitespace")(T):(e.enter("data"),z(T))}function z(T){return T===null||T===124||Pt(T)?(e.exit("data"),O(T)):(e.consume(T),T===92?P:z)}function P(T){return T===92||T===124?(e.consume(T),z):z(T)}}function mO(e,t){let r=-1,i=!0,l=0,o=[0,0,0,0],u=[0,0,0,0],d=!1,f=0,h,m,p;const y=new xO;for(;++r<e.length;){const b=e[r],C=b[1];b[0]==="enter"?C.type==="tableHead"?(d=!1,f!==0&&(b2(y,t,f,h,m),m=void 0,f=0),h={type:"table",start:Object.assign({},C.start),end:Object.assign({},C.end)},y.add(r,0,[["enter",h,t]])):C.type==="tableRow"||C.type==="tableDelimiterRow"?(i=!0,p=void 0,o=[0,0,0,0],u=[0,r+1,0,0],d&&(d=!1,m={type:"tableBody",start:Object.assign({},C.start),end:Object.assign({},C.end)},y.add(r,0,[["enter",m,t]])),l=C.type==="tableDelimiterRow"?2:m?3:1):l&&(C.type==="data"||C.type==="tableDelimiterMarker"||C.type==="tableDelimiterFiller")?(i=!1,u[2]===0&&(o[1]!==0&&(u[0]=u[1],p=P0(y,t,o,l,void 0,p),o=[0,0,0,0]),u[2]=r)):C.type==="tableCellDivider"&&(i?i=!1:(o[1]!==0&&(u[0]=u[1],p=P0(y,t,o,l,void 0,p)),o=u,u=[o[1],r,0,0])):C.type==="tableHead"?(d=!0,f=r):C.type==="tableRow"||C.type==="tableDelimiterRow"?(f=r,o[1]!==0?(u[0]=u[1],p=P0(y,t,o,l,r,p)):u[1]!==0&&(p=P0(y,t,u,l,r,p)),l=0):l&&(C.type==="data"||C.type==="tableDelimiterMarker"||C.type==="tableDelimiterFiller")&&(u[3]=r)}for(f!==0&&b2(y,t,f,h,m),y.consume(t.events),r=-1;++r<t.events.length;){const b=t.events[r];b[0]==="enter"&&b[1].type==="table"&&(b[1]._align=fO(t.events,r))}return e}function P0(e,t,r,i,l,o){const u=i===1?"tableHeader":i===2?"tableDelimiter":"tableData",d="tableContent";r[0]!==0&&(o.end=Object.assign({},ks(t.events,r[0])),e.add(r[0],0,[["exit",o,t]]));const f=ks(t.events,r[1]);if(o={type:u,start:Object.assign({},f),end:Object.assign({},f)},e.add(r[1],0,[["enter",o,t]]),r[2]!==0){const h=ks(t.events,r[2]),m=ks(t.events,r[3]),p={type:d,start:Object.assign({},h),end:Object.assign({},m)};if(e.add(r[2],0,[["enter",p,t]]),i!==2){const y=t.events[r[2]],b=t.events[r[3]];if(y[1].end=Object.assign({},b[1].end),y[1].type="chunkText",y[1].contentType="text",r[3]>r[2]+1){const C=r[2]+1,k=r[3]-r[2]-1;e.add(C,k,[])}}e.add(r[3]+1,0,[["exit",p,t]])}return l!==void 0&&(o.end=Object.assign({},ks(t.events,l)),e.add(l,0,[["exit",o,t]]),o=void 0),o}function b2(e,t,r,i,l){const o=[],u=ks(t.events,r);l&&(l.end=Object.assign({},u),o.push(["exit",l,t])),i.end=Object.assign({},u),o.push(["exit",i,t]),e.add(r+1,0,o)}function ks(e,t){const r=e[t],i=r[0]==="enter"?"start":"end";return r[1][i]}const gO={name:"tasklistCheck",tokenize:yO};function EO(){return{text:{91:gO}}}function yO(e,t,r){const i=this;return l;function l(f){return i.previous!==null||!i._gfmTasklistFirstContentOfListItem?r(f):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(f),e.exit("taskListCheckMarker"),o)}function o(f){return Pt(f)?(e.enter("taskListCheckValueUnchecked"),e.consume(f),e.exit("taskListCheckValueUnchecked"),u):f===88||f===120?(e.enter("taskListCheckValueChecked"),e.consume(f),e.exit("taskListCheckValueChecked"),u):r(f)}function u(f){return f===93?(e.enter("taskListCheckMarker"),e.consume(f),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),d):r(f)}function d(f){return Ve(f)?t(f):dt(f)?e.check({tokenize:bO},t,r)(f):r(f)}}function bO(e,t,r){return gt(e,i,"whitespace");function i(l){return l===null?r(l):t(l)}}function CO(e){return hE([VR(),nO(),uO(e),hO(),EO()])}const vO={};function kO(e){const t=this,r=e||vO,i=t.data(),l=i.micromarkExtensions||(i.micromarkExtensions=[]),o=i.fromMarkdownExtensions||(i.fromMarkdownExtensions=[]),u=i.toMarkdownExtensions||(i.toMarkdownExtensions=[]);l.push(CO(r)),o.push($R()),u.push(HR(r))}const AO=200,s5=1e3;function BO(e,t){if(!e||e.length>s5)return null;let r;try{r=decodeURIComponent(e)}catch{return null}if(!dg(r)||r.includes("\0")||/^[a-z][a-z\d+.-]*:/i.test(r)||r.startsWith("//")||r.split("/").includes(".."))return null;if(r.startsWith("/")||r.startsWith("~/"))return r;const i=r.replace(/^(?:\.\/)+/,"");return i?t?`${t}/${i}`:i:null}function DO(e,t){if(!e||e.length>s5||e.includes("\0")||!/^\.context\/attachments\/[A-Za-z0-9]{6}\/[^/]+$/.test(e))return null;const r=dg(e)?"image":hf(e)?"source":null;return r?{reference:t?`${t}/${e}`:e,kind:r}:null}function l5(e,t){const r=new Map;for(const i of t??[]){const l=i.slice(i.lastIndexOf("/")+1),o=r.get(l);o?o.push(i):r.set(l,[i])}return i=>{const l=wO(i);if(!l)return null;const{path:o,location:u}=l;if(o.startsWith("/")||o.startsWith("~/"))return o+u;if(!e)return null;const d=FO(r,o);return d?`${e}/${d}${u}`:null}}function wO(e){if(!e||e.length>AO||/\s/.test(e)||e.includes("://"))return null;const t=e.match(/:([1-9]\d*)(?::\d+)?$/),r=t?t[0]:"",i=t?e.slice(0,-r.length):e;return i.startsWith("../")||i.includes("/../")?null:hf(i)?{path:i.startsWith("./")?i.slice(2):i,location:r}:null}function FO(e,t){const r=t.slice(t.lastIndexOf("/")+1),i=e.get(r);if(!i)return null;const l=i.filter(o=>o===t||o.endsWith(`/${t}`));return l.length===1?l[0]:null}const gc=D.createContext(null),SO=gc.Provider,NO=l5(null,void 0);function o5(e){const t=D.useContext(gc)?.resolveMention??NO;return e===null?null:t(e)}function c5(e){return BO(e,D.useContext(gc)?.worktree??null)}function _O(e){return DO(e,D.useContext(gc)?.worktree??null)}function MO(e){const t=e.regex,r={},i={begin:/\$\{/,end:/\}/,contains:["self",{begin:/:-/,contains:[r]}]};Object.assign(r,{className:"variable",variants:[{begin:t.concat(/\$[\w\d#@][\w\d_]*/,"(?![\\w\\d])(?![$])")},i]});const l={className:"subst",begin:/\$\(/,end:/\)/,contains:[e.BACKSLASH_ESCAPE]},o=e.inherit(e.COMMENT(),{match:[/(^|\s)/,/#.*$/],scope:{2:"comment"}}),u={begin:/<<-?\s*(?=\w+)/,starts:{contains:[e.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,className:"string"})]}},d={className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,r,l]};l.contains.push(d);const f={match:/\\"/},h={className:"string",begin:/'/,end:/'/},m={match:/\\'/},p={begin:/\$?\(\(/,end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:"number"},e.NUMBER_MODE,r]},y=["fish","bash","zsh","sh","csh","ksh","tcsh","dash","scsh"],b=e.SHEBANG({binary:`(${y.join("|")})`,relevance:10}),C={className:"function",begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0,contains:[e.inherit(e.TITLE_MODE,{begin:/\w[\w\d_]*/})],relevance:0},k=["if","then","else","elif","fi","time","for","while","until","in","do","done","case","esac","coproc","function","select"],v=["true","false"],A={match:/(\/[a-z._-]+)+/},F=["break","cd","continue","eval","exec","exit","export","getopts","hash","pwd","readonly","return","shift","test","times","trap","umask","unset"],N=["alias","bind","builtin","caller","command","declare","echo","enable","help","let","local","logout","mapfile","printf","read","readarray","source","sudo","type","typeset","ulimit","unalias"],_=["autoload","bg","bindkey","bye","cap","chdir","clone","comparguments","compcall","compctl","compdescribe","compfiles","compgroups","compquote","comptags","comptry","compvalues","dirs","disable","disown","echotc","echoti","emulate","fc","fg","float","functions","getcap","getln","history","integer","jobs","kill","limit","log","noglob","popd","print","pushd","pushln","rehash","sched","setcap","setopt","stat","suspend","ttyctl","unfunction","unhash","unlimit","unsetopt","vared","wait","whence","where","which","zcompile","zformat","zftp","zle","zmodload","zparseopts","zprof","zpty","zregexparse","zsocket","zstyle","ztcp"],S=["chcon","chgrp","chown","chmod","cp","dd","df","dir","dircolors","ln","ls","mkdir","mkfifo","mknod","mktemp","mv","realpath","rm","rmdir","shred","sync","touch","truncate","vdir","b2sum","base32","base64","cat","cksum","comm","csplit","cut","expand","fmt","fold","head","join","md5sum","nl","numfmt","od","paste","ptx","pr","sha1sum","sha224sum","sha256sum","sha384sum","sha512sum","shuf","sort","split","sum","tac","tail","tr","tsort","unexpand","uniq","wc","arch","basename","chroot","date","dirname","du","echo","env","expr","factor","groups","hostid","id","link","logname","nice","nohup","nproc","pathchk","pinky","printenv","printf","pwd","readlink","runcon","seq","sleep","stat","stdbuf","stty","tee","test","timeout","tty","uname","unlink","uptime","users","who","whoami","yes"];return{name:"Bash",aliases:["sh","zsh"],keywords:{$pattern:/\b[a-z][a-z0-9._-]+\b/,keyword:k,literal:v,built_in:[...F,...N,"set","shopt",..._,...S]},contains:[b,e.SHEBANG(),C,p,o,u,A,d,f,h,m,r]}}const jO=e=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:e.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},UNICODE_RANGE:{scope:"number",begin:/\b[Uu]\+[0-9A-Fa-f][0-9A-Fa-f?]{0,4}(-[0-9A-Fa-f][0-9A-Fa-f]{0,4})?/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:e.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),TO=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],RO=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],OO=[...TO,...RO],zO=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),LO=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),PO=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),IO=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","unicode-range","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse();function UO(e){const t=e.regex,r=jO(e),i={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},l="and or not only",o=/@-?\w[\w]*(-\w+)*/,u="[a-zA-Z-][a-zA-Z0-9_-]*",d=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE];return{name:"CSS",case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"},classNameAliases:{keyframePosition:"selector-tag"},contains:[r.BLOCK_COMMENT,i,r.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:"selector-class",begin:"\\."+u,relevance:0},r.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+LO.join("|")+")"},{begin:":(:)?("+PO.join("|")+")"}]},r.CSS_VARIABLE,{className:"attribute",begin:"\\b("+IO.join("|")+")\\b"},{begin:/:/,end:/[;}{]/,contains:[r.BLOCK_COMMENT,r.HEXCOLOR,r.IMPORTANT,r.CSS_NUMBER_MODE,r.UNICODE_RANGE,...d,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[...d,{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},r.FUNCTION_DISPATCH]},{begin:t.lookahead(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:o},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:l,attribute:zO.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...d,r.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+OO.join("|")+")\\b"}]}}function $O(e){const t=e.regex,r={className:"number",relevance:0,variants:[{begin:/([+-]+)?[\d]+_[\d_]+/},{begin:e.NUMBER_RE}]},i=e.COMMENT();i.variants=[{begin:/;/,end:/$/},{begin:/#/,end:/$/}];const l={className:"variable",variants:[{begin:/\$[\w\d"][\w\d_]*/},{begin:/\$\{(.*?)\}/}]},o={className:"literal",begin:/\bon|off|true|false|yes|no\b/},u={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:"'''",end:"'''",relevance:10},{begin:'"""',end:'"""',relevance:10},{begin:'"',end:'"'},{begin:"'",end:"'"}]},d={begin:/\[/,end:/\]/,contains:[i,o,l,u,r,"self"],relevance:0},f=/[A-Za-z0-9_-]+/,h=/"(\\"|[^"])*"/,m=/'[^']*'/,p=t.either(f,h,m),y=t.concat(p,"(\\s*\\.\\s*",p,")*",t.lookahead(/\s*=\s*[^#\s]/));return{name:"TOML, also INI",aliases:["toml"],case_insensitive:!0,illegal:/\S/,contains:[i,{className:"section",begin:/\[+/,end:/\]+/},{begin:y,className:"attr",starts:{end:/$/,contains:[i,d,o,l,u,r]}}]}}const C2="[A-Za-z$_][0-9A-Za-z$_]*",HO=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],qO=["true","false","null","undefined","NaN","Infinity"],u5=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],x5=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],d5=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],GO=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],VO=[].concat(d5,u5,x5);function QO(e){const t=e.regex,r=(ie,{after:xe})=>{const j="</"+ie[0].slice(1);return ie.input.indexOf(j,xe)!==-1},i=C2,l={begin:"<>",end:"</>"},o=/<[A-Za-z0-9\\._:-]+\s*\/>/,u={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(ie,xe)=>{const j=ie[0].length+ie.index,L=ie.input[j];if(L==="<"||L===","){xe.ignoreMatch();return}L===">"&&(r(ie,{after:j})||xe.ignoreMatch());let V;const R=ie.input.substring(j);if(V=R.match(/^\s*=/)){xe.ignoreMatch();return}if((V=R.match(/^\s+extends\s+/))&&V.index===0){xe.ignoreMatch();return}}},d={$pattern:C2,keyword:HO,literal:qO,built_in:VO,"variable.language":GO},f="[0-9](_?[0-9])*",h=`\\.(${f})`,m="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",p={className:"number",variants:[{begin:`(\\b(${m})((${h})|\\.)?|(${h}))[eE][+-]?(${f})\\b`},{begin:`\\b(${m})\\b((${h})\\b|\\.)?|(${h})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},y={className:"subst",begin:"\\$\\{",end:"\\}",keywords:d,contains:[]},b={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,y],subLanguage:"xml"}},C={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,y],subLanguage:"css"}},k={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,y],subLanguage:"graphql"}},v={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,y]},F={className:"comment",variants:[e.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:i+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]},N=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,b,C,k,v,{match:/\$\d+/},p];y.contains=N.concat({begin:/\{/,end:/\}/,keywords:d,contains:["self"].concat(N)});const _=[].concat(F,y.contains),S=_.concat([{begin:/(\s*)\(/,end:/\)/,keywords:d,contains:["self"].concat(_)}]),w={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:d,contains:S},O={variants:[{match:[/class/,/\s+/,i,/\s+/,/extends/,/\s+/,t.concat(i,"(",t.concat(/\./,i),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,i],scope:{1:"keyword",3:"title.class"}}]},z={relevance:0,match:t.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...u5,...x5]}},P={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},T={variants:[{match:[/function/,/\s+/,i,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[w],illegal:/%/},$={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function G(ie){return t.concat("(?!",ie.join("|"),")")}const ae={match:t.concat(/\b/,G([...d5,"super","import","await"].map(ie=>`${ie}\\s*\\(`)),i,t.lookahead(/\s*\(/)),className:"title.function",relevance:0},ee={begin:t.concat(/\./,t.lookahead(t.concat(i,/(?![0-9A-Za-z$_(])/))),end:i,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},K={match:[/get|set/,/\s+/,i,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},w]},I="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+e.UNDERSCORE_IDENT_RE+")\\s*=>",Y={match:[/const|var|let/,/\s+/,i,/\s*/,/=\s*/,/(async\s*)?/,t.lookahead(I)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[w]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:d,exports:{PARAMS_CONTAINS:S,CLASS_REFERENCE:z},illegal:/#(?![$_A-Za-z])/,contains:[e.SHEBANG({label:"shebang",binary:"node",relevance:5}),P,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,b,C,k,v,F,{match:/\$\d+/},p,z,{scope:"attr",match:i+t.lookahead(":"),relevance:0},Y,{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[F,e.REGEXP_MODE,{className:"function",begin:I,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:e.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:d,contains:S}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:l.begin,end:l.end},{match:o},{begin:u.begin,"on:begin":u.isTrulyOpeningTag,end:u.end}],subLanguage:"xml",contains:[{begin:u.begin,end:u.end,skip:!0,contains:["self"]}]}]},T,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+e.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[w,e.inherit(e.TITLE_MODE,{begin:i,className:"title.function"})]},{match:/\.\.\./,relevance:0},ee,{match:"\\$"+i,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[w]},ae,$,O,K,{match:/\$[(.]/}]}}const KO="([-+]?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)|NaN|[-+]?Infinity",YO={scope:"number",match:KO,relevance:0};function XO(e){const t={className:"attr",begin:/(("(\\.|[^\\"\r\n])*")|('(\\.|[^\\'\r\n])*'))(?=\s*:)/,relevance:1.01},r={match:/[{}[\],:]/,className:"punctuation",relevance:0},i=["true","false","null"],l={scope:"literal",beginKeywords:i.join(" ")};return{name:"JSON",aliases:["jsonc","json5"],keywords:{literal:i},contains:[t,r,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,l,YO,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE],illegal:"\\S"}}function WO(e){const t=e.regex,r={begin:/<\/?[A-Za-z_]/,end:">",subLanguage:"xml",relevance:0},i={begin:"^[-\\*]{3,}",end:"$"},l={className:"code",variants:[{begin:"(`{3,})[^`](.|\\n)*?\\1`*[ ]*"},{begin:"(~{3,})[^~](.|\\n)*?\\1~*[ ]*"},{begin:"```",end:"```+[ ]*$"},{begin:"~~~",end:"~~~+[ ]*$"},{begin:"`.+?`"},{begin:"(?=^( {4}|\\t))",contains:[{begin:"^( {4}|\\t)",end:"(\\n)$"}],relevance:0}]},o={className:"bullet",begin:"^[ ]*([*+-]|(\\d+\\.))(?=\\s+)",end:"\\s+",excludeEnd:!0},u={begin:/^\[[^\n]+\]:/,returnBegin:!0,contains:[{className:"symbol",begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0},{className:"link",begin:/:\s*/,end:/$/,excludeBegin:!0}]},d=/[A-Za-z][A-Za-z0-9+.-]*/,f={variants:[{begin:/\[.+?\]\[.*?\]/,relevance:0},{begin:/\[.+?\]\(((data|javascript|mailto):|(?:http|ftp)s?:\/\/).*?\)/,relevance:2},{begin:t.concat(/\[.+?\]\(/,d,/:\/\/.*?\)/),relevance:2},{begin:/\[.+?\]\([./?&#].*?\)/,relevance:1},{begin:/\[.*?\]\(.*?\)/,relevance:0}],returnBegin:!0,contains:[{match:/\[(?=\])/},{className:"string",relevance:0,begin:"\\[",end:"\\]",excludeBegin:!0,returnEnd:!0},{className:"link",relevance:0,begin:"\\]\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0},{className:"symbol",relevance:0,begin:"\\]\\[",end:"\\]",excludeBegin:!0,excludeEnd:!0}]},h={className:"strong",contains:[],variants:[{begin:/_{2}(?!\s)/,end:/_{2}/},{begin:/\*{2}(?!\s)/,end:/\*{2}/}]},m={className:"emphasis",contains:[],variants:[{begin:/\*(?![*\s])/,end:/\*/},{begin:/_(?![_\s])/,end:/_/,relevance:0}]},p=e.inherit(h,{contains:[]}),y=e.inherit(m,{contains:[]});h.contains.push(y),m.contains.push(p);let b=[r,f];return[h,m,p,y].forEach(A=>{A.contains=A.contains.concat(b)}),b=b.concat(h,m),{name:"Markdown",aliases:["md","mkdown","mkd"],contains:[{className:"section",variants:[{begin:"^#{1,6}",end:"$",contains:b},{begin:"(?=^.+?\\n[=-]{2,}$)",contains:[{begin:"^[=-]*$"},{begin:"^",end:"\\n",contains:b}]}]},r,o,h,m,{className:"quote",begin:"^>\\s+",contains:b,end:"$"},l,i,f,u,{scope:"literal",match:/&([a-zA-Z0-9]+|#[0-9]{1,7}|#[Xx][0-9a-fA-F]{1,6});/}]}}function ZO(e){const t=e.regex,r=new RegExp("[\\p{XID_Start}_]\\p{XID_Continue}*","u"),i=["and","as","assert","async","await","break","case","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","in","is","lambda","match","nonlocal|10","not","or","pass","raise","return","try","while","with","yield"],d={$pattern:/[A-Za-z]\w+|__\w+__/,keyword:i,built_in:["__import__","abs","all","any","ascii","bin","bool","breakpoint","bytearray","bytes","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","exec","filter","float","format","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","range","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip"],literal:["__debug__","Ellipsis","False","None","NotImplemented","True"],type:["Any","Callable","Coroutine","Dict","List","Literal","Generic","Optional","Sequence","Set","Tuple","Type","Union"]},f={className:"meta",begin:/^(>>>|\.\.\.) /},h={className:"subst",begin:/\{/,end:/\}/,keywords:d,illegal:/#/},m={begin:/\{\{/,relevance:0},p={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,f],relevance:10},{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,f],relevance:10},{begin:/([fF][rR]|[rR][fF]|[fF])'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,f,m,h]},{begin:/([fF][rR]|[rR][fF]|[fF])"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,f,m,h]},{begin:/([uU]|[rR])'/,end:/'/,relevance:10},{begin:/([uU]|[rR])"/,end:/"/,relevance:10},{begin:/([bB]|[bB][rR]|[rR][bB])'/,end:/'/},{begin:/([bB]|[bB][rR]|[rR][bB])"/,end:/"/},{begin:/([fF][rR]|[rR][fF]|[fF])'/,end:/'/,contains:[e.BACKSLASH_ESCAPE,m,h]},{begin:/([fF][rR]|[rR][fF]|[fF])"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,m,h]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},y="[0-9](_?[0-9])*",b=`(\\b(${y}))?\\.(${y})|\\b(${y})\\.`,C=`\\b|${i.join("|")}`,k={className:"number",relevance:0,variants:[{begin:`(\\b(${y})|(${b}))[eE][+-]?(${y})[jJ]?(?=${C})`},{begin:`(${b})[jJ]?`},{begin:`\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?(?=${C})`},{begin:`\\b0[bB](_?[01])+[lL]?(?=${C})`},{begin:`\\b0[oO](_?[0-7])+[lL]?(?=${C})`},{begin:`\\b0[xX](_?[0-9a-fA-F])+[lL]?(?=${C})`},{begin:`\\b(${y})[jJ](?=${C})`}]},v={className:"comment",begin:t.lookahead(/# type:/),end:/$/,keywords:d,contains:[{begin:/# type:/},{begin:/#/,end:/\b\B/,endsWithParent:!0}]},A={className:"params",variants:[{className:"",begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:d,contains:["self",f,k,p,e.HASH_COMMENT_MODE]}]};return h.contains=[p,k,f],{name:"Python",aliases:["py","gyp","ipython"],unicodeRegex:!0,keywords:d,illegal:/(<\/|\?)|=>/,contains:[f,k,{scope:"variable.language",match:/\bself\b/},{beginKeywords:"if",relevance:0},{match:/\bor\b/,scope:"keyword"},p,v,e.HASH_COMMENT_MODE,{match:[/\bdef/,/\s+/,r],scope:{1:"keyword",3:"title.function"},contains:[A]},{variants:[{match:[/\bclass/,/\s+/,r,/\s*/,/\(\s*/,r,/\s*\)/]},{match:[/\bclass/,/\s+/,r]}],scope:{1:"keyword",3:"title.class",6:"title.class.inherited"}},{className:"meta",begin:/^[\t ]*@/,end:/(?=#)|$/,contains:[k,A,p]}]}}function JO(e){const t=e.regex,r=e.COMMENT("--","$"),i={scope:"string",variants:[{begin:/'/,end:/'/,contains:[{match:/''/}]}]},l={begin:/"/,end:/"/,contains:[{match:/""/}]},o=["true","false","unknown"],u=["double precision","large object","with timezone","without timezone"],d=["bigint","binary","blob","boolean","char","character","clob","date","dec","decfloat","decimal","float","int","integer","interval","nchar","nclob","national","numeric","real","row","smallint","time","timestamp","varchar","varying","varbinary"],f=["add","asc","collation","desc","final","first","last","view"],h=["abs","acos","all","allocate","alter","and","any","are","array","array_agg","array_max_cardinality","as","asensitive","asin","asymmetric","at","atan","atomic","authorization","avg","begin","begin_frame","begin_partition","between","bigint","binary","blob","boolean","both","by","call","called","cardinality","cascaded","case","cast","ceil","ceiling","char","char_length","character","character_length","check","classifier","clob","close","coalesce","collate","collect","column","commit","condition","connect","constraint","contains","convert","copy","corr","corresponding","cos","cosh","count","covar_pop","covar_samp","create","cross","cube","cume_dist","current","current_catalog","current_date","current_default_transform_group","current_path","current_role","current_row","current_schema","current_time","current_timestamp","current_path","current_role","current_transform_group_for_type","current_user","cursor","cycle","date","day","deallocate","dec","decimal","decfloat","declare","default","define","delete","dense_rank","deref","describe","deterministic","disconnect","distinct","double","drop","dynamic","each","element","else","empty","end","end_frame","end_partition","end-exec","equals","escape","every","except","exec","execute","exists","exp","external","extract","false","fetch","filter","first_value","float","floor","for","foreign","frame_row","free","from","full","function","fusion","get","global","grant","group","grouping","groups","having","hold","hour","identity","in","indicator","initial","inner","inout","insensitive","insert","int","integer","intersect","intersection","interval","into","is","join","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","language","large","last_value","lateral","lead","leading","left","like","like_regex","listagg","ln","local","localtime","localtimestamp","log","log10","lower","match","match_number","match_recognize","matches","max","member","merge","method","min","minute","mod","modifies","module","month","multiset","national","natural","nchar","nclob","new","no","none","normalize","not","nth_value","ntile","null","nullif","numeric","octet_length","occurrences_regex","of","offset","old","omit","on","one","only","open","or","order","out","outer","over","overlaps","overlay","parameter","partition","pattern","per","percent","percent_rank","percentile_cont","percentile_disc","period","portion","position","position_regex","power","precedes","precision","prepare","primary","procedure","ptf","range","rank","reads","real","recursive","ref","references","referencing","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","release","result","return","returns","revoke","right","rollback","rollup","row","row_number","rows","running","savepoint","scope","scroll","search","second","seek","select","sensitive","session_user","set","show","similar","sin","sinh","skip","smallint","some","specific","specifictype","sql","sqlexception","sqlstate","sqlwarning","sqrt","start","static","stddev_pop","stddev_samp","submultiset","subset","substring","substring_regex","succeeds","sum","symmetric","system","system_time","system_user","table","tablesample","tan","tanh","then","time","timestamp","timezone_hour","timezone_minute","to","trailing","translate","translate_regex","translation","treat","trigger","trim","trim_array","true","truncate","uescape","union","unique","unknown","unnest","update","upper","user","using","value","values","value_of","var_pop","var_samp","varbinary","varchar","varying","versioning","when","whenever","where","width_bucket","window","with","within","without","year"],m=["abs","acos","array_agg","asin","atan","avg","cast","ceil","ceiling","coalesce","corr","cos","cosh","count","covar_pop","covar_samp","cume_dist","dense_rank","deref","element","exp","extract","first_value","floor","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","last_value","lead","listagg","ln","log","log10","lower","max","min","mod","nth_value","ntile","nullif","percent_rank","percentile_cont","percentile_disc","position","position_regex","power","rank","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","row_number","sin","sinh","sqrt","stddev_pop","stddev_samp","substring","substring_regex","sum","tan","tanh","translate","translate_regex","treat","trim","trim_array","unnest","upper","value_of","var_pop","var_samp","width_bucket"],p=["current_catalog","current_date","current_default_transform_group","current_path","current_role","current_schema","current_transform_group_for_type","current_user","session_user","system_time","system_user","current_time","localtime","current_timestamp","localtimestamp"],y=["create table","insert into","primary key","foreign key","not null","alter table","add constraint","grouping sets","on overflow","character set","respect nulls","ignore nulls","nulls first","nulls last","depth first","breadth first"],b=m,C=[...h,...f].filter(S=>!m.includes(S)),k={scope:"variable",match:/@[a-z0-9][a-z0-9_]*/},v={scope:"operator",match:/[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,relevance:0},A={match:t.concat(/\b/,t.either(...b),/\s*\(/),relevance:0,keywords:{built_in:b}};function F(S){return t.concat(/\b/,t.either(...S.map(w=>w.replace(/\s+/,"\\s+"))),/\b/)}const N={scope:"keyword",match:F(y),relevance:0};function _(S,{exceptions:w,when:O}={}){const z=O;return w=w||[],S.map(P=>P.match(/\|\d+$/)||w.includes(P)?P:z(P)?`${P}|0`:P)}return{name:"SQL",case_insensitive:!0,illegal:/[{}]|<\//,keywords:{$pattern:/\b[\w\.]+/,keyword:_(C,{when:S=>S.length<3}),literal:o,type:d,built_in:p},contains:[{scope:"type",match:F(u)},N,A,k,i,l,e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,r,v]}}const ic="[A-Za-z$_][0-9A-Za-z$_]*",f5=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],h5=["true","false","null","undefined","NaN","Infinity"],p5=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],m5=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],g5=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],E5=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],y5=[].concat(g5,p5,m5);function ez(e){const t=e.regex,r=(ie,{after:xe})=>{const j="</"+ie[0].slice(1);return ie.input.indexOf(j,xe)!==-1},i=ic,l={begin:"<>",end:"</>"},o=/<[A-Za-z0-9\\._:-]+\s*\/>/,u={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(ie,xe)=>{const j=ie[0].length+ie.index,L=ie.input[j];if(L==="<"||L===","){xe.ignoreMatch();return}L===">"&&(r(ie,{after:j})||xe.ignoreMatch());let V;const R=ie.input.substring(j);if(V=R.match(/^\s*=/)){xe.ignoreMatch();return}if((V=R.match(/^\s+extends\s+/))&&V.index===0){xe.ignoreMatch();return}}},d={$pattern:ic,keyword:f5,literal:h5,built_in:y5,"variable.language":E5},f="[0-9](_?[0-9])*",h=`\\.(${f})`,m="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",p={className:"number",variants:[{begin:`(\\b(${m})((${h})|\\.)?|(${h}))[eE][+-]?(${f})\\b`},{begin:`\\b(${m})\\b((${h})\\b|\\.)?|(${h})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},y={className:"subst",begin:"\\$\\{",end:"\\}",keywords:d,contains:[]},b={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,y],subLanguage:"xml"}},C={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,y],subLanguage:"css"}},k={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,y],subLanguage:"graphql"}},v={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,y]},F={className:"comment",variants:[e.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:i+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]},N=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,b,C,k,v,{match:/\$\d+/},p];y.contains=N.concat({begin:/\{/,end:/\}/,keywords:d,contains:["self"].concat(N)});const _=[].concat(F,y.contains),S=_.concat([{begin:/(\s*)\(/,end:/\)/,keywords:d,contains:["self"].concat(_)}]),w={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:d,contains:S},O={variants:[{match:[/class/,/\s+/,i,/\s+/,/extends/,/\s+/,t.concat(i,"(",t.concat(/\./,i),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,i],scope:{1:"keyword",3:"title.class"}}]},z={relevance:0,match:t.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...p5,...m5]}},P={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},T={variants:[{match:[/function/,/\s+/,i,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[w],illegal:/%/},$={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function G(ie){return t.concat("(?!",ie.join("|"),")")}const ae={match:t.concat(/\b/,G([...g5,"super","import","await"].map(ie=>`${ie}\\s*\\(`)),i,t.lookahead(/\s*\(/)),className:"title.function",relevance:0},ee={begin:t.concat(/\./,t.lookahead(t.concat(i,/(?![0-9A-Za-z$_(])/))),end:i,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},K={match:[/get|set/,/\s+/,i,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},w]},I="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+e.UNDERSCORE_IDENT_RE+")\\s*=>",Y={match:[/const|var|let/,/\s+/,i,/\s*/,/=\s*/,/(async\s*)?/,t.lookahead(I)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[w]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:d,exports:{PARAMS_CONTAINS:S,CLASS_REFERENCE:z},illegal:/#(?![$_A-Za-z])/,contains:[e.SHEBANG({label:"shebang",binary:"node",relevance:5}),P,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,b,C,k,v,F,{match:/\$\d+/},p,z,{scope:"attr",match:i+t.lookahead(":"),relevance:0},Y,{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[F,e.REGEXP_MODE,{className:"function",begin:I,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:e.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:d,contains:S}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:l.begin,end:l.end},{match:o},{begin:u.begin,"on:begin":u.isTrulyOpeningTag,end:u.end}],subLanguage:"xml",contains:[{begin:u.begin,end:u.end,skip:!0,contains:["self"]}]}]},T,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+e.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[w,e.inherit(e.TITLE_MODE,{begin:i,className:"title.function"})]},{match:/\.\.\./,relevance:0},ee,{match:"\\$"+i,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[w]},ae,$,O,K,{match:/\$[(.]/}]}}function tz(e){const t=e.regex,r=ez(e),i=ic,l=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],o={begin:[/namespace/,/\s+/,e.IDENT_RE],beginScope:{1:"keyword",3:"title.class"}},u={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:l},contains:[r.exports.CLASS_REFERENCE]},d={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},f=["type","interface","public","private","protected","implements","declare","abstract","readonly","enum","override","satisfies"],h={$pattern:ic,keyword:f5.concat(f),literal:h5,built_in:y5.concat(l),"variable.language":E5},m={className:"meta",begin:"@"+i},p=(k,v,A)=>{const F=k.contains.findIndex(N=>N.label===v);if(F===-1)throw new Error("can not find mode to replace");k.contains.splice(F,1,A)};Object.assign(r.keywords,h),r.exports.PARAMS_CONTAINS.push(m);const y=r.contains.find(k=>k.scope==="attr"),b=Object.assign({},y,{match:t.concat(i,t.lookahead(/\s*\?:/))});r.exports.PARAMS_CONTAINS.push([r.exports.CLASS_REFERENCE,y,b]),r.contains=r.contains.concat([m,o,u,b]),p(r,"shebang",e.SHEBANG()),p(r,"use_strict",d);const C=r.contains.find(k=>k.label==="func.def");return C.relevance=0,Object.assign(r,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),r}function nz(e){const t=e.regex,r=t.concat(/[\p{L}_]/u,t.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),i=/[\p{L}0-9._:-]+/u,l={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},o={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},u=e.inherit(o,{begin:/\(/,end:/\)/}),d=e.inherit(e.APOS_STRING_MODE,{className:"string"}),f=e.inherit(e.QUOTE_STRING_MODE,{className:"string"}),h={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:i,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[l]},{begin:/'/,end:/'/,contains:[l]},{begin:/[^\s"'=<>`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,unicodeRegex:!0,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,relevance:10,contains:[o,f,d,u,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[o,u,f,d]}]}]},e.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},l,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[f]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[h],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[h],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:t.concat(/</,t.lookahead(t.concat(r,t.either(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:r,relevance:0,starts:h}]},{className:"tag",begin:t.concat(/<\//,t.lookahead(t.concat(r,/>/))),contains:[{className:"name",begin:r,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}function rz(e){const t="true false yes no null",r="[\\w#;/?:@&=+$,.~*'()[\\]]+",i={className:"attr",variants:[{begin:/[\w*@][\w*@ :()\./-]*:(?=[ \t]|$)/},{begin:/"[\w*@][\w*@ :()\./-]*":(?=[ \t]|$)/},{begin:/'[\w*@][\w*@ :()\./-]*':(?=[ \t]|$)/}]},l={className:"template-variable",variants:[{begin:/\{\{/,end:/\}\}/},{begin:/%\{/,end:/\}/}]},o={className:"string",relevance:0,begin:/'/,end:/'/,contains:[{match:/''/,scope:"char.escape",relevance:0}]},u={className:"string",relevance:0,variants:[{begin:/"/,end:/"/},{begin:/\S+/}],contains:[e.BACKSLASH_ESCAPE,l]},d=e.inherit(u,{variants:[{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]},{begin:/"/,end:/"/},{begin:/[^\s,{}[\]]+/}]}),y={className:"number",begin:"\\b"+"[0-9]{4}(-[0-9][0-9]){0,2}"+"([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?"+"(\\.[0-9]*)?"+"([ \\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?"+"\\b"},b={end:",",endsWithParent:!0,excludeEnd:!0,keywords:t,relevance:0},C={begin:/\{/,end:/\}/,contains:[b],illegal:"\\n",relevance:0},k={begin:"\\[",end:"\\]",contains:[b],illegal:"\\n",relevance:0},v=[i,{className:"meta",begin:"^---\\s*$",relevance:10},{className:"string",begin:"[\\|>]([1-9]?[+-])?[ ]*\\n( +)[^ ][^\\n]*\\n(\\2[^\\n]+\\n?)*"},{begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:"!\\w+!"+r},{className:"type",begin:"!<"+r+">"},{className:"type",begin:"!"+r},{className:"type",begin:"!!"+r},{className:"meta",begin:"&"+e.UNDERSCORE_IDENT_RE+"$"},{className:"meta",begin:"\\*"+e.UNDERSCORE_IDENT_RE+"$"},{className:"bullet",begin:"-(?=[ ]|$)",relevance:0},e.HASH_COMMENT_MODE,{beginKeywords:t,keywords:{literal:t}},y,{className:"number",begin:e.C_NUMBER_RE+"\\b",relevance:0},C,k,o,u],A=[...v];return A.pop(),A.push(d),b.contains=A,{name:"YAML",case_insensitive:!0,aliases:["yml"],contains:v}}var Xx,v2;function az(){if(v2)return Xx;v2=1;function e(H){return H instanceof Map?H.clear=H.delete=H.set=function(){throw new Error("map is read-only")}:H instanceof Set&&(H.add=H.clear=H.delete=function(){throw new Error("set is read-only")}),Object.freeze(H),Object.getOwnPropertyNames(H).forEach(ue=>{const Ae=H[ue],Ke=typeof Ae;(Ke==="object"||Ke==="function")&&!Object.isFrozen(Ae)&&e(Ae)}),H}class t{constructor(ue){ue.data===void 0&&(ue.data={}),this.data=ue.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function r(H){return H.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function i(H,...ue){const Ae=Object.create(null);for(const Ke in H)Ae[Ke]=H[Ke];return ue.forEach(function(Ke){for(const _t in Ke)Ae[_t]=Ke[_t]}),Ae}const l="</span>",o=H=>!!H.scope,u=(H,{prefix:ue})=>{if(H.startsWith("language:"))return H.replace("language:","language-");if(H.includes(".")){const Ae=H.split(".");return[`${ue}${Ae.shift()}`,...Ae.map((Ke,_t)=>`${Ke}${"_".repeat(_t+1)}`)].join(" ")}return`${ue}${H}`};class d{constructor(ue,Ae){this.buffer="",this.classPrefix=Ae.classPrefix,ue.walk(this)}addText(ue){this.buffer+=r(ue)}openNode(ue){if(!o(ue))return;const Ae=u(ue.scope,{prefix:this.classPrefix});this.span(Ae)}closeNode(ue){o(ue)&&(this.buffer+=l)}value(){return this.buffer}span(ue){this.buffer+=`<span class="${ue}">`}}const f=(H={})=>{const ue={children:[]};return Object.assign(ue,H),ue};class h{constructor(){this.rootNode=f(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(ue){this.top.children.push(ue)}openNode(ue){const Ae=f({scope:ue});this.add(Ae),this.stack.push(Ae)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(ue){return this.constructor._walk(ue,this.rootNode)}static _walk(ue,Ae){return typeof Ae=="string"?ue.addText(Ae):Ae.children&&(ue.openNode(Ae),Ae.children.forEach(Ke=>this._walk(ue,Ke)),ue.closeNode(Ae)),ue}static _collapse(ue){typeof ue!="string"&&ue.children&&(ue.children.every(Ae=>typeof Ae=="string")?ue.children=[ue.children.join("")]:ue.children.forEach(Ae=>{h._collapse(Ae)}))}}class m extends h{constructor(ue){super(),this.options=ue}addText(ue){ue!==""&&this.add(ue)}startScope(ue){this.openNode(ue)}endScope(){this.closeNode()}__addSublanguage(ue,Ae){const Ke=ue.root;Ae&&(Ke.scope=`language:${Ae}`),this.add(Ke)}toHTML(){return new d(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function p(H){return H?typeof H=="string"?H:H.source:null}function y(H){return k("(?=",H,")")}function b(H){return k("(?:",H,")*")}function C(H){return k("(?:",H,")?")}function k(...H){return H.map(Ae=>p(Ae)).join("")}function v(H){const ue=H[H.length-1];return typeof ue=="object"&&ue.constructor===Object?(H.splice(H.length-1,1),ue):{}}function A(...H){return"("+(v(H).capture?"":"?:")+H.map(Ke=>p(Ke)).join("|")+")"}function F(H){return new RegExp(H.toString()+"|").exec("").length-1}function N(H,ue){const Ae=H&&H.exec(ue);return Ae&&Ae.index===0}const _=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function S(H,{joinWith:ue}){let Ae=0;return H.map(Ke=>{Ae+=1;const _t=Ae;let kt=p(Ke),Re="";for(;kt.length>0;){const Se=_.exec(kt);if(!Se){Re+=kt;break}Re+=kt.substring(0,Se.index),kt=kt.substring(Se.index+Se[0].length),Se[0][0]==="\\"&&Se[1]?Re+="\\"+String(Number(Se[1])+_t):(Re+=Se[0],Se[0]==="("&&Ae++)}return Re}).map(Ke=>`(${Ke})`).join(ue)}const w=/\b\B/,O="[a-zA-Z]\\w*",z="[a-zA-Z_]\\w*",P="\\b\\d+(\\.\\d+)?",T="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",$="\\b(0b[01]+)",G="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",ae=(H={})=>{const ue=/^#![ ]*\//;return H.binary&&(H.begin=k(ue,/.*\b/,H.binary,/\b.*/)),i({scope:"meta",begin:ue,end:/$/,relevance:0,"on:begin":(Ae,Ke)=>{Ae.index!==0&&Ke.ignoreMatch()}},H)},ee={begin:"\\\\[\\s\\S]",relevance:0},K={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[ee]},I={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[ee]},Y={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},ie=function(H,ue,Ae={}){const Ke=i({scope:"comment",begin:H,end:ue,contains:[]},Ae);Ke.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const _t=A("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return Ke.contains.push({begin:k(/[ ]+/,"(",_t,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),Ke},xe=ie("//","$"),j=ie("/\\*","\\*/"),L=ie("#","$"),V={scope:"number",begin:P,relevance:0},R={scope:"number",begin:T,relevance:0},se={scope:"number",begin:$,relevance:0},be={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[ee,{begin:/\[/,end:/\]/,relevance:0,contains:[ee]}]},W={scope:"title",begin:O,relevance:0},me={scope:"title",begin:z,relevance:0},Ue={begin:"\\.\\s*"+z,relevance:0};var tt=Object.freeze({__proto__:null,APOS_STRING_MODE:K,BACKSLASH_ESCAPE:ee,BINARY_NUMBER_MODE:se,BINARY_NUMBER_RE:$,COMMENT:ie,C_BLOCK_COMMENT_MODE:j,C_LINE_COMMENT_MODE:xe,C_NUMBER_MODE:R,C_NUMBER_RE:T,END_SAME_AS_BEGIN:function(H){return Object.assign(H,{"on:begin":(ue,Ae)=>{Ae.data._beginMatch=ue[1]},"on:end":(ue,Ae)=>{Ae.data._beginMatch!==ue[1]&&Ae.ignoreMatch()}})},HASH_COMMENT_MODE:L,IDENT_RE:O,MATCH_NOTHING_RE:w,METHOD_GUARD:Ue,NUMBER_MODE:V,NUMBER_RE:P,PHRASAL_WORDS_MODE:Y,QUOTE_STRING_MODE:I,REGEXP_MODE:be,RE_STARTERS_RE:G,SHEBANG:ae,TITLE_MODE:W,UNDERSCORE_IDENT_RE:z,UNDERSCORE_TITLE_MODE:me});function ct(H,ue){H.input[H.index-1]==="."&&ue.ignoreMatch()}function we(H,ue){H.className!==void 0&&(H.scope=H.className,delete H.className)}function Nt(H,ue){ue&&H.beginKeywords&&(H.begin="\\b("+H.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",H.__beforeBegin=ct,H.keywords=H.keywords||H.beginKeywords,delete H.beginKeywords,H.relevance===void 0&&(H.relevance=0))}function Fe(H,ue){Array.isArray(H.illegal)&&(H.illegal=A(...H.illegal))}function ne(H,ue){if(H.match){if(H.begin||H.end)throw new Error("begin & end are not supported with match");H.begin=H.match,delete H.match}}function Oe(H,ue){H.relevance===void 0&&(H.relevance=1)}const at=(H,ue)=>{if(!H.beforeMatch)return;if(H.starts)throw new Error("beforeMatch cannot be used with starts");const Ae=Object.assign({},H);Object.keys(H).forEach(Ke=>{delete H[Ke]}),H.keywords=Ae.keywords,H.begin=k(Ae.beforeMatch,y(Ae.begin)),H.starts={relevance:0,contains:[Object.assign(Ae,{endsParent:!0})]},H.relevance=0,delete Ae.beforeMatch},Ct=["of","and","for","in","not","or","if","then","parent","list","value"],Et="keyword";function hn(H,ue,Ae=Et){const Ke=Object.create(null);return typeof H=="string"?_t(Ae,H.split(" ")):Array.isArray(H)?_t(Ae,H):Object.keys(H).forEach(function(kt){Object.assign(Ke,hn(H[kt],ue,kt))}),Ke;function _t(kt,Re){ue&&(Re=Re.map(Se=>Se.toLowerCase())),Re.forEach(function(Se){const qe=Se.split("|");Ke[qe[0]]=[kt,nt(qe[0],qe[1])]})}}function nt(H,ue){return ue?Number(ue):yn(H)?0:1}function yn(H){return Ct.includes(H.toLowerCase())}const ge={},Ne=H=>{console.error(H)},kn=(H,...ue)=>{console.log(`WARN: ${H}`,...ue)},le=(H,ue)=>{ge[`${H}/${ue}`]||(console.log(`Deprecated as of ${H}. ${ue}`),ge[`${H}/${ue}`]=!0)},Z=new Error;function _e(H,ue,{key:Ae}){let Ke=0;const _t=H[Ae],kt={},Re={};for(let Se=1;Se<=ue.length;Se++)Re[Se+Ke]=_t[Se],kt[Se+Ke]=!0,Ke+=F(ue[Se-1]);H[Ae]=Re,H[Ae]._emit=kt,H[Ae]._multi=!0}function Ge(H){if(Array.isArray(H.begin)){if(H.skip||H.excludeBegin||H.returnBegin)throw Ne("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),Z;if(typeof H.beginScope!="object"||H.beginScope===null)throw Ne("beginScope must be object"),Z;_e(H,H.begin,{key:"beginScope"}),H.begin=S(H.begin,{joinWith:""})}}function Xe(H){if(Array.isArray(H.end)){if(H.skip||H.excludeEnd||H.returnEnd)throw Ne("skip, excludeEnd, returnEnd not compatible with endScope: {}"),Z;if(typeof H.endScope!="object"||H.endScope===null)throw Ne("endScope must be object"),Z;_e(H,H.end,{key:"endScope"}),H.end=S(H.end,{joinWith:""})}}function nn(H){H.scope&&typeof H.scope=="object"&&H.scope!==null&&(H.beginScope=H.scope,delete H.scope)}function bn(H){nn(H),typeof H.beginScope=="string"&&(H.beginScope={_wrap:H.beginScope}),typeof H.endScope=="string"&&(H.endScope={_wrap:H.endScope}),Ge(H),Xe(H)}function Yt(H){function ue(Re,Se){return new RegExp(p(Re),"m"+(H.case_insensitive?"i":"")+(H.unicodeRegex?"u":"")+(Se?"g":""))}class Ae{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(Se,qe){qe.position=this.position++,this.matchIndexes[this.matchAt]=qe,this.regexes.push([qe,Se]),this.matchAt+=F(Se)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const Se=this.regexes.map(qe=>qe[1]);this.matcherRe=ue(S(Se,{joinWith:"|"}),!0),this.lastIndex=0}exec(Se){this.matcherRe.lastIndex=this.lastIndex;const qe=this.matcherRe.exec(Se);if(!qe)return null;const Vt=qe.findIndex((_r,Ee)=>Ee>0&&_r!==void 0),Mt=this.matchIndexes[Vt];return qe.splice(0,Vt),Object.assign(qe,Mt)}}class Ke{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(Se){if(this.multiRegexes[Se])return this.multiRegexes[Se];const qe=new Ae;return this.rules.slice(Se).forEach(([Vt,Mt])=>qe.addRule(Vt,Mt)),qe.compile(),this.multiRegexes[Se]=qe,qe}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(Se,qe){this.rules.push([Se,qe]),qe.type==="begin"&&this.count++}exec(Se){const qe=this.getMatcher(this.regexIndex);qe.lastIndex=this.lastIndex;let Vt=qe.exec(Se);if(this.resumingScanAtSamePosition()&&!(Vt&&Vt.index===this.lastIndex)){const Mt=this.getMatcher(0);Mt.lastIndex=this.lastIndex+1,Vt=Mt.exec(Se)}return Vt&&(this.regexIndex+=Vt.position+1,this.regexIndex===this.count&&this.considerAll()),Vt}}function _t(Re){const Se=new Ke;return Re.contains.forEach(qe=>Se.addRule(qe.begin,{rule:qe,type:"begin"})),Re.terminatorEnd&&Se.addRule(Re.terminatorEnd,{type:"end"}),Re.illegal&&Se.addRule(Re.illegal,{type:"illegal"}),Se}function kt(Re,Se){const qe=Re;if(Re.isCompiled)return qe;[we,ne,bn,at].forEach(Mt=>Mt(Re,Se)),H.compilerExtensions.forEach(Mt=>Mt(Re,Se)),Re.__beforeBegin=null,[Nt,Fe,Oe].forEach(Mt=>Mt(Re,Se)),Re.isCompiled=!0;let Vt=null;return typeof Re.keywords=="object"&&Re.keywords.$pattern&&(Re.keywords=Object.assign({},Re.keywords),Vt=Re.keywords.$pattern,delete Re.keywords.$pattern),Vt=Vt||/\w+/,Re.keywords&&(Re.keywords=hn(Re.keywords,H.case_insensitive)),qe.keywordPatternRe=ue(Vt,!0),Se&&(Re.begin||(Re.begin=/\B|\b/),qe.beginRe=ue(qe.begin),!Re.end&&!Re.endsWithParent&&(Re.end=/\B|\b/),Re.end&&(qe.endRe=ue(qe.end)),qe.terminatorEnd=p(qe.end)||"",Re.endsWithParent&&Se.terminatorEnd&&(qe.terminatorEnd+=(Re.end?"|":"")+Se.terminatorEnd)),Re.illegal&&(qe.illegalRe=ue(Re.illegal)),Re.contains||(Re.contains=[]),Re.contains=[].concat(...Re.contains.map(function(Mt){return Cn(Mt==="self"?Re:Mt)})),Re.contains.forEach(function(Mt){kt(Mt,qe)}),Re.starts&&kt(Re.starts,Se),qe.matcher=_t(qe),qe}if(H.compilerExtensions||(H.compilerExtensions=[]),H.contains&&H.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return H.classNameAliases=i(H.classNameAliases||{}),kt(H)}function Bt(H){return H?H.endsWithParent||Bt(H.starts):!1}function Cn(H){return H.variants&&!H.cachedVariants&&(H.cachedVariants=H.variants.map(function(ue){return i(H,{variants:null},ue)})),H.cachedVariants?H.cachedVariants:Bt(H)?i(H,{starts:H.starts?i(H.starts):null}):Object.isFrozen(H)?i(H):H}var vt="11.11.2";class hr extends Error{constructor(ue,Ae){super(ue),this.name="HTMLInjectionError",this.html=Ae}}const rn=r,Yr=i,Lr=Symbol("nomatch"),Xr=7,Wr=function(H){const ue=Object.create(null),Ae=Object.create(null),Ke=[];let _t=!0;const kt="Could not find the language '{}', did you forget to load/include a language module?",Re={disableAutodetect:!0,name:"Plain text",contains:[]};let Se={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:m};function qe(ye){return Se.noHighlightRe.test(ye)}function Vt(ye){let $e=ye.className+" ";$e+=ye.parentNode?ye.parentNode.className:"";const ot=Se.languageDetectRe.exec($e);if(ot){const Dt=Ln(ot[1]);return Dt||(kn(kt.replace("{}",ot[1])),kn("Falling back to no-highlight mode for this block.",ye)),Dt?ot[1]:"no-highlight"}return $e.split(/\s+/).find(Dt=>qe(Dt)||Ln(Dt))}function Mt(ye,$e,ot){let Dt="",Jt="";typeof $e=="object"?(Dt=ye,ot=$e.ignoreIllegals,Jt=$e.language):(le("10.7.0","highlight(lang, code, ...args) has been deprecated."),le("10.7.0",`Please use highlight(code, options) instead.
|
|
42
|
-
https://github.com/highlightjs/highlight.js/issues/2277`),Jt=ye,Dt=$e),ot===void 0&&(ot=!0);const jn={code:Dt,language:Jt};li("before:highlight",jn);const Jn=jn.result?jn.result:_r(jn.language,jn.code,ot);return Jn.code=jn.code,li("after:highlight",Jn),Jn}function _r(ye,$e,ot,Dt){const Jt=Object.create(null);function jn(ke,ze){return ke.keywords[ze]}function Jn(){if(!Ye.keywords){ln.addText(wt);return}let ke=0;Ye.keywordPatternRe.lastIndex=0;let ze=Ye.keywordPatternRe.exec(wt),Je="";for(;ze;){Je+=wt.substring(ke,ze.index);const ft=Bn.case_insensitive?ze[0].toLowerCase():ze[0],Kt=jn(Ye,ft);if(Kt){const[pr,Is]=Kt;if(ln.addText(Je),Je="",Jt[ft]=(Jt[ft]||0)+1,Jt[ft]<=Xr&&(wa+=Is),pr.startsWith("_"))Je+=ze[0];else{const Eo=Bn.classNameAliases[pr]||pr;er(ze[0],Eo)}}else Je+=ze[0];ke=Ye.keywordPatternRe.lastIndex,ze=Ye.keywordPatternRe.exec(wt)}Je+=wt.substring(ke),ln.addText(Je)}function Un(){if(wt==="")return;let ke=null;if(typeof Ye.subLanguage=="string"){if(!ue[Ye.subLanguage]){ln.addText(wt);return}ke=_r(Ye.subLanguage,wt,!0,go[Ye.subLanguage]),go[Ye.subLanguage]=ke._top}else ke=Zt(wt,Ye.subLanguage.length?Ye.subLanguage:null);Ye.relevance>0&&(wa+=ke.relevance),ln.__addSublanguage(ke._emitter,ke.language)}function It(){Ye.subLanguage!=null?Un():Jn(),wt=""}function er(ke,ze){ke!==""&&(ln.startScope(ze),ln.addText(ke),ln.endScope())}function po(ke,ze){let Je=1;const ft=ze.length-1;for(;Je<=ft;){if(!ke._emit[Je]){Je++;continue}const Kt=Bn.classNameAliases[ke[Je]]||ke[Je],pr=ze[Je];Kt?er(pr,Kt):(wt=pr,Jn(),wt=""),Je++}}function Ii(ke,ze){return ke.scope&&typeof ke.scope=="string"&&ln.openNode(Bn.classNameAliases[ke.scope]||ke.scope),ke.beginScope&&(ke.beginScope._wrap?(er(wt,Bn.classNameAliases[ke.beginScope._wrap]||ke.beginScope._wrap),wt=""):ke.beginScope._multi&&(po(ke.beginScope,ze),wt="")),Ye=Object.create(ke,{parent:{value:Ye}}),Ye}function zs(ke,ze,Je){let ft=N(ke.endRe,Je);if(ft){if(ke["on:end"]){const Kt=new t(ke);ke["on:end"](ze,Kt),Kt.isMatchIgnored&&(ft=!1)}if(ft){for(;ke.endsParent&&ke.parent;)ke=ke.parent;return ke}}if(ke.endsWithParent)return zs(ke.parent,ze,Je)}function Ui(ke){return Ye.matcher.regexIndex===0?(wt+=ke[0],1):(Fa=!0,0)}function Ec(ke){const ze=ke[0],Je=ke.rule,ft=new t(Je),Kt=[Je.__beforeBegin,Je["on:begin"]];for(const pr of Kt)if(pr&&(pr(ke,ft),ft.isMatchIgnored))return Ui(ze);return Je.skip?wt+=ze:(Je.excludeBegin&&(wt+=ze),It(),!Je.returnBegin&&!Je.excludeBegin&&(wt=ze)),Ii(Je,ke),Je.returnBegin?0:ze.length}function $n(ke){const ze=ke[0],Je=$e.substring(ke.index),ft=zs(Ye,ke,Je);if(!ft)return Lr;const Kt=Ye;Ye.endScope&&Ye.endScope._wrap?(It(),er(ze,Ye.endScope._wrap)):Ye.endScope&&Ye.endScope._multi?(It(),po(Ye.endScope,ke)):Kt.skip?wt+=ze:(Kt.returnEnd||Kt.excludeEnd||(wt+=ze),It(),Kt.excludeEnd&&(wt=ze));do Ye.scope&&ln.closeNode(),!Ye.skip&&!Ye.subLanguage&&(wa+=Ye.relevance),Ye=Ye.parent;while(Ye!==ft.parent);return ft.starts&&Ii(ft.starts,ke),Kt.returnEnd?0:ze.length}function Ls(){const ke=[];for(let ze=Ye;ze!==Bn;ze=ze.parent)ze.scope&&ke.unshift(ze.scope);ke.forEach(ze=>ln.openNode(ze))}let oi={};function $i(ke,ze){const Je=ze&&ze[0];if(wt+=ke,Je==null)return It(),0;if(oi.type==="begin"&&ze.type==="end"&&oi.index===ze.index&&Je===""){if(wt+=$e.slice(ze.index,ze.index+1),!_t){const ft=new Error(`0 width match regex (${ye})`);throw ft.languageName=ye,ft.badRule=oi.rule,ft}return 1}if(oi=ze,ze.type==="begin")return Ec(ze);if(ze.type==="illegal"&&!ot){const ft=new Error('Illegal lexeme "'+Je+'" for mode "'+(Ye.scope||"<unnamed>")+'"');throw ft.mode=Ye,ft}else if(ze.type==="end"){const ft=$n(ze);if(ft!==Lr)return ft}if(ze.type==="illegal"&&Je==="")return ze.index===$e.length||(wt+=`
|
|
43
|
-
`),1;if(Ps>1e5&&Ps>ze.index*3)throw new Error("potential infinite loop, way more iterations than matches");return wt+=Je,Je.length}const Bn=Ln(ye);if(!Bn)throw Ne(kt.replace("{}",ye)),new Error('Unknown language: "'+ye+'"');const mo=Yt(Bn);let Hi="",Ye=Dt||mo;const go={},ln=new Se.__emitter(Se);Ls();let wt="",wa=0,ea=0,Ps=0,Fa=!1;try{if(Bn.__emitTokens)Bn.__emitTokens($e,ln);else{for(Ye.matcher.considerAll();;){Ps++,Fa?Fa=!1:Ye.matcher.considerAll(),Ye.matcher.lastIndex=ea;const ke=Ye.matcher.exec($e);if(!ke)break;const ze=$e.substring(ea,ke.index),Je=$i(ze,ke);ea=ke.index+Je}$i($e.substring(ea))}return ln.finalize(),Hi=ln.toHTML(),{language:ye,value:Hi,relevance:wa,illegal:!1,_emitter:ln,_top:Ye}}catch(ke){if(ke.message&&ke.message.includes("Illegal"))return{language:ye,value:rn($e),illegal:!0,relevance:0,_illegalBy:{message:ke.message,index:ea,context:$e.slice(ea-100,ea+100),mode:ke.mode,resultSoFar:Hi},_emitter:ln};if(_t)return{language:ye,value:rn($e),illegal:!1,relevance:0,errorRaised:ke,_emitter:ln,_top:Ye};throw ke}}function Ee(ye){const $e={value:rn(ye),illegal:!1,relevance:0,_top:Re,_emitter:new Se.__emitter(Se)};return $e._emitter.addText(ye),$e}function Zt(ye,$e){$e=$e||Se.languages||Object.keys(ue);const ot=Ee(ye),Dt=$e.filter(Ln).filter(Ba).map(It=>_r(It,ye,!1));Dt.unshift(ot);const Jt=Dt.sort((It,er)=>{if(It.relevance!==er.relevance)return er.relevance-It.relevance;if(It.language&&er.language){if(Ln(It.language).supersetOf===er.language)return 1;if(Ln(er.language).supersetOf===It.language)return-1}return 0}),[jn,Jn]=Jt,Un=jn;return Un.secondBest=Jn,Un}function An(ye,$e,ot){const Dt=$e&&Ae[$e]||ot;ye.classList.add("hljs"),ye.classList.add(`language-${Dt}`)}function it(ye){let $e=null;const ot=Vt(ye);if(qe(ot))return;if(li("before:highlightElement",{el:ye,language:ot}),ye.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",ye);return}if(ye.children.length>0&&(Se.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(ye)),Se.throwUnescapedHTML))throw new hr("One of your code blocks includes unescaped HTML.",ye.innerHTML);$e=ye;const Dt=$e.textContent,Jt=ot?Mt(Dt,{language:ot,ignoreIllegals:!0}):Zt(Dt);ye.innerHTML=Jt.value,ye.dataset.highlighted="yes",An(ye,ot,Jt.language),ye.result={language:Jt.language,re:Jt.relevance,relevance:Jt.relevance},Jt.secondBest&&(ye.secondBest={language:Jt.secondBest.language,relevance:Jt.secondBest.relevance}),li("after:highlightElement",{el:ye,result:Jt,text:Dt})}function an(ye){Se=Yr(Se,ye)}const Pr=()=>{Pi(),le("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function pn(){Pi(),le("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let ii=!1;function Pi(){function ye(){Pi()}if(document.readyState==="loading"){ii||window.addEventListener("DOMContentLoaded",ye,!1),ii=!0;return}document.querySelectorAll(Se.cssSelector).forEach(it)}function fo(ye,$e){let ot=null;try{ot=$e(H)}catch(Dt){if(Ne("Language definition for '{}' could not be registered.".replace("{}",ye)),_t)Ne(Dt);else throw Dt;ot=Re}ot.name||(ot.name=ye),ue[ye]=ot,ot.rawDefinition=$e.bind(null,H),ot.aliases&&Zr(ot.aliases,{languageName:ye})}function si(ye){delete ue[ye];for(const $e of Object.keys(Ae))Ae[$e]===ye&&delete Ae[$e]}function Os(){return Object.keys(ue)}function Ln(ye){return ye=(ye||"").toLowerCase(),ue[ye]||ue[Ae[ye]]}function Zr(ye,{languageName:$e}){typeof ye=="string"&&(ye=[ye]),ye.forEach(ot=>{Ae[ot.toLowerCase()]=$e})}function Ba(ye){const $e=Ln(ye);return $e&&!$e.disableAutodetect}function Da(ye){ye["before:highlightBlock"]&&!ye["before:highlightElement"]&&(ye["before:highlightElement"]=$e=>{ye["before:highlightBlock"](Object.assign({block:$e.el},$e))}),ye["after:highlightBlock"]&&!ye["after:highlightElement"]&&(ye["after:highlightElement"]=$e=>{ye["after:highlightBlock"](Object.assign({block:$e.el},$e))})}function sn(ye){Da(ye),Ke.push(ye)}function ho(ye){const $e=Ke.indexOf(ye);$e!==-1&&Ke.splice($e,1)}function li(ye,$e){const ot=ye;Ke.forEach(function(Dt){Dt[ot]&&Dt[ot]($e)})}function Jr(ye){return le("10.7.0","highlightBlock will be removed entirely in v12.0"),le("10.7.0","Please use highlightElement now."),it(ye)}Object.assign(H,{highlight:Mt,highlightAuto:Zt,highlightAll:Pi,highlightElement:it,highlightBlock:Jr,configure:an,initHighlighting:Pr,initHighlightingOnLoad:pn,registerLanguage:fo,unregisterLanguage:si,listLanguages:Os,getLanguage:Ln,registerAliases:Zr,autoDetection:Ba,inherit:Yr,addPlugin:sn,removePlugin:ho}),H.debugMode=function(){_t=!1},H.safeMode=function(){_t=!0},H.versionString=vt,H.regex={concat:k,lookahead:y,either:A,optional:C,anyNumberOfTimes:b};for(const ye in tt)typeof tt[ye]=="object"&&e(tt[ye]);return Object.assign(H,tt),H},Mn=Wr({});return Mn.newInstance=()=>Wr({}),Xx=Mn,Mn.HighlightJS=Mn,Mn.default=Mn,Xx}var iz=az();const sz=no(iz),k2={},lz="hljs-";function oz(e){const t=sz.newInstance();return e&&o(e),{highlight:r,highlightAuto:i,listLanguages:l,register:o,registerAlias:u,registered:d};function r(f,h,m){const p=m||k2,y=typeof p.prefix=="string"?p.prefix:lz;if(!t.getLanguage(f))throw new Error("Unknown language: `"+f+"` is not registered");t.configure({__emitter:cz,classPrefix:y});const b=t.highlight(h,{ignoreIllegals:!0,language:f});if(b.errorRaised)throw new Error("Could not highlight with `Highlight.js`",{cause:b.errorRaised});const C=b._emitter.root,k=C.data;return k.language=b.language,k.relevance=b.relevance,C}function i(f,h){const p=(h||k2).subset||l();let y=-1,b=0,C;for(;++y<p.length;){const k=p[y];if(!t.getLanguage(k))continue;const v=r(k,f,h);v.data&&v.data.relevance!==void 0&&v.data.relevance>b&&(b=v.data.relevance,C=v)}return C||{type:"root",children:[],data:{language:void 0,relevance:b}}}function l(){return t.listLanguages()}function o(f,h){if(typeof f=="string")t.registerLanguage(f,h);else{let m;for(m in f)Object.hasOwn(f,m)&&t.registerLanguage(m,f[m])}}function u(f,h){if(typeof f=="string")t.registerAliases(typeof h=="string"?h:[...h],{languageName:f});else{let m;for(m in f)if(Object.hasOwn(f,m)){const p=f[m];t.registerAliases(typeof p=="string"?p:[...p],{languageName:m})}}}function d(f){return!!t.getLanguage(f)}}class cz{constructor(t){this.options=t,this.root={type:"root",children:[],data:{language:void 0,relevance:0}},this.stack=[this.root]}addText(t){if(t==="")return;const r=this.stack[this.stack.length-1],i=r.children[r.children.length-1];i&&i.type==="text"?i.value+=t:r.children.push({type:"text",value:t})}startScope(t){this.openNode(String(t))}endScope(){this.closeNode()}__addSublanguage(t,r){const i=this.stack[this.stack.length-1],l=t.root.children;r?i.children.push({type:"element",tagName:"span",properties:{className:[r]},children:l}):i.children.push(...l)}openNode(t){const r=this,i=t.split(".").map(function(u,d){return d?u+"_".repeat(d):r.options.classPrefix+u}),l=this.stack[this.stack.length-1],o={type:"element",tagName:"span",properties:{className:i},children:[]};l.children.push(o),this.stack.push(o)}closeNode(){this.stack.pop()}finalize(){}toHTML(){return""}}const A2=oz({bash:MO,css:UO,ini:$O,javascript:QO,json:XO,markdown:WO,python:ZO,sql:JO,typescript:tz,xml:nz,yaml:rz}),b5={bash:"bash",sh:"bash",zsh:"bash",css:"css",scss:"css",toml:"ini",ini:"ini",js:"javascript",jsx:"javascript",mjs:"javascript",cjs:"javascript",json:"json",jsonc:"json",md:"markdown",markdown:"markdown",py:"python",sql:"sql",ts:"typescript",tsx:"typescript",mts:"typescript",cts:"typescript",html:"xml",svg:"xml",xml:"xml",yaml:"yaml",yml:"yaml"},uz={...b5,shell:"bash",console:"bash",javascript:"javascript",typescript:"typescript",python:"python",yaml:"yaml",json:"json",sql:"sql"},xz={Bash:"bash"};function dz(e){return(e&&xz[e])??null}function C5(e){const t=e.slice(e.lastIndexOf("/")+1),r=t.lastIndexOf(".");return r<1?null:b5[t.slice(r+1).toLowerCase()]??null}function fz(e,t){return e==="Read"&&t?C5(t):null}function hz(e){const t=e?.match(/(?:^|\s)language-([\w+-]+)/)?.[1];return t?uz[t.toLowerCase()]??null:null}function v5(e,t){return!t||!A2.registered(t)?null:A2.highlight(t,e).children.filter(pz)}function pz(e){return e.type==="element"||e.type==="text"}function mz(e,t){const r=v5(e,t);return r?k5(r):null}function k5(e){const t=[[]];for(const r of e){const i=gz(r);t[t.length-1].push(...i[0]);for(let l=1;l<i.length;l++)t.push(i[l])}return t}function gz(e){if(e.type==="text")return e.value.split(`
|
|
44
|
-
`).map(r=>r?[{type:"text",value:r}]:[]);if(e.type!=="element")return[[e]];const t=e;return k5(t.children).map(r=>r.length?[{...t,children:r}]:[])}function $f({nodes:e}){return x.jsx(x.Fragment,{children:e.map((t,r)=>{if(t.type==="text")return t.value;if(t.type!=="element")return null;const i=t.properties?.className;return x.jsx("span",{className:Array.isArray(i)?i.join(" "):void 0,children:x.jsx($f,{nodes:t.children})},r)})})}const A5=D.memo(function({text:t,language:r}){const i=D.useMemo(()=>v5(t,r),[t,r]);return i?x.jsx($f,{nodes:i}):t});function B5({preview:e,lineRef:t}){const r=C5(e.path),{text:i,tokens:l}=D.useMemo(()=>{const o=e.content.split(`
|
|
45
|
-
`),u=mz(e.content,r);return{text:o,tokens:u?.length===o.length?u:null}},[e.content,r]);return x.jsxs(x.Fragment,{children:[x.jsx("pre",{className:"min-w-max p-3 font-mono text-[11.5px] leading-[1.5] text-muted",children:i.map((o,u)=>{const d=e.lineStart+u,f=d===e.line,h=l?.[u];return x.jsxs("div",{ref:f?t:void 0,className:he("grid grid-cols-[auto_1fr] gap-3 whitespace-pre",f&&"rounded bg-accent-soft text-text"),children:[x.jsx("span",{className:"select-none text-right text-faint",children:d}),x.jsx("code",{children:h?.length?x.jsx($f,{nodes:h}):o||" "})]},d)})}),x.jsx(D5,{preview:e})]})}function D5({preview:e}){return e.truncated?x.jsxs("p",{className:"border-t border-border-soft px-4 py-2 text-xs text-faint",children:["Showing lines ",e.lineStart,"–",e.lineEnd," of ",e.totalLines,"."]}):null}async function Ez(e){if(navigator.clipboard?.writeText)return navigator.clipboard.writeText(e);const t=document.createElement("textarea");t.value=e,t.setAttribute("readonly",""),t.style.cssText="position:fixed;opacity:0",document.body.append(t),t.select();const r=document.execCommand("copy");if(t.remove(),!r)throw new Error("Clipboard unavailable")}function B2(e){return e.endsWith(".0")?e.slice(0,-2):e}function K0(e){return e>=1e6?`${B2((e/1e6).toFixed(e<1e7?1:0))}M`:e>=1e3?`${B2((e/1e3).toFixed(e<1e5?1:0))}k`:String(e)}function D2(e,t){if(e<=0||t<=0)return"0%";const r=e/t*100;return r<1?"<1%":`${Math.round(r)}%`}function yz(e){const t=[],r=e.split(bw);for(let i=0;i<r.length;i++){const l=r[i];if(i===0){l&&t.push({text:l,hit:!1});continue}const o=l.indexOf(Cw);if(o<0){l&&t.push({text:l,hit:!0});continue}const u=l.slice(0,o),d=l.slice(o+1);u&&t.push({text:u,hit:!0}),d&&t.push({text:d,hit:!1})}return t}function w5(e){return e.state==="setting_up"}const bz={merged:"var(--color-pr-merged)",draft:"var(--color-pr-draft)",conflicts:"var(--color-pr-attention)",checks_failed:"var(--color-pr-attention)",checks_pending:"var(--color-working)",mergeable:"var(--color-pr-mergeable)"};function Cz(e){return w5(e)?{color:"var(--color-muted)",spinning:!0}:{color:e.pr_status&&bz[e.pr_status]||"var(--color-done)",spinning:e.session_status==="working"||e.pr_status==="checks_pending"}}function vz(e){return e.pr_status==="merged"}function kz(e){return Hf(e)==="done"}function Hf(e){return w5(e)?"setting-up":e.manual_status||e.derived_status||"in-progress"}const w2=["done","in-review","in-progress","setting-up","backlog","canceled"],Az=["backlog","in-progress","in-review","done","canceled"];function Ld(e){return{done:"Done","in-review":"In review","in-progress":"In progress","setting-up":"Setting up",backlog:"Backlog",canceled:"Canceled"}[e]??e}const Bz=["today","yesterday","week","month","older"];function Dz(e){return{today:"Today",yesterday:"Yesterday",week:"Past week",month:"Past month",older:"Older"}[e]}function F2(e){const t=new Date(e);return t.setHours(0,0,0,0),t.getTime()}function wz(e,t=new Date){const r=new Date(Wn(e));if(!Number.isFinite(r.getTime()))return"older";const i=Math.round((F2(t)-F2(r))/864e5);return i<=0?"today":i===1?"yesterday":i<7?"week":i<30?"month":"older"}const qf={done:"var(--color-pr-merged)","in-review":"var(--color-pr-mergeable)","in-progress":"var(--color-done)","setting-up":"var(--color-muted)"};function Gf(e,t=120){const i=(e.split(`
|
|
46
|
-
`).find(l=>l.trim())??"").replace(/^[\s>#*\-+]+/,"").replace(/`/g,"").replace(/\s+/g," ").trim();return i.length>t?`${i.slice(0,t-1)}…`:i}function Vf(e){const t=Math.max(0,Math.floor(e/1e3)),r=t%60,i=Math.floor(t/60)%60,l=Math.floor(t/3600),o=u=>String(u).padStart(2,"0");return l?`${l}h ${o(i)}m ${o(r)}s`:i?`${i}m ${o(r)}s`:`${r}s`}const Fz=6e4,Sz=60*Fz,Nz=24*Sz,_z=7*Nz;function F5(e){return e.toLocaleTimeString(void 0,{hour:"2-digit",minute:"2-digit"})}function S5(e,t){return`${e.toLocaleDateString(void 0,{month:"short",day:"numeric",...e.getFullYear()===t.getFullYear()?{}:{year:"numeric"}})}, ${F5(e)}`}function Mz(e){const t=new Date(Wn(e));if(!Number.isFinite(t.getTime()))return"";const r=new Date;return t.toDateString()===r.toDateString()?F5(t):S5(t,r)}function jz(e,t=Date.now()){const r=new Date(Wn(e)),i=t-r.getTime();return Number.isFinite(i)?i>=_z?S5(r,new Date(t)):_5(e,t):""}function N5(e){const t=Wn(e);if(!Number.isFinite(t))return"";const r=Math.round((Date.now()-t)/1e3);if(r<45)return"now";if(r<90)return"1m";const i=Math.round(r/60);if(i<60)return`${i}m`;const l=Math.round(i/60);return l<24?`${l}h`:`${Math.round(l/24)}d`}let wi;function _5(e,t=Date.now()){const r=Wn(e);if(!Number.isFinite(r))return"";const i=Math.round((t-r)/1e3);if(i<45)return"now";if(wi??=new Intl.RelativeTimeFormat(void 0,{numeric:"auto"}),i<90)return wi.format(-1,"minute");const l=Math.round(i/60);if(l<60)return wi.format(-l,"minute");const o=Math.round(l/60);if(o<24)return wi.format(-o,"hour");const u=Math.round(o/24);if(u<30)return wi.format(-u,"day");const d=Math.round(u/30.4);return d<12?wi.format(-d,"month"):wi.format(-Math.round(u/365),"year")}function Tz(){const e=location.hostname;return!e||e==="localhost"||e.startsWith("127.")?null:`vnc://${e}`}const Rz={activity:oC,anchor:uC,apple:dC,atom:AC,award:DC,banknote:FC,battery:NC,beer:MC,bell:I8,bike:RC,bird:zC,bluetooth:PC,book:HC,"book-open":UC,bookmark:GC,bot:U8,box:KC,brain:XC,briefcase:ZC,brush:e3,bug:a3,"bug-play":n3,building:o3,"building-2":s3,cake:u3,calendar:d3,camera:h3,car:m3,carrot:E3,cat:b3,"chart-bar":v3,"chart-line":A3,"chart-pie":D3,clapperboard:L3,clock:q8,cloud:G3,code:Y3,"code-xml":Q3,coffee:W3,cog:J3,compass:tv,cpu:av,"credit-card":sv,crown:ov,database:uv,dna:dv,dog:hv,"dollar-sign":mv,dumbbell:Ev,egg:vv,factory:Dv,feather:Fv,file:jv,"file-code":Nv,film:Rv,fish:zv,flag:Pv,flame:Uv,"flask-conical":Hv,folder:V8,"gamepad-2":Zv,gem:nk,gift:ak,"git-branch":ok,github:dk,glasses:hk,globe:mk,"graduation-cap":Ek,"grid-3x3":bk,hammer:vk,headphones:Ak,heart:Fk,"heart-pulse":Dk,house:_k,image:jk,key:zk,laptop:Pk,"layout-grid":Hk,layers:Uk,leaf:Gk,lightbulb:Qk,link:Yk,lock:Jk,mail:rA,map:X8,"map-pin":iA,martini:oA,medal:uA,"message-circle":dA,"message-square":hA,mic:W8,microscope:yA,monitor:kA,moon:BA,music:wA,orbit:SA,package:_A,paintbrush:jA,paperclip:lf,"paw-print":LA,pen:IA,pencil:$A,phone:QA,pill:YA,pipette:WA,pizza:JA,plane:tB,plug:aB,power:lB,puzzle:cB,rabbit:dB,radio:hB,rocket:gB,ruler:vB,salad:bB,satellite:AB,scissors:FB,server:jB,settings:RB,shell:zB,shield:IB,ship:$B,"shopping-bag":qB,"shopping-cart":VB,smartphone:XB,snail:ZB,soup:nD,sparkles:aD,sprout:sD,star:gd,stethoscope:uD,store:dD,sun:rg,tag:gD,tags:yD,target:CD,telescope:kD,terminal:BD,ticket:wD,"train-front":SD,"tree-pine":jD,"trending-up":RD,trophy:LD,turtle:ID,user:$D,users:qD,utensils:VD,video:KD,wallet:XD,"wand-2":n9,"wand-sparkles":n9,warehouse:JD,wheat:rw,wifi:ag,wine:lw,wrench:uw,zap:uf};function M5({state:e,color:t="var(--color-working)",className:r}){return e==="failed"?x.jsx("span",{className:he("dot-error",r),role:"img","aria-label":"Send failed","data-prompt-state":"failed",children:x.jsx(En,{size:8,strokeWidth:3,"aria-hidden":!0})}):x.jsx("span",{className:he("dot-spinner",r),style:{"--spin-color":t},role:"img","aria-label":"Prompt pending","data-prompt-state":"sending"})}function Oz({w:e,promptState:t,className:r}){const{color:i,spinning:l}=Cz(e);return t?x.jsx(M5,{state:t,color:i,className:r}):l?x.jsx("span",{className:he("dot-spinner",r),style:{"--spin-color":i}}):x.jsx("span",{className:he("dot",r),style:{background:i}})}function zz({className:e}){return x.jsx("span",{className:he("flex size-3 items-center justify-center rounded-full bg-surface text-add ring-2 ring-surface",e),role:"img","aria-label":"Run active",children:x.jsx(md,{size:7,strokeWidth:0,fill:"currentColor","aria-hidden":!0})})}function Lz(e){const t=Math.max(0,Math.round(e/1e3));if(t<90)return`${t}s`;const r=Math.round(t/60);return r<60?`${r}m`:`${Math.round(r/60)}h`}function Pz(){const e=ve(u=>u.online),t=ve(u=>u.lastSyncAt),r=ve(u=>u.update),i=r?.mode==="auto"&&r.available,[l,o]=D.useState(()=>Date.now());return D.useEffect(()=>{if(e)return;const u=setInterval(()=>o(Date.now()),1e3);return()=>clearInterval(u)},[e]),i?x.jsxs("div",{className:"fade-in flex items-center gap-1.5 bg-accent/10 px-3 py-1.5 text-xs text-accent",children:[x.jsx(so,{size:13,className:"animate-spin"}),x.jsxs("span",{children:["Updating relay to ",r?.latest??"latest","… reconnecting"]})]}):e?null:x.jsxs("div",{className:"fade-in flex items-center gap-1.5 bg-del/10 px-3 py-1.5 text-xs text-del",children:[x.jsx(cf,{size:13}),x.jsxs("span",{children:["Offline — retrying…",t?` last synced ${Lz(l-t)} ago`:""]})]})}function va({className:e}){const t=Tz();return t?x.jsx("a",{href:t,className:he("font-semibold text-accent underline underline-offset-2",e),children:"Unlock the Mac"}):null}function j5({text:e,label:t,className:r,size:i=14}){const[l,o]=D.useState(!1),u=async()=>{try{await Ez(e),o(!0),window.setTimeout(()=>o(!1),1800)}catch{o(!1)}};return x.jsx("button",{type:"button",onClick:()=>{u()},"aria-label":l?`Copied ${t}`:`Copy ${t}`,className:he("flex items-center justify-center text-muted transition active:bg-surface-2",r),children:l?x.jsx(Ca,{size:i,className:"text-accent"}):x.jsx(af,{size:i})})}function S2({children:e,className:t}){return x.jsx("span",{className:he("rounded-md bg-surface-2 px-1.5 py-0.5 font-mono text-[11px] text-muted",t),children:e})}function Iz({children:e}){return x.jsx("span",{className:"grid min-w-5 place-items-center rounded-full bg-accent px-1.5 text-[11px] font-bold text-on-solid",children:e})}function Uz({error:e}){const t=typeof navigator<"u"&&navigator.onLine===!1,r=e instanceof Error?e.message:String(e??"request failed"),i=!(e instanceof ur)||e.status===0;return t?x.jsxs(qt,{children:[x.jsx(cf,{size:20,className:"mx-auto mb-3 text-muted"}),x.jsx("div",{className:"font-medium text-text",children:"This phone is offline"}),x.jsx("div",{className:"mt-1",children:"Check Wi-Fi or cellular. The list comes back on its own."})]}):x.jsxs(qt,{children:[x.jsx(U3,{size:20,className:"mx-auto mb-3 text-del"}),x.jsx("div",{className:"font-medium text-text",children:i?"Can’t reach the relay":"The relay answered with an error"}),x.jsx("div",{className:"mt-1 break-words font-mono text-[11px] text-muted",children:r}),i?x.jsxs("ul",{className:"mt-4 space-y-2 text-left",children:[x.jsx("li",{children:"Is the Mac awake and online?"}),x.jsxs("li",{children:["If the relay is tailnet-only: Tailscale connected on this phone, and"," ",x.jsx("span",{className:"text-text",children:"iCloud Private Relay off"}),". Private Relay routes around the VPN, so the app stays stuck even while Tailscale says Connected."]}),x.jsx("li",{children:"Otherwise the Funnel may be stale after a network change — re-deploy on the Mac."})]}):null]})}function qt({children:e}){return x.jsx("div",{className:"mx-auto max-w-xs px-6 py-16 text-center text-sm text-muted",children:e})}function dr({label:e}){return x.jsxs("div",{className:"flex items-center justify-center gap-2 py-16 text-sm text-muted",children:[x.jsx("span",{className:"size-4 animate-spin rounded-full border-2 border-border border-t-accent"}),e]})}const Y0="grid size-8 place-items-center overflow-hidden rounded-lg bg-surface-2 font-semibold text-muted";function eo({icon:e,name:t,artwork:r}){const i=x.jsx("div",{className:he(Y0,"text-xs"),children:(t.trim()[0]??"?").toUpperCase()});if(!e)return i;if(e.kind==="emoji")return x.jsx("div",{className:he(Y0,"text-lg leading-none"),children:e.value});if(e.kind==="named"){const l=Rz[e.value];return l?x.jsx("div",{className:Y0,children:x.jsx(l,{size:18,className:"text-muted"})}):i}return e.kind==="github"?x.jsx(T5,{src:`https://github.com/${encodeURIComponent(e.owner)}.png?size=64`,fit:"cover",artwork:r,fallback:i}):x.jsx($z,{repoName:t,artwork:r,fallback:i})}function T5({src:e,fit:t,artwork:r,fallback:i}){const[l,o]=D.useState(!1);return l?x.jsx(x.Fragment,{children:i}):x.jsx("div",{className:he(Y0,r==="inset"&&"p-1.5"),children:x.jsx("img",{src:e,alt:"",loading:"lazy",className:he("size-full",r==="full-bleed"?"rounded-[inherit]":"rounded-sm",t==="cover"?"object-cover":"object-contain"),onError:()=>o(!0)})})}function $z({repoName:e,artwork:t,fallback:r}){const{data:i,isError:l}=LF(e);return!e||l||!i?x.jsx(x.Fragment,{children:r}):x.jsx(T5,{src:i,fit:"contain",artwork:t,fallback:r})}function Qf({title:e,subtitle:t,actions:r,onClose:i,closeLabel:l}){return x.jsxs("header",{className:"flex shrink-0 items-center gap-3 border-b border-border-soft bg-bg px-4 py-3",children:[x.jsxs("div",{className:"min-w-0 flex-1",children:[x.jsx("h2",{className:"text-base font-semibold",children:e}),t?x.jsx("p",{className:"truncate font-mono text-xs text-muted",children:t}):null]}),r,x.jsx("button",{type:"button",onClick:i,"aria-label":l,className:"flex size-8 shrink-0 items-center justify-center rounded-full text-muted transition hover:bg-surface-2 focus-visible:outline-2 focus-visible:outline-accent active:bg-surface-2",children:x.jsx(En,{size:18})})]})}const Hz=[kO,yT],R5="conductor-attachment.invalid";function qz(e){const t=Bw(e);if(!t.length)return e;let r="",i=0;for(const l of t){const o=l.name.replace(/[\\`*_[\]<>]/g,"\\$&");r+=`${e.slice(i,l.start)}[${o}](https://${R5}/?path=${encodeURIComponent(l.path)})`,i=l.end}return r+e.slice(i)}function Gz(e){if(!e)return null;try{const t=new URL(e);return t.hostname===R5?t.searchParams.get("path"):null}catch{return null}}function O5(e){const[t,r]=D.useState(null),[i,l]=D.useState(null);return D.useEffect(()=>{if(r(null),l(null),!e)return;let o=!1;return De.localImage(e).then(u=>{o||r(u)},u=>{o||l(u instanceof Error?u.message:"Image unavailable")}),()=>{o=!0}},[e]),{objectUrl:t,error:i}}function Vz({src:e,alt:t,...r}){const i=c5(typeof e=="string"?e:null),{objectUrl:l,error:o}=O5(i);return i?o?x.jsxs("span",{className:"my-2 block rounded-lg border border-del/30 px-3 py-2 text-xs text-del",children:[t||"Image"," unavailable: ",o]}):l?x.jsx("img",{src:l,alt:t??"",...r}):null:x.jsx("img",{src:e,alt:t??"",...r})}function z5(e){if(!e?.startsWith("/"))return null;const t=e.match(/:([1-9]\d*)(?::\d+)?$/);return hf(t?e.slice(0,-t[0].length):e)?e:null}function Pd({href:e,children:t,onClick:r,...i}){const l=Gz(e),o=_O(l),u=c5(e??null),d=o?.kind==="image"?o.reference:u,f=o5(e??null),h=o?.kind==="source"?o.reference:z5(e)??f,m=d??h,[p,y]=D.useState(!1),b=d&&p?x.jsx(Qz,{reference:d,onClose:()=>y(!1)}):h&&p?x.jsx(L5,{reference:h,onClose:()=>y(!1)}):null;return e?l?x.jsxs(x.Fragment,{children:[x.jsxs("button",{type:"button",title:d?`Open image ${d}`:h?`Open ${h}`:l,disabled:!m,onClick:()=>y(!0),className:"inline-flex max-w-full items-center gap-1 rounded-md bg-surface-2 px-1.5 py-0.5 align-baseline text-[0.9em] font-medium text-muted transition hover:text-text focus-visible:outline-2 focus-visible:outline-accent active:bg-surface disabled:cursor-default",children:[x.jsx(lf,{size:12,className:"shrink-0"}),x.jsx("span",{className:"truncate",children:t})]}),b]}):x.jsxs(x.Fragment,{children:[x.jsx("a",{href:e,...i,title:d?`Open image ${d}`:i.title,onClick:C=>{r?.(C),!(!m||C.defaultPrevented||C.button!==0||C.metaKey||C.ctrlKey||C.shiftKey||C.altKey)&&(C.preventDefault(),y(!0))},children:t}),b]}):x.jsx("span",{title:i.title,children:t})}function Qz({reference:e,onClose:t}){const{objectUrl:r,error:i}=O5(e);return D.useEffect(()=>{const l=o=>{o.key==="Escape"&&t()};return window.addEventListener("keydown",l),()=>window.removeEventListener("keydown",l)},[t]),Qr.createPortal(x.jsxs(x.Fragment,{children:[x.jsx("div",{className:"fixed inset-0 z-[60] bg-black/60",onClick:t,"aria-hidden":!0}),x.jsxs("div",{role:"dialog","aria-modal":"true","aria-label":"Image preview",className:"fade-in pt-safe pb-safe fixed inset-0 z-[60] mx-auto flex flex-col bg-bg md:inset-6 md:rounded-3xl md:border md:border-border-soft",children:[x.jsx(Qf,{title:"Image",subtitle:e,onClose:t,closeLabel:"Close image preview"}),x.jsxs("div",{className:"flex min-h-0 flex-1 items-center justify-center overflow-auto bg-black/15 p-3",children:[!r&&!i?x.jsx(dr,{label:"Loading image…"}):null,i?x.jsxs("p",{className:"max-w-xs text-center text-sm text-muted",children:["Image unavailable: ",i]}):null,r?x.jsx("img",{src:r,alt:"",className:"max-h-full max-w-full rounded-lg object-contain shadow-2xl"}):null]})]})]}),document.body)}function L5({reference:e,onClose:t}){const[r,i]=D.useState(null),[l,o]=D.useState(null),u=D.useRef(null);return D.useEffect(()=>{let d=!1;return i(null),o(null),De.filePreview(e).then(f=>{d||i(f)},f=>{d||o(f instanceof Error?f.message:"Could not read source file")}),()=>{d=!0}},[e]),D.useEffect(()=>{r?.line&&u.current?.scrollIntoView({block:"center"})},[r?.line]),D.useEffect(()=>{const d=f=>{f.key==="Escape"&&t()};return window.addEventListener("keydown",d),()=>window.removeEventListener("keydown",d)},[t]),Qr.createPortal(x.jsxs(x.Fragment,{children:[x.jsx("div",{className:"fixed inset-0 z-[60] bg-black/60",onClick:t,"aria-hidden":!0}),x.jsxs("div",{role:"dialog","aria-modal":"true","aria-label":"Source file",className:"fade-in pt-safe pb-safe fixed inset-0 z-[60] mx-auto flex flex-col bg-bg md:inset-6 md:rounded-3xl md:border md:border-border-soft",children:[x.jsx(Qf,{title:"Source",subtitle:r?.path??e,onClose:t,closeLabel:"Close source preview"}),x.jsxs("div",{className:"min-h-0 flex-1 overflow-auto",children:[!r&&!l?x.jsx(dr,{label:"Reading source…"}):null,l?x.jsx("p",{className:"mx-auto max-w-xs px-6 py-16 text-center text-sm text-muted",children:l}):null,r?Kz(r.path)?x.jsx(Yz,{preview:r}):x.jsx(B5,{preview:r,lineRef:u}):null]})]})]}),document.body)}function Kz(e){return e.toLowerCase().endsWith(".md")}function Yz({preview:e}){return x.jsxs("div",{className:"p-4 text-sm leading-6 text-text",children:[x.jsx(ni,{children:e.content}),x.jsx(D5,{preview:e})]})}function Xz({className:e,children:t,node:r,...i}){const l=hz(e),o=Zz(t),u=o5(e?null:o);return u?x.jsx(Wz,{reference:u,...i,children:t}):x.jsx("code",{className:e,...i,children:l&&o!==null?x.jsx(A5,{text:o,language:l}):t})}function Wz({reference:e,children:t,...r}){const[i,l]=D.useState(!1);return x.jsxs(x.Fragment,{children:[x.jsx("button",{type:"button",title:`Open ${e}`,onClick:()=>l(!0),className:"max-w-full align-baseline text-left",children:x.jsx("code",{...r,className:"text-accent underline decoration-dotted underline-offset-2",children:t})}),i?x.jsx(L5,{reference:e,onClose:()=>l(!1)}):null]})}function Zz(e){return typeof e=="string"?e:Array.isArray(e)&&e.every(t=>typeof t=="string")?e.join(""):null}function Jz({node:e,children:t,...r}){const i=e?eL(e):"";return x.jsxs("div",{className:"relative",children:[x.jsx("pre",{...r,children:t}),i?x.jsx(j5,{text:i,label:"code",size:12,className:"absolute right-1.5 top-1.5 size-6 rounded-md border border-border-soft bg-bg/90"}):null]})}function eL(e){let t="";const r=i=>{for(const l of i)l.type==="text"?t+=l.value:l.type==="element"&&r(l.children)};return r(e.children),t.replace(/\n$/,"")}const tL={a:Pd,code:Xz,img:Vz,pre:Jz},ni=D.memo(function({children:t}){return x.jsx("div",{className:"md",children:x.jsx(oT,{remarkPlugins:Hz,components:tL,children:qz(t)})})});function Kf({state:e,label:t,meta:r,actions:i=[],align:l="right",children:o,className:u,dataUserMessage:d,dataMessageState:f}){const h=e==="failed";return x.jsxs("div",{className:he("flex min-w-0 flex-col gap-1",l==="right"&&"items-end",l==="left"&&"items-start",l==="wide"&&"items-stretch"),...d?{"data-user-msg":d}:{},...f?{"data-msg-state":f}:{},children:[x.jsxs("div",{className:he("min-w-0 rounded-2xl px-3.5 py-2.5 text-[14px] leading-relaxed [overflow-wrap:anywhere]",l==="wide"?"w-full":"max-w-[85%]",l==="right"?"bg-accent-soft text-text":"bg-surface/60 text-text",h?"border border-del/40":"opacity-60",u),children:[t?x.jsx("div",{className:he("mb-1 text-[10px] font-semibold uppercase tracking-wide",h?"text-del":"text-faint"),children:t}):null,o]}),h?x.jsxs("div",{className:he("flex flex-wrap items-center gap-x-2 gap-y-1 px-1 text-[11px] text-del",l==="right"&&"justify-end"),children:[x.jsx(Oi,{size:11,className:"shrink-0"}),r?x.jsx("span",{className:"min-w-0 max-w-[70vw] truncate",children:r}):x.jsx("span",{children:"Didn’t finish"}),i.map(m=>x.jsx("button",{type:"button",onClick:m.onClick,className:he("underline underline-offset-2",m.primary?"font-semibold text-del":"text-faint"),children:m.label},m.label))]}):x.jsxs("div",{className:he("flex min-w-0 items-center gap-1 px-1 text-[11px] text-faint",l==="right"&&"justify-end"),children:[x.jsx(_n,{size:11,className:"shrink-0 animate-spin"}),x.jsx("span",{className:"min-w-0 truncate",children:r??"Queued"}),i.map(m=>x.jsx("button",{type:"button",onClick:m.onClick,className:he("ml-1 underline underline-offset-2",m.primary&&"font-semibold text-accent"),children:m.label},m.label))]})]})}const Yf={queued:"Queued",opening:"Opening",configuring:"Configuring",sending:"Sending",running:"Running",returning:"Returning Baton",returned:"Baton delivered",failed:"Failed"},nL={creating_workspace:"Creating workspace",binding_root:"Binding root",pending_root:"Root delivery pending",exploring:"Exploring",planning:"Planning",implementing:"Implementing",reviewing:"Reviewing",blocked:"Blocked",completed:"Completed",cancelled:"Cancelled"};function Wx(e){return nL[e]}function Zx(e){return e==="creating_workspace"||e==="binding_root"||e==="pending_root"}function N2(e){const t=[`${e.requested} requested`];return e.running&&t.push(`${e.running} running`),e.returned&&t.push(`${e.returned} returned`),e.failed&&t.push(`${e.failed} failed`),t.join(" · ")}function rL(e){return[e.model,e.effort,e.fast===void 0?void 0:e.fast?"Fast":"Fast off"].filter(Boolean).join(" · ")}function aL({name:e,role:t}){return x.jsxs("div",{className:"flex min-w-0 items-center gap-1.5 rounded-lg bg-surface-2 px-2 py-1.5 text-[11px]",children:[x.jsx(js,{agentType:t.agentType,model:t.model,className:"size-3.5 shrink-0"}),x.jsx("span",{className:"shrink-0 font-medium capitalize text-text",children:e}),x.jsx("span",{className:"truncate text-muted",children:rL(t)})]})}function iL({quarantine:e,className:t}){const r=FF(),[i,l]=D.useState(!1),[o,u]=D.useState(null);if(!e)return null;const d=async()=>{if(!i){l(!0),u(null);try{await r(e)}catch(f){u(f instanceof Error?f.message:String(f))}finally{l(!1)}}};return x.jsx("section",{"aria-label":"Conductor UI safety hold",role:"alert",className:he("shrink-0 border-b border-del/40 bg-del/10 px-3 py-2.5 text-xs",t),children:x.jsxs("div",{className:"flex items-start gap-2",children:[x.jsx(Oi,{size:16,className:"mt-0.5 shrink-0 text-del"}),x.jsxs("div",{className:"min-w-0 flex-1",children:[x.jsx("div",{className:"font-semibold text-del",children:"Automated Conductor UI writes are paused"}),x.jsx("p",{className:"mt-0.5 text-text",children:e.reason}),x.jsx("p",{className:"mt-1 text-muted",children:"Inspect Conductor on your Mac. Continue only when its window is stable and no UI action is still in flight."}),x.jsxs("div",{className:"mt-1 flex min-w-0 flex-wrap gap-x-2 text-[10px] text-faint",children:[x.jsx("span",{children:new Date(e.createdAt).toLocaleString()}),e.actionId?x.jsxs("span",{className:"max-w-full truncate",children:["Action · ",e.actionId]}):null,e.effectId?x.jsxs("span",{className:"max-w-full truncate",children:["Effect · ",e.effectId]}):null]}),x.jsxs("button",{type:"button",disabled:i,onClick:()=>{d()},className:"mt-2 flex min-h-9 items-center gap-1.5 rounded-lg bg-del px-3 py-1.5 font-semibold text-white disabled:opacity-50",children:[i?x.jsx(_n,{size:13,className:"animate-spin"}):x.jsx(tg,{size:13}),"I checked — Conductor is stable"]}),o?x.jsx("p",{className:"mt-1.5 text-del",role:"alert",children:o}):null]})]})})}function sL({warning:e}){return e?x.jsx("section",{"aria-label":"Workflow unavailable",role:"alert",className:"shrink-0 border-b border-del/40 bg-del/10 px-3 py-2.5 text-xs",children:x.jsxs("div",{className:"flex items-start gap-2",children:[x.jsx(Oi,{size:16,className:"mt-0.5 shrink-0 text-del"}),x.jsxs("div",{className:"min-w-0",children:[x.jsx("div",{className:"font-semibold text-del",children:"Workflow is unavailable"}),x.jsx("p",{className:"mt-0.5 text-text",children:e})]})]})}):null}function P5({workflow:e,bootstrapJob:t,compact:r=!1}){const i=wF(),[l,o]=D.useState(null),[u,d]=D.useState(null),[f,h]=D.useState(!1),[m,p]=D.useState(!1),y=e.jobs.exploration,b=Math.max(0,y.requested-1),C=t?Yf[t.status]:Zx(e.phase)?"Waiting for root delivery":"Scheduled",k=async(v,A)=>{if(!l){o(v),d(null);try{await A(),h(!1),p(!1)}catch(F){d(F instanceof Error?F.message:String(F))}finally{o(null)}}};return x.jsxs("section",{"aria-label":`Workflow ${Wx(e.phase)}`,className:he("border-b border-border-soft bg-bg px-3 py-2",r&&"rounded-xl border"),children:[x.jsxs("div",{className:"flex min-w-0 items-start gap-2",children:[x.jsx("div",{className:"mt-0.5 flex size-7 shrink-0 items-center justify-center rounded-lg bg-accent-soft text-accent",children:e.phase==="blocked"?x.jsx(Oi,{size:15}):e.phase==="completed"?x.jsx(H8,{size:15}):e.phase==="cancelled"?x.jsx(En,{size:15}):x.jsx(lo,{size:15})}),x.jsxs("div",{className:"min-w-0 flex-1",children:[x.jsxs("div",{className:"flex min-w-0 items-center gap-2",children:[x.jsx("span",{className:"shrink-0 text-xs font-semibold text-text",children:Zx(e.phase)?"Workflow accepted":Wx(e.phase)}),Zx(e.phase)?x.jsx("span",{className:"truncate text-[11px] text-muted",children:Wx(e.phase)}):null]}),x.jsx("p",{className:"mt-0.5 line-clamp-2 text-xs text-muted",children:e.objectiveExcerpt}),x.jsxs("div",{className:"mt-1 flex flex-wrap gap-x-3 gap-y-0.5 text-[11px] text-muted",children:[x.jsxs("span",{children:["Guaranteed explorer ·"," ",x.jsx("span",{className:t?.status==="failed"?"text-del":"text-text",children:C})]}),x.jsx("span",{children:b?`${b} extra explorer${b===1?"":"s"}`:"No extra explorers"})]})]})]}),x.jsx("div",{className:"mt-2 grid gap-1 min-[560px]:grid-cols-3",children:["planning","exploration","implementation"].map(v=>x.jsx(aL,{name:v,role:e.roles[v]},v))}),r?null:x.jsxs("div",{className:"mt-1.5 flex flex-wrap gap-x-3 gap-y-1 text-[11px] text-faint",children:[x.jsxs("span",{children:["Exploration · ",N2(e.jobs.exploration)]}),x.jsxs("span",{children:["Implementation · ",N2(e.jobs.implementation)]})]}),e.error?x.jsxs("div",{className:"mt-2 rounded-lg border border-del/30 bg-del/5 px-2.5 py-2 text-xs text-del",role:"alert",children:[x.jsx("div",{className:"font-medium",children:e.error.code}),x.jsx("div",{children:e.error.message})]}):null,u?x.jsx("div",{className:"mt-2 text-xs text-del",role:"alert",children:u}):null,e.actions.canAdopt&&e.adoption?x.jsxs("div",{className:"mt-2 rounded-lg border border-border-soft bg-surface px-2.5 py-2",children:[x.jsxs("div",{className:"text-xs font-medium text-text",children:["Choose the ",e.adoption.kind," the relay observed"]}),e.adoption.candidates.length?x.jsx("div",{className:"mt-1 flex flex-wrap gap-1",children:e.adoption.candidates.map(v=>x.jsxs("button",{type:"button",disabled:!!l,onClick:()=>{k(`adopt:${v.id}`,()=>i.adopt(e,v))},title:v.id,className:"rounded-lg border border-border bg-surface-2 px-2 py-1 text-left text-[11px] text-text disabled:opacity-50",children:[x.jsx("span",{className:"block font-medium",children:v.title}),x.jsxs("span",{className:"text-faint",children:[v.repo," · ",new Date(v.createdAt).toLocaleString()," · ",v.id.slice(0,8)]})]},v.id))}):x.jsx("div",{className:"mt-1 text-[11px] text-faint",children:"No candidate remains eligible."})]}):null,f?x.jsxs("div",{className:"mt-2 rounded-lg border border-del/30 bg-del/5 px-2.5 py-2 text-xs",children:[x.jsx("p",{className:"text-del",children:"The earlier UI action may already have happened. Replaying it can create a duplicate."}),x.jsxs("div",{className:"mt-1.5 flex gap-1.5",children:[x.jsx("button",{type:"button",disabled:!!l,onClick:()=>{k("replay",()=>i.replay(e))},className:"rounded-lg bg-del px-2 py-1 text-[11px] font-medium text-white disabled:opacity-50",children:"Confirm replay"}),x.jsx("button",{type:"button",onClick:()=>h(!1),className:"px-2 py-1 text-[11px] text-muted",children:"Keep blocked"})]})]}):null,m?x.jsxs("div",{className:"mt-2 rounded-lg border border-border-soft bg-surface px-2.5 py-2 text-xs",children:[x.jsx("p",{className:"text-muted",children:"Cancel orchestration only. Existing chats, turns, and worktrees stay in place."}),x.jsxs("div",{className:"mt-1.5 flex gap-1.5",children:[x.jsx("button",{type:"button",disabled:!!l,onClick:()=>{k("cancel",()=>i.cancel(e))},className:"rounded-lg border border-del/40 px-2 py-1 text-[11px] font-medium text-del disabled:opacity-50",children:"Confirm cancel"}),x.jsx("button",{type:"button",onClick:()=>p(!1),className:"px-2 py-1 text-[11px] text-muted",children:"Keep running"})]})]}):null,e.actions.canRetry||e.actions.canReplayAmbiguous||e.actions.canComplete||e.actions.canCancel?x.jsxs("div",{className:"mt-2 flex flex-wrap gap-1.5",children:[e.actions.canRetry?x.jsxs("button",{type:"button",disabled:!!l,onClick:()=>{k("retry",()=>i.retry(e))},className:"flex items-center gap-1 rounded-lg bg-accent px-2 py-1 text-[11px] font-medium text-on-solid disabled:opacity-50",children:[l==="retry"?x.jsx(_n,{size:11,className:"animate-spin"}):x.jsx(J8,{size:11}),"Retry saved action"]}):null,e.actions.canReplayAmbiguous&&!f?x.jsx("button",{type:"button",disabled:!!l,onClick:()=>h(!0),className:"rounded-lg border border-del/40 px-2 py-1 text-[11px] font-medium text-del disabled:opacity-50",children:"Review risky replay"}):null,e.actions.canComplete?x.jsxs("button",{type:"button",disabled:!!l,onClick:()=>{k("complete",()=>i.complete(e))},className:"flex items-center gap-1 rounded-lg bg-accent px-2 py-1 text-[11px] font-medium text-on-solid disabled:opacity-50",children:[x.jsx(tg,{size:11})," Mark complete"]}):null,e.actions.canCancel&&!m?x.jsx("button",{type:"button",disabled:!!l,onClick:()=>p(!0),className:"rounded-lg px-2 py-1 text-[11px] text-muted disabled:opacity-50",children:"Cancel workflow"}):null]}):null]})}function _2(e,t,r,i){const l=m=>i===null?!m:m===i,o=e.filter(m=>l(m.workflowId)),u=t.flatMap(m=>{const p=r[m.id],y=p?.delegationId;return y&&l(p.workflowId)?[{session:m,assignment:p,delegationId:y}]:[]}),d=new Map(u.map(m=>[m.delegationId,m])),f=new Set(o.map(m=>m.id)),h=o.map(m=>({key:`job:${m.id}`,order:m.createdAt,role:m.bootstrap?"Guaranteed explorer":m.role,model:m.resolvedRole.model,agentType:m.resolvedRole.agentType,childSessionId:m.childSessionId??d.get(m.id)?.session.id,status:Yf[m.status],state:m.status==="failed"?"failed":m.status==="returned"?"done":"busy"}));for(const{session:m,assignment:p,delegationId:y}of u){if(f.has(y))continue;const b=!!m.background_tasks.length,C=m.status==="working";h.push({key:`session:${m.id}`,order:p.assignedAt,role:p.role,model:m.model,agentType:m.agent_type,childSessionId:m.id,...C?{status:"Running",state:"busy"}:b?{status:"Waiting",state:"waiting"}:{status:"Returned",state:"done"}})}return h.sort((m,p)=>m.order-p.order||m.key.localeCompare(p.key))}function M2({tabs:e,label:t,activeSessionId:r,onSelectSession:i}){return x.jsx(I5,{label:t,tabs:e.map(l=>{const o=l.childSessionId;return{key:l.key,label:l.role,model:l.model,agentType:l.agentType,status:l.status,state:l.state,selected:!!o&&o===r,...o?{onSelect:()=>i(o)}:{}}})})}function I5({tabs:e,label:t}){return e.length?x.jsxs("nav",{"aria-label":t,className:"flex shrink-0 items-center gap-1.5 overflow-x-auto border-b border-border-soft bg-bg px-3 py-2",children:[t.startsWith("Legacy")?x.jsx("span",{className:"shrink-0 text-[10px] font-medium uppercase text-faint",children:"Legacy"}):null,e.map((r,i)=>{const l=r.state==="failed",o=x.jsxs(x.Fragment,{children:[x.jsx(js,{agentType:r.agentType,model:r.model,className:"size-3.5"}),x.jsx("span",{className:"max-w-28 truncate font-medium",children:r.label}),r.model?x.jsx("span",{className:"max-w-28 truncate text-faint",children:r.model}):null,r.status?x.jsxs("span",{className:he("flex shrink-0 items-center gap-1",l?"text-del":"text-muted"),children:[r.state==="failed"?x.jsx(Oi,{size:10}):r.state==="waiting"?x.jsx(sf,{size:10}):r.state==="done"?x.jsx(H8,{size:10}):x.jsx(_n,{size:10,className:"animate-spin"}),r.status]}):null]});return x.jsxs("div",{className:"flex shrink-0 items-center gap-1.5",children:[i?x.jsx(EC,{size:11,className:"shrink-0 text-faint"}):null,r.onSelect?x.jsx("button",{type:"button",onClick:r.onSelect,"aria-current":r.selected?"page":void 0,className:he("flex h-7 shrink-0 items-center gap-1.5 rounded-lg border border-border-soft px-2 text-[11px] active:bg-surface-2",r.selected&&"border-accent/50 bg-surface-2",l&&"border-del/40"),children:o}):x.jsx("div",{className:he("flex h-7 shrink-0 items-center gap-1.5 rounded-lg border border-border-soft px-2 text-[11px]",l&&"border-del/40"),children:o})]},r.key)})]}):null}function lL({workflow:e,jobs:t,sessions:r=[],roles:i={},activeSessionId:l,onSelectSession:o}){const u=e?_2(t,r,i,e.id):[],d=e?t.find(h=>h.workflowId===e.id&&h.bootstrap):void 0,f=_2(t,r,i,null);return!e&&!f.length?null:x.jsxs(x.Fragment,{children:[e?x.jsx(P5,{workflow:e,bootstrapJob:d}):null,x.jsx(M2,{tabs:u,label:"Workflow jobs",activeSessionId:l,onSelectSession:o}),x.jsx(M2,{tabs:f,label:"Legacy delegated work",activeSessionId:l,onSelectSession:o})]})}function oL(e){return Yf[e]}function cL({jobs:e,sessionId:t,onSelectSession:r,onDismiss:i,onOpenRoles:l}){if(!t)return null;const o=e.filter(u=>!u.workflowId&&(u.parentSessionId===t||u.childSessionId===t));return o.length?x.jsx(x.Fragment,{children:o.map(u=>{const d=u.parentSessionId===t,f=u.status==="failed",h=d?u.childSessionId:u.parentSessionId,m=[];return h&&m.push({label:d?"Open worker":"Open parent",onClick:()=>r(h)}),f&&(m.push({label:"Edit roles",onClick:l,primary:!0}),m.push({label:"Dismiss delegation",onClick:()=>i(u.id)})),x.jsx(Kf,{state:f?"failed":"pending",align:"wide",label:`Legacy delegation · ${d?"Delegated":"Assigned"} · ${u.role} · ${u.resolvedRole.model}${u.resolvedRole.effort?` · ${u.resolvedRole.effort}`:""}`,meta:f?`${u.failure?.code??"failed"}: ${u.failure?.message??"The delegated job failed."}`:`${oL(u.status)}${u.attempts?` · attempt ${u.attempts+1}`:""}`,actions:m,dataMessageState:`delegation-${u.status}`,children:x.jsx(ni,{children:u.prompt})},u.id)})}):null}const uL="modulepreload",xL=function(e){return"/"+e},j2={},U5=function(t,r,i){let l=Promise.resolve();if(r&&r.length>0){let f=function(h){return Promise.all(h.map(m=>Promise.resolve(m).then(p=>({status:"fulfilled",value:p}),p=>({status:"rejected",reason:p}))))};document.getElementsByTagName("link");const u=document.querySelector("meta[property=csp-nonce]"),d=u?.nonce||u?.getAttribute("nonce");l=f(r.map(h=>{if(h=xL(h),h in j2)return;j2[h]=!0;const m=h.endsWith(".css"),p=m?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${h}"]${p}`))return;const y=document.createElement("link");if(y.rel=m?"stylesheet":uL,m||(y.as="script"),y.crossOrigin="",y.href=h,d&&y.setAttribute("nonce",d),document.head.appendChild(y),m)return new Promise((b,C)=>{y.addEventListener("load",b),y.addEventListener("error",()=>C(new Error(`Unable to preload CSS for ${h}`)))})}))}function o(u){const d=new Event("vite:preloadError",{cancelable:!0});if(d.payload=u,window.dispatchEvent(d),!d.defaultPrevented)throw u}return l.then(u=>{for(const d of u||[])d.status==="rejected"&&o(d.reason);return t().catch(o)})};function dL(e={}){const{immediate:t=!1,onNeedReload:r,onNeedRefresh:i,onOfflineReady:l,onRegistered:o,onRegisteredSW:u,onRegisterError:d}=e;let f,h,m;const p=async(b=!0)=>{await h,m?.()};async function y(){if("serviceWorker"in navigator){if(f=await U5(async()=>{const{Workbox:b}=await import("./workbox-window.prod.es5-BBnX5xw4.js");return{Workbox:b}},[]).then(({Workbox:b})=>new b("/sw.js",{scope:"/",type:"classic"})).catch(b=>{d?.(b)}),!f)return;m=()=>{f?.messageSkipWaiting()};{let b=!1;const C=()=>{b=!0,f?.addEventListener("controlling",k=>{k.isUpdate&&(r?r():window.location.reload())}),i?.()};f.addEventListener("installed",k=>{typeof k.isUpdate>"u"?typeof k.isExternal<"u"&&k.isExternal?C():!b&&l?.():k.isUpdate||l?.()}),f.addEventListener("waiting",C)}f.register({immediate:t}).then(b=>{u?u("/sw.js",b):o?.(b)}).catch(b=>{d?.(b)})}}return h=y(),p}function fL(e={}){const{immediate:t=!0,onNeedReload:r,onNeedRefresh:i,onOfflineReady:l,onRegistered:o,onRegisteredSW:u,onRegisterError:d}=e,[f,h]=D.useState(!1),[m,p]=D.useState(!1),[y]=D.useState(()=>dL({immediate:t,onNeedReload:r,onOfflineReady(){p(!0),l?.()},onNeedRefresh(){h(!0),i?.()},onRegistered:o,onRegisteredSW:u,onRegisterError:d}));return{needRefresh:[f,h],offlineReady:[m,p],updateServiceWorker:y}}const T2=6e4,hL=1e4,Jx="pwa-update-attempted-at",pL=2500,mL=30*6e4,Ol="pwa-update-snoozed-until";async function gL(){try{if("serviceWorker"in navigator){const t=await navigator.serviceWorker.getRegistrations();await Promise.all(t.map(r=>r.unregister()))}if("caches"in window){const t=await caches.keys();await Promise.all(t.map(r=>caches.delete(r)))}}catch{}const e=location.search?"&":"?";location.replace(`${location.pathname}${location.search}${e}_v=${Date.now()}`)}function EL(){const e=ve(p=>p.token),t=D.useRef(null),r=D.useRef(!1),{needRefresh:[i,l],updateServiceWorker:o}=fL({onRegisteredSW(p,y){y&&(t.current=y,setInterval(()=>{y.update().catch(()=>{})},T2))}}),{data:u}=fn({queryKey:["state"],queryFn:()=>De.state(),enabled:!!e,refetchInterval:!1}),d=u?.version,f=D.useRef(null);if(D.useEffect(()=>{!d||d==="1.108.0"||f.current===d||(f.current=d,t.current?.update().catch(()=>{}))},[d]),D.useEffect(()=>{if(!i)return;const p=Number(sessionStorage.getItem(Jx));if(sessionStorage.removeItem(Jx),p&&Date.now()-p<hL){l(!1);return}const y=Number(sessionStorage.getItem(Ol));y&&Date.now()<y&&l(!1)},[i,l]),D.useEffect(()=>{if(i)return;const p=()=>{const b=Number(sessionStorage.getItem(Ol));!b||Date.now()<b||t.current?.waiting&&(sessionStorage.removeItem(Ol),l(!0))},y=window.setInterval(p,T2);return document.addEventListener("visibilitychange",p),()=>{window.clearInterval(y),document.removeEventListener("visibilitychange",p)}},[i,l]),!i)return null;const h=()=>{sessionStorage.setItem(Ol,String(Date.now()+mL)),l(!1)},m=()=>{sessionStorage.removeItem(Ol),sessionStorage.setItem(Jx,String(Date.now()));const p=()=>{r.current||(r.current=!0,window.location.reload())},y=t.current?.waiting;y?(navigator.serviceWorker?.addEventListener("controllerchange",p,{once:!0}),y.addEventListener("statechange",()=>{y.state==="activated"&&p()}),y.postMessage({type:"SKIP_WAITING"})):o(!0),window.setTimeout(()=>{r.current||(r.current=!0,gL())},pL)};return x.jsxs("div",{className:"pb-safe fade-in fixed inset-x-0 bottom-0 z-40 mx-auto flex max-w-sm items-center gap-3 rounded-t-2xl border border-border-soft bg-surface px-4 py-3 shadow-xl",children:[x.jsx(so,{size:15,className:"shrink-0 text-accent"}),x.jsx("span",{className:"flex-1 text-sm",children:"New version ready"}),x.jsx("button",{type:"button",onClick:h,className:"rounded-lg px-2 py-1 text-xs text-muted active:bg-surface-2",children:"Later"}),x.jsx("button",{type:"button",onClick:m,className:"rounded-lg bg-accent px-3 py-1 text-xs font-semibold text-on-solid transition active:scale-95",children:"Update"})]})}function $5({children:e}){return x.jsxs("header",{className:"pt-safe sticky top-0 z-10 border-b border-border-soft bg-bg/80 backdrop-blur-xl",children:[e,x.jsx(Pz,{})]})}function Id({title:e,subtitle:t,menu:r,right:i}){const l=ve(o=>o.setSidebarOpen);return x.jsx($5,{children:x.jsxs("div",{className:"flex items-center gap-2 px-3 pb-2.5",children:[r?x.jsx("button",{type:"button",onClick:()=>l(!0),"aria-label":"Open workspaces",className:"-ml-1 flex size-9 shrink-0 items-center justify-center rounded-full text-muted active:bg-surface-2 md:hidden",children:x.jsx(RA,{size:20})}):x.jsx("span",{className:"w-1"}),x.jsxs("div",{className:"min-w-0 flex-1",children:[x.jsx("div",{className:"truncate text-[15px] font-semibold leading-tight",children:e}),t?x.jsx("div",{className:"truncate text-xs leading-tight text-muted",children:t}):null]}),i]})})}function yL(e){for(let t=e.length-1;t>=0;t--){const r=e[t];if(r.role==="assistant")return r;if(r.role==="user")return null}return null}function R2(e){const t=[];let r=null;for(const i of e)i.role==="assistant"?r=i:i.role==="user"&&(r&&t.push(r),r=null);return r&&t.push(r),t}function bL(e,t,r){const i=Wn(t.ts);if(r&&Wn(r)<i)return r;const l=e.lastIndexOf(t);for(let o=(l<0?e.length:l)-1;o>=0;o--)if(e[o].role==="user")return e[o].ts;return null}function CL(e){const t=new Map;for(const o of e)o.subagentLabel&&o.toolUseId&&!t.has(o.toolUseId)&&t.set(o.toolUseId,o);const r=new Map,i=new Set;for(const o of e){const u=o.parentToolUseId,d=u?t.get(u):void 0;if(!d||d===o)continue;const f=r.get(u)??[];f.push(o),r.set(u,f),i.add(o)}const l=(o,u)=>{const d=o.toolUseId;if(!d||u.has(d))return{e:o,children:[]};const f=new Set(u);return f.add(d),{e:o,children:(r.get(d)??[]).map(h=>l(h,f))}};return e.filter(o=>!i.has(o)).map(o=>l(o,new Set))}function vL(e){const t=[],r=new Set,i=l=>{const o=l.e.toolUseId,u=l.e.subagentLabel;o&&u&&!r.has(o)&&(r.add(o),t.push({id:o,label:u,node:l}));for(const d of l.children)i(d)};for(const l of e)i(l);return t.sort((l,o)=>l.node.e.rowid-o.node.e.rowid||l.id.localeCompare(o.id))}const kL=1500,AL=400,H5=12,BL=2,DL=H5+8,wL=2,FL=1.1,SL=200,NL=420,_L=.6,q5=()=>window.matchMedia("(prefers-reduced-motion: reduce)").matches,ed=(e,t,r)=>Math.min(r,Math.max(t,e)),ML=e=>e.scrollHeight-e.clientHeight-e.scrollTop<=wL?e.scrollTop+e.clientHeight:e.scrollTop+DL,jL=(e,t)=>e.length===t.length&&e.every((r,i)=>r.top===t[i].top&&r.preview===t[i].preview);function TL(e,t,r){const i=ed(t,0,e.scrollHeight-e.clientHeight);if(q5())return e.scrollTop=i,r(),()=>{};const l=e.clientHeight*FL;Math.abs(i-e.scrollTop)>l&&(e.scrollTop=ed(i+Math.sign(e.scrollTop-i)*l,0,e.scrollHeight-e.clientHeight));const o=e.scrollTop,u=i-o;if(!u)return r(),()=>{};const d=ed(Math.abs(u)*_L,SL,NL),f=performance.now();let h=0,m=!1;const p=()=>{m||(m=!0,cancelAnimationFrame(h),e.removeEventListener("touchstart",p),e.removeEventListener("wheel",p))};e.addEventListener("touchstart",p,{passive:!0}),e.addEventListener("wheel",p,{passive:!0});const y=b=>{const C=Math.min(1,(b-f)/d);if(e.scrollTop=o+u*(1-(1-C)**5),C<1){h=requestAnimationFrame(y);return}p(),r()};return h=requestAnimationFrame(y),p}function RL({scroller:e}){const[t,r]=D.useState([]),[i,l]=D.useState(0),[o,u]=D.useState(!1),[d,f]=D.useState(!1),h=D.useRef([]),m=D.useRef(!1),p=D.useRef(!1),y=D.useRef(0),b=D.useRef(0),C=D.useRef(0),k=D.useRef(()=>{}),v=D.useCallback(()=>{p.current||(clearTimeout(y.current),m.current=!1,u(!1))},[]),A=D.useCallback(()=>{m.current=!0,u(!0),clearTimeout(y.current),y.current=window.setTimeout(v,kL)},[v]),F=D.useCallback(()=>{const T=e.current;if(!T)return;const $=T.getBoundingClientRect().top-T.scrollTop,G=Array.from(T.querySelectorAll("[data-user-msg]"),ae=>({top:ae.getBoundingClientRect().top-$,preview:ae.dataset.userMsg??"",ts:ae.dataset.msgTs??null,state:ae.dataset.msgState??null,node:ae}));h.current=jL(h.current,G)?h.current:G,r(h.current),l(ML(T))},[e]),N=D.useCallback(()=>{C.current||(C.current=requestAnimationFrame(()=>{C.current=0,F()}))},[F]);D.useEffect(()=>{const T=e.current;if(!T)return;const $=()=>{b.current=performance.now()},G=()=>{!m.current&&performance.now()-b.current>AL||J0()||(A(),N())},ae=()=>{J0()&&v()};T.addEventListener("touchmove",$,{passive:!0}),T.addEventListener("wheel",$,{passive:!0}),T.addEventListener("scroll",G,{passive:!0}),document.addEventListener("selectionchange",ae);const ee=()=>{m.current&&N()},K=new ResizeObserver(ee);K.observe(T);const I=new MutationObserver(ee);return I.observe(T,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["open"]}),()=>{T.removeEventListener("touchmove",$),T.removeEventListener("wheel",$),T.removeEventListener("scroll",G),document.removeEventListener("selectionchange",ae),K.disconnect(),I.disconnect(),k.current(),C.current&&cancelAnimationFrame(C.current),clearTimeout(y.current)}},[e,A,v,N]);const _=T=>{const $=e.current,G=h.current[T];$&&G&&(k.current(),k.current=TL($,G.top-H5,()=>{q5()||G.node.firstElementChild?.animate([{boxShadow:"0 0 0 2px var(--color-accent)"},{boxShadow:"0 0 0 2px transparent"}],{duration:700,easing:"ease-out"})}),A())},S=D.useCallback(()=>{p.current=!1,f(!1),A()},[A]);if(t.length<BL)return null;let w=-1;for(let T=0;T<t.length;T++)t[T].top<=i&&(w=T);const O=w>0?w-1:null,z=w+1<t.length?w+1:null,P=o||d;return x.jsxs(x.Fragment,{children:[x.jsx("div",{className:he("pointer-events-none absolute inset-x-0 bottom-0 z-20 flex justify-center pb-3 transition duration-200 ease-out motion-reduce:transition-none",P?"translate-y-0 opacity-100":"translate-y-3 opacity-0"),children:x.jsxs("nav",{"aria-label":"Jump to your messages",onFocus:A,className:he("flex h-12 items-stretch overflow-hidden rounded-full border border-border bg-surface-2 shadow-lg shadow-black/60",P?"pointer-events-auto":"pointer-events-none"),children:[x.jsx(O2,{dir:"up",onClick:()=>O!==null&&_(O),disabled:O===null}),x.jsxs("button",{type:"button",onClick:()=>{F(),p.current=!0,f(!0),A()},"aria-haspopup":"dialog","aria-expanded":d,"aria-label":`Your messages — ${t.length} in this chat`,className:"flex items-center gap-1.5 border-border-soft border-x px-3.5 text-muted transition active:bg-surface active:text-text focus-visible:outline-2 focus-visible:outline-accent focus-visible:-outline-offset-2",children:[x.jsx(Y8,{size:16,className:"shrink-0"}),x.jsxs("span",{className:"font-mono text-[13px] tabular-nums",children:[x.jsx("span",{className:"text-text",children:w+1||"–"}),x.jsxs("span",{className:"text-muted",children:["/",t.length]})]})]}),x.jsx(O2,{dir:"down",onClick:()=>z!==null&&_(z),disabled:z===null})]})}),d?x.jsx(zL,{marks:t,current:w,onPick:T=>{S(),_(T)},onClose:S}):null]})}function OL({mark:e}){if(e.state==="failed")return x.jsx("span",{className:"shrink-0 text-[11px] text-del",children:"didn’t send"});const t=e.state==="sending"?"sending…":e.state==="queued"?"queued":e.ts&&N5(e.ts);return t?x.jsx("span",{className:"shrink-0 text-[11px] text-muted tabular-nums",children:t}):null}function O2({dir:e,onClick:t,disabled:r}){const i=e==="up"?j3:ka;return x.jsx("button",{type:"button",onClick:t,disabled:r,"aria-label":e==="up"?"Jump to your previous message":"Jump to your next message",className:"flex w-12 items-center justify-center text-muted transition active:bg-surface active:text-text disabled:text-faint/40 focus-visible:outline-2 focus-visible:outline-accent focus-visible:-outline-offset-2",children:x.jsx(i,{size:19})})}function zL({marks:e,current:t,onPick:r,onClose:i}){const l=D.useRef(null),o=D.useRef(null);return D.useEffect(()=>{l.current?.focus({preventScroll:!0}),o.current?.scrollIntoView({block:"center"})},[]),x.jsxs(x.Fragment,{children:[x.jsx("div",{className:"fixed inset-0 z-50 bg-black/60",onClick:i,"aria-hidden":!0}),x.jsxs("div",{ref:l,role:"dialog","aria-modal":"true","aria-label":"Your messages",tabIndex:-1,onKeyDown:u=>u.key==="Escape"&&i(),className:"fade-in pb-safe fixed inset-x-0 bottom-0 z-50 mx-auto flex max-h-[70%] max-w-md flex-col rounded-t-3xl border border-border-soft bg-surface shadow-xl outline-none md:mb-6 md:rounded-3xl",children:[x.jsxs("header",{className:"flex shrink-0 items-center gap-2 border-b border-border-soft px-4 py-2.5",children:[x.jsx("h2",{className:"flex-1 text-[15px] font-semibold",children:"Your messages"}),x.jsx("span",{className:"font-mono text-[12px] text-faint tabular-nums",children:e.length}),x.jsx("button",{type:"button",onClick:i,"aria-label":"Close",className:"-mr-2 flex size-11 items-center justify-center rounded-full text-muted transition active:bg-surface-2 focus-visible:outline-2 focus-visible:outline-accent focus-visible:-outline-offset-2",children:x.jsx(En,{size:19})})]}),x.jsx("div",{className:"min-h-0 flex-1 overflow-y-auto overscroll-contain py-1",children:e.map((u,d)=>x.jsxs("button",{ref:d===t?o:void 0,type:"button",onClick:()=>r(d),"aria-current":d===t?"true":void 0,className:he("flex min-h-14 w-full items-center gap-3 px-4 py-2.5 text-left transition active:bg-surface-2 focus-visible:outline-2 focus-visible:outline-accent focus-visible:-outline-offset-2",d===t&&"bg-surface-2/60"),children:[x.jsx("span",{className:he("w-5 shrink-0 text-right font-mono text-[11px] tabular-nums",d===t?"text-accent":"text-muted"),children:d+1}),x.jsx("span",{className:"line-clamp-2 min-w-0 flex-1 text-[13.5px] leading-snug text-text [overflow-wrap:anywhere]",children:u.preview||"Empty message"}),x.jsx(OL,{mark:u})]},u.top))})]})]})}const LL=D.lazy(()=>U5(()=>import("./PierrePatch-DF-STc4J.js"),[]));function G5(e){return e.patch.split(`
|
|
47
|
-
`).some(t=>t.startsWith("@@ "))?x.jsx(D.Suspense,{fallback:x.jsx(z2,{...e}),children:x.jsx(LL,{...e})}):x.jsx(z2,{...e})}function z2({patch:e,truncated:t,className:r}){const i=D.useMemo(()=>e.split(`
|
|
48
|
-
`),[e]);return x.jsxs("pre",{className:he("overflow-x-auto font-mono text-[11.5px] leading-[1.5]",r),children:[i.map((l,o)=>x.jsx("div",{className:he("whitespace-pre",PL(l)),children:l||" "},o)),t?x.jsx("div",{className:"mt-2 text-faint",children:"… diff truncated …"}):null]})}function PL(e){return e.startsWith("+")&&!e.startsWith("+++")?"text-add":e.startsWith("-")&&!e.startsWith("---")?"text-del":e.startsWith("@@")?"text-accent":e.startsWith("diff ")||e.startsWith("index ")||e.startsWith("+++")||e.startsWith("---")?"text-faint":"text-muted"}function V5({sessionId:e,workspaceId:t,working:r,workingSince:i,turnStartedAt:l,queued:o,waiting:u,delegations:d=[],poll:f,agentType:h,model:m,selectedSubagentId:p,onFork:y,onSelectSession:b,onSelectSubagent:C,onDismissDelegation:k,onOpenRoles:v}){const{entries:A,loading:F,error:N}=HF(e,f??!0),_=ve(ne=>ne.pending),S=ve(ne=>ne.removePending),w=Rg(),O=On(),z=D.useRef(null),P=D.useRef(!0),T=D.useMemo(()=>CL(A),[A]),$=D.useMemo(()=>vL(T),[T]),G=p?$.find(ne=>ne.id===p):void 0,ae=!!G,ee=G?.node.children??T,K=D.useMemo(()=>T.map(ne=>ne.e),[T]),I=D.useMemo(()=>UL(ee),[ee]),Y=D.useMemo(()=>yL(K),[K]),ie=D.useMemo(()=>{const ne=R2(K).filter(Oe=>Oe!==Y);return new Set(ne.map(As))},[K,Y]),xe=D.useMemo(()=>new Map(R2(K).map(ne=>[ne,bL(K,ne,l)])),[K,l]),j=G?qL(G.node):null;D.useEffect(()=>{p&&!F&&!G&&C?.(null)},[p,G,F,C]);const L=async ne=>{await(ne.sessionId?De.dismissParked(ne.sessionId):De.dismissPrompt(ne.workspaceId)).catch(()=>{}),O.invalidateQueries({queryKey:["state"]})},V=new Set(A.filter(ne=>ne.role==="user").map(ne=>ne.text.trim())),R=[...V],se=_.filter(ne=>ne.sessionId===e),be=se.filter(ne=>!(u9(ne)&&R.some(Oe=>x9(ne,Oe)))),W=o?.text.trim()||null,me=W&&!V.has(W)&&!se.some(ne=>ne.text.trim()===W)?o:null,Ue=!!e&&d.some(ne=>ne.parentSessionId===e||ne.childSessionId===e);D.useEffect(()=>{const ne=A.filter(Oe=>Oe.role==="user").map(Oe=>Oe.text.trim());for(const Oe of _)Oe.sessionId===e&&u9(Oe)&&ne.some(at=>x9(Oe,at))&&S(Oe.id)},[A,_,e,S]);const Be=()=>{const ne=z.current;ne&&(P.current=ne.scrollHeight-ne.scrollTop-ne.clientHeight<120)},tt=u?.length??0;if(D.useLayoutEffect(()=>{const ne=z.current;ne&&P.current&&(ne.scrollTop=ne.scrollHeight)},[A,be.length,r,tt,p]),D.useEffect(()=>{P.current=!0},[e,p]),D.useEffect(()=>{const ne=z.current;if(!ne)return;const Oe=new ResizeObserver(()=>{P.current&&(ne.scrollTop=ne.scrollHeight)});return Oe.observe(ne),()=>Oe.disconnect()},[]),!e&&!me)return x.jsx(qt,{children:"No active session in this workspace."});const ct=A.length===0&&be.length===0&&!me&&!Ue,we=ae&&ee.length===0&&!j,Nt=ae?we:ct,Fe=$.map(ne=>{const Oe=!!ne.node.e.error,at=ne.id===G?.id;return{key:ne.id,label:ne.label,model:m??null,agentType:h??null,...Oe?{status:"Failed",state:"failed"}:{},selected:at,...C?{onSelect:()=>C(at?null:ne.id)}:{}}});return x.jsxs("div",{className:"relative flex min-h-0 min-w-0 flex-1 flex-col",children:[x.jsx(I5,{tabs:Fe,label:"Subagents"}),x.jsxs("div",{className:"relative flex min-h-0 min-w-0 flex-1",children:[x.jsx("div",{ref:z,onScroll:Be,className:"min-w-0 flex-1 overflow-y-auto overflow-x-hidden px-3 py-3","data-subagent-transcript":G?.label,children:F&&Nt?x.jsx(dr,{label:"Loading transcript…"}):N&&Nt?x.jsx(qt,{children:N}):we?x.jsx(qt,{children:"No activity from this agent yet."}):Nt&&!r?x.jsx(qt,{children:"No messages yet."}):x.jsxs("div",{className:"flex min-w-0 flex-col gap-2.5",children:[I.map(ne=>ne.kind==="steps"?x.jsx($L,{nodes:ne.nodes},ne.key):x.jsxs(D.Fragment,{children:[x.jsx(Q5,{node:ne.node,onSelectSubagent:C}),!ae&&ie.has(As(ne.node.e))?x.jsx(L2,{text:ne.node.e.text,at:ne.node.e.ts,startedAt:xe.get(ne.node.e),rowid:ne.node.e.rowid,through:ne.node.e.rowid,onFork:y}):null]},ne.key)),j&&G?x.jsx(GL,{text:j,failed:!!G.node.e.error}):null,!ae&&Y?x.jsx(L2,{text:Y.text,at:Y.ts,startedAt:xe.get(Y),rowid:Y.rowid,working:r,onFork:y}):null,!ae&&d.length&&b&&k&&v?x.jsx(cL,{jobs:d,sessionId:e,onSelectSession:b,onDismiss:k,onOpenRoles:v}):null,ae?null:be.map(ne=>x.jsx(QL,{p:ne,onRetry:()=>w({id:ne.id,sessionId:ne.sessionId,workspaceId:ne.workspaceId,text:ne.text,queue:ne.queue,workflow:ne.workflow}),onDismiss:()=>S(ne.id)},ne.id)),!ae&&me?x.jsx(VL,{queued:me,onRetry:e?()=>w({id:`queued:${me.sessionId??me.workspaceId}:${me.createdAt}`,sessionId:e,workspaceId:t,text:me.text}):void 0,onDismiss:()=>L(me)}):null,ae?null:u?.map(ne=>x.jsx(XL,{task:ne},ne.taskId)),!ae&&r?x.jsx(YL,{since:i}):null]})}),ae?null:x.jsx(RL,{scroller:z})]})]})}const As=e=>`${e.rowid}-${e.id}`,IL=(e,t)=>e.nodes.length===t.nodes.length&&e.nodes.every((r,i)=>r.e===t.nodes[i]?.e);function UL(e){const t=[];let r=[];const i=()=>{if(r.length>1)t.push({kind:"steps",key:`steps-${As(r[0].e)}`,nodes:r});else for(const l of r)t.push({kind:"entry",key:As(l.e),node:l});r=[]};for(const l of e){if(!l.e.subagentLabel&&(l.e.role==="tool"||l.e.role==="thinking")){r.push(l);continue}i(),t.push({kind:"entry",key:As(l.e),node:l})}return i(),t}const $L=D.memo(function({nodes:t}){const r=t.filter(o=>o.e.error).length,i=t[t.length-1].e,l=i.role==="thinking"?"Thinking":i.text;return x.jsxs("details",{className:"group/steps min-w-0 overflow-hidden rounded-xl border border-border-soft bg-surface/40",children:[x.jsxs("summary",{className:"flex cursor-pointer select-none list-none items-baseline gap-2 overflow-hidden whitespace-nowrap px-3 py-1.5 [&::-webkit-details-marker]:hidden",children:[x.jsx("span",{className:"shrink-0 font-mono text-[11px] text-faint transition-transform group-open/steps:rotate-90",children:"▸"}),x.jsxs("span",{className:"shrink-0 text-[12.5px] text-muted",children:[t.length," steps"]}),x.jsx("span",{className:"min-w-0 flex-1 truncate text-[11px] text-faint group-open/steps:invisible",children:l}),r?x.jsxs("span",{className:"shrink-0 text-[11px] text-del",children:[r," failed"]}):null]}),x.jsx("div",{className:"flex min-w-0 flex-col gap-2.5 border-t border-border-soft px-2 py-2.5",children:t.map(o=>x.jsx(Q5,{node:o},As(o.e)))})]})},IL);function Q5({node:e,onSelectSubagent:t}){const r=e.e.toolUseId;return e.e.subagentLabel?x.jsx(HL,{node:e,onOpen:r&&t?()=>t(r):void 0}):x.jsx(KL,{e:e.e})}function HL({node:e,onOpen:t}){const{e:r}=e,i=x.jsxs(x.Fragment,{children:[x.jsx(tw,{size:14,strokeWidth:1.7,className:"shrink-0 text-faint","aria-hidden":!0}),x.jsx("span",{className:"shrink-0 font-medium text-text",children:"Agent"}),x.jsx("span",{className:"min-w-0 flex-1 truncate font-mono text-[11.5px] text-muted",children:r.subagentLabel}),r.error?x.jsx("span",{className:"shrink-0 text-[11px] text-del",children:"failed"}):null,t?x.jsx("span",{className:"shrink-0 text-[11px] text-faint",children:"Open"}):null]});return x.jsx("section",{className:"min-w-0 px-0.5","data-subagent":r.subagentLabel,children:t?x.jsx("button",{type:"button",onClick:t,"aria-label":`Open agent ${r.subagentLabel}`,className:"flex w-full min-w-0 items-center gap-2 rounded-lg py-1 text-left text-[12.5px] transition active:bg-surface-2",children:i}):x.jsx("div",{className:"flex min-w-0 items-center gap-2 py-1 text-[12.5px]",children:i})})}function qL(e){const{e:t}=e;return t.output&&(t.error||t.tool==="Agent"||t.tool==="Task")?t.output:null}function GL({text:e,failed:t}){return x.jsx("div",{className:"flex flex-col items-start","data-subagent-result":!0,children:x.jsx(Ud,{className:he("max-w-[92%] px-0.5",t&&"text-del/80"),children:x.jsx(ni,{children:e})})})}function VL({queued:e,onRetry:t,onDismiss:r}){const i=e.status==="failed",l=!i&&!!e.sessionId;return x.jsx(Kf,{state:i?"failed":"pending",meta:i?e.error||"Didn’t send":x.jsxs(x.Fragment,{children:[e.reason??"The relay is sending this",l?x.jsx(va,{className:"ml-1"}):null]}),actions:i?[...t?[{label:"Retry",onClick:t,primary:!0}]:[],{label:"Dismiss prompt",onClick:r}]:[],dataUserMessage:Gf(e.text),dataMessageState:"queued",children:x.jsx("div",{children:x.jsx(ni,{children:e.text})})})}function QL({p:e,onRetry:t,onDismiss:r}){const i=e.status==="error";return x.jsx(Kf,{state:i?"failed":"pending",meta:i?e.error||"Didn’t send":"Sending…",actions:i?[{label:"Retry",onClick:t,primary:!0},{label:"Dismiss message",onClick:r}]:[],dataUserMessage:Gf(e.text),dataMessageState:i?"failed":"sending",children:x.jsx("div",{children:x.jsx(ni,{children:e.text})})})}const KL=D.memo(function({e:t}){return t.role==="user"?x.jsxs("div",{className:"flex flex-col items-end gap-0.5","data-user-msg":Gf(t.text),"data-msg-ts":t.ts,"data-msg-state":t.queued?"queued":void 0,children:[x.jsxs(Ud,{className:he("max-w-[85%] bg-accent-soft text-text",t.queued&&"opacity-60"),children:[t.queued?x.jsx($d,{children:"queued"}):null,x.jsx(ni,{children:t.text})]}),x.jsx("span",{className:"pr-1 text-[11px] text-faint",children:Mz(t.ts)})]}):t.role==="tool"?x.jsx(WL,{e:t}):t.role==="thinking"?x.jsxs("details",{className:"group/think px-1",children:[x.jsxs("summary",{className:"cursor-pointer select-none list-none text-[11px] font-semibold uppercase tracking-wide text-faint [&::-webkit-details-marker]:hidden",children:[x.jsx("span",{className:"mr-1 inline-block transition-transform group-open/think:rotate-90",children:"▸"}),"Thinking"]}),x.jsx("div",{className:"mt-1 border-l-2 border-border-soft pl-3 text-[13px] italic leading-relaxed text-muted",children:x.jsx(ni,{children:t.text})})]}):t.role==="system"?x.jsx("div",{className:"px-2 text-center text-[11px] text-faint",children:t.text}):x.jsx("div",{className:"flex flex-col items-start",children:x.jsx(Ud,{className:"max-w-[92%] px-0.5",children:x.jsx(ni,{children:t.text})})})});function L2({text:e,at:t,startedAt:r,working:i,rowid:l,through:o,onFork:u}){const[d,f]=D.useState(!1),[h,m]=D.useState(!1),[p,y]=D.useState(null),[b,C]=D.useState("chat"),[k,v]=D.useState(()=>Date.now());D.useEffect(()=>{const _=setInterval(()=>v(Date.now()),6e4);return()=>clearInterval(_)},[]);const A=r?Wn(t)-Wn(r):Number.NaN,F=[A>0?Vf(A):null,jz(t,k)].filter(Boolean).join(" · "),N=async _=>{if(!(!u||h)){m(!0),y(null),f(!1);try{await u({thinking:_.thinking,tools:_.tools,destination:b,through:_.only?void 0:o,only:_.only?l:void 0})}catch(S){y(S instanceof Error?S.message:"Could not fork this chat")}finally{m(!1)}}};return x.jsxs("div",{className:"flex max-w-full flex-col items-start gap-1",children:[x.jsxs("div",{className:"flex items-center gap-2",children:[!i&&F?x.jsx("span",{className:"text-[11px] tabular-nums text-faint",children:F}):null,x.jsx(j5,{text:e,label:"response",className:"size-7 rounded-lg border border-border-soft bg-surface/70"}),u?x.jsxs("div",{className:"relative",children:[x.jsxs("div",{className:"flex items-center overflow-hidden rounded-lg border border-border-soft bg-surface/70 text-muted",children:[x.jsxs("button",{type:"button",onClick:()=>{N({thinking:!0,tools:!1})},disabled:h,"aria-label":b==="workspace"?"Fork to a new workspace with reasoning":o?"Fork chat from this response":"Fork chat with reasoning",title:b==="workspace"?"New workspace with current code":"New chat, same files",className:"flex h-7 items-center gap-1 whitespace-nowrap px-2 text-[11px] font-medium transition active:bg-surface-2 disabled:opacity-50",children:[h?x.jsx(_n,{size:13,className:"animate-spin"}):x.jsx(Q8,{size:13}),b==="workspace"?"Fork workspace":"Fork"]}),x.jsx("button",{type:"button",onClick:()=>f(_=>!_),disabled:h,"aria-label":"Choose fork options","aria-haspopup":"menu","aria-expanded":d,className:"flex size-7 items-center justify-center border-l border-border-soft transition active:bg-surface-2 disabled:opacity-50",children:x.jsx(ka,{size:14,className:he("transition-transform",d&&"rotate-180")})})]}),d?x.jsxs(x.Fragment,{children:[x.jsx("div",{className:"fixed inset-0 z-20",onClick:()=>f(!1),"aria-hidden":!0}),x.jsxs("div",{role:"menu","aria-label":"Fork options",className:"absolute bottom-full left-0 z-30 mb-1 w-60 overflow-hidden rounded-xl border border-border bg-surface py-1 shadow-xl",children:[x.jsxs("button",{type:"button",role:"menuitemcheckbox","aria-checked":b==="workspace",onClick:()=>C(_=>_==="chat"?"workspace":"chat"),className:"flex w-full items-center gap-3 border-b border-border-soft px-3 py-2 text-left active:bg-surface-2",children:[x.jsxs("span",{className:"min-w-0 flex-1",children:[x.jsx("span",{className:"block text-[12px] font-medium text-text",children:"To new workspace"}),x.jsx("span",{className:"block text-[11px] text-faint",children:"Carry the current code into its own worktree"})]}),x.jsx("span",{"aria-hidden":!0,className:he("relative h-6 w-11 shrink-0 rounded-full transition-colors",b==="workspace"?"bg-accent":"border border-border bg-surface-2"),children:x.jsx("span",{className:he("absolute left-0.5 top-0.5 size-5 rounded-full bg-white shadow-sm transition-transform",b==="workspace"?"translate-x-5":"translate-x-0")})})]}),x.jsx(I0,{label:"Last message only",detail:"This response, without history",onClick:()=>{N({thinking:!1,tools:!1,only:!0})}}),x.jsx(I0,{label:"Concise",detail:"Messages only",onClick:()=>{N({thinking:!1,tools:!1})}}),x.jsx(I0,{label:"With reasoning",detail:"Messages and reasoning",onClick:()=>{N({thinking:!0,tools:!1})}}),x.jsx(I0,{label:"Full transcript",detail:"Messages, reasoning, and tools",onClick:()=>{N({thinking:!0,tools:!0})}})]})]}):null]}):null]}),p?x.jsxs("span",{className:"max-w-[85vw] text-[11px] text-del",children:[p,Mi(p)?x.jsx(va,{className:"ml-1"}):null]}):null]})}function I0({label:e,detail:t,onClick:r}){return x.jsxs("button",{type:"button",role:"menuitem",onClick:r,className:"flex w-full flex-col px-3 py-2 text-left active:bg-surface-2",children:[x.jsx("span",{className:"text-[12px] font-medium text-text",children:e}),x.jsx("span",{className:"text-[11px] text-faint",children:t})]})}function YL({since:e}){const[t,r]=D.useState(()=>Date.now());return D.useEffect(()=>{if(!e)return;r(Date.now());const i=setInterval(()=>r(Date.now()),1e3);return()=>clearInterval(i)},[e]),x.jsxs("div",{className:"fade-in flex items-center justify-start gap-2",children:[x.jsxs("div",{className:"flex items-center gap-1 px-0.5 py-3",children:[x.jsx("span",{className:"typing-dot"}),x.jsx("span",{className:"typing-dot"}),x.jsx("span",{className:"typing-dot"})]}),e?x.jsx("span",{className:"text-[11px] tabular-nums text-faint",children:Vf(t-e)}):null]})}function XL({task:e}){const t=Wn(e.since),[r,i]=D.useState(()=>Date.now());return D.useEffect(()=>{i(Date.now());const l=setInterval(()=>i(Date.now()),1e3);return()=>clearInterval(l)},[]),x.jsxs("div",{className:"fade-in flex min-w-0 items-center gap-2 px-0.5 py-1.5 text-[12.5px] text-muted",children:[x.jsx(sf,{size:13,className:"shrink-0 text-faint"}),x.jsx("span",{className:"shrink-0 text-faint",children:"Waiting for task"}),x.jsx("span",{className:"min-w-0 flex-1 truncate",children:e.description}),Number.isNaN(t)?null:x.jsx("span",{className:"shrink-0 text-[11px] tabular-nums text-faint",children:Vf(r-t)})]})}const WL=D.memo(function({e:t}){const[r,i]=D.useState(!1);if(t.error&&!t.tool)return x.jsx("div",{className:"overflow-hidden rounded-xl border border-del/30 bg-del/5 px-3 py-2",children:x.jsx(td,{text:t.text,className:"line-clamp-4 text-del/80"})});const l=z5(t.detail),o=t.images??[];return!t.detail&&!t.output&&!o.length?x.jsxs("div",{className:"flex min-w-0 items-baseline gap-2 overflow-hidden whitespace-nowrap rounded-xl border border-border-soft bg-surface/60 px-3 py-1.5",children:[x.jsx("span",{className:"shrink-0 font-mono text-[11px] text-faint",children:"·"}),x.jsx("span",{className:"max-w-full truncate text-[12.5px] text-muted",children:t.text})]}):x.jsxs("details",{open:r,onToggle:u=>i(u.currentTarget.open),className:he("group/tool min-w-0 overflow-hidden rounded-xl border",t.error?"border-del/30 bg-del/5":"border-border-soft bg-surface/60"),children:[x.jsxs("summary",{className:"flex cursor-pointer select-none list-none items-baseline gap-2 overflow-hidden whitespace-nowrap px-3 py-1.5 [&::-webkit-details-marker]:hidden",children:[x.jsx("span",{className:"shrink-0 font-mono text-[11px] text-faint transition-transform group-open/tool:rotate-90",children:"▸"}),x.jsx("span",{className:"max-w-full truncate text-[12.5px] text-muted",children:t.text}),t.detail?l?x.jsx(Pd,{href:l,title:`Open ${t.detail}`,onClick:u=>u.stopPropagation(),className:"min-w-0 flex-1 truncate font-mono text-[11px] text-accent underline underline-offset-2 group-open/tool:invisible",children:t.detail}):x.jsx("span",{className:"min-w-0 flex-1 truncate font-mono text-[11px] text-faint group-open/tool:invisible",children:t.detail}):null,t.error?x.jsx("span",{className:"ml-auto shrink-0 text-[11px] text-del",children:"failed"}):null]}),x.jsxs("div",{className:"flex min-w-0 flex-col gap-2 border-t border-border-soft px-3 py-2",children:[t.detail?l?x.jsx(Pd,{href:l,title:`Open ${t.detail}`,className:"block whitespace-pre-wrap font-mono text-[11.5px] leading-relaxed text-accent underline underline-offset-2 [overflow-wrap:anywhere]",children:t.detail}):x.jsx(td,{text:t.detail,className:"text-muted",language:dz(t.tool)}):null,t.output?x.jsxs("div",{className:he("min-w-0",t.detail&&"border-t border-border-soft pt-2"),children:[x.jsx($d,{children:t.error?"error":t.diff?"changes":"output"}),t.diff?x.jsx(G5,{patch:t.output,fileName:t.detail}):x.jsx(td,{text:t.output,className:t.error?"text-del/80":"text-muted",language:t.error?null:fz(t.tool,t.detail)})]}):null,r&&o.length?x.jsxs("div",{className:he("flex min-w-0 flex-col gap-2",(t.detail||t.output)&&"border-t border-border-soft pt-2"),children:[x.jsx($d,{children:eP(o.length,"image")}),o.map(u=>x.jsx(JL,{reference:u},u))]}):null]})]})}),ZL="whitespace-pre-wrap font-mono text-[11.5px] leading-relaxed [overflow-wrap:anywhere]";function td({text:e,className:t,language:r}){return x.jsx("pre",{className:he(ZL,t),children:r?x.jsx(A5,{text:e,language:r}):e})}function JL({reference:e}){const[t,r]=D.useState(null),[i,l]=D.useState(!1);return D.useEffect(()=>{let o=!1;return De.toolImage(e).then(u=>!o&&r(u)).catch(()=>!o&&l(!0)),()=>{o=!0}},[e]),i?x.jsx("span",{className:"text-[11px] text-faint",children:"Image unavailable."}):t?x.jsx("img",{src:t,alt:"Tool output",className:"max-w-full rounded-lg border border-border-soft"}):x.jsx(dr,{label:"Loading image…"})}const eP=(e,t)=>`${e} ${t}${e===1?"":"s"}`;function Ud({children:e,className:t}){return x.jsx("div",{className:he("min-w-0 rounded-2xl px-3.5 py-2.5 text-[14px] leading-relaxed [overflow-wrap:anywhere]",t),children:e})}function $d({children:e}){return x.jsx("div",{className:"mb-1 text-[10px] font-semibold uppercase tracking-wide text-faint",children:e})}function tP({workspace:e}){const[t,r]=z8(),i=t.get("session"),l=t.get("subagent"),{data:o,isLoading:u}=Ng(e.id,!1),d=o?.sessions??[],f=(i&&d.some(y=>y.id===i)?i:null)??d[0]?.id??null,h=d.find(y=>y.id===f),m=y=>{f&&r(y?{session:f,subagent:y}:{session:f},{replace:!0})},p=[e.repo_name,e.branch].filter(Boolean).join(" · ");return x.jsxs("div",{className:"flex h-full min-w-0 flex-col overflow-hidden",children:[x.jsx(Id,{title:Vr(e),subtitle:p,menu:!0,right:x.jsxs("span",{className:"flex shrink-0 items-center gap-1 rounded-md bg-surface-2 px-2 py-1 text-[10px] font-semibold uppercase tracking-wide text-faint",children:[x.jsx(rf,{size:12}),"Archived"]})}),d.length>1?x.jsx("nav",{className:"flex shrink-0 items-center gap-1 overflow-x-auto border-b border-border-soft bg-bg px-3 py-2",children:d.map(y=>x.jsx("button",{type:"button",onClick:()=>r({session:y.id},{replace:!0}),className:he("pill shrink-0",y.id===f&&!l&&"pill-active"),children:x.jsx("span",{className:"whitespace-nowrap",children:y.title||"Untitled"})},y.id))}):null,!u&&!f?x.jsx(qt,{children:"This workspace was archived with no chat in it."}):x.jsx(V5,{sessionId:f,workspaceId:e.id,turnStartedAt:h?.turn_started_at,agentType:h?.agent_type,model:h?.model,selectedSubagentId:l,onSelectSubagent:m,poll:!1}),x.jsx("div",{className:"pb-safe shrink-0 border-t border-border-soft px-4 py-3 text-center text-xs text-faint",children:l?x.jsxs("button",{type:"button",onClick:()=>m(null),className:"mx-auto flex items-center gap-2 rounded-lg px-3 py-1.5 font-medium text-accent transition active:bg-surface-2",children:[x.jsx(P8,{size:14}),"Back to parent transcript"]}):"Read-only — unarchive it in Conductor to reply."})]})}const K5=[{key:"initial",label:"Initial context",barClass:"bg-context-initial",ringClass:"stroke-context-initial"},{key:"chat",label:"Chat",barClass:"bg-context-chat",ringClass:"stroke-context-chat"},{key:"thinking",label:"Thinking",barClass:"bg-working",ringClass:"stroke-working"},{key:"tools",label:"Tool calls",barClass:"bg-context-tools",ringClass:"stroke-context-tools"}];function nP(e,t){if(!t||t.totalTokens<=0)return[];const r=Math.min(100,Math.max(0,e));let i=0;return K5.flatMap(l=>{const o=Math.max(0,t.categories[l.key]),u=Math.min(100-i,o/t.totalTokens*r);if(u<=0)return[];const d={key:l.key,label:l.label,ringClass:l.ringClass,length:u,offset:i};return i+=u,[d]})}const rP=()=>typeof window<"u"&&window.matchMedia("(pointer: coarse)").matches;function Y5(e,t=rP()){return e.key!=="Enter"||e.nativeEvent.isComposing||e.shiftKey?!1:e.metaKey||e.ctrlKey?!0:!t}const Rr=6e4,aP=e=>/(?:^|[:/])(claude|fable|haiku|opus|sonnet)|^(claude|fable|haiku|opus|sonnet)/.test(e),P2=e=>/(?:^|[:/])(openai|gpt|o[1-9])|^(openai|gpt|o[1-9]|\d)/.test(e);function iP(e){const t=e.agent_type?.trim().toLowerCase()??"",r=e.model?.trim().toLowerCase()??"";return(t==="claude"||t==="anthropic")&&e.prompt_cache_ttl_ms&&e.prompt_cache_ttl_ms>0?ya(e.prompt_cache_ttl_ms,!0):t==="claude"||t==="anthropic"?ya(60*Rr,!1):t==="codex"||t==="openai"?ya(30*Rr,!1):t==="cursor"?aP(r)?ya(5*Rr,!1):(P2(r),ya(30*Rr,!1)):(t==="acp"||t==="opencode")&&P2(r)?ya(30*Rr,!1):ya(5*Rr,!1)}function sP(e,t=Date.now()){if(!e.last_user_message_at)return null;const r=Wn(e.updated_at);if(!Number.isFinite(r))return null;const i=iP(e);return t-r>=i.ttlMs?i:null}function ya(e,t){return{ttlMs:e,ttlLabel:e>=60*Rr?`${e/(60*Rr)}h`:`${e/Rr}m`,observed:t}}function X5({value:e,models:t,onSelect:r,defaultModel:i,onSetDefault:l,settingDefault:o,open:u,onOpenChange:d,isFetching:f=!1,isError:h=!1,empty:m="No models are cached yet. Open a model picker in a chat first.",placement:p="above",className:y,beforeOptions:b,renderTrigger:C}){const[k,v]=D.useState(!1),A=u??k,F=_=>{const S=typeof _=="function"?_(A):_;u===void 0&&v(S),d?.(S)},N=yw(t);return x.jsxs("div",{className:"relative",children:[C?C({picking:A,toggle:()=>F(_=>!_)}):x.jsxs("button",{type:"button",onClick:()=>F(_=>!_),"aria-haspopup":"menu","aria-expanded":A,className:he("ctl flex max-w-40 items-center gap-1",e&&"ctl-staged",y),children:[x.jsx("span",{className:"truncate",children:e?Ed(e):"Model"}),x.jsx(ka,{size:13,className:"shrink-0"})]}),A?x.jsxs(x.Fragment,{children:[x.jsx("button",{type:"button","aria-label":"Close model picker",onClick:()=>F(!1),className:"fixed inset-0 z-30 cursor-default"}),x.jsxs("div",{className:he("absolute left-0 z-40 max-h-64 w-64 overflow-y-auto rounded-xl border border-border bg-surface-2 py-1 shadow-xl shadow-black/40",p==="below"?"top-full mt-2":"bottom-full mb-2"),children:[b,f?x.jsx(so,{size:10,className:"mx-3 my-1.5 animate-spin text-faint"}):null,N.length?N.map(_=>x.jsxs("fieldset",{className:"m-0 min-w-0 border-0 p-0",children:[x.jsx("legend",{className:"px-3 pb-0.5 pt-1.5 text-[11px] font-medium text-faint",children:_.label}),_.models.map(S=>{const w=i===S;return x.jsxs("div",{className:"flex items-stretch active:bg-surface",children:[x.jsxs("button",{type:"button",onClick:()=>{F(!1),r(S)},className:"flex min-w-0 flex-1 items-center gap-2 py-2 pl-3 pr-1 text-left text-sm",children:[x.jsx("span",{className:"min-w-0 flex-1 truncate",children:Ed(S)}),x.jsx(Ca,{size:13,className:he("shrink-0 text-accent",e!==S&&"invisible")})]}),l?x.jsx("button",{type:"button",disabled:w||o!==void 0,onClick:()=>{F(!1),l(S)},"aria-label":w?`${S} is the default model`:`Set ${S} as default and select`,"aria-pressed":w,className:he("flex w-9 shrink-0 items-center justify-center text-faint disabled:opacity-60",w&&"text-accent"),children:o===S?x.jsx(_n,{size:14,className:"animate-spin"}):x.jsx(gd,{size:14,fill:w?"currentColor":"none"})}):w?x.jsx(gd,{size:14,fill:"currentColor","aria-label":`${S} is the default model`,className:"mx-3 self-center text-accent"}):null]},S)})]},_.label)):x.jsx("div",{className:"px-3 py-2 text-sm text-muted",children:f?"Reading Conductor’s model list…":m}),h?x.jsx("div",{className:"px-3 py-1.5 text-[11px] text-del",children:t.length?"Couldn’t refresh. Showing saved models.":"Couldn’t read the model list."}):null]})]}):null]})}function W5({model:e,providerModel:t,agentType:r,models:i,modelPickerOpen:l,onModelPickerOpenChange:o,modelsFetching:u=!1,modelsError:d=!1,defaultModel:f,onSetDefaultModel:h,settingDefaultModel:m,fast:p,effort:y,plan:b,planAvailable:C,showEmptyEffort:k=!1,modelStaged:v=!1,fastStaged:A=!1,effortStaged:F=!1,planStaged:N=!1,onModelChange:_,onFastChange:S,onEffortChange:w,onPlanChange:O,disabled:z=!1,freezeAgent:P=!1,beforeModel:T,status:$}){const G=C??Cf(r,t),ae=vf(r,t),ee=kf(r,t);return x.jsxs("div",{className:"min-w-0 flex-1",children:[x.jsxs("div",{className:"flex min-w-0 items-center gap-0.5",children:[T,x.jsx("div",{className:"min-w-0",children:x.jsx(X5,{value:e,models:i,open:l,onOpenChange:o,isFetching:u,isError:d,defaultModel:f,onSetDefault:h,settingDefault:m,onSelect:_,renderTrigger:({picking:K,toggle:I})=>x.jsxs("button",{type:"button",disabled:z||P,onClick:I,"aria-label":`Change model, currently ${e}`,"aria-haspopup":"menu","aria-expanded":K,className:he("flex h-8 max-w-full min-w-0 items-center gap-1 rounded-md px-1 text-[13px] font-medium text-muted transition active:bg-surface-2 active:text-text disabled:pointer-events-none disabled:opacity-40",v&&"text-accent"),children:[x.jsx(js,{agentType:r,model:t,className:"size-[15px]"}),x.jsx("span",{className:"truncate",children:Ed(e)})]})})}),ee?x.jsx("button",{type:"button",disabled:z||P,onClick:S,"aria-label":`Fast mode ${p===void 0?"default":p?"on":"off"}`,"aria-pressed":p===!0,className:he("flex size-8 shrink-0 items-center justify-center rounded-md text-muted transition active:bg-surface-2 active:text-text disabled:pointer-events-none disabled:opacity-40",p&&"text-text",A&&"text-accent"),children:x.jsx(uf,{size:17})}):null,ae&&(y||k)?x.jsxs("button",{type:"button",disabled:z||P,onClick:w,"aria-label":`Reasoning effort: ${y?Wl[y]:"default"}`,className:he("flex h-8 shrink-0 items-center gap-1 rounded-md px-1 text-[13px] font-medium text-muted transition active:bg-surface-2 active:text-text disabled:pointer-events-none disabled:opacity-40",F&&"text-accent"),children:[x.jsx(Jg,{effort:y??""}),x.jsx("span",{className:"max-[340px]:hidden",children:y?Wl[y]:"Effort"})]}):null,G?x.jsx("button",{type:"button",disabled:z,onClick:O,"aria-label":`Plan mode ${b===void 0?"default":b?"on":"off"}`,"aria-pressed":b===!0,className:he("flex size-8 shrink-0 items-center justify-center rounded-md text-muted transition active:bg-surface-2 active:text-text disabled:pointer-events-none disabled:opacity-40",b&&"text-text",N&&"text-accent"),children:x.jsx(X8,{size:17})}):null]}),$?x.jsx("div",{className:"px-2 pt-0.5 text-[11px] text-faint",children:$}):null]})}function Xf({className:e}){return x.jsx("span",{className:he("inline-flex h-4 shrink-0 items-center rounded bg-accent/10 px-1.5 font-mono text-[9px] font-semibold uppercase tracking-wide text-accent",e),children:"Beta"})}function Z5({active:e,onChange:t}){return x.jsxs("button",{type:"button",onClick:()=>t(!e),title:"Run this task through your configured delegated roles","aria-label":`Workflow mode ${e?"on":"off"}`,"aria-pressed":e,className:he("flex h-8 shrink-0 items-center gap-1 rounded-md px-1.5 text-[13px] font-medium text-muted transition active:bg-surface-2 active:text-text",e&&"bg-accent/10 text-accent"),children:[x.jsx(lo,{size:15}),x.jsx("span",{children:"Workflow"}),x.jsx(Xf,{className:"-mr-0.5"})]})}const lP=600*1e3,oP={};function U0(e,t){return e===t?void 0:e}function cP({session:e,workspaceId:t,workflow:r,frozenWorkflow:i}){const[l,o]=D.useState(!1),[u,d]=D.useState(),[f,h]=D.useState(),m=ve(V=>V.agentDrafts[e.id])??oP,p=ve(V=>V.stageAgent),y=On(),b=ve(V=>V.pending.some(R=>R.sessionId===e.id&&R.status==="sending")),C=xc(),k=C.data?.groups.find(V=>V.agentType===(e.agent_type??"unknown")),v=!!k?.defaultModel&&Date.now()-k.updatedAt<lP,A=i?.role??(r?.active?r.role:void 0),F=!!A,N=i?.role.agentType??(A?_s(A.model):void 0),_=UF(e,t,l&&!F&&!v),S=_.data?.models??k?.models??[],w=_.data?.defaultModel??C.data?.defaultModel??k?.defaultModel,O=V=>p(e.id,V),z=e.claude_effort_level??void 0,P=e.permission_mode==="plan",T=!!e.fast_mode,$=m.effort??z,G=m.plan??P,ae=m.fast??T,ee=Object.keys(m).length>0,K=m.model??(sg(e.model,S)||"Model"),I=m.model??e.model,Y=Cf(e.agent_type,I),ie=vf(e.agent_type,I),xe=kf(e.agent_type,I),j=A?.model??"Planning role";D.useEffect(()=>{F&&o(!1)},[F]),D.useEffect(()=>{F||!Y&&m.plan!==void 0&&p(e.id,{plan:void 0})},[F,Y,e.id,m.plan,p]),D.useEffect(()=>{F||(!ie&&m.effort!==void 0&&p(e.id,{effort:void 0}),!xe&&m.fast!==void 0&&p(e.id,{fast:void 0}))},[F,ie,xe,e.id,m.effort,m.fast,p]),D.useEffect(()=>{i&&(m.model!==void 0&&p(e.id,{model:void 0}),m.effort!==void 0&&p(e.id,{effort:void 0}),m.fast!==void 0&&p(e.id,{fast:void 0}))},[i,e.id,m.model,m.effort,m.fast,p]);const L=async V=>{if(!u){d(V),h(void 0);try{const R=await De.setDefaultModel(e.id,V,t);if(!R.ok)throw new Error(R.error??"could not set the default model");p(e.id,{model:void 0}),await Promise.all([y.invalidateQueries({queryKey:["model-catalog"]}),y.invalidateQueries({queryKey:["sessions",t]}),y.invalidateQueries({queryKey:["state"]})])}catch(R){h(R instanceof Error?R.message:"could not set the default model")}finally{d(void 0)}}};return x.jsx(W5,{model:F?j:K,providerModel:F?A?.model??null:I,agentType:F?N??null:e.agent_type,models:S,modelPickerOpen:l,onModelPickerOpenChange:o,modelsFetching:_.isFetching||C.isFetching,modelsError:_.isError,defaultModel:w,onSetDefaultModel:V=>{L(V)},settingDefaultModel:u,fast:F?A?.fast:ae,effort:F?A?.effort:$,plan:G,planAvailable:Y,showEmptyEffort:F,modelStaged:!F&&m.model!==void 0,fastStaged:!F&&m.fast!==void 0,effortStaged:!F&&m.effort!==void 0,planStaged:m.plan!==void 0,onModelChange:V=>O({model:U0(V,m.model)}),onFastChange:()=>O({fast:U0(!ae,T)}),onEffortChange:()=>O({effort:U0(Zg($),z)}),onPlanChange:()=>O({plan:U0(!G,P)}),freezeAgent:F,beforeModel:r?x.jsx(Z5,{active:r.active,onChange:V=>{o(!1),r.onChange(V)}}):void 0,status:i?`${i.name} role frozen by Workflow`:r?.active?r.problem?x.jsx("span",{className:"text-del",children:r.problem}):r.loading?"Loading Workflow roles…":"Planning root · one explorer is guaranteed after acceptance":f?x.jsxs("span",{className:"text-del",children:[f,Mi(f)?x.jsx(va,{className:"ml-1"}):null]}):u?"Setting default and selecting…":ee?b?"Applying…":"Applies when you send":void 0})}const J5=[];function e6({draftKey:e,ready:t,enabled:r,upload:i,accept:l,removeReady:o,discard:u}){const d=D.useRef(null),f=D.useRef(new Set),h=D.useRef(0),[m,p]=D.useState([]),[y,b]=D.useState(!1),C=m.filter(S=>S.draftKey===e),k=async S=>{if(!r)return;const w=e;for(const O of Array.from(S)){const z=crypto.randomUUID();p(P=>[...P,{draftKey:w,id:z,name:O.name||"attachment",status:"uploading"}]);try{const P=await i(w,O);if(f.current.delete(z)){u?.(P);continue}l(w,P),p(T=>T.filter($=>$.id!==z))}catch(P){if(f.current.delete(z))continue;p(T=>T.map($=>$.id===z?{...$,status:"error",error:P instanceof Error?P.message:"Upload failed"}:$))}}},v=S=>{S?.length&&k(S)},A=S=>Array.from(S.dataTransfer.types).includes("Files"),F={onDragEnter:S=>{A(S)&&(S.preventDefault(),h.current+=1,b(!0))},onDragLeave:S=>{A(S)&&(h.current-=1,h.current<=0&&(h.current=0,b(!1)))},onDragOver:S=>{A(S)&&(S.preventDefault(),S.dataTransfer.dropEffect="copy")},onDrop:S=>{A(S)&&(S.preventDefault(),h.current=0,b(!1),v(S.dataTransfer.files))}},N=S=>{const w=S.clipboardData.files;w.length&&(S.preventDefault(),v(w))},_=D.useCallback(()=>{for(const S of m)S.draftKey===e&&f.current.add(S.id)},[e,m]);return{items:[...t.map(({path:S,name:w})=>({id:S,name:w,status:"ready"})),...C.map(({draftKey:S,...w})=>w)],uploading:C.some(S=>S.status==="uploading"),hasError:C.some(S=>S.status==="error"),dragging:y,inputRef:d,dropTargetProps:F,onPaste:N,chooseFiles:v,remove:S=>{if(t.some(w=>w.path===S)){o(e,S);return}f.current.add(S),p(w=>w.filter(O=>O.id!==S))},clearPending:()=>p(S=>S.filter(w=>w.draftKey!==e)),cancelPending:_}}function t6({uploads:e}){return x.jsxs(x.Fragment,{children:[x.jsx("input",{ref:e.inputRef,type:"file",multiple:!0,className:"hidden",onChange:t=>{e.chooseFiles(t.target.files),t.target.value=""}}),e.items.length?x.jsx("div",{className:"flex flex-wrap gap-1 px-2 pb-1",children:e.items.map(t=>x.jsxs("div",{title:t.status==="error"?t.error:t.name,className:"flex max-w-full items-center gap-1 rounded-lg bg-surface-2 py-1 pl-2 pr-1 text-xs text-muted",children:[t.status==="uploading"?x.jsx(_n,{size:12,className:"shrink-0 animate-spin"}):null,x.jsx("span",{className:"truncate",children:t.status==="error"?`${t.name}: ${t.error}`:t.name}),x.jsx("button",{type:"button",onClick:()=>e.remove(t.id),"aria-label":`Remove ${t.name}`,className:"flex size-5 shrink-0 items-center justify-center rounded active:bg-surface",children:x.jsx(En,{size:13})})]},t.id))}):null,e.dragging?x.jsx("div",{className:"pointer-events-none absolute inset-1 z-10 flex items-center justify-center rounded-xl border border-dashed border-accent bg-accent-soft/90 text-sm font-medium text-accent",children:"Drop files to attach"}):null]})}function n6({uploads:e,disabled:t}){return x.jsx("button",{type:"button",onClick:()=>e.inputRef.current?.click(),disabled:t,"aria-label":"Attach files",className:"flex size-8 shrink-0 items-center justify-center rounded-md text-muted transition active:bg-surface-2 active:text-text disabled:text-faint",children:x.jsx(lf,{size:17})})}function uP({session:e,sessionId:t,workspaceId:r,working:i,actuator:l,onFork:o,onContext:u,workflowStarted:d=!1,workflow:f,workflowRole:h,focusDraft:m=!1,onDraftFocused:p}){const y=t??r,b=ve(ge=>ge.drafts[y]??""),C=ve(ge=>ge.draftAttachments[y]??J5),k=ve(ge=>ge.setDraft),v=ve(ge=>ge.addDraftAttachment),A=ve(ge=>ge.removeDraftAttachment),F=ve(ge=>ge.clearDraftContent),N=ve(ge=>ge.moveDraft),_=ve(ge=>ge.setFocusedDraft),S=ve(ge=>ge.online),w=ve(ge=>ge.clearWorking),O=Rg(),z=On(),[P,T]=D.useState(!1),[$,G]=D.useState(null),[ae,ee]=D.useState(!1),[K,I]=D.useState(null),[Y,ie]=D.useState({sessionId:null,active:!1}),xe=Y.sessionId===t&&Y.active,j=ge=>ie({sessionId:t,active:ge}),L=D.useRef(null),V=e6({draftKey:y,ready:C,enabled:!!t&&S,upload:async(ge,Ne)=>(await De.uploadAttachment(ge,r,Ne)).attachment,accept:v,removeReady:A}),R=V.uploading,se=[...C.map(ge=>ge.token),b.trim()].filter(Boolean).join(`
|
|
49
|
-
`),be=ve(ge=>ge.pending.some(Ne=>Ne.sessionId===t&&!!Ne.workflow)),W=!!e&&!e.last_user_message_at&&!i&&!d&&!f&&!be,me=xe||W,{roles:Ue,planningRole:Be,problem:tt,ready:ct}=Tg(me),we=e?.permission_mode==="plan"?"Workflow needs ordinary chat mode. Turn Plan off first.":tt,Nt=ct&&!we;D.useEffect(()=>{t&&N(r,t)},[r,t,N]),D.useEffect(()=>(document.activeElement===L.current&&_(y),()=>{ve.getState().focusedDraft===y&&_(null)}),[y,_]);const Fe=()=>{const ge=L.current;ge&&(ge.style.height="auto",ge.style.height=`${Math.min(ge.scrollHeight,160)}px`)};D.useEffect(Fe,[b]),D.useEffect(()=>{if(!m)return;const ge=L.current;ge&&(ge.focus({preventScroll:!0}),ge.setSelectionRange(ge.value.length,ge.value.length),p?.())},[m,p]);const ne=(ge=!1)=>{if(!se||R||ae||!t||!S||be||xe&&!Nt)return;const Ne=xe;O({sessionId:t,workspaceId:r,text:se,queue:Ne?!1:ge,workflow:Ne}).then(kn=>{kn&&Ne&&(ie(le=>le.sessionId===t?{...le,active:!1}:le),V.clearPending())}),Ne||(F(y),V.clearPending())},Oe=async()=>{if(!(!(o&&se)||R||ae||!S)){ee(!0),I(null);try{await o(se),F(y),V.clearPending()}catch(ge){I(ge instanceof Error?ge.message:"Could not fork this chat")}finally{ee(!1)}}},at=async()=>{if(!(!t||P||!S)){T(!0),G(null);try{const ge=await De.stop(t,r);ge.ok?(w(t),await z.invalidateQueries({queryKey:["sessions",r]}),z.invalidateQueries({queryKey:["state"]})):G(ge.error||"Stop failed")}catch(ge){G(ge instanceof Error?ge.message:"Stop failed")}finally{T(!1)}}},Ct=!t,Et=l?.precise&&l.available,hn=i&&!!t,nt=(!!b.trim()||C.length>0)&&!R&&!be&&(!xe||Nt),yn=!i&&nt&&e&&o?sP(e):null;return x.jsxs("div",{className:"pb-safe border-t border-border-soft bg-bg px-3 pt-2",children:[S?!Et&&x.jsxs("div",{className:"mb-1.5 flex items-center gap-1.5 px-1 text-[11px] text-faint",children:[x.jsx(Rk,{size:12}),l?.caveat||"Sends to the focused session"]}):x.jsxs("div",{className:"mb-2 flex items-center gap-1.5 rounded-lg bg-del/10 px-3 py-1.5 text-xs text-del",children:[x.jsx(cf,{size:12}),"Offline — drafts are saved, sending resumes when the relay is back"]}),$?x.jsxs("div",{className:"mb-2 rounded-lg border border-del/40 bg-del/10 px-3 py-1.5 text-xs text-del",children:[x.jsx("button",{type:"button",onClick:()=>G(null),className:"block w-full text-left",children:$}),Mi($)?x.jsx(va,{className:"mt-1 inline-block"}):null]}):null,yn?x.jsxs("div",{className:"mb-2 flex items-center gap-2 rounded-xl border border-cold-cache/20 bg-cold-cache/8 px-2.5 py-2 text-cold-cache",children:[x.jsx(eD,{size:14,className:"shrink-0"}),x.jsxs("div",{className:"min-w-0 flex-1",children:[x.jsx("div",{className:"text-xs font-medium",children:"Prompt cache may be cold"}),x.jsxs("div",{className:"text-[11px] text-muted",children:["Idle past its ",yn.ttlLabel," window"]}),K?x.jsxs("div",{className:"mt-0.5 text-[11px] text-del",role:"alert",children:[K,Mi(K)?x.jsx(va,{className:"ml-1"}):null]}):null]}),x.jsxs("button",{type:"button",onClick:()=>{Oe()},disabled:ae||!S,title:"Start a fresh chat with this transcript attached and keep the draft",className:"flex h-8 shrink-0 items-center gap-1.5 rounded-lg bg-cold-cache/12 px-2.5 text-xs font-semibold transition active:scale-[0.97] active:bg-cold-cache/20 disabled:opacity-50",children:[ae?x.jsx(_n,{size:13,className:"animate-spin"}):x.jsx(Q8,{size:13}),"Fork draft"]})]}):null,x.jsxs("fieldset",{"aria-label":"Message composer",...V.dropTargetProps,className:`m-0 min-w-0 rounded-2xl border border-border bg-surface p-2 has-[textarea:focus]:border-accent/60 ${V.dragging?"border-accent bg-accent-soft":""}`,children:[x.jsx(t6,{uploads:V}),x.jsx("textarea",{ref:L,rows:1,value:b,disabled:Ct||ae,placeholder:Ct?"No active session":xe?"What should the workflow accomplish?":"Send a prompt…",className:"block max-h-40 w-full resize-none bg-transparent px-2 py-1 text-base outline-none placeholder:text-faint disabled:opacity-50",onChange:ge=>k(y,ge.target.value),onFocus:()=>_(y),onBlur:()=>{ve.getState().focusedDraft===y&&_(null),kd()},onPaste:V.onPaste,onKeyDown:ge=>{Y5(ge)&&(ge.preventDefault(),ne(ge.metaKey||ge.ctrlKey))}}),x.jsxs("div",{className:"mt-1 flex items-start gap-1",children:[e?x.jsx(cP,{session:e,workspaceId:r,frozenWorkflow:f&&h?{name:h,role:f.roles[h]}:void 0,workflow:me?{active:xe,role:Be,loading:Ue.isLoading,problem:we,onChange:j}:void 0}):x.jsx("span",{className:"flex-1"}),e&&u?x.jsx(xP,{session:e,onOpen:u}):null,x.jsx(n6,{uploads:V,disabled:Ct||ae||!S}),hn?x.jsx("button",{type:"button",onClick:at,disabled:P||!S,"aria-label":"Stop the agent",className:"flex size-8 shrink-0 items-center justify-center rounded-lg border border-border text-text transition active:bg-surface-2 disabled:text-faint",children:P?x.jsx("span",{className:"size-4 animate-spin rounded-full border-2 border-border border-t-text"}):x.jsx(ng,{size:14,fill:"currentColor"})}):null,hn&&!nt?null:x.jsx("button",{type:"button",onClick:()=>ne(),disabled:Ct||!nt||ae||!S,"aria-label":"Send",className:"flex size-8 shrink-0 items-center justify-center rounded-lg bg-accent text-on-solid transition active:scale-95 disabled:bg-surface-2 disabled:text-faint",children:x.jsx(vC,{size:18})})]})]})]})}function xP({session:e,onOpen:t}){const r=e.context_used_percent,i=Mg(e.id,typeof r=="number"&&r>0,e.updated_at);if(typeof r!="number"||r<=0)return null;const l=Math.min(100,Math.max(0,r)),o=Math.round(r),u=nP(l,i.data);return x.jsx("button",{type:"button",onClick:t,"aria-label":`Context for ${e.title||"Untitled"}: ${o}% used`,"aria-haspopup":"dialog",title:`Context: ${o}% used`,className:"flex size-8 shrink-0 items-center justify-center rounded-md transition active:bg-surface-2",children:x.jsxs("svg",{viewBox:"0 0 18 18","aria-hidden":"true",className:"size-[18px] -rotate-90",children:[x.jsx("circle",{cx:"9",cy:"9",r:"6.5",fill:"none",strokeWidth:"3",className:"stroke-border"}),u.length?u.map(d=>x.jsx("circle",{cx:"9",cy:"9",r:"6.5",fill:"none",strokeWidth:"3",pathLength:"100",strokeDasharray:`${d.length} ${100-d.length}`,strokeDashoffset:-d.offset,"data-context-segment":d.key,className:d.ringClass},d.key)):x.jsx("circle",{cx:"9",cy:"9",r:"6.5",fill:"none",strokeWidth:"3",pathLength:"100",strokeDasharray:`${l} ${100-l}`,strokeLinecap:"round",className:r>=80?"stroke-working":"stroke-accent"})]})})}function nd(e,t,r){let i=e;const l=Math.min(i,t);i-=l;const o=Math.min(i,Math.max(0,r-t));return i-=o,[{key:"chat",tokens:l,color:"bg-context-chat"},{key:"thinking",tokens:o,color:"bg-working"},{key:"tools",tokens:i,color:"bg-context-tools"}]}function dP({label:e,layers:t,scale:r}){return x.jsx("div",{role:"img","aria-label":`${e}: ${K0(t.reduce((i,l)=>i+l.tokens,0))} estimated tokens`,className:"flex h-1.5 overflow-hidden rounded-full bg-surface-2",children:t.map(i=>i.tokens>0?x.jsx("span",{className:i.color,style:{width:`${i.tokens/r*100}%`}},i.key):null)})}function fP({data:e}){const t=typeof e.usedPercent=="number"?`${Math.round(e.usedPercent)}% used`:null,r=K5.map(o=>({...o,color:o.barClass,tokens:e.categories[o.key]})),i=Math.max(e.forkTokens.concise,e.forkTokens.reasoning,e.forkTokens.full,1),l=[{label:"Concise",detail:"Messages only",tokens:e.forkTokens.concise,layers:nd(e.forkTokens.concise,e.forkTokens.concise,e.forkTokens.reasoning)},{label:"With reasoning",detail:"Messages and reasoning",tokens:e.forkTokens.reasoning,layers:nd(e.forkTokens.reasoning,e.forkTokens.concise,e.forkTokens.reasoning)},{label:"Full transcript",detail:"Messages, reasoning, and tools",tokens:e.forkTokens.full,layers:nd(e.forkTokens.full,e.forkTokens.concise,e.forkTokens.reasoning)}];return x.jsxs("div",{className:"space-y-5",children:[x.jsxs("section",{"aria-labelledby":"context-composition-heading",children:[x.jsxs("div",{className:"mb-3 flex items-baseline gap-2",children:[x.jsx("h3",{id:"context-composition-heading",className:"min-w-0 flex-1 text-sm font-semibold",children:"Inside this context"}),x.jsxs("span",{className:"text-sm font-semibold tabular-nums",children:[K0(e.totalTokens)," tokens"]}),t?x.jsx("span",{className:"text-xs tabular-nums text-muted",children:t}):null]}),x.jsx("div",{role:"img","aria-label":r.map(o=>`${o.label} ${D2(o.tokens,e.totalTokens)}`).join(", "),className:"flex h-2.5 overflow-hidden rounded-full bg-surface-2",children:r.map(o=>o.tokens>0&&e.totalTokens>0?x.jsx("span",{className:o.color,style:{width:`${o.tokens/e.totalTokens*100}%`}},o.key):null)}),x.jsx("div",{className:"mt-3 grid grid-cols-2 gap-x-5 gap-y-2.5",children:r.map(o=>{const u=D2(o.tokens,e.totalTokens);return x.jsxs("div",{className:"min-w-0 text-xs",children:[x.jsxs("div",{className:"flex items-center gap-2 text-muted",children:[x.jsx("span",{className:`size-2 shrink-0 rounded-full ${o.color}`}),x.jsx("span",{children:o.label})]}),x.jsxs("div",{className:"mt-0.5 pl-4 tabular-nums",children:[o.tokens?"≈":"",K0(o.tokens)," · ",u]})]},o.key)})}),x.jsxs("p",{className:"mt-3 text-[11px] leading-relaxed text-faint",children:["Categories are estimated from the last completed turn. Chat is user prompts and visible replies. Initial context is the remainder: system and developer prompts, project instructions, skills, tool definitions, attachments, ",e.compacted?"compacted summaries, ":"","and provider overhead."]})]}),x.jsxs("section",{"aria-labelledby":"fork-size-heading",className:"border-t border-border-soft pt-4",children:[x.jsx("h3",{id:"fork-size-heading",className:"mb-2 text-sm font-semibold",children:"Estimated fork payload"}),x.jsxs("div",{className:"divide-y divide-border-soft overflow-hidden rounded-xl border border-border-soft",children:[x.jsxs("div",{className:"flex items-center gap-3 px-3 py-2.5",children:[x.jsxs("span",{className:"min-w-0 flex-1",children:[x.jsx("span",{className:"block text-xs font-medium",children:"Last message only"}),x.jsx("span",{className:"block text-[11px] text-faint",children:"This response, without history"})]}),x.jsx("span",{className:"text-[11px] text-faint",children:"Depends on message"})]}),l.map(o=>x.jsxs("div",{className:"space-y-2 px-3 py-2.5",children:[x.jsxs("div",{className:"flex items-center gap-3",children:[x.jsxs("span",{className:"min-w-0 flex-1",children:[x.jsx("span",{className:"block text-xs font-medium",children:o.label}),x.jsx("span",{className:"block text-[11px] text-faint",children:o.detail})]}),x.jsxs("span",{className:"shrink-0 text-xs font-medium tabular-nums",children:["≈",K0(o.tokens)]})]}),x.jsx(dP,{label:o.label,layers:o.layers,scale:i})]},o.label))]}),e.forkTokens.reasoning===e.forkTokens.concise?x.jsx("p",{className:"mt-2 text-[11px] leading-relaxed text-muted",children:"No saved reasoning is available to copy, so Concise and With reasoning are the same size."}):null,x.jsxs("p",{className:"mt-2 text-[11px] leading-relaxed text-faint",children:["The bars reuse the context colors; the source's initial context is not copied. Fork sizes use the full saved transcript",e.compacted?", including history before compaction":"","."]})]})]})}function hP({sessionId:e,title:t,revision:r,onClose:i}){const l=Mg(e,!0,r);return Qr.createPortal(x.jsxs(x.Fragment,{children:[x.jsx("div",{className:"fixed inset-0 z-50 bg-black/60",onClick:i,"aria-hidden":!0}),x.jsxs("div",{role:"dialog","aria-modal":"true","aria-label":"Context breakdown",className:"fade-in pb-safe fixed inset-x-0 bottom-0 z-50 mx-auto flex max-h-[85dvh] max-w-md flex-col rounded-t-3xl border border-border-soft bg-surface shadow-xl md:inset-0 md:m-auto md:h-fit md:rounded-3xl",children:[x.jsxs("div",{className:"flex shrink-0 items-center gap-2 border-b border-border-soft px-4 py-3",children:[x.jsxs("div",{className:"min-w-0 flex-1",children:[x.jsx("h2",{className:"text-base font-semibold",children:"Context"}),x.jsx("p",{className:"truncate text-xs text-muted",children:t||"Untitled"})]}),x.jsx("button",{type:"button",onClick:i,"aria-label":"Close context breakdown",className:"flex size-8 shrink-0 items-center justify-center rounded-full text-muted active:bg-surface-2",children:x.jsx(En,{size:18})})]}),x.jsx("div",{className:"min-h-0 flex-1 overflow-y-auto overscroll-contain p-4",children:l.data?x.jsx(fP,{data:l.data}):l.isError?x.jsxs("div",{className:"flex flex-col items-center gap-3 py-8 text-center",children:[x.jsx("p",{className:"text-sm text-del",children:l.error instanceof Error?l.error.message:"Could not read this context."}),x.jsx("button",{type:"button",onClick:()=>{l.refetch()},className:"rounded-full border border-border px-3 py-1.5 text-xs font-medium active:bg-surface-2",children:"Try again"})]}):x.jsxs("div",{className:"flex items-center justify-center gap-2 py-10 text-sm text-muted",children:[x.jsx(_n,{size:16,className:"animate-spin"}),"Reading context…"]})})]})]}),document.body)}function pP(e){document.visibilityState==="visible"&&window.open(e,"_blank","noopener,noreferrer")}const rd="flex size-9 shrink-0 items-center justify-center rounded-full text-muted transition active:bg-surface-2 disabled:opacity-40";function mP({workspaceId:e}){const t=TF(e),r=On(),i=ve(_=>_.online),[l,o]=D.useState(null),[u,d]=D.useState(null),[f,h]=D.useState(!1),[m,p]=D.useState(!1),y=D.useRef(null),b=D.useRef(null),C=t.data,k=(C?.runConfigs?.length??0)>1,v=C?.forwards?.filter(_=>_.forwarded&&_.url)??(C?.forwarded&&C.url?[{name:C.port?`Port ${C.port}`:"Dev server",port:C.port??0,url:C.url}]:[]);D.useEffect(()=>{if(!f&&!m)return;const _=m?b:y,S=O=>{O.target instanceof Node&&_.current?.contains(O.target)||(h(!1),p(!1))},w=O=>{O.key==="Escape"&&(O.preventDefault(),h(!1),p(!1),_.current?.querySelector("button")?.focus())};return document.addEventListener("pointerdown",S),document.addEventListener("keydown",w),()=>{document.removeEventListener("pointerdown",S),document.removeEventListener("keydown",w)}},[f,m]);const A=async(_,S)=>{if(!l){o(_?"start":"stop"),d(null);try{const w=_?await De.startDevServer(e,S):await De.stopDevServer(e);r.setQueryData(["dev-server",e],w),w.ok?_&&w.url&&pP(w.url):d(w.error??`Could not ${_?"start":"stop"} the dev server`)}catch(w){d(w instanceof Error?w.message:`Could not ${_?"start":"stop"} the dev server`)}finally{o(null),r.invalidateQueries({queryKey:["dev-server",e]})}}},F=k?"Choose Run config":C?.running?"Forward dev server to tailnet":"Start and forward dev server",N=C&&!C.available;return x.jsxs(x.Fragment,{children:[v.length&&v[0]?.url?x.jsxs("div",{ref:y,className:"relative flex shrink-0 items-center",children:[x.jsx("a",{href:v[0].url,target:"_blank",rel:"noreferrer","aria-label":`Open ${v[0].name} on port ${v[0].port}`,title:v[0].url,className:rd,children:x.jsx(Av,{size:18})}),v.length>1?x.jsxs(x.Fragment,{children:[x.jsx("button",{type:"button",onClick:()=>h(_=>!_),"aria-label":"Choose forwarded dev server","aria-haspopup":"menu","aria-expanded":f,className:"flex h-9 w-6 items-center justify-center rounded-full text-muted active:bg-surface-2",children:x.jsx(ka,{size:14,className:f?"rotate-180":void 0})}),f?x.jsx("div",{role:"menu","aria-label":"Forwarded dev servers",className:"fade-in absolute right-0 top-full z-30 mt-1 max-h-[calc(100dvh-4rem)] min-w-52 overflow-y-auto rounded-xl border border-border bg-surface py-1 shadow-xl",children:v.map(_=>x.jsxs("a",{href:_.url??void 0,target:"_blank",rel:"noreferrer",onClick:()=>h(!1),role:"menuitem",className:"flex items-center gap-3 px-3 py-2.5 text-left text-sm active:bg-surface-2",children:[x.jsx("span",{className:"min-w-0 flex-1 truncate",children:_.name}),x.jsxs("span",{className:"font-mono text-xs text-faint",children:[":",_.port]})]},`${_.port}:${_.url}`))}):null]}):null]}):x.jsxs("div",{ref:b,className:"relative shrink-0",children:[x.jsx("button",{type:"button",onClick:()=>{k?p(_=>!_):A(!0)},disabled:!i||!!l||!!N||t.isLoading,"aria-label":F,"aria-haspopup":k?"menu":void 0,"aria-expanded":k?m:void 0,title:N?C.error:F,className:rd,children:l==="start"||t.isLoading?x.jsx(_n,{size:18,className:"animate-spin"}):C?.running?x.jsx(bv,{size:18}):x.jsx(md,{size:18,fill:"currentColor"})}),m&&k?x.jsx("div",{role:"menu","aria-label":"Run configs",className:"fade-in absolute right-0 top-full z-30 mt-1 max-h-[calc(100dvh-4rem)] min-w-44 overflow-y-auto rounded-xl border border-border bg-surface py-1 shadow-xl",children:C?.runConfigs.map(_=>x.jsxs("button",{type:"button",role:"menuitem",onClick:()=>{p(!1),A(!0,_.id)},className:"flex w-full items-center gap-3 px-3 py-2.5 text-left text-sm active:bg-surface-2",children:[x.jsx(md,{size:14,className:"shrink-0 text-muted"}),x.jsx("span",{className:"min-w-0 flex-1 truncate",children:_.name})]},_.id))}):null]}),C?.running||C?.forwarded?x.jsx("button",{type:"button",onClick:()=>{A(!1)},disabled:!i||!!l,"aria-label":"Stop dev server",className:rd,children:l==="stop"?x.jsx(_n,{size:18,className:"animate-spin"}):x.jsx(ng,{size:15,fill:"currentColor"})}):null,u?x.jsx("button",{type:"button",onClick:()=>d(null),className:"absolute right-2 top-full z-30 max-w-72 rounded-lg border border-del/40 bg-surface px-3 py-2 text-left text-xs text-del shadow-xl",children:u}):null]})}const I2=(e,t)=>e.name.localeCompare(t.name,void 0,{numeric:!0,sensitivity:"base"})||e.name.localeCompare(t.name),gP=(e,t)=>e.path.localeCompare(t.path,void 0,{numeric:!0,sensitivity:"base"})||e.path.localeCompare(t.path);function r6(e){const t={path:"",folders:new Map,files:[]};for(const i of e){const l=i.path.split("/"),o=l.pop()??i.path;let u=t;for(const d of l){const f=u.path?`${u.path}/${d}`:d;let h=u.folders.get(d);h||(h={name:d,path:f,fileCount:0,added:0,removed:0,folders:new Map,files:[]},u.folders.set(d,h)),h.fileCount+=1,h.added+=i.added,h.removed+=i.removed,u=h}u.files.push({kind:"file",name:o,path:i.path,file:i})}const r=i=>[...[...i.folders.values()].sort(I2).map(l=>({kind:"folder",name:l.name,path:l.path,fileCount:l.fileCount,added:l.added,removed:l.removed,children:r(l)})),...i.files.sort(I2)];return r(t)}function EP(e){const t=[],r=i=>{for(const l of i)l.kind==="folder"?r(l.children):t.push(l.file)};return r(r6(e)),t}function a6(e){return[...e].sort(gP)}function i6(e,t,r){if(e==="changed")return t;const i=new Map(t.map(l=>[l.path,l]));return[...r].sort().map(l=>i.get(l)??{path:l,added:0,removed:0})}function yP(e){if(!e)return[];const t=e.split(`
|
|
50
|
-
`),r=[];for(const[i,l]of t.entries())l.startsWith("diff --git ")&&r.push(i);return r.length?r.map((i,l)=>t.slice(i,r[l+1]??t.length).join(`
|
|
51
|
-
`)):[e]}function bP(e,t,r){const i=t.findIndex(l=>l.path===r);return i<0?null:yP(e)[i]??null}function DU(e,t){const r=e.split(`
|
|
52
|
-
`),i=r.findIndex(d=>d.startsWith("@@ "));if(i<0)return{patch:e,preamble:null};const l=r.slice(0,i).findIndex(d=>d.startsWith("diff --git ")||d.startsWith("--- "));if(l>=0){const d=r.slice(0,l).join(`
|
|
53
|
-
`).trim();return{patch:r.slice(l).join(`
|
|
54
|
-
`),preamble:d||null}}const o=r.slice(0,i).join(`
|
|
55
|
-
`).trim(),u=(t?.trim()||"change.txt").replace(/[\t\r\n]/g," ");return{patch:[`--- ${u}`,`+++ ${u}`,...r.slice(i)].join(`
|
|
56
|
-
`),preamble:o||null}}const Ie=(e,t,r,i)=>({name:e,glyph:t,color:`light-dark(${r}, ${i})`}),$0={file:Ie("file","","#bfc2c1","#d4d7d6"),typescript:Ie("typescript","","#498ba7","#519aba"),react:Ie("react","","#498ba7","#519aba"),javascript:Ie("javascript","","#b7b73b","#cbcb41"),json:Ie("json","","#b7b73b","#cbcb41"),html:Ie("html","","#498ba7","#519aba"),css:Ie("css","","#498ba7","#519aba"),sass:Ie("sass","","#dd4b78","#f55385"),vue:Ie("vue","","#7fae42","#8dc149"),svelte:Ie("svelte","","#b8383d","#cc3e44"),markdown:Ie("markdown","","#498ba7","#519aba"),info:Ie("info","","#498ba7","#519aba"),config:Ie("config","","#627379","#6d8086"),env:Ie("env","","#627379","#6d8086"),yaml:Ie("yaml","","#9068b0","#a074c4"),shell:Ie("shell","","#7fae42","#8dc149"),powershell:Ie("powershell","","#498ba7","#519aba"),docker:Ie("docker","","#498ba7","#519aba"),git:Ie("git","","#3b4b52","#41535b"),npm:Ie("npm","","#3b4b52","#41535b"),yarn:Ie("yarn","","#498ba7","#519aba"),pnpm:Ie("pnpm","","#3b4b52","#41535b"),bun:Ie("bun","","#bfc2c1","#d4d7d6"),vite:Ie("vite","","#b7b73b","#cbcb41"),lint:Ie("lint","","#9068b0","#a074c4"),format:Ie("format","","#627379","#6d8086"),tailwind:Ie("tailwind","","#498ba7","#519aba"),image:Ie("image","","#9068b0","#a074c4"),svg:Ie("svg","","#9068b0","#a074c4"),audio:Ie("audio","","#9068b0","#a074c4"),media:Ie("media","","#dd4b78","#f55385"),font:Ie("font","","#b8383d","#cc3e44"),database:Ie("database","","#dd4b78","#f55385"),prisma:Ie("prisma","","#498ba7","#519aba"),graphql:Ie("graphql","","#dd4b78","#f55385"),python:Ie("python","","#498ba7","#519aba"),ruby:Ie("ruby","","#b8383d","#cc3e44"),go:Ie("go","","#498ba7","#519aba"),rust:Ie("rust","","#627379","#6d8086"),java:Ie("java","","#b8383d","#cc3e44"),kotlin:Ie("kotlin","","#cc6d2e","#e37933"),swift:Ie("swift","","#cc6d2e","#e37933"),c:Ie("c","","#498ba7","#519aba"),cpp:Ie("cpp","","#498ba7","#519aba"),csharp:Ie("csharp","","#498ba7","#519aba"),php:Ie("php","","#9068b0","#a074c4"),lua:Ie("lua","","#498ba7","#519aba"),dart:Ie("dart","","#498ba7","#519aba"),elixir:Ie("elixir","","#9068b0","#a074c4"),wasm:Ie("wasm","","#9068b0","#a074c4"),proto:Ie("proto","","#627379","#6d8086"),xml:Ie("xml","","#cc6d2e","#e37933"),terraform:Ie("terraform","","#9068b0","#a074c4"),notebook:Ie("notebook","","#498ba7","#519aba"),text:Ie("text","","#bfc2c1","#d4d7d6"),csv:Ie("csv","","#7fae42","#8dc149"),pdf:Ie("pdf","","#b8383d","#cc3e44"),archive:Ie("archive","","#b8383d","#cc3e44"),lock:Ie("lock","","#7fae42","#8dc149"),license:Ie("license","","#b7b73b","#cbcb41"),build:Ie("build","","#cc6d2e","#e37933")},CP=[[/^(?:package|package-lock|npm-shrinkwrap)\.json$/,"npm"],[/^(?:pnpm-lock|pnpm-workspace)\.ya?ml$/,"pnpm"],[/^yarn\.lock$|^\.yarnrc(?:\.ya?ml)?$/,"yarn"],[/^bun\.lockb?$|^bunfig\.toml$/,"bun"],[/^tsconfig(?:\..+)?\.json$/,"typescript"],[/^jsconfig(?:\..+)?\.json$|^deno\.jsonc?$/,"javascript"],[/^(?:vite|vitest)\.config\./,"vite"],[/^tailwind\.config\./,"tailwind"],[/^eslint\.config\.|^\.eslintrc(?:\..+)?$/,"lint"],[/^prettier\.config\.|^\.prettierrc(?:\..+)?$|^\.prettierignore$/,"format"],[/^biome\.jsonc?$/,"format"],[/^dockerfile(?:\..+)?$|^(?:docker-)?compose(?:\.[^.]+)?\.ya?ml$/,"docker"],[/^\.git(?:ignore|attributes|modules|keep)$|^codeowners$/,"git"],[/^\.env(?:\..+)?$/,"env"],[/^(?:readme|changelog|changes|contributing|security|code_of_conduct)(?:\..+)?$/,"info"],[/^(?:license|licence|copying)(?:\..+)?$/,"license"],[/^cargo\.(?:toml|lock)$/,"rust"],[/^go\.(?:mod|sum|work)$/,"go"],[/^(?:gemfile|rakefile)(?:\.lock)?$/,"ruby"],[/^(?:podfile|package\.swift)(?:\.lock)?$/,"swift"],[/^pyproject\.toml$|^poetry\.lock$|^pipfile(?:\.lock)?$|^requirements(?:\.[^.]+)?\.txt$/,"python"],[/^composer\.(?:json|lock)$/,"php"],[/^pom\.xml$|^(?:build|settings)\.gradle(?:\.kts)?$|^gradlew(?:\.bat)?$/,"java"],[/^(?:makefile|cmakelists\.txt|justfile|taskfile\.ya?ml)$/,"build"],[/^\.(?:bash|zsh|fish)(?:rc|_profile)?$/,"shell"],[/\.lock$/,"lock"]],vP=[["typescript",["ts","mts","cts"]],["react",["tsx","jsx"]],["javascript",["js","mjs","cjs"]],["json",["json","jsonc","json5","geojson","map"]],["html",["html","htm","astro","ejs","hbs","handlebars","liquid","njk","nunjucks","pug"]],["css",["css","pcss","less","styl","stylus"]],["sass",["scss","sass"]],["vue",["vue"]],["svelte",["svelte"]],["markdown",["md","mdx","markdown","mdown"]],["yaml",["yaml","yml"]],["config",["toml","ini","cfg","conf","config","properties"]],["shell",["sh","bash","zsh","fish"]],["powershell",["ps1","psm1","psd1"]],["image",["png","jpg","jpeg","gif","webp","avif","ico","bmp","tif","tiff"]],["svg",["svg"]],["audio",["mp3","m4a","wav","ogg","flac"]],["media",["mp4","m4v","mov","webm"]],["font",["woff","woff2","ttf","otf","eot"]],["database",["sql","sqlite","sqlite3","db"]],["prisma",["prisma"]],["graphql",["graphql","graphqls","gql"]],["python",["py","pyi","pyw"]],["ruby",["rb","erb"]],["go",["go"]],["rust",["rs"]],["java",["java","class","jar","gradle"]],["kotlin",["kt","kts"]],["swift",["swift"]],["c",["c","h","m"]],["cpp",["cc","cpp","cxx","hh","hpp","hxx","mm"]],["csharp",["cs","csx"]],["php",["php","phtml"]],["lua",["lua"]],["dart",["dart"]],["elixir",["ex","exs","heex"]],["wasm",["wasm","wat"]],["proto",["proto"]],["xml",["xml","xsl","xslt","plist","csproj","fsproj","vbproj"]],["terraform",["tf","tfvars","hcl"]],["notebook",["ipynb"]],["text",["txt","log"]],["csv",["csv","tsv"]],["pdf",["pdf"]],["archive",["zip","tar","gz","tgz","bz2","xz","7z","rar"]],["license",["license"]],["build",["mk","cmake"]]],kP=new Map(vP.flatMap(([e,t])=>t.map(r=>[r,e])));function AP(e){const t=e.split(/[/\\]/).at(-1)?.toLowerCase()??"";for(const[l,o]of CP)if(l.test(t))return $0[o];const r=t.includes(".")?t.slice(t.lastIndexOf(".")+1):"",i=kP.get(r);return i?$0[i]:t.startsWith(".")&&t.length>1?$0.config:$0.file}function BP({path:e,className:t,style:r,...i}){const l=AP(e);return x.jsx("span",{...i,"aria-hidden":"true","data-file-icon":l.name,className:he("seti-file-icon inline-flex size-[15px] shrink-0 items-center justify-center",t),style:{color:l.color,...r},children:l.glyph})}function DP(e,t){if(e.pr_status==="merged")return"merged";if(t&&(t.dirty||t.unpushed))return"push";switch(e.pr_status){case"conflicts":return"resolve";case"checks_failed":return"failed";case"checks_pending":return"checks";case"mergeable":return"merge";case"draft":return"draft";default:return null}}const wP={push:{label:"Uncommitted changes",tone:"text-working",icon:x.jsx(H3,{size:14})},resolve:{label:"Merge conflicts",tone:"text-muted",icon:x.jsx(Oi,{size:14})},merge:{label:"Ready to merge",tone:"text-add"},checks:{label:"Checks running",tone:"text-working",icon:x.jsx(_n,{size:14,className:"animate-spin"})},failed:{label:"Checks failed",tone:"text-del",icon:x.jsx(O3,{size:14})},draft:{label:"Draft",tone:"text-muted"},merged:{label:"Merged",tone:"text-pr-merged",icon:x.jsx(K8,{size:14})}},FP={push:"Commit all outstanding changes with a clear message and push the branch to the remote.",resolve:"This branch has merge conflicts with its base branch. Merge the base branch in, resolve the conflicts, then commit and push."};function SP({ws:e,local:t,sessionId:r}){return x.jsx(NP,{ws:e,local:t,sessionId:r},e.id)}function NP({ws:e,local:t,sessionId:r}){const i=On(),[l,o]=D.useState(!1),[u,d]=D.useState(!1),[f,h]=D.useState(null);if(f?.ok&&(f.continued||e.pr_status!=="merged"))return x.jsxs(U2,{children:[x.jsx(Ca,{size:15,className:"shrink-0 text-add"}),x.jsx("span",{className:"truncate font-medium text-add",children:f.msg})]});const m=DP(e,t);if(!m)return null;const{label:p,tone:y,icon:b}=wP[m],C=async()=>{d(!0),h(null);try{const A=await De.merge(e.id);A.ok?(h({ok:!0,msg:`Merged${A.method?` (${A.method})`:""}`}),i.invalidateQueries({queryKey:["state"]}),i.invalidateQueries({queryKey:["diff",e.id]})):(h({ok:!1,msg:A.error||"Merge failed"}),o(!1))}catch(A){h({ok:!1,msg:A instanceof Error?A.message:String(A)}),o(!1)}finally{d(!1)}},k=async()=>{d(!0),h(null);try{const A=await De.continueWorkspace(e.id,r);A.ok?(h({ok:!0,msg:A.workspace?.branch?`Continued on ${A.workspace.branch}`:"Continued on a new branch",continued:!0}),i.invalidateQueries({queryKey:["state"]}),i.invalidateQueries({queryKey:["diff",e.id]})):h({ok:!1,msg:A.error||"Could not continue this workspace"})}catch(A){h({ok:!1,msg:A instanceof Error?A.message:String(A)})}finally{d(!1)}},v=async A=>{if(!e.active_session_id)return h({ok:!1,msg:"No active session to message"});d(!0),h(null);try{const F=await De.sendPrompt(e.active_session_id,FP[A],e.id);h(F.ok?{ok:!0,msg:"Asked the agent"}:{ok:!1,msg:F.error||"Send failed"})}catch(F){h({ok:!1,msg:F instanceof Error?F.message:String(F)})}finally{d(!1)}};return x.jsxs(U2,{tint:m==="merge"?"add":m==="merged"?"merged":void 0,children:[e.pr_number?x.jsxs("a",{href:e.pr_url??void 0,target:"_blank",rel:"noreferrer",className:he("flex shrink-0 items-center gap-0.5 rounded-md px-1.5 py-0.5 font-mono text-[11px] active:bg-surface",m==="merged"?"bg-pr-merged/15 text-pr-merged":"bg-surface-2 text-muted"),children:["#",e.pr_number,x.jsx(bC,{size:12})]}):null,x.jsxs("span",{className:he("flex items-center gap-1 truncate font-medium",y),children:[b,p]}),x.jsxs("div",{className:"ml-auto flex shrink-0 items-center gap-2",children:[f&&!f.ok?x.jsxs(x.Fragment,{children:[x.jsx("span",{className:"max-w-36 truncate text-[11px] text-del",children:f.msg}),Mi(f.msg)?x.jsx(va,{className:"shrink-0 text-[11px]"}):null]}):null,m==="merge"||m==="checks"?l?x.jsxs(x.Fragment,{children:[x.jsx(_P,{onClick:()=>o(!1)}),x.jsx(zl,{onClick:C,busy:u,className:m==="merge"?"bg-add text-on-solid":"bg-working text-on-solid",children:"Confirm"})]}):x.jsxs(zl,{onClick:()=>o(!0),className:m==="merge"?"bg-add text-on-solid":"border border-border bg-surface-2 text-text",children:[x.jsx(K8,{size:13}),"Merge"]}):m==="push"?x.jsx(zl,{onClick:()=>v("push"),busy:u,className:"bg-working text-on-solid",children:"Commit & push"}):m==="resolve"?x.jsx(zl,{onClick:()=>v("resolve"),busy:u,className:"border border-border bg-surface-2 text-text",children:"Resolve"}):m==="merged"?x.jsxs(zl,{onClick:k,busy:u,title:"Continue on a new branch with the same chats",className:"border border-pr-merged/30 bg-surface-2 text-pr-merged",children:[x.jsx(sk,{size:13}),"Continue"]}):null]})]})}function zl({onClick:e,busy:t,title:r,className:i,children:l}){return x.jsxs("button",{type:"button",onClick:e,disabled:t,title:r,className:he("flex items-center gap-1.5 rounded-lg px-2.5 py-1 text-xs font-semibold transition active:scale-95 disabled:opacity-60",i),children:[t?x.jsx(_n,{size:13,className:"animate-spin"}):null,l]})}function _P({onClick:e}){return x.jsx("button",{type:"button",onClick:e,className:"rounded-lg px-2 py-1 text-xs text-muted active:bg-surface-2",children:"Cancel"})}const MP={add:"bg-add/10",merged:"bg-pr-merged/10"};function U2({tint:e,children:t}){return x.jsx("div",{className:he("sticky top-0 z-10 flex items-center gap-2 border-b border-border-soft px-3 py-2 backdrop-blur",e?MP[e]:"bg-surface/95"),children:t})}function $2({file:e,label:t,inset:r,alignWithFolders:i,selected:l,onSelectFile:o}){return x.jsx("li",{children:x.jsxs("button",{type:"button",title:e.path,"aria-label":e.path,onClick:()=>o(e.path),"aria-pressed":l,className:he("grid min-h-8 w-full min-w-0 grid-cols-[minmax(0,1fr)_auto_auto] items-center gap-x-2 rounded-md pr-2 text-left transition hover:bg-surface-2 focus-visible:outline-2 focus-visible:outline-accent active:bg-surface-2",l&&"bg-accent-soft"),style:{paddingLeft:r},children:[x.jsxs("span",{className:"flex min-w-0 items-center gap-1.5",children:[i?x.jsx("span",{className:"size-3.5 shrink-0","aria-hidden":"true"}):null,x.jsx(BP,{path:e.path}),x.jsx("span",{className:he("truncate",l?"text-text":"text-muted"),children:t})]}),x.jsx("span",{className:"min-w-8 text-right text-add",children:e.added?`+${e.added}`:null}),x.jsx("span",{className:"min-w-8 text-right text-del",children:e.removed?`−${e.removed}`:null})]})})}function s6({review:e,sessionId:t,scope:r,showFolders:i,selectedFile:l,onSelectFile:o}){const{workspace:u,query:d,filesQuery:f}=e,{data:h,isLoading:m,isError:p,error:y}=d,b=h?{dirty:h.dirty,unpushed:h.unpushed}:void 0,C=D.useMemo(()=>i6(r,h?.files??[],f.data?.files??[]),[r,h?.files,f.data?.files]),k=r==="changed"?m:f.isLoading,v=r==="changed"?p:f.isError,A=r==="changed"?y:f.error,F=r==="changed"?!!h:!!f.data;return x.jsxs("div",{className:"min-h-0 flex flex-1 flex-col",children:[x.jsx(SP,{ws:u,local:b,sessionId:t}),k&&!F?x.jsx(dr,{label:r==="changed"?"Computing diff…":"Listing files…"}):null,v&&!F?x.jsx(qt,{children:A?.message}):null,!k&&!v&&!F?x.jsx(qt,{children:r==="changed"?"No diff.":"No file list."}):null,r==="changed"&&h?.files.length===0?x.jsxs(qt,{children:["No changes vs ",x.jsx("span",{className:"font-mono",children:h.base}),"."]}):null,r==="all"&&f.data?.files.length===0?x.jsx(qt,{children:"No previewable files in this workspace."}):null,F&&C.length>0?x.jsxs(x.Fragment,{children:[x.jsx("div",{className:"shrink-0 border-b border-border-soft px-3 py-2 text-xs text-muted",children:r==="changed"&&h?x.jsxs(x.Fragment,{children:["vs ",x.jsx("span",{className:"font-mono text-faint",children:h.base})," · ",C.length," file",C.length===1?"":"s"]}):x.jsxs(x.Fragment,{children:[C.length,f.data?.truncated?"+":""," previewable file",C.length===1?"":"s"]})}),x.jsx(jP,{files:C,scope:r,showFolders:i,selectedFile:l,onSelectFile:o})]}):null]})}function jP({files:e,scope:t,showFolders:r,selectedFile:i,onSelectFile:l}){const o=D.useMemo(()=>r?r6(e):[],[e,r]),u=D.useMemo(()=>r?[]:a6(e),[e,r]),d=D.useMemo(()=>{if(!i)return[];const b=i.split("/");return b.pop(),b.map((C,k)=>b.slice(0,k+1).join("/"))},[i]),[f,h]=D.useState(()=>new Map(d.map(b=>[b,!0])));D.useEffect(()=>{d.length&&h(b=>{const C=new Map(b);let k=!1;for(const v of d)C.get(v)!==!0&&(C.set(v,!0),k=!0);return k?C:b})},[d]);const m=b=>f.get(b)??t==="changed",p=b=>{h(C=>{const k=new Map(C);return k.set(b,!(C.get(b)??t==="changed")),k})},y=(b,C)=>{const k=8+C*16;if(b.kind==="folder"){const v=m(b.path),A=!!i?.startsWith(`${b.path}/`);return x.jsxs("li",{children:[x.jsxs("button",{type:"button",onClick:()=>p(b.path),"aria-expanded":v,"aria-label":`${v?"Collapse":"Expand"} ${b.path}, ${b.fileCount} file${b.fileCount===1?"":"s"}`,className:"grid min-h-8 w-full min-w-0 grid-cols-[minmax(0,1fr)_auto_auto] items-center gap-x-2 rounded-md pr-2 text-left transition hover:bg-surface-2 focus-visible:outline-2 focus-visible:outline-accent active:bg-surface-2",style:{paddingLeft:k},children:[x.jsxs("span",{className:"flex min-w-0 items-center gap-1.5",children:[x.jsx($8,{size:14,className:he("shrink-0 text-faint transition-transform",v&&"rotate-90")}),v?x.jsx(Gv,{size:15,className:he("shrink-0 text-faint",A&&"text-accent")}):x.jsx(V8,{size:15,className:he("shrink-0 text-faint",A&&"text-accent")}),x.jsx("span",{className:he("truncate",A?"text-text":"text-muted"),children:b.name}),x.jsx("span",{className:"shrink-0 text-[10px] tabular-nums text-faint",children:b.fileCount})]}),x.jsx("span",{className:"min-w-8 text-right text-add",children:b.added?`+${b.added}`:null}),x.jsx("span",{className:"min-w-8 text-right text-del",children:b.removed?`−${b.removed}`:null})]}),v?x.jsx("ul",{children:b.children.map(F=>y(F,C+1))}):null]},b.path)}return x.jsx($2,{file:b.file,label:b.name,inset:k,alignWithFolders:!0,selected:b.path===i,onSelectFile:l},b.path)};return r?x.jsx("ul",{"aria-label":`${t==="changed"?"Changed":"All"} files by folder`,className:"min-h-0 flex-1 overflow-y-auto overscroll-contain px-2 py-2 font-mono text-[12px]",children:o.map(b=>y(b,0))}):x.jsx("ul",{"aria-label":`${t==="changed"?"Changed":"All"} files`,className:"min-h-0 flex-1 overflow-y-auto overscroll-contain px-2 py-2 font-mono text-[12px]",children:u.map(b=>x.jsx($2,{file:b,label:b.path,inset:8,selected:b.path===i,onSelectFile:l},b.path))})}function TP({review:e,filePath:t,scope:r,showFolders:i,onSelectFile:l,onShowFiles:o,onClose:u}){const{workspace:d,query:f,filesQuery:h,fileQuery:m}=e,{data:p,isLoading:y,isError:b,error:C}=f,k=D.useMemo(()=>{const G=i6(r,p?.files??[],h.data?.files??[]);return i?EP(G):a6(G)},[r,i,p?.files,h.data?.files]),v=k.findIndex(G=>G.path===t),A=v>=0?k[v]:void 0,F=D.useMemo(()=>r==="changed"&&p&&!p.truncated?bP(p.patch,p.files,t):null,[r,p,t]),N=r==="changed"&&!!p?.truncated,_=N&&m.data?.path===t?m.data:null,S=_?.patch??F,w=v>0?k[v-1]:void 0,O=v>=0&&v<k.length-1?k[v+1]:void 0,z=r==="all"&&d.worktree?`${d.worktree}/${t}`:null,P=zF(z,r==="all"),T=r==="changed"?"changed file":"file",$=r==="changed"?"changed files":"all files";return x.jsxs("section",{className:"min-h-0 flex flex-1 flex-col bg-bg","aria-label":r==="changed"?`Changes in ${t}`:`Source of ${t}`,children:[x.jsx(Qf,{title:x.jsxs("span",{className:"flex items-baseline gap-2",children:[x.jsx("span",{children:r==="changed"?"Changes":"Source"}),r==="changed"&&A?.added?x.jsxs("span",{className:"text-xs font-normal text-add",children:["+",A.added]}):null,r==="changed"&&A?.removed?x.jsxs("span",{className:"text-xs font-normal text-del",children:["−",A.removed]}):null]}),subtitle:A?.path??t,actions:x.jsxs("div",{className:"flex shrink-0 items-center gap-0.5 lg:hidden",children:[x.jsx("button",{type:"button",onClick:()=>w&&l(w.path),disabled:!w,"aria-label":`Previous ${T}`,className:"flex size-8 items-center justify-center rounded-full text-muted transition active:bg-surface-2 disabled:opacity-25",children:x.jsx(N3,{size:17})}),x.jsx("span",{className:"min-w-9 text-center text-[11px] tabular-nums text-faint",children:v>=0?`${v+1}/${k.length}`:"—"}),x.jsx("button",{type:"button",onClick:()=>O&&l(O.path),disabled:!O,"aria-label":`Next ${T}`,className:"flex size-8 items-center justify-center rounded-full text-muted transition active:bg-surface-2 disabled:opacity-25",children:x.jsx($8,{size:17})}),x.jsx("button",{type:"button",onClick:o,"aria-label":`Show ${$}`,className:"flex size-8 items-center justify-center rounded-full text-muted transition active:bg-surface-2",children:x.jsx(Y8,{size:17})})]}),onClose:u,closeLabel:"Close file viewer"}),x.jsx("div",{className:"min-h-0 flex-1 overflow-auto overscroll-contain",children:r==="changed"?x.jsxs(x.Fragment,{children:[y&&!p?x.jsx(dr,{label:"Loading changes…"}):null,b?x.jsx(qt,{children:C?.message}):null,p&&v<0?x.jsx(qt,{children:"This file is no longer changed."}):null,p&&v>=0&&N&&m.isLoading&&!_?x.jsx(dr,{label:"Loading file changes…"}):null,p&&v>=0&&N&&m.isError&&!_?x.jsx(qt,{children:m.error?.message}):null,p&&v>=0&&!N&&S===null?x.jsx(qt,{children:"No textual patch is available for this file."}):null,_&&!S?x.jsx(qt,{children:"No textual patch is available for this file."}):null,S?x.jsx(G5,{patch:S,fileName:t,hideFileHeader:!0,className:"p-4"}):null]}):x.jsxs(x.Fragment,{children:[P.isLoading&&!P.data?x.jsx(dr,{label:"Reading source…"}):null,P.isError&&!P.data?x.jsx(qt,{children:P.error?.message}):null,!h.isLoading&&!d.worktree?x.jsx(qt,{children:"Workspace files are unavailable."}):null,P.data?x.jsx(B5,{preview:P.data}):null]})})]})}const RP=/^[a-z][a-z0-9_-]{0,63}$/,H2=["none","low","medium","high","xhigh","max","ultracode"],q2=e=>({version:1,roles:Object.fromEntries(Object.entries(e.roles).map(([t,r])=>[t,{...r}]))}),OP=e=>`You are the ${e} agent for this workspace. End your final answer with a \`## Baton\` section: Decision, Evidence, Files changed, Risks, Suggested next role.`;function zP(e,t){const i=[void 0,...t==="codex"?H2:H2.filter(o=>o!=="none")],l=i.indexOf(e);return i[(l+1)%i.length]}function LP(e,t){const r={...e};return t===void 0?delete r.effort:r.effort=t,r}function PP(e,t){const r={...e,model:t},i=_s(t);return xf(i)||delete r.effort,df(i)||delete r.fast,r}function IP(e,t){const r=ff(t);if(!r||!og(e.model,[r]))return"Choose an exact model from Conductor’s newest picker snapshot.";const i=_s(e.model);return i?e.effort!==void 0&&!xf(i)?"Conductor does not expose a reasoning control for this provider. Select its model again to clear Effort.":e.effort==="none"&&i!=="codex"?"None effort is available only for Codex.":e.fast!==void 0&&!df(i)?"Conductor does not expose a Fast control for this provider. Select its model again to clear Fast.":null:"This model label does not identify a supported provider."}function UP(e,t){const r=ff(t);return!r||!og(e.model,[r])?null:_s(e.model)??null}function G2(e,t,r,i){return e&&!t&&r!==void 0&&i===0}function l6({name:e}){return x.jsx("span",{className:"max-w-20 shrink-0 truncate rounded bg-accent/10 px-1 py-0.5 font-mono text-[9px] uppercase tracking-wide text-accent",children:e})}function $P({name:e,role:t,models:r,agentType:i=null,invalid:l,onChange:o,onRemove:u,canRemove:d}){const f=i??_s(t.model)??null,h=xf(f),m=df(f);return x.jsxs("section",{className:he("rounded-2xl border bg-surface p-3",l?"border-del/50":"border-border"),children:[x.jsxs("div",{className:"mb-2 flex items-center gap-2",children:[x.jsx(l6,{name:e}),x.jsx("span",{className:"min-w-0 flex-1 truncate text-sm font-semibold",children:e}),x.jsx("button",{type:"button",disabled:!d,onClick:u,"aria-label":`Remove ${e} role`,className:"flex size-7 shrink-0 items-center justify-center rounded-lg text-faint active:bg-surface-2 disabled:invisible",children:x.jsx(_D,{size:14})})]}),x.jsxs("div",{className:"flex min-w-0 flex-wrap items-center gap-1.5",children:[x.jsx(X5,{value:t.model,models:r,placement:"below",empty:"No picker models are cached yet.",onSelect:p=>o(PP(t,p)),renderTrigger:({picking:p,toggle:y})=>x.jsxs("button",{type:"button",onClick:y,"aria-label":`Choose model for ${e}, currently ${t.model}`,"aria-haspopup":"menu","aria-expanded":p,className:he("flex h-8 max-w-56 min-w-0 items-center gap-1.5 rounded-lg border px-2 text-xs active:bg-surface-2",l?"border-del text-del":"border-border text-muted"),children:[x.jsx(js,{agentType:i,model:t.model,className:"size-3.5"}),x.jsx("span",{className:"truncate",children:t.model})]})}),h?x.jsxs("button",{type:"button",onClick:()=>o(LP(t,zP(t.effort,f))),"aria-label":`Reasoning effort for ${e}: ${t.effort?Wl[t.effort]:"default"}`,className:"flex h-8 items-center gap-1.5 rounded-lg border border-border px-2 text-xs text-muted active:bg-surface-2",children:[x.jsx(Jg,{effort:t.effort??""}),t.effort?Wl[t.effort]:"Effort"]}):null,m?x.jsxs("button",{type:"button",onClick:()=>o({...t,fast:!t.fast}),"aria-label":`Fast mode for ${e} ${t.fast?"on":"off"}`,"aria-pressed":t.fast===!0,className:he("flex h-8 items-center gap-1 rounded-lg border border-border px-2 text-xs text-muted active:bg-surface-2",t.fast&&"bg-surface-2 text-text"),children:[x.jsx(uf,{size:13})," Fast"]}):null]}),l?x.jsxs("p",{className:"mt-2 flex items-start gap-1.5 text-xs text-del",children:[x.jsx(Oi,{size:13,className:"mt-0.5 shrink-0"}),x.jsx("span",{children:l})]}):null,x.jsxs("details",{className:"mt-2",children:[x.jsx("summary",{className:"cursor-pointer select-none text-[11px] text-faint",children:"Role preamble"}),x.jsx("textarea",{value:t.preamble??"",onChange:p=>o({...t,preamble:p.target.value}),rows:4,"aria-label":`${e} role preamble`,className:"mt-1.5 block w-full resize-y rounded-xl border border-border bg-bg px-2.5 py-2 text-base leading-relaxed outline-none focus:border-accent/60"})]})]})}function o6({onClose:e}){const t=On(),r=jg(),i=xc(),[l,o]=D.useState(null),[u,d]=D.useState(!1),[f,h]=D.useState(!1),[m,p]=D.useState(null),[y,b]=D.useState("");D.useEffect(()=>{r.data&&!u&&o(q2(r.data))},[r.data,u]);const C=i.data?.groups,k=D.useMemo(()=>ff(C??[])?.models??[],[C]),v=new Map(r.data?.issues.map(P=>[P.role,P.error.message])??[]),A=l,F=new Map;if(A)for(const[P,T]of Object.entries(A.roles)){const $=C?IP(T,C):v.get(P);$&&F.set(P,$)}const N=(P,T)=>{A&&(o({version:1,roles:{...A.roles,[P]:T}}),d(!0),p(null))},_=P=>{if(!A||Object.keys(A.roles).length<=1)return;const{[P]:T,...$}=A.roles;o({version:1,roles:$}),d(!0)},S=y.trim().toLowerCase().replace(/\s+/g,"-"),w=y&&!RP.test(S)?"Use lowercase letters, numbers, dashes, or underscores.":S&&A?.roles[S]?"That role already exists.":null,O=()=>{!A||!S||w||(o({version:1,roles:{...A.roles,[S]:{model:"Choose a model",fast:!1,preamble:OP(S)}}}),b(""),d(!0))},z=async()=>{if(!(!A||!G2(u,f,C,F.size))){h(!0),p(null);try{const P=await De.updateRoles(A);if(!P.ok){p(P.error.message);return}o(q2(P.config)),d(!1),await t.invalidateQueries({queryKey:["roles"]})}catch(P){p(P instanceof Error?P.message:String(P))}finally{h(!1)}}};return Qr.createPortal(x.jsxs("div",{className:"fixed inset-0 z-50 flex flex-col bg-bg",role:"dialog","aria-modal":"true","aria-label":"Roles settings",children:[x.jsxs("header",{className:"pt-safe flex items-center gap-2 border-b border-border-soft px-3 pb-2.5",children:[x.jsxs("div",{className:"min-w-0 flex-1",children:[x.jsxs("div",{className:"flex items-center gap-1.5",children:[x.jsx("h2",{className:"text-[15px] font-semibold",children:"Roles"}),x.jsx(Xf,{})]}),x.jsx("p",{className:"text-[11px] text-faint",children:"Cross-provider delegated chats"})]}),x.jsxs("button",{type:"button",disabled:!G2(u,f,C,F.size),onClick:()=>{z()},className:"flex h-9 items-center gap-1.5 rounded-xl bg-accent px-3 text-sm font-semibold text-white disabled:opacity-35",children:[f?x.jsx(_n,{size:15,className:"animate-spin"}):x.jsx(DB,{size:15}),"Save"]}),x.jsx("button",{type:"button",onClick:e,"aria-label":"Close roles settings",className:"-mr-1 flex size-9 shrink-0 items-center justify-center rounded-full text-muted active:bg-surface-2",children:x.jsx(En,{size:20})})]}),x.jsx("div",{className:"pb-safe min-h-0 flex-1 overflow-y-auto p-3",children:r.isLoading&&!A?x.jsx(dr,{label:"Loading roles…"}):r.isError&&!A?x.jsx("p",{className:"rounded-xl border border-del/40 bg-del/5 p-3 text-sm text-del",children:r.error instanceof Error?r.error.message:"Could not load roles."}):A?x.jsxs("div",{className:"mx-auto flex max-w-xl flex-col gap-2.5",children:[i.isError?x.jsxs("div",{className:"flex items-center gap-2 rounded-xl border border-del/40 bg-del/5 p-3 text-xs text-del",children:[x.jsx("span",{className:"min-w-0 flex-1",children:"Could not load the saved Conductor model catalog."}),x.jsx("button",{type:"button",onClick:()=>{i.refetch()},className:"shrink-0 rounded-lg border border-del/40 px-2 py-1 font-semibold",children:"Retry"})]}):null,r.data?.warning?x.jsxs("p",{className:"rounded-xl border border-del/40 bg-del/5 p-3 text-xs text-del",children:[r.data.warning," The file was preserved; saving replaces it only after validation."]}):null,Object.entries(A.roles).map(([P,T])=>x.jsx($P,{name:P,role:T,models:k,agentType:C?UP(T,C):null,invalid:F.get(P),onChange:$=>N(P,$),onRemove:()=>_(P),canRemove:Object.keys(A.roles).length>1},P)),x.jsxs("div",{className:"rounded-2xl border border-dashed border-border p-2.5",children:[x.jsxs("div",{className:"flex items-center gap-2",children:[x.jsx("input",{value:y,onChange:P=>b(P.target.value),onKeyDown:P=>{P.key==="Enter"&&O()},placeholder:"Add a role","aria-label":"New role name",className:"min-w-0 flex-1 bg-transparent px-1 text-base outline-none placeholder:text-faint"}),x.jsxs("button",{type:"button",disabled:!S||!!w,onClick:O,className:"flex h-8 items-center gap-1 rounded-lg border border-border px-2 text-xs text-muted active:bg-surface-2 disabled:opacity-35",children:[x.jsx(of,{size:14})," Add"]})]}),w?x.jsx("p",{className:"mt-1.5 px-1 text-xs text-del",children:w}):null]}),F.size?x.jsx("p",{className:"text-xs text-del",children:"Choose the missing picker models before starting a Workflow."}):null,m?x.jsx("p",{className:"rounded-xl border border-del/40 bg-del/5 p-3 text-xs text-del",children:m}):null,x.jsx("p",{className:"px-1 text-[11px] leading-relaxed text-faint",children:"Roles configure future Workflow runs. Accepted jobs keep their frozen model and effort."})]}):null})]}),document.body)}function HP({workspace:e,agentsRunning:t}){const[r,i]=D.useState(!1),[l,o]=D.useState(!1),[u,d]=D.useState(null),[f,h]=D.useState(null),m=ve(F=>F.online),p=On(),y=Hf(e),b=()=>{i(!1),o(!1)},C=async F=>{if(!u&&(b(),F!==y)){d(F),h(null);try{const N=await De.setStatus(e.id,F);N.ok||h(N.error??"status change failed"),await p.invalidateQueries({queryKey:["state"]})}catch(N){h(N instanceof Error?N.message:"status change failed")}finally{d(null)}}},k=async()=>{if(!u){b(),d("archive"),h(null);try{const F=await De.archive(e.id,t>0);F.ok||h(F.error??"archiving failed"),await p.invalidateQueries({queryKey:["state"]}),await p.invalidateQueries({queryKey:["workspace",e.id]})}catch(F){h(F instanceof Error?F.message:"archiving failed")}finally{d(null)}}},A=u==="archive"?y:u??y;return x.jsxs(x.Fragment,{children:[x.jsx("button",{type:"button",onClick:()=>r?b():i(!0),disabled:!m||u!==null,"aria-label":`Workspace menu: ${Ld(y)}`,"aria-expanded":r,className:he("flex size-9 shrink-0 items-center justify-center rounded-full text-muted transition active:bg-surface-2 disabled:opacity-40",r&&"bg-surface-2 text-text"),children:u?x.jsx("span",{className:"dot-spinner size-4",style:{"--spin-color":qP(A)}}):x.jsx(V2,{status:A})}),r?x.jsxs(x.Fragment,{children:[x.jsx("button",{type:"button","aria-label":"Close workspace menu",className:"fixed inset-0 z-20 cursor-default",onClick:b}),x.jsx("div",{className:"fade-in absolute right-2 top-full z-30 w-60 overflow-hidden rounded-xl border border-border bg-surface shadow-xl",children:l?x.jsxs("div",{className:"p-3",children:[x.jsx("div",{className:"text-sm font-semibold",children:"Archive workspace?"}),x.jsx("p",{className:"mt-1 text-xs leading-snug text-muted",children:t>0?"Agents are still running in this workspace. Archiving will stop them and end any in-progress work.":"Its worktree is deleted. The chat stays readable and searchable."}),x.jsxs("div",{className:"mt-3 flex justify-end gap-2",children:[x.jsx("button",{type:"button",onClick:()=>o(!1),className:"rounded-lg border border-border px-2.5 py-1 text-xs font-semibold active:bg-surface-2",children:"Cancel"}),x.jsx("button",{type:"button",onClick:k,className:"rounded-lg bg-del px-2.5 py-1 text-xs font-semibold text-on-solid active:scale-95",children:t>0?"Stop agents and archive":"Archive"})]})]}):x.jsxs(x.Fragment,{children:[Az.map(F=>x.jsxs("button",{type:"button",onClick:()=>C(F),className:"flex w-full items-center gap-2 px-3 py-2.5 text-left text-sm active:bg-surface-2",children:[x.jsx(V2,{status:F}),x.jsx("span",{className:"flex-1",children:Ld(F)}),F===y?x.jsx(Ca,{size:15,className:"text-accent"}):null]},F)),x.jsxs("button",{type:"button",onClick:()=>o(!0),className:"flex w-full items-center gap-2 border-t border-border px-3 py-2.5 text-left text-sm text-del active:bg-surface-2",children:[x.jsx(rf,{size:15}),x.jsx("span",{className:"flex-1",children:"Archive workspace"})]})]})})]}):null,f?x.jsx("button",{type:"button",onClick:()=>h(null),className:"absolute right-2 top-full z-30 max-w-64 rounded-lg border border-del/40 bg-surface px-3 py-2 text-left text-xs text-del shadow-xl",children:f}):null]})}function qP(e){return qf[e]??"var(--color-faint)"}function V2({status:e}){const t=qf[e];return t?x.jsx("span",{className:"dot size-2.5",style:{background:t}}):x.jsx("span",{className:"dot size-2.5 border border-faint bg-transparent"})}function GP(e,t,r,i){if(!t)return;const l=e.find(d=>d.rootSessionId===t);if(l)return l;const o=r[t]?.workflowId;if(o){const d=e.find(f=>f.id===o);if(d)return d}const u=i.find(d=>d.childSessionId===t&&d.workflowId)?.workflowId;return u?e.find(d=>d.id===u):void 0}function VP(){const{workspaceId:e}=a7(),[t,r]=z8(),i=t.get("session"),l=t.get("subagent"),o=Ee=>r({session:Ee},{replace:!0}),[u,d]=D.useState(!1),[f,h]=D.useState("changed"),[m,p]=D.useState(null),[y,b]=D.useState(!1),C=m&&m.workspaceId===e?m.path:null,[k,v]=D.useState(!1),[A,F]=D.useState(null),[N,_]=D.useState(!1),[S,w]=D.useState(null),[O,z]=D.useState(null),[P,T]=D.useState(null),[$,G]=D.useState(null),[ae,ee]=D.useState(null),K=On(),I=Ri(),{data:Y,isLoading:ie}=Ef(),xe=Y?.workspaces.find(Ee=>Ee.id===e),j=RF(e,u&&!!xe),L=OF(e,C,u&&f==="changed"&&!!xe&&!!j.data?.truncated),V=!!Y&&!xe,{data:R}=Ng(e,!V),se=ve(Ee=>Ee.workingHints),be=ve(Ee=>Ee.pending),W=ve(Ee=>Ee.readMarks),me=ve(Ee=>Ee.markRead),Ue=ve(Ee=>Ee.setDraft),Be=ve(Ee=>Ee.online),tt=ve(Ee=>Ee.view.showFolders),ct=ve(Ee=>Ee.setView),we=xe,Nt=Y?.actuator,{data:Fe,isLoading:ne}=MF(e,V),Oe=jF(e,!!xe?.worktree,u&&f==="all"),{data:at}=Oe,Ct=xe?.worktree??null,Et=at?.files,hn=D.useMemo(()=>({resolveMention:l5(Ct,Et),worktree:Ct}),[Ct,Et]),nt=R?.sessions??[],yn=we?.active_session_id&&nt.some(Ee=>Ee.id===we.active_session_id)?we.active_session_id:null,ge=(i&&nt.some(Ee=>Ee.id===i)?i:null)??yn??nt[0]?.id??null,Ne=nt.find(Ee=>Ee.id===ge),kn=Ee=>{ge&&r(Ee?{session:ge,subagent:Ee}:{session:ge},{replace:!0})},le={...R?.session_roles??{},...we?.session_roles??{}},Z=we?.delegations??[],_e=Z.filter(Ee=>!Ee.workflowId),Ge=(Y?.workflows??[]).filter(Ee=>Ee.workspaceId===e);we?.workflow&&!Ge.some(Ee=>Ee.id===we.workflow?.id)&&Ge.push(we.workflow);const Xe=GP(Ge,ge,le,Z),nn=Xe??we?.workflow??Ge[0],bn=ge?le[ge]:void 0,Yt=ge?Z.find(Ee=>Ee.workflowId===Xe?.id&&Ee.childSessionId===ge):void 0,Bt=bn&&bn.workflowId===Xe?.id?bn.role:Yt?.role,Cn=Xe?.phase!=="completed"&&Xe?.phase!=="cancelled",vt=Xe&&Cn&&ge===Xe.rootSessionId?"planning":Bt==="planning"||Bt==="exploration"||Bt==="implementation"?Bt:void 0,hr=D.useMemo(()=>new Set(Z.flatMap(Ee=>Ee.childSessionId?[Ee.childSessionId]:[])),[Z]),rn=Ne?.updated_at;if(D.useEffect(()=>{we&&ge&&rn&&document.visibilityState==="visible"&&me(ge,rn)},[we,ge,rn,me]),YF(ge,rn),!we)return Fe?x.jsx(tP,{workspace:Fe.workspace}):x.jsxs("div",{className:"flex h-full flex-col overflow-hidden",children:[x.jsx(Id,{title:"Session",menu:!0}),ie||V&&ne?x.jsx(dr,{}):x.jsx("div",{className:"p-6 text-center text-sm text-muted",children:"Workspace not found."})]});const Yr=ge?se[ge]:void 0,Lr=Ne?.status==="working"||Yr!==void 0&&Date.now()-Yr<Bd,Xr=Ne?.turn_started_at?Wn(Ne.turn_started_at):null,Wr=(Ne?.status==="working"?Xr??Yr:Yr??Xr)??null,Mn=Date.now(),H=Object.fromEntries(nt.map(Ee=>{const Zt=se[Ee.id],An=[...Ee.id===ge&&we.pending_prompt?[we.pending_prompt]:[],...(we.parked_prompts??[]).filter(it=>it.sessionId===Ee.id)];return[Ee.id,pg(be.filter(it=>it.sessionId===Ee.id),An,Zt!==void 0&&Mn-Zt<Bd)]})),ue=[we.repo_name,we.branch,ig(we.model)].filter(Boolean).join(" · "),Ae=async()=>{if(!N){_(!0);try{const Ee=await De.newChat(we.id);Ee.ok&&(await K.invalidateQueries({queryKey:["sessions",we.id]}),Ee.sessionId&&o(Ee.sessionId))}finally{_(!1)}}},Ke=async(Ee,Zt=!1)=>{if(S||!Be)return;const An=nt.find(it=>it.id===Ee);if((An?.status==="working"||An?.background_tasks.length)&&!Zt){z(Ee),T(null);return}w(Ee),z(null),T(null);try{const it=await De.closeChat(Ee,we.id,Zt);if(!it.ok)throw new Error(it.error??"Could not close this chat");ge===Ee&&(it.activeSessionId?o(it.activeSessionId):r({},{replace:!0})),await Promise.all([K.invalidateQueries({queryKey:["sessions",we.id]}),K.invalidateQueries({queryKey:["state"]})])}catch(it){it instanceof ur&&it.status===409&&/still working/i.test(it.message)?z(Ee):T(it instanceof Error?it.message:"Could not close this chat")}finally{w(null)}},_t=async({thinking:Ee,tools:Zt,through:An,only:it,destination:an="chat"},Pr)=>{if(!ge)return;const pn=await De.splitChat(ge,we.id,Ee,Zt,An,it,an);if(!pn.ok)throw new Error(pn.error??"Could not fork this chat");const ii=pn.sessionId??(an==="workspace"?pn.workspaceId:null);if(!ii)throw new Error("The new chat opened, but its id was not available");if(Ue(ii,[pn.text,Pr?.trim()].filter(Boolean).join(`
|
|
57
|
-
`)),pn.sessionId&&G(pn.sessionId),an==="workspace"){await K.invalidateQueries({queryKey:["state"]}),I(pn.sessionId?`/w/${pn.workspaceId}?session=${encodeURIComponent(pn.sessionId)}`:`/w/${pn.workspaceId}`);return}await K.invalidateQueries({queryKey:["sessions",we.id]}),pn.sessionId&&o(pn.sessionId)},kt=()=>{d(!1),p(null),b(!1)},Re=()=>{p(null),b(!0)},Se=()=>{u?kt():(d(!0),b(!0))},qe=Ee=>{p({workspaceId:we.id,path:Ee}),b(!1)},Vt=Ee=>{h(Ee),Ee==="all"&&we.worktree&&Oe.refetch()},Mt={workspace:we,query:j,filesQuery:Oe,fileQuery:L},_r=async Ee=>{F(null);try{const Zt=await De.dismissDelegation(Ee);if(!Zt.ok)throw new Error(Zt.error.message);await K.invalidateQueries({queryKey:["state"]})}catch(Zt){F(Zt instanceof Error?Zt.message:String(Zt))}};return x.jsx(SO,{value:hn,children:x.jsxs("div",{className:"flex h-full min-w-0 overflow-hidden",children:[x.jsxs("div",{className:"flex min-w-0 flex-1 flex-col overflow-hidden",children:[x.jsx(Id,{title:Vr(we),subtitle:ue,menu:!0,right:x.jsxs(x.Fragment,{children:[x.jsx(mP,{workspaceId:we.id}),x.jsx("button",{type:"button",onClick:()=>v(!0),"aria-label":"Open delegated roles",className:"flex size-9 shrink-0 items-center justify-center rounded-full text-muted transition active:bg-surface-2",children:x.jsx(lo,{size:18})}),x.jsx(HP,{workspace:we,agentsRunning:nt.filter(Ee=>Ee.status==="working").length}),x.jsx(KP,{stats:we.change_stats,open:u,onToggle:Se})]})}),nt.length>0||we.state==="ready"?x.jsx(YP,{sessions:nt,activeId:l?null:ge,readMarks:W,promptStates:H,roles:le,subtabSessionIds:hr,onSelect:o,onContext:Ee=>ee({workspaceId:we.id,id:Ee.id,title:Ee.title}),onNewChat:Ae,onClose:Ee=>{Ke(Ee)},creating:N,closingId:S,online:Be}):null,O?x.jsx(XP,{title:nt.find(Ee=>Ee.id===O)?.title??"Untitled",busy:S===O,onCancel:()=>z(null),onConfirm:()=>{Ke(O,!0)}}):P?x.jsxs("div",{className:"flex shrink-0 items-center gap-2 border-b border-del/30 bg-del/5 px-3 py-2 text-xs text-del",children:[x.jsx("span",{className:"min-w-0 flex-1",children:P}),Mi(P)?x.jsx(va,{}):null,x.jsx("button",{type:"button",onClick:()=>T(null),"aria-label":"Dismiss close error",className:"p-1",children:x.jsx(En,{size:14})})]}):null,x.jsx(lL,{workflow:nn,jobs:Z,sessions:nt,roles:le,activeSessionId:ge,onSelectSession:o}),we.delegation_warning||A?x.jsx("div",{className:"shrink-0 border-b border-del/30 bg-del/5 px-3 py-1.5 text-xs text-del",children:A??we.delegation_warning}):null,x.jsxs("div",{className:"relative min-h-0 flex flex-1 flex-col",children:[C?x.jsx(TP,{review:Mt,filePath:C,scope:f,showFolders:tt,onSelectFile:qe,onShowFiles:()=>b(!0),onClose:Re},C):x.jsx(V5,{sessionId:ge,workspaceId:we.id,working:Lr,workingSince:Wr,turnStartedAt:Ne?.turn_started_at,waiting:Ne?.background_tasks,delegations:_e,agentType:Ne?.agent_type,model:Ne?.model,selectedSubagentId:l,queued:we.parked_prompts?.find(Ee=>Ee.sessionId===ge)??we.pending_prompt,onFork:_t,onSelectSession:o,onSelectSubagent:kn,onDismissDelegation:Ee=>{_r(Ee)},onOpenRoles:()=>v(!0)}),u&&(y||!C)?x.jsx(JP,{review:Mt,sessionId:ge,scope:f,onScopeChange:Vt,showFolders:tt,onShowFoldersChange:Ee=>ct({showFolders:Ee}),selectedFile:C,onSelectFile:qe,onClose:kt}):null]}),l?x.jsx(QP,{title:Ne?.title,onReturn:()=>kn(null)}):x.jsx(uP,{session:Ne,sessionId:ge,workspaceId:we.id,working:Lr,actuator:Nt,onFork:Ee=>_t({thinking:!0,tools:!1},Ee),onContext:Ne?()=>ee({workspaceId:we.id,id:Ne.id,title:Ne.title}):void 0,workflowStarted:!!(ge&&le[ge])||!!(we.pending_prompt&&ge===we.active_session_id),workflow:Xe,workflowRole:vt,focusDraft:ge===$,onDraftFocused:()=>G(null)},we.id)]}),u?x.jsx(ZP,{review:Mt,sessionId:ge,scope:f,onScopeChange:Vt,showFolders:tt,onShowFoldersChange:Ee=>ct({showFolders:Ee}),selectedFile:C,onSelectFile:qe,onClose:kt}):null,k?x.jsx(o6,{onClose:()=>v(!1)}):null,ae&&ae.workspaceId===e?x.jsx(hP,{sessionId:ae.id,title:ae.title,revision:nt.find(Ee=>Ee.id===ae.id)?.updated_at,onClose:()=>ee(null)}):null]})})}function QP({title:e,onReturn:t}){return x.jsx("div",{className:"pb-safe flex shrink-0 items-center justify-center border-t border-border-soft px-4 py-3",children:x.jsxs("button",{type:"button",onClick:t,className:"flex min-w-0 items-center gap-2 rounded-lg px-3 py-1.5 text-xs font-medium text-accent transition active:bg-surface-2",children:[x.jsx(P8,{size:14,className:"shrink-0"}),x.jsxs("span",{className:"truncate",children:["Return to ",e||"parent chat"," to reply"]})]})})}function KP({stats:e,open:t,onToggle:r}){const i=!!e&&(e.added>0||e.removed>0);return x.jsxs("button",{type:"button",onClick:r,"aria-label":i?"Toggle diff panel, changes available":"Toggle diff panel","aria-pressed":t,className:he("relative flex size-9 shrink-0 items-center justify-center rounded-full text-muted transition active:bg-surface-2",t&&"bg-surface-2 text-text"),children:[x.jsx(G8,{size:19}),i?x.jsx("span",{className:"absolute right-1.5 top-1.5 size-1.5 rounded-full bg-accent","aria-hidden":"true"}):null]})}function YP({sessions:e,activeId:t,readMarks:r,promptStates:i,roles:l={},subtabSessionIds:o,onSelect:u,onContext:d,onNewChat:f,onClose:h,creating:m,closingId:p,online:y}){const b=D.useRef(null),C=e.filter(v=>!l[v.id]?.delegationId&&!o?.has(v.id)),k=C.some(v=>v.id===t);return D.useLayoutEffect(()=>{t&&k&&b.current?.scrollIntoView({block:"nearest",inline:"nearest"})},[t,k]),x.jsxs("nav",{className:"flex shrink-0 items-center gap-1 border-b border-border-soft bg-bg px-3 py-2",children:[x.jsx("div",{className:"flex min-w-0 flex-1 items-center gap-1 overflow-x-auto",children:C.map(v=>{const A=i[v.id],F=typeof v.context_used_percent=="number"&&v.context_used_percent>0;return x.jsxs("div",{ref:v.id===t?b:void 0,className:he("flex shrink-0 items-center rounded-full text-sm font-medium text-muted transition",v.id===t&&"bg-surface-2 text-text"),children:[x.jsxs("button",{type:"button",onClick:()=>u(v.id),className:he("flex min-w-0 items-center gap-1.5 py-1.5 pl-3.5",e.length>1||F?"pr-1":"pr-3.5"),children:[A?x.jsx(M5,{state:A,className:"size-3"}):v.status==="working"?x.jsx("span",{className:"dot-spinner size-3"}):v.background_tasks?.length?x.jsx(sf,{size:11,className:"shrink-0 text-faint","aria-label":"Waiting for a background task"}):null,x.jsx("span",{className:"whitespace-nowrap",children:v.title||"Untitled"}),l[v.id]?x.jsx(l6,{name:l[v.id].role}):null,Vw(v,r)?x.jsx("span",{className:"dot size-1.5 bg-accent"}):null]}),x.jsx(WP,{session:v,onOpen:()=>d(v)}),e.length>1?x.jsx("button",{type:"button",onClick:()=>h(v.id),disabled:!y||p!==null,"aria-label":`Close ${v.title||"Untitled"} chat`,className:"mr-1 flex size-6 shrink-0 items-center justify-center rounded-full text-faint transition active:bg-bg/70 active:text-text disabled:opacity-40",children:p===v.id?x.jsx(_n,{size:12,className:"animate-spin"}):x.jsx(En,{size:12})}):null]},v.id)})}),x.jsx("button",{type:"button",onClick:f,disabled:m,"aria-label":"New chat, same files",className:"flex size-7 shrink-0 items-center justify-center rounded-full text-muted transition active:bg-surface-2 disabled:opacity-40",children:x.jsx(of,{size:18})})]})}function XP({title:e,busy:t,onCancel:r,onConfirm:i}){return x.jsxs("div",{className:"flex shrink-0 items-center gap-2 border-b border-working/30 bg-working/5 px-3 py-2 text-xs",children:[x.jsxs("span",{className:"min-w-0 flex-1 truncate",children:[x.jsx("span",{className:"font-semibold",children:e})," is still working. Close the tab anyway?"]}),x.jsx("button",{type:"button",onClick:r,disabled:t,className:"rounded-lg px-2 py-1 text-muted active:bg-surface-2",children:"Cancel"}),x.jsxs("button",{type:"button",onClick:i,disabled:t,className:"flex items-center gap-1 rounded-lg bg-del px-2 py-1 font-semibold text-black active:scale-95 disabled:opacity-50",children:[t?x.jsx(_n,{size:12,className:"animate-spin"}):null,"Close anyway"]})]})}function WP({session:e,onOpen:t}){const r=e.context_used_percent;return typeof r!="number"||r<=0?null:x.jsxs("button",{type:"button",onClick:t,"aria-label":`Context for ${e.title||"Untitled"}: ${Math.round(r)}% used`,"aria-haspopup":"dialog",className:he("flex h-7 min-w-10 shrink-0 items-center justify-center rounded-full px-2 text-[11px] tabular-nums transition active:bg-bg/70",r>=80?"text-working":"text-faint"),children:[Math.round(r),"%"]})}function c6({scope:e,onChange:t}){return x.jsx("fieldset",{"aria-label":"Files shown",className:"flex shrink-0 rounded-full bg-surface-2 p-0.5 text-xs",children:["changed","all"].map(r=>x.jsx("button",{type:"button",onClick:()=>t(r),"aria-label":r==="changed"?"Changed files":"All files","aria-pressed":e===r,className:he("rounded-full px-2.5 py-1 font-medium text-muted transition",e===r&&"bg-bg text-text shadow-sm"),children:r==="changed"?"Changed":"All"},r))})}function u6({showFolders:e,onChange:t}){return x.jsx("button",{type:"button",onClick:()=>t(!e),"aria-label":"Group files into folders","aria-pressed":e,title:"Group files into folders",className:he("flex size-8 shrink-0 items-center justify-center rounded-full text-faint transition active:bg-surface-2",e&&"bg-surface-2 text-text"),children:x.jsx(Qv,{size:16})})}function ZP({review:e,sessionId:t,scope:r,onScopeChange:i,showFolders:l,onShowFoldersChange:o,selectedFile:u,onSelectFile:d,onClose:f}){return x.jsxs("aside",{className:"hidden flex-col bg-bg lg:flex lg:w-[380px] lg:shrink-0 lg:border-l lg:border-border-soft xl:w-[460px]",children:[x.jsxs("header",{className:"flex items-center gap-2 border-b border-border-soft px-3 py-2.5",children:[x.jsx("span",{className:"flex-1 text-[15px] font-semibold",children:"Files"}),x.jsx(c6,{scope:r,onChange:i}),x.jsx(u6,{showFolders:l,onChange:o}),x.jsx("button",{type:"button",onClick:f,"aria-label":"Close diff panel",className:"-mr-1 flex size-9 shrink-0 items-center justify-center rounded-full text-muted active:bg-surface-2",children:x.jsx(En,{size:20})})]}),x.jsx(s6,{review:e,sessionId:t,scope:r,showFolders:l,selectedFile:u,onSelectFile:d})]})}function JP({review:e,sessionId:t,scope:r,onScopeChange:i,showFolders:l,onShowFoldersChange:o,selectedFile:u,onSelectFile:d,onClose:f}){return x.jsxs("section",{className:"absolute inset-0 z-20 flex flex-col bg-bg lg:hidden","aria-label":"Workspace files",children:[x.jsxs("header",{className:"flex shrink-0 items-center gap-2 border-b border-border-soft px-3 py-2.5",children:[x.jsx("span",{className:"flex-1 text-[15px] font-semibold",children:"Files"}),x.jsx(c6,{scope:r,onChange:i}),x.jsx(u6,{showFolders:l,onChange:o}),x.jsx("button",{type:"button",onClick:f,"aria-label":"Close diff panel",className:"-mr-1 flex size-9 shrink-0 items-center justify-center rounded-full text-muted active:bg-surface-2",children:x.jsx(En,{size:20})})]}),x.jsx(s6,{review:e,sessionId:t,scope:r,showFolders:l,selectedFile:u,onSelectFile:d})]})}var X0={exports:{}},eI=X0.exports,Q2;function tI(){return Q2||(Q2=1,(function(e,t){(function(i,l){e.exports=l()})(typeof self<"u"?self:eI,function(){return(function(r){var i={};function l(o){if(i[o])return i[o].exports;var u=i[o]={i:o,l:!1,exports:{}};return r[o].call(u.exports,u,u.exports,l),u.l=!0,u.exports}return l.m=r,l.c=i,l.d=function(o,u,d){l.o(o,u)||Object.defineProperty(o,u,{configurable:!1,enumerable:!0,get:d})},l.n=function(o){var u=o&&o.__esModule?function(){return o.default}:function(){return o};return l.d(u,"a",u),u},l.o=function(o,u){return Object.prototype.hasOwnProperty.call(o,u)},l.p="",l(l.s=3)})([(function(r,i,l){Object.defineProperty(i,"__esModule",{value:!0});var o=(function(){function u(d,f){this.width=f,this.height=d.length/f,this.data=d}return u.createEmpty=function(d,f){return new u(new Uint8ClampedArray(d*f),d)},u.prototype.get=function(d,f){return d<0||d>=this.width||f<0||f>=this.height?!1:!!this.data[f*this.width+d]},u.prototype.set=function(d,f,h){this.data[f*this.width+d]=h?1:0},u.prototype.setRegion=function(d,f,h,m,p){for(var y=f;y<f+m;y++)for(var b=d;b<d+h;b++)this.set(b,y,!!p)},u})();i.BitMatrix=o}),(function(r,i,l){Object.defineProperty(i,"__esModule",{value:!0});var o=l(2);function u(f,h){return f^h}i.addOrSubtractGF=u;var d=(function(){function f(h,m,p){this.primitive=h,this.size=m,this.generatorBase=p,this.expTable=new Array(this.size),this.logTable=new Array(this.size);for(var y=1,b=0;b<this.size;b++)this.expTable[b]=y,y=y*2,y>=this.size&&(y=(y^this.primitive)&this.size-1);for(var b=0;b<this.size-1;b++)this.logTable[this.expTable[b]]=b;this.zero=new o.default(this,Uint8ClampedArray.from([0])),this.one=new o.default(this,Uint8ClampedArray.from([1]))}return f.prototype.multiply=function(h,m){return h===0||m===0?0:this.expTable[(this.logTable[h]+this.logTable[m])%(this.size-1)]},f.prototype.inverse=function(h){if(h===0)throw new Error("Can't invert 0");return this.expTable[this.size-this.logTable[h]-1]},f.prototype.buildMonomial=function(h,m){if(h<0)throw new Error("Invalid monomial degree less than 0");if(m===0)return this.zero;var p=new Uint8ClampedArray(h+1);return p[0]=m,new o.default(this,p)},f.prototype.log=function(h){if(h===0)throw new Error("Can't take log(0)");return this.logTable[h]},f.prototype.exp=function(h){return this.expTable[h]},f})();i.default=d}),(function(r,i,l){Object.defineProperty(i,"__esModule",{value:!0});var o=l(1),u=(function(){function d(f,h){if(h.length===0)throw new Error("No coefficients.");this.field=f;var m=h.length;if(m>1&&h[0]===0){for(var p=1;p<m&&h[p]===0;)p++;if(p===m)this.coefficients=f.zero.coefficients;else{this.coefficients=new Uint8ClampedArray(m-p);for(var y=0;y<this.coefficients.length;y++)this.coefficients[y]=h[p+y]}}else this.coefficients=h}return d.prototype.degree=function(){return this.coefficients.length-1},d.prototype.isZero=function(){return this.coefficients[0]===0},d.prototype.getCoefficient=function(f){return this.coefficients[this.coefficients.length-1-f]},d.prototype.addOrSubtract=function(f){var h;if(this.isZero())return f;if(f.isZero())return this;var m=this.coefficients,p=f.coefficients;m.length>p.length&&(h=[p,m],m=h[0],p=h[1]);for(var y=new Uint8ClampedArray(p.length),b=p.length-m.length,C=0;C<b;C++)y[C]=p[C];for(var C=b;C<p.length;C++)y[C]=o.addOrSubtractGF(m[C-b],p[C]);return new d(this.field,y)},d.prototype.multiply=function(f){if(f===0)return this.field.zero;if(f===1)return this;for(var h=this.coefficients.length,m=new Uint8ClampedArray(h),p=0;p<h;p++)m[p]=this.field.multiply(this.coefficients[p],f);return new d(this.field,m)},d.prototype.multiplyPoly=function(f){if(this.isZero()||f.isZero())return this.field.zero;for(var h=this.coefficients,m=h.length,p=f.coefficients,y=p.length,b=new Uint8ClampedArray(m+y-1),C=0;C<m;C++)for(var k=h[C],v=0;v<y;v++)b[C+v]=o.addOrSubtractGF(b[C+v],this.field.multiply(k,p[v]));return new d(this.field,b)},d.prototype.multiplyByMonomial=function(f,h){if(f<0)throw new Error("Invalid degree less than 0");if(h===0)return this.field.zero;for(var m=this.coefficients.length,p=new Uint8ClampedArray(m+f),y=0;y<m;y++)p[y]=this.field.multiply(this.coefficients[y],h);return new d(this.field,p)},d.prototype.evaluateAt=function(f){var h=0;if(f===0)return this.getCoefficient(0);var m=this.coefficients.length;if(f===1)return this.coefficients.forEach(function(y){h=o.addOrSubtractGF(h,y)}),h;h=this.coefficients[0];for(var p=1;p<m;p++)h=o.addOrSubtractGF(this.field.multiply(f,h),this.coefficients[p]);return h},d})();i.default=u}),(function(r,i,l){Object.defineProperty(i,"__esModule",{value:!0});var o=l(4),u=l(5),d=l(11),f=l(12);function h(y){var b=f.locate(y);if(!b)return null;for(var C=0,k=b;C<k.length;C++){var v=k[C],A=d.extract(y,v),F=u.decode(A.matrix);if(F)return{binaryData:F.bytes,data:F.text,chunks:F.chunks,version:F.version,location:{topRightCorner:A.mappingFunction(v.dimension,0),topLeftCorner:A.mappingFunction(0,0),bottomRightCorner:A.mappingFunction(v.dimension,v.dimension),bottomLeftCorner:A.mappingFunction(0,v.dimension),topRightFinderPattern:v.topRight,topLeftFinderPattern:v.topLeft,bottomLeftFinderPattern:v.bottomLeft,bottomRightAlignmentPattern:v.alignmentPattern}}}return null}var m={inversionAttempts:"attemptBoth"};function p(y,b,C,k){k===void 0&&(k={});var v=m;Object.keys(v||{}).forEach(function(O){v[O]=k[O]||v[O]});var A=v.inversionAttempts==="attemptBoth"||v.inversionAttempts==="invertFirst",F=v.inversionAttempts==="onlyInvert"||v.inversionAttempts==="invertFirst",N=o.binarize(y,b,C,A),_=N.binarized,S=N.inverted,w=h(F?S:_);return!w&&(v.inversionAttempts==="attemptBoth"||v.inversionAttempts==="invertFirst")&&(w=h(F?_:S)),w}p.default=p,i.default=p}),(function(r,i,l){Object.defineProperty(i,"__esModule",{value:!0});var o=l(0),u=8,d=24;function f(p,y,b){return p<y?y:p>b?b:p}var h=(function(){function p(y,b){this.width=y,this.data=new Uint8ClampedArray(y*b)}return p.prototype.get=function(y,b){return this.data[b*this.width+y]},p.prototype.set=function(y,b,C){this.data[b*this.width+y]=C},p})();function m(p,y,b,C){if(p.length!==y*b*4)throw new Error("Malformed data passed to binarizer.");for(var k=new h(y,b),v=0;v<y;v++)for(var A=0;A<b;A++){var F=p[(A*y+v)*4+0],N=p[(A*y+v)*4+1],_=p[(A*y+v)*4+2];k.set(v,A,.2126*F+.7152*N+.0722*_)}for(var S=Math.ceil(y/u),w=Math.ceil(b/u),O=new h(S,w),z=0;z<w;z++)for(var P=0;P<S;P++){for(var T=0,$=1/0,G=0,A=0;A<u;A++)for(var v=0;v<u;v++){var ae=k.get(P*u+v,z*u+A);T+=ae,$=Math.min($,ae),G=Math.max(G,ae)}var ee=T/Math.pow(u,2);if(G-$<=d&&(ee=$/2,z>0&&P>0)){var K=(O.get(P,z-1)+2*O.get(P-1,z)+O.get(P-1,z-1))/4;$<K&&(ee=K)}O.set(P,z,ee)}var I=o.BitMatrix.createEmpty(y,b),Y=null;C&&(Y=o.BitMatrix.createEmpty(y,b));for(var z=0;z<w;z++)for(var P=0;P<S;P++){for(var ie=f(P,2,S-3),xe=f(z,2,w-3),T=0,j=-2;j<=2;j++)for(var L=-2;L<=2;L++)T+=O.get(ie+j,xe+L);for(var V=T/25,j=0;j<u;j++)for(var L=0;L<u;L++){var v=P*u+j,A=z*u+L,R=k.get(v,A);I.set(v,A,R<=V),C&&Y.set(v,A,!(R<=V))}}return C?{binarized:I,inverted:Y}:{binarized:I}}i.binarize=m}),(function(r,i,l){Object.defineProperty(i,"__esModule",{value:!0});var o=l(0),u=l(6),d=l(9),f=l(10);function h(_,S){for(var w=_^S,O=0;w;)O++,w&=w-1;return O}function m(_,S){return S<<1|_}var p=[{bits:21522,formatInfo:{errorCorrectionLevel:1,dataMask:0}},{bits:20773,formatInfo:{errorCorrectionLevel:1,dataMask:1}},{bits:24188,formatInfo:{errorCorrectionLevel:1,dataMask:2}},{bits:23371,formatInfo:{errorCorrectionLevel:1,dataMask:3}},{bits:17913,formatInfo:{errorCorrectionLevel:1,dataMask:4}},{bits:16590,formatInfo:{errorCorrectionLevel:1,dataMask:5}},{bits:20375,formatInfo:{errorCorrectionLevel:1,dataMask:6}},{bits:19104,formatInfo:{errorCorrectionLevel:1,dataMask:7}},{bits:30660,formatInfo:{errorCorrectionLevel:0,dataMask:0}},{bits:29427,formatInfo:{errorCorrectionLevel:0,dataMask:1}},{bits:32170,formatInfo:{errorCorrectionLevel:0,dataMask:2}},{bits:30877,formatInfo:{errorCorrectionLevel:0,dataMask:3}},{bits:26159,formatInfo:{errorCorrectionLevel:0,dataMask:4}},{bits:25368,formatInfo:{errorCorrectionLevel:0,dataMask:5}},{bits:27713,formatInfo:{errorCorrectionLevel:0,dataMask:6}},{bits:26998,formatInfo:{errorCorrectionLevel:0,dataMask:7}},{bits:5769,formatInfo:{errorCorrectionLevel:3,dataMask:0}},{bits:5054,formatInfo:{errorCorrectionLevel:3,dataMask:1}},{bits:7399,formatInfo:{errorCorrectionLevel:3,dataMask:2}},{bits:6608,formatInfo:{errorCorrectionLevel:3,dataMask:3}},{bits:1890,formatInfo:{errorCorrectionLevel:3,dataMask:4}},{bits:597,formatInfo:{errorCorrectionLevel:3,dataMask:5}},{bits:3340,formatInfo:{errorCorrectionLevel:3,dataMask:6}},{bits:2107,formatInfo:{errorCorrectionLevel:3,dataMask:7}},{bits:13663,formatInfo:{errorCorrectionLevel:2,dataMask:0}},{bits:12392,formatInfo:{errorCorrectionLevel:2,dataMask:1}},{bits:16177,formatInfo:{errorCorrectionLevel:2,dataMask:2}},{bits:14854,formatInfo:{errorCorrectionLevel:2,dataMask:3}},{bits:9396,formatInfo:{errorCorrectionLevel:2,dataMask:4}},{bits:8579,formatInfo:{errorCorrectionLevel:2,dataMask:5}},{bits:11994,formatInfo:{errorCorrectionLevel:2,dataMask:6}},{bits:11245,formatInfo:{errorCorrectionLevel:2,dataMask:7}}],y=[function(_){return(_.y+_.x)%2===0},function(_){return _.y%2===0},function(_){return _.x%3===0},function(_){return(_.y+_.x)%3===0},function(_){return(Math.floor(_.y/2)+Math.floor(_.x/3))%2===0},function(_){return _.x*_.y%2+_.x*_.y%3===0},function(_){return(_.y*_.x%2+_.y*_.x%3)%2===0},function(_){return((_.y+_.x)%2+_.y*_.x%3)%2===0}];function b(_){var S=17+4*_.versionNumber,w=o.BitMatrix.createEmpty(S,S);w.setRegion(0,0,9,9,!0),w.setRegion(S-8,0,8,9,!0),w.setRegion(0,S-8,9,8,!0);for(var O=0,z=_.alignmentPatternCenters;O<z.length;O++)for(var P=z[O],T=0,$=_.alignmentPatternCenters;T<$.length;T++){var G=$[T];P===6&&G===6||P===6&&G===S-7||P===S-7&&G===6||w.setRegion(P-2,G-2,5,5,!0)}return w.setRegion(6,9,1,S-17,!0),w.setRegion(9,6,S-17,1,!0),_.versionNumber>6&&(w.setRegion(S-11,0,3,6,!0),w.setRegion(0,S-11,6,3,!0)),w}function C(_,S,w){for(var O=y[w.dataMask],z=_.height,P=b(S),T=[],$=0,G=0,ae=!0,ee=z-1;ee>0;ee-=2){ee===6&&ee--;for(var K=0;K<z;K++)for(var I=ae?z-1-K:K,Y=0;Y<2;Y++){var ie=ee-Y;if(!P.get(ie,I)){G++;var xe=_.get(ie,I);O({y:I,x:ie})&&(xe=!xe),$=m(xe,$),G===8&&(T.push($),G=0,$=0)}}ae=!ae}return T}function k(_){var S=_.height,w=Math.floor((S-17)/4);if(w<=6)return f.VERSIONS[w-1];for(var O=0,z=5;z>=0;z--)for(var P=S-9;P>=S-11;P--)O=m(_.get(P,z),O);for(var T=0,P=5;P>=0;P--)for(var z=S-9;z>=S-11;z--)T=m(_.get(P,z),T);for(var $=1/0,G,ae=0,ee=f.VERSIONS;ae<ee.length;ae++){var K=ee[ae];if(K.infoBits===O||K.infoBits===T)return K;var I=h(O,K.infoBits);I<$&&(G=K,$=I),I=h(T,K.infoBits),I<$&&(G=K,$=I)}if($<=3)return G}function v(_){for(var S=0,w=0;w<=8;w++)w!==6&&(S=m(_.get(w,8),S));for(var O=7;O>=0;O--)O!==6&&(S=m(_.get(8,O),S));for(var z=_.height,P=0,O=z-1;O>=z-7;O--)P=m(_.get(8,O),P);for(var w=z-8;w<z;w++)P=m(_.get(w,8),P);for(var T=1/0,$=null,G=0,ae=p;G<ae.length;G++){var ee=ae[G],K=ee.bits,I=ee.formatInfo;if(K===S||K===P)return I;var Y=h(S,K);Y<T&&($=I,T=Y),S!==P&&(Y=h(P,K),Y<T&&($=I,T=Y))}return T<=3?$:null}function A(_,S,w){var O=S.errorCorrectionLevels[w],z=[],P=0;if(O.ecBlocks.forEach(function(xe){for(var j=0;j<xe.numBlocks;j++)z.push({numDataCodewords:xe.dataCodewordsPerBlock,codewords:[]}),P+=xe.dataCodewordsPerBlock+O.ecCodewordsPerBlock}),_.length<P)return null;_=_.slice(0,P);for(var T=O.ecBlocks[0].dataCodewordsPerBlock,$=0;$<T;$++)for(var G=0,ae=z;G<ae.length;G++){var ee=ae[G];ee.codewords.push(_.shift())}if(O.ecBlocks.length>1)for(var K=O.ecBlocks[0].numBlocks,I=O.ecBlocks[1].numBlocks,$=0;$<I;$++)z[K+$].codewords.push(_.shift());for(;_.length>0;)for(var Y=0,ie=z;Y<ie.length;Y++){var ee=ie[Y];ee.codewords.push(_.shift())}return z}function F(_){var S=k(_);if(!S)return null;var w=v(_);if(!w)return null;var O=C(_,S,w),z=A(O,S,w.errorCorrectionLevel);if(!z)return null;for(var P=z.reduce(function(Y,ie){return Y+ie.numDataCodewords},0),T=new Uint8ClampedArray(P),$=0,G=0,ae=z;G<ae.length;G++){var ee=ae[G],K=d.decode(ee.codewords,ee.codewords.length-ee.numDataCodewords);if(!K)return null;for(var I=0;I<ee.numDataCodewords;I++)T[$++]=K[I]}try{return u.decode(T,S.versionNumber)}catch{return null}}function N(_){if(_==null)return null;var S=F(_);if(S)return S;for(var w=0;w<_.width;w++)for(var O=w+1;O<_.height;O++)_.get(w,O)!==_.get(O,w)&&(_.set(w,O,!_.get(w,O)),_.set(O,w,!_.get(O,w)));return F(_)}i.decode=N}),(function(r,i,l){Object.defineProperty(i,"__esModule",{value:!0});var o=l(7),u=l(8),d;(function(k){k.Numeric="numeric",k.Alphanumeric="alphanumeric",k.Byte="byte",k.Kanji="kanji",k.ECI="eci"})(d=i.Mode||(i.Mode={}));var f;(function(k){k[k.Terminator=0]="Terminator",k[k.Numeric=1]="Numeric",k[k.Alphanumeric=2]="Alphanumeric",k[k.Byte=4]="Byte",k[k.Kanji=8]="Kanji",k[k.ECI=7]="ECI"})(f||(f={}));function h(k,v){for(var A=[],F="",N=[10,12,14][v],_=k.readBits(N);_>=3;){var S=k.readBits(10);if(S>=1e3)throw new Error("Invalid numeric value above 999");var w=Math.floor(S/100),O=Math.floor(S/10)%10,z=S%10;A.push(48+w,48+O,48+z),F+=w.toString()+O.toString()+z.toString(),_-=3}if(_===2){var S=k.readBits(7);if(S>=100)throw new Error("Invalid numeric value above 99");var w=Math.floor(S/10),O=S%10;A.push(48+w,48+O),F+=w.toString()+O.toString()}else if(_===1){var S=k.readBits(4);if(S>=10)throw new Error("Invalid numeric value above 9");A.push(48+S),F+=S.toString()}return{bytes:A,text:F}}var m=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function p(k,v){for(var A=[],F="",N=[9,11,13][v],_=k.readBits(N);_>=2;){var S=k.readBits(11),w=Math.floor(S/45),O=S%45;A.push(m[w].charCodeAt(0),m[O].charCodeAt(0)),F+=m[w]+m[O],_-=2}if(_===1){var w=k.readBits(6);A.push(m[w].charCodeAt(0)),F+=m[w]}return{bytes:A,text:F}}function y(k,v){for(var A=[],F="",N=[8,16,16][v],_=k.readBits(N),S=0;S<_;S++){var w=k.readBits(8);A.push(w)}try{F+=decodeURIComponent(A.map(function(O){return"%"+("0"+O.toString(16)).substr(-2)}).join(""))}catch{}return{bytes:A,text:F}}function b(k,v){for(var A=[],F="",N=[8,10,12][v],_=k.readBits(N),S=0;S<_;S++){var w=k.readBits(13),O=Math.floor(w/192)<<8|w%192;O<7936?O+=33088:O+=49472,A.push(O>>8,O&255),F+=String.fromCharCode(u.shiftJISTable[O])}return{bytes:A,text:F}}function C(k,v){for(var A,F,N,_,S=new o.BitStream(k),w=v<=9?0:v<=26?1:2,O={text:"",bytes:[],chunks:[],version:v};S.available()>=4;){var z=S.readBits(4);if(z===f.Terminator)return O;if(z===f.ECI)S.readBits(1)===0?O.chunks.push({type:d.ECI,assignmentNumber:S.readBits(7)}):S.readBits(1)===0?O.chunks.push({type:d.ECI,assignmentNumber:S.readBits(14)}):S.readBits(1)===0?O.chunks.push({type:d.ECI,assignmentNumber:S.readBits(21)}):O.chunks.push({type:d.ECI,assignmentNumber:-1});else if(z===f.Numeric){var P=h(S,w);O.text+=P.text,(A=O.bytes).push.apply(A,P.bytes),O.chunks.push({type:d.Numeric,text:P.text})}else if(z===f.Alphanumeric){var T=p(S,w);O.text+=T.text,(F=O.bytes).push.apply(F,T.bytes),O.chunks.push({type:d.Alphanumeric,text:T.text})}else if(z===f.Byte){var $=y(S,w);O.text+=$.text,(N=O.bytes).push.apply(N,$.bytes),O.chunks.push({type:d.Byte,bytes:$.bytes,text:$.text})}else if(z===f.Kanji){var G=b(S,w);O.text+=G.text,(_=O.bytes).push.apply(_,G.bytes),O.chunks.push({type:d.Kanji,bytes:G.bytes,text:G.text})}}if(S.available()===0||S.readBits(S.available())===0)return O}i.decode=C}),(function(r,i,l){Object.defineProperty(i,"__esModule",{value:!0});var o=(function(){function u(d){this.byteOffset=0,this.bitOffset=0,this.bytes=d}return u.prototype.readBits=function(d){if(d<1||d>32||d>this.available())throw new Error("Cannot read "+d.toString()+" bits");var f=0;if(this.bitOffset>0){var h=8-this.bitOffset,m=d<h?d:h,p=h-m,y=255>>8-m<<p;f=(this.bytes[this.byteOffset]&y)>>p,d-=m,this.bitOffset+=m,this.bitOffset===8&&(this.bitOffset=0,this.byteOffset++)}if(d>0){for(;d>=8;)f=f<<8|this.bytes[this.byteOffset]&255,this.byteOffset++,d-=8;if(d>0){var p=8-d,y=255>>p<<p;f=f<<d|(this.bytes[this.byteOffset]&y)>>p,this.bitOffset+=d}}return f},u.prototype.available=function(){return 8*(this.bytes.length-this.byteOffset)-this.bitOffset},u})();i.BitStream=o}),(function(r,i,l){Object.defineProperty(i,"__esModule",{value:!0}),i.shiftJISTable={32:32,33:33,34:34,35:35,36:36,37:37,38:38,39:39,40:40,41:41,42:42,43:43,44:44,45:45,46:46,47:47,48:48,49:49,50:50,51:51,52:52,53:53,54:54,55:55,56:56,57:57,58:58,59:59,60:60,61:61,62:62,63:63,64:64,65:65,66:66,67:67,68:68,69:69,70:70,71:71,72:72,73:73,74:74,75:75,76:76,77:77,78:78,79:79,80:80,81:81,82:82,83:83,84:84,85:85,86:86,87:87,88:88,89:89,90:90,91:91,92:165,93:93,94:94,95:95,96:96,97:97,98:98,99:99,100:100,101:101,102:102,103:103,104:104,105:105,106:106,107:107,108:108,109:109,110:110,111:111,112:112,113:113,114:114,115:115,116:116,117:117,118:118,119:119,120:120,121:121,122:122,123:123,124:124,125:125,126:8254,33088:12288,33089:12289,33090:12290,33091:65292,33092:65294,33093:12539,33094:65306,33095:65307,33096:65311,33097:65281,33098:12443,33099:12444,33100:180,33101:65344,33102:168,33103:65342,33104:65507,33105:65343,33106:12541,33107:12542,33108:12445,33109:12446,33110:12291,33111:20189,33112:12293,33113:12294,33114:12295,33115:12540,33116:8213,33117:8208,33118:65295,33119:92,33120:12316,33121:8214,33122:65372,33123:8230,33124:8229,33125:8216,33126:8217,33127:8220,33128:8221,33129:65288,33130:65289,33131:12308,33132:12309,33133:65339,33134:65341,33135:65371,33136:65373,33137:12296,33138:12297,33139:12298,33140:12299,33141:12300,33142:12301,33143:12302,33144:12303,33145:12304,33146:12305,33147:65291,33148:8722,33149:177,33150:215,33152:247,33153:65309,33154:8800,33155:65308,33156:65310,33157:8806,33158:8807,33159:8734,33160:8756,33161:9794,33162:9792,33163:176,33164:8242,33165:8243,33166:8451,33167:65509,33168:65284,33169:162,33170:163,33171:65285,33172:65283,33173:65286,33174:65290,33175:65312,33176:167,33177:9734,33178:9733,33179:9675,33180:9679,33181:9678,33182:9671,33183:9670,33184:9633,33185:9632,33186:9651,33187:9650,33188:9661,33189:9660,33190:8251,33191:12306,33192:8594,33193:8592,33194:8593,33195:8595,33196:12307,33208:8712,33209:8715,33210:8838,33211:8839,33212:8834,33213:8835,33214:8746,33215:8745,33224:8743,33225:8744,33226:172,33227:8658,33228:8660,33229:8704,33230:8707,33242:8736,33243:8869,33244:8978,33245:8706,33246:8711,33247:8801,33248:8786,33249:8810,33250:8811,33251:8730,33252:8765,33253:8733,33254:8757,33255:8747,33256:8748,33264:8491,33265:8240,33266:9839,33267:9837,33268:9834,33269:8224,33270:8225,33271:182,33276:9711,33359:65296,33360:65297,33361:65298,33362:65299,33363:65300,33364:65301,33365:65302,33366:65303,33367:65304,33368:65305,33376:65313,33377:65314,33378:65315,33379:65316,33380:65317,33381:65318,33382:65319,33383:65320,33384:65321,33385:65322,33386:65323,33387:65324,33388:65325,33389:65326,33390:65327,33391:65328,33392:65329,33393:65330,33394:65331,33395:65332,33396:65333,33397:65334,33398:65335,33399:65336,33400:65337,33401:65338,33409:65345,33410:65346,33411:65347,33412:65348,33413:65349,33414:65350,33415:65351,33416:65352,33417:65353,33418:65354,33419:65355,33420:65356,33421:65357,33422:65358,33423:65359,33424:65360,33425:65361,33426:65362,33427:65363,33428:65364,33429:65365,33430:65366,33431:65367,33432:65368,33433:65369,33434:65370,33439:12353,33440:12354,33441:12355,33442:12356,33443:12357,33444:12358,33445:12359,33446:12360,33447:12361,33448:12362,33449:12363,33450:12364,33451:12365,33452:12366,33453:12367,33454:12368,33455:12369,33456:12370,33457:12371,33458:12372,33459:12373,33460:12374,33461:12375,33462:12376,33463:12377,33464:12378,33465:12379,33466:12380,33467:12381,33468:12382,33469:12383,33470:12384,33471:12385,33472:12386,33473:12387,33474:12388,33475:12389,33476:12390,33477:12391,33478:12392,33479:12393,33480:12394,33481:12395,33482:12396,33483:12397,33484:12398,33485:12399,33486:12400,33487:12401,33488:12402,33489:12403,33490:12404,33491:12405,33492:12406,33493:12407,33494:12408,33495:12409,33496:12410,33497:12411,33498:12412,33499:12413,33500:12414,33501:12415,33502:12416,33503:12417,33504:12418,33505:12419,33506:12420,33507:12421,33508:12422,33509:12423,33510:12424,33511:12425,33512:12426,33513:12427,33514:12428,33515:12429,33516:12430,33517:12431,33518:12432,33519:12433,33520:12434,33521:12435,33600:12449,33601:12450,33602:12451,33603:12452,33604:12453,33605:12454,33606:12455,33607:12456,33608:12457,33609:12458,33610:12459,33611:12460,33612:12461,33613:12462,33614:12463,33615:12464,33616:12465,33617:12466,33618:12467,33619:12468,33620:12469,33621:12470,33622:12471,33623:12472,33624:12473,33625:12474,33626:12475,33627:12476,33628:12477,33629:12478,33630:12479,33631:12480,33632:12481,33633:12482,33634:12483,33635:12484,33636:12485,33637:12486,33638:12487,33639:12488,33640:12489,33641:12490,33642:12491,33643:12492,33644:12493,33645:12494,33646:12495,33647:12496,33648:12497,33649:12498,33650:12499,33651:12500,33652:12501,33653:12502,33654:12503,33655:12504,33656:12505,33657:12506,33658:12507,33659:12508,33660:12509,33661:12510,33662:12511,33664:12512,33665:12513,33666:12514,33667:12515,33668:12516,33669:12517,33670:12518,33671:12519,33672:12520,33673:12521,33674:12522,33675:12523,33676:12524,33677:12525,33678:12526,33679:12527,33680:12528,33681:12529,33682:12530,33683:12531,33684:12532,33685:12533,33686:12534,33695:913,33696:914,33697:915,33698:916,33699:917,33700:918,33701:919,33702:920,33703:921,33704:922,33705:923,33706:924,33707:925,33708:926,33709:927,33710:928,33711:929,33712:931,33713:932,33714:933,33715:934,33716:935,33717:936,33718:937,33727:945,33728:946,33729:947,33730:948,33731:949,33732:950,33733:951,33734:952,33735:953,33736:954,33737:955,33738:956,33739:957,33740:958,33741:959,33742:960,33743:961,33744:963,33745:964,33746:965,33747:966,33748:967,33749:968,33750:969,33856:1040,33857:1041,33858:1042,33859:1043,33860:1044,33861:1045,33862:1025,33863:1046,33864:1047,33865:1048,33866:1049,33867:1050,33868:1051,33869:1052,33870:1053,33871:1054,33872:1055,33873:1056,33874:1057,33875:1058,33876:1059,33877:1060,33878:1061,33879:1062,33880:1063,33881:1064,33882:1065,33883:1066,33884:1067,33885:1068,33886:1069,33887:1070,33888:1071,33904:1072,33905:1073,33906:1074,33907:1075,33908:1076,33909:1077,33910:1105,33911:1078,33912:1079,33913:1080,33914:1081,33915:1082,33916:1083,33917:1084,33918:1085,33920:1086,33921:1087,33922:1088,33923:1089,33924:1090,33925:1091,33926:1092,33927:1093,33928:1094,33929:1095,33930:1096,33931:1097,33932:1098,33933:1099,33934:1100,33935:1101,33936:1102,33937:1103,33951:9472,33952:9474,33953:9484,33954:9488,33955:9496,33956:9492,33957:9500,33958:9516,33959:9508,33960:9524,33961:9532,33962:9473,33963:9475,33964:9487,33965:9491,33966:9499,33967:9495,33968:9507,33969:9523,33970:9515,33971:9531,33972:9547,33973:9504,33974:9519,33975:9512,33976:9527,33977:9535,33978:9501,33979:9520,33980:9509,33981:9528,33982:9538,34975:20124,34976:21782,34977:23043,34978:38463,34979:21696,34980:24859,34981:25384,34982:23030,34983:36898,34984:33909,34985:33564,34986:31312,34987:24746,34988:25569,34989:28197,34990:26093,34991:33894,34992:33446,34993:39925,34994:26771,34995:22311,34996:26017,34997:25201,34998:23451,34999:22992,35e3:34427,35001:39156,35002:32098,35003:32190,35004:39822,35005:25110,35006:31903,35007:34999,35008:23433,35009:24245,35010:25353,35011:26263,35012:26696,35013:38343,35014:38797,35015:26447,35016:20197,35017:20234,35018:20301,35019:20381,35020:20553,35021:22258,35022:22839,35023:22996,35024:23041,35025:23561,35026:24799,35027:24847,35028:24944,35029:26131,35030:26885,35031:28858,35032:30031,35033:30064,35034:31227,35035:32173,35036:32239,35037:32963,35038:33806,35039:34915,35040:35586,35041:36949,35042:36986,35043:21307,35044:20117,35045:20133,35046:22495,35047:32946,35048:37057,35049:30959,35050:19968,35051:22769,35052:28322,35053:36920,35054:31282,35055:33576,35056:33419,35057:39983,35058:20801,35059:21360,35060:21693,35061:21729,35062:22240,35063:23035,35064:24341,35065:39154,35066:28139,35067:32996,35068:34093,35136:38498,35137:38512,35138:38560,35139:38907,35140:21515,35141:21491,35142:23431,35143:28879,35144:32701,35145:36802,35146:38632,35147:21359,35148:40284,35149:31418,35150:19985,35151:30867,35152:33276,35153:28198,35154:22040,35155:21764,35156:27421,35157:34074,35158:39995,35159:23013,35160:21417,35161:28006,35162:29916,35163:38287,35164:22082,35165:20113,35166:36939,35167:38642,35168:33615,35169:39180,35170:21473,35171:21942,35172:23344,35173:24433,35174:26144,35175:26355,35176:26628,35177:27704,35178:27891,35179:27945,35180:29787,35181:30408,35182:31310,35183:38964,35184:33521,35185:34907,35186:35424,35187:37613,35188:28082,35189:30123,35190:30410,35191:39365,35192:24742,35193:35585,35194:36234,35195:38322,35196:27022,35197:21421,35198:20870,35200:22290,35201:22576,35202:22852,35203:23476,35204:24310,35205:24616,35206:25513,35207:25588,35208:27839,35209:28436,35210:28814,35211:28948,35212:29017,35213:29141,35214:29503,35215:32257,35216:33398,35217:33489,35218:34199,35219:36960,35220:37467,35221:40219,35222:22633,35223:26044,35224:27738,35225:29989,35226:20985,35227:22830,35228:22885,35229:24448,35230:24540,35231:25276,35232:26106,35233:27178,35234:27431,35235:27572,35236:29579,35237:32705,35238:35158,35239:40236,35240:40206,35241:40644,35242:23713,35243:27798,35244:33659,35245:20740,35246:23627,35247:25014,35248:33222,35249:26742,35250:29281,35251:20057,35252:20474,35253:21368,35254:24681,35255:28201,35256:31311,35257:38899,35258:19979,35259:21270,35260:20206,35261:20309,35262:20285,35263:20385,35264:20339,35265:21152,35266:21487,35267:22025,35268:22799,35269:23233,35270:23478,35271:23521,35272:31185,35273:26247,35274:26524,35275:26550,35276:27468,35277:27827,35278:28779,35279:29634,35280:31117,35281:31166,35282:31292,35283:31623,35284:33457,35285:33499,35286:33540,35287:33655,35288:33775,35289:33747,35290:34662,35291:35506,35292:22057,35293:36008,35294:36838,35295:36942,35296:38686,35297:34442,35298:20420,35299:23784,35300:25105,35301:29273,35302:30011,35303:33253,35304:33469,35305:34558,35306:36032,35307:38597,35308:39187,35309:39381,35310:20171,35311:20250,35312:35299,35313:22238,35314:22602,35315:22730,35316:24315,35317:24555,35318:24618,35319:24724,35320:24674,35321:25040,35322:25106,35323:25296,35324:25913,35392:39745,35393:26214,35394:26800,35395:28023,35396:28784,35397:30028,35398:30342,35399:32117,35400:33445,35401:34809,35402:38283,35403:38542,35404:35997,35405:20977,35406:21182,35407:22806,35408:21683,35409:23475,35410:23830,35411:24936,35412:27010,35413:28079,35414:30861,35415:33995,35416:34903,35417:35442,35418:37799,35419:39608,35420:28012,35421:39336,35422:34521,35423:22435,35424:26623,35425:34510,35426:37390,35427:21123,35428:22151,35429:21508,35430:24275,35431:25313,35432:25785,35433:26684,35434:26680,35435:27579,35436:29554,35437:30906,35438:31339,35439:35226,35440:35282,35441:36203,35442:36611,35443:37101,35444:38307,35445:38548,35446:38761,35447:23398,35448:23731,35449:27005,35450:38989,35451:38990,35452:25499,35453:31520,35454:27179,35456:27263,35457:26806,35458:39949,35459:28511,35460:21106,35461:21917,35462:24688,35463:25324,35464:27963,35465:28167,35466:28369,35467:33883,35468:35088,35469:36676,35470:19988,35471:39993,35472:21494,35473:26907,35474:27194,35475:38788,35476:26666,35477:20828,35478:31427,35479:33970,35480:37340,35481:37772,35482:22107,35483:40232,35484:26658,35485:33541,35486:33841,35487:31909,35488:21e3,35489:33477,35490:29926,35491:20094,35492:20355,35493:20896,35494:23506,35495:21002,35496:21208,35497:21223,35498:24059,35499:21914,35500:22570,35501:23014,35502:23436,35503:23448,35504:23515,35505:24178,35506:24185,35507:24739,35508:24863,35509:24931,35510:25022,35511:25563,35512:25954,35513:26577,35514:26707,35515:26874,35516:27454,35517:27475,35518:27735,35519:28450,35520:28567,35521:28485,35522:29872,35523:29976,35524:30435,35525:30475,35526:31487,35527:31649,35528:31777,35529:32233,35530:32566,35531:32752,35532:32925,35533:33382,35534:33694,35535:35251,35536:35532,35537:36011,35538:36996,35539:37969,35540:38291,35541:38289,35542:38306,35543:38501,35544:38867,35545:39208,35546:33304,35547:20024,35548:21547,35549:23736,35550:24012,35551:29609,35552:30284,35553:30524,35554:23721,35555:32747,35556:36107,35557:38593,35558:38929,35559:38996,35560:39e3,35561:20225,35562:20238,35563:21361,35564:21916,35565:22120,35566:22522,35567:22855,35568:23305,35569:23492,35570:23696,35571:24076,35572:24190,35573:24524,35574:25582,35575:26426,35576:26071,35577:26082,35578:26399,35579:26827,35580:26820,35648:27231,35649:24112,35650:27589,35651:27671,35652:27773,35653:30079,35654:31048,35655:23395,35656:31232,35657:32e3,35658:24509,35659:35215,35660:35352,35661:36020,35662:36215,35663:36556,35664:36637,35665:39138,35666:39438,35667:39740,35668:20096,35669:20605,35670:20736,35671:22931,35672:23452,35673:25135,35674:25216,35675:25836,35676:27450,35677:29344,35678:30097,35679:31047,35680:32681,35681:34811,35682:35516,35683:35696,35684:25516,35685:33738,35686:38816,35687:21513,35688:21507,35689:21931,35690:26708,35691:27224,35692:35440,35693:30759,35694:26485,35695:40653,35696:21364,35697:23458,35698:33050,35699:34384,35700:36870,35701:19992,35702:20037,35703:20167,35704:20241,35705:21450,35706:21560,35707:23470,35708:24339,35709:24613,35710:25937,35712:26429,35713:27714,35714:27762,35715:27875,35716:28792,35717:29699,35718:31350,35719:31406,35720:31496,35721:32026,35722:31998,35723:32102,35724:26087,35725:29275,35726:21435,35727:23621,35728:24040,35729:25298,35730:25312,35731:25369,35732:28192,35733:34394,35734:35377,35735:36317,35736:37624,35737:28417,35738:31142,35739:39770,35740:20136,35741:20139,35742:20140,35743:20379,35744:20384,35745:20689,35746:20807,35747:31478,35748:20849,35749:20982,35750:21332,35751:21281,35752:21375,35753:21483,35754:21932,35755:22659,35756:23777,35757:24375,35758:24394,35759:24623,35760:24656,35761:24685,35762:25375,35763:25945,35764:27211,35765:27841,35766:29378,35767:29421,35768:30703,35769:33016,35770:33029,35771:33288,35772:34126,35773:37111,35774:37857,35775:38911,35776:39255,35777:39514,35778:20208,35779:20957,35780:23597,35781:26241,35782:26989,35783:23616,35784:26354,35785:26997,35786:29577,35787:26704,35788:31873,35789:20677,35790:21220,35791:22343,35792:24062,35793:37670,35794:26020,35795:27427,35796:27453,35797:29748,35798:31105,35799:31165,35800:31563,35801:32202,35802:33465,35803:33740,35804:34943,35805:35167,35806:35641,35807:36817,35808:37329,35809:21535,35810:37504,35811:20061,35812:20534,35813:21477,35814:21306,35815:29399,35816:29590,35817:30697,35818:33510,35819:36527,35820:39366,35821:39368,35822:39378,35823:20855,35824:24858,35825:34398,35826:21936,35827:31354,35828:20598,35829:23507,35830:36935,35831:38533,35832:20018,35833:27355,35834:37351,35835:23633,35836:23624,35904:25496,35905:31391,35906:27795,35907:38772,35908:36705,35909:31402,35910:29066,35911:38536,35912:31874,35913:26647,35914:32368,35915:26705,35916:37740,35917:21234,35918:21531,35919:34219,35920:35347,35921:32676,35922:36557,35923:37089,35924:21350,35925:34952,35926:31041,35927:20418,35928:20670,35929:21009,35930:20804,35931:21843,35932:22317,35933:29674,35934:22411,35935:22865,35936:24418,35937:24452,35938:24693,35939:24950,35940:24935,35941:25001,35942:25522,35943:25658,35944:25964,35945:26223,35946:26690,35947:28179,35948:30054,35949:31293,35950:31995,35951:32076,35952:32153,35953:32331,35954:32619,35955:33550,35956:33610,35957:34509,35958:35336,35959:35427,35960:35686,35961:36605,35962:38938,35963:40335,35964:33464,35965:36814,35966:39912,35968:21127,35969:25119,35970:25731,35971:28608,35972:38553,35973:26689,35974:20625,35975:27424,35976:27770,35977:28500,35978:31348,35979:32080,35980:34880,35981:35363,35982:26376,35983:20214,35984:20537,35985:20518,35986:20581,35987:20860,35988:21048,35989:21091,35990:21927,35991:22287,35992:22533,35993:23244,35994:24314,35995:25010,35996:25080,35997:25331,35998:25458,35999:26908,36e3:27177,36001:29309,36002:29356,36003:29486,36004:30740,36005:30831,36006:32121,36007:30476,36008:32937,36009:35211,36010:35609,36011:36066,36012:36562,36013:36963,36014:37749,36015:38522,36016:38997,36017:39443,36018:40568,36019:20803,36020:21407,36021:21427,36022:24187,36023:24358,36024:28187,36025:28304,36026:29572,36027:29694,36028:32067,36029:33335,36030:35328,36031:35578,36032:38480,36033:20046,36034:20491,36035:21476,36036:21628,36037:22266,36038:22993,36039:23396,36040:24049,36041:24235,36042:24359,36043:25144,36044:25925,36045:26543,36046:28246,36047:29392,36048:31946,36049:34996,36050:32929,36051:32993,36052:33776,36053:34382,36054:35463,36055:36328,36056:37431,36057:38599,36058:39015,36059:40723,36060:20116,36061:20114,36062:20237,36063:21320,36064:21577,36065:21566,36066:23087,36067:24460,36068:24481,36069:24735,36070:26791,36071:27278,36072:29786,36073:30849,36074:35486,36075:35492,36076:35703,36077:37264,36078:20062,36079:39881,36080:20132,36081:20348,36082:20399,36083:20505,36084:20502,36085:20809,36086:20844,36087:21151,36088:21177,36089:21246,36090:21402,36091:21475,36092:21521,36160:21518,36161:21897,36162:22353,36163:22434,36164:22909,36165:23380,36166:23389,36167:23439,36168:24037,36169:24039,36170:24055,36171:24184,36172:24195,36173:24218,36174:24247,36175:24344,36176:24658,36177:24908,36178:25239,36179:25304,36180:25511,36181:25915,36182:26114,36183:26179,36184:26356,36185:26477,36186:26657,36187:26775,36188:27083,36189:27743,36190:27946,36191:28009,36192:28207,36193:28317,36194:30002,36195:30343,36196:30828,36197:31295,36198:31968,36199:32005,36200:32024,36201:32094,36202:32177,36203:32789,36204:32771,36205:32943,36206:32945,36207:33108,36208:33167,36209:33322,36210:33618,36211:34892,36212:34913,36213:35611,36214:36002,36215:36092,36216:37066,36217:37237,36218:37489,36219:30783,36220:37628,36221:38308,36222:38477,36224:38917,36225:39321,36226:39640,36227:40251,36228:21083,36229:21163,36230:21495,36231:21512,36232:22741,36233:25335,36234:28640,36235:35946,36236:36703,36237:40633,36238:20811,36239:21051,36240:21578,36241:22269,36242:31296,36243:37239,36244:40288,36245:40658,36246:29508,36247:28425,36248:33136,36249:29969,36250:24573,36251:24794,36252:39592,36253:29403,36254:36796,36255:27492,36256:38915,36257:20170,36258:22256,36259:22372,36260:22718,36261:23130,36262:24680,36263:25031,36264:26127,36265:26118,36266:26681,36267:26801,36268:28151,36269:30165,36270:32058,36271:33390,36272:39746,36273:20123,36274:20304,36275:21449,36276:21766,36277:23919,36278:24038,36279:24046,36280:26619,36281:27801,36282:29811,36283:30722,36284:35408,36285:37782,36286:35039,36287:22352,36288:24231,36289:25387,36290:20661,36291:20652,36292:20877,36293:26368,36294:21705,36295:22622,36296:22971,36297:23472,36298:24425,36299:25165,36300:25505,36301:26685,36302:27507,36303:28168,36304:28797,36305:37319,36306:29312,36307:30741,36308:30758,36309:31085,36310:25998,36311:32048,36312:33756,36313:35009,36314:36617,36315:38555,36316:21092,36317:22312,36318:26448,36319:32618,36320:36001,36321:20916,36322:22338,36323:38442,36324:22586,36325:27018,36326:32948,36327:21682,36328:23822,36329:22524,36330:30869,36331:40442,36332:20316,36333:21066,36334:21643,36335:25662,36336:26152,36337:26388,36338:26613,36339:31364,36340:31574,36341:32034,36342:37679,36343:26716,36344:39853,36345:31545,36346:21273,36347:20874,36348:21047,36416:23519,36417:25334,36418:25774,36419:25830,36420:26413,36421:27578,36422:34217,36423:38609,36424:30352,36425:39894,36426:25420,36427:37638,36428:39851,36429:30399,36430:26194,36431:19977,36432:20632,36433:21442,36434:23665,36435:24808,36436:25746,36437:25955,36438:26719,36439:29158,36440:29642,36441:29987,36442:31639,36443:32386,36444:34453,36445:35715,36446:36059,36447:37240,36448:39184,36449:26028,36450:26283,36451:27531,36452:20181,36453:20180,36454:20282,36455:20351,36456:21050,36457:21496,36458:21490,36459:21987,36460:22235,36461:22763,36462:22987,36463:22985,36464:23039,36465:23376,36466:23629,36467:24066,36468:24107,36469:24535,36470:24605,36471:25351,36472:25903,36473:23388,36474:26031,36475:26045,36476:26088,36477:26525,36478:27490,36480:27515,36481:27663,36482:29509,36483:31049,36484:31169,36485:31992,36486:32025,36487:32043,36488:32930,36489:33026,36490:33267,36491:35222,36492:35422,36493:35433,36494:35430,36495:35468,36496:35566,36497:36039,36498:36060,36499:38604,36500:39164,36501:27503,36502:20107,36503:20284,36504:20365,36505:20816,36506:23383,36507:23546,36508:24904,36509:25345,36510:26178,36511:27425,36512:28363,36513:27835,36514:29246,36515:29885,36516:30164,36517:30913,36518:31034,36519:32780,36520:32819,36521:33258,36522:33940,36523:36766,36524:27728,36525:40575,36526:24335,36527:35672,36528:40235,36529:31482,36530:36600,36531:23437,36532:38635,36533:19971,36534:21489,36535:22519,36536:22833,36537:23241,36538:23460,36539:24713,36540:28287,36541:28422,36542:30142,36543:36074,36544:23455,36545:34048,36546:31712,36547:20594,36548:26612,36549:33437,36550:23649,36551:34122,36552:32286,36553:33294,36554:20889,36555:23556,36556:25448,36557:36198,36558:26012,36559:29038,36560:31038,36561:32023,36562:32773,36563:35613,36564:36554,36565:36974,36566:34503,36567:37034,36568:20511,36569:21242,36570:23610,36571:26451,36572:28796,36573:29237,36574:37196,36575:37320,36576:37675,36577:33509,36578:23490,36579:24369,36580:24825,36581:20027,36582:21462,36583:23432,36584:25163,36585:26417,36586:27530,36587:29417,36588:29664,36589:31278,36590:33131,36591:36259,36592:37202,36593:39318,36594:20754,36595:21463,36596:21610,36597:23551,36598:25480,36599:27193,36600:32172,36601:38656,36602:22234,36603:21454,36604:21608,36672:23447,36673:23601,36674:24030,36675:20462,36676:24833,36677:25342,36678:27954,36679:31168,36680:31179,36681:32066,36682:32333,36683:32722,36684:33261,36685:33311,36686:33936,36687:34886,36688:35186,36689:35728,36690:36468,36691:36655,36692:36913,36693:37195,36694:37228,36695:38598,36696:37276,36697:20160,36698:20303,36699:20805,36700:21313,36701:24467,36702:25102,36703:26580,36704:27713,36705:28171,36706:29539,36707:32294,36708:37325,36709:37507,36710:21460,36711:22809,36712:23487,36713:28113,36714:31069,36715:32302,36716:31899,36717:22654,36718:29087,36719:20986,36720:34899,36721:36848,36722:20426,36723:23803,36724:26149,36725:30636,36726:31459,36727:33308,36728:39423,36729:20934,36730:24490,36731:26092,36732:26991,36733:27529,36734:28147,36736:28310,36737:28516,36738:30462,36739:32020,36740:24033,36741:36981,36742:37255,36743:38918,36744:20966,36745:21021,36746:25152,36747:26257,36748:26329,36749:28186,36750:24246,36751:32210,36752:32626,36753:26360,36754:34223,36755:34295,36756:35576,36757:21161,36758:21465,36759:22899,36760:24207,36761:24464,36762:24661,36763:37604,36764:38500,36765:20663,36766:20767,36767:21213,36768:21280,36769:21319,36770:21484,36771:21736,36772:21830,36773:21809,36774:22039,36775:22888,36776:22974,36777:23100,36778:23477,36779:23558,36780:23567,36781:23569,36782:23578,36783:24196,36784:24202,36785:24288,36786:24432,36787:25215,36788:25220,36789:25307,36790:25484,36791:25463,36792:26119,36793:26124,36794:26157,36795:26230,36796:26494,36797:26786,36798:27167,36799:27189,36800:27836,36801:28040,36802:28169,36803:28248,36804:28988,36805:28966,36806:29031,36807:30151,36808:30465,36809:30813,36810:30977,36811:31077,36812:31216,36813:31456,36814:31505,36815:31911,36816:32057,36817:32918,36818:33750,36819:33931,36820:34121,36821:34909,36822:35059,36823:35359,36824:35388,36825:35412,36826:35443,36827:35937,36828:36062,36829:37284,36830:37478,36831:37758,36832:37912,36833:38556,36834:38808,36835:19978,36836:19976,36837:19998,36838:20055,36839:20887,36840:21104,36841:22478,36842:22580,36843:22732,36844:23330,36845:24120,36846:24773,36847:25854,36848:26465,36849:26454,36850:27972,36851:29366,36852:30067,36853:31331,36854:33976,36855:35698,36856:37304,36857:37664,36858:22065,36859:22516,36860:39166,36928:25325,36929:26893,36930:27542,36931:29165,36932:32340,36933:32887,36934:33394,36935:35302,36936:39135,36937:34645,36938:36785,36939:23611,36940:20280,36941:20449,36942:20405,36943:21767,36944:23072,36945:23517,36946:23529,36947:24515,36948:24910,36949:25391,36950:26032,36951:26187,36952:26862,36953:27035,36954:28024,36955:28145,36956:30003,36957:30137,36958:30495,36959:31070,36960:31206,36961:32051,36962:33251,36963:33455,36964:34218,36965:35242,36966:35386,36967:36523,36968:36763,36969:36914,36970:37341,36971:38663,36972:20154,36973:20161,36974:20995,36975:22645,36976:22764,36977:23563,36978:29978,36979:23613,36980:33102,36981:35338,36982:36805,36983:38499,36984:38765,36985:31525,36986:35535,36987:38920,36988:37218,36989:22259,36990:21416,36992:36887,36993:21561,36994:22402,36995:24101,36996:25512,36997:27700,36998:28810,36999:30561,37e3:31883,37001:32736,37002:34928,37003:36930,37004:37204,37005:37648,37006:37656,37007:38543,37008:29790,37009:39620,37010:23815,37011:23913,37012:25968,37013:26530,37014:36264,37015:38619,37016:25454,37017:26441,37018:26905,37019:33733,37020:38935,37021:38592,37022:35070,37023:28548,37024:25722,37025:23544,37026:19990,37027:28716,37028:30045,37029:26159,37030:20932,37031:21046,37032:21218,37033:22995,37034:24449,37035:24615,37036:25104,37037:25919,37038:25972,37039:26143,37040:26228,37041:26866,37042:26646,37043:27491,37044:28165,37045:29298,37046:29983,37047:30427,37048:31934,37049:32854,37050:22768,37051:35069,37052:35199,37053:35488,37054:35475,37055:35531,37056:36893,37057:37266,37058:38738,37059:38745,37060:25993,37061:31246,37062:33030,37063:38587,37064:24109,37065:24796,37066:25114,37067:26021,37068:26132,37069:26512,37070:30707,37071:31309,37072:31821,37073:32318,37074:33034,37075:36012,37076:36196,37077:36321,37078:36447,37079:30889,37080:20999,37081:25305,37082:25509,37083:25666,37084:25240,37085:35373,37086:31363,37087:31680,37088:35500,37089:38634,37090:32118,37091:33292,37092:34633,37093:20185,37094:20808,37095:21315,37096:21344,37097:23459,37098:23554,37099:23574,37100:24029,37101:25126,37102:25159,37103:25776,37104:26643,37105:26676,37106:27849,37107:27973,37108:27927,37109:26579,37110:28508,37111:29006,37112:29053,37113:26059,37114:31359,37115:31661,37116:32218,37184:32330,37185:32680,37186:33146,37187:33307,37188:33337,37189:34214,37190:35438,37191:36046,37192:36341,37193:36984,37194:36983,37195:37549,37196:37521,37197:38275,37198:39854,37199:21069,37200:21892,37201:28472,37202:28982,37203:20840,37204:31109,37205:32341,37206:33203,37207:31950,37208:22092,37209:22609,37210:23720,37211:25514,37212:26366,37213:26365,37214:26970,37215:29401,37216:30095,37217:30094,37218:30990,37219:31062,37220:31199,37221:31895,37222:32032,37223:32068,37224:34311,37225:35380,37226:38459,37227:36961,37228:40736,37229:20711,37230:21109,37231:21452,37232:21474,37233:20489,37234:21930,37235:22766,37236:22863,37237:29245,37238:23435,37239:23652,37240:21277,37241:24803,37242:24819,37243:25436,37244:25475,37245:25407,37246:25531,37248:25805,37249:26089,37250:26361,37251:24035,37252:27085,37253:27133,37254:28437,37255:29157,37256:20105,37257:30185,37258:30456,37259:31379,37260:31967,37261:32207,37262:32156,37263:32865,37264:33609,37265:33624,37266:33900,37267:33980,37268:34299,37269:35013,37270:36208,37271:36865,37272:36973,37273:37783,37274:38684,37275:39442,37276:20687,37277:22679,37278:24974,37279:33235,37280:34101,37281:36104,37282:36896,37283:20419,37284:20596,37285:21063,37286:21363,37287:24687,37288:25417,37289:26463,37290:28204,37291:36275,37292:36895,37293:20439,37294:23646,37295:36042,37296:26063,37297:32154,37298:21330,37299:34966,37300:20854,37301:25539,37302:23384,37303:23403,37304:23562,37305:25613,37306:26449,37307:36956,37308:20182,37309:22810,37310:22826,37311:27760,37312:35409,37313:21822,37314:22549,37315:22949,37316:24816,37317:25171,37318:26561,37319:33333,37320:26965,37321:38464,37322:39364,37323:39464,37324:20307,37325:22534,37326:23550,37327:32784,37328:23729,37329:24111,37330:24453,37331:24608,37332:24907,37333:25140,37334:26367,37335:27888,37336:28382,37337:32974,37338:33151,37339:33492,37340:34955,37341:36024,37342:36864,37343:36910,37344:38538,37345:40667,37346:39899,37347:20195,37348:21488,37349:22823,37350:31532,37351:37261,37352:38988,37353:40441,37354:28381,37355:28711,37356:21331,37357:21828,37358:23429,37359:25176,37360:25246,37361:25299,37362:27810,37363:28655,37364:29730,37365:35351,37366:37944,37367:28609,37368:35582,37369:33592,37370:20967,37371:34552,37372:21482,37440:21481,37441:20294,37442:36948,37443:36784,37444:22890,37445:33073,37446:24061,37447:31466,37448:36799,37449:26842,37450:35895,37451:29432,37452:40008,37453:27197,37454:35504,37455:20025,37456:21336,37457:22022,37458:22374,37459:25285,37460:25506,37461:26086,37462:27470,37463:28129,37464:28251,37465:28845,37466:30701,37467:31471,37468:31658,37469:32187,37470:32829,37471:32966,37472:34507,37473:35477,37474:37723,37475:22243,37476:22727,37477:24382,37478:26029,37479:26262,37480:27264,37481:27573,37482:30007,37483:35527,37484:20516,37485:30693,37486:22320,37487:24347,37488:24677,37489:26234,37490:27744,37491:30196,37492:31258,37493:32622,37494:33268,37495:34584,37496:36933,37497:39347,37498:31689,37499:30044,37500:31481,37501:31569,37502:33988,37504:36880,37505:31209,37506:31378,37507:33590,37508:23265,37509:30528,37510:20013,37511:20210,37512:23449,37513:24544,37514:25277,37515:26172,37516:26609,37517:27880,37518:34411,37519:34935,37520:35387,37521:37198,37522:37619,37523:39376,37524:27159,37525:28710,37526:29482,37527:33511,37528:33879,37529:36015,37530:19969,37531:20806,37532:20939,37533:21899,37534:23541,37535:24086,37536:24115,37537:24193,37538:24340,37539:24373,37540:24427,37541:24500,37542:25074,37543:25361,37544:26274,37545:26397,37546:28526,37547:29266,37548:30010,37549:30522,37550:32884,37551:33081,37552:33144,37553:34678,37554:35519,37555:35548,37556:36229,37557:36339,37558:37530,37559:38263,37560:38914,37561:40165,37562:21189,37563:25431,37564:30452,37565:26389,37566:27784,37567:29645,37568:36035,37569:37806,37570:38515,37571:27941,37572:22684,37573:26894,37574:27084,37575:36861,37576:37786,37577:30171,37578:36890,37579:22618,37580:26626,37581:25524,37582:27131,37583:20291,37584:28460,37585:26584,37586:36795,37587:34086,37588:32180,37589:37716,37590:26943,37591:28528,37592:22378,37593:22775,37594:23340,37595:32044,37596:29226,37597:21514,37598:37347,37599:40372,37600:20141,37601:20302,37602:20572,37603:20597,37604:21059,37605:35998,37606:21576,37607:22564,37608:23450,37609:24093,37610:24213,37611:24237,37612:24311,37613:24351,37614:24716,37615:25269,37616:25402,37617:25552,37618:26799,37619:27712,37620:30855,37621:31118,37622:31243,37623:32224,37624:33351,37625:35330,37626:35558,37627:36420,37628:36883,37696:37048,37697:37165,37698:37336,37699:40718,37700:27877,37701:25688,37702:25826,37703:25973,37704:28404,37705:30340,37706:31515,37707:36969,37708:37841,37709:28346,37710:21746,37711:24505,37712:25764,37713:36685,37714:36845,37715:37444,37716:20856,37717:22635,37718:22825,37719:23637,37720:24215,37721:28155,37722:32399,37723:29980,37724:36028,37725:36578,37726:39003,37727:28857,37728:20253,37729:27583,37730:28593,37731:3e4,37732:38651,37733:20814,37734:21520,37735:22581,37736:22615,37737:22956,37738:23648,37739:24466,37740:26007,37741:26460,37742:28193,37743:30331,37744:33759,37745:36077,37746:36884,37747:37117,37748:37709,37749:30757,37750:30778,37751:21162,37752:24230,37753:22303,37754:22900,37755:24594,37756:20498,37757:20826,37758:20908,37760:20941,37761:20992,37762:21776,37763:22612,37764:22616,37765:22871,37766:23445,37767:23798,37768:23947,37769:24764,37770:25237,37771:25645,37772:26481,37773:26691,37774:26812,37775:26847,37776:30423,37777:28120,37778:28271,37779:28059,37780:28783,37781:29128,37782:24403,37783:30168,37784:31095,37785:31561,37786:31572,37787:31570,37788:31958,37789:32113,37790:21040,37791:33891,37792:34153,37793:34276,37794:35342,37795:35588,37796:35910,37797:36367,37798:36867,37799:36879,37800:37913,37801:38518,37802:38957,37803:39472,37804:38360,37805:20685,37806:21205,37807:21516,37808:22530,37809:23566,37810:24999,37811:25758,37812:27934,37813:30643,37814:31461,37815:33012,37816:33796,37817:36947,37818:37509,37819:23776,37820:40199,37821:21311,37822:24471,37823:24499,37824:28060,37825:29305,37826:30563,37827:31167,37828:31716,37829:27602,37830:29420,37831:35501,37832:26627,37833:27233,37834:20984,37835:31361,37836:26932,37837:23626,37838:40182,37839:33515,37840:23493,37841:37193,37842:28702,37843:22136,37844:23663,37845:24775,37846:25958,37847:27788,37848:35930,37849:36929,37850:38931,37851:21585,37852:26311,37853:37389,37854:22856,37855:37027,37856:20869,37857:20045,37858:20970,37859:34201,37860:35598,37861:28760,37862:25466,37863:37707,37864:26978,37865:39348,37866:32260,37867:30071,37868:21335,37869:26976,37870:36575,37871:38627,37872:27741,37873:20108,37874:23612,37875:24336,37876:36841,37877:21250,37878:36049,37879:32905,37880:34425,37881:24319,37882:26085,37883:20083,37884:20837,37952:22914,37953:23615,37954:38894,37955:20219,37956:22922,37957:24525,37958:35469,37959:28641,37960:31152,37961:31074,37962:23527,37963:33905,37964:29483,37965:29105,37966:24180,37967:24565,37968:25467,37969:25754,37970:29123,37971:31896,37972:20035,37973:24316,37974:20043,37975:22492,37976:22178,37977:24745,37978:28611,37979:32013,37980:33021,37981:33075,37982:33215,37983:36786,37984:35223,37985:34468,37986:24052,37987:25226,37988:25773,37989:35207,37990:26487,37991:27874,37992:27966,37993:29750,37994:30772,37995:23110,37996:32629,37997:33453,37998:39340,37999:20467,38e3:24259,38001:25309,38002:25490,38003:25943,38004:26479,38005:30403,38006:29260,38007:32972,38008:32954,38009:36649,38010:37197,38011:20493,38012:22521,38013:23186,38014:26757,38016:26995,38017:29028,38018:29437,38019:36023,38020:22770,38021:36064,38022:38506,38023:36889,38024:34687,38025:31204,38026:30695,38027:33833,38028:20271,38029:21093,38030:21338,38031:25293,38032:26575,38033:27850,38034:30333,38035:31636,38036:31893,38037:33334,38038:34180,38039:36843,38040:26333,38041:28448,38042:29190,38043:32283,38044:33707,38045:39361,38046:40614,38047:20989,38048:31665,38049:30834,38050:31672,38051:32903,38052:31560,38053:27368,38054:24161,38055:32908,38056:30033,38057:30048,38058:20843,38059:37474,38060:28300,38061:30330,38062:37271,38063:39658,38064:20240,38065:32624,38066:25244,38067:31567,38068:38309,38069:40169,38070:22138,38071:22617,38072:34532,38073:38588,38074:20276,38075:21028,38076:21322,38077:21453,38078:21467,38079:24070,38080:25644,38081:26001,38082:26495,38083:27710,38084:27726,38085:29256,38086:29359,38087:29677,38088:30036,38089:32321,38090:33324,38091:34281,38092:36009,38093:31684,38094:37318,38095:29033,38096:38930,38097:39151,38098:25405,38099:26217,38100:30058,38101:30436,38102:30928,38103:34115,38104:34542,38105:21290,38106:21329,38107:21542,38108:22915,38109:24199,38110:24444,38111:24754,38112:25161,38113:25209,38114:25259,38115:26e3,38116:27604,38117:27852,38118:30130,38119:30382,38120:30865,38121:31192,38122:32203,38123:32631,38124:32933,38125:34987,38126:35513,38127:36027,38128:36991,38129:38750,38130:39131,38131:27147,38132:31800,38133:20633,38134:23614,38135:24494,38136:26503,38137:27608,38138:29749,38139:30473,38140:32654,38208:40763,38209:26570,38210:31255,38211:21305,38212:30091,38213:39661,38214:24422,38215:33181,38216:33777,38217:32920,38218:24380,38219:24517,38220:30050,38221:31558,38222:36924,38223:26727,38224:23019,38225:23195,38226:32016,38227:30334,38228:35628,38229:20469,38230:24426,38231:27161,38232:27703,38233:28418,38234:29922,38235:31080,38236:34920,38237:35413,38238:35961,38239:24287,38240:25551,38241:30149,38242:31186,38243:33495,38244:37672,38245:37618,38246:33948,38247:34541,38248:39981,38249:21697,38250:24428,38251:25996,38252:27996,38253:28693,38254:36007,38255:36051,38256:38971,38257:25935,38258:29942,38259:19981,38260:20184,38261:22496,38262:22827,38263:23142,38264:23500,38265:20904,38266:24067,38267:24220,38268:24598,38269:25206,38270:25975,38272:26023,38273:26222,38274:28014,38275:29238,38276:31526,38277:33104,38278:33178,38279:33433,38280:35676,38281:36e3,38282:36070,38283:36212,38284:38428,38285:38468,38286:20398,38287:25771,38288:27494,38289:33310,38290:33889,38291:34154,38292:37096,38293:23553,38294:26963,38295:39080,38296:33914,38297:34135,38298:20239,38299:21103,38300:24489,38301:24133,38302:26381,38303:31119,38304:33145,38305:35079,38306:35206,38307:28149,38308:24343,38309:25173,38310:27832,38311:20175,38312:29289,38313:39826,38314:20998,38315:21563,38316:22132,38317:22707,38318:24996,38319:25198,38320:28954,38321:22894,38322:31881,38323:31966,38324:32027,38325:38640,38326:25991,38327:32862,38328:19993,38329:20341,38330:20853,38331:22592,38332:24163,38333:24179,38334:24330,38335:26564,38336:20006,38337:34109,38338:38281,38339:38491,38340:31859,38341:38913,38342:20731,38343:22721,38344:30294,38345:30887,38346:21029,38347:30629,38348:34065,38349:31622,38350:20559,38351:22793,38352:29255,38353:31687,38354:32232,38355:36794,38356:36820,38357:36941,38358:20415,38359:21193,38360:23081,38361:24321,38362:38829,38363:20445,38364:33303,38365:37610,38366:22275,38367:25429,38368:27497,38369:29995,38370:35036,38371:36628,38372:31298,38373:21215,38374:22675,38375:24917,38376:25098,38377:26286,38378:27597,38379:31807,38380:33769,38381:20515,38382:20472,38383:21253,38384:21574,38385:22577,38386:22857,38387:23453,38388:23792,38389:23791,38390:23849,38391:24214,38392:25265,38393:25447,38394:25918,38395:26041,38396:26379,38464:27861,38465:27873,38466:28921,38467:30770,38468:32299,38469:32990,38470:33459,38471:33804,38472:34028,38473:34562,38474:35090,38475:35370,38476:35914,38477:37030,38478:37586,38479:39165,38480:40179,38481:40300,38482:20047,38483:20129,38484:20621,38485:21078,38486:22346,38487:22952,38488:24125,38489:24536,38490:24537,38491:25151,38492:26292,38493:26395,38494:26576,38495:26834,38496:20882,38497:32033,38498:32938,38499:33192,38500:35584,38501:35980,38502:36031,38503:37502,38504:38450,38505:21536,38506:38956,38507:21271,38508:20693,38509:21340,38510:22696,38511:25778,38512:26420,38513:29287,38514:30566,38515:31302,38516:37350,38517:21187,38518:27809,38519:27526,38520:22528,38521:24140,38522:22868,38523:26412,38524:32763,38525:20961,38526:30406,38528:25705,38529:30952,38530:39764,38531:40635,38532:22475,38533:22969,38534:26151,38535:26522,38536:27598,38537:21737,38538:27097,38539:24149,38540:33180,38541:26517,38542:39850,38543:26622,38544:40018,38545:26717,38546:20134,38547:20451,38548:21448,38549:25273,38550:26411,38551:27819,38552:36804,38553:20397,38554:32365,38555:40639,38556:19975,38557:24930,38558:28288,38559:28459,38560:34067,38561:21619,38562:26410,38563:39749,38564:24051,38565:31637,38566:23724,38567:23494,38568:34588,38569:28234,38570:34001,38571:31252,38572:33032,38573:22937,38574:31885,38575:27665,38576:30496,38577:21209,38578:22818,38579:28961,38580:29279,38581:30683,38582:38695,38583:40289,38584:26891,38585:23167,38586:23064,38587:20901,38588:21517,38589:21629,38590:26126,38591:30431,38592:36855,38593:37528,38594:40180,38595:23018,38596:29277,38597:28357,38598:20813,38599:26825,38600:32191,38601:32236,38602:38754,38603:40634,38604:25720,38605:27169,38606:33538,38607:22916,38608:23391,38609:27611,38610:29467,38611:30450,38612:32178,38613:32791,38614:33945,38615:20786,38616:26408,38617:40665,38618:30446,38619:26466,38620:21247,38621:39173,38622:23588,38623:25147,38624:31870,38625:36016,38626:21839,38627:24758,38628:32011,38629:38272,38630:21249,38631:20063,38632:20918,38633:22812,38634:29242,38635:32822,38636:37326,38637:24357,38638:30690,38639:21380,38640:24441,38641:32004,38642:34220,38643:35379,38644:36493,38645:38742,38646:26611,38647:34222,38648:37971,38649:24841,38650:24840,38651:27833,38652:30290,38720:35565,38721:36664,38722:21807,38723:20305,38724:20778,38725:21191,38726:21451,38727:23461,38728:24189,38729:24736,38730:24962,38731:25558,38732:26377,38733:26586,38734:28263,38735:28044,38736:29494,38737:29495,38738:30001,38739:31056,38740:35029,38741:35480,38742:36938,38743:37009,38744:37109,38745:38596,38746:34701,38747:22805,38748:20104,38749:20313,38750:19982,38751:35465,38752:36671,38753:38928,38754:20653,38755:24188,38756:22934,38757:23481,38758:24248,38759:25562,38760:25594,38761:25793,38762:26332,38763:26954,38764:27096,38765:27915,38766:28342,38767:29076,38768:29992,38769:31407,38770:32650,38771:32768,38772:33865,38773:33993,38774:35201,38775:35617,38776:36362,38777:36965,38778:38525,38779:39178,38780:24958,38781:25233,38782:27442,38784:27779,38785:28020,38786:32716,38787:32764,38788:28096,38789:32645,38790:34746,38791:35064,38792:26469,38793:33713,38794:38972,38795:38647,38796:27931,38797:32097,38798:33853,38799:37226,38800:20081,38801:21365,38802:23888,38803:27396,38804:28651,38805:34253,38806:34349,38807:35239,38808:21033,38809:21519,38810:23653,38811:26446,38812:26792,38813:29702,38814:29827,38815:30178,38816:35023,38817:35041,38818:37324,38819:38626,38820:38520,38821:24459,38822:29575,38823:31435,38824:33870,38825:25504,38826:30053,38827:21129,38828:27969,38829:28316,38830:29705,38831:30041,38832:30827,38833:31890,38834:38534,38835:31452,38836:40845,38837:20406,38838:24942,38839:26053,38840:34396,38841:20102,38842:20142,38843:20698,38844:20001,38845:20940,38846:23534,38847:26009,38848:26753,38849:28092,38850:29471,38851:30274,38852:30637,38853:31260,38854:31975,38855:33391,38856:35538,38857:36988,38858:37327,38859:38517,38860:38936,38861:21147,38862:32209,38863:20523,38864:21400,38865:26519,38866:28107,38867:29136,38868:29747,38869:33256,38870:36650,38871:38563,38872:40023,38873:40607,38874:29792,38875:22593,38876:28057,38877:32047,38878:39006,38879:20196,38880:20278,38881:20363,38882:20919,38883:21169,38884:23994,38885:24604,38886:29618,38887:31036,38888:33491,38889:37428,38890:38583,38891:38646,38892:38666,38893:40599,38894:40802,38895:26278,38896:27508,38897:21015,38898:21155,38899:28872,38900:35010,38901:24265,38902:24651,38903:24976,38904:28451,38905:29001,38906:31806,38907:32244,38908:32879,38976:34030,38977:36899,38978:37676,38979:21570,38980:39791,38981:27347,38982:28809,38983:36034,38984:36335,38985:38706,38986:21172,38987:23105,38988:24266,38989:24324,38990:26391,38991:27004,38992:27028,38993:28010,38994:28431,38995:29282,38996:29436,38997:31725,38998:32769,38999:32894,39e3:34635,39001:37070,39002:20845,39003:40595,39004:31108,39005:32907,39006:37682,39007:35542,39008:20525,39009:21644,39010:35441,39011:27498,39012:36036,39013:33031,39014:24785,39015:26528,39016:40434,39017:20121,39018:20120,39019:39952,39020:35435,39021:34241,39022:34152,39023:26880,39024:28286,39025:30871,39026:33109,39071:24332,39072:19984,39073:19989,39074:20010,39075:20017,39076:20022,39077:20028,39078:20031,39079:20034,39080:20054,39081:20056,39082:20098,39083:20101,39084:35947,39085:20106,39086:33298,39087:24333,39088:20110,39089:20126,39090:20127,39091:20128,39092:20130,39093:20144,39094:20147,39095:20150,39096:20174,39097:20173,39098:20164,39099:20166,39100:20162,39101:20183,39102:20190,39103:20205,39104:20191,39105:20215,39106:20233,39107:20314,39108:20272,39109:20315,39110:20317,39111:20311,39112:20295,39113:20342,39114:20360,39115:20367,39116:20376,39117:20347,39118:20329,39119:20336,39120:20369,39121:20335,39122:20358,39123:20374,39124:20760,39125:20436,39126:20447,39127:20430,39128:20440,39129:20443,39130:20433,39131:20442,39132:20432,39133:20452,39134:20453,39135:20506,39136:20520,39137:20500,39138:20522,39139:20517,39140:20485,39141:20252,39142:20470,39143:20513,39144:20521,39145:20524,39146:20478,39147:20463,39148:20497,39149:20486,39150:20547,39151:20551,39152:26371,39153:20565,39154:20560,39155:20552,39156:20570,39157:20566,39158:20588,39159:20600,39160:20608,39161:20634,39162:20613,39163:20660,39164:20658,39232:20681,39233:20682,39234:20659,39235:20674,39236:20694,39237:20702,39238:20709,39239:20717,39240:20707,39241:20718,39242:20729,39243:20725,39244:20745,39245:20737,39246:20738,39247:20758,39248:20757,39249:20756,39250:20762,39251:20769,39252:20794,39253:20791,39254:20796,39255:20795,39256:20799,39257:20800,39258:20818,39259:20812,39260:20820,39261:20834,39262:31480,39263:20841,39264:20842,39265:20846,39266:20864,39267:20866,39268:22232,39269:20876,39270:20873,39271:20879,39272:20881,39273:20883,39274:20885,39275:20886,39276:20900,39277:20902,39278:20898,39279:20905,39280:20906,39281:20907,39282:20915,39283:20913,39284:20914,39285:20912,39286:20917,39287:20925,39288:20933,39289:20937,39290:20955,39291:20960,39292:34389,39293:20969,39294:20973,39296:20976,39297:20981,39298:20990,39299:20996,39300:21003,39301:21012,39302:21006,39303:21031,39304:21034,39305:21038,39306:21043,39307:21049,39308:21071,39309:21060,39310:21067,39311:21068,39312:21086,39313:21076,39314:21098,39315:21108,39316:21097,39317:21107,39318:21119,39319:21117,39320:21133,39321:21140,39322:21138,39323:21105,39324:21128,39325:21137,39326:36776,39327:36775,39328:21164,39329:21165,39330:21180,39331:21173,39332:21185,39333:21197,39334:21207,39335:21214,39336:21219,39337:21222,39338:39149,39339:21216,39340:21235,39341:21237,39342:21240,39343:21241,39344:21254,39345:21256,39346:30008,39347:21261,39348:21264,39349:21263,39350:21269,39351:21274,39352:21283,39353:21295,39354:21297,39355:21299,39356:21304,39357:21312,39358:21318,39359:21317,39360:19991,39361:21321,39362:21325,39363:20950,39364:21342,39365:21353,39366:21358,39367:22808,39368:21371,39369:21367,39370:21378,39371:21398,39372:21408,39373:21414,39374:21413,39375:21422,39376:21424,39377:21430,39378:21443,39379:31762,39380:38617,39381:21471,39382:26364,39383:29166,39384:21486,39385:21480,39386:21485,39387:21498,39388:21505,39389:21565,39390:21568,39391:21548,39392:21549,39393:21564,39394:21550,39395:21558,39396:21545,39397:21533,39398:21582,39399:21647,39400:21621,39401:21646,39402:21599,39403:21617,39404:21623,39405:21616,39406:21650,39407:21627,39408:21632,39409:21622,39410:21636,39411:21648,39412:21638,39413:21703,39414:21666,39415:21688,39416:21669,39417:21676,39418:21700,39419:21704,39420:21672,39488:21675,39489:21698,39490:21668,39491:21694,39492:21692,39493:21720,39494:21733,39495:21734,39496:21775,39497:21780,39498:21757,39499:21742,39500:21741,39501:21754,39502:21730,39503:21817,39504:21824,39505:21859,39506:21836,39507:21806,39508:21852,39509:21829,39510:21846,39511:21847,39512:21816,39513:21811,39514:21853,39515:21913,39516:21888,39517:21679,39518:21898,39519:21919,39520:21883,39521:21886,39522:21912,39523:21918,39524:21934,39525:21884,39526:21891,39527:21929,39528:21895,39529:21928,39530:21978,39531:21957,39532:21983,39533:21956,39534:21980,39535:21988,39536:21972,39537:22036,39538:22007,39539:22038,39540:22014,39541:22013,39542:22043,39543:22009,39544:22094,39545:22096,39546:29151,39547:22068,39548:22070,39549:22066,39550:22072,39552:22123,39553:22116,39554:22063,39555:22124,39556:22122,39557:22150,39558:22144,39559:22154,39560:22176,39561:22164,39562:22159,39563:22181,39564:22190,39565:22198,39566:22196,39567:22210,39568:22204,39569:22209,39570:22211,39571:22208,39572:22216,39573:22222,39574:22225,39575:22227,39576:22231,39577:22254,39578:22265,39579:22272,39580:22271,39581:22276,39582:22281,39583:22280,39584:22283,39585:22285,39586:22291,39587:22296,39588:22294,39589:21959,39590:22300,39591:22310,39592:22327,39593:22328,39594:22350,39595:22331,39596:22336,39597:22351,39598:22377,39599:22464,39600:22408,39601:22369,39602:22399,39603:22409,39604:22419,39605:22432,39606:22451,39607:22436,39608:22442,39609:22448,39610:22467,39611:22470,39612:22484,39613:22482,39614:22483,39615:22538,39616:22486,39617:22499,39618:22539,39619:22553,39620:22557,39621:22642,39622:22561,39623:22626,39624:22603,39625:22640,39626:27584,39627:22610,39628:22589,39629:22649,39630:22661,39631:22713,39632:22687,39633:22699,39634:22714,39635:22750,39636:22715,39637:22712,39638:22702,39639:22725,39640:22739,39641:22737,39642:22743,39643:22745,39644:22744,39645:22757,39646:22748,39647:22756,39648:22751,39649:22767,39650:22778,39651:22777,39652:22779,39653:22780,39654:22781,39655:22786,39656:22794,39657:22800,39658:22811,39659:26790,39660:22821,39661:22828,39662:22829,39663:22834,39664:22840,39665:22846,39666:31442,39667:22869,39668:22864,39669:22862,39670:22874,39671:22872,39672:22882,39673:22880,39674:22887,39675:22892,39676:22889,39744:22904,39745:22913,39746:22941,39747:20318,39748:20395,39749:22947,39750:22962,39751:22982,39752:23016,39753:23004,39754:22925,39755:23001,39756:23002,39757:23077,39758:23071,39759:23057,39760:23068,39761:23049,39762:23066,39763:23104,39764:23148,39765:23113,39766:23093,39767:23094,39768:23138,39769:23146,39770:23194,39771:23228,39772:23230,39773:23243,39774:23234,39775:23229,39776:23267,39777:23255,39778:23270,39779:23273,39780:23254,39781:23290,39782:23291,39783:23308,39784:23307,39785:23318,39786:23346,39787:23248,39788:23338,39789:23350,39790:23358,39791:23363,39792:23365,39793:23360,39794:23377,39795:23381,39796:23386,39797:23387,39798:23397,39799:23401,39800:23408,39801:23411,39802:23413,39803:23416,39804:25992,39805:23418,39806:23424,39808:23427,39809:23462,39810:23480,39811:23491,39812:23495,39813:23497,39814:23508,39815:23504,39816:23524,39817:23526,39818:23522,39819:23518,39820:23525,39821:23531,39822:23536,39823:23542,39824:23539,39825:23557,39826:23559,39827:23560,39828:23565,39829:23571,39830:23584,39831:23586,39832:23592,39833:23608,39834:23609,39835:23617,39836:23622,39837:23630,39838:23635,39839:23632,39840:23631,39841:23409,39842:23660,39843:23662,39844:20066,39845:23670,39846:23673,39847:23692,39848:23697,39849:23700,39850:22939,39851:23723,39852:23739,39853:23734,39854:23740,39855:23735,39856:23749,39857:23742,39858:23751,39859:23769,39860:23785,39861:23805,39862:23802,39863:23789,39864:23948,39865:23786,39866:23819,39867:23829,39868:23831,39869:23900,39870:23839,39871:23835,39872:23825,39873:23828,39874:23842,39875:23834,39876:23833,39877:23832,39878:23884,39879:23890,39880:23886,39881:23883,39882:23916,39883:23923,39884:23926,39885:23943,39886:23940,39887:23938,39888:23970,39889:23965,39890:23980,39891:23982,39892:23997,39893:23952,39894:23991,39895:23996,39896:24009,39897:24013,39898:24019,39899:24018,39900:24022,39901:24027,39902:24043,39903:24050,39904:24053,39905:24075,39906:24090,39907:24089,39908:24081,39909:24091,39910:24118,39911:24119,39912:24132,39913:24131,39914:24128,39915:24142,39916:24151,39917:24148,39918:24159,39919:24162,39920:24164,39921:24135,39922:24181,39923:24182,39924:24186,39925:40636,39926:24191,39927:24224,39928:24257,39929:24258,39930:24264,39931:24272,39932:24271,4e4:24278,40001:24291,40002:24285,40003:24282,40004:24283,40005:24290,40006:24289,40007:24296,40008:24297,40009:24300,40010:24305,40011:24307,40012:24304,40013:24308,40014:24312,40015:24318,40016:24323,40017:24329,40018:24413,40019:24412,40020:24331,40021:24337,40022:24342,40023:24361,40024:24365,40025:24376,40026:24385,40027:24392,40028:24396,40029:24398,40030:24367,40031:24401,40032:24406,40033:24407,40034:24409,40035:24417,40036:24429,40037:24435,40038:24439,40039:24451,40040:24450,40041:24447,40042:24458,40043:24456,40044:24465,40045:24455,40046:24478,40047:24473,40048:24472,40049:24480,40050:24488,40051:24493,40052:24508,40053:24534,40054:24571,40055:24548,40056:24568,40057:24561,40058:24541,40059:24755,40060:24575,40061:24609,40062:24672,40064:24601,40065:24592,40066:24617,40067:24590,40068:24625,40069:24603,40070:24597,40071:24619,40072:24614,40073:24591,40074:24634,40075:24666,40076:24641,40077:24682,40078:24695,40079:24671,40080:24650,40081:24646,40082:24653,40083:24675,40084:24643,40085:24676,40086:24642,40087:24684,40088:24683,40089:24665,40090:24705,40091:24717,40092:24807,40093:24707,40094:24730,40095:24708,40096:24731,40097:24726,40098:24727,40099:24722,40100:24743,40101:24715,40102:24801,40103:24760,40104:24800,40105:24787,40106:24756,40107:24560,40108:24765,40109:24774,40110:24757,40111:24792,40112:24909,40113:24853,40114:24838,40115:24822,40116:24823,40117:24832,40118:24820,40119:24826,40120:24835,40121:24865,40122:24827,40123:24817,40124:24845,40125:24846,40126:24903,40127:24894,40128:24872,40129:24871,40130:24906,40131:24895,40132:24892,40133:24876,40134:24884,40135:24893,40136:24898,40137:24900,40138:24947,40139:24951,40140:24920,40141:24921,40142:24922,40143:24939,40144:24948,40145:24943,40146:24933,40147:24945,40148:24927,40149:24925,40150:24915,40151:24949,40152:24985,40153:24982,40154:24967,40155:25004,40156:24980,40157:24986,40158:24970,40159:24977,40160:25003,40161:25006,40162:25036,40163:25034,40164:25033,40165:25079,40166:25032,40167:25027,40168:25030,40169:25018,40170:25035,40171:32633,40172:25037,40173:25062,40174:25059,40175:25078,40176:25082,40177:25076,40178:25087,40179:25085,40180:25084,40181:25086,40182:25088,40183:25096,40184:25097,40185:25101,40186:25100,40187:25108,40188:25115,40256:25118,40257:25121,40258:25130,40259:25134,40260:25136,40261:25138,40262:25139,40263:25153,40264:25166,40265:25182,40266:25187,40267:25179,40268:25184,40269:25192,40270:25212,40271:25218,40272:25225,40273:25214,40274:25234,40275:25235,40276:25238,40277:25300,40278:25219,40279:25236,40280:25303,40281:25297,40282:25275,40283:25295,40284:25343,40285:25286,40286:25812,40287:25288,40288:25308,40289:25292,40290:25290,40291:25282,40292:25287,40293:25243,40294:25289,40295:25356,40296:25326,40297:25329,40298:25383,40299:25346,40300:25352,40301:25327,40302:25333,40303:25424,40304:25406,40305:25421,40306:25628,40307:25423,40308:25494,40309:25486,40310:25472,40311:25515,40312:25462,40313:25507,40314:25487,40315:25481,40316:25503,40317:25525,40318:25451,40320:25449,40321:25534,40322:25577,40323:25536,40324:25542,40325:25571,40326:25545,40327:25554,40328:25590,40329:25540,40330:25622,40331:25652,40332:25606,40333:25619,40334:25638,40335:25654,40336:25885,40337:25623,40338:25640,40339:25615,40340:25703,40341:25711,40342:25718,40343:25678,40344:25898,40345:25749,40346:25747,40347:25765,40348:25769,40349:25736,40350:25788,40351:25818,40352:25810,40353:25797,40354:25799,40355:25787,40356:25816,40357:25794,40358:25841,40359:25831,40360:33289,40361:25824,40362:25825,40363:25260,40364:25827,40365:25839,40366:25900,40367:25846,40368:25844,40369:25842,40370:25850,40371:25856,40372:25853,40373:25880,40374:25884,40375:25861,40376:25892,40377:25891,40378:25899,40379:25908,40380:25909,40381:25911,40382:25910,40383:25912,40384:30027,40385:25928,40386:25942,40387:25941,40388:25933,40389:25944,40390:25950,40391:25949,40392:25970,40393:25976,40394:25986,40395:25987,40396:35722,40397:26011,40398:26015,40399:26027,40400:26039,40401:26051,40402:26054,40403:26049,40404:26052,40405:26060,40406:26066,40407:26075,40408:26073,40409:26080,40410:26081,40411:26097,40412:26482,40413:26122,40414:26115,40415:26107,40416:26483,40417:26165,40418:26166,40419:26164,40420:26140,40421:26191,40422:26180,40423:26185,40424:26177,40425:26206,40426:26205,40427:26212,40428:26215,40429:26216,40430:26207,40431:26210,40432:26224,40433:26243,40434:26248,40435:26254,40436:26249,40437:26244,40438:26264,40439:26269,40440:26305,40441:26297,40442:26313,40443:26302,40444:26300,40512:26308,40513:26296,40514:26326,40515:26330,40516:26336,40517:26175,40518:26342,40519:26345,40520:26352,40521:26357,40522:26359,40523:26383,40524:26390,40525:26398,40526:26406,40527:26407,40528:38712,40529:26414,40530:26431,40531:26422,40532:26433,40533:26424,40534:26423,40535:26438,40536:26462,40537:26464,40538:26457,40539:26467,40540:26468,40541:26505,40542:26480,40543:26537,40544:26492,40545:26474,40546:26508,40547:26507,40548:26534,40549:26529,40550:26501,40551:26551,40552:26607,40553:26548,40554:26604,40555:26547,40556:26601,40557:26552,40558:26596,40559:26590,40560:26589,40561:26594,40562:26606,40563:26553,40564:26574,40565:26566,40566:26599,40567:27292,40568:26654,40569:26694,40570:26665,40571:26688,40572:26701,40573:26674,40574:26702,40576:26803,40577:26667,40578:26713,40579:26723,40580:26743,40581:26751,40582:26783,40583:26767,40584:26797,40585:26772,40586:26781,40587:26779,40588:26755,40589:27310,40590:26809,40591:26740,40592:26805,40593:26784,40594:26810,40595:26895,40596:26765,40597:26750,40598:26881,40599:26826,40600:26888,40601:26840,40602:26914,40603:26918,40604:26849,40605:26892,40606:26829,40607:26836,40608:26855,40609:26837,40610:26934,40611:26898,40612:26884,40613:26839,40614:26851,40615:26917,40616:26873,40617:26848,40618:26863,40619:26920,40620:26922,40621:26906,40622:26915,40623:26913,40624:26822,40625:27001,40626:26999,40627:26972,40628:27e3,40629:26987,40630:26964,40631:27006,40632:26990,40633:26937,40634:26996,40635:26941,40636:26969,40637:26928,40638:26977,40639:26974,40640:26973,40641:27009,40642:26986,40643:27058,40644:27054,40645:27088,40646:27071,40647:27073,40648:27091,40649:27070,40650:27086,40651:23528,40652:27082,40653:27101,40654:27067,40655:27075,40656:27047,40657:27182,40658:27025,40659:27040,40660:27036,40661:27029,40662:27060,40663:27102,40664:27112,40665:27138,40666:27163,40667:27135,40668:27402,40669:27129,40670:27122,40671:27111,40672:27141,40673:27057,40674:27166,40675:27117,40676:27156,40677:27115,40678:27146,40679:27154,40680:27329,40681:27171,40682:27155,40683:27204,40684:27148,40685:27250,40686:27190,40687:27256,40688:27207,40689:27234,40690:27225,40691:27238,40692:27208,40693:27192,40694:27170,40695:27280,40696:27277,40697:27296,40698:27268,40699:27298,40700:27299,40768:27287,40769:34327,40770:27323,40771:27331,40772:27330,40773:27320,40774:27315,40775:27308,40776:27358,40777:27345,40778:27359,40779:27306,40780:27354,40781:27370,40782:27387,40783:27397,40784:34326,40785:27386,40786:27410,40787:27414,40788:39729,40789:27423,40790:27448,40791:27447,40792:30428,40793:27449,40794:39150,40795:27463,40796:27459,40797:27465,40798:27472,40799:27481,40800:27476,40801:27483,40802:27487,40803:27489,40804:27512,40805:27513,40806:27519,40807:27520,40808:27524,40809:27523,40810:27533,40811:27544,40812:27541,40813:27550,40814:27556,40815:27562,40816:27563,40817:27567,40818:27570,40819:27569,40820:27571,40821:27575,40822:27580,40823:27590,40824:27595,40825:27603,40826:27615,40827:27628,40828:27627,40829:27635,40830:27631,40832:40638,40833:27656,40834:27667,40835:27668,40836:27675,40837:27684,40838:27683,40839:27742,40840:27733,40841:27746,40842:27754,40843:27778,40844:27789,40845:27802,40846:27777,40847:27803,40848:27774,40849:27752,40850:27763,40851:27794,40852:27792,40853:27844,40854:27889,40855:27859,40856:27837,40857:27863,40858:27845,40859:27869,40860:27822,40861:27825,40862:27838,40863:27834,40864:27867,40865:27887,40866:27865,40867:27882,40868:27935,40869:34893,40870:27958,40871:27947,40872:27965,40873:27960,40874:27929,40875:27957,40876:27955,40877:27922,40878:27916,40879:28003,40880:28051,40881:28004,40882:27994,40883:28025,40884:27993,40885:28046,40886:28053,40887:28644,40888:28037,40889:28153,40890:28181,40891:28170,40892:28085,40893:28103,40894:28134,40895:28088,40896:28102,40897:28140,40898:28126,40899:28108,40900:28136,40901:28114,40902:28101,40903:28154,40904:28121,40905:28132,40906:28117,40907:28138,40908:28142,40909:28205,40910:28270,40911:28206,40912:28185,40913:28274,40914:28255,40915:28222,40916:28195,40917:28267,40918:28203,40919:28278,40920:28237,40921:28191,40922:28227,40923:28218,40924:28238,40925:28196,40926:28415,40927:28189,40928:28216,40929:28290,40930:28330,40931:28312,40932:28361,40933:28343,40934:28371,40935:28349,40936:28335,40937:28356,40938:28338,40939:28372,40940:28373,40941:28303,40942:28325,40943:28354,40944:28319,40945:28481,40946:28433,40947:28748,40948:28396,40949:28408,40950:28414,40951:28479,40952:28402,40953:28465,40954:28399,40955:28466,40956:28364,161:65377,162:65378,163:65379,164:65380,165:65381,166:65382,167:65383,168:65384,169:65385,170:65386,171:65387,172:65388,173:65389,174:65390,175:65391,176:65392,177:65393,178:65394,179:65395,180:65396,181:65397,182:65398,183:65399,184:65400,185:65401,186:65402,187:65403,188:65404,189:65405,190:65406,191:65407,192:65408,193:65409,194:65410,195:65411,196:65412,197:65413,198:65414,199:65415,200:65416,201:65417,202:65418,203:65419,204:65420,205:65421,206:65422,207:65423,208:65424,209:65425,210:65426,211:65427,212:65428,213:65429,214:65430,215:65431,216:65432,217:65433,218:65434,219:65435,220:65436,221:65437,222:65438,223:65439,57408:28478,57409:28435,57410:28407,57411:28550,57412:28538,57413:28536,57414:28545,57415:28544,57416:28527,57417:28507,57418:28659,57419:28525,57420:28546,57421:28540,57422:28504,57423:28558,57424:28561,57425:28610,57426:28518,57427:28595,57428:28579,57429:28577,57430:28580,57431:28601,57432:28614,57433:28586,57434:28639,57435:28629,57436:28652,57437:28628,57438:28632,57439:28657,57440:28654,57441:28635,57442:28681,57443:28683,57444:28666,57445:28689,57446:28673,57447:28687,57448:28670,57449:28699,57450:28698,57451:28532,57452:28701,57453:28696,57454:28703,57455:28720,57456:28734,57457:28722,57458:28753,57459:28771,57460:28825,57461:28818,57462:28847,57463:28913,57464:28844,57465:28856,57466:28851,57467:28846,57468:28895,57469:28875,57470:28893,57472:28889,57473:28937,57474:28925,57475:28956,57476:28953,57477:29029,57478:29013,57479:29064,57480:29030,57481:29026,57482:29004,57483:29014,57484:29036,57485:29071,57486:29179,57487:29060,57488:29077,57489:29096,57490:29100,57491:29143,57492:29113,57493:29118,57494:29138,57495:29129,57496:29140,57497:29134,57498:29152,57499:29164,57500:29159,57501:29173,57502:29180,57503:29177,57504:29183,57505:29197,57506:29200,57507:29211,57508:29224,57509:29229,57510:29228,57511:29232,57512:29234,57513:29243,57514:29244,57515:29247,57516:29248,57517:29254,57518:29259,57519:29272,57520:29300,57521:29310,57522:29314,57523:29313,57524:29319,57525:29330,57526:29334,57527:29346,57528:29351,57529:29369,57530:29362,57531:29379,57532:29382,57533:29380,57534:29390,57535:29394,57536:29410,57537:29408,57538:29409,57539:29433,57540:29431,57541:20495,57542:29463,57543:29450,57544:29468,57545:29462,57546:29469,57547:29492,57548:29487,57549:29481,57550:29477,57551:29502,57552:29518,57553:29519,57554:40664,57555:29527,57556:29546,57557:29544,57558:29552,57559:29560,57560:29557,57561:29563,57562:29562,57563:29640,57564:29619,57565:29646,57566:29627,57567:29632,57568:29669,57569:29678,57570:29662,57571:29858,57572:29701,57573:29807,57574:29733,57575:29688,57576:29746,57577:29754,57578:29781,57579:29759,57580:29791,57581:29785,57582:29761,57583:29788,57584:29801,57585:29808,57586:29795,57587:29802,57588:29814,57589:29822,57590:29835,57591:29854,57592:29863,57593:29898,57594:29903,57595:29908,57596:29681,57664:29920,57665:29923,57666:29927,57667:29929,57668:29934,57669:29938,57670:29936,57671:29937,57672:29944,57673:29943,57674:29956,57675:29955,57676:29957,57677:29964,57678:29966,57679:29965,57680:29973,57681:29971,57682:29982,57683:29990,57684:29996,57685:30012,57686:30020,57687:30029,57688:30026,57689:30025,57690:30043,57691:30022,57692:30042,57693:30057,57694:30052,57695:30055,57696:30059,57697:30061,57698:30072,57699:30070,57700:30086,57701:30087,57702:30068,57703:30090,57704:30089,57705:30082,57706:30100,57707:30106,57708:30109,57709:30117,57710:30115,57711:30146,57712:30131,57713:30147,57714:30133,57715:30141,57716:30136,57717:30140,57718:30129,57719:30157,57720:30154,57721:30162,57722:30169,57723:30179,57724:30174,57725:30206,57726:30207,57728:30204,57729:30209,57730:30192,57731:30202,57732:30194,57733:30195,57734:30219,57735:30221,57736:30217,57737:30239,57738:30247,57739:30240,57740:30241,57741:30242,57742:30244,57743:30260,57744:30256,57745:30267,57746:30279,57747:30280,57748:30278,57749:30300,57750:30296,57751:30305,57752:30306,57753:30312,57754:30313,57755:30314,57756:30311,57757:30316,57758:30320,57759:30322,57760:30326,57761:30328,57762:30332,57763:30336,57764:30339,57765:30344,57766:30347,57767:30350,57768:30358,57769:30355,57770:30361,57771:30362,57772:30384,57773:30388,57774:30392,57775:30393,57776:30394,57777:30402,57778:30413,57779:30422,57780:30418,57781:30430,57782:30433,57783:30437,57784:30439,57785:30442,57786:34351,57787:30459,57788:30472,57789:30471,57790:30468,57791:30505,57792:30500,57793:30494,57794:30501,57795:30502,57796:30491,57797:30519,57798:30520,57799:30535,57800:30554,57801:30568,57802:30571,57803:30555,57804:30565,57805:30591,57806:30590,57807:30585,57808:30606,57809:30603,57810:30609,57811:30624,57812:30622,57813:30640,57814:30646,57815:30649,57816:30655,57817:30652,57818:30653,57819:30651,57820:30663,57821:30669,57822:30679,57823:30682,57824:30684,57825:30691,57826:30702,57827:30716,57828:30732,57829:30738,57830:31014,57831:30752,57832:31018,57833:30789,57834:30862,57835:30836,57836:30854,57837:30844,57838:30874,57839:30860,57840:30883,57841:30901,57842:30890,57843:30895,57844:30929,57845:30918,57846:30923,57847:30932,57848:30910,57849:30908,57850:30917,57851:30922,57852:30956,57920:30951,57921:30938,57922:30973,57923:30964,57924:30983,57925:30994,57926:30993,57927:31001,57928:31020,57929:31019,57930:31040,57931:31072,57932:31063,57933:31071,57934:31066,57935:31061,57936:31059,57937:31098,57938:31103,57939:31114,57940:31133,57941:31143,57942:40779,57943:31146,57944:31150,57945:31155,57946:31161,57947:31162,57948:31177,57949:31189,57950:31207,57951:31212,57952:31201,57953:31203,57954:31240,57955:31245,57956:31256,57957:31257,57958:31264,57959:31263,57960:31104,57961:31281,57962:31291,57963:31294,57964:31287,57965:31299,57966:31319,57967:31305,57968:31329,57969:31330,57970:31337,57971:40861,57972:31344,57973:31353,57974:31357,57975:31368,57976:31383,57977:31381,57978:31384,57979:31382,57980:31401,57981:31432,57982:31408,57984:31414,57985:31429,57986:31428,57987:31423,57988:36995,57989:31431,57990:31434,57991:31437,57992:31439,57993:31445,57994:31443,57995:31449,57996:31450,57997:31453,57998:31457,57999:31458,58e3:31462,58001:31469,58002:31472,58003:31490,58004:31503,58005:31498,58006:31494,58007:31539,58008:31512,58009:31513,58010:31518,58011:31541,58012:31528,58013:31542,58014:31568,58015:31610,58016:31492,58017:31565,58018:31499,58019:31564,58020:31557,58021:31605,58022:31589,58023:31604,58024:31591,58025:31600,58026:31601,58027:31596,58028:31598,58029:31645,58030:31640,58031:31647,58032:31629,58033:31644,58034:31642,58035:31627,58036:31634,58037:31631,58038:31581,58039:31641,58040:31691,58041:31681,58042:31692,58043:31695,58044:31668,58045:31686,58046:31709,58047:31721,58048:31761,58049:31764,58050:31718,58051:31717,58052:31840,58053:31744,58054:31751,58055:31763,58056:31731,58057:31735,58058:31767,58059:31757,58060:31734,58061:31779,58062:31783,58063:31786,58064:31775,58065:31799,58066:31787,58067:31805,58068:31820,58069:31811,58070:31828,58071:31823,58072:31808,58073:31824,58074:31832,58075:31839,58076:31844,58077:31830,58078:31845,58079:31852,58080:31861,58081:31875,58082:31888,58083:31908,58084:31917,58085:31906,58086:31915,58087:31905,58088:31912,58089:31923,58090:31922,58091:31921,58092:31918,58093:31929,58094:31933,58095:31936,58096:31941,58097:31938,58098:31960,58099:31954,58100:31964,58101:31970,58102:39739,58103:31983,58104:31986,58105:31988,58106:31990,58107:31994,58108:32006,58176:32002,58177:32028,58178:32021,58179:32010,58180:32069,58181:32075,58182:32046,58183:32050,58184:32063,58185:32053,58186:32070,58187:32115,58188:32086,58189:32078,58190:32114,58191:32104,58192:32110,58193:32079,58194:32099,58195:32147,58196:32137,58197:32091,58198:32143,58199:32125,58200:32155,58201:32186,58202:32174,58203:32163,58204:32181,58205:32199,58206:32189,58207:32171,58208:32317,58209:32162,58210:32175,58211:32220,58212:32184,58213:32159,58214:32176,58215:32216,58216:32221,58217:32228,58218:32222,58219:32251,58220:32242,58221:32225,58222:32261,58223:32266,58224:32291,58225:32289,58226:32274,58227:32305,58228:32287,58229:32265,58230:32267,58231:32290,58232:32326,58233:32358,58234:32315,58235:32309,58236:32313,58237:32323,58238:32311,58240:32306,58241:32314,58242:32359,58243:32349,58244:32342,58245:32350,58246:32345,58247:32346,58248:32377,58249:32362,58250:32361,58251:32380,58252:32379,58253:32387,58254:32213,58255:32381,58256:36782,58257:32383,58258:32392,58259:32393,58260:32396,58261:32402,58262:32400,58263:32403,58264:32404,58265:32406,58266:32398,58267:32411,58268:32412,58269:32568,58270:32570,58271:32581,58272:32588,58273:32589,58274:32590,58275:32592,58276:32593,58277:32597,58278:32596,58279:32600,58280:32607,58281:32608,58282:32616,58283:32617,58284:32615,58285:32632,58286:32642,58287:32646,58288:32643,58289:32648,58290:32647,58291:32652,58292:32660,58293:32670,58294:32669,58295:32666,58296:32675,58297:32687,58298:32690,58299:32697,58300:32686,58301:32694,58302:32696,58303:35697,58304:32709,58305:32710,58306:32714,58307:32725,58308:32724,58309:32737,58310:32742,58311:32745,58312:32755,58313:32761,58314:39132,58315:32774,58316:32772,58317:32779,58318:32786,58319:32792,58320:32793,58321:32796,58322:32801,58323:32808,58324:32831,58325:32827,58326:32842,58327:32838,58328:32850,58329:32856,58330:32858,58331:32863,58332:32866,58333:32872,58334:32883,58335:32882,58336:32880,58337:32886,58338:32889,58339:32893,58340:32895,58341:32900,58342:32902,58343:32901,58344:32923,58345:32915,58346:32922,58347:32941,58348:20880,58349:32940,58350:32987,58351:32997,58352:32985,58353:32989,58354:32964,58355:32986,58356:32982,58357:33033,58358:33007,58359:33009,58360:33051,58361:33065,58362:33059,58363:33071,58364:33099,58432:38539,58433:33094,58434:33086,58435:33107,58436:33105,58437:33020,58438:33137,58439:33134,58440:33125,58441:33126,58442:33140,58443:33155,58444:33160,58445:33162,58446:33152,58447:33154,58448:33184,58449:33173,58450:33188,58451:33187,58452:33119,58453:33171,58454:33193,58455:33200,58456:33205,58457:33214,58458:33208,58459:33213,58460:33216,58461:33218,58462:33210,58463:33225,58464:33229,58465:33233,58466:33241,58467:33240,58468:33224,58469:33242,58470:33247,58471:33248,58472:33255,58473:33274,58474:33275,58475:33278,58476:33281,58477:33282,58478:33285,58479:33287,58480:33290,58481:33293,58482:33296,58483:33302,58484:33321,58485:33323,58486:33336,58487:33331,58488:33344,58489:33369,58490:33368,58491:33373,58492:33370,58493:33375,58494:33380,58496:33378,58497:33384,58498:33386,58499:33387,58500:33326,58501:33393,58502:33399,58503:33400,58504:33406,58505:33421,58506:33426,58507:33451,58508:33439,58509:33467,58510:33452,58511:33505,58512:33507,58513:33503,58514:33490,58515:33524,58516:33523,58517:33530,58518:33683,58519:33539,58520:33531,58521:33529,58522:33502,58523:33542,58524:33500,58525:33545,58526:33497,58527:33589,58528:33588,58529:33558,58530:33586,58531:33585,58532:33600,58533:33593,58534:33616,58535:33605,58536:33583,58537:33579,58538:33559,58539:33560,58540:33669,58541:33690,58542:33706,58543:33695,58544:33698,58545:33686,58546:33571,58547:33678,58548:33671,58549:33674,58550:33660,58551:33717,58552:33651,58553:33653,58554:33696,58555:33673,58556:33704,58557:33780,58558:33811,58559:33771,58560:33742,58561:33789,58562:33795,58563:33752,58564:33803,58565:33729,58566:33783,58567:33799,58568:33760,58569:33778,58570:33805,58571:33826,58572:33824,58573:33725,58574:33848,58575:34054,58576:33787,58577:33901,58578:33834,58579:33852,58580:34138,58581:33924,58582:33911,58583:33899,58584:33965,58585:33902,58586:33922,58587:33897,58588:33862,58589:33836,58590:33903,58591:33913,58592:33845,58593:33994,58594:33890,58595:33977,58596:33983,58597:33951,58598:34009,58599:33997,58600:33979,58601:34010,58602:34e3,58603:33985,58604:33990,58605:34006,58606:33953,58607:34081,58608:34047,58609:34036,58610:34071,58611:34072,58612:34092,58613:34079,58614:34069,58615:34068,58616:34044,58617:34112,58618:34147,58619:34136,58620:34120,58688:34113,58689:34306,58690:34123,58691:34133,58692:34176,58693:34212,58694:34184,58695:34193,58696:34186,58697:34216,58698:34157,58699:34196,58700:34203,58701:34282,58702:34183,58703:34204,58704:34167,58705:34174,58706:34192,58707:34249,58708:34234,58709:34255,58710:34233,58711:34256,58712:34261,58713:34269,58714:34277,58715:34268,58716:34297,58717:34314,58718:34323,58719:34315,58720:34302,58721:34298,58722:34310,58723:34338,58724:34330,58725:34352,58726:34367,58727:34381,58728:20053,58729:34388,58730:34399,58731:34407,58732:34417,58733:34451,58734:34467,58735:34473,58736:34474,58737:34443,58738:34444,58739:34486,58740:34479,58741:34500,58742:34502,58743:34480,58744:34505,58745:34851,58746:34475,58747:34516,58748:34526,58749:34537,58750:34540,58752:34527,58753:34523,58754:34543,58755:34578,58756:34566,58757:34568,58758:34560,58759:34563,58760:34555,58761:34577,58762:34569,58763:34573,58764:34553,58765:34570,58766:34612,58767:34623,58768:34615,58769:34619,58770:34597,58771:34601,58772:34586,58773:34656,58774:34655,58775:34680,58776:34636,58777:34638,58778:34676,58779:34647,58780:34664,58781:34670,58782:34649,58783:34643,58784:34659,58785:34666,58786:34821,58787:34722,58788:34719,58789:34690,58790:34735,58791:34763,58792:34749,58793:34752,58794:34768,58795:38614,58796:34731,58797:34756,58798:34739,58799:34759,58800:34758,58801:34747,58802:34799,58803:34802,58804:34784,58805:34831,58806:34829,58807:34814,58808:34806,58809:34807,58810:34830,58811:34770,58812:34833,58813:34838,58814:34837,58815:34850,58816:34849,58817:34865,58818:34870,58819:34873,58820:34855,58821:34875,58822:34884,58823:34882,58824:34898,58825:34905,58826:34910,58827:34914,58828:34923,58829:34945,58830:34942,58831:34974,58832:34933,58833:34941,58834:34997,58835:34930,58836:34946,58837:34967,58838:34962,58839:34990,58840:34969,58841:34978,58842:34957,58843:34980,58844:34992,58845:35007,58846:34993,58847:35011,58848:35012,58849:35028,58850:35032,58851:35033,58852:35037,58853:35065,58854:35074,58855:35068,58856:35060,58857:35048,58858:35058,58859:35076,58860:35084,58861:35082,58862:35091,58863:35139,58864:35102,58865:35109,58866:35114,58867:35115,58868:35137,58869:35140,58870:35131,58871:35126,58872:35128,58873:35148,58874:35101,58875:35168,58876:35166,58944:35174,58945:35172,58946:35181,58947:35178,58948:35183,58949:35188,58950:35191,58951:35198,58952:35203,58953:35208,58954:35210,58955:35219,58956:35224,58957:35233,58958:35241,58959:35238,58960:35244,58961:35247,58962:35250,58963:35258,58964:35261,58965:35263,58966:35264,58967:35290,58968:35292,58969:35293,58970:35303,58971:35316,58972:35320,58973:35331,58974:35350,58975:35344,58976:35340,58977:35355,58978:35357,58979:35365,58980:35382,58981:35393,58982:35419,58983:35410,58984:35398,58985:35400,58986:35452,58987:35437,58988:35436,58989:35426,58990:35461,58991:35458,58992:35460,58993:35496,58994:35489,58995:35473,58996:35493,58997:35494,58998:35482,58999:35491,59e3:35524,59001:35533,59002:35522,59003:35546,59004:35563,59005:35571,59006:35559,59008:35556,59009:35569,59010:35604,59011:35552,59012:35554,59013:35575,59014:35550,59015:35547,59016:35596,59017:35591,59018:35610,59019:35553,59020:35606,59021:35600,59022:35607,59023:35616,59024:35635,59025:38827,59026:35622,59027:35627,59028:35646,59029:35624,59030:35649,59031:35660,59032:35663,59033:35662,59034:35657,59035:35670,59036:35675,59037:35674,59038:35691,59039:35679,59040:35692,59041:35695,59042:35700,59043:35709,59044:35712,59045:35724,59046:35726,59047:35730,59048:35731,59049:35734,59050:35737,59051:35738,59052:35898,59053:35905,59054:35903,59055:35912,59056:35916,59057:35918,59058:35920,59059:35925,59060:35938,59061:35948,59062:35960,59063:35962,59064:35970,59065:35977,59066:35973,59067:35978,59068:35981,59069:35982,59070:35988,59071:35964,59072:35992,59073:25117,59074:36013,59075:36010,59076:36029,59077:36018,59078:36019,59079:36014,59080:36022,59081:36040,59082:36033,59083:36068,59084:36067,59085:36058,59086:36093,59087:36090,59088:36091,59089:36100,59090:36101,59091:36106,59092:36103,59093:36111,59094:36109,59095:36112,59096:40782,59097:36115,59098:36045,59099:36116,59100:36118,59101:36199,59102:36205,59103:36209,59104:36211,59105:36225,59106:36249,59107:36290,59108:36286,59109:36282,59110:36303,59111:36314,59112:36310,59113:36300,59114:36315,59115:36299,59116:36330,59117:36331,59118:36319,59119:36323,59120:36348,59121:36360,59122:36361,59123:36351,59124:36381,59125:36382,59126:36368,59127:36383,59128:36418,59129:36405,59130:36400,59131:36404,59132:36426,59200:36423,59201:36425,59202:36428,59203:36432,59204:36424,59205:36441,59206:36452,59207:36448,59208:36394,59209:36451,59210:36437,59211:36470,59212:36466,59213:36476,59214:36481,59215:36487,59216:36485,59217:36484,59218:36491,59219:36490,59220:36499,59221:36497,59222:36500,59223:36505,59224:36522,59225:36513,59226:36524,59227:36528,59228:36550,59229:36529,59230:36542,59231:36549,59232:36552,59233:36555,59234:36571,59235:36579,59236:36604,59237:36603,59238:36587,59239:36606,59240:36618,59241:36613,59242:36629,59243:36626,59244:36633,59245:36627,59246:36636,59247:36639,59248:36635,59249:36620,59250:36646,59251:36659,59252:36667,59253:36665,59254:36677,59255:36674,59256:36670,59257:36684,59258:36681,59259:36678,59260:36686,59261:36695,59262:36700,59264:36706,59265:36707,59266:36708,59267:36764,59268:36767,59269:36771,59270:36781,59271:36783,59272:36791,59273:36826,59274:36837,59275:36834,59276:36842,59277:36847,59278:36999,59279:36852,59280:36869,59281:36857,59282:36858,59283:36881,59284:36885,59285:36897,59286:36877,59287:36894,59288:36886,59289:36875,59290:36903,59291:36918,59292:36917,59293:36921,59294:36856,59295:36943,59296:36944,59297:36945,59298:36946,59299:36878,59300:36937,59301:36926,59302:36950,59303:36952,59304:36958,59305:36968,59306:36975,59307:36982,59308:38568,59309:36978,59310:36994,59311:36989,59312:36993,59313:36992,59314:37002,59315:37001,59316:37007,59317:37032,59318:37039,59319:37041,59320:37045,59321:37090,59322:37092,59323:25160,59324:37083,59325:37122,59326:37138,59327:37145,59328:37170,59329:37168,59330:37194,59331:37206,59332:37208,59333:37219,59334:37221,59335:37225,59336:37235,59337:37234,59338:37259,59339:37257,59340:37250,59341:37282,59342:37291,59343:37295,59344:37290,59345:37301,59346:37300,59347:37306,59348:37312,59349:37313,59350:37321,59351:37323,59352:37328,59353:37334,59354:37343,59355:37345,59356:37339,59357:37372,59358:37365,59359:37366,59360:37406,59361:37375,59362:37396,59363:37420,59364:37397,59365:37393,59366:37470,59367:37463,59368:37445,59369:37449,59370:37476,59371:37448,59372:37525,59373:37439,59374:37451,59375:37456,59376:37532,59377:37526,59378:37523,59379:37531,59380:37466,59381:37583,59382:37561,59383:37559,59384:37609,59385:37647,59386:37626,59387:37700,59388:37678,59456:37657,59457:37666,59458:37658,59459:37667,59460:37690,59461:37685,59462:37691,59463:37724,59464:37728,59465:37756,59466:37742,59467:37718,59468:37808,59469:37804,59470:37805,59471:37780,59472:37817,59473:37846,59474:37847,59475:37864,59476:37861,59477:37848,59478:37827,59479:37853,59480:37840,59481:37832,59482:37860,59483:37914,59484:37908,59485:37907,59486:37891,59487:37895,59488:37904,59489:37942,59490:37931,59491:37941,59492:37921,59493:37946,59494:37953,59495:37970,59496:37956,59497:37979,59498:37984,59499:37986,59500:37982,59501:37994,59502:37417,59503:38e3,59504:38005,59505:38007,59506:38013,59507:37978,59508:38012,59509:38014,59510:38017,59511:38015,59512:38274,59513:38279,59514:38282,59515:38292,59516:38294,59517:38296,59518:38297,59520:38304,59521:38312,59522:38311,59523:38317,59524:38332,59525:38331,59526:38329,59527:38334,59528:38346,59529:28662,59530:38339,59531:38349,59532:38348,59533:38357,59534:38356,59535:38358,59536:38364,59537:38369,59538:38373,59539:38370,59540:38433,59541:38440,59542:38446,59543:38447,59544:38466,59545:38476,59546:38479,59547:38475,59548:38519,59549:38492,59550:38494,59551:38493,59552:38495,59553:38502,59554:38514,59555:38508,59556:38541,59557:38552,59558:38549,59559:38551,59560:38570,59561:38567,59562:38577,59563:38578,59564:38576,59565:38580,59566:38582,59567:38584,59568:38585,59569:38606,59570:38603,59571:38601,59572:38605,59573:35149,59574:38620,59575:38669,59576:38613,59577:38649,59578:38660,59579:38662,59580:38664,59581:38675,59582:38670,59583:38673,59584:38671,59585:38678,59586:38681,59587:38692,59588:38698,59589:38704,59590:38713,59591:38717,59592:38718,59593:38724,59594:38726,59595:38728,59596:38722,59597:38729,59598:38748,59599:38752,59600:38756,59601:38758,59602:38760,59603:21202,59604:38763,59605:38769,59606:38777,59607:38789,59608:38780,59609:38785,59610:38778,59611:38790,59612:38795,59613:38799,59614:38800,59615:38812,59616:38824,59617:38822,59618:38819,59619:38835,59620:38836,59621:38851,59622:38854,59623:38856,59624:38859,59625:38876,59626:38893,59627:40783,59628:38898,59629:31455,59630:38902,59631:38901,59632:38927,59633:38924,59634:38968,59635:38948,59636:38945,59637:38967,59638:38973,59639:38982,59640:38991,59641:38987,59642:39019,59643:39023,59644:39024,59712:39025,59713:39028,59714:39027,59715:39082,59716:39087,59717:39089,59718:39094,59719:39108,59720:39107,59721:39110,59722:39145,59723:39147,59724:39171,59725:39177,59726:39186,59727:39188,59728:39192,59729:39201,59730:39197,59731:39198,59732:39204,59733:39200,59734:39212,59735:39214,59736:39229,59737:39230,59738:39234,59739:39241,59740:39237,59741:39248,59742:39243,59743:39249,59744:39250,59745:39244,59746:39253,59747:39319,59748:39320,59749:39333,59750:39341,59751:39342,59752:39356,59753:39391,59754:39387,59755:39389,59756:39384,59757:39377,59758:39405,59759:39406,59760:39409,59761:39410,59762:39419,59763:39416,59764:39425,59765:39439,59766:39429,59767:39394,59768:39449,59769:39467,59770:39479,59771:39493,59772:39490,59773:39488,59774:39491,59776:39486,59777:39509,59778:39501,59779:39515,59780:39511,59781:39519,59782:39522,59783:39525,59784:39524,59785:39529,59786:39531,59787:39530,59788:39597,59789:39600,59790:39612,59791:39616,59792:39631,59793:39633,59794:39635,59795:39636,59796:39646,59797:39647,59798:39650,59799:39651,59800:39654,59801:39663,59802:39659,59803:39662,59804:39668,59805:39665,59806:39671,59807:39675,59808:39686,59809:39704,59810:39706,59811:39711,59812:39714,59813:39715,59814:39717,59815:39719,59816:39720,59817:39721,59818:39722,59819:39726,59820:39727,59821:39730,59822:39748,59823:39747,59824:39759,59825:39757,59826:39758,59827:39761,59828:39768,59829:39796,59830:39827,59831:39811,59832:39825,59833:39830,59834:39831,59835:39839,59836:39840,59837:39848,59838:39860,59839:39872,59840:39882,59841:39865,59842:39878,59843:39887,59844:39889,59845:39890,59846:39907,59847:39906,59848:39908,59849:39892,59850:39905,59851:39994,59852:39922,59853:39921,59854:39920,59855:39957,59856:39956,59857:39945,59858:39955,59859:39948,59860:39942,59861:39944,59862:39954,59863:39946,59864:39940,59865:39982,59866:39963,59867:39973,59868:39972,59869:39969,59870:39984,59871:40007,59872:39986,59873:40006,59874:39998,59875:40026,59876:40032,59877:40039,59878:40054,59879:40056,59880:40167,59881:40172,59882:40176,59883:40201,59884:40200,59885:40171,59886:40195,59887:40198,59888:40234,59889:40230,59890:40367,59891:40227,59892:40223,59893:40260,59894:40213,59895:40210,59896:40257,59897:40255,59898:40254,59899:40262,59900:40264,59968:40285,59969:40286,59970:40292,59971:40273,59972:40272,59973:40281,59974:40306,59975:40329,59976:40327,59977:40363,59978:40303,59979:40314,59980:40346,59981:40356,59982:40361,59983:40370,59984:40388,59985:40385,59986:40379,59987:40376,59988:40378,59989:40390,59990:40399,59991:40386,59992:40409,59993:40403,59994:40440,59995:40422,59996:40429,59997:40431,59998:40445,59999:40474,6e4:40475,60001:40478,60002:40565,60003:40569,60004:40573,60005:40577,60006:40584,60007:40587,60008:40588,60009:40594,60010:40597,60011:40593,60012:40605,60013:40613,60014:40617,60015:40632,60016:40618,60017:40621,60018:38753,60019:40652,60020:40654,60021:40655,60022:40656,60023:40660,60024:40668,60025:40670,60026:40669,60027:40672,60028:40677,60029:40680,60030:40687,60032:40692,60033:40694,60034:40695,60035:40697,60036:40699,60037:40700,60038:40701,60039:40711,60040:40712,60041:30391,60042:40725,60043:40737,60044:40748,60045:40766,60046:40778,60047:40786,60048:40788,60049:40803,60050:40799,60051:40800,60052:40801,60053:40806,60054:40807,60055:40812,60056:40810,60057:40823,60058:40818,60059:40822,60060:40853,60061:40860,60062:40864,60063:22575,60064:27079,60065:36953,60066:29796,60067:20956,60068:29081}}),(function(r,i,l){Object.defineProperty(i,"__esModule",{value:!0});var o=l(1),u=l(2);function d(p,y,b,C){var k;y.degree()<b.degree()&&(k=[b,y],y=k[0],b=k[1]);for(var v=y,A=b,F=p.zero,N=p.one;A.degree()>=C/2;){var _=v,S=F;if(v=A,F=N,v.isZero())return null;A=_;for(var w=p.zero,O=v.getCoefficient(v.degree()),z=p.inverse(O);A.degree()>=v.degree()&&!A.isZero();){var P=A.degree()-v.degree(),T=p.multiply(A.getCoefficient(A.degree()),z);w=w.addOrSubtract(p.buildMonomial(P,T)),A=A.addOrSubtract(v.multiplyByMonomial(P,T))}if(N=w.multiplyPoly(F).addOrSubtract(S),A.degree()>=v.degree())return null}var $=N.getCoefficient(0);if($===0)return null;var G=p.inverse($);return[N.multiply(G),A.multiply(G)]}function f(p,y){var b=y.degree();if(b===1)return[y.getCoefficient(1)];for(var C=new Array(b),k=0,v=1;v<p.size&&k<b;v++)y.evaluateAt(v)===0&&(C[k]=p.inverse(v),k++);return k!==b?null:C}function h(p,y,b){for(var C=b.length,k=new Array(C),v=0;v<C;v++){for(var A=p.inverse(b[v]),F=1,N=0;N<C;N++)v!==N&&(F=p.multiply(F,o.addOrSubtractGF(1,p.multiply(b[N],A))));k[v]=p.multiply(y.evaluateAt(A),p.inverse(F)),p.generatorBase!==0&&(k[v]=p.multiply(k[v],A))}return k}function m(p,y){var b=new Uint8ClampedArray(p.length);b.set(p);for(var C=new o.default(285,256,0),k=new u.default(C,b),v=new Uint8ClampedArray(y),A=!1,F=0;F<y;F++){var N=k.evaluateAt(C.exp(F+C.generatorBase));v[v.length-1-F]=N,N!==0&&(A=!0)}if(!A)return b;var _=new u.default(C,v),S=d(C,C.buildMonomial(y,1),_,y);if(S===null)return null;var w=f(C,S[0]);if(w==null)return null;for(var O=h(C,S[1],w),z=0;z<w.length;z++){var P=b.length-1-C.log(w[z]);if(P<0)return null;b[P]=o.addOrSubtractGF(b[P],O[z])}return b}i.decode=m}),(function(r,i,l){Object.defineProperty(i,"__esModule",{value:!0}),i.VERSIONS=[{infoBits:null,versionNumber:1,alignmentPatternCenters:[],errorCorrectionLevels:[{ecCodewordsPerBlock:7,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:19}]},{ecCodewordsPerBlock:10,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:16}]},{ecCodewordsPerBlock:13,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:13}]},{ecCodewordsPerBlock:17,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:9}]}]},{infoBits:null,versionNumber:2,alignmentPatternCenters:[6,18],errorCorrectionLevels:[{ecCodewordsPerBlock:10,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:34}]},{ecCodewordsPerBlock:16,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:28}]},{ecCodewordsPerBlock:22,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:22}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:16}]}]},{infoBits:null,versionNumber:3,alignmentPatternCenters:[6,22],errorCorrectionLevels:[{ecCodewordsPerBlock:15,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:55}]},{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:44}]},{ecCodewordsPerBlock:18,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:17}]},{ecCodewordsPerBlock:22,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:13}]}]},{infoBits:null,versionNumber:4,alignmentPatternCenters:[6,26],errorCorrectionLevels:[{ecCodewordsPerBlock:20,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:80}]},{ecCodewordsPerBlock:18,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:32}]},{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:24}]},{ecCodewordsPerBlock:16,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:9}]}]},{infoBits:null,versionNumber:5,alignmentPatternCenters:[6,30],errorCorrectionLevels:[{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:108}]},{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:43}]},{ecCodewordsPerBlock:18,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:15},{numBlocks:2,dataCodewordsPerBlock:16}]},{ecCodewordsPerBlock:22,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:11},{numBlocks:2,dataCodewordsPerBlock:12}]}]},{infoBits:null,versionNumber:6,alignmentPatternCenters:[6,34],errorCorrectionLevels:[{ecCodewordsPerBlock:18,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:68}]},{ecCodewordsPerBlock:16,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:27}]},{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:19}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:15}]}]},{infoBits:31892,versionNumber:7,alignmentPatternCenters:[6,22,38],errorCorrectionLevels:[{ecCodewordsPerBlock:20,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:78}]},{ecCodewordsPerBlock:18,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:31}]},{ecCodewordsPerBlock:18,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:14},{numBlocks:4,dataCodewordsPerBlock:15}]},{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:13},{numBlocks:1,dataCodewordsPerBlock:14}]}]},{infoBits:34236,versionNumber:8,alignmentPatternCenters:[6,24,42],errorCorrectionLevels:[{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:97}]},{ecCodewordsPerBlock:22,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:38},{numBlocks:2,dataCodewordsPerBlock:39}]},{ecCodewordsPerBlock:22,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:18},{numBlocks:2,dataCodewordsPerBlock:19}]},{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:14},{numBlocks:2,dataCodewordsPerBlock:15}]}]},{infoBits:39577,versionNumber:9,alignmentPatternCenters:[6,26,46],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:116}]},{ecCodewordsPerBlock:22,ecBlocks:[{numBlocks:3,dataCodewordsPerBlock:36},{numBlocks:2,dataCodewordsPerBlock:37}]},{ecCodewordsPerBlock:20,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:16},{numBlocks:4,dataCodewordsPerBlock:17}]},{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:12},{numBlocks:4,dataCodewordsPerBlock:13}]}]},{infoBits:42195,versionNumber:10,alignmentPatternCenters:[6,28,50],errorCorrectionLevels:[{ecCodewordsPerBlock:18,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:68},{numBlocks:2,dataCodewordsPerBlock:69}]},{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:43},{numBlocks:1,dataCodewordsPerBlock:44}]},{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:6,dataCodewordsPerBlock:19},{numBlocks:2,dataCodewordsPerBlock:20}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:6,dataCodewordsPerBlock:15},{numBlocks:2,dataCodewordsPerBlock:16}]}]},{infoBits:48118,versionNumber:11,alignmentPatternCenters:[6,30,54],errorCorrectionLevels:[{ecCodewordsPerBlock:20,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:81}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:50},{numBlocks:4,dataCodewordsPerBlock:51}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:22},{numBlocks:4,dataCodewordsPerBlock:23}]},{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:3,dataCodewordsPerBlock:12},{numBlocks:8,dataCodewordsPerBlock:13}]}]},{infoBits:51042,versionNumber:12,alignmentPatternCenters:[6,32,58],errorCorrectionLevels:[{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:92},{numBlocks:2,dataCodewordsPerBlock:93}]},{ecCodewordsPerBlock:22,ecBlocks:[{numBlocks:6,dataCodewordsPerBlock:36},{numBlocks:2,dataCodewordsPerBlock:37}]},{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:20},{numBlocks:6,dataCodewordsPerBlock:21}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:7,dataCodewordsPerBlock:14},{numBlocks:4,dataCodewordsPerBlock:15}]}]},{infoBits:55367,versionNumber:13,alignmentPatternCenters:[6,34,62],errorCorrectionLevels:[{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:107}]},{ecCodewordsPerBlock:22,ecBlocks:[{numBlocks:8,dataCodewordsPerBlock:37},{numBlocks:1,dataCodewordsPerBlock:38}]},{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:8,dataCodewordsPerBlock:20},{numBlocks:4,dataCodewordsPerBlock:21}]},{ecCodewordsPerBlock:22,ecBlocks:[{numBlocks:12,dataCodewordsPerBlock:11},{numBlocks:4,dataCodewordsPerBlock:12}]}]},{infoBits:58893,versionNumber:14,alignmentPatternCenters:[6,26,46,66],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:3,dataCodewordsPerBlock:115},{numBlocks:1,dataCodewordsPerBlock:116}]},{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:40},{numBlocks:5,dataCodewordsPerBlock:41}]},{ecCodewordsPerBlock:20,ecBlocks:[{numBlocks:11,dataCodewordsPerBlock:16},{numBlocks:5,dataCodewordsPerBlock:17}]},{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:11,dataCodewordsPerBlock:12},{numBlocks:5,dataCodewordsPerBlock:13}]}]},{infoBits:63784,versionNumber:15,alignmentPatternCenters:[6,26,48,70],errorCorrectionLevels:[{ecCodewordsPerBlock:22,ecBlocks:[{numBlocks:5,dataCodewordsPerBlock:87},{numBlocks:1,dataCodewordsPerBlock:88}]},{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:5,dataCodewordsPerBlock:41},{numBlocks:5,dataCodewordsPerBlock:42}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:5,dataCodewordsPerBlock:24},{numBlocks:7,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:11,dataCodewordsPerBlock:12},{numBlocks:7,dataCodewordsPerBlock:13}]}]},{infoBits:68472,versionNumber:16,alignmentPatternCenters:[6,26,50,74],errorCorrectionLevels:[{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:5,dataCodewordsPerBlock:98},{numBlocks:1,dataCodewordsPerBlock:99}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:7,dataCodewordsPerBlock:45},{numBlocks:3,dataCodewordsPerBlock:46}]},{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:15,dataCodewordsPerBlock:19},{numBlocks:2,dataCodewordsPerBlock:20}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:3,dataCodewordsPerBlock:15},{numBlocks:13,dataCodewordsPerBlock:16}]}]},{infoBits:70749,versionNumber:17,alignmentPatternCenters:[6,30,54,78],errorCorrectionLevels:[{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:107},{numBlocks:5,dataCodewordsPerBlock:108}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:10,dataCodewordsPerBlock:46},{numBlocks:1,dataCodewordsPerBlock:47}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:22},{numBlocks:15,dataCodewordsPerBlock:23}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:14},{numBlocks:17,dataCodewordsPerBlock:15}]}]},{infoBits:76311,versionNumber:18,alignmentPatternCenters:[6,30,56,82],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:5,dataCodewordsPerBlock:120},{numBlocks:1,dataCodewordsPerBlock:121}]},{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:9,dataCodewordsPerBlock:43},{numBlocks:4,dataCodewordsPerBlock:44}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:17,dataCodewordsPerBlock:22},{numBlocks:1,dataCodewordsPerBlock:23}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:14},{numBlocks:19,dataCodewordsPerBlock:15}]}]},{infoBits:79154,versionNumber:19,alignmentPatternCenters:[6,30,58,86],errorCorrectionLevels:[{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:3,dataCodewordsPerBlock:113},{numBlocks:4,dataCodewordsPerBlock:114}]},{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:3,dataCodewordsPerBlock:44},{numBlocks:11,dataCodewordsPerBlock:45}]},{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:17,dataCodewordsPerBlock:21},{numBlocks:4,dataCodewordsPerBlock:22}]},{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:9,dataCodewordsPerBlock:13},{numBlocks:16,dataCodewordsPerBlock:14}]}]},{infoBits:84390,versionNumber:20,alignmentPatternCenters:[6,34,62,90],errorCorrectionLevels:[{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:3,dataCodewordsPerBlock:107},{numBlocks:5,dataCodewordsPerBlock:108}]},{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:3,dataCodewordsPerBlock:41},{numBlocks:13,dataCodewordsPerBlock:42}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:15,dataCodewordsPerBlock:24},{numBlocks:5,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:15,dataCodewordsPerBlock:15},{numBlocks:10,dataCodewordsPerBlock:16}]}]},{infoBits:87683,versionNumber:21,alignmentPatternCenters:[6,28,50,72,94],errorCorrectionLevels:[{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:116},{numBlocks:4,dataCodewordsPerBlock:117}]},{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:17,dataCodewordsPerBlock:42}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:17,dataCodewordsPerBlock:22},{numBlocks:6,dataCodewordsPerBlock:23}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:19,dataCodewordsPerBlock:16},{numBlocks:6,dataCodewordsPerBlock:17}]}]},{infoBits:92361,versionNumber:22,alignmentPatternCenters:[6,26,50,74,98],errorCorrectionLevels:[{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:111},{numBlocks:7,dataCodewordsPerBlock:112}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:17,dataCodewordsPerBlock:46}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:7,dataCodewordsPerBlock:24},{numBlocks:16,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:34,dataCodewordsPerBlock:13}]}]},{infoBits:96236,versionNumber:23,alignmentPatternCenters:[6,30,54,74,102],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:121},{numBlocks:5,dataCodewordsPerBlock:122}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:47},{numBlocks:14,dataCodewordsPerBlock:48}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:11,dataCodewordsPerBlock:24},{numBlocks:14,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:16,dataCodewordsPerBlock:15},{numBlocks:14,dataCodewordsPerBlock:16}]}]},{infoBits:102084,versionNumber:24,alignmentPatternCenters:[6,28,54,80,106],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:6,dataCodewordsPerBlock:117},{numBlocks:4,dataCodewordsPerBlock:118}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:6,dataCodewordsPerBlock:45},{numBlocks:14,dataCodewordsPerBlock:46}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:11,dataCodewordsPerBlock:24},{numBlocks:16,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:30,dataCodewordsPerBlock:16},{numBlocks:2,dataCodewordsPerBlock:17}]}]},{infoBits:102881,versionNumber:25,alignmentPatternCenters:[6,32,58,84,110],errorCorrectionLevels:[{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:8,dataCodewordsPerBlock:106},{numBlocks:4,dataCodewordsPerBlock:107}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:8,dataCodewordsPerBlock:47},{numBlocks:13,dataCodewordsPerBlock:48}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:7,dataCodewordsPerBlock:24},{numBlocks:22,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:22,dataCodewordsPerBlock:15},{numBlocks:13,dataCodewordsPerBlock:16}]}]},{infoBits:110507,versionNumber:26,alignmentPatternCenters:[6,30,58,86,114],errorCorrectionLevels:[{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:10,dataCodewordsPerBlock:114},{numBlocks:2,dataCodewordsPerBlock:115}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:19,dataCodewordsPerBlock:46},{numBlocks:4,dataCodewordsPerBlock:47}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:28,dataCodewordsPerBlock:22},{numBlocks:6,dataCodewordsPerBlock:23}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:33,dataCodewordsPerBlock:16},{numBlocks:4,dataCodewordsPerBlock:17}]}]},{infoBits:110734,versionNumber:27,alignmentPatternCenters:[6,34,62,90,118],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:8,dataCodewordsPerBlock:122},{numBlocks:4,dataCodewordsPerBlock:123}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:22,dataCodewordsPerBlock:45},{numBlocks:3,dataCodewordsPerBlock:46}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:8,dataCodewordsPerBlock:23},{numBlocks:26,dataCodewordsPerBlock:24}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:12,dataCodewordsPerBlock:15},{numBlocks:28,dataCodewordsPerBlock:16}]}]},{infoBits:117786,versionNumber:28,alignmentPatternCenters:[6,26,50,74,98,122],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:3,dataCodewordsPerBlock:117},{numBlocks:10,dataCodewordsPerBlock:118}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:3,dataCodewordsPerBlock:45},{numBlocks:23,dataCodewordsPerBlock:46}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:24},{numBlocks:31,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:11,dataCodewordsPerBlock:15},{numBlocks:31,dataCodewordsPerBlock:16}]}]},{infoBits:119615,versionNumber:29,alignmentPatternCenters:[6,30,54,78,102,126],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:7,dataCodewordsPerBlock:116},{numBlocks:7,dataCodewordsPerBlock:117}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:21,dataCodewordsPerBlock:45},{numBlocks:7,dataCodewordsPerBlock:46}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:23},{numBlocks:37,dataCodewordsPerBlock:24}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:19,dataCodewordsPerBlock:15},{numBlocks:26,dataCodewordsPerBlock:16}]}]},{infoBits:126325,versionNumber:30,alignmentPatternCenters:[6,26,52,78,104,130],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:5,dataCodewordsPerBlock:115},{numBlocks:10,dataCodewordsPerBlock:116}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:19,dataCodewordsPerBlock:47},{numBlocks:10,dataCodewordsPerBlock:48}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:15,dataCodewordsPerBlock:24},{numBlocks:25,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:23,dataCodewordsPerBlock:15},{numBlocks:25,dataCodewordsPerBlock:16}]}]},{infoBits:127568,versionNumber:31,alignmentPatternCenters:[6,30,56,82,108,134],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:13,dataCodewordsPerBlock:115},{numBlocks:3,dataCodewordsPerBlock:116}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:46},{numBlocks:29,dataCodewordsPerBlock:47}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:42,dataCodewordsPerBlock:24},{numBlocks:1,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:23,dataCodewordsPerBlock:15},{numBlocks:28,dataCodewordsPerBlock:16}]}]},{infoBits:133589,versionNumber:32,alignmentPatternCenters:[6,34,60,86,112,138],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:17,dataCodewordsPerBlock:115}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:10,dataCodewordsPerBlock:46},{numBlocks:23,dataCodewordsPerBlock:47}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:10,dataCodewordsPerBlock:24},{numBlocks:35,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:19,dataCodewordsPerBlock:15},{numBlocks:35,dataCodewordsPerBlock:16}]}]},{infoBits:136944,versionNumber:33,alignmentPatternCenters:[6,30,58,86,114,142],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:17,dataCodewordsPerBlock:115},{numBlocks:1,dataCodewordsPerBlock:116}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:14,dataCodewordsPerBlock:46},{numBlocks:21,dataCodewordsPerBlock:47}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:29,dataCodewordsPerBlock:24},{numBlocks:19,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:11,dataCodewordsPerBlock:15},{numBlocks:46,dataCodewordsPerBlock:16}]}]},{infoBits:141498,versionNumber:34,alignmentPatternCenters:[6,34,62,90,118,146],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:13,dataCodewordsPerBlock:115},{numBlocks:6,dataCodewordsPerBlock:116}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:14,dataCodewordsPerBlock:46},{numBlocks:23,dataCodewordsPerBlock:47}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:44,dataCodewordsPerBlock:24},{numBlocks:7,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:59,dataCodewordsPerBlock:16},{numBlocks:1,dataCodewordsPerBlock:17}]}]},{infoBits:145311,versionNumber:35,alignmentPatternCenters:[6,30,54,78,102,126,150],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:12,dataCodewordsPerBlock:121},{numBlocks:7,dataCodewordsPerBlock:122}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:12,dataCodewordsPerBlock:47},{numBlocks:26,dataCodewordsPerBlock:48}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:39,dataCodewordsPerBlock:24},{numBlocks:14,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:22,dataCodewordsPerBlock:15},{numBlocks:41,dataCodewordsPerBlock:16}]}]},{infoBits:150283,versionNumber:36,alignmentPatternCenters:[6,24,50,76,102,128,154],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:6,dataCodewordsPerBlock:121},{numBlocks:14,dataCodewordsPerBlock:122}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:6,dataCodewordsPerBlock:47},{numBlocks:34,dataCodewordsPerBlock:48}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:46,dataCodewordsPerBlock:24},{numBlocks:10,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:15},{numBlocks:64,dataCodewordsPerBlock:16}]}]},{infoBits:152622,versionNumber:37,alignmentPatternCenters:[6,28,54,80,106,132,158],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:17,dataCodewordsPerBlock:122},{numBlocks:4,dataCodewordsPerBlock:123}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:29,dataCodewordsPerBlock:46},{numBlocks:14,dataCodewordsPerBlock:47}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:49,dataCodewordsPerBlock:24},{numBlocks:10,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:24,dataCodewordsPerBlock:15},{numBlocks:46,dataCodewordsPerBlock:16}]}]},{infoBits:158308,versionNumber:38,alignmentPatternCenters:[6,32,58,84,110,136,162],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:122},{numBlocks:18,dataCodewordsPerBlock:123}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:13,dataCodewordsPerBlock:46},{numBlocks:32,dataCodewordsPerBlock:47}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:48,dataCodewordsPerBlock:24},{numBlocks:14,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:42,dataCodewordsPerBlock:15},{numBlocks:32,dataCodewordsPerBlock:16}]}]},{infoBits:161089,versionNumber:39,alignmentPatternCenters:[6,26,54,82,110,138,166],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:20,dataCodewordsPerBlock:117},{numBlocks:4,dataCodewordsPerBlock:118}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:40,dataCodewordsPerBlock:47},{numBlocks:7,dataCodewordsPerBlock:48}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:43,dataCodewordsPerBlock:24},{numBlocks:22,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:10,dataCodewordsPerBlock:15},{numBlocks:67,dataCodewordsPerBlock:16}]}]},{infoBits:167017,versionNumber:40,alignmentPatternCenters:[6,30,58,86,114,142,170],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:19,dataCodewordsPerBlock:118},{numBlocks:6,dataCodewordsPerBlock:119}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:18,dataCodewordsPerBlock:47},{numBlocks:31,dataCodewordsPerBlock:48}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:34,dataCodewordsPerBlock:24},{numBlocks:34,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:20,dataCodewordsPerBlock:15},{numBlocks:61,dataCodewordsPerBlock:16}]}]}]}),(function(r,i,l){Object.defineProperty(i,"__esModule",{value:!0});var o=l(0);function u(m,p,y,b){var C=m.x-p.x+y.x-b.x,k=m.y-p.y+y.y-b.y;if(C===0&&k===0)return{a11:p.x-m.x,a12:p.y-m.y,a13:0,a21:y.x-p.x,a22:y.y-p.y,a23:0,a31:m.x,a32:m.y,a33:1};var v=p.x-y.x,A=b.x-y.x,F=p.y-y.y,N=b.y-y.y,_=v*N-A*F,S=(C*N-A*k)/_,w=(v*k-C*F)/_;return{a11:p.x-m.x+S*p.x,a12:p.y-m.y+S*p.y,a13:S,a21:b.x-m.x+w*b.x,a22:b.y-m.y+w*b.y,a23:w,a31:m.x,a32:m.y,a33:1}}function d(m,p,y,b){var C=u(m,p,y,b);return{a11:C.a22*C.a33-C.a23*C.a32,a12:C.a13*C.a32-C.a12*C.a33,a13:C.a12*C.a23-C.a13*C.a22,a21:C.a23*C.a31-C.a21*C.a33,a22:C.a11*C.a33-C.a13*C.a31,a23:C.a13*C.a21-C.a11*C.a23,a31:C.a21*C.a32-C.a22*C.a31,a32:C.a12*C.a31-C.a11*C.a32,a33:C.a11*C.a22-C.a12*C.a21}}function f(m,p){return{a11:m.a11*p.a11+m.a21*p.a12+m.a31*p.a13,a12:m.a12*p.a11+m.a22*p.a12+m.a32*p.a13,a13:m.a13*p.a11+m.a23*p.a12+m.a33*p.a13,a21:m.a11*p.a21+m.a21*p.a22+m.a31*p.a23,a22:m.a12*p.a21+m.a22*p.a22+m.a32*p.a23,a23:m.a13*p.a21+m.a23*p.a22+m.a33*p.a23,a31:m.a11*p.a31+m.a21*p.a32+m.a31*p.a33,a32:m.a12*p.a31+m.a22*p.a32+m.a32*p.a33,a33:m.a13*p.a31+m.a23*p.a32+m.a33*p.a33}}function h(m,p){for(var y=d({x:3.5,y:3.5},{x:p.dimension-3.5,y:3.5},{x:p.dimension-6.5,y:p.dimension-6.5},{x:3.5,y:p.dimension-3.5}),b=u(p.topLeft,p.topRight,p.alignmentPattern,p.bottomLeft),C=f(b,y),k=o.BitMatrix.createEmpty(p.dimension,p.dimension),v=function(w,O){var z=C.a13*w+C.a23*O+C.a33;return{x:(C.a11*w+C.a21*O+C.a31)/z,y:(C.a12*w+C.a22*O+C.a32)/z}},A=0;A<p.dimension;A++)for(var F=0;F<p.dimension;F++){var N=F+.5,_=A+.5,S=v(N,_);k.set(F,A,m.get(Math.floor(S.x),Math.floor(S.y)))}return{matrix:k,mappingFunction:v}}i.extract=h}),(function(r,i,l){Object.defineProperty(i,"__esModule",{value:!0});var o=4,u=.5,d=1.5,f=function(N,_){return Math.sqrt(Math.pow(_.x-N.x,2)+Math.pow(_.y-N.y,2))};function h(N){return N.reduce(function(_,S){return _+S})}function m(N,_,S){var w,O,z,P,T=f(N,_),$=f(_,S),G=f(N,S),ae,ee,K;return $>=T&&$>=G?(w=[_,N,S],ae=w[0],ee=w[1],K=w[2]):G>=$&&G>=T?(O=[N,_,S],ae=O[0],ee=O[1],K=O[2]):(z=[N,S,_],ae=z[0],ee=z[1],K=z[2]),(K.x-ee.x)*(ae.y-ee.y)-(K.y-ee.y)*(ae.x-ee.x)<0&&(P=[K,ae],ae=P[0],K=P[1]),{bottomLeft:ae,topLeft:ee,topRight:K}}function p(N,_,S,w){var O=(h(b(N,S,w,5))/7+h(b(N,_,w,5))/7+h(b(S,N,w,5))/7+h(b(_,N,w,5))/7)/4;if(O<1)throw new Error("Invalid module size");var z=Math.round(f(N,_)/O),P=Math.round(f(N,S)/O),T=Math.floor((z+P)/2)+7;switch(T%4){case 0:T++;break;case 2:T--;break}return{dimension:T,moduleSize:O}}function y(N,_,S,w){var O=[{x:Math.floor(N.x),y:Math.floor(N.y)}],z=Math.abs(_.y-N.y)>Math.abs(_.x-N.x),P,T,$,G;z?(P=Math.floor(N.y),T=Math.floor(N.x),$=Math.floor(_.y),G=Math.floor(_.x)):(P=Math.floor(N.x),T=Math.floor(N.y),$=Math.floor(_.x),G=Math.floor(_.y));for(var ae=Math.abs($-P),ee=Math.abs(G-T),K=Math.floor(-ae/2),I=P<$?1:-1,Y=T<G?1:-1,ie=!0,xe=P,j=T;xe!==$+I;xe+=I){var L=z?j:xe,V=z?xe:j;if(S.get(L,V)!==ie&&(ie=!ie,O.push({x:L,y:V}),O.length===w+1))break;if(K+=ee,K>0){if(j===G)break;j+=Y,K-=ae}}for(var R=[],se=0;se<w;se++)O[se]&&O[se+1]?R.push(f(O[se],O[se+1])):R.push(0);return R}function b(N,_,S,w){var O,z=_.y-N.y,P=_.x-N.x,T=y(N,_,S,Math.ceil(w/2)),$=y(N,{x:N.x-P,y:N.y-z},S,Math.ceil(w/2)),G=T.shift()+$.shift()-1;return(O=$.concat(G)).concat.apply(O,T)}function C(N,_){var S=h(N)/h(_),w=0;return _.forEach(function(O,z){w+=Math.pow(N[z]-O*S,2)}),{averageSize:S,error:w}}function k(N,_,S){try{var w=b(N,{x:-1,y:N.y},S,_.length),O=b(N,{x:N.x,y:-1},S,_.length),z={x:Math.max(0,N.x-N.y)-1,y:Math.max(0,N.y-N.x)-1},P=b(N,z,S,_.length),T={x:Math.min(S.width,N.x+N.y)+1,y:Math.min(S.height,N.y+N.x)+1},$=b(N,T,S,_.length),G=C(w,_),ae=C(O,_),ee=C(P,_),K=C($,_),I=Math.sqrt(G.error*G.error+ae.error*ae.error+ee.error*ee.error+K.error*K.error),Y=(G.averageSize+ae.averageSize+ee.averageSize+K.averageSize)/4,ie=(Math.pow(G.averageSize-Y,2)+Math.pow(ae.averageSize-Y,2)+Math.pow(ee.averageSize-Y,2)+Math.pow(K.averageSize-Y,2))/Y;return I+ie}catch{return 1/0}}function v(N,_){for(var S=Math.round(_.x);N.get(S,Math.round(_.y));)S--;for(var w=Math.round(_.x);N.get(w,Math.round(_.y));)w++;for(var O=(S+w)/2,z=Math.round(_.y);N.get(Math.round(O),z);)z--;for(var P=Math.round(_.y);N.get(Math.round(O),P);)P++;var T=(z+P)/2;return{x:O,y:T}}function A(N){for(var _=[],S=[],w=[],O=[],z=function(L){for(var V=0,R=!1,se=[0,0,0,0,0],be=function(me){var Ue=N.get(me,L);if(Ue===R)V++;else{se=[se[1],se[2],se[3],se[4],V],V=1,R=Ue;var Be=h(se)/7,tt=Math.abs(se[0]-Be)<Be&&Math.abs(se[1]-Be)<Be&&Math.abs(se[2]-3*Be)<3*Be&&Math.abs(se[3]-Be)<Be&&Math.abs(se[4]-Be)<Be&&!Ue,ct=h(se.slice(-3))/3,we=Math.abs(se[2]-ct)<ct&&Math.abs(se[3]-ct)<ct&&Math.abs(se[4]-ct)<ct&&Ue;if(tt){var Nt=me-se[3]-se[4],Fe=Nt-se[2],ne={startX:Fe,endX:Nt,y:L},Oe=S.filter(function(Et){return Fe>=Et.bottom.startX&&Fe<=Et.bottom.endX||Nt>=Et.bottom.startX&&Fe<=Et.bottom.endX||Fe<=Et.bottom.startX&&Nt>=Et.bottom.endX&&se[2]/(Et.bottom.endX-Et.bottom.startX)<d&&se[2]/(Et.bottom.endX-Et.bottom.startX)>u});Oe.length>0?Oe[0].bottom=ne:S.push({top:ne,bottom:ne})}if(we){var at=me-se[4],Ct=at-se[3],ne={startX:Ct,y:L,endX:at},Oe=O.filter(function(nt){return Ct>=nt.bottom.startX&&Ct<=nt.bottom.endX||at>=nt.bottom.startX&&Ct<=nt.bottom.endX||Ct<=nt.bottom.startX&&at>=nt.bottom.endX&&se[2]/(nt.bottom.endX-nt.bottom.startX)<d&&se[2]/(nt.bottom.endX-nt.bottom.startX)>u});Oe.length>0?Oe[0].bottom=ne:O.push({top:ne,bottom:ne})}}},W=-1;W<=N.width;W++)be(W);_.push.apply(_,S.filter(function(me){return me.bottom.y!==L&&me.bottom.y-me.top.y>=2})),S=S.filter(function(me){return me.bottom.y===L}),w.push.apply(w,O.filter(function(me){return me.bottom.y!==L})),O=O.filter(function(me){return me.bottom.y===L})},P=0;P<=N.height;P++)z(P);_.push.apply(_,S.filter(function(L){return L.bottom.y-L.top.y>=2})),w.push.apply(w,O);var T=_.filter(function(L){return L.bottom.y-L.top.y>=2}).map(function(L){var V=(L.top.startX+L.top.endX+L.bottom.startX+L.bottom.endX)/4,R=(L.top.y+L.bottom.y+1)/2;if(N.get(Math.round(V),Math.round(R))){var se=[L.top.endX-L.top.startX,L.bottom.endX-L.bottom.startX,L.bottom.y-L.top.y+1],be=h(se)/se.length,W=k({x:Math.round(V),y:Math.round(R)},[1,1,3,1,1],N);return{score:W,x:V,y:R,size:be}}}).filter(function(L){return!!L}).sort(function(L,V){return L.score-V.score}).map(function(L,V,R){if(V>o)return null;var se=R.filter(function(W,me){return V!==me}).map(function(W){return{x:W.x,y:W.y,score:W.score+Math.pow(W.size-L.size,2)/L.size,size:W.size}}).sort(function(W,me){return W.score-me.score});if(se.length<2)return null;var be=L.score+se[0].score+se[1].score;return{points:[L].concat(se.slice(0,2)),score:be}}).filter(function(L){return!!L}).sort(function(L,V){return L.score-V.score});if(T.length===0)return null;var $=m(T[0].points[0],T[0].points[1],T[0].points[2]),G=$.topRight,ae=$.topLeft,ee=$.bottomLeft,K=F(N,w,G,ae,ee),I=[];K&&I.push({alignmentPattern:{x:K.alignmentPattern.x,y:K.alignmentPattern.y},bottomLeft:{x:ee.x,y:ee.y},dimension:K.dimension,topLeft:{x:ae.x,y:ae.y},topRight:{x:G.x,y:G.y}});var Y=v(N,G),ie=v(N,ae),xe=v(N,ee),j=F(N,w,Y,ie,xe);return j&&I.push({alignmentPattern:{x:j.alignmentPattern.x,y:j.alignmentPattern.y},bottomLeft:{x:xe.x,y:xe.y},topLeft:{x:ie.x,y:ie.y},topRight:{x:Y.x,y:Y.y},dimension:j.dimension}),I.length===0?null:I}i.locate=A;function F(N,_,S,w,O){var z,P,T;try{z=p(w,S,O,N),P=z.dimension,T=z.moduleSize}catch{return null}var $={x:S.x-w.x+O.x,y:S.y-w.y+O.y},G=(f(w,O)+f(w,S))/2/T,ae=1-3/G,ee={x:w.x+ae*($.x-w.x),y:w.y+ae*($.y-w.y)},K=_.map(function(Y){var ie=(Y.top.startX+Y.top.endX+Y.bottom.startX+Y.bottom.endX)/4,xe=(Y.top.y+Y.bottom.y+1)/2;if(N.get(Math.floor(ie),Math.floor(xe))){var j=[Y.top.endX-Y.top.startX,Y.bottom.endX-Y.bottom.startX,Y.bottom.y-Y.top.y+1];h(j)/j.length;var L=k({x:Math.floor(ie),y:Math.floor(xe)},[1,1,1],N),V=L+f({x:ie,y:xe},ee);return{x:ie,y:xe,score:V}}}).filter(function(Y){return!!Y}).sort(function(Y,ie){return Y.score-ie.score}),I=G>=15&&K.length?K[0]:ee;return{alignmentPattern:I,dimension:P}}})]).default})})(X0)),X0.exports}var nI=tI();const rI=no(nI);function aI({onResult:e,onClose:t}){const r=D.useRef(null),[i,l]=D.useState(null);return D.useEffect(()=>{let o=null,u=0,d=!1;const f=document.createElement("canvas"),h=f.getContext("2d",{willReadFrequently:!0}),m=()=>{const p=r.current;if(!(d||!p||!h)){if(p.readyState>=p.HAVE_ENOUGH_DATA&&p.videoWidth){f.width=p.videoWidth,f.height=p.videoHeight,h.drawImage(p,0,0,f.width,f.height);const{data:y,width:b,height:C}=h.getImageData(0,0,f.width,f.height),k=rI(y,b,C,{inversionAttempts:"dontInvert"});if(k?.data){d=!0,e(k.data);return}}u=requestAnimationFrame(m)}};return navigator.mediaDevices?.getUserMedia({video:{facingMode:"environment"}}).then(p=>{if(d){for(const b of p.getTracks())b.stop();return}o=p;const y=r.current;y&&(y.srcObject=p,y.play(),u=requestAnimationFrame(m))}).catch(p=>l(iI(p))),()=>{if(d=!0,cancelAnimationFrame(u),o)for(const p of o.getTracks())p.stop()}},[e]),x.jsxs("div",{className:"fixed inset-0 z-[60] bg-black",children:[x.jsx("video",{ref:r,muted:!0,playsInline:!0,className:"h-full w-full object-cover"}),x.jsx("div",{className:"pointer-events-none absolute inset-0 grid place-items-center",children:x.jsx("div",{className:"size-60 max-w-[70vw] rounded-3xl border-2 border-white/80 shadow-[0_0_0_100vmax_rgba(0,0,0,0.5)]"})}),x.jsxs("div",{className:"pt-safe absolute inset-x-0 top-0 flex items-center justify-between p-4",children:[x.jsx("span",{className:"rounded-full bg-black/50 px-3 py-1 text-sm text-white",children:"Point at the relay QR"}),x.jsx("button",{type:"button",onClick:t,"aria-label":"Cancel scan",className:"flex size-9 items-center justify-center rounded-full bg-black/50 text-white active:bg-black/70",children:x.jsx(En,{size:20})})]}),i?x.jsx("div",{className:"pb-safe absolute inset-x-0 bottom-0 bg-black/75 p-4 text-center text-sm leading-relaxed text-white",children:i}):null]})}function iI(e){const t=e instanceof DOMException?e.name:"";return t==="NotAllowedError"?"Camera permission denied. Allow camera access, or paste the token instead.":t==="NotFoundError"||t==="OverconstrainedError"?"No camera found — paste the token instead.":window.isSecureContext?`Camera unavailable (${e instanceof Error?e.message:String(e)}). Paste the token instead.`:"The camera needs HTTPS. Open the relay’s https:// URL, or paste the token."}function sI(){const e=ve(h=>h.setToken),[t,r]=D.useState(""),[i,l]=D.useState(!1),[o,u]=D.useState(!1),d=h=>{const m=jw(h);u(!1),m?e(m):l(!0)},f=h=>{h.preventDefault(),d(t)};return o?x.jsx(aI,{onResult:d,onClose:()=>u(!1)}):x.jsxs("div",{className:"pt-safe pb-safe flex h-full flex-col items-center justify-center gap-5 overflow-y-auto px-8 text-center",children:[x.jsx("img",{src:"/icon.svg",alt:"",className:"size-20 rounded-3xl"}),x.jsxs("div",{children:[x.jsx("h1",{className:"text-xl font-semibold",children:"Conductor Remote"}),x.jsx("p",{className:"mt-1 text-sm text-muted",children:"Phone control panel for your local agents"})]}),x.jsxs("p",{className:"max-w-xs text-sm leading-relaxed text-muted",children:["Open the URL the relay printed on startup — it carries your access token (",x.jsx("span",{className:"font-mono text-faint",children:"/#token=…"}),"). Then use"," ",x.jsx("b",{className:"text-text",children:"Add to Home Screen"})," to install it."]}),x.jsxs("form",{onSubmit:f,className:"flex w-full max-w-xs flex-col gap-2",children:[x.jsx("input",{type:"text",inputMode:"text",autoCapitalize:"none",autoCorrect:"off",spellCheck:!1,value:t,onChange:h=>{r(h.target.value),l(!1)},placeholder:"Paste token or URL","aria-label":"Access token or URL",className:"rounded-xl border border-border bg-surface-2 px-3 py-2.5 text-center font-mono text-base text-text placeholder:font-sans placeholder:text-faint"}),x.jsx("button",{type:"submit",className:"pill pill-active justify-center py-2.5",children:"Connect"}),x.jsxs("button",{type:"button",onClick:()=>{l(!1),u(!0)},className:"pill justify-center gap-2 py-2.5",children:[x.jsx(Z8,{size:16}),"Scan QR"]}),i?x.jsx("p",{className:"text-xs",style:{color:"var(--color-del)"},children:"Couldn’t find a token in that — paste the token or the full URL, or scan the QR."}):null]}),x.jsxs("p",{className:"max-w-xs text-xs leading-relaxed text-faint",children:["Lost it? Run ",x.jsx("span",{className:"font-mono",children:"yarn service status"})," on your Mac to reprint the QR, then scan it above — no need to retype anything."]})]})}const ad={voice:"marin",language:"auto"},x6="conductor-remote-voice";function lI(e=localStorage){try{const t=JSON.parse(e.getItem(x6)??"{}");return{voice:kw(t.voice)?t.voice:ad.voice,language:Aw(t.language)?t.language:ad.language}}catch{return ad}}function oI(e,t=localStorage){try{t.setItem(x6,JSON.stringify(e))}catch{}}function Ar(e,t){return typeof e[t]=="string"?e[t]:null}function cI(e){let t=e;if(typeof t=="string")try{t=JSON.parse(t)}catch{return null}if(!t||typeof t!="object")return null;const r=t,i=Ar(r,"type"),l=Ar(r,"item_id")??Ar(r,"call_id")??"voice-item";if(i==="conversation.item.input_audio_transcription.delta"){const o=Ar(r,"delta");return o===null?null:{kind:"input-delta",itemId:l,text:o}}if(i==="conversation.item.input_audio_transcription.completed"){const o=Ar(r,"transcript");return o===null?null:{kind:"input-done",itemId:l,text:o}}if(i==="response.output_audio_transcript.delta"||i==="response.audio_transcript.delta"){const o=Ar(r,"delta");return o===null?null:{kind:"output-delta",itemId:l,text:o}}if(i==="response.output_audio_transcript.done"||i==="response.audio_transcript.done"){const o=Ar(r,"transcript");return o===null?null:{kind:"output-done",itemId:l,text:o}}if(i==="response.output_text.delta"){const o=Ar(r,"delta");return o===null?null:{kind:"output-delta",itemId:l,text:o}}if(i==="response.output_text.done"){const o=Ar(r,"text");return o===null?null:{kind:"output-done",itemId:l,text:o}}if(i==="response.function_call_arguments.done"){const o=Ar(r,"name");return o===null?null:{kind:"tool",itemId:l,name:o}}if(i==="input_audio_buffer.speech_started")return{kind:"speech-started"};if(i==="response.created")return{kind:"response-started"};if(i==="response.done"){const o=r.response&&typeof r.response=="object"?r.response:null,u=o?.error&&typeof o.error=="object"?o.error:null,d=u?Ar(u,"message"):null;return d?{kind:"response-done",error:d}:{kind:"response-done"}}if(i==="error"){const o=r.error&&typeof r.error=="object"?r.error:null;return{kind:"error",text:o&&Ar(o,"message")||"Voice call failed"}}return null}function uI(e){switch(e){case"voice_roll_call":return"Checking the fleet";case"voice_workspace_overview":return"Refreshing workspace overview";case"voice_next_decision":return"Opening the next decision";case"voice_send_preview":return"Preparing a guarded send";case"voice_send":return"Queueing the approved prompt";default:return"Working with the relay"}}const d6=D.createContext(null);function H0(e){return[...e.values()].join(" ").trimStart()}function xI(e){return e instanceof DOMException&&(e.name==="NotAllowedError"||e.name==="SecurityError")}function dI({children:e}){const[t,r]=D.useState(!1),[i,l]=D.useState("idle"),[o,u]=D.useState(!1),[d,f]=D.useState(null),[h,m]=D.useState([]),[p,y]=D.useState(""),[b,C]=D.useState(""),[k,v]=D.useState(lI),A=D.useRef("idle"),F=D.useRef(k),N=D.useRef(0),_=D.useRef(null),S=D.useRef(null),w=D.useRef(null),O=D.useRef(null),z=D.useRef(null),P=D.useRef(null),T=D.useRef(new Map),$=D.useRef(new Map),G=D.useRef(new Set),ae=D.useRef(new Set),ee=D.useRef(new Set),K=D.useRef(null);F.current=k;const I=D.useCallback(Fe=>{A.current=Fe,l(Fe)},[]),Y=D.useCallback(Fe=>{m(ne=>ne.some(Oe=>Oe.id===Fe.id)?ne:[...ne,Fe])},[]),ie=D.useCallback(()=>{T.current.clear(),$.current.clear(),y(""),C("")},[]),xe=D.useCallback(()=>{N.current+=1,K.current&&clearTimeout(K.current),K.current=null;try{S.current?.close()}catch{}try{_.current?.close()}catch{}for(const Fe of w.current?.getTracks()??[])Fe.stop();z.current&&(z.current.srcObject=null),_.current=null,S.current=null,w.current=null,O.current=null,z.current=null,P.current=null,ie()},[ie]),j=D.useCallback(Fe=>{const ne=P.current;xe(),u(!1),I("idle"),f(Fe),ne&&De.voiceCallEnd(ne).catch(()=>{})},[xe,I]),L=D.useCallback(Fe=>{const ne=cI(Fe);if(ne)switch(ne.kind){case"input-delta":T.current.set(ne.itemId,(T.current.get(ne.itemId)??"")+ne.text),y(H0(T.current));return;case"input-done":{T.current.delete(ne.itemId),y(H0(T.current)),!G.current.has(ne.itemId)&&ne.text.trim()&&(G.current.add(ne.itemId),Y({id:`user:${ne.itemId}`,role:"user",text:ne.text.trim()})),A.current!=="speaking"&&I("thinking");return}case"output-delta":$.current.set(ne.itemId,($.current.get(ne.itemId)??"")+ne.text),C(H0($.current)),I("speaking");return;case"output-done":{const Oe=(ne.text||$.current.get(ne.itemId)||"").trim();$.current.delete(ne.itemId),C(H0($.current)),!ae.current.has(ne.itemId)&&Oe&&(ae.current.add(ne.itemId),Y({id:`assistant:${ne.itemId}`,role:"assistant",text:Oe}));return}case"tool":ee.current.has(ne.itemId)||(ee.current.add(ne.itemId),Y({id:`tool:${ne.itemId}`,role:"activity",text:uI(ne.name)})),I("thinking");return;case"speech-started":I("listening");return;case"response-started":I("thinking");return;case"response-done":ne.error&&f(ne.error),I("connected");return;case"error":f(ne.text),A.current!=="idle"&&I("connected")}},[Y,I]),V=D.useCallback(async()=>{if(A.current!=="idle")return;if(typeof RTCPeerConnection>"u"||!navigator.mediaDevices?.getUserMedia){f("This browser does not support WebRTC calling");return}r(!0),f(null),m([]),ie(),G.current.clear(),ae.current.clear(),ee.current.clear(),u(!1),I("connecting");const Fe=++N.current;try{const ne=await navigator.mediaDevices.getUserMedia({audio:{echoCancellation:!0,noiseSuppression:!0,autoGainControl:!0}});if(Fe!==N.current){for(const Ne of ne.getTracks())Ne.stop();return}const Oe=ne.getAudioTracks()[0];if(!Oe)throw new Error("No microphone was available");Oe.enabled=!1,w.current=ne,O.current=Oe;const at=new RTCPeerConnection,Ct=at.createDataChannel("oai-events"),Et=document.createElement("audio");Et.autoplay=!0,Et.setAttribute("playsinline",""),_.current=at,S.current=Ct,z.current=Et,at.addTrack(Oe,ne),at.addEventListener("track",Ne=>{Fe===N.current&&(Et.srcObject=Ne.streams[0]??new MediaStream([Ne.track]),Et.play().catch(()=>f("Tap the audio notice to hear this call")))}),Ct.addEventListener("message",Ne=>{Fe===N.current&&L(Ne.data)}),Ct.addEventListener("close",()=>{Fe===N.current&&A.current!=="idle"&&j("The control-room call closed")}),at.addEventListener("connectionstatechange",()=>{if(Fe===N.current){if(at.connectionState==="connected"&&K.current&&(clearTimeout(K.current),K.current=null),at.connectionState==="failed"||at.connectionState==="closed")return j("The control-room connection failed");at.connectionState==="disconnected"&&!K.current&&(K.current=setTimeout(()=>{K.current=null,Fe===N.current&&at.connectionState==="disconnected"&&j("The control-room connection was lost")},4e3))}});const hn=await at.createOffer();await at.setLocalDescription(hn);const nt=at.localDescription?.sdp;if(!nt)throw new Error("The browser did not create a WebRTC offer");const yn=await De.voiceCall(nt,F.current.voice,F.current.language);if(Fe!==N.current){De.voiceCallEnd(yn.callId).catch(()=>{});return}if(P.current=yn.callId,await at.setRemoteDescription({type:"answer",sdp:yn.sdp}),await new Promise((Ne,kn)=>{if(Ct.readyState==="open")return Ne();const le=setTimeout(()=>kn(new Error("Voice event channel did not open")),8e3);Ct.addEventListener("open",()=>{clearTimeout(le),Ne()},{once:!0})}),await De.voiceCallReady(yn.callId),Fe!==N.current)return;Oe.enabled=!0,A.current==="connecting"&&I("connected")}catch(ne){if(Fe!==N.current)return;j(xI(ne)?"Microphone access was denied — allow it in this site’s settings and try again":ne instanceof Error?ne.message:String(ne))}},[ie,j,L,I]),R=D.useCallback(()=>{const Fe=P.current;xe(),u(!1),I("idle"),f(null),Fe&&De.voiceCallEnd(Fe).catch(()=>{})},[xe,I]),se=D.useCallback(()=>{A.current==="idle"||A.current==="connecting"||u(Fe=>{const ne=!Fe;return O.current&&(O.current.enabled=!ne),ne})},[]),be=D.useCallback(Fe=>{const ne=Fe.trim(),Oe=S.current;if(!ne||Oe?.readyState!=="open"||A.current!=="connected")return!1;const at=crypto.randomUUID();return Y({id:`typed:${at}`,role:"user",text:ne}),Oe.send(JSON.stringify({type:"conversation.item.create",item:{type:"message",role:"user",content:[{type:"input_text",text:ne}]}})),Oe.send(JSON.stringify({type:"response.create"})),I("thinking"),!0},[Y,I]),W=D.useCallback(Fe=>{A.current==="idle"&&v(ne=>{const Oe={...ne,...Fe};return F.current=Oe,oI(Oe),Oe})},[]),me=D.useCallback(()=>{z.current?.play().then(()=>f(null)).catch(()=>f("This browser is still blocking call audio"))},[]),Ue=D.useCallback(()=>r(!0),[]),Be=D.useCallback(()=>r(!1),[]),tt=D.useCallback(()=>f(null),[]),ct=D.useCallback(Fe=>W({voice:Fe}),[W]),we=D.useCallback(Fe=>W({language:Fe}),[W]);D.useEffect(()=>()=>{const Fe=P.current;xe(),Fe&&De.voiceCallEnd(Fe).catch(()=>{})},[xe]);const Nt=D.useMemo(()=>({panelOpen:t,status:i,muted:o,error:d,entries:h,inputPartial:p,outputPartial:b,preferences:k,openPanel:Ue,closePanel:Be,startCall:V,endCall:R,toggleMute:se,sendText:be,dismissError:tt,enableAudio:me,setVoice:ct,setLanguage:we}),[t,i,o,d,h,p,b,k,Ue,Be,V,R,se,be,tt,me,ct,we]);return x.jsx(d6.Provider,{value:Nt,children:e})}function f6(){const e=D.useContext(d6);if(!e)throw new Error("useVoiceCall must be used inside VoiceCallProvider");return e}const fI=[["auto","Auto detect"],["no","Norsk"],["en","English"]];function hI(e){return e[0].toUpperCase()+e.slice(1)}function K2(e,t){return e==="idle"?"Not connected":e==="connecting"?"Connecting…":e==="listening"?t?"Microphone muted":"Listening":e==="thinking"?"Checking the fleet…":e==="speaking"?"Orchestrator speaking":t?"Microphone muted":"Connected"}function pI(){const e=f6(),t=ve(m=>m.online),[r,i]=D.useState(""),l=D.useRef(null),o=e.status!=="idle",u=e.status==="connected",d=`${e.entries.length}:${e.inputPartial}:${e.outputPartial}`;if(D.useEffect(()=>{if(!e.panelOpen)return;const m=p=>{p.key==="Escape"&&e.closePanel()};return window.addEventListener("keydown",m),()=>window.removeEventListener("keydown",m)},[e.panelOpen,e.closePanel]),D.useEffect(()=>{if(!e.panelOpen||!d)return;const m=l.current;m&&(m.scrollTop=m.scrollHeight)},[e.panelOpen,d]),!e.panelOpen)return null;const f=m=>{m.preventDefault(),e.sendText(r)&&i("")},h=e.error?.toLowerCase().includes("audio")??!1;return Qr.createPortal(x.jsxs(x.Fragment,{children:[x.jsx("div",{className:"fixed inset-0 z-[60] bg-black/65 md:block",onClick:e.closePanel,"aria-hidden":!0}),x.jsxs("section",{role:"dialog","aria-modal":"true","aria-label":"Control room call",className:"app-height fade-in pt-safe pb-safe fixed inset-0 z-[60] flex flex-col bg-bg md:inset-x-auto md:inset-y-8 md:left-1/2 md:w-[32rem] md:-translate-x-1/2 md:rounded-3xl md:border md:border-border-soft md:shadow-2xl",children:[x.jsxs("header",{className:"flex shrink-0 items-center gap-3 border-b border-border-soft px-4 py-3",children:[x.jsx("div",{className:he("grid size-9 shrink-0 place-items-center rounded-full bg-surface-2 text-muted",o&&"bg-voice-soft text-voice"),children:x.jsx(V0,{size:18})}),x.jsxs("div",{className:"min-w-0 flex-1",children:[x.jsxs("div",{className:"flex items-center gap-1.5",children:[x.jsx("h2",{className:"text-[15px] font-semibold",children:"Control room"}),x.jsx(Xf,{})]}),x.jsxs("p",{className:"flex items-center gap-1.5 text-xs text-muted",children:[o?x.jsx("span",{className:he("size-1.5 rounded-full bg-voice",(e.status==="listening"||e.status==="speaking")&&"animate-pulse")}):null,x.jsxs("span",{className:"truncate",children:["All workspaces · ",K2(e.status,e.muted)]})]})]}),x.jsx("button",{type:"button",onClick:e.closePanel,"aria-label":o?"Hide call controls":"Close",className:"grid size-9 shrink-0 place-items-center rounded-full text-muted active:bg-surface-2 active:text-text",children:x.jsx(En,{size:19})})]}),o?x.jsxs(x.Fragment,{children:[x.jsx("div",{ref:l,className:"min-h-0 flex-1 overflow-y-auto px-4 py-5",children:x.jsxs("div",{className:"mx-auto flex max-w-xl flex-col gap-3",children:[e.entries.length===0&&!e.inputPartial&&!e.outputPartial?x.jsx("div",{className:"grid min-h-48 place-items-center text-center",children:x.jsxs("div",{children:[x.jsx(_n,{size:22,className:"mx-auto mb-3 animate-spin text-voice"}),x.jsx("p",{className:"text-sm text-muted",children:"Opening the fleet channel…"})]})}):null,e.entries.map(m=>m.role==="activity"?x.jsxs("div",{className:"flex items-center justify-center gap-2 py-1 text-xs text-voice",children:[x.jsx("span",{className:"size-1.5 rounded-full bg-voice"}),m.text]},m.id):x.jsx("div",{className:he("max-w-[88%] rounded-2xl px-3.5 py-2.5 text-sm leading-relaxed",m.role==="user"?"ml-auto rounded-br-md bg-voice-soft text-text":"mr-auto rounded-bl-md bg-surface-2 text-text"),children:m.text},m.id)),e.inputPartial?x.jsx("div",{className:"ml-auto max-w-[88%] rounded-2xl rounded-br-md border border-voice/25 bg-voice-soft/60 px-3.5 py-2.5 text-sm leading-relaxed text-muted",children:e.inputPartial}):null,e.outputPartial?x.jsxs("div",{className:"mr-auto max-w-[88%] rounded-2xl rounded-bl-md bg-surface-2 px-3.5 py-2.5 text-sm leading-relaxed text-text",children:[e.outputPartial,x.jsx("span",{className:"ml-1 inline-block size-1.5 animate-pulse rounded-full bg-voice align-middle"})]}):null]})}),x.jsxs("div",{className:"shrink-0 border-t border-border-soft bg-surface/80 px-4 pb-3 pt-3 backdrop-blur-xl",children:[e.error?x.jsx("button",{type:"button",onClick:h?e.enableAudio:e.dismissError,className:"mb-2 block w-full rounded-xl bg-del/10 px-3 py-2 text-left text-xs leading-snug text-del",children:e.error}):null,x.jsxs("form",{onSubmit:f,className:"flex items-center gap-2",children:[x.jsx("input",{value:r,onChange:m=>i(m.target.value),disabled:!u,placeholder:u?"Type to the orchestrator…":K2(e.status,e.muted),"aria-label":"Message the orchestrator",className:"h-11 min-w-0 flex-1 rounded-xl border border-border bg-bg px-3 text-sm text-text outline-none placeholder:text-faint focus:border-voice/60 disabled:opacity-60"}),x.jsx("button",{type:"submit",disabled:!u||!r.trim(),"aria-label":"Send to orchestrator",className:"grid size-11 shrink-0 place-items-center rounded-xl bg-voice text-white active:opacity-80 disabled:bg-surface-2 disabled:text-faint",children:x.jsx(_B,{size:18})})]}),x.jsxs("div",{className:"mt-3 flex items-center justify-center gap-5",children:[x.jsx("button",{type:"button",onClick:e.toggleMute,disabled:e.status==="connecting","aria-label":e.muted?"Unmute microphone":"Mute microphone","aria-pressed":e.muted,className:he("grid size-12 place-items-center rounded-full bg-surface-2 text-text active:opacity-75 disabled:text-faint",e.muted&&"bg-voice-soft text-voice"),children:e.muted?x.jsx(mA,{size:20}):x.jsx(W8,{size:20})}),x.jsx("button",{type:"button",onClick:e.endCall,"aria-label":"End call",className:"grid size-12 place-items-center rounded-full bg-del text-white active:opacity-75",children:x.jsx(GA,{size:20})})]})]})]}):x.jsx("div",{className:"min-h-0 flex-1 overflow-y-auto px-5 py-7",children:x.jsxs("div",{className:"mx-auto flex max-w-sm flex-col items-center text-center",children:[x.jsx("div",{className:"mb-5 grid size-16 place-items-center rounded-full bg-voice-soft text-voice",children:x.jsx(V0,{size:27})}),x.jsx("h3",{className:"text-xl font-semibold tracking-tight",children:"Call your fleet"}),x.jsx("p",{className:"mt-2 text-sm leading-relaxed text-muted",children:"One orchestrator checks every workspace, brings you one decision at a time, and can queue an exact prompt only after reading it back for confirmation."}),x.jsxs("div",{className:"mt-7 grid w-full grid-cols-2 gap-3 text-left",children:[x.jsxs("label",{className:"text-xs font-medium text-muted",children:["Voice",x.jsx("select",{value:e.preferences.voice,onChange:m=>e.setVoice(m.target.value),className:"mt-1.5 block h-11 w-full rounded-xl border border-border bg-surface-2 px-3 text-sm text-text [color-scheme:dark]",children:ug.map(m=>x.jsx("option",{value:m,children:hI(m)},m))})]}),x.jsxs("label",{className:"text-xs font-medium text-muted",children:["Language",x.jsx("select",{value:e.preferences.language,onChange:m=>e.setLanguage(m.target.value),className:"mt-1.5 block h-11 w-full rounded-xl border border-border bg-surface-2 px-3 text-sm text-text [color-scheme:dark]",children:fI.map(([m,p])=>x.jsx("option",{value:m,children:p},m))})]})]}),e.error?x.jsx("button",{type:"button",onClick:e.dismissError,className:"mt-4 block w-full rounded-xl bg-del/10 px-3 py-2 text-left text-xs leading-snug text-del",children:e.error}):null,x.jsxs("button",{type:"button",onClick:()=>{e.startCall()},disabled:!t,className:"mt-6 flex h-12 w-full items-center justify-center gap-2 rounded-xl bg-voice px-4 text-sm font-semibold text-white active:opacity-80 disabled:bg-surface-2 disabled:text-faint",children:[x.jsx(V0,{size:18}),t?"Start fleet call":"Relay offline"]}),x.jsx("p",{className:"mt-3 text-[11px] leading-snug text-faint",children:"AI-generated voice. Microphone audio is sent to OpenAI for this live call."})]})})]})]}),document.body)}const mI=new Intl.NumberFormat("en",{notation:"compact"});function Y2(e){return mI.format(Math.max(0,e)).toLowerCase()}function X2(e,t){return`${e.toLocaleString("en")} ${e===1?"line":"lines"} ${t}`}function gI({stats:e,className:t}){if(!e||e.added<=0&&e.removed<=0)return null;const r=[e.added>0?X2(e.added,"added"):null,e.removed>0?X2(e.removed,"removed"):null].filter(Boolean).join(", ");return x.jsxs("span",{className:he("flex shrink-0 items-center gap-1 font-mono text-[10px] font-medium leading-none tabular-nums",t),title:r,children:[x.jsx("span",{className:"sr-only",children:r}),e.added>0?x.jsxs("span",{className:"text-add","aria-hidden":"true",children:["+",Y2(e.added)]}):null,e.removed>0?x.jsxs("span",{className:"text-del","aria-hidden":"true",children:["-",Y2(e.removed)]}):null]})}const h6="conductor-remote-theme",EI={light:"#f5f6f8",dark:"#0a0b0e"};function yI(e){return e==="light"||e==="dark"||e==="system"?e:"system"}function p6(e){try{return yI((e??localStorage).getItem(h6))}catch{return"system"}}function bI(e,t){return e==="system"?t?"dark":"light":e}function CI(){return typeof window<"u"&&window.matchMedia("(prefers-color-scheme: dark)").matches}function m6(e,t=CI()){if(typeof document>"u")return;e==="system"?delete document.documentElement.dataset.theme:document.documentElement.dataset.theme=e;const r=bI(e,t);document.querySelector('meta[name="theme-color"]')?.setAttribute("content",EI[r])}function vI(e,t){try{(t??localStorage).setItem(h6,e)}catch{}m6(e)}function kI(){if(typeof window>"u")return()=>{};const e=window.matchMedia("(prefers-color-scheme: dark)"),t=()=>m6(p6(),e.matches);return e.addEventListener("change",t),t(),()=>e.removeEventListener("change",t)}const to=new Uint8Array(512),Hd=new Uint8Array(256);let Ll=1;for(let e=0;e<255;e++)to[e]=Ll,Hd[Ll]=e,Ll<<=1,Ll&256&&(Ll^=285);for(let e=255;e<512;e++)to[e]=to[e-255];function g6(e,t){return e===0||t===0?0:to[Hd[e]+Hd[t]]}function AI(e){let t=[1];for(let r=0;r<e;r++){const i=new Array(t.length+1).fill(0);for(let l=0;l<t.length;l++)i[l]^=t[l],i[l+1]^=g6(t[l],to[r]);t=i}return t}function BI(e,t){const r=AI(t),i=new Array(t).fill(0);for(const l of e){const o=l^i[0];if(i.shift(),i.push(0),o!==0)for(let u=0;u<t;u++)i[u]^=g6(r[u+1],o)}return i}const Wf={1:{align:[],ec:10,groups:[[1,16]]},2:{align:[6,18],ec:16,groups:[[1,28]]},3:{align:[6,22],ec:26,groups:[[1,44]]},4:{align:[6,26],ec:18,groups:[[2,32]]},5:{align:[6,30],ec:24,groups:[[2,43]]},6:{align:[6,34],ec:16,groups:[[4,27]]},7:{align:[6,22,38],ec:18,groups:[[4,31]]},8:{align:[6,24,42],ec:22,groups:[[2,38],[2,39]]},9:{align:[6,26,46],ec:22,groups:[[3,36],[2,37]]},10:{align:[6,28,50],ec:26,groups:[[4,43],[1,44]]}};function W2(e){return Wf[e].groups.reduce((t,[r,i])=>t+r*i,0)}function Z2(e){return e<=9?8:16}function Pl(e,t,r){for(let i=r-1;i>=0;i--)e.push(t>>i&1)}function DI(e){const t=Array.from(new TextEncoder().encode(e));let r=0;for(let C=1;C<=10;C++)if(4+Z2(C)+8*t.length<=W2(C)*8){r=C;break}if(r===0)throw new Error(`data too long for a v1–10 QR (${t.length} bytes)`);const i=W2(r)*8,l=[];Pl(l,4,4),Pl(l,t.length,Z2(r));for(const C of t)Pl(l,C,8);for(let C=0,k=Math.min(4,i-l.length);C<k;C++)l.push(0);for(;l.length%8!==0;)l.push(0);const o=[236,17];for(let C=0;l.length<i;C++)Pl(l,o[C%2],8);const u=[];for(let C=0;C<l.length;C+=8){let k=0;for(let v=0;v<8;v++)k=k<<1|l[C+v];u.push(k)}const{ec:d,groups:f}=Wf[r],h=[];let m=0;for(const[C,k]of f)for(let v=0;v<C;v++){const A=u.slice(m,m+k);m+=k,h.push({data:A,ec:BI(A,d)})}const p=[],y=Math.max(...h.map(C=>C.data.length));for(let C=0;C<y;C++)for(const k of h)C<k.data.length&&p.push(k.data[C]);for(let C=0;C<d;C++)for(const k of h)p.push(k.ec[C]);const b=[];for(const C of p)Pl(b,C,8);return{version:r,bits:b}}function wI(e,t){const r=e*4+17,i=Array.from({length:r},()=>new Array(r).fill(!1)),l=Array.from({length:r},()=>new Array(r).fill(!1)),o=(p,y)=>{for(let b=-1;b<=7;b++)for(let C=-1;C<=7;C++){const k=p+b,v=y+C;if(k<0||k>=r||v<0||v>=r)continue;const A=b>=0&&b<=6&&(C===0||C===6)||C>=0&&C<=6&&(b===0||b===6),F=b>=2&&b<=4&&C>=2&&C<=4;i[k][v]=A||F,l[k][v]=!0}};o(0,0),o(0,r-7),o(r-7,0);for(let p=8;p<r-8;p++){const y=p%2===0;l[6][p]||(i[6][p]=y,l[6][p]=!0),l[p][6]||(i[p][6]=y,l[p][6]=!0)}const u=Wf[e].align;for(let p=0;p<u.length;p++)for(let y=0;y<u.length;y++){if(p===0&&y===0||p===0&&y===u.length-1||p===u.length-1&&y===0)continue;const C=u[p],k=u[y];for(let v=-2;v<=2;v++)for(let A=-2;A<=2;A++)i[C+v][k+A]=Math.max(Math.abs(v),Math.abs(A))!==1,l[C+v][k+A]=!0}for(let p=0;p<=8;p++)p!==6&&(l[8][p]=!0,l[p][8]=!0);for(let p=0;p<8;p++)l[8][r-1-p]=!0,l[r-1-p][8]=!0;if(l[r-8][8]=!0,e>=7)for(let p=0;p<18;p++){const y=r-11+p%3,b=Math.floor(p/3);l[b][y]=!0,l[y][b]=!0}let d=0,f=!0;for(let p=r-1;p>0;p-=2){p===6&&p--;for(let y=0;y<r;y++){const b=f?r-1-y:y;for(let C=0;C<2;C++){const k=p-C;l[b][k]||(i[b][k]=d<t.length?t[d]===1:!1,d++)}}f=!f}e>=7&&NI(i,e,r);let h=null,m=Number.POSITIVE_INFINITY;for(let p=0;p<8;p++){const y=i.map(C=>C.slice());for(let C=0;C<r;C++)for(let k=0;k<r;k++)!l[C][k]&&FI(p,C,k)&&(y[C][k]=!y[C][k]);SI(y,p,r);const b=_I(y);b<m&&(m=b,h=y)}return h}function FI(e,t,r){switch(e){case 0:return(t+r)%2===0;case 1:return t%2===0;case 2:return r%3===0;case 3:return(t+r)%3===0;case 4:return(Math.floor(t/2)+Math.floor(r/3))%2===0;case 5:return t*r%2+t*r%3===0;case 6:return(t*r%2+t*r%3)%2===0;default:return((t+r)%2+t*r%3)%2===0}}function SI(e,t,r){const i=0|t;let l=i;for(let d=0;d<10;d++)l=l<<1^(l>>9&1?1335:0);const o=((i<<10|l&1023)^21522)&32767,u=d=>(o>>d&1)===1;for(let d=0;d<=5;d++)e[d][8]=u(d);e[7][8]=u(6),e[8][8]=u(7),e[8][7]=u(8);for(let d=9;d<15;d++)e[8][14-d]=u(d);for(let d=0;d<8;d++)e[8][r-1-d]=u(d);for(let d=8;d<15;d++)e[r-15+d][8]=u(d);e[r-8][8]=!0}function NI(e,t,r){let i=t;for(let o=0;o<12;o++)i=i<<1^(i>>11&1?7973:0);const l=t<<12|i&4095;for(let o=0;o<18;o++){const u=(l>>o&1)===1,d=r-11+o%3,f=Math.floor(o/3);e[f][d]=u,e[d][f]=u}}function _I(e){const t=e.length;let r=0;const i=f=>{let h=f(0),m=1;for(let p=1;p<t;p++)f(p)===h?m++:(m>=5&&(r+=m-2),h=f(p),m=1);m>=5&&(r+=m-2)};for(let f=0;f<t;f++)i(h=>e[f][h]);for(let f=0;f<t;f++)i(h=>e[h][f]);for(let f=0;f<t-1;f++)for(let h=0;h<t-1;h++){const m=e[f][h];m===e[f][h+1]&&m===e[f+1][h]&&m===e[f+1][h+1]&&(r+=3)}const l=[!0,!1,!0,!0,!0,!1,!0,!1,!1,!1,!1],o=[!1,!1,!1,!1,!0,!1,!0,!0,!0,!1,!0],u=(f,h,m)=>{for(let p=0;p<11;p++)if(f(h+p)!==m[p])return!1;return!0};for(let f=0;f<t;f++)for(let h=0;h<=t-11;h++)(u(m=>e[f][m],h,l)||u(m=>e[f][m],h,o))&&(r+=40);for(let f=0;f<t;f++)for(let h=0;h<=t-11;h++)(u(m=>e[m][f],h,l)||u(m=>e[m][f],h,o))&&(r+=40);let d=0;for(let f=0;f<t;f++)for(let h=0;h<t;h++)e[f][h]&&d++;return r+=Math.floor(Math.abs(d/(t*t)*100-50)/5)*10,r}function MI(e){const{version:t,bits:r}=DI(e);return wI(t,r)}function jI({text:e,size:t=220,className:r}){const i=MI(e),l=i.length,o=4,u=l+o*2;let d="";for(let f=0;f<l;f++)for(let h=0;h<l;h++)i[f][h]&&(d+=`M${h+o} ${f+o}h1v1h-1z`);return x.jsxs("svg",{width:t,height:t,viewBox:`0 0 ${u} ${u}`,shapeRendering:"crispEdges",className:r,role:"img","aria-label":"QR code",children:[x.jsx("title",{children:"QR code"}),x.jsx("rect",{width:u,height:u,fill:"#fff"}),x.jsx("path",{d,fill:"#000"})]})}function TI({version:e,onLogs:t,onClose:r}){const i=ve(y=>y.token),l=ve(y=>y.setToken),[o,u]=D.useState(!1),[d,f]=D.useState(!1),h=i?`${location.origin}/#token=${i}`:location.origin,m=!!e&&e!=="1.108.0",p=async()=>{try{await navigator.clipboard.writeText(h),u(!0),setTimeout(()=>u(!1),1500)}catch{}};return Qr.createPortal(x.jsxs(x.Fragment,{children:[x.jsx("div",{className:"fixed inset-0 z-50 bg-black/60",onClick:r,"aria-hidden":!0}),x.jsxs("div",{role:"dialog","aria-modal":"true","aria-label":"Connect a device",className:"fade-in pb-safe fixed inset-x-0 bottom-0 z-50 mx-auto flex max-h-[85dvh] max-w-sm flex-col items-center gap-4 rounded-t-3xl border border-border-soft bg-surface p-5 shadow-xl md:inset-0 md:m-auto md:h-fit md:rounded-3xl",children:[x.jsxs("div",{className:"flex w-full shrink-0 items-center justify-between",children:[x.jsx("h2",{className:"text-base font-semibold",children:"Connect a device"}),x.jsxs("div",{className:"flex shrink-0 items-center gap-1",children:[x.jsx("button",{type:"button",onClick:()=>f(y=>!y),"aria-label":"Disconnect","aria-expanded":d,title:"Disconnect",className:he("flex size-8 items-center justify-center rounded-full active:bg-surface-2",d?"bg-del/15 text-del":"text-del/80"),children:x.jsx(tA,{size:17})}),x.jsx("button",{type:"button",onClick:r,"aria-label":"Close",className:"flex size-8 items-center justify-center rounded-full text-muted active:bg-surface-2",children:x.jsx(En,{size:18})})]})]}),d?x.jsxs("div",{className:"fade-in w-full shrink-0 rounded-xl border border-del/40 bg-del/10 px-3 py-2.5 text-left",children:[x.jsx("p",{className:"text-sm font-medium",children:"Disconnect this device?"}),x.jsx("p",{className:"mt-1 text-xs text-muted",children:"This forgets your access token. To get back in you’ll need the link or QR from the Mac running the relay — this screen can’t show it to you again."}),x.jsxs("div",{className:"mt-2.5 flex gap-2",children:[x.jsx("button",{type:"button",onClick:()=>f(!1),className:"flex-1 rounded-lg border border-border bg-surface-2 px-3 py-2 text-sm active:bg-surface",children:"Cancel"}),x.jsx("button",{type:"button",onClick:()=>l(null),className:"flex-1 rounded-lg bg-del px-3 py-2 text-sm font-semibold text-on-solid active:opacity-80",children:"Disconnect"})]})]}):null,x.jsxs("div",{className:"flex w-full min-h-0 flex-1 flex-col items-center gap-4 overflow-y-auto overscroll-contain",children:[x.jsx("p",{className:"text-center text-sm text-muted",children:"Scan on another phone, or re-add this to your home screen. The link carries your access token."}),x.jsx("div",{className:"shrink-0 rounded-2xl bg-white p-3",children:x.jsx(jI,{text:h,size:216})}),x.jsxs("button",{type:"button",onClick:p,className:"flex w-full shrink-0 items-center justify-center gap-2 rounded-xl border border-border bg-surface-2 px-3 py-2.5 text-sm active:bg-surface",children:[o?x.jsx(Ca,{size:16}):x.jsx(af,{size:16}),o?"Copied":"Copy link"]}),x.jsx(OI,{}),x.jsx(zI,{}),x.jsx(PI,{}),x.jsxs("div",{className:"flex w-full items-center justify-between text-xs text-faint",children:[x.jsxs("span",{className:"font-mono",children:[e?`relay v${e}`:"relay v?"," · ",x.jsxs("span",{className:m?"text-working":void 0,children:["app v","1.108.0"]}),m?" · update pending":""]}),x.jsx("button",{type:"button",onClick:t,className:"shrink-0 text-muted underline-offset-2 hover:underline",children:"Logs"})]})]})]})]}),document.body)}const RI=[["system","System"],["light","Light"],["dark","Dark"]];function OI(){const[e,t]=D.useState(p6),r=ve(o=>o.view.showDiffs),i=ve(o=>o.setView),l=o=>{t(o),vI(o)};return x.jsxs("div",{className:"w-full shrink-0 rounded-xl border border-border bg-surface-2 px-3 py-2.5",children:[x.jsxs("fieldset",{className:"flex w-full items-center justify-between gap-3 border-0 p-0",children:[x.jsx("legend",{className:"sr-only",children:"Theme"}),x.jsxs("div",{className:"flex min-w-0 items-center gap-2 text-sm",children:[x.jsx(hD,{size:16,className:"shrink-0 text-muted"}),x.jsx("span",{children:"Theme"})]}),x.jsx("div",{className:"flex shrink-0 rounded-lg border border-border bg-surface p-0.5",children:RI.map(([o,u])=>x.jsx("button",{type:"button","aria-pressed":e===o,onClick:()=>l(o),className:he("rounded-md px-2 py-1 text-xs transition focus-visible:outline-2 focus-visible:outline-accent",e===o?"bg-accent-soft text-accent":"text-muted active:bg-surface-2"),children:u},o))})]}),x.jsxs("div",{className:"mt-2.5 flex items-center justify-between gap-3 border-t border-border pt-2.5",children:[x.jsxs("div",{className:"flex min-w-0 items-center gap-2 text-sm",children:[x.jsx(G8,{size:16,className:"shrink-0 text-muted"}),x.jsx("span",{children:"Sidebar diffs"})]}),x.jsx("button",{type:"button",role:"switch","aria-checked":r,"aria-label":"Show line changes in workspace rows",onClick:()=>i({showDiffs:!r}),className:he("relative h-6 w-11 shrink-0 rounded-full transition-colors",r?"bg-accent":"border border-border bg-surface"),children:x.jsx("span",{className:he("absolute left-0.5 top-0.5 size-5 rounded-full bg-white transition-transform",r?"translate-x-5":"translate-x-0")})})]}),x.jsx("p",{className:"mt-1 text-xs text-muted",children:"Show line additions and deletions in workspace rows."})]})}function zI(){const e=GF(),t=e.permission==="denied",r=e.support!=="ok"||e.relayDisabled,i=e.relayDisabled?"Turned off on the relay (PUSH_NOTIFY=off).":e.support==="needs-install"?"Add this to your Home Screen first — iOS only allows notifications for installed apps.":e.support==="insecure"?"Needs a secure connection — open the app on its https:// Tailscale URL.":e.support==="unsupported"?"This browser can’t receive push notifications.":t?"Blocked for this app — allow notifications in your device settings, then come back.":e.enabled?`On for this device${e.devices>1?` · ${e.devices} devices subscribed`:""}.`:"Get a ping when an agent finishes its turn or hits an error.";return x.jsxs("div",{className:"w-full shrink-0 rounded-xl border border-border bg-surface-2 px-3 py-2.5",children:[x.jsxs("div",{className:"flex items-center justify-between gap-3",children:[x.jsxs("div",{className:"flex min-w-0 items-center gap-2 text-sm",children:[x.jsx(I8,{size:16,className:he("shrink-0",e.enabled?"text-accent":"text-muted")}),x.jsx("span",{children:"Notifications"})]}),x.jsx("button",{type:"button",role:"switch","aria-checked":e.enabled,"aria-label":"Notifications on this device",disabled:r||t||e.busy,onClick:()=>{e.enabled?e.disable():e.enable()},className:he("relative h-6 w-11 shrink-0 rounded-full transition-colors",e.enabled?"bg-accent":"border border-border bg-surface",(r||t||e.busy)&&"opacity-40"),children:x.jsx("span",{className:he("absolute left-0.5 top-0.5 size-5 rounded-full bg-white transition-transform",e.enabled?"translate-x-5":"translate-x-0")})})]}),x.jsx("p",{className:"mt-1 text-xs text-muted",children:i}),e.error?x.jsx("p",{className:"mt-1 text-xs text-del",children:e.error}):null,e.enabled?x.jsx("button",{type:"button",onClick:()=>{e.test()},disabled:e.busy,className:"mt-1.5 text-xs text-muted underline-offset-2 hover:underline disabled:opacity-50",children:"Send a test notification"}):null]})}const LI=[{label:"1h",seconds:3600},{label:"4h",seconds:4*3600,className:"hidden min-[400px]:block"},{label:"10h",seconds:10*3600}];function id(e){if(!e)return"until you turn it off";const t=new Date(e),r=t.toDateString()===new Date().toDateString(),i=t.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"});return r?`until ${i}`:`until ${t.toLocaleDateString([],{weekday:"short"})} ${i}`}function PI(){const[e,t]=D.useState(null),[r,i]=D.useState(!1),[l,o]=D.useState(null),[u,d]=D.useState(!1),[f,h]=D.useState(!1),[m,p]=D.useState(""),[y,b]=D.useState(null),[C,k]=D.useState("idle"),[v,A]=D.useState(null),F=D.useCallback(async()=>{try{t(await De.settings()),o(null)}catch(T){o(T instanceof Error?T.message:String(T))}},[]);D.useEffect(()=>{F()},[F]);const N=async T=>{i(!0),o(null);try{return await T(),await F(),!0}catch($){return o($ instanceof Error?$.message:String($)),!1}finally{i(!1)}},_=async T=>{i(!0),o(null);try{const $=await De.restartConductor(T);A($.ms??0),k("idle"),await F()}catch($){$ instanceof ur&&$.status===409&&k("agents"),o($ instanceof Error?$.message:String($))}finally{i(!1)}},S=async T=>{T.preventDefault();const $=fw(m);if($===null){b("Use a duration like 80h, 90m, or a number of seconds.");return}if($<1){b("Choose a duration longer than zero.");return}const G=e?.nosleep.maxSeconds??168*3600;if($>G){b(`Choose a duration up to ${Math.round(G/3600)}h.`);return}b(null),d(!1),await N(()=>De.armNoSleep($))&&h(!1)},w=e?.nosleep,O=e?.screenLocked===!0,z=e?.wifi.known??[],P=e?.settings.fallbackSsids[0]??"";return x.jsxs("div",{className:"flex w-full shrink-0 flex-col gap-2.5 rounded-xl border border-border bg-surface-2 px-3 py-2.5",children:[x.jsxs("div",{className:"flex items-center justify-between gap-3",children:[x.jsxs("div",{className:"flex min-w-0 items-center gap-2 text-sm",children:[x.jsx(rg,{size:16,className:he("shrink-0",w?.armed?"text-accent":"text-muted")}),x.jsx("span",{children:"Keep the Mac awake"})]}),w?.armed?x.jsx("button",{type:"button",disabled:r,onClick:()=>{N(async()=>{const T=await De.disarmNoSleep();d(T.willSleep===!0)})},className:"shrink-0 rounded-lg border border-border px-2.5 py-1 text-xs active:bg-surface disabled:opacity-50",children:"Let it sleep"}):x.jsxs("div",{className:"flex shrink-0 gap-1",children:[LI.map(T=>x.jsx("button",{type:"button",disabled:r||!w?.available,onClick:()=>{N(()=>(h(!1),b(null),d(!1),De.armNoSleep(T.seconds)))},className:he("rounded-lg border border-border px-2.5 py-1 text-xs active:bg-surface disabled:opacity-40",T.className),children:T.label},T.seconds)),x.jsx("button",{type:"button",disabled:r||!w?.available,"aria-label":"Choose a custom keep-awake duration","aria-expanded":f,onClick:()=>{b(null),h(T=>!T)},className:he("grid size-[30px] place-items-center rounded-lg border border-border active:bg-surface disabled:opacity-40",f&&"bg-surface text-accent"),children:x.jsx(q8,{size:14})})]})]}),!w?.armed&&f?x.jsxs("form",{onSubmit:S,className:"fade-in flex items-center justify-end gap-1.5",children:[x.jsx("label",{htmlFor:"awake-duration",className:"text-xs text-muted",children:"Keep awake for"}),x.jsx("input",{id:"awake-duration",type:"text",required:!0,value:m,disabled:r,placeholder:"e.g. 80h",autoCapitalize:"none",autoCorrect:"off",onChange:T=>{p(T.target.value),b(null)},className:"h-[30px] w-[6.5rem] rounded-lg border border-border bg-surface px-2 text-xs text-text disabled:opacity-40"}),x.jsx("button",{type:"submit",disabled:r||!m.trim(),className:"h-[30px] rounded-lg bg-accent px-2.5 text-xs font-medium text-on-solid active:opacity-80 disabled:opacity-40",children:r?"Setting…":"Set"})]}):null,y?x.jsx("p",{className:"text-right text-xs text-del",children:y}):null,x.jsx("p",{className:"text-xs text-muted",children:e?w?.available?w.armed?w.preventsScreenLock?O?`Awake ${id(w.until)}, lid closed. It blocks the idle screen lock from starting; it can’t lift one already up.`:`Awake ${id(w.until)}, lid closed. The idle screen lock is off; anyone at the Mac can use it.`:`Awake ${id(w.until)}, lid closed. Sends park if macOS locks.`:u?"The lid is shut, so the Mac is going to sleep now — this app will be unreachable until you wake it.":"Stops system sleep. Screen-lock behavior follows the Mac CLI configuration.":"Run `conductor-remote nosleep setup` on the Mac to install or refresh the helper.":"Checking…"}),O?x.jsxs("p",{className:"text-xs text-del",children:["The Mac is locked right now, so writes park until it’s unlocked. ",x.jsx(va,{})]}):null,x.jsxs("div",{className:"border-t border-border pt-2.5",children:[x.jsxs("div",{className:"flex items-center justify-between gap-3",children:[x.jsxs("div",{className:"flex min-w-0 items-center gap-2 text-sm",children:[x.jsx(ag,{size:16,className:he("shrink-0",e?.settings.autoRejoin?"text-accent":"text-muted")}),x.jsx("span",{children:"Fallback network"})]}),P?x.jsx("button",{type:"button",disabled:r,onClick:()=>{N(()=>De.patchSettings({fallbackSsids:[],autoRejoin:!1}))},className:"shrink-0 rounded-lg border border-border px-2.5 py-1 text-xs active:bg-surface disabled:opacity-50",children:"Turn off"}):null]}),P?x.jsxs("p",{className:"mt-1 text-xs text-muted",children:["Auto-joins ",x.jsx("span",{className:"text-fg",children:P})," when the primary network drops."]}):x.jsx(II,{known:z,hotspots:e?.wifi.likelyHotspots??[],busy:r,onPick:T=>{N(()=>De.patchSettings({fallbackSsids:[T],autoRejoin:!0}))}}),e?.wifi.autoJoinHotspot==="Never"?x.jsx("p",{className:"mt-1 text-xs text-faint",children:"Auto-join Hotspot is off on this Mac (System Settings ▸ Wi-Fi). Your hotspot has to be on and broadcasting before the Mac can join it."}):null]}),x.jsxs("div",{className:"border-t border-border pt-2.5",children:[x.jsxs("div",{className:"flex items-center justify-between gap-3",children:[x.jsxs("div",{className:"flex min-w-0 items-center gap-2 text-sm",children:[x.jsx(J8,{size:16,className:"shrink-0 text-muted"}),x.jsx("span",{children:"Restart Conductor"})]}),C==="idle"?x.jsx("button",{type:"button",disabled:r,onClick:()=>{A(null),o(null),k("confirm")},className:"shrink-0 rounded-lg border border-border px-2.5 py-1 text-xs active:bg-surface disabled:opacity-50",children:"Restart"}):null]}),v!==null?x.jsxs("p",{className:"mt-1 text-xs text-muted",children:["Quit and reopened in ",(v/1e3).toFixed(1),"s. Send a prompt to check an agent answers."]}):null,C!=="idle"?x.jsxs("div",{className:"fade-in mt-2 rounded-xl border border-del/40 bg-del/10 px-3 py-2.5 text-left",children:[x.jsx("p",{className:"text-sm font-medium",children:C==="agents"?"Agents are still working":"Restart Conductor?"}),x.jsx("p",{className:"mt-1 text-xs text-muted",children:C==="agents"?"Restarting ends their turns. Everything they have already written stays in the chat.":"The app closes and opens again, which takes about ten seconds. Anything mid-turn stops."}),x.jsxs("div",{className:"mt-2.5 flex gap-2",children:[x.jsx("button",{type:"button",onClick:()=>{k("idle"),o(null)},className:"flex-1 rounded-lg border border-border bg-surface-2 px-3 py-2 text-sm active:bg-surface",children:"Cancel"}),x.jsx("button",{type:"button",disabled:r,onClick:()=>{_(C==="agents")},className:"flex-1 rounded-lg bg-del px-3 py-2 text-sm font-semibold text-on-solid active:opacity-80 disabled:opacity-50",children:r?"Restarting…":C==="agents"?"Stop agents and restart":"Restart"})]})]}):null]}),l?x.jsxs("p",{className:"text-xs text-del",children:[l," ",Mi(l)?x.jsx(va,{}):null]}):null]})}function II({known:e,hotspots:t,busy:r,onPick:i}){const[l,o]=D.useState("");if(e.length===0)return x.jsx("p",{className:"mt-1 text-xs text-muted",children:"No saved Wi-Fi networks to offer."});const u=new Set(t),d=l.trim().toLowerCase(),f=e.filter(p=>!d||p.toLowerCase().includes(d)),h=f.find(p=>u.has(p)),m=(h?[h,...f.filter(p=>p!==h)]:f).slice(0,6);return x.jsxs(x.Fragment,{children:[x.jsx("p",{className:"mt-1 text-xs text-muted",children:"Turn your hotspot on before you leave, and the Mac can move to it if the office Wi-Fi drops."}),x.jsx("input",{type:"search",value:l,disabled:r,onChange:p=>o(p.target.value),placeholder:`Search ${e.length} saved networks`,className:"mt-2 w-full rounded-lg border border-border bg-surface px-2 py-1.5 text-xs disabled:opacity-40"}),x.jsxs("div",{className:"mt-1.5 flex flex-col gap-1",children:[m.map(p=>x.jsxs("button",{type:"button",disabled:r,onClick:()=>i(p),className:"flex items-center justify-between gap-2 rounded-lg border border-border px-2.5 py-1.5 text-left text-xs active:bg-surface disabled:opacity-50",children:[x.jsx("span",{className:"truncate",children:p}),u.has(p)?x.jsx("span",{className:"shrink-0 text-faint",children:"likely hotspot"}):null]},p)),m.length===0?x.jsxs("p",{className:"text-xs text-faint",children:["Nothing matches “",l,"”."]}):null]}),!d&&e.length>m.length?x.jsxs("p",{className:"mt-1 text-xs text-faint",children:["Most recently joined. Search to reach the other ",e.length-m.length,"."]}):null]})}const UI={info:"text-muted",warn:"text-working",error:"text-del"};function ei(e){return String(e).padStart(2,"0")}function $I(e){if(e==null)return"·";const t=new Date(e);return`${ei(t.getHours())}:${ei(t.getMinutes())}:${ei(t.getSeconds())}`}function J2(e){if(e==null)return" ";const t=new Date(e);return`${t.getFullYear()}-${ei(t.getMonth()+1)}-${ei(t.getDate())} ${ei(t.getHours())}:${ei(t.getMinutes())}:${ei(t.getSeconds())}`}function HI(e){return e<1024?`${e} B`:e<1024*1024?`${Math.round(e/1024)} KB`:`${(e/1024/1024).toFixed(1)} MB`}function e8(e){const t=Math.max(0,Math.round(e/1e3));if(t<90)return`${t}s ago`;const r=Math.round(t/60);if(r<60)return`${r}m ago`;const i=Math.round(r/60);return i<48?`${i}h ago`:`${Math.round(i/24)}d ago`}function qI({onClose:e}){const[t,r]=D.useState(null),[i,l]=D.useState(!1),[o,u]=D.useState(null),{data:d,isLoading:f,isError:h,error:m}=PF(t,!0),p=D.useRef(null),y=D.useRef(!0),b=D.useMemo(()=>(d?.entries??[]).filter(v=>!i||v.level!=="info"),[d,i]);D.useEffect(()=>{const v=p.current;v&&y.current&&b.length&&(v.scrollTop=v.scrollHeight)},[b]);const C=async()=>{const v=`# conductor-remote ${t??"live"} log · app v1.108.0 · copied ${J2(Date.now())}`,A=b.map(F=>`${J2(F.t)} ${F.level==="info"?"":F.level.toUpperCase()} ${F.text}`);try{await navigator.clipboard.writeText([v,...A].join(`
|
|
58
|
-
`)),u("ok")}catch{u("failed")}setTimeout(()=>u(null),2e3)},k=[{key:null,label:"Live",hint:d?`since ${e8(d.now-d.startedAt)}`:void 0},...(d?.files??[]).map(v=>({key:v.name,label:v.name,hint:HI(v.size)}))];return Qr.createPortal(x.jsxs(x.Fragment,{children:[x.jsx("div",{className:"fixed inset-0 z-50 bg-black/60",onClick:e,"aria-hidden":!0}),x.jsxs("div",{role:"dialog","aria-modal":"true","aria-label":"Relay logs",className:"fade-in pt-safe pb-safe fixed inset-0 z-50 mx-auto flex flex-col bg-bg md:inset-6 md:rounded-3xl md:border md:border-border-soft",children:[x.jsxs("div",{className:"flex items-center justify-between gap-2 border-b border-border-soft px-4 py-3",children:[x.jsxs("div",{className:"min-w-0",children:[x.jsx("h2",{className:"text-base font-semibold",children:"Relay logs"}),x.jsx("p",{className:"truncate text-xs text-muted",children:d?`${b.length} line${b.length===1?"":"s"} · relay started ${e8(d.now-d.startedAt)}`:"Loading…"})]}),x.jsx("button",{type:"button",onClick:e,"aria-label":"Close",className:"flex size-8 shrink-0 items-center justify-center rounded-full text-muted active:bg-surface-2",children:x.jsx(En,{size:18})})]}),x.jsx("div",{className:"flex gap-1.5 overflow-x-auto border-b border-border-soft px-3 py-2",children:k.map(v=>x.jsxs("button",{type:"button",onClick:()=>{y.current=!0,r(v.key)},className:he("pill shrink-0 whitespace-nowrap",v.key===t&&"pill-active"),children:[v.label,v.hint?x.jsx("span",{className:"ml-1.5 text-[11px] text-faint",children:v.hint}):null]},v.key??"live"))}),t&&d&&!d.managed?x.jsx("p",{className:"border-b border-border-soft bg-working/10 px-4 py-2 text-xs text-working",children:"This file belongs to the installed daemon — this relay isn’t the one writing it. Its own output is under Live."}):null,x.jsx("div",{ref:p,onScroll:v=>{const A=v.currentTarget;y.current=A.scrollHeight-A.scrollTop-A.clientHeight<40},className:"min-h-0 flex-1 overflow-y-auto px-3 py-2 font-mono text-[11px] leading-relaxed",children:f&&!d?x.jsx(dr,{label:"Reading logs…"}):h?x.jsx(qt,{children:m?.message}):b.length===0?x.jsx(qt,{children:i?"No warnings or errors logged.":"Nothing logged yet — the relay has been quiet."}):b.map((v,A)=>x.jsxs("div",{className:"flex gap-2 whitespace-pre-wrap break-words py-px",children:[x.jsx("span",{className:"shrink-0 text-faint",children:$I(v.t)}),x.jsx("span",{className:he("min-w-0 flex-1",UI[v.level]),children:v.text})]},A))}),x.jsxs("div",{className:"flex items-center gap-2 border-t border-border-soft px-3 py-2.5",children:[x.jsx("button",{type:"button",onClick:()=>l(v=>!v),className:he("pill shrink-0",i&&"pill-active"),children:"Problems only"}),x.jsxs("button",{type:"button",onClick:C,className:"ml-auto flex items-center justify-center gap-2 rounded-xl border border-border bg-surface-2 px-4 py-2.5 text-sm active:bg-surface",children:[o==="ok"?x.jsx(Ca,{size:16}):x.jsx(af,{size:16}),o==="ok"?"Copied":o==="failed"?"Copy blocked — select by hand":"Copy"]})]})]})]}),document.body)}function GI(e){return e.online?e.repoStatus==="loading"?"Loading repositories…":e.repoStatus==="error"?"Couldn’t load repositories.":e.repoStatus==="empty"?"No Conductor repositories are available.":e.repoStatus==="required"?"Choose a repository to continue.":e.uploading?"Wait for attachments to finish uploading.":e.attachmentError?"Remove failed attachments to continue.":e.workflowMode?e.hasInitialPrompt?e.workflowLoading?"Loading Workflow roles…":e.workflowReady?null:e.workflowProblem??"Workflow roles are unavailable.":"Describe what the workflow should accomplish.":null:"Reconnect to the relay to continue."}const E6="conductor-remote-send-immediately";function VI(){try{return localStorage.getItem(E6)!=="off"}catch{return!0}}function QI(e){try{localStorage.setItem(E6,e?"on":"off")}catch{}}function KI(e){e&&De.discardStagedAttachment(e).catch(()=>{})}function YI({onClose:e}){const t=Sg(),{data:r}=t,i=xc(),l=_g(),{roles:o,planningRole:u,problem:d,ready:f}=Tg(),h=ve(Z=>Z.lastNewWorkspaceRepo),m=ve(Z=>Z.setLastNewWorkspaceRepo),[p,y]=D.useState(h),b=ve(Z=>Z.drafts[ga]??""),C=ve(Z=>Z.draftAttachments[ga]??J5),k=D.useMemo(()=>C.filter(Z=>!!Z.stageId),[C]),v=ve(Z=>Z.setDraft),A=ve(Z=>Z.addDraftAttachment),F=ve(Z=>Z.removeDraftAttachment),N=ve(Z=>Z.clearDraftContent),_=ve(Z=>Z.workflowClientId),S=ve(Z=>Z.finishWorkflowAttempt),w=ve(Z=>Z.setFocusedDraft),O=Z=>v(ga,Z),[z,P]=D.useState({}),[T,$]=D.useState(!1),[G,ae]=D.useState(!1),[ee,K]=D.useState(VI),[I,Y]=D.useState(!1),[ie,xe]=D.useState(null),j=Ri(),L=On(),V=Fg(),R=ve(Z=>Z.online),se=e6({draftKey:ga,ready:k,enabled:R,upload:async(Z,_e)=>(await De.stageAttachment(_e)).attachment,accept:A,removeReady:F,discard:Z=>KI(Z.stageId)}),be=se.cancelPending;D.useEffect(()=>()=>{ve.getState().focusedDraft===ga&&w(null),kd()},[w]);const W=r?.repos??[],me=W.find(Z=>Z.name===p);D.useEffect(()=>{W.length&&!W.some(Z=>Z.name===p)&&y(W[0].name)},[p,W]);const Ue=se.uploading,Be=se.hasError,tt=!!b.trim()||k.length>0,ct=i.data?.groups.flatMap(Z=>Z.models)??[],we=i.data?.defaultModel,Nt=me?"selected":t.isLoading?"loading":t.isError?"error":W.length===0?"empty":"required",Fe=GI({online:R,repoStatus:Nt,uploading:Ue,attachmentError:Be,workflowMode:T,hasInitialPrompt:tt,workflowReady:f,workflowLoading:o.isLoading,workflowProblem:d}),ne=I||Fe!==null,Oe=z.model??we??null,at=T?u?.model??"Planning role":Oe,Ct=Cf(null,Oe),Et=vf(null,Oe),hn=kf(null,Oe),nt=VS(Oe,l.data?.defaultEfforts),yn=T?u?.effort:z.effort??nt,ge=Object.keys(z).length>0,Ne=D.useCallback(Z=>P(_e=>{const Ge={..._e,...Z};return Object.fromEntries(Object.entries(Ge).filter(([,Xe])=>Xe!==void 0))}),[]);D.useEffect(()=>{T||!Ct&&z.plan!==void 0&&Ne({plan:void 0})},[T,Ct,z.plan,Ne]),D.useEffect(()=>{!Et&&z.effort!==void 0&&Ne({effort:void 0}),!hn&&z.fast!==void 0&&Ne({fast:void 0})},[z.effort,z.fast,Et,hn,Ne]);const kn=D.useCallback(()=>{be(),e()},[be,e]),le=async()=>{const Z=b.trim();if(!ne){Y(!0),xe(null);try{if(T){const Ge=[...k.map(Bt=>Bt.token),Z].filter(Boolean).join(`
|
|
59
|
-
`),Xe={kind:"new_workspace",repo:p,sendImmediately:ee},nn="workflow:new-workspace",bn=_(nn,hg(Ge,Xe)),Yt=await V({clientId:bn,objective:Ge,target:Xe});N(ga),S(nn,bn),e(),Yt.workflow.workspaceId&&j(`/w/${Yt.workflow.workspaceId}`);return}const _e=await De.createWorkspace({repo:p,prompt:Z,sendImmediately:ee,attachmentIds:k.flatMap(Ge=>Ge.stageId?[Ge.stageId]:[]),...z});if(!_e.ok||!_e.workspaceId){xe(_e.error??"could not create the workspace");return}await L.invalidateQueries({queryKey:["state"]}),N(ga),e(),j(`/w/${_e.workspaceId}`)}catch(_e){xe(_e instanceof Error?_e.message:"could not create the workspace")}finally{Y(!1)}}};return D.useEffect(()=>{const Z=_e=>{_e.key==="Escape"&&(G?ae(!1):kn())};return window.addEventListener("keydown",Z),()=>window.removeEventListener("keydown",Z)},[kn,G]),Qr.createPortal(x.jsxs("div",{className:"fixed inset-0 z-50 flex flex-col bg-bg",children:[x.jsxs("header",{className:"pt-safe flex items-center gap-2 border-b border-border-soft px-3 pb-2.5",children:[x.jsx("span",{className:"flex-1 text-[15px] font-semibold",children:"New workspace"}),x.jsx("button",{type:"button",onClick:kn,"aria-label":"Close",className:"-mr-1 flex size-9 shrink-0 items-center justify-center rounded-full text-muted active:bg-surface-2",children:x.jsx(En,{size:20})})]}),x.jsxs("div",{className:"flex min-h-0 flex-1 flex-col gap-3 overflow-y-auto p-3",children:[x.jsxs("div",{className:"relative",children:[x.jsxs("button",{type:"button",onClick:()=>ae(Z=>!Z),"aria-haspopup":"menu","aria-expanded":G,className:"flex w-full items-center gap-3 rounded-2xl border border-border bg-surface px-3 py-2.5 text-left transition active:bg-surface-2",children:[me?x.jsx(eo,{icon:me.icon,name:me.name,artwork:"inset"}):null,x.jsx("span",{className:"min-w-0 flex-1 truncate text-[15px] font-medium",children:me?.name??"Choose a repo"}),x.jsx(ka,{size:18,className:he("shrink-0 text-muted transition",G&&"rotate-180")})]}),G?x.jsx("ul",{className:"absolute inset-x-0 top-full z-10 mt-1 max-h-72 overflow-y-auto rounded-2xl border border-border bg-surface py-1 shadow-xl",children:W.map(Z=>x.jsx("li",{children:x.jsxs("button",{type:"button",onClick:()=>{y(Z.name),m(Z.name),ae(!1)},className:"flex w-full items-center gap-3 px-3 py-2 text-left active:bg-surface-2",children:[x.jsx(eo,{icon:Z.icon,name:Z.name,artwork:"inset"}),x.jsx("span",{className:"min-w-0 flex-1 truncate text-[15px]",children:Z.name}),Z.name===p?x.jsx(Ca,{size:16,className:"shrink-0 text-accent"}):null]})},Z.name))}):null]}),x.jsxs("fieldset",{"aria-label":"First message",...se.dropTargetProps,className:he("relative m-0 min-w-0 rounded-2xl border border-border bg-surface p-2 has-[textarea:focus]:border-accent/60",se.dragging&&"border-accent bg-accent-soft"),children:[x.jsx(t6,{uploads:se}),x.jsx("textarea",{value:b,onChange:Z=>O(Z.target.value),onFocus:()=>w(ga),onBlur:()=>{ve.getState().focusedDraft===ga&&w(null),kd()},placeholder:T?"What should the workflow accomplish?":"What should the agent do? (optional)",rows:6,autoFocus:!0,className:"block w-full resize-none bg-transparent px-2 py-1 text-base outline-none placeholder:text-faint",onPaste:se.onPaste,onKeyDown:Z=>{Y5(Z)&&(Z.preventDefault(),le())}}),x.jsxs("div",{className:"mt-1 flex items-start gap-1 px-1",children:[x.jsx(W5,{model:at??"Model",providerModel:T?u?.model??null:at,agentType:T&&u?_s(u.model)??null:null,models:ct,modelsFetching:i.isFetching,modelsError:i.isError,defaultModel:we,fast:T?u?.fast:z.fast,effort:yn,plan:z.plan,planAvailable:Ct,showEmptyEffort:!0,modelStaged:!T&&z.model!==void 0,fastStaged:!T&&z.fast!==void 0,effortStaged:!T&&z.effort!==void 0,planStaged:z.plan!==void 0,onModelChange:Z=>Ne({model:Z===(z.model??we)?void 0:Z}),onFastChange:()=>Ne({fast:z.fast===void 0?!0:z.fast?!1:void 0}),onEffortChange:()=>Ne({effort:QS(yn,nt)}),onPlanChange:()=>Ne({plan:z.plan===void 0?!0:z.plan?!1:void 0}),freezeAgent:T,beforeModel:x.jsx(Z5,{active:T,onChange:Z=>{$(Z),xe(null)}}),status:T?f?"Planning role frozen for this Workflow":o.isLoading?"Loading Workflow roles…":void 0:ge?"Applies when the workspace opens":void 0}),x.jsx(n6,{uploads:se,disabled:!R})]}),T&&d?x.jsx("div",{className:"px-2 pb-1 text-xs text-del",children:d}):null]}),x.jsxs("label",{className:he("flex items-start gap-3 rounded-2xl border border-border bg-surface px-3 py-2.5 transition active:bg-surface-2",!tt&&"opacity-40"),children:[x.jsx("input",{type:"checkbox",checked:ee,disabled:!tt,onChange:Z=>{K(Z.target.checked),QI(Z.target.checked)},className:"sr-only"}),x.jsx("span",{className:he("mt-0.5 flex size-[18px] shrink-0 items-center justify-center rounded-md border transition",ee?"border-accent bg-accent text-bg":"border-border"),children:ee?x.jsx(Ca,{size:13,strokeWidth:3}):null}),x.jsxs("span",{className:"min-w-0 flex-1",children:[x.jsx("span",{className:"block text-[15px] font-medium",children:"Send immediately"}),x.jsx("span",{className:"block text-xs text-muted",children:ee?"The prompt goes as soon as the chat and attached files are ready, without waiting for setup.":"The prompt waits until the worktree has finished setting up."})]})]}),ie?x.jsx("div",{className:"text-xs text-del",children:ie}):null]}),x.jsxs("div",{className:"pb-safe border-t border-border-soft p-3",children:[x.jsx("div",{className:"mb-2 min-h-4 text-center text-xs leading-4 text-muted","aria-live":"polite",children:Fe?x.jsx("span",{id:"new-workspace-create-reason",children:Fe}):null}),x.jsx("button",{type:"button",onClick:le,disabled:ne,"aria-describedby":Fe?"new-workspace-create-reason":void 0,className:"w-full rounded-2xl bg-accent px-4 py-3 text-[15px] font-semibold text-bg transition active:scale-[0.985] disabled:opacity-40",children:I?T?"Starting workflow…":"Creating…":T?"Start workflow":tt?"Create & start":"Create empty workspace"})]})]}),document.body)}function XI(e){return e.replaceAll("_"," ").replace(/\b\w/g,t=>t.toUpperCase())}function WI(e){return{free:"Free",go:"Go",plus:"Plus",pro:"Pro",prolite:"Pro Lite",max:"Max",team:"Team",business:"Business",enterprise:"Enterprise",edu:"Education",self_serve_business_usage_based:"Business",enterprise_cbp_usage_based:"Enterprise"}[e]??XI(e)}function ZI(e,t=Date.now()){if(e===null)return"Reset time unavailable";const r=e-t;return r>0&&r<3600*1e3?`Resets in ${Math.max(1,Math.round(r/6e4))}m`:r>0&&r<1440*60*1e3?`Resets in ${Math.max(1,Math.round(r/36e5))}h`:`Resets ${new Date(e).toLocaleString([],{weekday:"short",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"})}`}function JI({window:e}){const t=Math.round(e.usedPercent);return x.jsxs("div",{children:[x.jsxs("div",{className:"mb-1 flex items-baseline gap-2 text-xs",children:[x.jsxs("span",{className:"min-w-0 flex-1 truncate text-muted",children:[e.active?x.jsx("span",{className:"mr-1.5 inline-block size-1.5 rounded-full bg-working"}):null,e.label]}),x.jsxs("span",{className:"font-medium tabular-nums text-text",children:[t,"%"]})]}),x.jsx("div",{role:"progressbar","aria-label":`${e.label}: ${t}% used`,"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":t,className:"h-1.5 overflow-hidden rounded-full bg-surface",children:x.jsx("div",{className:he("h-full rounded-full transition-[width]",t>=95?"bg-del":t>=80?"bg-working":"bg-accent"),style:{width:`${e.usedPercent}%`}})}),x.jsx("div",{className:"mt-1 text-[11px] text-faint",children:ZI(e.resetsAt)})]})}const eU=[{provider:"claude",label:"Claude Code"},{provider:"codex",label:"Codex"},{provider:"cursor",label:"Cursor Agent"},{provider:"opencode",label:"OpenCode"}];function y6(e){return e==="claude"||e==="codex"?e:null}function tU({usage:e,defaultEffort:t,defaultsLoading:r=!1,savingDefault:i=!1,onDefaultEffortChange:l}){const o=y6(e.provider),u=t&&!Ni.includes(t)?t:null,d=e.buckets.filter(f=>f.label!=="GPT-5.3-Codex-Spark"||f.windows.some(h=>h.usedPercent!==0));return x.jsxs("section",{className:"rounded-2xl border border-border bg-surface-2 p-3.5",children:[x.jsxs("div",{className:he("flex items-center gap-2",(o||d.length)&&"mb-3"),children:[x.jsx(js,{agentType:e.provider,model:null,className:"size-5"}),x.jsx("h3",{className:"min-w-0 flex-1 truncate text-sm font-semibold",children:e.label}),e.plan?x.jsx("span",{className:"pill shrink-0 text-[11px]",children:WI(e.plan)}):null]}),o?x.jsxs("label",{className:"mb-3 flex items-center justify-between gap-3 rounded-xl border border-border-soft bg-surface px-3 py-2",children:[x.jsxs("span",{className:"min-w-0",children:[x.jsx("span",{className:"block text-xs font-medium",children:"Default effort"}),x.jsx("span",{className:"block text-[11px] text-faint",children:"New chats"})]}),x.jsxs("span",{className:"relative shrink-0",children:[x.jsxs("select",{"aria-label":`${e.label} default effort`,value:t??"",disabled:r||i||!l,onChange:f=>l?.(f.target.value),className:"h-8 min-w-28 appearance-none rounded-lg border border-border bg-surface-2 py-1 pl-2.5 pr-7 text-xs text-text outline-none disabled:opacity-50",children:[x.jsx("option",{value:"",disabled:!0,children:r?"Reading…":"Choose effort"}),u?x.jsx("option",{value:u,children:u}):null,Ni.map(f=>x.jsx("option",{value:f,children:Wl[f]},f))]}),x.jsx("span",{className:"pointer-events-none absolute inset-y-0 right-2 flex items-center text-faint",children:i?x.jsx(so,{size:12,className:"animate-spin"}):x.jsx(ka,{size:12})})]})]}):null,d.length?x.jsx("div",{className:"space-y-4",children:d.map(f=>x.jsxs("div",{className:"space-y-3",children:[d.length>1||f.label!==e.label?x.jsx("div",{className:"text-xs font-medium text-muted",children:f.label}):null,f.windows.map(h=>x.jsx(JI,{window:h},h.id))]},f.id))}):e.status==="error"&&o?x.jsx("p",{className:"text-xs text-del",children:e.message??"Could not read plan usage."}):null]})}function nU(e){return new Date(e).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})}function rU({onClose:e}){const t=IF(!0),r=_g(),i=On(),[l,o]=D.useState(!1),[u,d]=D.useState(),[f,h]=D.useState(),[m,p]=D.useState(),y=eU.map(k=>t.data?.providers.find(v=>v.provider===k.provider)??{...k,status:"unavailable",plan:null,buckets:[]}),b=async()=>{if(!l){o(!0),d(void 0);try{const k=await De.planUsage(!0);i.setQueryData(["plan-usage"],k)}catch(k){d(k instanceof Error?k.message:"Could not refresh plan usage.")}finally{o(!1)}}},C=async(k,v)=>{if(f)return;h(k),p(void 0);const A=r.data;A&&i.setQueryData(["model-defaults"],{defaultEfforts:{...A.defaultEfforts,[k]:v}});try{const F=await De.patchModelDefaults({[k]:v});i.setQueryData(["model-defaults"],F)}catch(F){A&&i.setQueryData(["model-defaults"],A),p(F instanceof Error?F.message:"Could not save the default effort.")}finally{h(void 0)}};return Qr.createPortal(x.jsxs(x.Fragment,{children:[x.jsx("div",{className:"fixed inset-0 z-50 bg-black/60",onClick:e,"aria-hidden":!0}),x.jsxs("div",{role:"dialog","aria-modal":"true","aria-label":"Models",className:"fade-in pb-safe fixed inset-x-0 bottom-0 z-50 mx-auto flex max-h-[85dvh] max-w-md flex-col rounded-t-3xl border border-border-soft bg-surface shadow-xl md:inset-0 md:m-auto md:h-fit md:rounded-3xl",children:[x.jsxs("div",{className:"flex shrink-0 items-center gap-2 border-b border-border-soft px-4 py-3",children:[x.jsxs("div",{className:"min-w-0 flex-1",children:[x.jsx("h2",{className:"text-base font-semibold",children:"Models"}),x.jsx("p",{className:"truncate text-xs text-muted",children:"Defaults and plan usage"})]}),x.jsx("button",{type:"button",onClick:()=>{b()},disabled:l||!t.data&&t.isLoading,"aria-label":"Refresh plan usage",className:"flex size-8 shrink-0 items-center justify-center rounded-full text-muted active:bg-surface-2 disabled:opacity-40",children:x.jsx(so,{size:17,className:l?"animate-spin":void 0})}),x.jsx("button",{type:"button",onClick:e,"aria-label":"Close",className:"flex size-8 shrink-0 items-center justify-center rounded-full text-muted active:bg-surface-2",children:x.jsx(En,{size:18})})]}),x.jsxs("div",{className:"min-h-0 flex-1 space-y-3 overflow-y-auto overscroll-contain p-4",children:[y.map(k=>{const v=y6(k.provider);return x.jsx(tU,{usage:k,defaultEffort:v?r.data?.defaultEfforts[v]:void 0,defaultsLoading:r.isLoading||f!==void 0,savingDefault:f===v,onDefaultEffortChange:v?A=>{C(v,A)}:void 0},k.provider)}),t.isLoading&&!t.data?x.jsx("p",{className:"text-center text-xs text-faint",children:"Reading plan usage…"}):t.isError&&!t.data?x.jsx(qt,{children:t.error?.message??"Could not read plan usage."}):null,u?x.jsx("p",{className:"text-xs text-del",children:u}):null,m?x.jsx("p",{className:"text-xs text-del",children:m}):null,r.isError?x.jsx("p",{className:"text-xs text-del",children:r.error?.message??"Could not read model defaults."}):null]}),t.data?x.jsxs("div",{className:"shrink-0 border-t border-border-soft px-4 py-2.5 text-[11px] text-faint",children:["Updated ",nU(t.data.fetchedAt)," · cached for one minute"]}):null]})]}),document.body)}function Bs(e){return e.mode==="all"?"All repos":e.repos.length?e.repos.length===1?e.repos[0]:`${e.repos.length} repos`:"No repos"}function b6({repos:e,selected:t,onChange:r}){const i=e.filter(d=>Ad(t,d.name)).length,l=t.mode==="all"||e.length>0&&i===e.length,o=!l&&i>0,u=d=>{r(vF(e.map(f=>f.name),t,d))};return x.jsxs(x.Fragment,{children:[x.jsx(t8,{checked:l,indeterminate:o,disabled:e.length===0,label:"All repos",className:"sticky top-0 z-[1] mb-0.5 border-b border-border-soft bg-inherit",onChange:()=>r(l?CF():ws)}),e.map(d=>x.jsx(t8,{checked:Ad(t,d.name),label:d.name,icon:x.jsx(eo,{icon:d.icon,name:d.name,artwork:"inset"}),onChange:()=>u(d.name)},d.name))]})}function t8({checked:e,indeterminate:t=!1,disabled:r=!1,label:i,icon:l,className:o,onChange:u}){const d=D.useRef(null);return D.useEffect(()=>{d.current&&(d.current.indeterminate=t)},[t]),x.jsxs("label",{className:he("flex min-w-0 items-center gap-2 px-2 py-0.5 text-left text-sm text-text",r?"cursor-default opacity-50":"cursor-pointer active:bg-surface",o),children:[x.jsx("input",{ref:d,type:"checkbox",checked:e,disabled:r,"aria-checked":t?"mixed":e,onChange:u,className:"peer sr-only"}),l??x.jsx("span",{className:"size-8 shrink-0"}),x.jsx("span",{className:"min-w-0 flex-1 truncate",children:i}),x.jsx("span",{className:he("flex size-4 shrink-0 items-center justify-center rounded border peer-focus-visible:outline-2 peer-focus-visible:outline-offset-2 peer-focus-visible:outline-accent",e||t?"border-accent bg-accent text-on-solid":"border-faint bg-surface"),children:t?x.jsx(CA,{size:12,strokeWidth:3,"aria-hidden":!0}):e?x.jsx(Ca,{size:12,strokeWidth:3,"aria-hidden":!0}):null})]})}function aU({query:e,repoSelection:t,includeArchived:r,live:i,selectedId:l,onOpen:o}){const u=NF(e.trim(),250),d=gf(t),f=t.mode==="selected"&&d.length===0,{data:h,isError:m,error:p,isFetching:y}=_F(f?"":u,d,r),b=D.useMemo(()=>mw(e),[e]),C=D.useMemo(()=>{const v=new Map;if(b.length)for(const A of i){if(t.mode==="selected"&&!(A.repo_name&&Ad(t,A.repo_name)))continue;const F=[Vr(A),A.branch,A.repo_name,A.directory_name,A.session_title].filter(Boolean).join(" ").toLowerCase();b.every(N=>F.includes(N))&&v.set(A.id,{workspace:A,archived:!1,sessionId:null,snippets:[],hits:0})}for(const A of f?[]:h?.results??[]){if(!r&&A.workspace.archived)continue;const F=v.get(A.workspace.id);if(F){F.sessionId=A.sessionId,F.snippets=A.snippets,F.hits=A.hits;continue}v.set(A.workspace.id,{workspace:A.workspace,archived:A.workspace.archived,sessionId:A.sessionId,snippets:A.snippets,hits:A.hits})}return[...v.values()]},[i,h,b,t,f,r]),k=h?.index;return x.jsxs(x.Fragment,{children:[k&&!k.ready?x.jsxs("p",{className:"px-1 pb-2 text-xs text-faint",children:["Indexing chats… ",Math.round(k.progress*100),"% — older conversations aren’t searchable yet."]}):null,k?.error?x.jsxs("p",{className:"px-1 pb-2 text-xs text-del",children:["Chat index unavailable (",k.error,") — searching names only."]}):null,m?x.jsxs("p",{className:"px-1 pb-2 text-xs text-del",children:["Chat search unavailable (",p?.message,") — showing name matches only."]}):null,C.length===0?y||u!==e.trim()?x.jsx(dr,{}):m?null:x.jsx(qt,{children:f?"No repos selected.":`Nothing matches “${e.trim()}”${d.length?` in ${Bs(t)}`:""}.`}):x.jsx("ul",{className:"flex flex-col gap-2 pb-2",children:C.map(v=>x.jsx("li",{className:"fade-in",children:x.jsx(sU,{row:v,tokens:b,selected:v.workspace.id===l,onOpen:o})},v.workspace.id))})]})}const iU="card w-full flex-col items-stretch gap-0";function sU({row:e,tokens:t,selected:r,onOpen:i}){const l=e.workspace,o=l.directory_name?.toLowerCase(),u=`${Vr(l)} ${l.branch??""} ${l.repo_name??""}`.toLowerCase(),d=!!o&&t.some(h=>o.includes(h)&&!u.includes(h)),f=x.jsxs(x.Fragment,{children:[x.jsxs("div",{className:"flex items-start gap-3",children:[x.jsx(eo,{icon:l.icon,name:l.repo_name||Vr(l),artwork:"inset"}),x.jsxs("div",{className:"min-w-0 flex-1 overflow-hidden",children:[x.jsxs("div",{className:"flex items-center gap-2",children:[x.jsx("span",{className:"min-w-0 flex-1 truncate font-medium text-text",children:Vr(l)}),e.archived?x.jsx("span",{className:"shrink-0 rounded-md bg-surface-2 px-1.5 py-0.5 text-[10px] font-semibold uppercase tracking-wide text-faint",children:"Archived"}):null]}),x.jsxs("div",{className:"mt-1 flex min-w-0 items-center gap-2 text-xs text-muted",children:[l.repo_name?x.jsx("span",{className:"shrink-0 font-mono text-faint",children:l.repo_name}):null,l.branch?x.jsx(S2,{className:"min-w-0 flex-1 truncate",children:l.branch}):null,d?x.jsxs(S2,{className:"shrink-0 text-faint",children:["dir ",l.directory_name]}):null,x.jsx("span",{className:"ml-auto shrink-0 pl-2 text-[11px] text-faint",children:N5(l.updated_at)})]})]})]}),e.snippets.length?x.jsxs("div",{className:"mt-2 flex flex-col gap-1.5 border-l-2 border-border-soft pl-2.5",children:[e.snippets.map(h=>x.jsx(oU,{snippet:h},`${h.sessionId}:${h.at}:${h.text.slice(0,24)}`)),e.hits>e.snippets.length?x.jsxs("span",{className:"text-[11px] text-faint",children:["+",e.hits-e.snippets.length," more messages"]}):null]}):null]});return x.jsx("button",{type:"button",className:he(iU,r&&"border-accent/50 bg-surface-2"),onClick:()=>i(l.id,e.sessionId),children:f})}const lU={user:"you",assistant:"agent",thinking:"thought"};function oU({snippet:e}){return x.jsxs("p",{className:"line-clamp-2 text-left text-xs leading-snug text-muted",children:[x.jsx("span",{className:`mr-1.5 text-[10px] uppercase tracking-wide ${e.role==="thinking"?"text-faint italic":"text-faint"}`,children:lU[e.role]}),yz(e.text).map((t,r)=>t.hit?x.jsx("mark",{className:"rounded bg-accent/25 px-0.5 text-text",children:t.text},r):x.jsx("span",{children:t.text},r))]})}function cU({live:e,selectedId:t,onOpen:r,onClose:i}){const[l,o]=D.useState(""),[u,d]=D.useState(ws),[f,h]=D.useState(!0),[m,p]=D.useState(!1),y=D.useRef(null),C=(Sg().data?.repos??[]).map(A=>({name:A.name,icon:A.icon}));for(const A of e)A.repo_name&&!C.some(F=>F.name===A.repo_name)&&C.push({name:A.repo_name,icon:A.icon});D.useEffect(()=>y.current?.focus(),[]),D.useEffect(()=>{const A=F=>{F.key==="Escape"&&(m?p(!1):i())};return window.addEventListener("keydown",A),()=>window.removeEventListener("keydown",A)},[i,m]);const k=gf(u),v=u.mode==="selected";return Qr.createPortal(x.jsxs(x.Fragment,{children:[x.jsx("div",{className:"fixed inset-0 z-50 bg-black/50",onClick:i,"aria-hidden":!0}),x.jsxs("div",{role:"dialog","aria-modal":"true","aria-label":"Search workspaces and chats",className:"app-height fade-in pt-safe fixed inset-x-0 top-0 z-50 flex flex-col bg-bg md:inset-x-auto md:left-1/2 md:top-16 md:max-h-[70vh] md:w-[36rem] md:max-w-[92vw] md:-translate-x-1/2 md:rounded-2xl md:border md:border-border md:shadow-2xl",children:[x.jsxs("div",{className:"relative flex items-center gap-2 border-b border-border-soft px-3 py-2.5",children:[x.jsxs("div",{className:"relative min-w-0 flex-1",children:[x.jsx(eg,{size:15,className:"pointer-events-none absolute left-3 top-1/2 -translate-y-1/2 text-faint"}),x.jsx("input",{ref:y,type:"text",inputMode:"search",enterKeyHint:"search",autoCapitalize:"none",autoCorrect:"off",spellCheck:!1,value:l,onChange:A=>o(A.target.value),placeholder:"Search workspaces and chats","aria-label":"Search workspaces and chats",className:"w-full rounded-xl border border-border bg-surface py-2 pl-8 pr-9 text-sm text-text placeholder:text-faint focus:border-accent/50 focus:outline-none"}),l?x.jsx("button",{type:"button",onClick:()=>{o(""),y.current?.focus()},"aria-label":"Clear search",className:"absolute right-1 top-1/2 flex size-7 -translate-y-1/2 items-center justify-center rounded-full text-muted active:bg-surface-2",children:x.jsx(En,{size:15})}):null]}),x.jsx("button",{type:"button",onClick:()=>h(A=>!A),"aria-label":"Include archived workspaces","aria-pressed":f,title:f?"Search archived workspaces":"Archived workspaces excluded",className:he("flex size-9 shrink-0 items-center justify-center rounded-full active:bg-surface-2",f?"border border-accent/50 bg-accent/10 text-text":"text-muted"),children:f?x.jsx(rf,{size:18}):x.jsx(hC,{size:18})}),x.jsxs("button",{type:"button",onClick:()=>p(A=>!A),"aria-label":v?`Repo filter: ${Bs(u)}`:"Filter by repo","aria-haspopup":"menu","aria-expanded":m,className:he("flex h-9 shrink-0 items-center justify-center gap-1 rounded-full text-sm active:bg-surface-2",v?"max-w-36 border border-accent/50 bg-accent/10 px-2.5 text-text":"size-9 text-muted"),children:[x.jsx(Xv,{size:v?14:18,className:"shrink-0"}),v?x.jsxs(x.Fragment,{children:[x.jsx("span",{className:"min-w-0 truncate",children:Bs(u)}),x.jsx(ka,{size:14,className:he("shrink-0 text-faint transition-transform",m&&"rotate-180")})]}):null]}),x.jsx("button",{type:"button",onClick:i,"aria-label":"Close search",className:"-mr-1 flex size-9 shrink-0 items-center justify-center rounded-full text-muted active:bg-surface-2",children:x.jsx(En,{size:20})}),m?x.jsxs(x.Fragment,{children:[x.jsx("div",{className:"fixed inset-0 z-10",onClick:()=>p(!1),"aria-hidden":!0}),x.jsx("div",{role:"menu","aria-label":"Repos to search",className:"fade-in absolute right-3 top-full z-20 mt-1 flex max-h-72 w-64 flex-col overflow-y-auto rounded-2xl border border-border bg-surface py-1 shadow-xl",children:x.jsx(b6,{repos:C,selected:u,onChange:d})})]}):null]}),x.jsx("div",{className:"pb-safe min-h-0 flex-1 overflow-y-auto overflow-x-hidden px-3 py-3",children:l.trim()?x.jsx(aU,{query:l,repoSelection:u,includeArchived:f,live:e,selectedId:t,onOpen:r}):x.jsxs(qt,{children:[v?k.length?`Workspaces and chats in ${Bs(u)}`:"No repos selected":"Every workspace on this Mac",f?", archived included":", excluding archived"," — by name, or by something said in the chat. Quote a “phrase” to require it word for word."]})})]})]}),document.body)}function uU(e){return!!e.workflow}const xU=e=>e==="creating_workspace"||e==="binding_root"||e==="pending_root"?"Accepted":e[0].toUpperCase()+e.slice(1);function dU(e,t){return e?.length?e.find(i=>i.agentType===(t??"unknown"))?.models??[...new Set(e.flatMap(i=>i.models))]:[]}function fU({workspace:e,modelGroups:t}){if(uU(e)){const i=e.workflow?xU(e.workflow.phase):"Workflow";return x.jsxs("span",{title:`Managed Workflow · ${i}`,className:"ml-auto flex min-w-0 items-center gap-1 text-[11px] text-accent",children:[x.jsx(lo,{size:13,"aria-hidden":"true"}),x.jsxs("span",{className:"truncate",children:["Workflow · ",i]})]})}const r=sg(e.model,dU(t,e.agent_type));return r?x.jsxs("span",{className:"ml-auto flex min-w-0 items-center gap-1 text-[11px]",children:[x.jsx(js,{agentType:e.agent_type,model:e.model,className:"size-3"}),x.jsx("span",{className:"truncate",children:r})]}):null}function hU(e,t){return[...e].sort((r,i)=>{const l=+!!i.pinned_at-+!!r.pinned_at;if(l)return l;if(t==="name")return Vr(r).localeCompare(Vr(i));const o=t==="created"?r.created_at:r.updated_at,u=t==="created"?i.created_at:i.updated_at,d=Wn(u)-Wn(o);return Number.isFinite(d)?d:u.localeCompare(o)})}function pU(e,t){return t==="status"?Hf(e):t==="recent"?wz(e.updated_at):e.repo_name??""}function mU(e,t){if(t==="none")return[{key:"all",label:"",items:e}];const r=new Map;for(const i of e){const l=pU(i,t),o=r.get(l);o?o.push(i):r.set(l,[i])}return t==="status"?[...w2,...[...r.keys()].filter(l=>!w2.includes(l))].filter(l=>r.has(l)).map(l=>({key:`status:${l}`,label:Ld(l),status:l,items:r.get(l)??[]})):t==="recent"?Bz.filter(i=>r.has(i)).map(i=>({key:`recent:${i}`,label:Dz(i),items:r.get(i)??[]})):[...r.keys()].sort((i,l)=>i.localeCompare(l)).map(i=>({key:`repo:${i}`,label:i||"No repo",items:r.get(i)??[]}))}function gU({selectedId:e}){const t=Ri(),r=f6(),i=ve(W=>W.setSidebarOpen),l=ve(W=>W.view),o=ve(W=>W.readMarks),u=ve(W=>W.pending),d=ve(W=>W.workingHints),f=ve(W=>W.toggleGroup),[h,m]=D.useState(!1),[p,y]=D.useState(!1),[b,C]=D.useState(!1),[k,v]=D.useState(!1),[A,F]=D.useState(!1),[N,_]=D.useState(!1),[S,w]=D.useState(!1),{data:O,isLoading:z,isError:P,error:T}=Ef(),$=O?.workspaces??[],G=(O?.workflows??[]).filter(W=>!W.workspaceId),ae=xc().data?.groups;D.useEffect(()=>{const W=me=>{(me.metaKey||me.ctrlKey)&&!me.shiftKey&&!me.altKey&&me.key.toLowerCase()==="k"&&(me.preventDefault(),w(Ue=>!Ue))};return window.addEventListener("keydown",W),()=>window.removeEventListener("keydown",W)},[]);const ee=new Map($.map(W=>[W.repo_name,W.icon])),K=gf(l.repoSelection),I=[...new Set([...$.map(W=>W.repo_name).filter(W=>!!W),...K])].sort().map(W=>({name:W,icon:ee.get(W)??null})),Y=l.repoSelection.mode==="all"?$:$.filter(W=>!!W.repo_name&&K.includes(W.repo_name)),ie=Y.filter(W=>W.id===e||!(l.hideMerged&&vz(W)||l.hideDone&&kz(W))),xe=Y.length-ie.length,j=mU(hU(ie,l.sortBy),l.groupBy),L=(W,me=null)=>{t(me?`/w/${W}?session=${encodeURIComponent(me)}`:`/w/${W}`),i(!1)},V=l.repoSelection.mode==="selected",R=V||l.hideMerged||l.hideDone,se=Bs(l.repoSelection),be=yF({total:$.length,shown:ie.length,hidden:xe,repoFiltered:V});return x.jsxs("div",{className:"flex h-full min-w-0 flex-col overflow-hidden",children:[x.jsxs("div",{className:"relative",children:[x.jsx($5,{children:x.jsxs("div",{role:"toolbar","aria-label":"Workspace controls",className:"flex w-full items-center justify-between px-3 pb-2.5",children:[x.jsx("button",{type:"button",onClick:()=>w(!0),"aria-label":"Search workspaces and chats",title:"Search (⌘K)",className:"flex size-8 shrink-0 items-center justify-center rounded-full text-muted active:bg-surface-2 min-[360px]:size-9",children:x.jsx(eg,{size:18})}),x.jsx("button",{type:"button",onClick:()=>F(!0),"aria-label":"Models",title:"Models",className:"flex size-8 shrink-0 items-center justify-center rounded-full text-muted active:bg-surface-2 min-[360px]:size-9",children:x.jsx(ek,{size:18})}),x.jsxs("button",{type:"button",onClick:()=>m(W=>!W),"aria-label":"View options",className:"relative flex size-8 shrink-0 items-center justify-center rounded-full text-muted active:bg-surface-2 min-[360px]:size-9",children:[x.jsx(KB,{size:18}),R?x.jsx("span",{className:"absolute right-1.5 top-1.5 size-1.5 rounded-full bg-accent"}):null]}),x.jsx("button",{type:"button",onClick:()=>y(!0),"aria-label":"Connect a device",className:"flex size-8 shrink-0 items-center justify-center rounded-full text-muted active:bg-surface-2 min-[360px]:size-9",children:x.jsx(Z8,{size:18})}),x.jsx("button",{type:"button",onClick:()=>_(!0),"aria-label":"Open delegated roles",className:"flex size-8 shrink-0 items-center justify-center rounded-full text-muted active:bg-surface-2 min-[360px]:size-9",children:x.jsx(lo,{size:18})}),x.jsxs("button",{type:"button",onClick:r.openPanel,"aria-label":r.status==="idle"?"Call fleet orchestrator":"Open active call",title:"Control room",className:he("relative flex size-8 shrink-0 items-center justify-center rounded-full text-muted active:bg-surface-2 min-[360px]:size-9",r.status!=="idle"&&"bg-voice-soft text-voice"),children:[x.jsx(V0,{size:18}),r.status!=="idle"?x.jsx("span",{className:"absolute right-1 top-1 size-1.5 rounded-full bg-voice"}):null]}),x.jsx("button",{type:"button",onClick:()=>C(!0),"aria-label":"New workspace",className:"flex size-8 shrink-0 items-center justify-center rounded-full text-text active:bg-surface-2 min-[360px]:size-9",children:x.jsx(of,{size:20})})]})}),h?x.jsx(yU,{repos:I,view:l,summary:be,onClose:()=>m(!1)}):null]}),x.jsxs("nav",{className:"pb-safe min-w-0 flex-1 overflow-y-auto overflow-x-hidden px-3 py-3",children:[G.length?x.jsxs("section",{className:"mb-3 space-y-2","aria-label":"Accepted workflows waiting for a workspace",children:[x.jsx("div",{className:"px-1 text-xs font-semibold text-muted",children:"Accepted workflows"}),G.map(W=>x.jsx(P5,{workflow:W,compact:!0},W.id))]}):null,z&&!O?x.jsx(dr,{label:"Loading workspaces…"}):P?x.jsx(Uz,{error:T}):$.length===0&&!G.length?x.jsx(qt,{children:"No active workspaces. Start one in Conductor and it’ll appear here."}):$.length>0&&ie.length===0?x.jsxs(qt,{children:[V?K.length?`No workspaces in ${se}`:"No repos selected":"No workspaces",xe?` — ${xe} ${xe===1?"one is":"ones are"} hidden.`:"."]}):j.map(W=>{const me=!!W.label&&l.collapsed.includes(W.key);return x.jsxs("section",{children:[W.label?x.jsxs("button",{type:"button",onClick:()=>f(W.key),className:"flex w-full items-center gap-2 px-1 py-2 text-sm font-semibold",children:[x.jsx(EU,{status:W.status}),x.jsx("span",{className:"truncate",children:W.label}),me?x.jsx("span",{className:"font-normal text-muted text-xs",children:W.items.length}):null,x.jsx(ka,{size:14,className:he("ml-auto shrink-0 text-faint transition-transform",me&&"-rotate-90")})]}):null,me?null:x.jsx("ul",{className:"flex flex-col gap-2 pb-2",children:W.items.map(Ue=>{const Be=Gw(Ue,o),tt=Ue.active_session_id?d[Ue.active_session_id]:void 0,ct=pg(u.filter(we=>we.workspaceId===Ue.id),[...Ue.pending_prompt?[Ue.pending_prompt]:[],...Ue.parked_prompts??[]],tt!==void 0&&Date.now()-tt<Bd);return x.jsx("li",{className:"fade-in",children:x.jsx("button",{type:"button",className:he("card w-full px-3 py-2.5",Ue.id===e?"border-accent/50 bg-surface-2":Be&&"border-l-accent"),onClick:()=>L(Ue.id),children:x.jsx(CU,{w:Ue,unread:Be,selected:Ue.id===e,modelGroups:ae,promptState:ct,showDiffs:l.showDiffs})})},Ue.id)})})]},W.key)})]}),p?x.jsx(TI,{version:O?.version,onLogs:()=>{y(!1),v(!0)},onClose:()=>y(!1)}):null,b?x.jsx(YI,{onClose:()=>C(!1)}):null,S?x.jsx(cU,{live:$,selectedId:e,onOpen:(W,me)=>{w(!1),L(W,me)},onClose:()=>w(!1)}):null,k?x.jsx(qI,{onClose:()=>v(!1)}):null,A?x.jsx(rU,{onClose:()=>F(!1)}):null,N?x.jsx(o6,{onClose:()=>_(!1)}):null]})}function EU({status:e}){if(!e)return null;const t=qf[e];return t?x.jsx("span",{className:"dot size-2",style:{background:t}}):x.jsx("span",{className:"dot size-2 border border-faint bg-transparent"})}function yU({repos:e,view:t,summary:r,onClose:i}){const l=ve(o=>o.setView);return x.jsxs(x.Fragment,{children:[x.jsx("div",{className:"fixed inset-0 z-20",onClick:i,"aria-hidden":!0}),x.jsxs("div",{role:"dialog","aria-labelledby":"workspace-filters-title","aria-describedby":r?"workspace-filters-summary":void 0,className:"fade-in absolute right-2 top-full z-30 mt-1 flex w-64 flex-col gap-2.5 rounded-2xl border border-border bg-surface p-3 shadow-xl",children:[x.jsxs("div",{className:"border-b border-border-soft pb-2",children:[x.jsx("h2",{id:"workspace-filters-title",className:"text-sm font-semibold text-text",children:"Workspace filters"}),r?x.jsx("p",{id:"workspace-filters-summary",className:"mt-0.5 text-xs text-muted",children:r}):null]}),x.jsx(Ul,{id:"view-group",label:"Group by",children:x.jsx(r8,{id:"view-group",value:t.groupBy,onChange:o=>l({groupBy:o}),options:[["status","Status"],["recent","Recent"],["repo","Repo"],["none","None"]]})}),x.jsx(bU,{repos:e,selected:t.repoSelection,onChange:o=>l({repoSelection:o})}),x.jsx(Ul,{id:"view-sort",label:"Sort by",children:x.jsx(r8,{id:"view-sort",value:t.sortBy,onChange:o=>l({sortBy:o}),options:[["updated","Updated"],["created","Created"],["name","Name"]]})}),x.jsx(Ul,{id:"view-hide-merged",label:"Hide merged",children:x.jsx(n8,{id:"view-hide-merged",checked:t.hideMerged,label:"Hide workspaces whose PR has merged",onChange:o=>l({hideMerged:o})})}),x.jsx(Ul,{id:"view-hide-done",label:"Hide done",children:x.jsx(n8,{id:"view-hide-done",checked:t.hideDone,label:"Hide workspaces marked Done",onChange:o=>l({hideDone:o})})})]})]})}function bU({repos:e,selected:t,onChange:r}){const[i,l]=D.useState(!1);return x.jsxs("div",{className:"flex flex-col gap-1.5",children:[x.jsx(Ul,{id:"view-repo",label:"Repo",children:x.jsxs("button",{id:"view-repo",type:"button",onClick:()=>l(o=>!o),"aria-expanded":i,"aria-controls":"view-repo-options",className:"flex max-w-36 items-center gap-1 rounded-lg border border-border bg-surface-2 px-2 py-1.5 text-sm text-text",children:[x.jsx("span",{className:"truncate",children:Bs(t)}),x.jsx(ka,{size:14,className:he("shrink-0 text-faint transition-transform",i&&"rotate-180")})]})}),i?x.jsx("div",{id:"view-repo-options",className:"flex max-h-48 flex-col overflow-y-auto rounded-lg border border-border bg-surface-2 py-0.5",children:x.jsx(b6,{repos:e,selected:t,onChange:r})}):null]})}function n8({id:e,checked:t,label:r,onChange:i}){return x.jsx("button",{id:e,type:"button",role:"switch","aria-checked":t,"aria-label":r,onClick:()=>i(!t),className:he("relative h-6 w-11 shrink-0 rounded-full transition-colors",t?"bg-accent":"border border-border bg-surface-2"),children:x.jsx("span",{className:he("absolute left-0.5 top-0.5 size-5 rounded-full bg-white transition-transform",t?"translate-x-5":"translate-x-0")})})}function Ul({id:e,label:t,children:r}){return x.jsxs("div",{className:"flex items-center justify-between gap-3 text-sm text-muted",children:[x.jsx("label",{htmlFor:e,children:t}),r]})}function r8({id:e,value:t,options:r,onChange:i}){return x.jsx("select",{id:e,value:t,onChange:l=>i(l.target.value),className:"max-w-36 truncate rounded-lg border border-border bg-surface-2 px-2 py-1.5 text-sm text-text",children:r.map(([l,o])=>x.jsx("option",{value:l,children:o},l))})}function CU({w:e,unread:t,selected:r,modelGroups:i,promptState:l,showDiffs:o}){return x.jsxs(x.Fragment,{children:[x.jsxs("div",{className:"relative shrink-0",children:[x.jsx(eo,{icon:e.icon,name:e.repo_name||Vr(e),artwork:"full-bleed"}),x.jsx(Oz,{w:e,promptState:l,className:"absolute -right-0.5 -bottom-0.5 bg-surface ring-2 ring-surface"}),e.run_active?x.jsx(zz,{className:"absolute -top-0.5 -left-0.5"}):null]}),x.jsxs("div",{className:"min-w-0 flex-1 space-y-1.25 overflow-hidden",children:[x.jsxs("div",{className:"flex min-w-0 items-center justify-between gap-2",children:[x.jsxs("div",{className:"flex min-w-0 items-center gap-1.5",children:[x.jsx("span",{className:he("min-w-0 truncate text-sm leading-none",t?"font-bold":"font-medium",t||r?"text-text":"text-muted"),children:Vr(e)}),e.pinned_at?x.jsx("span",{className:"shrink-0 text-xs text-faint",children:"📌"}):null,t>1?x.jsx(Iz,{children:t}):t?x.jsx("span",{className:"dot size-2 bg-accent"}):null]}),o?x.jsx(gI,{stats:e.change_stats}):null]}),x.jsxs("div",{className:"flex min-w-0 items-end gap-2 text-xs text-muted",children:[x.jsx("span",{className:"shrink-0 text-[11px] text-faint",children:_5(e.updated_at)}),x.jsx(fU,{workspace:e,modelGroups:i})]})]})]})}function vU(){DF();const e=ve(t=>t.token);return x.jsxs(x.Fragment,{children:[x.jsx(EL,{}),e?x.jsxs(C7,{children:[x.jsxs(Il,{element:x.jsx(kU,{}),children:[x.jsx(Il,{index:!0,element:x.jsx(AU,{})}),x.jsx(Il,{path:"/w/:workspaceId",element:x.jsx(VP,{})})]}),x.jsx(Il,{path:"*",element:x.jsx(E7,{to:"/",replace:!0})})]}):x.jsx(sI,{})]})}function kU(){const e=e7("/w/:workspaceId"),t=ve(o=>o.sidebarOpen),r=ve(o=>o.setSidebarOpen),i=D.useRef(null),{data:l}=Ef();return BF(i),KF(),qF(),SF(),x.jsxs(dI,{children:[x.jsxs("div",{className:"flex h-full min-h-0 flex-col overflow-hidden",children:[x.jsxs("div",{className:"flex min-h-0 flex-1 overflow-hidden",children:[t?x.jsx("div",{className:"fixed inset-0 z-40 bg-black/50 md:hidden",onClick:()=>r(!1),"aria-hidden":!0}):null,x.jsx("aside",{ref:i,className:he("fixed inset-y-0 left-0 z-50 flex w-[85%] max-w-80 flex-col border-r border-border-soft bg-bg transition-transform duration-200 ease-out","md:static md:z-auto md:w-72 md:max-w-none md:shrink-0 md:translate-x-0 md:transition-none lg:w-80",t?"translate-x-0":"-translate-x-full"),children:x.jsx(gU,{selectedId:e?.params.workspaceId})}),x.jsx("main",{className:"flex min-w-0 flex-1 flex-col",children:x.jsx(y7,{})})]}),l?.workflowWarning||l?.uiQuarantine?x.jsxs("div",{className:"pb-safe relative z-[60] shrink-0 border-t border-del/40",children:[x.jsx(sL,{warning:l.workflowWarning}),x.jsx(iL,{quarantine:l.uiQuarantine})]}):null]}),x.jsx(pI,{})]})}function AU(){const e=ve(t=>t.setSidebarOpen);return x.jsxs("div",{className:"grid h-full place-items-center",children:[x.jsx("button",{type:"button",onClick:()=>e(!0),className:"pill pill-active md:hidden",children:"Browse workspaces"}),x.jsx("span",{className:"hidden text-sm text-muted md:block",children:"Select a workspace"})]})}navigator.storage?.persist&&navigator.storage.persist().catch(()=>{});kI();const BU=new Zb({defaultOptions:{queries:{staleTime:1e3,retry:1,refetchOnWindowFocus:!0}}}),C6=document.getElementById("root");if(!C6)throw new Error("#root missing");g4.createRoot(C6).render(x.jsx(D.StrictMode,{children:x.jsx(e4,{client:BU,children:x.jsx(V7,{children:x.jsx(vU,{})})})}));export{U5 as _,ZS as a,hN as b,h2 as c,he as d,uN as f,fN as h,x as j,DU as p,D as r,Bf as s,rN as w};
|