conductor-remote 1.103.0 → 1.104.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/index-DKKawj8R.js +52 -0
- package/dist/index.html +1 -1
- package/dist/sw.js +1 -1
- package/dist-node/src/git.js +6 -5
- package/dist-node/src/routes.js +1 -1
- package/dist-node/src/server.js +3 -3
- package/package.json +1 -1
- package/dist/assets/index-CuzsYRNt.js +0 -52
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
(function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.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 Zl(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var mx={exports:{}},vl={};var gm;function Py(){if(gm)return vl;gm=1;var e=Symbol.for("react.transitional.element"),n=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 vl.Fragment=n,vl.jsx=r,vl.jsxs=r,vl}var Em;function Iy(){return Em||(Em=1,mx.exports=Py()),mx.exports}var x=Iy(),Wl=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(){}},Uy=class extends Wl{#e;#t;#n;constructor(){super(),this.#n=e=>{if(typeof window<"u"&&window.addEventListener){const n=()=>e();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}}}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(n=>{typeof n=="boolean"?this.setFocused(n):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(n=>{n(e)})}isFocused(){return typeof this.#e=="boolean"?this.#e:globalThis.document?.visibilityState!=="hidden"}},Od=new Uy,Hy={setTimeout:(e,n)=>setTimeout(e,n),clearTimeout:e=>clearTimeout(e),setInterval:(e,n)=>setInterval(e,n),clearInterval:e=>clearInterval(e)},$y=class{#e=Hy;#t=!1;setTimeoutProvider(e){this.#e=e}setTimeout(e,n){return this.#e.setTimeout(e,n)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,n){return this.#e.setInterval(e,n)}clearInterval(e){this.#e.clearInterval(e)}},ki=new $y;function qy(e){setTimeout(e,0)}var Gy=typeof window>"u"||"Deno"in globalThis;function Kn(){}function Vy(e,n){return typeof e=="function"?e(n):e}function ed(e){return typeof e=="number"&&e>=0&&e!==1/0}function L2(e,n){return Math.max(e+(n||0)-Date.now(),0)}function Za(e,n){return typeof e=="function"?e(n):e}function or(e,n){return typeof e=="function"?e(n):e}function ym(e,n){const{type:r="all",exact:i,fetchStatus:l,predicate:o,queryKey:u,stale:d}=e;if(u){if(i){if(n.queryHash!==zd(u,n.options))return!1}else if(!Il(n.queryKey,u))return!1}if(r!=="all"){const f=n.isActive();if(r==="active"&&!f||r==="inactive"&&f)return!1}return!(typeof d=="boolean"&&n.isStale()!==d||l&&l!==n.state.fetchStatus||o&&!o(n))}function bm(e,n){const{exact:r,status:i,predicate:l,mutationKey:o}=e;if(o){if(!n.options.mutationKey)return!1;if(r){if(Pl(n.options.mutationKey)!==Pl(o))return!1}else if(!Il(n.options.mutationKey,o))return!1}return!(i&&n.state.status!==i||l&&!l(n))}function zd(e,n){return(n?.queryKeyHashFn||Pl)(e)}function Pl(e){return JSON.stringify(e,(n,r)=>nd(r)?Object.keys(r).sort().reduce((i,l)=>(i[l]=r[l],i),{}):r)}function Il(e,n){return e===n?!0:typeof e!=typeof n?!1:e&&n&&typeof e=="object"&&typeof n=="object"?Object.keys(n).every(r=>Il(e[r],n[r])):!1}var Qy=Object.prototype.hasOwnProperty;function P2(e,n,r=0){if(e===n)return e;if(r>500)return n;const i=Cm(e)&&Cm(n);if(!i&&!(nd(e)&&nd(n)))return n;const o=(i?e:Object.keys(e)).length,u=i?n:Object.keys(n),d=u.length,f=i?new Array(d):{};let h=0;for(let g=0;g<d;g++){const p=i?g:u[g],y=e[p],b=n[p];if(y===b){f[p]=y,(i?g<o:Qy.call(e,p))&&h++;continue}if(y===null||b===null||typeof y!="object"||typeof b!="object"){f[p]=b;continue}const C=P2(y,b,r+1);f[p]=C,C===y&&h++}return o===d&&h===o?e:f}function td(e,n){if(!n||Object.keys(e).length!==Object.keys(n).length)return!1;for(const r in e)if(e[r]!==n[r])return!1;return!0}function Cm(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function nd(e){if(!vm(e))return!1;const n=e.constructor;if(n===void 0)return!0;const r=n.prototype;return!(!vm(r)||!r.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function vm(e){return Object.prototype.toString.call(e)==="[object Object]"}function Yy(e){return new Promise(n=>{ki.setTimeout(n,e)})}function rd(e,n,r){return typeof r.structuralSharing=="function"?r.structuralSharing(e,n):r.structuralSharing!==!1?P2(e,n):n}function Ky(e){return e}function Xy(e,n,r=0){const i=[...e,n];return r&&i.length>r?i.slice(1):i}function Zy(e,n,r=0){const i=[n,...e];return r&&i.length>r?i.slice(0,-1):i}var Ld=Symbol();function I2(e,n){return!e.queryFn&&n?.initialPromise?()=>n.initialPromise:!e.queryFn||e.queryFn===Ld?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function U2(e,n){return typeof e=="function"?e(...n):!!e}function Wy(e,n,r){let i=!1,l;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(l??=n(),i||(i=!0,l.aborted?r():l.addEventListener("abort",r,{once:!0})),l)}),e}var Ul=(()=>{let e=()=>Gy;return{isServer(){return e()},setIsServer(n){e=n}}})();function ad(){let e,n;const r=new Promise((l,o)=>{e=l,n=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}),n(l)},r}var Jy=qy;function e4(){let e=[],n=0,r=d=>{d()},i=d=>{d()},l=Jy;const o=d=>{n?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;n++;try{f=d()}finally{n--,n||u()}return f},batchCalls:d=>(...f)=>{o(()=>{d(...f)})},schedule:o,setNotifyFunction:d=>{r=d},setBatchNotifyFunction:d=>{i=d},setScheduler:d=>{l=d}}}var Sn=e4(),t4=class extends Wl{#e=!0;#t;#n;constructor(){super(),this.#n=e=>{if(typeof window<"u"&&window.addEventListener){const n=()=>e(!0),r=()=>e(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),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}},V0=new t4;function n4(e){return Math.min(1e3*2**e,3e4)}function H2(e){return(e??"online")==="online"?V0.isOnline():!0}var id=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function $2(e){let n=!1,r=0,i;const l=ad(),o=()=>l.status!=="pending",u=v=>{if(!o()){const A=new id(v);y(A),e.onCancel?.(A)}},d=()=>{n=!0},f=()=>{n=!1},h=()=>Od.isFocused()&&(e.networkMode==="always"||V0.isOnline())&&e.canRun(),g=()=>H2(e.networkMode)&&e.canRun(),p=v=>{o()||(i?.(),l.resolve(v))},y=v=>{o()||(i?.(),l.reject(v))},b=()=>new Promise(v=>{i=A=>{(o()||h())&&v(A)},e.onPause?.()}).then(()=>{i=void 0,o()||e.onContinue?.()}),C=()=>{if(o())return;let v;const A=r===0?e.initialPromise:void 0;try{v=A??e.fn()}catch(B){v=Promise.reject(B)}Promise.resolve(v).then(p).catch(B=>{if(o())return;const j=e.retry??(Ul.isServer()?0:3),S=e.retryDelay??n4,N=typeof S=="function"?S(r,B):S,T=j===!0||typeof j=="number"&&r<j||typeof j=="function"&&j(r,B);if(n||!T){y(B);return}r++,e.onFail?.(r,B),Yy(N).then(()=>h()?void 0:b()).then(()=>{n?y(B):C()})})};return{promise:l,status:()=>l.status,cancel:u,continue:()=>(i?.(),l),cancelRetry:d,continueRetry:f,canStart:g,start:()=>(g()?C():b().then(C),l)}}var q2=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),ed(this.gcTime)&&(this.#e=ki.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Ul.isServer()?1/0:300*1e3))}clearGcTimeout(){this.#e!==void 0&&(ki.clearTimeout(this.#e),this.#e=void 0)}};function r4(e){return{onFetch:(n,r)=>{const i=n.options,l=n.fetchOptions?.meta?.fetchMore?.direction,o=n.state.data?.pages||[],u=n.state.data?.pageParams||[];let d={pages:[],pageParams:[]},f=0;const h=async()=>{let g=!1;const p=C=>{Wy(C,()=>n.signal,()=>g=!0)},y=I2(n.options,n.fetchOptions),b=async(C,v,A)=>{if(g)return Promise.reject(n.signal.reason);if(v==null&&C.pages.length)return Promise.resolve(C);const j=(()=>{const F={client:n.client,queryKey:n.queryKey,pageParam:v,direction:A?"backward":"forward",meta:n.options.meta};return p(F),F})(),S=await y(j),{maxPages:N}=n.options,T=A?Zy:Xy;return{pages:T(C.pages,S,N),pageParams:T(C.pageParams,v,N)}};if(l&&o.length){const C=l==="backward",v=C?a4:Am,A={pages:o,pageParams:u},B=v(i,A);d=await b(A,B,C)}else{const C=e??o.length;do{const v=f===0?u[0]??i.initialPageParam:Am(i,d);if(f>0&&v==null)break;d=await b(d,v),f++}while(f<C)}return d};n.options.persister?n.fetchFn=()=>n.options.persister?.(h,{client:n.client,queryKey:n.queryKey,meta:n.options.meta,signal:n.signal},r):n.fetchFn=h}}}function Am(e,{pages:n,pageParams:r}){const i=n.length-1;return n.length>0?e.getNextPageParam(n[i],n,r[i],r):void 0}function a4(e,{pages:n,pageParams:r}){return n.length>0?e.getPreviousPageParam?.(n[0],n,r[0],r):void 0}var i4=class extends q2{#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=Bm(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 n=Bm(this.options);n.data!==void 0&&(this.setState(km(n.data,n.dataUpdatedAt)),this.#t=n)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#r.remove(this)}setData(e,n){const r=rd(this.state.data,e,this.options);return this.#o({data:r,type:"success",dataUpdatedAt:n?.updatedAt,manual:n?.manual}),r}setState(e){this.#o({type:"setState",state:e})}cancel(e){const n=this.#a?.promise;return this.#a?.cancel(e),n?n.then(Kn).catch(Kn):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=>or(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Ld||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>Za(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:!L2(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(n=>n.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#a?.continue()}onOnline(){this.observers.find(n=>n.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(n=>n!==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,n){if(this.state.fetchStatus!=="idle"&&this.#a?.status()!=="rejected"){if(this.state.data!==void 0&&n?.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=I2(this.options,n),g=(()=>{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,g,this):f(g)},u=(()=>{const f={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:this.#i,state:this.state,fetchFn:l};return i(f),f})();(this.#e==="infinite"?r4(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=$2({initialPromise:n?.initialPromise,fn:u.fetchFn,onCancel:f=>{f instanceof id&&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 id){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 n=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,...G2(r.data,this.options),fetchMeta:e.meta??null};case"success":const i={...r,...km(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=n(this.state),Sn.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),this.#r.notify({query:this,type:"updated",action:e})})}};function G2(e,n){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:H2(n.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function km(e,n){return{data:e,dataUpdatedAt:n??Date.now(),error:null,isInvalidated:!1,status:"success"}}function Bm(e){const n=typeof e.initialData=="function"?e.initialData():e.initialData,r=n!==void 0,i=r?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:n,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 s4=class extends Wl{constructor(e,n){super(),this.options=n,this.#e=e,this.#s=null,this.#l=ad(),this.bindMethods(),this.setOptions(n)}#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),Dm(this.#t,this.options)?this.#f():this.updateResult(),this.#y())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return sd(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return sd(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#b(),this.#C(),this.#t.removeObserver(this)}setOptions(e){const n=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 or(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),n._defaulted&&!td(this.options,n)&&this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#t,observer:this});const i=this.hasListeners();i&&wm(this.#t,r,this.options,n)&&this.#f(),this.updateResult(),i&&(this.#t!==r||or(this.options.enabled,this.#t)!==or(n.enabled,this.#t)||Za(this.options.staleTime,this.#t)!==Za(n.staleTime,this.#t))&&this.#m();const l=this.#g();i&&(this.#t!==r||or(this.options.enabled,this.#t)!==or(n.enabled,this.#t)||l!==this.#c)&&this.#E(l)}getOptimisticResult(e){const n=this.#e.getQueryCache().build(this.#e,e),r=this.createResult(n,e);return o4(this,r)&&(this.#r=r,this.#a=this.options,this.#i=this.#t.state),r}getCurrentResult(){return this.#r}trackResult(e,n){return new Proxy(e,{get:(r,i)=>(this.trackProp(i),n?.(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 n=this.#e.defaultQueryOptions(e),r=this.#e.getQueryCache().build(this.#e,n);return r.fetch().then(()=>this.createResult(r,n))}fetch(e){return this.#f({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#r))}#f(e){this.#v();let n=this.#t.fetch(this.options,e);return e?.throwOnError||(n=n.catch(Kn)),n}#m(){this.#b();const e=Za(this.options.staleTime,this.#t);if(Ul.isServer()||this.#r.isStale||!ed(e))return;const r=L2(this.#r.dataUpdatedAt,e)+1;this.#x=ki.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,!(Ul.isServer()||or(this.options.enabled,this.#t)===!1||!ed(this.#c)||this.#c===0)&&(this.#d=ki.setInterval(()=>{(this.options.refetchIntervalInBackground||Od.isFocused())&&this.#f()},this.#c))}#y(){this.#m(),this.#E(this.#g())}#b(){this.#x!==void 0&&(ki.clearTimeout(this.#x),this.#x=void 0)}#C(){this.#d!==void 0&&(ki.clearInterval(this.#d),this.#d=void 0)}createResult(e,n){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 g={...h},p=!1,y;if(n._optimisticResults){const L=this.hasListeners(),I=!L&&Dm(e,n),O=L&&wm(e,r,n,i);(I||O)&&(g={...g,...G2(h.data,e.options)}),n._optimisticResults==="isRestoring"&&(g.fetchStatus="idle")}let{error:b,errorUpdatedAt:C,status:v}=g;y=g.data;let A=!1;if(n.placeholderData!==void 0&&y===void 0&&v==="pending"){let L;l?.isPlaceholderData&&n.placeholderData===u?.placeholderData?(L=l.data,A=!0):L=typeof n.placeholderData=="function"?n.placeholderData(this.#h?.state.data,this.#h):n.placeholderData,L!==void 0&&(v="success",y=rd(l?.data,L,n),p=!0)}if(n.select&&y!==void 0&&!A)if(l&&y===o?.data&&n.select===this.#u)y=this.#o;else try{this.#u=n.select,y=n.select(y),y=rd(l?.data,y,n),this.#o=y,this.#s=null}catch(L){this.#s=L}this.#s&&(b=this.#s,y=this.#o,C=Date.now(),v="error");const B=g.fetchStatus==="fetching",j=v==="pending",S=v==="error",N=j&&B,T=y!==void 0,R={status:v,fetchStatus:g.fetchStatus,isPending:j,isSuccess:v==="success",isError:S,isInitialLoading:N,isLoading:N,data:y,dataUpdatedAt:g.dataUpdatedAt,error:b,errorUpdatedAt:C,failureCount:g.fetchFailureCount,failureReason:g.fetchFailureReason,errorUpdateCount:g.errorUpdateCount,isFetched:e.isFetched(),isFetchedAfterMount:g.dataUpdateCount>f.dataUpdateCount||g.errorUpdateCount>f.errorUpdateCount,isFetching:B,isRefetching:B&&!j,isLoadingError:S&&!T,isPaused:g.fetchStatus==="paused",isPlaceholderData:p,isRefetchError:S&&T,isStale:Pd(e,n),refetch:this.refetch,promise:this.#l,isEnabled:or(n.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){const L=R.data!==void 0,I=R.status==="error"&&!L,O=le=>{I?le.reject(R.error):L&&le.resolve(R.data)},$=()=>{const le=this.#l=R.promise=ad();O(le)},Q=this.#l;switch(Q.status){case"pending":e.queryHash===r.queryHash&&O(Q);break;case"fulfilled":(I||R.data!==Q.value)&&$();break;case"rejected":(!I||R.error!==Q.reason)&&$();break}}return R}updateResult(){const e=this.#r,n=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),td(n,e))return;this.#r=n;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.#A({listeners:r()})}#v(){const e=this.#e.getQueryCache().build(this.#e,this.options);if(e===this.#t)return;const n=this.#t;this.#t=e,this.#n=e.state,this.hasListeners()&&(n?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#y()}#A(e){Sn.batch(()=>{e.listeners&&this.listeners.forEach(n=>{n(this.#r)}),this.#e.getQueryCache().notify({query:this.#t,type:"observerResultsUpdated"})})}};function l4(e,n){return or(n.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&or(n.retryOnMount,e)===!1)}function Dm(e,n){return l4(e,n)||e.state.data!==void 0&&sd(e,n,n.refetchOnMount)}function sd(e,n,r){if(or(n.enabled,e)!==!1&&Za(n.staleTime,e)!=="static"){const i=typeof r=="function"?r(e):r;return i==="always"||i!==!1&&Pd(e,n)}return!1}function wm(e,n,r,i){return(e!==n||or(i.enabled,e)===!1)&&(!r.suspense||e.state.status!=="error")&&Pd(e,r)}function Pd(e,n){return or(n.enabled,e)!==!1&&e.isStaleByTime(Za(n.staleTime,e))}function o4(e,n){return!td(e.getCurrentResult(),n)}var c4=class extends q2{#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||u4(),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(n=>n!==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 n=()=>{this.#i({type:"continue"})},r={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#r=$2({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:n,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)n();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 n=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=n(this.state),Sn.batch(()=>{this.#t.forEach(r=>{r.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:"updated",action:e})})}};function u4(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var x4=class extends Wl{constructor(e={}){super(),this.config=e,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(e,n,r){const i=new c4({client:e,mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(n),state:r});return this.add(i),i}add(e){this.#e.add(e);const n=A0(e);if(typeof n=="string"){const r=this.#t.get(n);r?r.push(e):this.#t.set(n,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#e.delete(e)){const n=A0(e);if(typeof n=="string"){const r=this.#t.get(n);if(r)if(r.length>1){const i=r.indexOf(e);i!==-1&&r.splice(i,1)}else r[0]===e&&this.#t.delete(n)}}this.notify({type:"removed",mutation:e})}canRun(e){const n=A0(e);if(typeof n=="string"){const i=this.#t.get(n)?.find(l=>l.state.status==="pending");return!i||i===e}else return!0}runNext(e){const n=A0(e);return typeof n=="string"?this.#t.get(n)?.find(i=>i!==e&&i.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){Sn.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 n={exact:!0,...e};return this.getAll().find(r=>bm(n,r))}findAll(e={}){return this.getAll().filter(n=>bm(e,n))}notify(e){Sn.batch(()=>{this.listeners.forEach(n=>{n(e)})})}resumePausedMutations(){const e=this.getAll().filter(n=>n.state.isPaused);return Sn.batch(()=>Promise.all(e.map(n=>n.continue().catch(Kn))))}};function A0(e){return e.options.scope?.id}var d4=class extends Wl{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,n,r){const i=n.queryKey,l=n.queryHash??zd(i,n);let o=this.get(l);return o||(o=new i4({client:e,queryKey:i,queryHash:l,options:e.defaultQueryOptions(n),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 n=this.#e.get(e.queryHash);n&&(e.destroy(),n===e&&this.#e.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){Sn.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){const n={exact:!0,...e};return this.getAll().find(r=>ym(n,r))}findAll(e={}){const n=this.getAll();return Object.keys(e).length>0?n.filter(r=>ym(e,r)):n}notify(e){Sn.batch(()=>{this.listeners.forEach(n=>{n(e)})})}onFocus(){Sn.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){Sn.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},f4=class{#e;#t;#n;#r;#i;#a;#l;#s;constructor(e={}){this.#e=e.queryCache||new d4,this.#t=e.mutationCache||new x4,this.#n=e.defaultOptions||{},this.#r=new Map,this.#i=new Map,this.#a=0}mount(){this.#a++,this.#a===1&&(this.#l=Od.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#s=V0.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 n=this.defaultQueryOptions({queryKey:e});return this.#e.get(n.queryHash)?.state.data}ensureQueryData(e){const n=this.defaultQueryOptions(e),r=this.#e.build(this,n),i=r.state.data;return i===void 0?this.fetchQuery(e):(e.revalidateIfStale&&r.isStaleByTime(Za(n.staleTime,r))&&this.prefetchQuery(n),Promise.resolve(i))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:n,state:r})=>{const i=r.data;return[n,i]})}setQueryData(e,n,r){const i=this.defaultQueryOptions({queryKey:e}),o=this.#e.get(i.queryHash)?.state.data,u=Vy(n,o);if(u!==void 0)return this.#e.build(this,i).setData(u,{...r,manual:!0})}setQueriesData(e,n,r){return Sn.batch(()=>this.#e.findAll(e).map(({queryKey:i})=>[i,this.setQueryData(i,n,r)]))}getQueryState(e){const n=this.defaultQueryOptions({queryKey:e});return this.#e.get(n.queryHash)?.state}removeQueries(e){const n=this.#e;Sn.batch(()=>{n.findAll(e).forEach(r=>{n.remove(r)})})}resetQueries(e,n){const r=this.#e;return Sn.batch(()=>(r.findAll(e).forEach(i=>{i.reset()}),this.refetchQueries({type:"active",...e},n)))}cancelQueries(e,n={}){const r={revert:!0,...n},i=Sn.batch(()=>this.#e.findAll(e).map(l=>l.cancel(r)));return Promise.all(i).then(Kn).catch(Kn)}invalidateQueries(e,n={}){return Sn.batch(()=>(this.#e.findAll(e).forEach(r=>{r.invalidate()}),e?.refetchType==="none"?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},n)))}refetchQueries(e,n={}){const r={...n,cancelRefetch:n.cancelRefetch??!0},i=Sn.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(Kn)),l.state.fetchStatus==="paused"?Promise.resolve():o}));return Promise.all(i).then(Kn)}fetchQuery(e){const n=this.defaultQueryOptions(e);n.retry===void 0&&(n.retry=!1);const r=this.#e.build(this,n);return r.isStaleByTime(Za(n.staleTime,r))?r.fetch(n):Promise.resolve(r.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Kn).catch(Kn)}fetchInfiniteQuery(e){return e._type="infinite",this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Kn).catch(Kn)}ensureInfiniteQueryData(e){return e._type="infinite",this.ensureQueryData(e)}resumePausedMutations(){return V0.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,n){this.#r.set(Pl(e),{queryKey:e,defaultOptions:n})}getQueryDefaults(e){const n=[...this.#r.values()],r={};return n.forEach(i=>{Il(e,i.queryKey)&&Object.assign(r,i.defaultOptions)}),r}setMutationDefaults(e,n){this.#i.set(Pl(e),{mutationKey:e,defaultOptions:n})}getMutationDefaults(e){const n=[...this.#i.values()],r={};return n.forEach(i=>{Il(e,i.mutationKey)&&Object.assign(r,i.defaultOptions)}),r}defaultQueryOptions(e){if(e._defaulted)return e;const n={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return n.queryHash||(n.queryHash=zd(n.queryKey,n)),n.refetchOnReconnect===void 0&&(n.refetchOnReconnect=n.networkMode!=="always"),n.throwOnError===void 0&&(n.throwOnError=!!n.suspense),!n.networkMode&&n.persister&&(n.networkMode="offlineFirst"),n.queryFn===Ld&&(n.enabled=!1),n}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()}},gx={exports:{}},Ze={};var Fm;function h4(){if(Fm)return Ze;Fm=1;var e=Symbol.for("react.transitional.element"),n=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"),g=Symbol.for("react.lazy"),p=Symbol.for("react.activity"),y=Symbol.iterator;function b(z){return z===null||typeof z!="object"?null:(z=y&&z[y]||z["@@iterator"],typeof z=="function"?z:null)}var C={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},v=Object.assign,A={};function B(z,X,w){this.props=z,this.context=X,this.refs=A,this.updater=w||C}B.prototype.isReactComponent={},B.prototype.setState=function(z,X){if(typeof z!="object"&&typeof z!="function"&&z!=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,z,X,"setState")},B.prototype.forceUpdate=function(z){this.updater.enqueueForceUpdate(this,z,"forceUpdate")};function j(){}j.prototype=B.prototype;function S(z,X,w){this.props=z,this.context=X,this.refs=A,this.updater=w||C}var N=S.prototype=new j;N.constructor=S,v(N,B.prototype),N.isPureReactComponent=!0;var T=Array.isArray;function F(){}var R={H:null,A:null,T:null,S:null},L=Object.prototype.hasOwnProperty;function I(z,X,w){var W=w.ref;return{$$typeof:e,type:z,key:X,ref:W!==void 0?W:null,props:w}}function O(z,X){return I(z.type,X,z.props)}function $(z){return typeof z=="object"&&z!==null&&z.$$typeof===e}function Q(z){var X={"=":"=0",":":"=2"};return"$"+z.replace(/[=:]/g,function(w){return X[w]})}var le=/\/+/g;function ee(z,X){return typeof z=="object"&&z!==null&&z.key!=null?Q(""+z.key):X.toString(36)}function Y(z){switch(z.status){case"fulfilled":return z.value;case"rejected":throw z.reason;default:switch(typeof z.status=="string"?z.then(F,F):(z.status="pending",z.then(function(X){z.status==="pending"&&(z.status="fulfilled",z.value=X)},function(X){z.status==="pending"&&(z.status="rejected",z.reason=X)})),z.status){case"fulfilled":return z.value;case"rejected":throw z.reason}}throw z}function P(z,X,w,W,fe){var he=typeof z;(he==="undefined"||he==="boolean")&&(z=null);var De=!1;if(z===null)De=!0;else switch(he){case"bigint":case"string":case"number":De=!0;break;case"object":switch(z.$$typeof){case e:case n:De=!0;break;case g:return De=z._init,P(De(z._payload),X,w,W,fe)}}if(De)return fe=fe(z),De=W===""?"."+ee(z,0):W,T(fe)?(w="",De!=null&&(w=De.replace(le,"$&/")+"/"),P(fe,X,w,"",function(at){return at})):fe!=null&&($(fe)&&(fe=O(fe,w+(fe.key==null||z&&z.key===fe.key?"":(""+fe.key).replace(le,"$&/")+"/")+De)),X.push(fe)),1;De=0;var Ce=W===""?".":W+":";if(T(z))for(var Fe=0;Fe<z.length;Fe++)W=z[Fe],he=Ce+ee(W,Fe),De+=P(W,X,w,he,fe);else if(Fe=b(z),typeof Fe=="function")for(z=Fe.call(z),Fe=0;!(W=z.next()).done;)W=W.value,he=Ce+ee(W,Fe++),De+=P(W,X,w,he,fe);else if(he==="object"){if(typeof z.then=="function")return P(Y(z),X,w,W,fe);throw X=String(z),Error("Objects are not valid as a React child (found: "+(X==="[object Object]"?"object with keys {"+Object.keys(z).join(", ")+"}":X)+"). If you meant to render a collection of children, use an array instead.")}return De}function V(z,X,w){if(z==null)return z;var W=[],fe=0;return P(z,W,"","",function(he){return X.call(w,he,fe++)}),W}function Z(z){if(z._status===-1){var X=z._result;X=X(),X.then(function(w){(z._status===0||z._status===-1)&&(z._status=1,z._result=w)},function(w){(z._status===0||z._status===-1)&&(z._status=2,z._result=w)}),z._status===-1&&(z._status=0,z._result=X)}if(z._status===1)return z._result.default;throw z._result}var xe=typeof reportError=="function"?reportError:function(z){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var X=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof z=="object"&&z!==null&&typeof z.message=="string"?String(z.message):String(z),error:z});if(!window.dispatchEvent(X))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",z);return}console.error(z)},M={map:V,forEach:function(z,X,w){V(z,function(){X.apply(this,arguments)},w)},count:function(z){var X=0;return V(z,function(){X++}),X},toArray:function(z){return V(z,function(X){return X})||[]},only:function(z){if(!$(z))throw Error("React.Children.only expected to receive a single React element child.");return z}};return Ze.Activity=p,Ze.Children=M,Ze.Component=B,Ze.Fragment=r,Ze.Profiler=l,Ze.PureComponent=S,Ze.StrictMode=i,Ze.Suspense=f,Ze.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=R,Ze.__COMPILER_RUNTIME={__proto__:null,c:function(z){return R.H.useMemoCache(z)}},Ze.cache=function(z){return function(){return z.apply(null,arguments)}},Ze.cacheSignal=function(){return null},Ze.cloneElement=function(z,X,w){if(z==null)throw Error("The argument must be a React element, but you passed "+z+".");var W=v({},z.props),fe=z.key;if(X!=null)for(he in X.key!==void 0&&(fe=""+X.key),X)!L.call(X,he)||he==="key"||he==="__self"||he==="__source"||he==="ref"&&X.ref===void 0||(W[he]=X[he]);var he=arguments.length-2;if(he===1)W.children=w;else if(1<he){for(var De=Array(he),Ce=0;Ce<he;Ce++)De[Ce]=arguments[Ce+2];W.children=De}return I(z.type,fe,W)},Ze.createContext=function(z){return z={$$typeof:u,_currentValue:z,_currentValue2:z,_threadCount:0,Provider:null,Consumer:null},z.Provider=z,z.Consumer={$$typeof:o,_context:z},z},Ze.createElement=function(z,X,w){var W,fe={},he=null;if(X!=null)for(W in X.key!==void 0&&(he=""+X.key),X)L.call(X,W)&&W!=="key"&&W!=="__self"&&W!=="__source"&&(fe[W]=X[W]);var De=arguments.length-2;if(De===1)fe.children=w;else if(1<De){for(var Ce=Array(De),Fe=0;Fe<De;Fe++)Ce[Fe]=arguments[Fe+2];fe.children=Ce}if(z&&z.defaultProps)for(W in De=z.defaultProps,De)fe[W]===void 0&&(fe[W]=De[W]);return I(z,he,fe)},Ze.createRef=function(){return{current:null}},Ze.forwardRef=function(z){return{$$typeof:d,render:z}},Ze.isValidElement=$,Ze.lazy=function(z){return{$$typeof:g,_payload:{_status:-1,_result:z},_init:Z}},Ze.memo=function(z,X){return{$$typeof:h,type:z,compare:X===void 0?null:X}},Ze.startTransition=function(z){var X=R.T,w={};R.T=w;try{var W=z(),fe=R.S;fe!==null&&fe(w,W),typeof W=="object"&&W!==null&&typeof W.then=="function"&&W.then(F,xe)}catch(he){xe(he)}finally{X!==null&&w.types!==null&&(X.types=w.types),R.T=X}},Ze.unstable_useCacheRefresh=function(){return R.H.useCacheRefresh()},Ze.use=function(z){return R.H.use(z)},Ze.useActionState=function(z,X,w){return R.H.useActionState(z,X,w)},Ze.useCallback=function(z,X){return R.H.useCallback(z,X)},Ze.useContext=function(z){return R.H.useContext(z)},Ze.useDebugValue=function(){},Ze.useDeferredValue=function(z,X){return R.H.useDeferredValue(z,X)},Ze.useEffect=function(z,X){return R.H.useEffect(z,X)},Ze.useEffectEvent=function(z){return R.H.useEffectEvent(z)},Ze.useId=function(){return R.H.useId()},Ze.useImperativeHandle=function(z,X,w){return R.H.useImperativeHandle(z,X,w)},Ze.useInsertionEffect=function(z,X){return R.H.useInsertionEffect(z,X)},Ze.useLayoutEffect=function(z,X){return R.H.useLayoutEffect(z,X)},Ze.useMemo=function(z,X){return R.H.useMemo(z,X)},Ze.useOptimistic=function(z,X){return R.H.useOptimistic(z,X)},Ze.useReducer=function(z,X,w){return R.H.useReducer(z,X,w)},Ze.useRef=function(z){return R.H.useRef(z)},Ze.useState=function(z){return R.H.useState(z)},Ze.useSyncExternalStore=function(z,X,w){return R.H.useSyncExternalStore(z,X,w)},Ze.useTransition=function(){return R.H.useTransition()},Ze.version="19.2.7",Ze}var Sm;function Id(){return Sm||(Sm=1,gx.exports=h4()),gx.exports}var D=Id();const k0=Zl(D);var V2=D.createContext(void 0),ur=e=>{const n=D.useContext(V2);if(!n)throw new Error("No QueryClient set, use QueryClientProvider to set one");return n},p4=({client:e,children:n})=>(D.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),x.jsx(V2.Provider,{value:e,children:n})),Q2=D.createContext(!1),m4=()=>D.useContext(Q2);Q2.Provider;function g4(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var E4=D.createContext(g4()),y4=()=>D.useContext(E4),b4=(e,n,r)=>{const i=r?.state.error&&typeof e.throwOnError=="function"?U2(e.throwOnError,[r.state.error,r]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||i)&&(n.isReset()||(e.retryOnMount=!1))},C4=e=>{D.useEffect(()=>{e.clearReset()},[e])},v4=({result:e,errorResetBoundary:n,throwOnError:r,query:i,suspense:l})=>e.isError&&!n.isReset()&&!e.isFetching&&i&&(l&&e.data===void 0||U2(r,[e.error,i])),A4=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))}},k4=(e,n)=>e.isLoading&&e.isFetching&&!n,B4=(e,n)=>e?.suspense&&n.isPending,Nm=(e,n,r)=>n.fetchOptimistic(e).catch(()=>{r.clearReset()});function D4(e,n,r){const i=m4(),l=y4(),o=ur(),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,A4(u),b4(u,l,d),C4(l);const h=!o.getQueryCache().get(u.queryHash),[g]=D.useState(()=>new n(o,u)),p=g.getOptimisticResult(u),y=!i&&f;if(D.useSyncExternalStore(D.useCallback(b=>{const C=y?g.subscribe(Sn.batchCalls(b)):Kn;return g.updateResult(),C},[g,y]),()=>g.getCurrentResult(),()=>g.getCurrentResult()),D.useEffect(()=>{g.setOptions(u)},[u,g]),B4(u,p))throw Nm(u,g,l);if(v4({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&&!Ul.isServer()&&k4(p,i)&&(h?Nm(u,g,l):d?.promise)?.catch(Kn).finally(()=>{g.updateResult()}),u.notifyOnChangeProps?p:g.trackResult(p)}function vn(e,n){return D4(e,s4)}var Ex={exports:{}},Al={},yx={exports:{}},bx={};var _m;function w4(){return _m||(_m=1,(function(e){function n(P,V){var Z=P.length;P.push(V);e:for(;0<Z;){var xe=Z-1>>>1,M=P[xe];if(0<l(M,V))P[xe]=V,P[Z]=M,Z=xe;else break e}}function r(P){return P.length===0?null:P[0]}function i(P){if(P.length===0)return null;var V=P[0],Z=P.pop();if(Z!==V){P[0]=Z;e:for(var xe=0,M=P.length,z=M>>>1;xe<z;){var X=2*(xe+1)-1,w=P[X],W=X+1,fe=P[W];if(0>l(w,Z))W<M&&0>l(fe,w)?(P[xe]=fe,P[W]=Z,xe=W):(P[xe]=w,P[X]=Z,xe=X);else if(W<M&&0>l(fe,Z))P[xe]=fe,P[W]=Z,xe=W;else break e}}return V}function l(P,V){var Z=P.sortIndex-V.sortIndex;return Z!==0?Z:P.id-V.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=[],g=1,p=null,y=3,b=!1,C=!1,v=!1,A=!1,B=typeof setTimeout=="function"?setTimeout:null,j=typeof clearTimeout=="function"?clearTimeout:null,S=typeof setImmediate<"u"?setImmediate:null;function N(P){for(var V=r(h);V!==null;){if(V.callback===null)i(h);else if(V.startTime<=P)i(h),V.sortIndex=V.expirationTime,n(f,V);else break;V=r(h)}}function T(P){if(v=!1,N(P),!C)if(r(f)!==null)C=!0,F||(F=!0,Q());else{var V=r(h);V!==null&&Y(T,V.startTime-P)}}var F=!1,R=-1,L=5,I=-1;function O(){return A?!0:!(e.unstable_now()-I<L)}function $(){if(A=!1,F){var P=e.unstable_now();I=P;var V=!0;try{e:{C=!1,v&&(v=!1,j(R),R=-1),b=!0;var Z=y;try{t:{for(N(P),p=r(f);p!==null&&!(p.expirationTime>P&&O());){var xe=p.callback;if(typeof xe=="function"){p.callback=null,y=p.priorityLevel;var M=xe(p.expirationTime<=P);if(P=e.unstable_now(),typeof M=="function"){p.callback=M,N(P),V=!0;break t}p===r(f)&&i(f),N(P)}else i(f);p=r(f)}if(p!==null)V=!0;else{var z=r(h);z!==null&&Y(T,z.startTime-P),V=!1}}break e}finally{p=null,y=Z,b=!1}V=void 0}}finally{V?Q():F=!1}}}var Q;if(typeof S=="function")Q=function(){S($)};else if(typeof MessageChannel<"u"){var le=new MessageChannel,ee=le.port2;le.port1.onmessage=$,Q=function(){ee.postMessage(null)}}else Q=function(){B($,0)};function Y(P,V){R=B(function(){P(e.unstable_now())},V)}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(P){P.callback=null},e.unstable_forceFrameRate=function(P){0>P||125<P?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):L=0<P?Math.floor(1e3/P):5},e.unstable_getCurrentPriorityLevel=function(){return y},e.unstable_next=function(P){switch(y){case 1:case 2:case 3:var V=3;break;default:V=y}var Z=y;y=V;try{return P()}finally{y=Z}},e.unstable_requestPaint=function(){A=!0},e.unstable_runWithPriority=function(P,V){switch(P){case 1:case 2:case 3:case 4:case 5:break;default:P=3}var Z=y;y=P;try{return V()}finally{y=Z}},e.unstable_scheduleCallback=function(P,V,Z){var xe=e.unstable_now();switch(typeof Z=="object"&&Z!==null?(Z=Z.delay,Z=typeof Z=="number"&&0<Z?xe+Z:xe):Z=xe,P){case 1:var M=-1;break;case 2:M=250;break;case 5:M=1073741823;break;case 4:M=1e4;break;default:M=5e3}return M=Z+M,P={id:g++,callback:V,priorityLevel:P,startTime:Z,expirationTime:M,sortIndex:-1},Z>xe?(P.sortIndex=Z,n(h,P),r(f)===null&&P===r(h)&&(v?(j(R),R=-1):v=!0,Y(T,Z-xe))):(P.sortIndex=M,n(f,P),C||b||(C=!0,F||(F=!0,Q()))),P},e.unstable_shouldYield=O,e.unstable_wrapCallback=function(P){var V=y;return function(){var Z=y;y=V;try{return P.apply(this,arguments)}finally{y=Z}}}})(bx)),bx}var Mm;function F4(){return Mm||(Mm=1,yx.exports=w4()),yx.exports}var Cx={exports:{}},Mn={};var jm;function S4(){if(jm)return Mn;jm=1;var e=Id();function n(f){var h="https://react.dev/errors/"+f;if(1<arguments.length){h+="?args[]="+encodeURIComponent(arguments[1]);for(var g=2;g<arguments.length;g++)h+="&args[]="+encodeURIComponent(arguments[g])}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(n(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,g){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:g}}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 Mn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,Mn.createPortal=function(f,h){var g=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!h||h.nodeType!==1&&h.nodeType!==9&&h.nodeType!==11)throw Error(n(299));return o(f,h,null,g)},Mn.flushSync=function(f){var h=u.T,g=i.p;try{if(u.T=null,i.p=2,f)return f()}finally{u.T=h,i.p=g,i.d.f()}},Mn.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))},Mn.prefetchDNS=function(f){typeof f=="string"&&i.d.D(f)},Mn.preinit=function(f,h){if(typeof f=="string"&&h&&typeof h.as=="string"){var g=h.as,p=d(g,h.crossOrigin),y=typeof h.integrity=="string"?h.integrity:void 0,b=typeof h.fetchPriority=="string"?h.fetchPriority:void 0;g==="style"?i.d.S(f,typeof h.precedence=="string"?h.precedence:void 0,{crossOrigin:p,integrity:y,fetchPriority:b}):g==="script"&&i.d.X(f,{crossOrigin:p,integrity:y,fetchPriority:b,nonce:typeof h.nonce=="string"?h.nonce:void 0})}},Mn.preinitModule=function(f,h){if(typeof f=="string")if(typeof h=="object"&&h!==null){if(h.as==null||h.as==="script"){var g=d(h.as,h.crossOrigin);i.d.M(f,{crossOrigin:g,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)},Mn.preload=function(f,h){if(typeof f=="string"&&typeof h=="object"&&h!==null&&typeof h.as=="string"){var g=h.as,p=d(g,h.crossOrigin);i.d.L(f,g,{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})}},Mn.preloadModule=function(f,h){if(typeof f=="string")if(h){var g=d(h.as,h.crossOrigin);i.d.m(f,{as:typeof h.as=="string"&&h.as!=="script"?h.as:void 0,crossOrigin:g,integrity:typeof h.integrity=="string"?h.integrity:void 0})}else i.d.m(f)},Mn.requestFormReset=function(f){i.d.r(f)},Mn.unstable_batchedUpdates=function(f,h){return f(h)},Mn.useFormState=function(f,h,g){return u.H.useFormState(f,h,g)},Mn.useFormStatus=function(){return u.H.useHostTransitionStatus()},Mn.version="19.2.7",Mn}var Tm;function Y2(){if(Tm)return Cx.exports;Tm=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(n){console.error(n)}}return e(),Cx.exports=S4(),Cx.exports}var Rm;function N4(){if(Rm)return Al;Rm=1;var e=F4(),n=Id(),r=Y2();function i(t){var a="https://react.dev/errors/"+t;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 #"+t+"; visit "+a+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function l(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function o(t){var a=t,s=t;if(t.alternate)for(;a.return;)a=a.return;else{t=a;do a=t,(a.flags&4098)!==0&&(s=a.return),t=a.return;while(t)}return a.tag===3?s:null}function u(t){if(t.tag===13){var a=t.memoizedState;if(a===null&&(t=t.alternate,t!==null&&(a=t.memoizedState)),a!==null)return a.dehydrated}return null}function d(t){if(t.tag===31){var a=t.memoizedState;if(a===null&&(t=t.alternate,t!==null&&(a=t.memoizedState)),a!==null)return a.dehydrated}return null}function f(t){if(o(t)!==t)throw Error(i(188))}function h(t){var a=t.alternate;if(!a){if(a=o(t),a===null)throw Error(i(188));return a!==t?null:t}for(var s=t,c=a;;){var m=s.return;if(m===null)break;var E=m.alternate;if(E===null){if(c=m.return,c!==null){s=c;continue}break}if(m.child===E.child){for(E=m.child;E;){if(E===s)return f(m),t;if(E===c)return f(m),a;E=E.sibling}throw Error(i(188))}if(s.return!==c.return)s=m,c=E;else{for(var k=!1,_=m.child;_;){if(_===s){k=!0,s=m,c=E;break}if(_===c){k=!0,c=m,s=E;break}_=_.sibling}if(!k){for(_=E.child;_;){if(_===s){k=!0,s=E,c=m;break}if(_===c){k=!0,c=E,s=m;break}_=_.sibling}if(!k)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?t:a}function g(t){var a=t.tag;if(a===5||a===26||a===27||a===6)return t;for(t=t.child;t!==null;){if(a=g(t),a!==null)return a;t=t.sibling}return null}var p=Object.assign,y=Symbol.for("react.element"),b=Symbol.for("react.transitional.element"),C=Symbol.for("react.portal"),v=Symbol.for("react.fragment"),A=Symbol.for("react.strict_mode"),B=Symbol.for("react.profiler"),j=Symbol.for("react.consumer"),S=Symbol.for("react.context"),N=Symbol.for("react.forward_ref"),T=Symbol.for("react.suspense"),F=Symbol.for("react.suspense_list"),R=Symbol.for("react.memo"),L=Symbol.for("react.lazy"),I=Symbol.for("react.activity"),O=Symbol.for("react.memo_cache_sentinel"),$=Symbol.iterator;function Q(t){return t===null||typeof t!="object"?null:(t=$&&t[$]||t["@@iterator"],typeof t=="function"?t:null)}var le=Symbol.for("react.client.reference");function ee(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===le?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case v:return"Fragment";case B:return"Profiler";case A:return"StrictMode";case T:return"Suspense";case F:return"SuspenseList";case I:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case C:return"Portal";case S:return t.displayName||"Context";case j:return(t._context.displayName||"Context")+".Consumer";case N:var a=t.render;return t=t.displayName,t||(t=a.displayName||a.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case R:return a=t.displayName||null,a!==null?a:ee(t.type)||"Memo";case L:a=t._payload,t=t._init;try{return ee(t(a))}catch{}}return null}var Y=Array.isArray,P=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,V=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Z={pending:!1,data:null,method:null,action:null},xe=[],M=-1;function z(t){return{current:t}}function X(t){0>M||(t.current=xe[M],xe[M]=null,M--)}function w(t,a){M++,xe[M]=t.current,t.current=a}var W=z(null),fe=z(null),he=z(null),De=z(null);function Ce(t,a){switch(w(he,a),w(fe,t),w(W,null),a.nodeType){case 9:case 11:t=(t=a.documentElement)&&(t=t.namespaceURI)?Ip(t):0;break;default:if(t=a.tagName,a=a.namespaceURI)a=Ip(a),t=Up(a,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}X(W),w(W,t)}function Fe(){X(W),X(fe),X(he)}function at(t){t.memoizedState!==null&&w(De,t);var a=W.current,s=Up(a,t.type);a!==s&&(w(fe,t),w(W,s))}function mt(t){fe.current===t&&(X(W),X(fe)),De.current===t&&(X(De),El._currentValue=Z)}var Lt,kt;function we(t){if(Lt===void 0)try{throw Error()}catch(s){var a=s.stack.trim().match(/\n( *(at )?)/);Lt=a&&a[1]||"",kt=-1<s.stack.indexOf(`
|
|
2
|
+
at`)?" (<anonymous>)":-1<s.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
3
|
+
`+Lt+t+kt}var Ae=!1;function tt(t,a){if(!t||Ae)return"";Ae=!0;var s=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var c={DetermineComponentFrameRoot:function(){try{if(a){var de=function(){throw Error()};if(Object.defineProperty(de.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(de,[])}catch(ae){var ne=ae}Reflect.construct(t,[],de)}else{try{de.call()}catch(ae){ne=ae}t.call(de.prototype)}}else{try{throw Error()}catch(ae){ne=ae}(de=t())&&typeof de.catch=="function"&&de.catch(function(){})}}catch(ae){if(ae&&ne&&typeof ae.stack=="string")return[ae.stack,ne.stack]}return[null,null]}};c.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var m=Object.getOwnPropertyDescriptor(c.DetermineComponentFrameRoot,"name");m&&m.configurable&&Object.defineProperty(c.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var E=c.DetermineComponentFrameRoot(),k=E[0],_=E[1];if(k&&_){var H=k.split(`
|
|
4
|
+
`),te=_.split(`
|
|
5
|
+
`);for(m=c=0;c<H.length&&!H[c].includes("DetermineComponentFrameRoot");)c++;for(;m<te.length&&!te[m].includes("DetermineComponentFrameRoot");)m++;if(c===H.length||m===te.length)for(c=H.length-1,m=te.length-1;1<=c&&0<=m&&H[c]!==te[m];)m--;for(;1<=c&&0<=m;c--,m--)if(H[c]!==te[m]){if(c!==1||m!==1)do if(c--,m--,0>m||H[c]!==te[m]){var ce=`
|
|
6
|
+
`+H[c].replace(" at new "," at ");return t.displayName&&ce.includes("<anonymous>")&&(ce=ce.replace("<anonymous>",t.displayName)),ce}while(1<=c&&0<=m);break}}}finally{Ae=!1,Error.prepareStackTrace=s}return(s=t?t.displayName||t.name:"")?we(s):""}function Qe(t,a){switch(t.tag){case 26:case 27:case 5:return we(t.type);case 16:return we("Lazy");case 13:return t.child!==a&&a!==null?we("Suspense Fallback"):we("Suspense");case 19:return we("SuspenseList");case 0:case 15:return tt(t.type,!1);case 11:return tt(t.type.render,!1);case 1:return tt(t.type,!0);case 31:return we("Activity");default:return""}}function Tt(t){try{var a="",s=null;do a+=Qe(t,s),s=t,t=t.return;while(t);return a}catch(c){return`
|
|
7
|
+
Error generating stack: `+c.message+`
|
|
8
|
+
`+c.stack}}var Ue=Object.prototype.hasOwnProperty,Ct=e.unstable_scheduleCallback,wt=e.unstable_cancelCallback,cn=e.unstable_shouldYield,Pn=e.unstable_requestPaint,Ye=e.unstable_now,nn=e.unstable_getCurrentPriorityLevel,se=e.unstable_ImmediatePriority,me=e.unstable_UserBlockingPriority,je=e.unstable_NormalPriority,Ke=e.unstable_LowPriority,it=e.unstable_IdlePriority,Ht=e.log,un=e.unstable_setDisableYieldValue,Gt=null,Bt=null;function Vt(t){if(typeof Ht=="function"&&un(t),Bt&&typeof Bt.setStrictMode=="function")try{Bt.setStrictMode(Gt,t)}catch{}}var re=Math.clz32?Math.clz32:oe,ht=Math.log,gt=Math.LN2;function oe(t){return t>>>=0,t===0?32:31-(ht(t)/gt|0)|0}var ut=256,St=262144,be=4194304;function yt(t){var a=t&42;if(a!==0)return a;switch(t&-t){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 t&261888;case 262144:case 524288:case 1048576:case 2097152:return t&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function U(t,a,s){var c=t.pendingLanes;if(c===0)return 0;var m=0,E=t.suspendedLanes,k=t.pingedLanes;t=t.warmLanes;var _=c&134217727;return _!==0?(c=_&~E,c!==0?m=yt(c):(k&=_,k!==0?m=yt(k):s||(s=_&~t,s!==0&&(m=yt(s))))):(_=c&~E,_!==0?m=yt(_):k!==0?m=yt(k):s||(s=c&~t,s!==0&&(m=yt(s)))),m===0?0:a!==0&&a!==m&&(a&E)===0&&(E=m&-m,s=a&-a,E>=s||E===32&&(s&4194048)!==0)?a:m}function ie(t,a){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&a)===0}function ke(t,a){switch(t){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 Ge(){var t=be;return be<<=1,(be&62914560)===0&&(be=4194304),t}function nt(t){for(var a=[],s=0;31>s;s++)a.push(t);return a}function Ft(t,a){t.pendingLanes|=a,a!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function Re(t,a,s,c,m,E){var k=t.pendingLanes;t.pendingLanes=s,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=s,t.entangledLanes&=s,t.errorRecoveryDisabledLanes&=s,t.shellSuspendCounter=0;var _=t.entanglements,H=t.expirationTimes,te=t.hiddenUpdates;for(s=k&~s;0<s;){var ce=31-re(s),de=1<<ce;_[ce]=0,H[ce]=-1;var ne=te[ce];if(ne!==null)for(te[ce]=null,ce=0;ce<ne.length;ce++){var ae=ne[ce];ae!==null&&(ae.lane&=-536870913)}s&=~de}c!==0&&Se(t,c,0),E!==0&&m===0&&t.tag!==0&&(t.suspendedLanes|=E&~(k&~a))}function Se(t,a,s){t.pendingLanes|=a,t.suspendedLanes&=~a;var c=31-re(a);t.entangledLanes|=a,t.entanglements[c]=t.entanglements[c]|1073741824|s&261930}function Ve(t,a){var s=t.entangledLanes|=a;for(t=t.entanglements;s;){var c=31-re(s),m=1<<c;m&a|t[c]&a&&(t[c]|=a),s&=~m}}function rn(t,a){var s=a&-a;return s=(s&42)!==0?1:Xt(s),(s&(t.suspendedLanes|a))!==0?0:s}function Xt(t){switch(t){case 2:t=1;break;case 8:t=4;break;case 32:t=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:t=128;break;case 268435456:t=134217728;break;default:t=0}return t}function Qr(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function Ti(){var t=V.p;return t!==0?t:(t=window.event,t===void 0?32:um(t.type))}function Ri(t,a){var s=V.p;try{return V.p=t,a()}finally{V.p=s}}var Or=Math.random().toString(36).slice(2),an="__reactFiber$"+Or,Nn="__reactProps$"+Or,ba="__reactContainer$"+Or,Ss="__reactEvents$"+Or,lo="__reactListeners$"+Or,Oi="__reactHandles$"+Or,oo="__reactResources$"+Or,ti="__reactMarker$"+Or;function Ns(t){delete t[an],delete t[Nn],delete t[Ss],delete t[lo],delete t[Oi]}function On(t){var a=t[an];if(a)return a;for(var s=t.parentNode;s;){if(a=s[ba]||s[an]){if(s=a.alternate,a.child!==null||s!==null&&s.child!==null)for(t=Yp(t);t!==null;){if(s=t[an])return s;t=Yp(t)}return a}t=s,s=t.parentNode}return null}function Yr(t){if(t=t[an]||t[ba]){var a=t.tag;if(a===5||a===6||a===13||a===31||a===26||a===27||a===3)return t}return null}function Ca(t){var a=t.tag;if(a===5||a===26||a===27||a===6)return t.stateNode;throw Error(i(33))}function va(t){var a=t[oo];return a||(a=t[oo]={hoistableStyles:new Map,hoistableScripts:new Map}),a}function xn(t){t[ti]=!0}var co=new Set,ni={};function Kr(t,a){ge(t,a),ge(t+"Capture",a)}function ge(t,a){for(ni[t]=a,t=0;t<a.length;t++)co.add(a[t])}var Le=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]*$"),st={},Nt={};function sn(t){return Ue.call(Nt,t)?!0:Ue.call(st,t)?!1:Le.test(t)?Nt[t]=!0:(st[t]=!0,!1)}function _n(t,a,s){if(sn(a))if(s===null)t.removeAttribute(a);else{switch(typeof s){case"undefined":case"function":case"symbol":t.removeAttribute(a);return;case"boolean":var c=a.toLowerCase().slice(0,5);if(c!=="data-"&&c!=="aria-"){t.removeAttribute(a);return}}t.setAttribute(a,""+s)}}function Wn(t,a,s){if(s===null)t.removeAttribute(a);else{switch(typeof s){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(a);return}t.setAttribute(a,""+s)}}function In(t,a,s,c){if(c===null)t.removeAttribute(s);else{switch(typeof c){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(s);return}t.setAttributeNS(a,s,""+c)}}function $t(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function Jn(t){var a=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(a==="checkbox"||a==="radio")}function uo(t,a,s){var c=Object.getOwnPropertyDescriptor(t.constructor.prototype,a);if(!t.hasOwnProperty(a)&&typeof c<"u"&&typeof c.get=="function"&&typeof c.set=="function"){var m=c.get,E=c.set;return Object.defineProperty(t,a,{configurable:!0,get:function(){return m.call(this)},set:function(k){s=""+k,E.call(this,k)}}),Object.defineProperty(t,a,{enumerable:c.enumerable}),{getValue:function(){return s},setValue:function(k){s=""+k},stopTracking:function(){t._valueTracker=null,delete t[a]}}}}function zi(t){if(!t._valueTracker){var a=Jn(t)?"checked":"value";t._valueTracker=uo(t,a,""+t[a])}}function _s(t){if(!t)return!1;var a=t._valueTracker;if(!a)return!0;var s=a.getValue(),c="";return t&&(c=Jn(t)?t.checked?"true":"false":t.value),t=c,t!==s?(a.setValue(t),!0):!1}function Li(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}var pc=/[\n"\\]/g;function Un(t){return t.replace(pc,function(a){return"\\"+a.charCodeAt(0).toString(16)+" "})}function Ms(t,a,s,c,m,E,k,_){t.name="",k!=null&&typeof k!="function"&&typeof k!="symbol"&&typeof k!="boolean"?t.type=k:t.removeAttribute("type"),a!=null?k==="number"?(a===0&&t.value===""||t.value!=a)&&(t.value=""+$t(a)):t.value!==""+$t(a)&&(t.value=""+$t(a)):k!=="submit"&&k!=="reset"||t.removeAttribute("value"),a!=null?Pi(t,k,$t(a)):s!=null?Pi(t,k,$t(s)):c!=null&&t.removeAttribute("value"),m==null&&E!=null&&(t.defaultChecked=!!E),m!=null&&(t.checked=m&&typeof m!="function"&&typeof m!="symbol"),_!=null&&typeof _!="function"&&typeof _!="symbol"&&typeof _!="boolean"?t.name=""+$t(_):t.removeAttribute("name")}function ri(t,a,s,c,m,E,k,_){if(E!=null&&typeof E!="function"&&typeof E!="symbol"&&typeof E!="boolean"&&(t.type=E),a!=null||s!=null){if(!(E!=="submit"&&E!=="reset"||a!=null)){zi(t);return}s=s!=null?""+$t(s):"",a=a!=null?""+$t(a):s,_||a===t.value||(t.value=a),t.defaultValue=a}c=c??m,c=typeof c!="function"&&typeof c!="symbol"&&!!c,t.checked=_?t.checked:!!c,t.defaultChecked=!!c,k!=null&&typeof k!="function"&&typeof k!="symbol"&&typeof k!="boolean"&&(t.name=k),zi(t)}function Pi(t,a,s){a==="number"&&Li(t.ownerDocument)===t||t.defaultValue===""+s||(t.defaultValue=""+s)}function kn(t,a,s,c){if(t=t.options,a){a={};for(var m=0;m<s.length;m++)a["$"+s[m]]=!0;for(s=0;s<t.length;s++)m=a.hasOwnProperty("$"+t[s].value),t[s].selected!==m&&(t[s].selected=m),m&&c&&(t[s].defaultSelected=!0)}else{for(s=""+$t(s),a=null,m=0;m<t.length;m++){if(t[m].value===s){t[m].selected=!0,c&&(t[m].defaultSelected=!0);return}a!==null||t[m].disabled||(a=t[m])}a!==null&&(a.selected=!0)}}function xo(t,a,s){if(a!=null&&(a=""+$t(a),a!==t.value&&(t.value=a),s==null)){t.defaultValue!==a&&(t.defaultValue=a);return}t.defaultValue=s!=null?""+$t(s):""}function Ii(t,a,s,c){if(a==null){if(c!=null){if(s!=null)throw Error(i(92));if(Y(c)){if(1<c.length)throw Error(i(93));c=c[0]}s=c}s==null&&(s=""),a=s}s=$t(a),t.defaultValue=s,c=t.textContent,c===s&&c!==""&&c!==null&&(t.value=c),zi(t)}function qe(t,a){if(a){var s=t.firstChild;if(s&&s===t.lastChild&&s.nodeType===3){s.nodeValue=a;return}}t.textContent=a}var fo=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 dn(t,a,s){var c=a.indexOf("--")===0;s==null||typeof s=="boolean"||s===""?c?t.setProperty(a,""):a==="float"?t.cssFloat="":t[a]="":c?t.setProperty(a,s):typeof s!="number"||s===0||fo.has(a)?a==="float"?t.cssFloat=s:t[a]=(""+s).trim():t[a]=s+"px"}function _t(t,a,s){if(a!=null&&typeof a!="object")throw Error(i(62));if(t=t.style,s!=null){for(var c in s)!s.hasOwnProperty(c)||a!=null&&a.hasOwnProperty(c)||(c.indexOf("--")===0?t.setProperty(c,""):c==="float"?t.cssFloat="":t[c]="");for(var m in a)c=a[m],a.hasOwnProperty(m)&&s[m]!==c&&dn(t,m,c)}else for(var E in a)a.hasOwnProperty(E)&&dn(t,E,a[E])}function Aa(t){if(t.indexOf("-")===-1)return!1;switch(t){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 Xr=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"]]),js=/^[\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 ka(t){return js.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function ve(){}var Oe=null;function We(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var xt=null,Wt=null;function dr(t){var a=Yr(t);if(a&&(t=a.stateNode)){var s=t[Nn]||null;e:switch(t=a.stateNode,a.type){case"input":if(Ms(t,s.value,s.defaultValue,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name),a=s.name,s.type==="radio"&&a!=null){for(s=t;s.parentNode;)s=s.parentNode;for(s=s.querySelectorAll('input[name="'+Un(""+a)+'"][type="radio"]'),a=0;a<s.length;a++){var c=s[a];if(c!==t&&c.form===t.form){var m=c[Nn]||null;if(!m)throw Error(i(90));Ms(c,m.value,m.defaultValue,m.defaultValue,m.checked,m.defaultChecked,m.type,m.name)}}for(a=0;a<s.length;a++)c=s[a],c.form===t.form&&_s(c)}break e;case"textarea":xo(t,s.value,s.defaultValue);break e;case"select":a=s.value,a!=null&&kn(t,!!s.multiple,a,!1)}}}var Ts=!1;function ho(t,a,s){if(Ts)return t(a,s);Ts=!0;try{var c=t(a);return c}finally{if(Ts=!1,(xt!==null||Wt!==null)&&(t0(),xt&&(a=xt,t=Wt,Wt=xt=null,dr(a),t)))for(a=0;a<t.length;a++)dr(t[a])}}function Rs(t,a){var s=t.stateNode;if(s===null)return null;var c=s[Nn]||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)||(t=t.type,c=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!c;break e;default:t=!1}if(t)return null;if(s&&typeof s!="function")throw Error(i(231,a,typeof s));return s}var Zr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),mc=!1;if(Zr)try{var Os={};Object.defineProperty(Os,"passive",{get:function(){mc=!0}}),window.addEventListener("test",Os,Os),window.removeEventListener("test",Os,Os)}catch{mc=!1}var Ba=null,gc=null,po=null;function Uf(){if(po)return po;var t,a=gc,s=a.length,c,m="value"in Ba?Ba.value:Ba.textContent,E=m.length;for(t=0;t<s&&a[t]===m[t];t++);var k=s-t;for(c=1;c<=k&&a[s-c]===m[E-c];c++);return po=m.slice(t,1<c?1-c:void 0)}function mo(t){var a=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&a===13&&(t=13)):t=a,t===10&&(t=13),32<=t||t===13?t:0}function go(){return!0}function Hf(){return!1}function Hn(t){function a(s,c,m,E,k){this._reactName=s,this._targetInst=m,this.type=c,this.nativeEvent=E,this.target=k,this.currentTarget=null;for(var _ in t)t.hasOwnProperty(_)&&(s=t[_],this[_]=s?s(E):E[_]);return this.isDefaultPrevented=(E.defaultPrevented!=null?E.defaultPrevented:E.returnValue===!1)?go:Hf,this.isPropagationStopped=Hf,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=go)},stopPropagation:function(){var s=this.nativeEvent;s&&(s.stopPropagation?s.stopPropagation():typeof s.cancelBubble!="unknown"&&(s.cancelBubble=!0),this.isPropagationStopped=go)},persist:function(){},isPersistent:go}),a}var ai={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Eo=Hn(ai),zs=p({},ai,{view:0,detail:0}),z5=Hn(zs),Ec,yc,Ls,yo=p({},zs,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Cc,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==Ls&&(Ls&&t.type==="mousemove"?(Ec=t.screenX-Ls.screenX,yc=t.screenY-Ls.screenY):yc=Ec=0,Ls=t),Ec)},movementY:function(t){return"movementY"in t?t.movementY:yc}}),$f=Hn(yo),L5=p({},yo,{dataTransfer:0}),P5=Hn(L5),I5=p({},zs,{relatedTarget:0}),bc=Hn(I5),U5=p({},ai,{animationName:0,elapsedTime:0,pseudoElement:0}),H5=Hn(U5),$5=p({},ai,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),q5=Hn($5),G5=p({},ai,{data:0}),qf=Hn(G5),V5={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Q5={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"},Y5={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function K5(t){var a=this.nativeEvent;return a.getModifierState?a.getModifierState(t):(t=Y5[t])?!!a[t]:!1}function Cc(){return K5}var X5=p({},zs,{key:function(t){if(t.key){var a=V5[t.key]||t.key;if(a!=="Unidentified")return a}return t.type==="keypress"?(t=mo(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?Q5[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Cc,charCode:function(t){return t.type==="keypress"?mo(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?mo(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),Z5=Hn(X5),W5=p({},yo,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Gf=Hn(W5),J5=p({},zs,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Cc}),e6=Hn(J5),t6=p({},ai,{propertyName:0,elapsedTime:0,pseudoElement:0}),n6=Hn(t6),r6=p({},yo,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),a6=Hn(r6),i6=p({},ai,{newState:0,oldState:0}),s6=Hn(i6),l6=[9,13,27,32],vc=Zr&&"CompositionEvent"in window,Ps=null;Zr&&"documentMode"in document&&(Ps=document.documentMode);var o6=Zr&&"TextEvent"in window&&!Ps,Vf=Zr&&(!vc||Ps&&8<Ps&&11>=Ps),Qf=" ",Yf=!1;function Kf(t,a){switch(t){case"keyup":return l6.indexOf(a.keyCode)!==-1;case"keydown":return a.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Xf(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Ui=!1;function c6(t,a){switch(t){case"compositionend":return Xf(a);case"keypress":return a.which!==32?null:(Yf=!0,Qf);case"textInput":return t=a.data,t===Qf&&Yf?null:t;default:return null}}function u6(t,a){if(Ui)return t==="compositionend"||!vc&&Kf(t,a)?(t=Uf(),po=gc=Ba=null,Ui=!1,t):null;switch(t){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 Vf&&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 Zf(t){var a=t&&t.nodeName&&t.nodeName.toLowerCase();return a==="input"?!!x6[t.type]:a==="textarea"}function Wf(t,a,s,c){xt?Wt?Wt.push(c):Wt=[c]:xt=c,a=o0(a,"onChange"),0<a.length&&(s=new Eo("onChange","change",null,s,c),t.push({event:s,listeners:a}))}var Is=null,Us=null;function d6(t){Tp(t,0)}function bo(t){var a=Ca(t);if(_s(a))return t}function Jf(t,a){if(t==="change")return a}var eh=!1;if(Zr){var Ac;if(Zr){var kc="oninput"in document;if(!kc){var th=document.createElement("div");th.setAttribute("oninput","return;"),kc=typeof th.oninput=="function"}Ac=kc}else Ac=!1;eh=Ac&&(!document.documentMode||9<document.documentMode)}function nh(){Is&&(Is.detachEvent("onpropertychange",rh),Us=Is=null)}function rh(t){if(t.propertyName==="value"&&bo(Us)){var a=[];Wf(a,Us,t,We(t)),ho(d6,a)}}function f6(t,a,s){t==="focusin"?(nh(),Is=a,Us=s,Is.attachEvent("onpropertychange",rh)):t==="focusout"&&nh()}function h6(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return bo(Us)}function p6(t,a){if(t==="click")return bo(a)}function m6(t,a){if(t==="input"||t==="change")return bo(a)}function g6(t,a){return t===a&&(t!==0||1/t===1/a)||t!==t&&a!==a}var er=typeof Object.is=="function"?Object.is:g6;function Hs(t,a){if(er(t,a))return!0;if(typeof t!="object"||t===null||typeof a!="object"||a===null)return!1;var s=Object.keys(t),c=Object.keys(a);if(s.length!==c.length)return!1;for(c=0;c<s.length;c++){var m=s[c];if(!Ue.call(a,m)||!er(t[m],a[m]))return!1}return!0}function ah(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function ih(t,a){var s=ah(t);t=0;for(var c;s;){if(s.nodeType===3){if(c=t+s.textContent.length,t<=a&&c>=a)return{node:s,offset:a-t};t=c}e:{for(;s;){if(s.nextSibling){s=s.nextSibling;break e}s=s.parentNode}s=void 0}s=ah(s)}}function sh(t,a){return t&&a?t===a?!0:t&&t.nodeType===3?!1:a&&a.nodeType===3?sh(t,a.parentNode):"contains"in t?t.contains(a):t.compareDocumentPosition?!!(t.compareDocumentPosition(a)&16):!1:!1}function lh(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var a=Li(t.document);a instanceof t.HTMLIFrameElement;){try{var s=typeof a.contentWindow.location.href=="string"}catch{s=!1}if(s)t=a.contentWindow;else break;a=Li(t.document)}return a}function Bc(t){var a=t&&t.nodeName&&t.nodeName.toLowerCase();return a&&(a==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||a==="textarea"||t.contentEditable==="true")}var E6=Zr&&"documentMode"in document&&11>=document.documentMode,Hi=null,Dc=null,$s=null,wc=!1;function oh(t,a,s){var c=s.window===s?s.document:s.nodeType===9?s:s.ownerDocument;wc||Hi==null||Hi!==Li(c)||(c=Hi,"selectionStart"in c&&Bc(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}),$s&&Hs($s,c)||($s=c,c=o0(Dc,"onSelect"),0<c.length&&(a=new Eo("onSelect","select",null,a,s),t.push({event:a,listeners:c}),a.target=Hi)))}function ii(t,a){var s={};return s[t.toLowerCase()]=a.toLowerCase(),s["Webkit"+t]="webkit"+a,s["Moz"+t]="moz"+a,s}var $i={animationend:ii("Animation","AnimationEnd"),animationiteration:ii("Animation","AnimationIteration"),animationstart:ii("Animation","AnimationStart"),transitionrun:ii("Transition","TransitionRun"),transitionstart:ii("Transition","TransitionStart"),transitioncancel:ii("Transition","TransitionCancel"),transitionend:ii("Transition","TransitionEnd")},Fc={},ch={};Zr&&(ch=document.createElement("div").style,"AnimationEvent"in window||(delete $i.animationend.animation,delete $i.animationiteration.animation,delete $i.animationstart.animation),"TransitionEvent"in window||delete $i.transitionend.transition);function si(t){if(Fc[t])return Fc[t];if(!$i[t])return t;var a=$i[t],s;for(s in a)if(a.hasOwnProperty(s)&&s in ch)return Fc[t]=a[s];return t}var uh=si("animationend"),xh=si("animationiteration"),dh=si("animationstart"),y6=si("transitionrun"),b6=si("transitionstart"),C6=si("transitioncancel"),fh=si("transitionend"),hh=new Map,Sc="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(" ");Sc.push("scrollEnd");function Nr(t,a){hh.set(t,a),Kr(a,[t])}var Co=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var a=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(a))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)},fr=[],qi=0,Nc=0;function vo(){for(var t=qi,a=Nc=qi=0;a<t;){var s=fr[a];fr[a++]=null;var c=fr[a];fr[a++]=null;var m=fr[a];fr[a++]=null;var E=fr[a];if(fr[a++]=null,c!==null&&m!==null){var k=c.pending;k===null?m.next=m:(m.next=k.next,k.next=m),c.pending=m}E!==0&&ph(s,m,E)}}function Ao(t,a,s,c){fr[qi++]=t,fr[qi++]=a,fr[qi++]=s,fr[qi++]=c,Nc|=c,t.lanes|=c,t=t.alternate,t!==null&&(t.lanes|=c)}function _c(t,a,s,c){return Ao(t,a,s,c),ko(t)}function li(t,a){return Ao(t,null,null,a),ko(t)}function ph(t,a,s){t.lanes|=s;var c=t.alternate;c!==null&&(c.lanes|=s);for(var m=!1,E=t.return;E!==null;)E.childLanes|=s,c=E.alternate,c!==null&&(c.childLanes|=s),E.tag===22&&(t=E.stateNode,t===null||t._visibility&1||(m=!0)),t=E,E=E.return;return t.tag===3?(E=t.stateNode,m&&a!==null&&(m=31-re(s),t=E.hiddenUpdates,c=t[m],c===null?t[m]=[a]:c.push(a),a.lane=s|536870912),E):null}function ko(t){if(50<xl)throw xl=0,Iu=null,Error(i(185));for(var a=t.return;a!==null;)t=a,a=t.return;return t.tag===3?t.stateNode:null}var Gi={};function v6(t,a,s,c){this.tag=t,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 tr(t,a,s,c){return new v6(t,a,s,c)}function Mc(t){return t=t.prototype,!(!t||!t.isReactComponent)}function Wr(t,a){var s=t.alternate;return s===null?(s=tr(t.tag,a,t.key,t.mode),s.elementType=t.elementType,s.type=t.type,s.stateNode=t.stateNode,s.alternate=t,t.alternate=s):(s.pendingProps=a,s.type=t.type,s.flags=0,s.subtreeFlags=0,s.deletions=null),s.flags=t.flags&65011712,s.childLanes=t.childLanes,s.lanes=t.lanes,s.child=t.child,s.memoizedProps=t.memoizedProps,s.memoizedState=t.memoizedState,s.updateQueue=t.updateQueue,a=t.dependencies,s.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext},s.sibling=t.sibling,s.index=t.index,s.ref=t.ref,s.refCleanup=t.refCleanup,s}function mh(t,a){t.flags&=65011714;var s=t.alternate;return s===null?(t.childLanes=0,t.lanes=a,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null):(t.childLanes=s.childLanes,t.lanes=s.lanes,t.child=s.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=s.memoizedProps,t.memoizedState=s.memoizedState,t.updateQueue=s.updateQueue,t.type=s.type,a=s.dependencies,t.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext}),t}function Bo(t,a,s,c,m,E){var k=0;if(c=t,typeof t=="function")Mc(t)&&(k=1);else if(typeof t=="string")k=wy(t,s,W.current)?26:t==="html"||t==="head"||t==="body"?27:5;else e:switch(t){case I:return t=tr(31,s,a,m),t.elementType=I,t.lanes=E,t;case v:return oi(s.children,m,E,a);case A:k=8,m|=24;break;case B:return t=tr(12,s,a,m|2),t.elementType=B,t.lanes=E,t;case T:return t=tr(13,s,a,m),t.elementType=T,t.lanes=E,t;case F:return t=tr(19,s,a,m),t.elementType=F,t.lanes=E,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case S:k=10;break e;case j:k=9;break e;case N:k=11;break e;case R:k=14;break e;case L:k=16,c=null;break e}k=29,s=Error(i(130,t===null?"null":typeof t,"")),c=null}return a=tr(k,s,a,m),a.elementType=t,a.type=c,a.lanes=E,a}function oi(t,a,s,c){return t=tr(7,t,c,a),t.lanes=s,t}function jc(t,a,s){return t=tr(6,t,null,a),t.lanes=s,t}function gh(t){var a=tr(18,null,null,0);return a.stateNode=t,a}function Tc(t,a,s){return a=tr(4,t.children!==null?t.children:[],t.key,a),a.lanes=s,a.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},a}var Eh=new WeakMap;function hr(t,a){if(typeof t=="object"&&t!==null){var s=Eh.get(t);return s!==void 0?s:(a={value:t,source:a,stack:Tt(a)},Eh.set(t,a),a)}return{value:t,source:a,stack:Tt(a)}}var Vi=[],Qi=0,Do=null,qs=0,pr=[],mr=0,Da=null,zr=1,Lr="";function Jr(t,a){Vi[Qi++]=qs,Vi[Qi++]=Do,Do=t,qs=a}function yh(t,a,s){pr[mr++]=zr,pr[mr++]=Lr,pr[mr++]=Da,Da=t;var c=zr;t=Lr;var m=32-re(c)-1;c&=~(1<<m),s+=1;var E=32-re(a)+m;if(30<E){var k=m-m%5;E=(c&(1<<k)-1).toString(32),c>>=k,m-=k,zr=1<<32-re(a)+m|s<<m|c,Lr=E+t}else zr=1<<E|s<<m|c,Lr=t}function Rc(t){t.return!==null&&(Jr(t,1),yh(t,1,0))}function Oc(t){for(;t===Do;)Do=Vi[--Qi],Vi[Qi]=null,qs=Vi[--Qi],Vi[Qi]=null;for(;t===Da;)Da=pr[--mr],pr[mr]=null,Lr=pr[--mr],pr[mr]=null,zr=pr[--mr],pr[mr]=null}function bh(t,a){pr[mr++]=zr,pr[mr++]=Lr,pr[mr++]=Da,zr=a.id,Lr=a.overflow,Da=t}var Bn=null,Qt=null,pt=!1,wa=null,gr=!1,zc=Error(i(519));function Fa(t){var a=Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Gs(hr(a,t)),zc}function Ch(t){var a=t.stateNode,s=t.type,c=t.memoizedProps;switch(a[an]=t,a[Nn]=c,s){case"dialog":ot("cancel",a),ot("close",a);break;case"iframe":case"object":case"embed":ot("load",a);break;case"video":case"audio":for(s=0;s<fl.length;s++)ot(fl[s],a);break;case"source":ot("error",a);break;case"img":case"image":case"link":ot("error",a),ot("load",a);break;case"details":ot("toggle",a);break;case"input":ot("invalid",a),ri(a,c.value,c.defaultValue,c.checked,c.defaultChecked,c.type,c.name,!0);break;case"select":ot("invalid",a);break;case"textarea":ot("invalid",a),Ii(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||Lp(a.textContent,s)?(c.popover!=null&&(ot("beforetoggle",a),ot("toggle",a)),c.onScroll!=null&&ot("scroll",a),c.onScrollEnd!=null&&ot("scrollend",a),c.onClick!=null&&(a.onclick=ve),a=!0):a=!1,a||Fa(t,!0)}function vh(t){for(Bn=t.return;Bn;)switch(Bn.tag){case 5:case 31:case 13:gr=!1;return;case 27:case 3:gr=!0;return;default:Bn=Bn.return}}function Yi(t){if(t!==Bn)return!1;if(!pt)return vh(t),pt=!0,!1;var a=t.tag,s;if((s=a!==3&&a!==27)&&((s=a===5)&&(s=t.type,s=!(s!=="form"&&s!=="button")||tx(t.type,t.memoizedProps)),s=!s),s&&Qt&&Fa(t),vh(t),a===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(i(317));Qt=Qp(t)}else if(a===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(i(317));Qt=Qp(t)}else a===27?(a=Qt,Ha(t.type)?(t=sx,sx=null,Qt=t):Qt=a):Qt=Bn?yr(t.stateNode.nextSibling):null;return!0}function ci(){Qt=Bn=null,pt=!1}function Lc(){var t=wa;return t!==null&&(Vn===null?Vn=t:Vn.push.apply(Vn,t),wa=null),t}function Gs(t){wa===null?wa=[t]:wa.push(t)}var Pc=z(null),ui=null,ea=null;function Sa(t,a,s){w(Pc,a._currentValue),a._currentValue=s}function ta(t){t._currentValue=Pc.current,X(Pc)}function Ic(t,a,s){for(;t!==null;){var c=t.alternate;if((t.childLanes&a)!==a?(t.childLanes|=a,c!==null&&(c.childLanes|=a)):c!==null&&(c.childLanes&a)!==a&&(c.childLanes|=a),t===s)break;t=t.return}}function Uc(t,a,s,c){var m=t.child;for(m!==null&&(m.return=t);m!==null;){var E=m.dependencies;if(E!==null){var k=m.child;E=E.firstContext;e:for(;E!==null;){var _=E;E=m;for(var H=0;H<a.length;H++)if(_.context===a[H]){E.lanes|=s,_=E.alternate,_!==null&&(_.lanes|=s),Ic(E.return,s,t),c||(k=null);break e}E=_.next}}else if(m.tag===18){if(k=m.return,k===null)throw Error(i(341));k.lanes|=s,E=k.alternate,E!==null&&(E.lanes|=s),Ic(k,s,t),k=null}else k=m.child;if(k!==null)k.return=m;else for(k=m;k!==null;){if(k===t){k=null;break}if(m=k.sibling,m!==null){m.return=k.return,k=m;break}k=k.return}m=k}}function Ki(t,a,s,c){t=null;for(var m=a,E=!1;m!==null;){if(!E){if((m.flags&524288)!==0)E=!0;else if((m.flags&262144)!==0)break}if(m.tag===10){var k=m.alternate;if(k===null)throw Error(i(387));if(k=k.memoizedProps,k!==null){var _=m.type;er(m.pendingProps.value,k.value)||(t!==null?t.push(_):t=[_])}}else if(m===De.current){if(k=m.alternate,k===null)throw Error(i(387));k.memoizedState.memoizedState!==m.memoizedState.memoizedState&&(t!==null?t.push(El):t=[El])}m=m.return}t!==null&&Uc(a,t,s,c),a.flags|=262144}function wo(t){for(t=t.firstContext;t!==null;){if(!er(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function xi(t){ui=t,ea=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function Dn(t){return Ah(ui,t)}function Fo(t,a){return ui===null&&xi(t),Ah(t,a)}function Ah(t,a){var s=a._currentValue;if(a={context:a,memoizedValue:s,next:null},ea===null){if(t===null)throw Error(i(308));ea=a,t.dependencies={lanes:0,firstContext:a},t.flags|=524288}else ea=ea.next=a;return s}var A6=typeof AbortController<"u"?AbortController:function(){var t=[],a=this.signal={aborted:!1,addEventListener:function(s,c){t.push(c)}};this.abort=function(){a.aborted=!0,t.forEach(function(s){return s()})}},k6=e.unstable_scheduleCallback,B6=e.unstable_NormalPriority,fn={$$typeof:S,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Hc(){return{controller:new A6,data:new Map,refCount:0}}function Vs(t){t.refCount--,t.refCount===0&&k6(B6,function(){t.controller.abort()})}var Qs=null,$c=0,Xi=0,Zi=null;function D6(t,a){if(Qs===null){var s=Qs=[];$c=0,Xi=Vu(),Zi={status:"pending",value:void 0,then:function(c){s.push(c)}}}return $c++,a.then(kh,kh),a}function kh(){if(--$c===0&&Qs!==null){Zi!==null&&(Zi.status="fulfilled");var t=Qs;Qs=null,Xi=0,Zi=null;for(var a=0;a<t.length;a++)(0,t[a])()}}function w6(t,a){var s=[],c={status:"pending",value:null,reason:null,then:function(m){s.push(m)}};return t.then(function(){c.status="fulfilled",c.value=a;for(var m=0;m<s.length;m++)(0,s[m])(a)},function(m){for(c.status="rejected",c.reason=m,m=0;m<s.length;m++)(0,s[m])(void 0)}),c}var Bh=P.S;P.S=function(t,a){op=Ye(),typeof a=="object"&&a!==null&&typeof a.then=="function"&&D6(t,a),Bh!==null&&Bh(t,a)};var di=z(null);function qc(){var t=di.current;return t!==null?t:Pt.pooledCache}function So(t,a){a===null?w(di,di.current):w(di,a.pool)}function Dh(){var t=qc();return t===null?null:{parent:fn._currentValue,pool:t}}var Wi=Error(i(460)),Gc=Error(i(474)),No=Error(i(542)),_o={then:function(){}};function wh(t){return t=t.status,t==="fulfilled"||t==="rejected"}function Fh(t,a,s){switch(s=t[s],s===void 0?t.push(a):s!==a&&(a.then(ve,ve),a=s),a.status){case"fulfilled":return a.value;case"rejected":throw t=a.reason,Nh(t),t;default:if(typeof a.status=="string")a.then(ve,ve);else{if(t=Pt,t!==null&&100<t.shellSuspendCounter)throw Error(i(482));t=a,t.status="pending",t.then(function(c){if(a.status==="pending"){var m=a;m.status="fulfilled",m.value=c}},function(c){if(a.status==="pending"){var m=a;m.status="rejected",m.reason=c}})}switch(a.status){case"fulfilled":return a.value;case"rejected":throw t=a.reason,Nh(t),t}throw hi=a,Wi}}function fi(t){try{var a=t._init;return a(t._payload)}catch(s){throw s!==null&&typeof s=="object"&&typeof s.then=="function"?(hi=s,Wi):s}}var hi=null;function Sh(){if(hi===null)throw Error(i(459));var t=hi;return hi=null,t}function Nh(t){if(t===Wi||t===No)throw Error(i(483))}var Ji=null,Ys=0;function Mo(t){var a=Ys;return Ys+=1,Ji===null&&(Ji=[]),Fh(Ji,t,a)}function Ks(t,a){a=a.props.ref,t.ref=a!==void 0?a:null}function jo(t,a){throw a.$$typeof===y?Error(i(525)):(t=Object.prototype.toString.call(a),Error(i(31,t==="[object Object]"?"object with keys {"+Object.keys(a).join(", ")+"}":t)))}function _h(t){function a(K,G){if(t){var J=K.deletions;J===null?(K.deletions=[G],K.flags|=16):J.push(G)}}function s(K,G){if(!t)return null;for(;G!==null;)a(K,G),G=G.sibling;return null}function c(K){for(var G=new Map;K!==null;)K.key!==null?G.set(K.key,K):G.set(K.index,K),K=K.sibling;return G}function m(K,G){return K=Wr(K,G),K.index=0,K.sibling=null,K}function E(K,G,J){return K.index=J,t?(J=K.alternate,J!==null?(J=J.index,J<G?(K.flags|=67108866,G):J):(K.flags|=67108866,G)):(K.flags|=1048576,G)}function k(K){return t&&K.alternate===null&&(K.flags|=67108866),K}function _(K,G,J,ue){return G===null||G.tag!==6?(G=jc(J,K.mode,ue),G.return=K,G):(G=m(G,J),G.return=K,G)}function H(K,G,J,ue){var Pe=J.type;return Pe===v?ce(K,G,J.props.children,ue,J.key):G!==null&&(G.elementType===Pe||typeof Pe=="object"&&Pe!==null&&Pe.$$typeof===L&&fi(Pe)===G.type)?(G=m(G,J.props),Ks(G,J),G.return=K,G):(G=Bo(J.type,J.key,J.props,null,K.mode,ue),Ks(G,J),G.return=K,G)}function te(K,G,J,ue){return G===null||G.tag!==4||G.stateNode.containerInfo!==J.containerInfo||G.stateNode.implementation!==J.implementation?(G=Tc(J,K.mode,ue),G.return=K,G):(G=m(G,J.children||[]),G.return=K,G)}function ce(K,G,J,ue,Pe){return G===null||G.tag!==7?(G=oi(J,K.mode,ue,Pe),G.return=K,G):(G=m(G,J),G.return=K,G)}function de(K,G,J){if(typeof G=="string"&&G!==""||typeof G=="number"||typeof G=="bigint")return G=jc(""+G,K.mode,J),G.return=K,G;if(typeof G=="object"&&G!==null){switch(G.$$typeof){case b:return J=Bo(G.type,G.key,G.props,null,K.mode,J),Ks(J,G),J.return=K,J;case C:return G=Tc(G,K.mode,J),G.return=K,G;case L:return G=fi(G),de(K,G,J)}if(Y(G)||Q(G))return G=oi(G,K.mode,J,null),G.return=K,G;if(typeof G.then=="function")return de(K,Mo(G),J);if(G.$$typeof===S)return de(K,Fo(K,G),J);jo(K,G)}return null}function ne(K,G,J,ue){var Pe=G!==null?G.key:null;if(typeof J=="string"&&J!==""||typeof J=="number"||typeof J=="bigint")return Pe!==null?null:_(K,G,""+J,ue);if(typeof J=="object"&&J!==null){switch(J.$$typeof){case b:return J.key===Pe?H(K,G,J,ue):null;case C:return J.key===Pe?te(K,G,J,ue):null;case L:return J=fi(J),ne(K,G,J,ue)}if(Y(J)||Q(J))return Pe!==null?null:ce(K,G,J,ue,null);if(typeof J.then=="function")return ne(K,G,Mo(J),ue);if(J.$$typeof===S)return ne(K,G,Fo(K,J),ue);jo(K,J)}return null}function ae(K,G,J,ue,Pe){if(typeof ue=="string"&&ue!==""||typeof ue=="number"||typeof ue=="bigint")return K=K.get(J)||null,_(G,K,""+ue,Pe);if(typeof ue=="object"&&ue!==null){switch(ue.$$typeof){case b:return K=K.get(ue.key===null?J:ue.key)||null,H(G,K,ue,Pe);case C:return K=K.get(ue.key===null?J:ue.key)||null,te(G,K,ue,Pe);case L:return ue=fi(ue),ae(K,G,J,ue,Pe)}if(Y(ue)||Q(ue))return K=K.get(J)||null,ce(G,K,ue,Pe,null);if(typeof ue.then=="function")return ae(K,G,J,Mo(ue),Pe);if(ue.$$typeof===S)return ae(K,G,J,Fo(G,ue),Pe);jo(G,ue)}return null}function Te(K,G,J,ue){for(var Pe=null,vt=null,ze=G,et=G=0,ft=null;ze!==null&&et<J.length;et++){ze.index>et?(ft=ze,ze=null):ft=ze.sibling;var At=ne(K,ze,J[et],ue);if(At===null){ze===null&&(ze=ft);break}t&&ze&&At.alternate===null&&a(K,ze),G=E(At,G,et),vt===null?Pe=At:vt.sibling=At,vt=At,ze=ft}if(et===J.length)return s(K,ze),pt&&Jr(K,et),Pe;if(ze===null){for(;et<J.length;et++)ze=de(K,J[et],ue),ze!==null&&(G=E(ze,G,et),vt===null?Pe=ze:vt.sibling=ze,vt=ze);return pt&&Jr(K,et),Pe}for(ze=c(ze);et<J.length;et++)ft=ae(ze,K,et,J[et],ue),ft!==null&&(t&&ft.alternate!==null&&ze.delete(ft.key===null?et:ft.key),G=E(ft,G,et),vt===null?Pe=ft:vt.sibling=ft,vt=ft);return t&&ze.forEach(function(Qa){return a(K,Qa)}),pt&&Jr(K,et),Pe}function $e(K,G,J,ue){if(J==null)throw Error(i(151));for(var Pe=null,vt=null,ze=G,et=G=0,ft=null,At=J.next();ze!==null&&!At.done;et++,At=J.next()){ze.index>et?(ft=ze,ze=null):ft=ze.sibling;var Qa=ne(K,ze,At.value,ue);if(Qa===null){ze===null&&(ze=ft);break}t&&ze&&Qa.alternate===null&&a(K,ze),G=E(Qa,G,et),vt===null?Pe=Qa:vt.sibling=Qa,vt=Qa,ze=ft}if(At.done)return s(K,ze),pt&&Jr(K,et),Pe;if(ze===null){for(;!At.done;et++,At=J.next())At=de(K,At.value,ue),At!==null&&(G=E(At,G,et),vt===null?Pe=At:vt.sibling=At,vt=At);return pt&&Jr(K,et),Pe}for(ze=c(ze);!At.done;et++,At=J.next())At=ae(ze,K,et,At.value,ue),At!==null&&(t&&At.alternate!==null&&ze.delete(At.key===null?et:At.key),G=E(At,G,et),vt===null?Pe=At:vt.sibling=At,vt=At);return t&&ze.forEach(function(Ly){return a(K,Ly)}),pt&&Jr(K,et),Pe}function zt(K,G,J,ue){if(typeof J=="object"&&J!==null&&J.type===v&&J.key===null&&(J=J.props.children),typeof J=="object"&&J!==null){switch(J.$$typeof){case b:e:{for(var Pe=J.key;G!==null;){if(G.key===Pe){if(Pe=J.type,Pe===v){if(G.tag===7){s(K,G.sibling),ue=m(G,J.props.children),ue.return=K,K=ue;break e}}else if(G.elementType===Pe||typeof Pe=="object"&&Pe!==null&&Pe.$$typeof===L&&fi(Pe)===G.type){s(K,G.sibling),ue=m(G,J.props),Ks(ue,J),ue.return=K,K=ue;break e}s(K,G);break}else a(K,G);G=G.sibling}J.type===v?(ue=oi(J.props.children,K.mode,ue,J.key),ue.return=K,K=ue):(ue=Bo(J.type,J.key,J.props,null,K.mode,ue),Ks(ue,J),ue.return=K,K=ue)}return k(K);case C:e:{for(Pe=J.key;G!==null;){if(G.key===Pe)if(G.tag===4&&G.stateNode.containerInfo===J.containerInfo&&G.stateNode.implementation===J.implementation){s(K,G.sibling),ue=m(G,J.children||[]),ue.return=K,K=ue;break e}else{s(K,G);break}else a(K,G);G=G.sibling}ue=Tc(J,K.mode,ue),ue.return=K,K=ue}return k(K);case L:return J=fi(J),zt(K,G,J,ue)}if(Y(J))return Te(K,G,J,ue);if(Q(J)){if(Pe=Q(J),typeof Pe!="function")throw Error(i(150));return J=Pe.call(J),$e(K,G,J,ue)}if(typeof J.then=="function")return zt(K,G,Mo(J),ue);if(J.$$typeof===S)return zt(K,G,Fo(K,J),ue);jo(K,J)}return typeof J=="string"&&J!==""||typeof J=="number"||typeof J=="bigint"?(J=""+J,G!==null&&G.tag===6?(s(K,G.sibling),ue=m(G,J),ue.return=K,K=ue):(s(K,G),ue=jc(J,K.mode,ue),ue.return=K,K=ue),k(K)):s(K,G)}return function(K,G,J,ue){try{Ys=0;var Pe=zt(K,G,J,ue);return Ji=null,Pe}catch(ze){if(ze===Wi||ze===No)throw ze;var vt=tr(29,ze,null,K.mode);return vt.lanes=ue,vt.return=K,vt}}}var pi=_h(!0),Mh=_h(!1),Na=!1;function Vc(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Qc(t,a){t=t.updateQueue,a.updateQueue===t&&(a.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function _a(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function Ma(t,a,s){var c=t.updateQueue;if(c===null)return null;if(c=c.shared,(Dt&2)!==0){var m=c.pending;return m===null?a.next=a:(a.next=m.next,m.next=a),c.pending=a,a=ko(t),ph(t,null,s),a}return Ao(t,c,a,s),ko(t)}function Xs(t,a,s){if(a=a.updateQueue,a!==null&&(a=a.shared,(s&4194048)!==0)){var c=a.lanes;c&=t.pendingLanes,s|=c,a.lanes=s,Ve(t,s)}}function Yc(t,a){var s=t.updateQueue,c=t.alternate;if(c!==null&&(c=c.updateQueue,s===c)){var m=null,E=null;if(s=s.firstBaseUpdate,s!==null){do{var k={lane:s.lane,tag:s.tag,payload:s.payload,callback:null,next:null};E===null?m=E=k:E=E.next=k,s=s.next}while(s!==null);E===null?m=E=a:E=E.next=a}else m=E=a;s={baseState:c.baseState,firstBaseUpdate:m,lastBaseUpdate:E,shared:c.shared,callbacks:c.callbacks},t.updateQueue=s;return}t=s.lastBaseUpdate,t===null?s.firstBaseUpdate=a:t.next=a,s.lastBaseUpdate=a}var Kc=!1;function Zs(){if(Kc){var t=Zi;if(t!==null)throw t}}function Ws(t,a,s,c){Kc=!1;var m=t.updateQueue;Na=!1;var E=m.firstBaseUpdate,k=m.lastBaseUpdate,_=m.shared.pending;if(_!==null){m.shared.pending=null;var H=_,te=H.next;H.next=null,k===null?E=te:k.next=te,k=H;var ce=t.alternate;ce!==null&&(ce=ce.updateQueue,_=ce.lastBaseUpdate,_!==k&&(_===null?ce.firstBaseUpdate=te:_.next=te,ce.lastBaseUpdate=H))}if(E!==null){var de=m.baseState;k=0,ce=te=H=null,_=E;do{var ne=_.lane&-536870913,ae=ne!==_.lane;if(ae?(dt&ne)===ne:(c&ne)===ne){ne!==0&&ne===Xi&&(Kc=!0),ce!==null&&(ce=ce.next={lane:0,tag:_.tag,payload:_.payload,callback:null,next:null});e:{var Te=t,$e=_;ne=a;var zt=s;switch($e.tag){case 1:if(Te=$e.payload,typeof Te=="function"){de=Te.call(zt,de,ne);break e}de=Te;break e;case 3:Te.flags=Te.flags&-65537|128;case 0:if(Te=$e.payload,ne=typeof Te=="function"?Te.call(zt,de,ne):Te,ne==null)break e;de=p({},de,ne);break e;case 2:Na=!0}}ne=_.callback,ne!==null&&(t.flags|=64,ae&&(t.flags|=8192),ae=m.callbacks,ae===null?m.callbacks=[ne]:ae.push(ne))}else ae={lane:ne,tag:_.tag,payload:_.payload,callback:_.callback,next:null},ce===null?(te=ce=ae,H=de):ce=ce.next=ae,k|=ne;if(_=_.next,_===null){if(_=m.shared.pending,_===null)break;ae=_,_=ae.next,ae.next=null,m.lastBaseUpdate=ae,m.shared.pending=null}}while(!0);ce===null&&(H=de),m.baseState=H,m.firstBaseUpdate=te,m.lastBaseUpdate=ce,E===null&&(m.shared.lanes=0),za|=k,t.lanes=k,t.memoizedState=de}}function jh(t,a){if(typeof t!="function")throw Error(i(191,t));t.call(a)}function Th(t,a){var s=t.callbacks;if(s!==null)for(t.callbacks=null,t=0;t<s.length;t++)jh(s[t],a)}var es=z(null),To=z(0);function Rh(t,a){t=ua,w(To,t),w(es,a),ua=t|a.baseLanes}function Xc(){w(To,ua),w(es,es.current)}function Zc(){ua=To.current,X(es),X(To)}var nr=z(null),Er=null;function ja(t){var a=t.alternate;w(ln,ln.current&1),w(nr,t),Er===null&&(a===null||es.current!==null||a.memoizedState!==null)&&(Er=t)}function Wc(t){w(ln,ln.current),w(nr,t),Er===null&&(Er=t)}function Oh(t){t.tag===22?(w(ln,ln.current),w(nr,t),Er===null&&(Er=t)):Ta()}function Ta(){w(ln,ln.current),w(nr,nr.current)}function rr(t){X(nr),Er===t&&(Er=null),X(ln)}var ln=z(0);function Ro(t){for(var a=t;a!==null;){if(a.tag===13){var s=a.memoizedState;if(s!==null&&(s=s.dehydrated,s===null||ax(s)||ix(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===t)break;for(;a.sibling===null;){if(a.return===null||a.return===t)return null;a=a.return}a.sibling.return=a.return,a=a.sibling}return null}var na=0,Je=null,Rt=null,hn=null,Oo=!1,ts=!1,mi=!1,zo=0,Js=0,ns=null,F6=0;function Jt(){throw Error(i(321))}function Jc(t,a){if(a===null)return!1;for(var s=0;s<a.length&&s<t.length;s++)if(!er(t[s],a[s]))return!1;return!0}function eu(t,a,s,c,m,E){return na=E,Je=a,a.memoizedState=null,a.updateQueue=null,a.lanes=0,P.H=t===null||t.memoizedState===null?y1:pu,mi=!1,E=s(c,m),mi=!1,ts&&(E=Lh(a,s,c,m)),zh(t),E}function zh(t){P.H=nl;var a=Rt!==null&&Rt.next!==null;if(na=0,hn=Rt=Je=null,Oo=!1,Js=0,ns=null,a)throw Error(i(300));t===null||pn||(t=t.dependencies,t!==null&&wo(t)&&(pn=!0))}function Lh(t,a,s,c){Je=t;var m=0;do{if(ts&&(ns=null),Js=0,ts=!1,25<=m)throw Error(i(301));if(m+=1,hn=Rt=null,t.updateQueue!=null){var E=t.updateQueue;E.lastEffect=null,E.events=null,E.stores=null,E.memoCache!=null&&(E.memoCache.index=0)}P.H=b1,E=a(s,c)}while(ts);return E}function S6(){var t=P.H,a=t.useState()[0];return a=typeof a.then=="function"?el(a):a,t=t.useState()[0],(Rt!==null?Rt.memoizedState:null)!==t&&(Je.flags|=1024),a}function tu(){var t=zo!==0;return zo=0,t}function nu(t,a,s){a.updateQueue=t.updateQueue,a.flags&=-2053,t.lanes&=~s}function ru(t){if(Oo){for(t=t.memoizedState;t!==null;){var a=t.queue;a!==null&&(a.pending=null),t=t.next}Oo=!1}na=0,hn=Rt=Je=null,ts=!1,Js=zo=0,ns=null}function zn(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return hn===null?Je.memoizedState=hn=t:hn=hn.next=t,hn}function on(){if(Rt===null){var t=Je.alternate;t=t!==null?t.memoizedState:null}else t=Rt.next;var a=hn===null?Je.memoizedState:hn.next;if(a!==null)hn=a,Rt=t;else{if(t===null)throw Je.alternate===null?Error(i(467)):Error(i(310));Rt=t,t={memoizedState:Rt.memoizedState,baseState:Rt.baseState,baseQueue:Rt.baseQueue,queue:Rt.queue,next:null},hn===null?Je.memoizedState=hn=t:hn=hn.next=t}return hn}function Lo(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function el(t){var a=Js;return Js+=1,ns===null&&(ns=[]),t=Fh(ns,t,a),a=Je,(hn===null?a.memoizedState:hn.next)===null&&(a=a.alternate,P.H=a===null||a.memoizedState===null?y1:pu),t}function Po(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return el(t);if(t.$$typeof===S)return Dn(t)}throw Error(i(438,String(t)))}function au(t){var a=null,s=Je.updateQueue;if(s!==null&&(a=s.memoCache),a==null){var c=Je.alternate;c!==null&&(c=c.updateQueue,c!==null&&(c=c.memoCache,c!=null&&(a={data:c.data.map(function(m){return m.slice()}),index:0})))}if(a==null&&(a={data:[],index:0}),s===null&&(s=Lo(),Je.updateQueue=s),s.memoCache=a,s=a.data[a.index],s===void 0)for(s=a.data[a.index]=Array(t),c=0;c<t;c++)s[c]=O;return a.index++,s}function ra(t,a){return typeof a=="function"?a(t):a}function Io(t){var a=on();return iu(a,Rt,t)}function iu(t,a,s){var c=t.queue;if(c===null)throw Error(i(311));c.lastRenderedReducer=s;var m=t.baseQueue,E=c.pending;if(E!==null){if(m!==null){var k=m.next;m.next=E.next,E.next=k}a.baseQueue=m=E,c.pending=null}if(E=t.baseState,m===null)t.memoizedState=E;else{a=m.next;var _=k=null,H=null,te=a,ce=!1;do{var de=te.lane&-536870913;if(de!==te.lane?(dt&de)===de:(na&de)===de){var ne=te.revertLane;if(ne===0)H!==null&&(H=H.next={lane:0,revertLane:0,gesture:null,action:te.action,hasEagerState:te.hasEagerState,eagerState:te.eagerState,next:null}),de===Xi&&(ce=!0);else if((na&ne)===ne){te=te.next,ne===Xi&&(ce=!0);continue}else de={lane:0,revertLane:te.revertLane,gesture:null,action:te.action,hasEagerState:te.hasEagerState,eagerState:te.eagerState,next:null},H===null?(_=H=de,k=E):H=H.next=de,Je.lanes|=ne,za|=ne;de=te.action,mi&&s(E,de),E=te.hasEagerState?te.eagerState:s(E,de)}else ne={lane:de,revertLane:te.revertLane,gesture:te.gesture,action:te.action,hasEagerState:te.hasEagerState,eagerState:te.eagerState,next:null},H===null?(_=H=ne,k=E):H=H.next=ne,Je.lanes|=de,za|=de;te=te.next}while(te!==null&&te!==a);if(H===null?k=E:H.next=_,!er(E,t.memoizedState)&&(pn=!0,ce&&(s=Zi,s!==null)))throw s;t.memoizedState=E,t.baseState=k,t.baseQueue=H,c.lastRenderedState=E}return m===null&&(c.lanes=0),[t.memoizedState,c.dispatch]}function su(t){var a=on(),s=a.queue;if(s===null)throw Error(i(311));s.lastRenderedReducer=t;var c=s.dispatch,m=s.pending,E=a.memoizedState;if(m!==null){s.pending=null;var k=m=m.next;do E=t(E,k.action),k=k.next;while(k!==m);er(E,a.memoizedState)||(pn=!0),a.memoizedState=E,a.baseQueue===null&&(a.baseState=E),s.lastRenderedState=E}return[E,c]}function Ph(t,a,s){var c=Je,m=on(),E=pt;if(E){if(s===void 0)throw Error(i(407));s=s()}else s=a();var k=!er((Rt||m).memoizedState,s);if(k&&(m.memoizedState=s,pn=!0),m=m.queue,cu(Hh.bind(null,c,m,t),[t]),m.getSnapshot!==a||k||hn!==null&&hn.memoizedState.tag&1){if(c.flags|=2048,rs(9,{destroy:void 0},Uh.bind(null,c,m,s,a),null),Pt===null)throw Error(i(349));E||(na&127)!==0||Ih(c,a,s)}return s}function Ih(t,a,s){t.flags|=16384,t={getSnapshot:a,value:s},a=Je.updateQueue,a===null?(a=Lo(),Je.updateQueue=a,a.stores=[t]):(s=a.stores,s===null?a.stores=[t]:s.push(t))}function Uh(t,a,s,c){a.value=s,a.getSnapshot=c,$h(a)&&qh(t)}function Hh(t,a,s){return s(function(){$h(a)&&qh(t)})}function $h(t){var a=t.getSnapshot;t=t.value;try{var s=a();return!er(t,s)}catch{return!0}}function qh(t){var a=li(t,2);a!==null&&Qn(a,t,2)}function lu(t){var a=zn();if(typeof t=="function"){var s=t;if(t=s(),mi){Vt(!0);try{s()}finally{Vt(!1)}}}return a.memoizedState=a.baseState=t,a.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ra,lastRenderedState:t},a}function Gh(t,a,s,c){return t.baseState=s,iu(t,Rt,typeof c=="function"?c:ra)}function N6(t,a,s,c,m){if($o(t))throw Error(i(485));if(t=a.action,t!==null){var E={payload:m,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(k){E.listeners.push(k)}};P.T!==null?s(!0):E.isTransition=!1,c(E),s=a.pending,s===null?(E.next=a.pending=E,Vh(a,E)):(E.next=s.next,a.pending=s.next=E)}}function Vh(t,a){var s=a.action,c=a.payload,m=t.state;if(a.isTransition){var E=P.T,k={};P.T=k;try{var _=s(m,c),H=P.S;H!==null&&H(k,_),Qh(t,a,_)}catch(te){ou(t,a,te)}finally{E!==null&&k.types!==null&&(E.types=k.types),P.T=E}}else try{E=s(m,c),Qh(t,a,E)}catch(te){ou(t,a,te)}}function Qh(t,a,s){s!==null&&typeof s=="object"&&typeof s.then=="function"?s.then(function(c){Yh(t,a,c)},function(c){return ou(t,a,c)}):Yh(t,a,s)}function Yh(t,a,s){a.status="fulfilled",a.value=s,Kh(a),t.state=s,a=t.pending,a!==null&&(s=a.next,s===a?t.pending=null:(s=s.next,a.next=s,Vh(t,s)))}function ou(t,a,s){var c=t.pending;if(t.pending=null,c!==null){c=c.next;do a.status="rejected",a.reason=s,Kh(a),a=a.next;while(a!==c)}t.action=null}function Kh(t){t=t.listeners;for(var a=0;a<t.length;a++)(0,t[a])()}function Xh(t,a){return a}function Zh(t,a){if(pt){var s=Pt.formState;if(s!==null){e:{var c=Je;if(pt){if(Qt){t:{for(var m=Qt,E=gr;m.nodeType!==8;){if(!E){m=null;break t}if(m=yr(m.nextSibling),m===null){m=null;break t}}E=m.data,m=E==="F!"||E==="F"?m:null}if(m){Qt=yr(m.nextSibling),c=m.data==="F!";break e}}Fa(c)}c=!1}c&&(a=s[0])}}return s=zn(),s.memoizedState=s.baseState=a,c={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Xh,lastRenderedState:a},s.queue=c,s=m1.bind(null,Je,c),c.dispatch=s,c=lu(!1),E=hu.bind(null,Je,!1,c.queue),c=zn(),m={state:a,dispatch:null,action:t,pending:null},c.queue=m,s=N6.bind(null,Je,m,E,s),m.dispatch=s,c.memoizedState=t,[a,s,!1]}function Wh(t){var a=on();return Jh(a,Rt,t)}function Jh(t,a,s){if(a=iu(t,a,Xh)[0],t=Io(ra)[0],typeof a=="object"&&a!==null&&typeof a.then=="function")try{var c=el(a)}catch(k){throw k===Wi?No:k}else c=a;a=on();var m=a.queue,E=m.dispatch;return s!==a.memoizedState&&(Je.flags|=2048,rs(9,{destroy:void 0},_6.bind(null,m,s),null)),[c,E,t]}function _6(t,a){t.action=a}function e1(t){var a=on(),s=Rt;if(s!==null)return Jh(a,s,t);on(),a=a.memoizedState,s=on();var c=s.queue.dispatch;return s.memoizedState=t,[a,c,!1]}function rs(t,a,s,c){return t={tag:t,create:s,deps:c,inst:a,next:null},a=Je.updateQueue,a===null&&(a=Lo(),Je.updateQueue=a),s=a.lastEffect,s===null?a.lastEffect=t.next=t:(c=s.next,s.next=t,t.next=c,a.lastEffect=t),t}function t1(){return on().memoizedState}function Uo(t,a,s,c){var m=zn();Je.flags|=t,m.memoizedState=rs(1|a,{destroy:void 0},s,c===void 0?null:c)}function Ho(t,a,s,c){var m=on();c=c===void 0?null:c;var E=m.memoizedState.inst;Rt!==null&&c!==null&&Jc(c,Rt.memoizedState.deps)?m.memoizedState=rs(a,E,s,c):(Je.flags|=t,m.memoizedState=rs(1|a,E,s,c))}function n1(t,a){Uo(8390656,8,t,a)}function cu(t,a){Ho(2048,8,t,a)}function M6(t){Je.flags|=4;var a=Je.updateQueue;if(a===null)a=Lo(),Je.updateQueue=a,a.events=[t];else{var s=a.events;s===null?a.events=[t]:s.push(t)}}function r1(t){var a=on().memoizedState;return M6({ref:a,nextImpl:t}),function(){if((Dt&2)!==0)throw Error(i(440));return a.impl.apply(void 0,arguments)}}function a1(t,a){return Ho(4,2,t,a)}function i1(t,a){return Ho(4,4,t,a)}function s1(t,a){if(typeof a=="function"){t=t();var s=a(t);return function(){typeof s=="function"?s():a(null)}}if(a!=null)return t=t(),a.current=t,function(){a.current=null}}function l1(t,a,s){s=s!=null?s.concat([t]):null,Ho(4,4,s1.bind(null,a,t),s)}function uu(){}function o1(t,a){var s=on();a=a===void 0?null:a;var c=s.memoizedState;return a!==null&&Jc(a,c[1])?c[0]:(s.memoizedState=[t,a],t)}function c1(t,a){var s=on();a=a===void 0?null:a;var c=s.memoizedState;if(a!==null&&Jc(a,c[1]))return c[0];if(c=t(),mi){Vt(!0);try{t()}finally{Vt(!1)}}return s.memoizedState=[c,a],c}function xu(t,a,s){return s===void 0||(na&1073741824)!==0&&(dt&261930)===0?t.memoizedState=a:(t.memoizedState=s,t=up(),Je.lanes|=t,za|=t,s)}function u1(t,a,s,c){return er(s,a)?s:es.current!==null?(t=xu(t,s,c),er(t,a)||(pn=!0),t):(na&42)===0||(na&1073741824)!==0&&(dt&261930)===0?(pn=!0,t.memoizedState=s):(t=up(),Je.lanes|=t,za|=t,a)}function x1(t,a,s,c,m){var E=V.p;V.p=E!==0&&8>E?E:8;var k=P.T,_={};P.T=_,hu(t,!1,a,s);try{var H=m(),te=P.S;if(te!==null&&te(_,H),H!==null&&typeof H=="object"&&typeof H.then=="function"){var ce=w6(H,c);tl(t,a,ce,sr(t))}else tl(t,a,c,sr(t))}catch(de){tl(t,a,{then:function(){},status:"rejected",reason:de},sr())}finally{V.p=E,k!==null&&_.types!==null&&(k.types=_.types),P.T=k}}function j6(){}function du(t,a,s,c){if(t.tag!==5)throw Error(i(476));var m=d1(t).queue;x1(t,m,a,Z,s===null?j6:function(){return f1(t),s(c)})}function d1(t){var a=t.memoizedState;if(a!==null)return a;a={memoizedState:Z,baseState:Z,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ra,lastRenderedState:Z},next:null};var s={};return a.next={memoizedState:s,baseState:s,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ra,lastRenderedState:s},next:null},t.memoizedState=a,t=t.alternate,t!==null&&(t.memoizedState=a),a}function f1(t){var a=d1(t);a.next===null&&(a=t.alternate.memoizedState),tl(t,a.next.queue,{},sr())}function fu(){return Dn(El)}function h1(){return on().memoizedState}function p1(){return on().memoizedState}function T6(t){for(var a=t.return;a!==null;){switch(a.tag){case 24:case 3:var s=sr();t=_a(s);var c=Ma(a,t,s);c!==null&&(Qn(c,a,s),Xs(c,a,s)),a={cache:Hc()},t.payload=a;return}a=a.return}}function R6(t,a,s){var c=sr();s={lane:c,revertLane:0,gesture:null,action:s,hasEagerState:!1,eagerState:null,next:null},$o(t)?g1(a,s):(s=_c(t,a,s,c),s!==null&&(Qn(s,t,c),E1(s,a,c)))}function m1(t,a,s){var c=sr();tl(t,a,s,c)}function tl(t,a,s,c){var m={lane:c,revertLane:0,gesture:null,action:s,hasEagerState:!1,eagerState:null,next:null};if($o(t))g1(a,m);else{var E=t.alternate;if(t.lanes===0&&(E===null||E.lanes===0)&&(E=a.lastRenderedReducer,E!==null))try{var k=a.lastRenderedState,_=E(k,s);if(m.hasEagerState=!0,m.eagerState=_,er(_,k))return Ao(t,a,m,0),Pt===null&&vo(),!1}catch{}if(s=_c(t,a,m,c),s!==null)return Qn(s,t,c),E1(s,a,c),!0}return!1}function hu(t,a,s,c){if(c={lane:2,revertLane:Vu(),gesture:null,action:c,hasEagerState:!1,eagerState:null,next:null},$o(t)){if(a)throw Error(i(479))}else a=_c(t,s,c,2),a!==null&&Qn(a,t,2)}function $o(t){var a=t.alternate;return t===Je||a!==null&&a===Je}function g1(t,a){ts=Oo=!0;var s=t.pending;s===null?a.next=a:(a.next=s.next,s.next=a),t.pending=a}function E1(t,a,s){if((s&4194048)!==0){var c=a.lanes;c&=t.pendingLanes,s|=c,a.lanes=s,Ve(t,s)}}var nl={readContext:Dn,use:Po,useCallback:Jt,useContext:Jt,useEffect:Jt,useImperativeHandle:Jt,useLayoutEffect:Jt,useInsertionEffect:Jt,useMemo:Jt,useReducer:Jt,useRef:Jt,useState:Jt,useDebugValue:Jt,useDeferredValue:Jt,useTransition:Jt,useSyncExternalStore:Jt,useId:Jt,useHostTransitionStatus:Jt,useFormState:Jt,useActionState:Jt,useOptimistic:Jt,useMemoCache:Jt,useCacheRefresh:Jt};nl.useEffectEvent=Jt;var y1={readContext:Dn,use:Po,useCallback:function(t,a){return zn().memoizedState=[t,a===void 0?null:a],t},useContext:Dn,useEffect:n1,useImperativeHandle:function(t,a,s){s=s!=null?s.concat([t]):null,Uo(4194308,4,s1.bind(null,a,t),s)},useLayoutEffect:function(t,a){return Uo(4194308,4,t,a)},useInsertionEffect:function(t,a){Uo(4,2,t,a)},useMemo:function(t,a){var s=zn();a=a===void 0?null:a;var c=t();if(mi){Vt(!0);try{t()}finally{Vt(!1)}}return s.memoizedState=[c,a],c},useReducer:function(t,a,s){var c=zn();if(s!==void 0){var m=s(a);if(mi){Vt(!0);try{s(a)}finally{Vt(!1)}}}else m=a;return c.memoizedState=c.baseState=m,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:m},c.queue=t,t=t.dispatch=R6.bind(null,Je,t),[c.memoizedState,t]},useRef:function(t){var a=zn();return t={current:t},a.memoizedState=t},useState:function(t){t=lu(t);var a=t.queue,s=m1.bind(null,Je,a);return a.dispatch=s,[t.memoizedState,s]},useDebugValue:uu,useDeferredValue:function(t,a){var s=zn();return xu(s,t,a)},useTransition:function(){var t=lu(!1);return t=x1.bind(null,Je,t.queue,!0,!1),zn().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,a,s){var c=Je,m=zn();if(pt){if(s===void 0)throw Error(i(407));s=s()}else{if(s=a(),Pt===null)throw Error(i(349));(dt&127)!==0||Ih(c,a,s)}m.memoizedState=s;var E={value:s,getSnapshot:a};return m.queue=E,n1(Hh.bind(null,c,E,t),[t]),c.flags|=2048,rs(9,{destroy:void 0},Uh.bind(null,c,E,s,a),null),s},useId:function(){var t=zn(),a=Pt.identifierPrefix;if(pt){var s=Lr,c=zr;s=(c&~(1<<32-re(c)-1)).toString(32)+s,a="_"+a+"R_"+s,s=zo++,0<s&&(a+="H"+s.toString(32)),a+="_"}else s=F6++,a="_"+a+"r_"+s.toString(32)+"_";return t.memoizedState=a},useHostTransitionStatus:fu,useFormState:Zh,useActionState:Zh,useOptimistic:function(t){var a=zn();a.memoizedState=a.baseState=t;var s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return a.queue=s,a=hu.bind(null,Je,!0,s),s.dispatch=a,[t,a]},useMemoCache:au,useCacheRefresh:function(){return zn().memoizedState=T6.bind(null,Je)},useEffectEvent:function(t){var a=zn(),s={impl:t};return a.memoizedState=s,function(){if((Dt&2)!==0)throw Error(i(440));return s.impl.apply(void 0,arguments)}}},pu={readContext:Dn,use:Po,useCallback:o1,useContext:Dn,useEffect:cu,useImperativeHandle:l1,useInsertionEffect:a1,useLayoutEffect:i1,useMemo:c1,useReducer:Io,useRef:t1,useState:function(){return Io(ra)},useDebugValue:uu,useDeferredValue:function(t,a){var s=on();return u1(s,Rt.memoizedState,t,a)},useTransition:function(){var t=Io(ra)[0],a=on().memoizedState;return[typeof t=="boolean"?t:el(t),a]},useSyncExternalStore:Ph,useId:h1,useHostTransitionStatus:fu,useFormState:Wh,useActionState:Wh,useOptimistic:function(t,a){var s=on();return Gh(s,Rt,t,a)},useMemoCache:au,useCacheRefresh:p1};pu.useEffectEvent=r1;var b1={readContext:Dn,use:Po,useCallback:o1,useContext:Dn,useEffect:cu,useImperativeHandle:l1,useInsertionEffect:a1,useLayoutEffect:i1,useMemo:c1,useReducer:su,useRef:t1,useState:function(){return su(ra)},useDebugValue:uu,useDeferredValue:function(t,a){var s=on();return Rt===null?xu(s,t,a):u1(s,Rt.memoizedState,t,a)},useTransition:function(){var t=su(ra)[0],a=on().memoizedState;return[typeof t=="boolean"?t:el(t),a]},useSyncExternalStore:Ph,useId:h1,useHostTransitionStatus:fu,useFormState:e1,useActionState:e1,useOptimistic:function(t,a){var s=on();return Rt!==null?Gh(s,Rt,t,a):(s.baseState=t,[t,s.queue.dispatch])},useMemoCache:au,useCacheRefresh:p1};b1.useEffectEvent=r1;function mu(t,a,s,c){a=t.memoizedState,s=s(c,a),s=s==null?a:p({},a,s),t.memoizedState=s,t.lanes===0&&(t.updateQueue.baseState=s)}var gu={enqueueSetState:function(t,a,s){t=t._reactInternals;var c=sr(),m=_a(c);m.payload=a,s!=null&&(m.callback=s),a=Ma(t,m,c),a!==null&&(Qn(a,t,c),Xs(a,t,c))},enqueueReplaceState:function(t,a,s){t=t._reactInternals;var c=sr(),m=_a(c);m.tag=1,m.payload=a,s!=null&&(m.callback=s),a=Ma(t,m,c),a!==null&&(Qn(a,t,c),Xs(a,t,c))},enqueueForceUpdate:function(t,a){t=t._reactInternals;var s=sr(),c=_a(s);c.tag=2,a!=null&&(c.callback=a),a=Ma(t,c,s),a!==null&&(Qn(a,t,s),Xs(a,t,s))}};function C1(t,a,s,c,m,E,k){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(c,E,k):a.prototype&&a.prototype.isPureReactComponent?!Hs(s,c)||!Hs(m,E):!0}function v1(t,a,s,c){t=a.state,typeof a.componentWillReceiveProps=="function"&&a.componentWillReceiveProps(s,c),typeof a.UNSAFE_componentWillReceiveProps=="function"&&a.UNSAFE_componentWillReceiveProps(s,c),a.state!==t&&gu.enqueueReplaceState(a,a.state,null)}function gi(t,a){var s=a;if("ref"in a){s={};for(var c in a)c!=="ref"&&(s[c]=a[c])}if(t=t.defaultProps){s===a&&(s=p({},s));for(var m in t)s[m]===void 0&&(s[m]=t[m])}return s}function A1(t){Co(t)}function k1(t){console.error(t)}function B1(t){Co(t)}function qo(t,a){try{var s=t.onUncaughtError;s(a.value,{componentStack:a.stack})}catch(c){setTimeout(function(){throw c})}}function D1(t,a,s){try{var c=t.onCaughtError;c(s.value,{componentStack:s.stack,errorBoundary:a.tag===1?a.stateNode:null})}catch(m){setTimeout(function(){throw m})}}function Eu(t,a,s){return s=_a(s),s.tag=3,s.payload={element:null},s.callback=function(){qo(t,a)},s}function w1(t){return t=_a(t),t.tag=3,t}function F1(t,a,s,c){var m=s.type.getDerivedStateFromError;if(typeof m=="function"){var E=c.value;t.payload=function(){return m(E)},t.callback=function(){D1(a,s,c)}}var k=s.stateNode;k!==null&&typeof k.componentDidCatch=="function"&&(t.callback=function(){D1(a,s,c),typeof m!="function"&&(La===null?La=new Set([this]):La.add(this));var _=c.stack;this.componentDidCatch(c.value,{componentStack:_!==null?_:""})})}function O6(t,a,s,c,m){if(s.flags|=32768,c!==null&&typeof c=="object"&&typeof c.then=="function"){if(a=s.alternate,a!==null&&Ki(a,s,m,!0),s=nr.current,s!==null){switch(s.tag){case 31:case 13:return Er===null?n0():s.alternate===null&&en===0&&(en=3),s.flags&=-257,s.flags|=65536,s.lanes=m,c===_o?s.flags|=16384:(a=s.updateQueue,a===null?s.updateQueue=new Set([c]):a.add(c),$u(t,c,m)),!1;case 22:return s.flags|=65536,c===_o?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)),$u(t,c,m)),!1}throw Error(i(435,s.tag))}return $u(t,c,m),n0(),!1}if(pt)return a=nr.current,a!==null?((a.flags&65536)===0&&(a.flags|=256),a.flags|=65536,a.lanes=m,c!==zc&&(t=Error(i(422),{cause:c}),Gs(hr(t,s)))):(c!==zc&&(a=Error(i(423),{cause:c}),Gs(hr(a,s))),t=t.current.alternate,t.flags|=65536,m&=-m,t.lanes|=m,c=hr(c,s),m=Eu(t.stateNode,c,m),Yc(t,m),en!==4&&(en=2)),!1;var E=Error(i(520),{cause:c});if(E=hr(E,s),ul===null?ul=[E]:ul.push(E),en!==4&&(en=2),a===null)return!0;c=hr(c,s),s=a;do{switch(s.tag){case 3:return s.flags|=65536,t=m&-m,s.lanes|=t,t=Eu(s.stateNode,c,t),Yc(s,t),!1;case 1:if(a=s.type,E=s.stateNode,(s.flags&128)===0&&(typeof a.getDerivedStateFromError=="function"||E!==null&&typeof E.componentDidCatch=="function"&&(La===null||!La.has(E))))return s.flags|=65536,m&=-m,s.lanes|=m,m=w1(m),F1(m,t,s,c),Yc(s,m),!1}s=s.return}while(s!==null);return!1}var yu=Error(i(461)),pn=!1;function wn(t,a,s,c){a.child=t===null?Mh(a,null,s,c):pi(a,t.child,s,c)}function S1(t,a,s,c,m){s=s.render;var E=a.ref;if("ref"in c){var k={};for(var _ in c)_!=="ref"&&(k[_]=c[_])}else k=c;return xi(a),c=eu(t,a,s,k,E,m),_=tu(),t!==null&&!pn?(nu(t,a,m),aa(t,a,m)):(pt&&_&&Rc(a),a.flags|=1,wn(t,a,c,m),a.child)}function N1(t,a,s,c,m){if(t===null){var E=s.type;return typeof E=="function"&&!Mc(E)&&E.defaultProps===void 0&&s.compare===null?(a.tag=15,a.type=E,_1(t,a,E,c,m)):(t=Bo(s.type,null,c,a,a.mode,m),t.ref=a.ref,t.return=a,a.child=t)}if(E=t.child,!wu(t,m)){var k=E.memoizedProps;if(s=s.compare,s=s!==null?s:Hs,s(k,c)&&t.ref===a.ref)return aa(t,a,m)}return a.flags|=1,t=Wr(E,c),t.ref=a.ref,t.return=a,a.child=t}function _1(t,a,s,c,m){if(t!==null){var E=t.memoizedProps;if(Hs(E,c)&&t.ref===a.ref)if(pn=!1,a.pendingProps=c=E,wu(t,m))(t.flags&131072)!==0&&(pn=!0);else return a.lanes=t.lanes,aa(t,a,m)}return bu(t,a,s,c,m)}function M1(t,a,s,c){var m=c.children,E=t!==null?t.memoizedState:null;if(t===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,t!==null){for(c=a.child=t.child,m=0;c!==null;)m=m|c.lanes|c.childLanes,c=c.sibling;c=m&~E}else c=0,a.child=null;return j1(t,a,E,s,c)}if((s&536870912)!==0)a.memoizedState={baseLanes:0,cachePool:null},t!==null&&So(a,E!==null?E.cachePool:null),E!==null?Rh(a,E):Xc(),Oh(a);else return c=a.lanes=536870912,j1(t,a,E!==null?E.baseLanes|s:s,s,c)}else E!==null?(So(a,E.cachePool),Rh(a,E),Ta(),a.memoizedState=null):(t!==null&&So(a,null),Xc(),Ta());return wn(t,a,m,s),a.child}function rl(t,a){return t!==null&&t.tag===22||a.stateNode!==null||(a.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.sibling}function j1(t,a,s,c,m){var E=qc();return E=E===null?null:{parent:fn._currentValue,pool:E},a.memoizedState={baseLanes:s,cachePool:E},t!==null&&So(a,null),Xc(),Oh(a),t!==null&&Ki(t,a,c,!0),a.childLanes=m,null}function Go(t,a){return a=Qo({mode:a.mode,children:a.children},t.mode),a.ref=t.ref,t.child=a,a.return=t,a}function T1(t,a,s){return pi(a,t.child,null,s),t=Go(a,a.pendingProps),t.flags|=2,rr(a),a.memoizedState=null,t}function z6(t,a,s){var c=a.pendingProps,m=(a.flags&128)!==0;if(a.flags&=-129,t===null){if(pt){if(c.mode==="hidden")return t=Go(a,c),a.lanes=536870912,rl(null,t);if(Wc(a),(t=Qt)?(t=Vp(t,gr),t=t!==null&&t.data==="&"?t:null,t!==null&&(a.memoizedState={dehydrated:t,treeContext:Da!==null?{id:zr,overflow:Lr}:null,retryLane:536870912,hydrationErrors:null},s=gh(t),s.return=a,a.child=s,Bn=a,Qt=null)):t=null,t===null)throw Fa(a);return a.lanes=536870912,null}return Go(a,c)}var E=t.memoizedState;if(E!==null){var k=E.dehydrated;if(Wc(a),m)if(a.flags&256)a.flags&=-257,a=T1(t,a,s);else if(a.memoizedState!==null)a.child=t.child,a.flags|=128,a=null;else throw Error(i(558));else if(pn||Ki(t,a,s,!1),m=(s&t.childLanes)!==0,pn||m){if(c=Pt,c!==null&&(k=rn(c,s),k!==0&&k!==E.retryLane))throw E.retryLane=k,li(t,k),Qn(c,t,k),yu;n0(),a=T1(t,a,s)}else t=E.treeContext,Qt=yr(k.nextSibling),Bn=a,pt=!0,wa=null,gr=!1,t!==null&&bh(a,t),a=Go(a,c),a.flags|=4096;return a}return t=Wr(t.child,{mode:c.mode,children:c.children}),t.ref=a.ref,a.child=t,t.return=a,t}function Vo(t,a){var s=a.ref;if(s===null)t!==null&&t.ref!==null&&(a.flags|=4194816);else{if(typeof s!="function"&&typeof s!="object")throw Error(i(284));(t===null||t.ref!==s)&&(a.flags|=4194816)}}function bu(t,a,s,c,m){return xi(a),s=eu(t,a,s,c,void 0,m),c=tu(),t!==null&&!pn?(nu(t,a,m),aa(t,a,m)):(pt&&c&&Rc(a),a.flags|=1,wn(t,a,s,m),a.child)}function R1(t,a,s,c,m,E){return xi(a),a.updateQueue=null,s=Lh(a,c,s,m),zh(t),c=tu(),t!==null&&!pn?(nu(t,a,E),aa(t,a,E)):(pt&&c&&Rc(a),a.flags|=1,wn(t,a,s,E),a.child)}function O1(t,a,s,c,m){if(xi(a),a.stateNode===null){var E=Gi,k=s.contextType;typeof k=="object"&&k!==null&&(E=Dn(k)),E=new s(c,E),a.memoizedState=E.state!==null&&E.state!==void 0?E.state:null,E.updater=gu,a.stateNode=E,E._reactInternals=a,E=a.stateNode,E.props=c,E.state=a.memoizedState,E.refs={},Vc(a),k=s.contextType,E.context=typeof k=="object"&&k!==null?Dn(k):Gi,E.state=a.memoizedState,k=s.getDerivedStateFromProps,typeof k=="function"&&(mu(a,s,k,c),E.state=a.memoizedState),typeof s.getDerivedStateFromProps=="function"||typeof E.getSnapshotBeforeUpdate=="function"||typeof E.UNSAFE_componentWillMount!="function"&&typeof E.componentWillMount!="function"||(k=E.state,typeof E.componentWillMount=="function"&&E.componentWillMount(),typeof E.UNSAFE_componentWillMount=="function"&&E.UNSAFE_componentWillMount(),k!==E.state&&gu.enqueueReplaceState(E,E.state,null),Ws(a,c,E,m),Zs(),E.state=a.memoizedState),typeof E.componentDidMount=="function"&&(a.flags|=4194308),c=!0}else if(t===null){E=a.stateNode;var _=a.memoizedProps,H=gi(s,_);E.props=H;var te=E.context,ce=s.contextType;k=Gi,typeof ce=="object"&&ce!==null&&(k=Dn(ce));var de=s.getDerivedStateFromProps;ce=typeof de=="function"||typeof E.getSnapshotBeforeUpdate=="function",_=a.pendingProps!==_,ce||typeof E.UNSAFE_componentWillReceiveProps!="function"&&typeof E.componentWillReceiveProps!="function"||(_||te!==k)&&v1(a,E,c,k),Na=!1;var ne=a.memoizedState;E.state=ne,Ws(a,c,E,m),Zs(),te=a.memoizedState,_||ne!==te||Na?(typeof de=="function"&&(mu(a,s,de,c),te=a.memoizedState),(H=Na||C1(a,s,H,c,ne,te,k))?(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=k,c=H):(typeof E.componentDidMount=="function"&&(a.flags|=4194308),c=!1)}else{E=a.stateNode,Qc(t,a),k=a.memoizedProps,ce=gi(s,k),E.props=ce,de=a.pendingProps,ne=E.context,te=s.contextType,H=Gi,typeof te=="object"&&te!==null&&(H=Dn(te)),_=s.getDerivedStateFromProps,(te=typeof _=="function"||typeof E.getSnapshotBeforeUpdate=="function")||typeof E.UNSAFE_componentWillReceiveProps!="function"&&typeof E.componentWillReceiveProps!="function"||(k!==de||ne!==H)&&v1(a,E,c,H),Na=!1,ne=a.memoizedState,E.state=ne,Ws(a,c,E,m),Zs();var ae=a.memoizedState;k!==de||ne!==ae||Na||t!==null&&t.dependencies!==null&&wo(t.dependencies)?(typeof _=="function"&&(mu(a,s,_,c),ae=a.memoizedState),(ce=Na||C1(a,s,ce,c,ne,ae,H)||t!==null&&t.dependencies!==null&&wo(t.dependencies))?(te||typeof E.UNSAFE_componentWillUpdate!="function"&&typeof E.componentWillUpdate!="function"||(typeof E.componentWillUpdate=="function"&&E.componentWillUpdate(c,ae,H),typeof E.UNSAFE_componentWillUpdate=="function"&&E.UNSAFE_componentWillUpdate(c,ae,H)),typeof E.componentDidUpdate=="function"&&(a.flags|=4),typeof E.getSnapshotBeforeUpdate=="function"&&(a.flags|=1024)):(typeof E.componentDidUpdate!="function"||k===t.memoizedProps&&ne===t.memoizedState||(a.flags|=4),typeof E.getSnapshotBeforeUpdate!="function"||k===t.memoizedProps&&ne===t.memoizedState||(a.flags|=1024),a.memoizedProps=c,a.memoizedState=ae),E.props=c,E.state=ae,E.context=H,c=ce):(typeof E.componentDidUpdate!="function"||k===t.memoizedProps&&ne===t.memoizedState||(a.flags|=4),typeof E.getSnapshotBeforeUpdate!="function"||k===t.memoizedProps&&ne===t.memoizedState||(a.flags|=1024),c=!1)}return E=c,Vo(t,a),c=(a.flags&128)!==0,E||c?(E=a.stateNode,s=c&&typeof s.getDerivedStateFromError!="function"?null:E.render(),a.flags|=1,t!==null&&c?(a.child=pi(a,t.child,null,m),a.child=pi(a,null,s,m)):wn(t,a,s,m),a.memoizedState=E.state,t=a.child):t=aa(t,a,m),t}function z1(t,a,s,c){return ci(),a.flags|=256,wn(t,a,s,c),a.child}var Cu={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function vu(t){return{baseLanes:t,cachePool:Dh()}}function Au(t,a,s){return t=t!==null?t.childLanes&~s:0,a&&(t|=ir),t}function L1(t,a,s){var c=a.pendingProps,m=!1,E=(a.flags&128)!==0,k;if((k=E)||(k=t!==null&&t.memoizedState===null?!1:(ln.current&2)!==0),k&&(m=!0,a.flags&=-129),k=(a.flags&32)!==0,a.flags&=-33,t===null){if(pt){if(m?ja(a):Ta(),(t=Qt)?(t=Vp(t,gr),t=t!==null&&t.data!=="&"?t:null,t!==null&&(a.memoizedState={dehydrated:t,treeContext:Da!==null?{id:zr,overflow:Lr}:null,retryLane:536870912,hydrationErrors:null},s=gh(t),s.return=a,a.child=s,Bn=a,Qt=null)):t=null,t===null)throw Fa(a);return ix(t)?a.lanes=32:a.lanes=536870912,null}var _=c.children;return c=c.fallback,m?(Ta(),m=a.mode,_=Qo({mode:"hidden",children:_},m),c=oi(c,m,s,null),_.return=a,c.return=a,_.sibling=c,a.child=_,c=a.child,c.memoizedState=vu(s),c.childLanes=Au(t,k,s),a.memoizedState=Cu,rl(null,c)):(ja(a),ku(a,_))}var H=t.memoizedState;if(H!==null&&(_=H.dehydrated,_!==null)){if(E)a.flags&256?(ja(a),a.flags&=-257,a=Bu(t,a,s)):a.memoizedState!==null?(Ta(),a.child=t.child,a.flags|=128,a=null):(Ta(),_=c.fallback,m=a.mode,c=Qo({mode:"visible",children:c.children},m),_=oi(_,m,s,null),_.flags|=2,c.return=a,_.return=a,c.sibling=_,a.child=c,pi(a,t.child,null,s),c=a.child,c.memoizedState=vu(s),c.childLanes=Au(t,k,s),a.memoizedState=Cu,a=rl(null,c));else if(ja(a),ix(_)){if(k=_.nextSibling&&_.nextSibling.dataset,k)var te=k.dgst;k=te,c=Error(i(419)),c.stack="",c.digest=k,Gs({value:c,source:null,stack:null}),a=Bu(t,a,s)}else if(pn||Ki(t,a,s,!1),k=(s&t.childLanes)!==0,pn||k){if(k=Pt,k!==null&&(c=rn(k,s),c!==0&&c!==H.retryLane))throw H.retryLane=c,li(t,c),Qn(k,t,c),yu;ax(_)||n0(),a=Bu(t,a,s)}else ax(_)?(a.flags|=192,a.child=t.child,a=null):(t=H.treeContext,Qt=yr(_.nextSibling),Bn=a,pt=!0,wa=null,gr=!1,t!==null&&bh(a,t),a=ku(a,c.children),a.flags|=4096);return a}return m?(Ta(),_=c.fallback,m=a.mode,H=t.child,te=H.sibling,c=Wr(H,{mode:"hidden",children:c.children}),c.subtreeFlags=H.subtreeFlags&65011712,te!==null?_=Wr(te,_):(_=oi(_,m,s,null),_.flags|=2),_.return=a,c.return=a,c.sibling=_,a.child=c,rl(null,c),c=a.child,_=t.child.memoizedState,_===null?_=vu(s):(m=_.cachePool,m!==null?(H=fn._currentValue,m=m.parent!==H?{parent:H,pool:H}:m):m=Dh(),_={baseLanes:_.baseLanes|s,cachePool:m}),c.memoizedState=_,c.childLanes=Au(t,k,s),a.memoizedState=Cu,rl(t.child,c)):(ja(a),s=t.child,t=s.sibling,s=Wr(s,{mode:"visible",children:c.children}),s.return=a,s.sibling=null,t!==null&&(k=a.deletions,k===null?(a.deletions=[t],a.flags|=16):k.push(t)),a.child=s,a.memoizedState=null,s)}function ku(t,a){return a=Qo({mode:"visible",children:a},t.mode),a.return=t,t.child=a}function Qo(t,a){return t=tr(22,t,null,a),t.lanes=0,t}function Bu(t,a,s){return pi(a,t.child,null,s),t=ku(a,a.pendingProps.children),t.flags|=2,a.memoizedState=null,t}function P1(t,a,s){t.lanes|=a;var c=t.alternate;c!==null&&(c.lanes|=a),Ic(t.return,a,s)}function Du(t,a,s,c,m,E){var k=t.memoizedState;k===null?t.memoizedState={isBackwards:a,rendering:null,renderingStartTime:0,last:c,tail:s,tailMode:m,treeForkCount:E}:(k.isBackwards=a,k.rendering=null,k.renderingStartTime=0,k.last=c,k.tail=s,k.tailMode=m,k.treeForkCount=E)}function I1(t,a,s){var c=a.pendingProps,m=c.revealOrder,E=c.tail;c=c.children;var k=ln.current,_=(k&2)!==0;if(_?(k=k&1|2,a.flags|=128):k&=1,w(ln,k),wn(t,a,c,s),c=pt?qs:0,!_&&t!==null&&(t.flags&128)!==0)e:for(t=a.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&P1(t,s,a);else if(t.tag===19)P1(t,s,a);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===a)break e;for(;t.sibling===null;){if(t.return===null||t.return===a)break e;t=t.return}t.sibling.return=t.return,t=t.sibling}switch(m){case"forwards":for(s=a.child,m=null;s!==null;)t=s.alternate,t!==null&&Ro(t)===null&&(m=s),s=s.sibling;s=m,s===null?(m=a.child,a.child=null):(m=s.sibling,s.sibling=null),Du(a,!1,m,s,E,c);break;case"backwards":case"unstable_legacy-backwards":for(s=null,m=a.child,a.child=null;m!==null;){if(t=m.alternate,t!==null&&Ro(t)===null){a.child=m;break}t=m.sibling,m.sibling=s,s=m,m=t}Du(a,!0,s,null,E,c);break;case"together":Du(a,!1,null,null,void 0,c);break;default:a.memoizedState=null}return a.child}function aa(t,a,s){if(t!==null&&(a.dependencies=t.dependencies),za|=a.lanes,(s&a.childLanes)===0)if(t!==null){if(Ki(t,a,s,!1),(s&a.childLanes)===0)return null}else return null;if(t!==null&&a.child!==t.child)throw Error(i(153));if(a.child!==null){for(t=a.child,s=Wr(t,t.pendingProps),a.child=s,s.return=a;t.sibling!==null;)t=t.sibling,s=s.sibling=Wr(t,t.pendingProps),s.return=a;s.sibling=null}return a.child}function wu(t,a){return(t.lanes&a)!==0?!0:(t=t.dependencies,!!(t!==null&&wo(t)))}function L6(t,a,s){switch(a.tag){case 3:Ce(a,a.stateNode.containerInfo),Sa(a,fn,t.memoizedState.cache),ci();break;case 27:case 5:at(a);break;case 4:Ce(a,a.stateNode.containerInfo);break;case 10:Sa(a,a.type,a.memoizedProps.value);break;case 31:if(a.memoizedState!==null)return a.flags|=128,Wc(a),null;break;case 13:var c=a.memoizedState;if(c!==null)return c.dehydrated!==null?(ja(a),a.flags|=128,null):(s&a.child.childLanes)!==0?L1(t,a,s):(ja(a),t=aa(t,a,s),t!==null?t.sibling:null);ja(a);break;case 19:var m=(t.flags&128)!==0;if(c=(s&a.childLanes)!==0,c||(Ki(t,a,s,!1),c=(s&a.childLanes)!==0),m){if(c)return I1(t,a,s);a.flags|=128}if(m=a.memoizedState,m!==null&&(m.rendering=null,m.tail=null,m.lastEffect=null),w(ln,ln.current),c)break;return null;case 22:return a.lanes=0,M1(t,a,s,a.pendingProps);case 24:Sa(a,fn,t.memoizedState.cache)}return aa(t,a,s)}function U1(t,a,s){if(t!==null)if(t.memoizedProps!==a.pendingProps)pn=!0;else{if(!wu(t,s)&&(a.flags&128)===0)return pn=!1,L6(t,a,s);pn=(t.flags&131072)!==0}else pn=!1,pt&&(a.flags&1048576)!==0&&yh(a,qs,a.index);switch(a.lanes=0,a.tag){case 16:e:{var c=a.pendingProps;if(t=fi(a.elementType),a.type=t,typeof t=="function")Mc(t)?(c=gi(t,c),a.tag=1,a=O1(null,a,t,c,s)):(a.tag=0,a=bu(null,a,t,c,s));else{if(t!=null){var m=t.$$typeof;if(m===N){a.tag=11,a=S1(null,a,t,c,s);break e}else if(m===R){a.tag=14,a=N1(null,a,t,c,s);break e}}throw a=ee(t)||t,Error(i(306,a,""))}}return a;case 0:return bu(t,a,a.type,a.pendingProps,s);case 1:return c=a.type,m=gi(c,a.pendingProps),O1(t,a,c,m,s);case 3:e:{if(Ce(a,a.stateNode.containerInfo),t===null)throw Error(i(387));c=a.pendingProps;var E=a.memoizedState;m=E.element,Qc(t,a),Ws(a,c,null,s);var k=a.memoizedState;if(c=k.cache,Sa(a,fn,c),c!==E.cache&&Uc(a,[fn],s,!0),Zs(),c=k.element,E.isDehydrated)if(E={element:c,isDehydrated:!1,cache:k.cache},a.updateQueue.baseState=E,a.memoizedState=E,a.flags&256){a=z1(t,a,c,s);break e}else if(c!==m){m=hr(Error(i(424)),a),Gs(m),a=z1(t,a,c,s);break e}else for(t=a.stateNode.containerInfo,t.nodeType===9?t=t.body:t=t.nodeName==="HTML"?t.ownerDocument.body:t,Qt=yr(t.firstChild),Bn=a,pt=!0,wa=null,gr=!0,s=Mh(a,null,c,s),a.child=s;s;)s.flags=s.flags&-3|4096,s=s.sibling;else{if(ci(),c===m){a=aa(t,a,s);break e}wn(t,a,c,s)}a=a.child}return a;case 26:return Vo(t,a),t===null?(s=Wp(a.type,null,a.pendingProps,null))?a.memoizedState=s:pt||(s=a.type,t=a.pendingProps,c=c0(he.current).createElement(s),c[an]=a,c[Nn]=t,Fn(c,s,t),xn(c),a.stateNode=c):a.memoizedState=Wp(a.type,t.memoizedProps,a.pendingProps,t.memoizedState),null;case 27:return at(a),t===null&&pt&&(c=a.stateNode=Kp(a.type,a.pendingProps,he.current),Bn=a,gr=!0,m=Qt,Ha(a.type)?(sx=m,Qt=yr(c.firstChild)):Qt=m),wn(t,a,a.pendingProps.children,s),Vo(t,a),t===null&&(a.flags|=4194304),a.child;case 5:return t===null&&pt&&((m=c=Qt)&&(c=hy(c,a.type,a.pendingProps,gr),c!==null?(a.stateNode=c,Bn=a,Qt=yr(c.firstChild),gr=!1,m=!0):m=!1),m||Fa(a)),at(a),m=a.type,E=a.pendingProps,k=t!==null?t.memoizedProps:null,c=E.children,tx(m,E)?c=null:k!==null&&tx(m,k)&&(a.flags|=32),a.memoizedState!==null&&(m=eu(t,a,S6,null,null,s),El._currentValue=m),Vo(t,a),wn(t,a,c,s),a.child;case 6:return t===null&&pt&&((t=s=Qt)&&(s=py(s,a.pendingProps,gr),s!==null?(a.stateNode=s,Bn=a,Qt=null,t=!0):t=!1),t||Fa(a)),null;case 13:return L1(t,a,s);case 4:return Ce(a,a.stateNode.containerInfo),c=a.pendingProps,t===null?a.child=pi(a,null,c,s):wn(t,a,c,s),a.child;case 11:return S1(t,a,a.type,a.pendingProps,s);case 7:return wn(t,a,a.pendingProps,s),a.child;case 8:return wn(t,a,a.pendingProps.children,s),a.child;case 12:return wn(t,a,a.pendingProps.children,s),a.child;case 10:return c=a.pendingProps,Sa(a,a.type,c.value),wn(t,a,c.children,s),a.child;case 9:return m=a.type._context,c=a.pendingProps.children,xi(a),m=Dn(m),c=c(m),a.flags|=1,wn(t,a,c,s),a.child;case 14:return N1(t,a,a.type,a.pendingProps,s);case 15:return _1(t,a,a.type,a.pendingProps,s);case 19:return I1(t,a,s);case 31:return z6(t,a,s);case 22:return M1(t,a,s,a.pendingProps);case 24:return xi(a),c=Dn(fn),t===null?(m=qc(),m===null&&(m=Pt,E=Hc(),m.pooledCache=E,E.refCount++,E!==null&&(m.pooledCacheLanes|=s),m=E),a.memoizedState={parent:c,cache:m},Vc(a),Sa(a,fn,m)):((t.lanes&s)!==0&&(Qc(t,a),Ws(a,null,null,s),Zs()),m=t.memoizedState,E=a.memoizedState,m.parent!==c?(m={parent:c,cache:c},a.memoizedState=m,a.lanes===0&&(a.memoizedState=a.updateQueue.baseState=m),Sa(a,fn,c)):(c=E.cache,Sa(a,fn,c),c!==m.cache&&Uc(a,[fn],s,!0))),wn(t,a,a.pendingProps.children,s),a.child;case 29:throw a.pendingProps}throw Error(i(156,a.tag))}function ia(t){t.flags|=4}function Fu(t,a,s,c,m){if((a=(t.mode&32)!==0)&&(a=!1),a){if(t.flags|=16777216,(m&335544128)===m)if(t.stateNode.complete)t.flags|=8192;else if(hp())t.flags|=8192;else throw hi=_o,Gc}else t.flags&=-16777217}function H1(t,a){if(a.type!=="stylesheet"||(a.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!rm(a))if(hp())t.flags|=8192;else throw hi=_o,Gc}function Yo(t,a){a!==null&&(t.flags|=4),t.flags&16384&&(a=t.tag!==22?Ge():536870912,t.lanes|=a,ls|=a)}function al(t,a){if(!pt)switch(t.tailMode){case"hidden":a=t.tail;for(var s=null;a!==null;)a.alternate!==null&&(s=a),a=a.sibling;s===null?t.tail=null:s.sibling=null;break;case"collapsed":s=t.tail;for(var c=null;s!==null;)s.alternate!==null&&(c=s),s=s.sibling;c===null?a||t.tail===null?t.tail=null:t.tail.sibling=null:c.sibling=null}}function Yt(t){var a=t.alternate!==null&&t.alternate.child===t.child,s=0,c=0;if(a)for(var m=t.child;m!==null;)s|=m.lanes|m.childLanes,c|=m.subtreeFlags&65011712,c|=m.flags&65011712,m.return=t,m=m.sibling;else for(m=t.child;m!==null;)s|=m.lanes|m.childLanes,c|=m.subtreeFlags,c|=m.flags,m.return=t,m=m.sibling;return t.subtreeFlags|=c,t.childLanes=s,a}function P6(t,a,s){var c=a.pendingProps;switch(Oc(a),a.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Yt(a),null;case 1:return Yt(a),null;case 3:return s=a.stateNode,c=null,t!==null&&(c=t.memoizedState.cache),a.memoizedState.cache!==c&&(a.flags|=2048),ta(fn),Fe(),s.pendingContext&&(s.context=s.pendingContext,s.pendingContext=null),(t===null||t.child===null)&&(Yi(a)?ia(a):t===null||t.memoizedState.isDehydrated&&(a.flags&256)===0||(a.flags|=1024,Lc())),Yt(a),null;case 26:var m=a.type,E=a.memoizedState;return t===null?(ia(a),E!==null?(Yt(a),H1(a,E)):(Yt(a),Fu(a,m,null,c,s))):E?E!==t.memoizedState?(ia(a),Yt(a),H1(a,E)):(Yt(a),a.flags&=-16777217):(t=t.memoizedProps,t!==c&&ia(a),Yt(a),Fu(a,m,t,c,s)),null;case 27:if(mt(a),s=he.current,m=a.type,t!==null&&a.stateNode!=null)t.memoizedProps!==c&&ia(a);else{if(!c){if(a.stateNode===null)throw Error(i(166));return Yt(a),null}t=W.current,Yi(a)?Ch(a):(t=Kp(m,c,s),a.stateNode=t,ia(a))}return Yt(a),null;case 5:if(mt(a),m=a.type,t!==null&&a.stateNode!=null)t.memoizedProps!==c&&ia(a);else{if(!c){if(a.stateNode===null)throw Error(i(166));return Yt(a),null}if(E=W.current,Yi(a))Ch(a);else{var k=c0(he.current);switch(E){case 1:E=k.createElementNS("http://www.w3.org/2000/svg",m);break;case 2:E=k.createElementNS("http://www.w3.org/1998/Math/MathML",m);break;default:switch(m){case"svg":E=k.createElementNS("http://www.w3.org/2000/svg",m);break;case"math":E=k.createElementNS("http://www.w3.org/1998/Math/MathML",m);break;case"script":E=k.createElement("div"),E.innerHTML="<script><\/script>",E=E.removeChild(E.firstChild);break;case"select":E=typeof c.is=="string"?k.createElement("select",{is:c.is}):k.createElement("select"),c.multiple?E.multiple=!0:c.size&&(E.size=c.size);break;default:E=typeof c.is=="string"?k.createElement(m,{is:c.is}):k.createElement(m)}}E[an]=a,E[Nn]=c;e:for(k=a.child;k!==null;){if(k.tag===5||k.tag===6)E.appendChild(k.stateNode);else if(k.tag!==4&&k.tag!==27&&k.child!==null){k.child.return=k,k=k.child;continue}if(k===a)break e;for(;k.sibling===null;){if(k.return===null||k.return===a)break e;k=k.return}k.sibling.return=k.return,k=k.sibling}a.stateNode=E;e:switch(Fn(E,m,c),m){case"button":case"input":case"select":case"textarea":c=!!c.autoFocus;break e;case"img":c=!0;break e;default:c=!1}c&&ia(a)}}return Yt(a),Fu(a,a.type,t===null?null:t.memoizedProps,a.pendingProps,s),null;case 6:if(t&&a.stateNode!=null)t.memoizedProps!==c&&ia(a);else{if(typeof c!="string"&&a.stateNode===null)throw Error(i(166));if(t=he.current,Yi(a)){if(t=a.stateNode,s=a.memoizedProps,c=null,m=Bn,m!==null)switch(m.tag){case 27:case 5:c=m.memoizedProps}t[an]=a,t=!!(t.nodeValue===s||c!==null&&c.suppressHydrationWarning===!0||Lp(t.nodeValue,s)),t||Fa(a,!0)}else t=c0(t).createTextNode(c),t[an]=a,a.stateNode=t}return Yt(a),null;case 31:if(s=a.memoizedState,t===null||t.memoizedState!==null){if(c=Yi(a),s!==null){if(t===null){if(!c)throw Error(i(318));if(t=a.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(i(557));t[an]=a}else ci(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;Yt(a),t=!1}else s=Lc(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=s),t=!0;if(!t)return a.flags&256?(rr(a),a):(rr(a),null);if((a.flags&128)!==0)throw Error(i(558))}return Yt(a),null;case 13:if(c=a.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(m=Yi(a),c!==null&&c.dehydrated!==null){if(t===null){if(!m)throw Error(i(318));if(m=a.memoizedState,m=m!==null?m.dehydrated:null,!m)throw Error(i(317));m[an]=a}else ci(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;Yt(a),m=!1}else m=Lc(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=m),m=!0;if(!m)return a.flags&256?(rr(a),a):(rr(a),null)}return rr(a),(a.flags&128)!==0?(a.lanes=s,a):(s=c!==null,t=t!==null&&t.memoizedState!==null,s&&(c=a.child,m=null,c.alternate!==null&&c.alternate.memoizedState!==null&&c.alternate.memoizedState.cachePool!==null&&(m=c.alternate.memoizedState.cachePool.pool),E=null,c.memoizedState!==null&&c.memoizedState.cachePool!==null&&(E=c.memoizedState.cachePool.pool),E!==m&&(c.flags|=2048)),s!==t&&s&&(a.child.flags|=8192),Yo(a,a.updateQueue),Yt(a),null);case 4:return Fe(),t===null&&Xu(a.stateNode.containerInfo),Yt(a),null;case 10:return ta(a.type),Yt(a),null;case 19:if(X(ln),c=a.memoizedState,c===null)return Yt(a),null;if(m=(a.flags&128)!==0,E=c.rendering,E===null)if(m)al(c,!1);else{if(en!==0||t!==null&&(t.flags&128)!==0)for(t=a.child;t!==null;){if(E=Ro(t),E!==null){for(a.flags|=128,al(c,!1),t=E.updateQueue,a.updateQueue=t,Yo(a,t),a.subtreeFlags=0,t=s,s=a.child;s!==null;)mh(s,t),s=s.sibling;return w(ln,ln.current&1|2),pt&&Jr(a,c.treeForkCount),a.child}t=t.sibling}c.tail!==null&&Ye()>Jo&&(a.flags|=128,m=!0,al(c,!1),a.lanes=4194304)}else{if(!m)if(t=Ro(E),t!==null){if(a.flags|=128,m=!0,t=t.updateQueue,a.updateQueue=t,Yo(a,t),al(c,!0),c.tail===null&&c.tailMode==="hidden"&&!E.alternate&&!pt)return Yt(a),null}else 2*Ye()-c.renderingStartTime>Jo&&s!==536870912&&(a.flags|=128,m=!0,al(c,!1),a.lanes=4194304);c.isBackwards?(E.sibling=a.child,a.child=E):(t=c.last,t!==null?t.sibling=E:a.child=E,c.last=E)}return c.tail!==null?(t=c.tail,c.rendering=t,c.tail=t.sibling,c.renderingStartTime=Ye(),t.sibling=null,s=ln.current,w(ln,m?s&1|2:s&1),pt&&Jr(a,c.treeForkCount),t):(Yt(a),null);case 22:case 23:return rr(a),Zc(),c=a.memoizedState!==null,t!==null?t.memoizedState!==null!==c&&(a.flags|=8192):c&&(a.flags|=8192),c?(s&536870912)!==0&&(a.flags&128)===0&&(Yt(a),a.subtreeFlags&6&&(a.flags|=8192)):Yt(a),s=a.updateQueue,s!==null&&Yo(a,s.retryQueue),s=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(s=t.memoizedState.cachePool.pool),c=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(c=a.memoizedState.cachePool.pool),c!==s&&(a.flags|=2048),t!==null&&X(di),null;case 24:return s=null,t!==null&&(s=t.memoizedState.cache),a.memoizedState.cache!==s&&(a.flags|=2048),ta(fn),Yt(a),null;case 25:return null;case 30:return null}throw Error(i(156,a.tag))}function I6(t,a){switch(Oc(a),a.tag){case 1:return t=a.flags,t&65536?(a.flags=t&-65537|128,a):null;case 3:return ta(fn),Fe(),t=a.flags,(t&65536)!==0&&(t&128)===0?(a.flags=t&-65537|128,a):null;case 26:case 27:case 5:return mt(a),null;case 31:if(a.memoizedState!==null){if(rr(a),a.alternate===null)throw Error(i(340));ci()}return t=a.flags,t&65536?(a.flags=t&-65537|128,a):null;case 13:if(rr(a),t=a.memoizedState,t!==null&&t.dehydrated!==null){if(a.alternate===null)throw Error(i(340));ci()}return t=a.flags,t&65536?(a.flags=t&-65537|128,a):null;case 19:return X(ln),null;case 4:return Fe(),null;case 10:return ta(a.type),null;case 22:case 23:return rr(a),Zc(),t!==null&&X(di),t=a.flags,t&65536?(a.flags=t&-65537|128,a):null;case 24:return ta(fn),null;case 25:return null;default:return null}}function $1(t,a){switch(Oc(a),a.tag){case 3:ta(fn),Fe();break;case 26:case 27:case 5:mt(a);break;case 4:Fe();break;case 31:a.memoizedState!==null&&rr(a);break;case 13:rr(a);break;case 19:X(ln);break;case 10:ta(a.type);break;case 22:case 23:rr(a),Zc(),t!==null&&X(di);break;case 24:ta(fn)}}function il(t,a){try{var s=a.updateQueue,c=s!==null?s.lastEffect:null;if(c!==null){var m=c.next;s=m;do{if((s.tag&t)===t){c=void 0;var E=s.create,k=s.inst;c=E(),k.destroy=c}s=s.next}while(s!==m)}}catch(_){jt(a,a.return,_)}}function Ra(t,a,s){try{var c=a.updateQueue,m=c!==null?c.lastEffect:null;if(m!==null){var E=m.next;c=E;do{if((c.tag&t)===t){var k=c.inst,_=k.destroy;if(_!==void 0){k.destroy=void 0,m=a;var H=s,te=_;try{te()}catch(ce){jt(m,H,ce)}}}c=c.next}while(c!==E)}}catch(ce){jt(a,a.return,ce)}}function q1(t){var a=t.updateQueue;if(a!==null){var s=t.stateNode;try{Th(a,s)}catch(c){jt(t,t.return,c)}}}function G1(t,a,s){s.props=gi(t.type,t.memoizedProps),s.state=t.memoizedState;try{s.componentWillUnmount()}catch(c){jt(t,a,c)}}function sl(t,a){try{var s=t.ref;if(s!==null){switch(t.tag){case 26:case 27:case 5:var c=t.stateNode;break;case 30:c=t.stateNode;break;default:c=t.stateNode}typeof s=="function"?t.refCleanup=s(c):s.current=c}}catch(m){jt(t,a,m)}}function Pr(t,a){var s=t.ref,c=t.refCleanup;if(s!==null)if(typeof c=="function")try{c()}catch(m){jt(t,a,m)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof s=="function")try{s(null)}catch(m){jt(t,a,m)}else s.current=null}function V1(t){var a=t.type,s=t.memoizedProps,c=t.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(m){jt(t,t.return,m)}}function Su(t,a,s){try{var c=t.stateNode;oy(c,t.type,s,a),c[Nn]=a}catch(m){jt(t,t.return,m)}}function Q1(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&Ha(t.type)||t.tag===4}function Nu(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||Q1(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.tag===27&&Ha(t.type)||t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function _u(t,a,s){var c=t.tag;if(c===5||c===6)t=t.stateNode,a?(s.nodeType===9?s.body:s.nodeName==="HTML"?s.ownerDocument.body:s).insertBefore(t,a):(a=s.nodeType===9?s.body:s.nodeName==="HTML"?s.ownerDocument.body:s,a.appendChild(t),s=s._reactRootContainer,s!=null||a.onclick!==null||(a.onclick=ve));else if(c!==4&&(c===27&&Ha(t.type)&&(s=t.stateNode,a=null),t=t.child,t!==null))for(_u(t,a,s),t=t.sibling;t!==null;)_u(t,a,s),t=t.sibling}function Ko(t,a,s){var c=t.tag;if(c===5||c===6)t=t.stateNode,a?s.insertBefore(t,a):s.appendChild(t);else if(c!==4&&(c===27&&Ha(t.type)&&(s=t.stateNode),t=t.child,t!==null))for(Ko(t,a,s),t=t.sibling;t!==null;)Ko(t,a,s),t=t.sibling}function Y1(t){var a=t.stateNode,s=t.memoizedProps;try{for(var c=t.type,m=a.attributes;m.length;)a.removeAttributeNode(m[0]);Fn(a,c,s),a[an]=t,a[Nn]=s}catch(E){jt(t,t.return,E)}}var sa=!1,mn=!1,Mu=!1,K1=typeof WeakSet=="function"?WeakSet:Set,An=null;function U6(t,a){if(t=t.containerInfo,Ju=m0,t=lh(t),Bc(t)){if("selectionStart"in t)var s={start:t.selectionStart,end:t.selectionEnd};else e:{s=(s=t.ownerDocument)&&s.defaultView||window;var c=s.getSelection&&s.getSelection();if(c&&c.rangeCount!==0){s=c.anchorNode;var m=c.anchorOffset,E=c.focusNode;c=c.focusOffset;try{s.nodeType,E.nodeType}catch{s=null;break e}var k=0,_=-1,H=-1,te=0,ce=0,de=t,ne=null;t:for(;;){for(var ae;de!==s||m!==0&&de.nodeType!==3||(_=k+m),de!==E||c!==0&&de.nodeType!==3||(H=k+c),de.nodeType===3&&(k+=de.nodeValue.length),(ae=de.firstChild)!==null;)ne=de,de=ae;for(;;){if(de===t)break t;if(ne===s&&++te===m&&(_=k),ne===E&&++ce===c&&(H=k),(ae=de.nextSibling)!==null)break;de=ne,ne=de.parentNode}de=ae}s=_===-1||H===-1?null:{start:_,end:H}}else s=null}s=s||{start:0,end:0}}else s=null;for(ex={focusedElem:t,selectionRange:s},m0=!1,An=a;An!==null;)if(a=An,t=a.child,(a.subtreeFlags&1028)!==0&&t!==null)t.return=a,An=t;else for(;An!==null;){switch(a=An,E=a.alternate,t=a.flags,a.tag){case 0:if((t&4)!==0&&(t=a.updateQueue,t=t!==null?t.events:null,t!==null))for(s=0;s<t.length;s++)m=t[s],m.ref.impl=m.nextImpl;break;case 11:case 15:break;case 1:if((t&1024)!==0&&E!==null){t=void 0,s=a,m=E.memoizedProps,E=E.memoizedState,c=s.stateNode;try{var Te=gi(s.type,m);t=c.getSnapshotBeforeUpdate(Te,E),c.__reactInternalSnapshotBeforeUpdate=t}catch($e){jt(s,s.return,$e)}}break;case 3:if((t&1024)!==0){if(t=a.stateNode.containerInfo,s=t.nodeType,s===9)rx(t);else if(s===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":rx(t);break;default:t.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((t&1024)!==0)throw Error(i(163))}if(t=a.sibling,t!==null){t.return=a.return,An=t;break}An=a.return}}function X1(t,a,s){var c=s.flags;switch(s.tag){case 0:case 11:case 15:oa(t,s),c&4&&il(5,s);break;case 1:if(oa(t,s),c&4)if(t=s.stateNode,a===null)try{t.componentDidMount()}catch(k){jt(s,s.return,k)}else{var m=gi(s.type,a.memoizedProps);a=a.memoizedState;try{t.componentDidUpdate(m,a,t.__reactInternalSnapshotBeforeUpdate)}catch(k){jt(s,s.return,k)}}c&64&&q1(s),c&512&&sl(s,s.return);break;case 3:if(oa(t,s),c&64&&(t=s.updateQueue,t!==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{Th(t,a)}catch(k){jt(s,s.return,k)}}break;case 27:a===null&&c&4&&Y1(s);case 26:case 5:oa(t,s),a===null&&c&4&&V1(s),c&512&&sl(s,s.return);break;case 12:oa(t,s);break;case 31:oa(t,s),c&4&&J1(t,s);break;case 13:oa(t,s),c&4&&ep(t,s),c&64&&(t=s.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(s=X6.bind(null,s),my(t,s))));break;case 22:if(c=s.memoizedState!==null||sa,!c){a=a!==null&&a.memoizedState!==null||mn,m=sa;var E=mn;sa=c,(mn=a)&&!E?ca(t,s,(s.subtreeFlags&8772)!==0):oa(t,s),sa=m,mn=E}break;case 30:break;default:oa(t,s)}}function Z1(t){var a=t.alternate;a!==null&&(t.alternate=null,Z1(a)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(a=t.stateNode,a!==null&&Ns(a)),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}var Zt=null,$n=!1;function la(t,a,s){for(s=s.child;s!==null;)W1(t,a,s),s=s.sibling}function W1(t,a,s){if(Bt&&typeof Bt.onCommitFiberUnmount=="function")try{Bt.onCommitFiberUnmount(Gt,s)}catch{}switch(s.tag){case 26:mn||Pr(s,a),la(t,a,s),s.memoizedState?s.memoizedState.count--:s.stateNode&&(s=s.stateNode,s.parentNode.removeChild(s));break;case 27:mn||Pr(s,a);var c=Zt,m=$n;Ha(s.type)&&(Zt=s.stateNode,$n=!1),la(t,a,s),pl(s.stateNode),Zt=c,$n=m;break;case 5:mn||Pr(s,a);case 6:if(c=Zt,m=$n,Zt=null,la(t,a,s),Zt=c,$n=m,Zt!==null)if($n)try{(Zt.nodeType===9?Zt.body:Zt.nodeName==="HTML"?Zt.ownerDocument.body:Zt).removeChild(s.stateNode)}catch(E){jt(s,a,E)}else try{Zt.removeChild(s.stateNode)}catch(E){jt(s,a,E)}break;case 18:Zt!==null&&($n?(t=Zt,qp(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,s.stateNode),ps(t)):qp(Zt,s.stateNode));break;case 4:c=Zt,m=$n,Zt=s.stateNode.containerInfo,$n=!0,la(t,a,s),Zt=c,$n=m;break;case 0:case 11:case 14:case 15:Ra(2,s,a),mn||Ra(4,s,a),la(t,a,s);break;case 1:mn||(Pr(s,a),c=s.stateNode,typeof c.componentWillUnmount=="function"&&G1(s,a,c)),la(t,a,s);break;case 21:la(t,a,s);break;case 22:mn=(c=mn)||s.memoizedState!==null,la(t,a,s),mn=c;break;default:la(t,a,s)}}function J1(t,a){if(a.memoizedState===null&&(t=a.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{ps(t)}catch(s){jt(a,a.return,s)}}}function ep(t,a){if(a.memoizedState===null&&(t=a.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{ps(t)}catch(s){jt(a,a.return,s)}}function H6(t){switch(t.tag){case 31:case 13:case 19:var a=t.stateNode;return a===null&&(a=t.stateNode=new K1),a;case 22:return t=t.stateNode,a=t._retryCache,a===null&&(a=t._retryCache=new K1),a;default:throw Error(i(435,t.tag))}}function Xo(t,a){var s=H6(t);a.forEach(function(c){if(!s.has(c)){s.add(c);var m=Z6.bind(null,t,c);c.then(m,m)}})}function qn(t,a){var s=a.deletions;if(s!==null)for(var c=0;c<s.length;c++){var m=s[c],E=t,k=a,_=k;e:for(;_!==null;){switch(_.tag){case 27:if(Ha(_.type)){Zt=_.stateNode,$n=!1;break e}break;case 5:Zt=_.stateNode,$n=!1;break e;case 3:case 4:Zt=_.stateNode.containerInfo,$n=!0;break e}_=_.return}if(Zt===null)throw Error(i(160));W1(E,k,m),Zt=null,$n=!1,E=m.alternate,E!==null&&(E.return=null),m.return=null}if(a.subtreeFlags&13886)for(a=a.child;a!==null;)tp(a,t),a=a.sibling}var _r=null;function tp(t,a){var s=t.alternate,c=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:qn(a,t),Gn(t),c&4&&(Ra(3,t,t.return),il(3,t),Ra(5,t,t.return));break;case 1:qn(a,t),Gn(t),c&512&&(mn||s===null||Pr(s,s.return)),c&64&&sa&&(t=t.updateQueue,t!==null&&(c=t.callbacks,c!==null&&(s=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=s===null?c:s.concat(c))));break;case 26:var m=_r;if(qn(a,t),Gn(t),c&512&&(mn||s===null||Pr(s,s.return)),c&4){var E=s!==null?s.memoizedState:null;if(c=t.memoizedState,s===null)if(c===null)if(t.stateNode===null){e:{c=t.type,s=t.memoizedProps,m=m.ownerDocument||m;t:switch(c){case"title":E=m.getElementsByTagName("title")[0],(!E||E[ti]||E[an]||E.namespaceURI==="http://www.w3.org/2000/svg"||E.hasAttribute("itemprop"))&&(E=m.createElement(c),m.head.insertBefore(E,m.querySelector("head > title"))),Fn(E,c,s),E[an]=t,xn(E),c=E;break e;case"link":var k=tm("link","href",m).get(c+(s.href||""));if(k){for(var _=0;_<k.length;_++)if(E=k[_],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)){k.splice(_,1);break t}}E=m.createElement(c),Fn(E,c,s),m.head.appendChild(E);break;case"meta":if(k=tm("meta","content",m).get(c+(s.content||""))){for(_=0;_<k.length;_++)if(E=k[_],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)){k.splice(_,1);break t}}E=m.createElement(c),Fn(E,c,s),m.head.appendChild(E);break;default:throw Error(i(468,c))}E[an]=t,xn(E),c=E}t.stateNode=c}else nm(m,t.type,t.stateNode);else t.stateNode=em(m,c,t.memoizedProps);else E!==c?(E===null?s.stateNode!==null&&(s=s.stateNode,s.parentNode.removeChild(s)):E.count--,c===null?nm(m,t.type,t.stateNode):em(m,c,t.memoizedProps)):c===null&&t.stateNode!==null&&Su(t,t.memoizedProps,s.memoizedProps)}break;case 27:qn(a,t),Gn(t),c&512&&(mn||s===null||Pr(s,s.return)),s!==null&&c&4&&Su(t,t.memoizedProps,s.memoizedProps);break;case 5:if(qn(a,t),Gn(t),c&512&&(mn||s===null||Pr(s,s.return)),t.flags&32){m=t.stateNode;try{qe(m,"")}catch(Te){jt(t,t.return,Te)}}c&4&&t.stateNode!=null&&(m=t.memoizedProps,Su(t,m,s!==null?s.memoizedProps:m)),c&1024&&(Mu=!0);break;case 6:if(qn(a,t),Gn(t),c&4){if(t.stateNode===null)throw Error(i(162));c=t.memoizedProps,s=t.stateNode;try{s.nodeValue=c}catch(Te){jt(t,t.return,Te)}}break;case 3:if(d0=null,m=_r,_r=u0(a.containerInfo),qn(a,t),_r=m,Gn(t),c&4&&s!==null&&s.memoizedState.isDehydrated)try{ps(a.containerInfo)}catch(Te){jt(t,t.return,Te)}Mu&&(Mu=!1,np(t));break;case 4:c=_r,_r=u0(t.stateNode.containerInfo),qn(a,t),Gn(t),_r=c;break;case 12:qn(a,t),Gn(t);break;case 31:qn(a,t),Gn(t),c&4&&(c=t.updateQueue,c!==null&&(t.updateQueue=null,Xo(t,c)));break;case 13:qn(a,t),Gn(t),t.child.flags&8192&&t.memoizedState!==null!=(s!==null&&s.memoizedState!==null)&&(Wo=Ye()),c&4&&(c=t.updateQueue,c!==null&&(t.updateQueue=null,Xo(t,c)));break;case 22:m=t.memoizedState!==null;var H=s!==null&&s.memoizedState!==null,te=sa,ce=mn;if(sa=te||m,mn=ce||H,qn(a,t),mn=ce,sa=te,Gn(t),c&8192)e:for(a=t.stateNode,a._visibility=m?a._visibility&-2:a._visibility|1,m&&(s===null||H||sa||mn||Ei(t)),s=null,a=t;;){if(a.tag===5||a.tag===26){if(s===null){H=s=a;try{if(E=H.stateNode,m)k=E.style,typeof k.setProperty=="function"?k.setProperty("display","none","important"):k.display="none";else{_=H.stateNode;var de=H.memoizedProps.style,ne=de!=null&&de.hasOwnProperty("display")?de.display:null;_.style.display=ne==null||typeof ne=="boolean"?"":(""+ne).trim()}}catch(Te){jt(H,H.return,Te)}}}else if(a.tag===6){if(s===null){H=a;try{H.stateNode.nodeValue=m?"":H.memoizedProps}catch(Te){jt(H,H.return,Te)}}}else if(a.tag===18){if(s===null){H=a;try{var ae=H.stateNode;m?Gp(ae,!0):Gp(H.stateNode,!1)}catch(Te){jt(H,H.return,Te)}}}else if((a.tag!==22&&a.tag!==23||a.memoizedState===null||a===t)&&a.child!==null){a.child.return=a,a=a.child;continue}if(a===t)break e;for(;a.sibling===null;){if(a.return===null||a.return===t)break e;s===a&&(s=null),a=a.return}s===a&&(s=null),a.sibling.return=a.return,a=a.sibling}c&4&&(c=t.updateQueue,c!==null&&(s=c.retryQueue,s!==null&&(c.retryQueue=null,Xo(t,s))));break;case 19:qn(a,t),Gn(t),c&4&&(c=t.updateQueue,c!==null&&(t.updateQueue=null,Xo(t,c)));break;case 30:break;case 21:break;default:qn(a,t),Gn(t)}}function Gn(t){var a=t.flags;if(a&2){try{for(var s,c=t.return;c!==null;){if(Q1(c)){s=c;break}c=c.return}if(s==null)throw Error(i(160));switch(s.tag){case 27:var m=s.stateNode,E=Nu(t);Ko(t,E,m);break;case 5:var k=s.stateNode;s.flags&32&&(qe(k,""),s.flags&=-33);var _=Nu(t);Ko(t,_,k);break;case 3:case 4:var H=s.stateNode.containerInfo,te=Nu(t);_u(t,te,H);break;default:throw Error(i(161))}}catch(ce){jt(t,t.return,ce)}t.flags&=-3}a&4096&&(t.flags&=-4097)}function np(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var a=t;np(a),a.tag===5&&a.flags&1024&&a.stateNode.reset(),t=t.sibling}}function oa(t,a){if(a.subtreeFlags&8772)for(a=a.child;a!==null;)X1(t,a.alternate,a),a=a.sibling}function Ei(t){for(t=t.child;t!==null;){var a=t;switch(a.tag){case 0:case 11:case 14:case 15:Ra(4,a,a.return),Ei(a);break;case 1:Pr(a,a.return);var s=a.stateNode;typeof s.componentWillUnmount=="function"&&G1(a,a.return,s),Ei(a);break;case 27:pl(a.stateNode);case 26:case 5:Pr(a,a.return),Ei(a);break;case 22:a.memoizedState===null&&Ei(a);break;case 30:Ei(a);break;default:Ei(a)}t=t.sibling}}function ca(t,a,s){for(s=s&&(a.subtreeFlags&8772)!==0,a=a.child;a!==null;){var c=a.alternate,m=t,E=a,k=E.flags;switch(E.tag){case 0:case 11:case 15:ca(m,E,s),il(4,E);break;case 1:if(ca(m,E,s),c=E,m=c.stateNode,typeof m.componentDidMount=="function")try{m.componentDidMount()}catch(te){jt(c,c.return,te)}if(c=E,m=c.updateQueue,m!==null){var _=c.stateNode;try{var H=m.shared.hiddenCallbacks;if(H!==null)for(m.shared.hiddenCallbacks=null,m=0;m<H.length;m++)jh(H[m],_)}catch(te){jt(c,c.return,te)}}s&&k&64&&q1(E),sl(E,E.return);break;case 27:Y1(E);case 26:case 5:ca(m,E,s),s&&c===null&&k&4&&V1(E),sl(E,E.return);break;case 12:ca(m,E,s);break;case 31:ca(m,E,s),s&&k&4&&J1(m,E);break;case 13:ca(m,E,s),s&&k&4&&ep(m,E);break;case 22:E.memoizedState===null&&ca(m,E,s),sl(E,E.return);break;case 30:break;default:ca(m,E,s)}a=a.sibling}}function ju(t,a){var s=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(s=t.memoizedState.cachePool.pool),t=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(t=a.memoizedState.cachePool.pool),t!==s&&(t!=null&&t.refCount++,s!=null&&Vs(s))}function Tu(t,a){t=null,a.alternate!==null&&(t=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==t&&(a.refCount++,t!=null&&Vs(t))}function Mr(t,a,s,c){if(a.subtreeFlags&10256)for(a=a.child;a!==null;)rp(t,a,s,c),a=a.sibling}function rp(t,a,s,c){var m=a.flags;switch(a.tag){case 0:case 11:case 15:Mr(t,a,s,c),m&2048&&il(9,a);break;case 1:Mr(t,a,s,c);break;case 3:Mr(t,a,s,c),m&2048&&(t=null,a.alternate!==null&&(t=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==t&&(a.refCount++,t!=null&&Vs(t)));break;case 12:if(m&2048){Mr(t,a,s,c),t=a.stateNode;try{var E=a.memoizedProps,k=E.id,_=E.onPostCommit;typeof _=="function"&&_(k,a.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(H){jt(a,a.return,H)}}else Mr(t,a,s,c);break;case 31:Mr(t,a,s,c);break;case 13:Mr(t,a,s,c);break;case 23:break;case 22:E=a.stateNode,k=a.alternate,a.memoizedState!==null?E._visibility&2?Mr(t,a,s,c):ll(t,a):E._visibility&2?Mr(t,a,s,c):(E._visibility|=2,as(t,a,s,c,(a.subtreeFlags&10256)!==0||!1)),m&2048&&ju(k,a);break;case 24:Mr(t,a,s,c),m&2048&&Tu(a.alternate,a);break;default:Mr(t,a,s,c)}}function as(t,a,s,c,m){for(m=m&&((a.subtreeFlags&10256)!==0||!1),a=a.child;a!==null;){var E=t,k=a,_=s,H=c,te=k.flags;switch(k.tag){case 0:case 11:case 15:as(E,k,_,H,m),il(8,k);break;case 23:break;case 22:var ce=k.stateNode;k.memoizedState!==null?ce._visibility&2?as(E,k,_,H,m):ll(E,k):(ce._visibility|=2,as(E,k,_,H,m)),m&&te&2048&&ju(k.alternate,k);break;case 24:as(E,k,_,H,m),m&&te&2048&&Tu(k.alternate,k);break;default:as(E,k,_,H,m)}a=a.sibling}}function ll(t,a){if(a.subtreeFlags&10256)for(a=a.child;a!==null;){var s=t,c=a,m=c.flags;switch(c.tag){case 22:ll(s,c),m&2048&&ju(c.alternate,c);break;case 24:ll(s,c),m&2048&&Tu(c.alternate,c);break;default:ll(s,c)}a=a.sibling}}var ol=8192;function is(t,a,s){if(t.subtreeFlags&ol)for(t=t.child;t!==null;)ap(t,a,s),t=t.sibling}function ap(t,a,s){switch(t.tag){case 26:is(t,a,s),t.flags&ol&&t.memoizedState!==null&&Fy(s,_r,t.memoizedState,t.memoizedProps);break;case 5:is(t,a,s);break;case 3:case 4:var c=_r;_r=u0(t.stateNode.containerInfo),is(t,a,s),_r=c;break;case 22:t.memoizedState===null&&(c=t.alternate,c!==null&&c.memoizedState!==null?(c=ol,ol=16777216,is(t,a,s),ol=c):is(t,a,s));break;default:is(t,a,s)}}function ip(t){var a=t.alternate;if(a!==null&&(t=a.child,t!==null)){a.child=null;do a=t.sibling,t.sibling=null,t=a;while(t!==null)}}function cl(t){var a=t.deletions;if((t.flags&16)!==0){if(a!==null)for(var s=0;s<a.length;s++){var c=a[s];An=c,lp(c,t)}ip(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)sp(t),t=t.sibling}function sp(t){switch(t.tag){case 0:case 11:case 15:cl(t),t.flags&2048&&Ra(9,t,t.return);break;case 3:cl(t);break;case 12:cl(t);break;case 22:var a=t.stateNode;t.memoizedState!==null&&a._visibility&2&&(t.return===null||t.return.tag!==13)?(a._visibility&=-3,Zo(t)):cl(t);break;default:cl(t)}}function Zo(t){var a=t.deletions;if((t.flags&16)!==0){if(a!==null)for(var s=0;s<a.length;s++){var c=a[s];An=c,lp(c,t)}ip(t)}for(t=t.child;t!==null;){switch(a=t,a.tag){case 0:case 11:case 15:Ra(8,a,a.return),Zo(a);break;case 22:s=a.stateNode,s._visibility&2&&(s._visibility&=-3,Zo(a));break;default:Zo(a)}t=t.sibling}}function lp(t,a){for(;An!==null;){var s=An;switch(s.tag){case 0:case 11:case 15:Ra(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:Vs(s.memoizedState.cache)}if(c=s.child,c!==null)c.return=s,An=c;else e:for(s=t;An!==null;){c=An;var m=c.sibling,E=c.return;if(Z1(c),c===s){An=null;break e}if(m!==null){m.return=E,An=m;break e}An=E}}}var $6={getCacheForType:function(t){var a=Dn(fn),s=a.data.get(t);return s===void 0&&(s=t(),a.data.set(t,s)),s},cacheSignal:function(){return Dn(fn).controller.signal}},q6=typeof WeakMap=="function"?WeakMap:Map,Dt=0,Pt=null,lt=null,dt=0,Mt=0,ar=null,Oa=!1,ss=!1,Ru=!1,ua=0,en=0,za=0,yi=0,Ou=0,ir=0,ls=0,ul=null,Vn=null,zu=!1,Wo=0,op=0,Jo=1/0,e0=null,La=null,En=0,Pa=null,os=null,xa=0,Lu=0,Pu=null,cp=null,xl=0,Iu=null;function sr(){return(Dt&2)!==0&&dt!==0?dt&-dt:P.T!==null?Vu():Ti()}function up(){if(ir===0)if((dt&536870912)===0||pt){var t=St;St<<=1,(St&3932160)===0&&(St=262144),ir=t}else ir=536870912;return t=nr.current,t!==null&&(t.flags|=32),ir}function Qn(t,a,s){(t===Pt&&(Mt===2||Mt===9)||t.cancelPendingCommit!==null)&&(cs(t,0),Ia(t,dt,ir,!1)),Ft(t,s),((Dt&2)===0||t!==Pt)&&(t===Pt&&((Dt&2)===0&&(yi|=s),en===4&&Ia(t,dt,ir,!1)),Ir(t))}function xp(t,a,s){if((Dt&6)!==0)throw Error(i(327));var c=!s&&(a&127)===0&&(a&t.expiredLanes)===0||ie(t,a),m=c?Q6(t,a):Hu(t,a,!0),E=c;do{if(m===0){ss&&!c&&Ia(t,a,0,!1);break}else{if(s=t.current.alternate,E&&!G6(s)){m=Hu(t,a,!1),E=!1;continue}if(m===2){if(E=a,t.errorRecoveryDisabledLanes&E)var k=0;else k=t.pendingLanes&-536870913,k=k!==0?k:k&536870912?536870912:0;if(k!==0){a=k;e:{var _=t;m=ul;var H=_.current.memoizedState.isDehydrated;if(H&&(cs(_,k).flags|=256),k=Hu(_,k,!1),k!==2){if(Ru&&!H){_.errorRecoveryDisabledLanes|=E,yi|=E,m=4;break e}E=Vn,Vn=m,E!==null&&(Vn===null?Vn=E:Vn.push.apply(Vn,E))}m=k}if(E=!1,m!==2)continue}}if(m===1){cs(t,0),Ia(t,a,0,!0);break}e:{switch(c=t,E=m,E){case 0:case 1:throw Error(i(345));case 4:if((a&4194048)!==a)break;case 6:Ia(c,a,ir,!Oa);break e;case 2:Vn=null;break;case 3:case 5:break;default:throw Error(i(329))}if((a&62914560)===a&&(m=Wo+300-Ye(),10<m)){if(Ia(c,a,ir,!Oa),U(c,0,!0)!==0)break e;xa=a,c.timeoutHandle=Hp(dp.bind(null,c,s,Vn,e0,zu,a,ir,yi,ls,Oa,E,"Throttled",-0,0),m);break e}dp(c,s,Vn,e0,zu,a,ir,yi,ls,Oa,E,null,-0,0)}}break}while(!0);Ir(t)}function dp(t,a,s,c,m,E,k,_,H,te,ce,de,ne,ae){if(t.timeoutHandle=-1,de=a.subtreeFlags,de&8192||(de&16785408)===16785408){de={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:ve},ap(a,E,de);var Te=(E&62914560)===E?Wo-Ye():(E&4194048)===E?op-Ye():0;if(Te=Sy(de,Te),Te!==null){xa=E,t.cancelPendingCommit=Te(bp.bind(null,t,a,E,s,c,m,k,_,H,ce,de,null,ne,ae)),Ia(t,E,k,!te);return}}bp(t,a,E,s,c,m,k,_,H)}function G6(t){for(var a=t;;){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 m=s[c],E=m.getSnapshot;m=m.value;try{if(!er(E(),m))return!1}catch{return!1}}if(s=a.child,a.subtreeFlags&16384&&s!==null)s.return=a,a=s;else{if(a===t)break;for(;a.sibling===null;){if(a.return===null||a.return===t)return!0;a=a.return}a.sibling.return=a.return,a=a.sibling}}return!0}function Ia(t,a,s,c){a&=~Ou,a&=~yi,t.suspendedLanes|=a,t.pingedLanes&=~a,c&&(t.warmLanes|=a),c=t.expirationTimes;for(var m=a;0<m;){var E=31-re(m),k=1<<E;c[E]=-1,m&=~k}s!==0&&Se(t,s,a)}function t0(){return(Dt&6)===0?(dl(0),!1):!0}function Uu(){if(lt!==null){if(Mt===0)var t=lt.return;else t=lt,ea=ui=null,ru(t),Ji=null,Ys=0,t=lt;for(;t!==null;)$1(t.alternate,t),t=t.return;lt=null}}function cs(t,a){var s=t.timeoutHandle;s!==-1&&(t.timeoutHandle=-1,xy(s)),s=t.cancelPendingCommit,s!==null&&(t.cancelPendingCommit=null,s()),xa=0,Uu(),Pt=t,lt=s=Wr(t.current,null),dt=a,Mt=0,ar=null,Oa=!1,ss=ie(t,a),Ru=!1,ls=ir=Ou=yi=za=en=0,Vn=ul=null,zu=!1,(a&8)!==0&&(a|=a&32);var c=t.entangledLanes;if(c!==0)for(t=t.entanglements,c&=a;0<c;){var m=31-re(c),E=1<<m;a|=t[m],c&=~E}return ua=a,vo(),s}function fp(t,a){Je=null,P.H=nl,a===Wi||a===No?(a=Sh(),Mt=3):a===Gc?(a=Sh(),Mt=4):Mt=a===yu?8:a!==null&&typeof a=="object"&&typeof a.then=="function"?6:1,ar=a,lt===null&&(en=1,qo(t,hr(a,t.current)))}function hp(){var t=nr.current;return t===null?!0:(dt&4194048)===dt?Er===null:(dt&62914560)===dt||(dt&536870912)!==0?t===Er:!1}function pp(){var t=P.H;return P.H=nl,t===null?nl:t}function mp(){var t=P.A;return P.A=$6,t}function n0(){en=4,Oa||(dt&4194048)!==dt&&nr.current!==null||(ss=!0),(za&134217727)===0&&(yi&134217727)===0||Pt===null||Ia(Pt,dt,ir,!1)}function Hu(t,a,s){var c=Dt;Dt|=2;var m=pp(),E=mp();(Pt!==t||dt!==a)&&(e0=null,cs(t,a)),a=!1;var k=en;e:do try{if(Mt!==0&<!==null){var _=lt,H=ar;switch(Mt){case 8:Uu(),k=6;break e;case 3:case 2:case 9:case 6:nr.current===null&&(a=!0);var te=Mt;if(Mt=0,ar=null,us(t,_,H,te),s&&ss){k=0;break e}break;default:te=Mt,Mt=0,ar=null,us(t,_,H,te)}}V6(),k=en;break}catch(ce){fp(t,ce)}while(!0);return a&&t.shellSuspendCounter++,ea=ui=null,Dt=c,P.H=m,P.A=E,lt===null&&(Pt=null,dt=0,vo()),k}function V6(){for(;lt!==null;)gp(lt)}function Q6(t,a){var s=Dt;Dt|=2;var c=pp(),m=mp();Pt!==t||dt!==a?(e0=null,Jo=Ye()+500,cs(t,a)):ss=ie(t,a);e:do try{if(Mt!==0&<!==null){a=lt;var E=ar;t:switch(Mt){case 1:Mt=0,ar=null,us(t,a,E,1);break;case 2:case 9:if(wh(E)){Mt=0,ar=null,Ep(a);break}a=function(){Mt!==2&&Mt!==9||Pt!==t||(Mt=7),Ir(t)},E.then(a,a);break e;case 3:Mt=7;break e;case 4:Mt=5;break e;case 7:wh(E)?(Mt=0,ar=null,Ep(a)):(Mt=0,ar=null,us(t,a,E,7));break;case 5:var k=null;switch(lt.tag){case 26:k=lt.memoizedState;case 5:case 27:var _=lt;if(k?rm(k):_.stateNode.complete){Mt=0,ar=null;var H=_.sibling;if(H!==null)lt=H;else{var te=_.return;te!==null?(lt=te,r0(te)):lt=null}break t}}Mt=0,ar=null,us(t,a,E,5);break;case 6:Mt=0,ar=null,us(t,a,E,6);break;case 8:Uu(),en=6;break e;default:throw Error(i(462))}}Y6();break}catch(ce){fp(t,ce)}while(!0);return ea=ui=null,P.H=c,P.A=m,Dt=s,lt!==null?0:(Pt=null,dt=0,vo(),en)}function Y6(){for(;lt!==null&&!cn();)gp(lt)}function gp(t){var a=U1(t.alternate,t,ua);t.memoizedProps=t.pendingProps,a===null?r0(t):lt=a}function Ep(t){var a=t,s=a.alternate;switch(a.tag){case 15:case 0:a=R1(s,a,a.pendingProps,a.type,void 0,dt);break;case 11:a=R1(s,a,a.pendingProps,a.type.render,a.ref,dt);break;case 5:ru(a);default:$1(s,a),a=lt=mh(a,ua),a=U1(s,a,ua)}t.memoizedProps=t.pendingProps,a===null?r0(t):lt=a}function us(t,a,s,c){ea=ui=null,ru(a),Ji=null,Ys=0;var m=a.return;try{if(O6(t,m,a,s,dt)){en=1,qo(t,hr(s,t.current)),lt=null;return}}catch(E){if(m!==null)throw lt=m,E;en=1,qo(t,hr(s,t.current)),lt=null;return}a.flags&32768?(pt||c===1?t=!0:ss||(dt&536870912)!==0?t=!1:(Oa=t=!0,(c===2||c===9||c===3||c===6)&&(c=nr.current,c!==null&&c.tag===13&&(c.flags|=16384))),yp(a,t)):r0(a)}function r0(t){var a=t;do{if((a.flags&32768)!==0){yp(a,Oa);return}t=a.return;var s=P6(a.alternate,a,ua);if(s!==null){lt=s;return}if(a=a.sibling,a!==null){lt=a;return}lt=a=t}while(a!==null);en===0&&(en=5)}function yp(t,a){do{var s=I6(t.alternate,t);if(s!==null){s.flags&=32767,lt=s;return}if(s=t.return,s!==null&&(s.flags|=32768,s.subtreeFlags=0,s.deletions=null),!a&&(t=t.sibling,t!==null)){lt=t;return}lt=t=s}while(t!==null);en=6,lt=null}function bp(t,a,s,c,m,E,k,_,H){t.cancelPendingCommit=null;do a0();while(En!==0);if((Dt&6)!==0)throw Error(i(327));if(a!==null){if(a===t.current)throw Error(i(177));if(E=a.lanes|a.childLanes,E|=Nc,Re(t,s,E,k,_,H),t===Pt&&(lt=Pt=null,dt=0),os=a,Pa=t,xa=s,Lu=E,Pu=m,cp=c,(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,W6(je,function(){return Bp(),null})):(t.callbackNode=null,t.callbackPriority=0),c=(a.flags&13878)!==0,(a.subtreeFlags&13878)!==0||c){c=P.T,P.T=null,m=V.p,V.p=2,k=Dt,Dt|=4;try{U6(t,a,s)}finally{Dt=k,V.p=m,P.T=c}}En=1,Cp(),vp(),Ap()}}function Cp(){if(En===1){En=0;var t=Pa,a=os,s=(a.flags&13878)!==0;if((a.subtreeFlags&13878)!==0||s){s=P.T,P.T=null;var c=V.p;V.p=2;var m=Dt;Dt|=4;try{tp(a,t);var E=ex,k=lh(t.containerInfo),_=E.focusedElem,H=E.selectionRange;if(k!==_&&_&&_.ownerDocument&&sh(_.ownerDocument.documentElement,_)){if(H!==null&&Bc(_)){var te=H.start,ce=H.end;if(ce===void 0&&(ce=te),"selectionStart"in _)_.selectionStart=te,_.selectionEnd=Math.min(ce,_.value.length);else{var de=_.ownerDocument||document,ne=de&&de.defaultView||window;if(ne.getSelection){var ae=ne.getSelection(),Te=_.textContent.length,$e=Math.min(H.start,Te),zt=H.end===void 0?$e:Math.min(H.end,Te);!ae.extend&&$e>zt&&(k=zt,zt=$e,$e=k);var K=ih(_,$e),G=ih(_,zt);if(K&&G&&(ae.rangeCount!==1||ae.anchorNode!==K.node||ae.anchorOffset!==K.offset||ae.focusNode!==G.node||ae.focusOffset!==G.offset)){var J=de.createRange();J.setStart(K.node,K.offset),ae.removeAllRanges(),$e>zt?(ae.addRange(J),ae.extend(G.node,G.offset)):(J.setEnd(G.node,G.offset),ae.addRange(J))}}}}for(de=[],ae=_;ae=ae.parentNode;)ae.nodeType===1&&de.push({element:ae,left:ae.scrollLeft,top:ae.scrollTop});for(typeof _.focus=="function"&&_.focus(),_=0;_<de.length;_++){var ue=de[_];ue.element.scrollLeft=ue.left,ue.element.scrollTop=ue.top}}m0=!!Ju,ex=Ju=null}finally{Dt=m,V.p=c,P.T=s}}t.current=a,En=2}}function vp(){if(En===2){En=0;var t=Pa,a=os,s=(a.flags&8772)!==0;if((a.subtreeFlags&8772)!==0||s){s=P.T,P.T=null;var c=V.p;V.p=2;var m=Dt;Dt|=4;try{X1(t,a.alternate,a)}finally{Dt=m,V.p=c,P.T=s}}En=3}}function Ap(){if(En===4||En===3){En=0,Pn();var t=Pa,a=os,s=xa,c=cp;(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?En=5:(En=0,os=Pa=null,kp(t,t.pendingLanes));var m=t.pendingLanes;if(m===0&&(La=null),Qr(s),a=a.stateNode,Bt&&typeof Bt.onCommitFiberRoot=="function")try{Bt.onCommitFiberRoot(Gt,a,void 0,(a.current.flags&128)===128)}catch{}if(c!==null){a=P.T,m=V.p,V.p=2,P.T=null;try{for(var E=t.onRecoverableError,k=0;k<c.length;k++){var _=c[k];E(_.value,{componentStack:_.stack})}}finally{P.T=a,V.p=m}}(xa&3)!==0&&a0(),Ir(t),m=t.pendingLanes,(s&261930)!==0&&(m&42)!==0?t===Iu?xl++:(xl=0,Iu=t):xl=0,dl(0)}}function kp(t,a){(t.pooledCacheLanes&=a)===0&&(a=t.pooledCache,a!=null&&(t.pooledCache=null,Vs(a)))}function a0(){return Cp(),vp(),Ap(),Bp()}function Bp(){if(En!==5)return!1;var t=Pa,a=Lu;Lu=0;var s=Qr(xa),c=P.T,m=V.p;try{V.p=32>s?32:s,P.T=null,s=Pu,Pu=null;var E=Pa,k=xa;if(En=0,os=Pa=null,xa=0,(Dt&6)!==0)throw Error(i(331));var _=Dt;if(Dt|=4,sp(E.current),rp(E,E.current,k,s),Dt=_,dl(0,!1),Bt&&typeof Bt.onPostCommitFiberRoot=="function")try{Bt.onPostCommitFiberRoot(Gt,E)}catch{}return!0}finally{V.p=m,P.T=c,kp(t,a)}}function Dp(t,a,s){a=hr(s,a),a=Eu(t.stateNode,a,2),t=Ma(t,a,2),t!==null&&(Ft(t,2),Ir(t))}function jt(t,a,s){if(t.tag===3)Dp(t,t,s);else for(;a!==null;){if(a.tag===3){Dp(a,t,s);break}else if(a.tag===1){var c=a.stateNode;if(typeof a.type.getDerivedStateFromError=="function"||typeof c.componentDidCatch=="function"&&(La===null||!La.has(c))){t=hr(s,t),s=w1(2),c=Ma(a,s,2),c!==null&&(F1(s,c,a,t),Ft(c,2),Ir(c));break}}a=a.return}}function $u(t,a,s){var c=t.pingCache;if(c===null){c=t.pingCache=new q6;var m=new Set;c.set(a,m)}else m=c.get(a),m===void 0&&(m=new Set,c.set(a,m));m.has(s)||(Ru=!0,m.add(s),t=K6.bind(null,t,a,s),a.then(t,t))}function K6(t,a,s){var c=t.pingCache;c!==null&&c.delete(a),t.pingedLanes|=t.suspendedLanes&s,t.warmLanes&=~s,Pt===t&&(dt&s)===s&&(en===4||en===3&&(dt&62914560)===dt&&300>Ye()-Wo?(Dt&2)===0&&cs(t,0):Ou|=s,ls===dt&&(ls=0)),Ir(t)}function wp(t,a){a===0&&(a=Ge()),t=li(t,a),t!==null&&(Ft(t,a),Ir(t))}function X6(t){var a=t.memoizedState,s=0;a!==null&&(s=a.retryLane),wp(t,s)}function Z6(t,a){var s=0;switch(t.tag){case 31:case 13:var c=t.stateNode,m=t.memoizedState;m!==null&&(s=m.retryLane);break;case 19:c=t.stateNode;break;case 22:c=t.stateNode._retryCache;break;default:throw Error(i(314))}c!==null&&c.delete(a),wp(t,s)}function W6(t,a){return Ct(t,a)}var i0=null,xs=null,qu=!1,s0=!1,Gu=!1,Ua=0;function Ir(t){t!==xs&&t.next===null&&(xs===null?i0=xs=t:xs=xs.next=t),s0=!0,qu||(qu=!0,ey())}function dl(t,a){if(!Gu&&s0){Gu=!0;do for(var s=!1,c=i0;c!==null;){if(t!==0){var m=c.pendingLanes;if(m===0)var E=0;else{var k=c.suspendedLanes,_=c.pingedLanes;E=(1<<31-re(42|t)+1)-1,E&=m&~(k&~_),E=E&201326741?E&201326741|1:E?E|2:0}E!==0&&(s=!0,_p(c,E))}else E=dt,E=U(c,c===Pt?E:0,c.cancelPendingCommit!==null||c.timeoutHandle!==-1),(E&3)===0||ie(c,E)||(s=!0,_p(c,E));c=c.next}while(s);Gu=!1}}function J6(){Fp()}function Fp(){s0=qu=!1;var t=0;Ua!==0&&uy()&&(t=Ua);for(var a=Ye(),s=null,c=i0;c!==null;){var m=c.next,E=Sp(c,a);E===0?(c.next=null,s===null?i0=m:s.next=m,m===null&&(xs=s)):(s=c,(t!==0||(E&3)!==0)&&(s0=!0)),c=m}En!==0&&En!==5||dl(t),Ua!==0&&(Ua=0)}function Sp(t,a){for(var s=t.suspendedLanes,c=t.pingedLanes,m=t.expirationTimes,E=t.pendingLanes&-62914561;0<E;){var k=31-re(E),_=1<<k,H=m[k];H===-1?((_&s)===0||(_&c)!==0)&&(m[k]=ke(_,a)):H<=a&&(t.expiredLanes|=_),E&=~_}if(a=Pt,s=dt,s=U(t,t===a?s:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),c=t.callbackNode,s===0||t===a&&(Mt===2||Mt===9)||t.cancelPendingCommit!==null)return c!==null&&c!==null&&wt(c),t.callbackNode=null,t.callbackPriority=0;if((s&3)===0||ie(t,s)){if(a=s&-s,a===t.callbackPriority)return a;switch(c!==null&&wt(c),Qr(s)){case 2:case 8:s=me;break;case 32:s=je;break;case 268435456:s=it;break;default:s=je}return c=Np.bind(null,t),s=Ct(s,c),t.callbackPriority=a,t.callbackNode=s,a}return c!==null&&c!==null&&wt(c),t.callbackPriority=2,t.callbackNode=null,2}function Np(t,a){if(En!==0&&En!==5)return t.callbackNode=null,t.callbackPriority=0,null;var s=t.callbackNode;if(a0()&&t.callbackNode!==s)return null;var c=dt;return c=U(t,t===Pt?c:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),c===0?null:(xp(t,c,a),Sp(t,Ye()),t.callbackNode!=null&&t.callbackNode===s?Np.bind(null,t):null)}function _p(t,a){if(a0())return null;xp(t,a,!0)}function ey(){dy(function(){(Dt&6)!==0?Ct(se,J6):Fp()})}function Vu(){if(Ua===0){var t=Xi;t===0&&(t=ut,ut<<=1,(ut&261888)===0&&(ut=256)),Ua=t}return Ua}function Mp(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:ka(""+t)}function jp(t,a){var s=a.ownerDocument.createElement("input");return s.name=a.name,s.value=a.value,t.id&&s.setAttribute("form",t.id),a.parentNode.insertBefore(s,a),t=new FormData(t),s.parentNode.removeChild(s),t}function ty(t,a,s,c,m){if(a==="submit"&&s&&s.stateNode===m){var E=Mp((m[Nn]||null).action),k=c.submitter;k&&(a=(a=k[Nn]||null)?Mp(a.formAction):k.getAttribute("formAction"),a!==null&&(E=a,k=null));var _=new Eo("action","action",null,c,m);t.push({event:_,listeners:[{instance:null,listener:function(){if(c.defaultPrevented){if(Ua!==0){var H=k?jp(m,k):new FormData(m);du(s,{pending:!0,data:H,method:m.method,action:E},null,H)}}else typeof E=="function"&&(_.preventDefault(),H=k?jp(m,k):new FormData(m),du(s,{pending:!0,data:H,method:m.method,action:E},E,H))},currentTarget:m}]})}}for(var Qu=0;Qu<Sc.length;Qu++){var Yu=Sc[Qu],ny=Yu.toLowerCase(),ry=Yu[0].toUpperCase()+Yu.slice(1);Nr(ny,"on"+ry)}Nr(uh,"onAnimationEnd"),Nr(xh,"onAnimationIteration"),Nr(dh,"onAnimationStart"),Nr("dblclick","onDoubleClick"),Nr("focusin","onFocus"),Nr("focusout","onBlur"),Nr(y6,"onTransitionRun"),Nr(b6,"onTransitionStart"),Nr(C6,"onTransitionCancel"),Nr(fh,"onTransitionEnd"),ge("onMouseEnter",["mouseout","mouseover"]),ge("onMouseLeave",["mouseout","mouseover"]),ge("onPointerEnter",["pointerout","pointerover"]),ge("onPointerLeave",["pointerout","pointerover"]),Kr("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Kr("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Kr("onBeforeInput",["compositionend","keypress","textInput","paste"]),Kr("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Kr("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Kr("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var fl="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(" "),ay=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(fl));function Tp(t,a){a=(a&4)!==0;for(var s=0;s<t.length;s++){var c=t[s],m=c.event;c=c.listeners;e:{var E=void 0;if(a)for(var k=c.length-1;0<=k;k--){var _=c[k],H=_.instance,te=_.currentTarget;if(_=_.listener,H!==E&&m.isPropagationStopped())break e;E=_,m.currentTarget=te;try{E(m)}catch(ce){Co(ce)}m.currentTarget=null,E=H}else for(k=0;k<c.length;k++){if(_=c[k],H=_.instance,te=_.currentTarget,_=_.listener,H!==E&&m.isPropagationStopped())break e;E=_,m.currentTarget=te;try{E(m)}catch(ce){Co(ce)}m.currentTarget=null,E=H}}}}function ot(t,a){var s=a[Ss];s===void 0&&(s=a[Ss]=new Set);var c=t+"__bubble";s.has(c)||(Rp(a,t,2,!1),s.add(c))}function Ku(t,a,s){var c=0;a&&(c|=4),Rp(s,t,c,a)}var l0="_reactListening"+Math.random().toString(36).slice(2);function Xu(t){if(!t[l0]){t[l0]=!0,co.forEach(function(s){s!=="selectionchange"&&(ay.has(s)||Ku(s,!1,t),Ku(s,!0,t))});var a=t.nodeType===9?t:t.ownerDocument;a===null||a[l0]||(a[l0]=!0,Ku("selectionchange",!1,a))}}function Rp(t,a,s,c){switch(um(a)){case 2:var m=My;break;case 8:m=jy;break;default:m=xx}s=m.bind(null,a,s,t),m=void 0,!mc||a!=="touchstart"&&a!=="touchmove"&&a!=="wheel"||(m=!0),c?m!==void 0?t.addEventListener(a,s,{capture:!0,passive:m}):t.addEventListener(a,s,!0):m!==void 0?t.addEventListener(a,s,{passive:m}):t.addEventListener(a,s,!1)}function Zu(t,a,s,c,m){var E=c;if((a&1)===0&&(a&2)===0&&c!==null)e:for(;;){if(c===null)return;var k=c.tag;if(k===3||k===4){var _=c.stateNode.containerInfo;if(_===m)break;if(k===4)for(k=c.return;k!==null;){var H=k.tag;if((H===3||H===4)&&k.stateNode.containerInfo===m)return;k=k.return}for(;_!==null;){if(k=On(_),k===null)return;if(H=k.tag,H===5||H===6||H===26||H===27){c=E=k;continue e}_=_.parentNode}}c=c.return}ho(function(){var te=E,ce=We(s),de=[];e:{var ne=hh.get(t);if(ne!==void 0){var ae=Eo,Te=t;switch(t){case"keypress":if(mo(s)===0)break e;case"keydown":case"keyup":ae=Z5;break;case"focusin":Te="focus",ae=bc;break;case"focusout":Te="blur",ae=bc;break;case"beforeblur":case"afterblur":ae=bc;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":ae=$f;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":ae=P5;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ae=e6;break;case uh:case xh:case dh:ae=H5;break;case fh:ae=n6;break;case"scroll":case"scrollend":ae=z5;break;case"wheel":ae=a6;break;case"copy":case"cut":case"paste":ae=q5;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":ae=Gf;break;case"toggle":case"beforetoggle":ae=s6}var $e=(a&4)!==0,zt=!$e&&(t==="scroll"||t==="scrollend"),K=$e?ne!==null?ne+"Capture":null:ne;$e=[];for(var G=te,J;G!==null;){var ue=G;if(J=ue.stateNode,ue=ue.tag,ue!==5&&ue!==26&&ue!==27||J===null||K===null||(ue=Rs(G,K),ue!=null&&$e.push(hl(G,ue,J))),zt)break;G=G.return}0<$e.length&&(ne=new ae(ne,Te,null,s,ce),de.push({event:ne,listeners:$e}))}}if((a&7)===0){e:{if(ne=t==="mouseover"||t==="pointerover",ae=t==="mouseout"||t==="pointerout",ne&&s!==Oe&&(Te=s.relatedTarget||s.fromElement)&&(On(Te)||Te[ba]))break e;if((ae||ne)&&(ne=ce.window===ce?ce:(ne=ce.ownerDocument)?ne.defaultView||ne.parentWindow:window,ae?(Te=s.relatedTarget||s.toElement,ae=te,Te=Te?On(Te):null,Te!==null&&(zt=o(Te),$e=Te.tag,Te!==zt||$e!==5&&$e!==27&&$e!==6)&&(Te=null)):(ae=null,Te=te),ae!==Te)){if($e=$f,ue="onMouseLeave",K="onMouseEnter",G="mouse",(t==="pointerout"||t==="pointerover")&&($e=Gf,ue="onPointerLeave",K="onPointerEnter",G="pointer"),zt=ae==null?ne:Ca(ae),J=Te==null?ne:Ca(Te),ne=new $e(ue,G+"leave",ae,s,ce),ne.target=zt,ne.relatedTarget=J,ue=null,On(ce)===te&&($e=new $e(K,G+"enter",Te,s,ce),$e.target=J,$e.relatedTarget=zt,ue=$e),zt=ue,ae&&Te)t:{for($e=iy,K=ae,G=Te,J=0,ue=K;ue;ue=$e(ue))J++;ue=0;for(var Pe=G;Pe;Pe=$e(Pe))ue++;for(;0<J-ue;)K=$e(K),J--;for(;0<ue-J;)G=$e(G),ue--;for(;J--;){if(K===G||G!==null&&K===G.alternate){$e=K;break t}K=$e(K),G=$e(G)}$e=null}else $e=null;ae!==null&&Op(de,ne,ae,$e,!1),Te!==null&&zt!==null&&Op(de,zt,Te,$e,!0)}}e:{if(ne=te?Ca(te):window,ae=ne.nodeName&&ne.nodeName.toLowerCase(),ae==="select"||ae==="input"&&ne.type==="file")var vt=Jf;else if(Zf(ne))if(eh)vt=m6;else{vt=h6;var ze=f6}else ae=ne.nodeName,!ae||ae.toLowerCase()!=="input"||ne.type!=="checkbox"&&ne.type!=="radio"?te&&Aa(te.elementType)&&(vt=Jf):vt=p6;if(vt&&(vt=vt(t,te))){Wf(de,vt,s,ce);break e}ze&&ze(t,ne,te),t==="focusout"&&te&&ne.type==="number"&&te.memoizedProps.value!=null&&Pi(ne,"number",ne.value)}switch(ze=te?Ca(te):window,t){case"focusin":(Zf(ze)||ze.contentEditable==="true")&&(Hi=ze,Dc=te,$s=null);break;case"focusout":$s=Dc=Hi=null;break;case"mousedown":wc=!0;break;case"contextmenu":case"mouseup":case"dragend":wc=!1,oh(de,s,ce);break;case"selectionchange":if(E6)break;case"keydown":case"keyup":oh(de,s,ce)}var et;if(vc)e:{switch(t){case"compositionstart":var ft="onCompositionStart";break e;case"compositionend":ft="onCompositionEnd";break e;case"compositionupdate":ft="onCompositionUpdate";break e}ft=void 0}else Ui?Kf(t,s)&&(ft="onCompositionEnd"):t==="keydown"&&s.keyCode===229&&(ft="onCompositionStart");ft&&(Vf&&s.locale!=="ko"&&(Ui||ft!=="onCompositionStart"?ft==="onCompositionEnd"&&Ui&&(et=Uf()):(Ba=ce,gc="value"in Ba?Ba.value:Ba.textContent,Ui=!0)),ze=o0(te,ft),0<ze.length&&(ft=new qf(ft,t,null,s,ce),de.push({event:ft,listeners:ze}),et?ft.data=et:(et=Xf(s),et!==null&&(ft.data=et)))),(et=o6?c6(t,s):u6(t,s))&&(ft=o0(te,"onBeforeInput"),0<ft.length&&(ze=new qf("onBeforeInput","beforeinput",null,s,ce),de.push({event:ze,listeners:ft}),ze.data=et)),ty(de,t,te,s,ce)}Tp(de,a)})}function hl(t,a,s){return{instance:t,listener:a,currentTarget:s}}function o0(t,a){for(var s=a+"Capture",c=[];t!==null;){var m=t,E=m.stateNode;if(m=m.tag,m!==5&&m!==26&&m!==27||E===null||(m=Rs(t,s),m!=null&&c.unshift(hl(t,m,E)),m=Rs(t,a),m!=null&&c.push(hl(t,m,E))),t.tag===3)return c;t=t.return}return[]}function iy(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function Op(t,a,s,c,m){for(var E=a._reactName,k=[];s!==null&&s!==c;){var _=s,H=_.alternate,te=_.stateNode;if(_=_.tag,H!==null&&H===c)break;_!==5&&_!==26&&_!==27||te===null||(H=te,m?(te=Rs(s,E),te!=null&&k.unshift(hl(s,te,H))):m||(te=Rs(s,E),te!=null&&k.push(hl(s,te,H)))),s=s.return}k.length!==0&&t.push({event:a,listeners:k})}var sy=/\r\n?/g,ly=/\u0000|\uFFFD/g;function zp(t){return(typeof t=="string"?t:""+t).replace(sy,`
|
|
9
|
+
`).replace(ly,"")}function Lp(t,a){return a=zp(a),zp(t)===a}function Ot(t,a,s,c,m,E){switch(s){case"children":typeof c=="string"?a==="body"||a==="textarea"&&c===""||qe(t,c):(typeof c=="number"||typeof c=="bigint")&&a!=="body"&&qe(t,""+c);break;case"className":Wn(t,"class",c);break;case"tabIndex":Wn(t,"tabindex",c);break;case"dir":case"role":case"viewBox":case"width":case"height":Wn(t,s,c);break;case"style":_t(t,c,E);break;case"data":if(a!=="object"){Wn(t,"data",c);break}case"src":case"href":if(c===""&&(a!=="a"||s!=="href")){t.removeAttribute(s);break}if(c==null||typeof c=="function"||typeof c=="symbol"||typeof c=="boolean"){t.removeAttribute(s);break}c=ka(""+c),t.setAttribute(s,c);break;case"action":case"formAction":if(typeof c=="function"){t.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"&&Ot(t,a,"name",m.name,m,null),Ot(t,a,"formEncType",m.formEncType,m,null),Ot(t,a,"formMethod",m.formMethod,m,null),Ot(t,a,"formTarget",m.formTarget,m,null)):(Ot(t,a,"encType",m.encType,m,null),Ot(t,a,"method",m.method,m,null),Ot(t,a,"target",m.target,m,null)));if(c==null||typeof c=="symbol"||typeof c=="boolean"){t.removeAttribute(s);break}c=ka(""+c),t.setAttribute(s,c);break;case"onClick":c!=null&&(t.onclick=ve);break;case"onScroll":c!=null&&ot("scroll",t);break;case"onScrollEnd":c!=null&&ot("scrollend",t);break;case"dangerouslySetInnerHTML":if(c!=null){if(typeof c!="object"||!("__html"in c))throw Error(i(61));if(s=c.__html,s!=null){if(m.children!=null)throw Error(i(60));t.innerHTML=s}}break;case"multiple":t.multiple=c&&typeof c!="function"&&typeof c!="symbol";break;case"muted":t.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"){t.removeAttribute("xlink:href");break}s=ka(""+c),t.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"?t.setAttribute(s,""+c):t.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"?t.setAttribute(s,""):t.removeAttribute(s);break;case"capture":case"download":c===!0?t.setAttribute(s,""):c!==!1&&c!=null&&typeof c!="function"&&typeof c!="symbol"?t.setAttribute(s,c):t.removeAttribute(s);break;case"cols":case"rows":case"size":case"span":c!=null&&typeof c!="function"&&typeof c!="symbol"&&!isNaN(c)&&1<=c?t.setAttribute(s,c):t.removeAttribute(s);break;case"rowSpan":case"start":c==null||typeof c=="function"||typeof c=="symbol"||isNaN(c)?t.removeAttribute(s):t.setAttribute(s,c);break;case"popover":ot("beforetoggle",t),ot("toggle",t),_n(t,"popover",c);break;case"xlinkActuate":In(t,"http://www.w3.org/1999/xlink","xlink:actuate",c);break;case"xlinkArcrole":In(t,"http://www.w3.org/1999/xlink","xlink:arcrole",c);break;case"xlinkRole":In(t,"http://www.w3.org/1999/xlink","xlink:role",c);break;case"xlinkShow":In(t,"http://www.w3.org/1999/xlink","xlink:show",c);break;case"xlinkTitle":In(t,"http://www.w3.org/1999/xlink","xlink:title",c);break;case"xlinkType":In(t,"http://www.w3.org/1999/xlink","xlink:type",c);break;case"xmlBase":In(t,"http://www.w3.org/XML/1998/namespace","xml:base",c);break;case"xmlLang":In(t,"http://www.w3.org/XML/1998/namespace","xml:lang",c);break;case"xmlSpace":In(t,"http://www.w3.org/XML/1998/namespace","xml:space",c);break;case"is":_n(t,"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=Xr.get(s)||s,_n(t,s,c))}}function Wu(t,a,s,c,m,E){switch(s){case"style":_t(t,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(m.children!=null)throw Error(i(60));t.innerHTML=s}}break;case"children":typeof c=="string"?qe(t,c):(typeof c=="number"||typeof c=="bigint")&&qe(t,""+c);break;case"onScroll":c!=null&&ot("scroll",t);break;case"onScrollEnd":c!=null&&ot("scrollend",t);break;case"onClick":c!=null&&(t.onclick=ve);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!ni.hasOwnProperty(s))e:{if(s[0]==="o"&&s[1]==="n"&&(m=s.endsWith("Capture"),a=s.slice(2,m?s.length-7:void 0),E=t[Nn]||null,E=E!=null?E[s]:null,typeof E=="function"&&t.removeEventListener(a,E,m),typeof c=="function")){typeof E!="function"&&E!==null&&(s in t?t[s]=null:t.hasAttribute(s)&&t.removeAttribute(s)),t.addEventListener(a,c,m);break e}s in t?t[s]=c:c===!0?t.setAttribute(s,""):_n(t,s,c)}}}function Fn(t,a,s){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":ot("error",t),ot("load",t);var c=!1,m=!1,E;for(E in s)if(s.hasOwnProperty(E)){var k=s[E];if(k!=null)switch(E){case"src":c=!0;break;case"srcSet":m=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(i(137,a));default:Ot(t,a,E,k,s,null)}}m&&Ot(t,a,"srcSet",s.srcSet,s,null),c&&Ot(t,a,"src",s.src,s,null);return;case"input":ot("invalid",t);var _=E=k=m=null,H=null,te=null;for(c in s)if(s.hasOwnProperty(c)){var ce=s[c];if(ce!=null)switch(c){case"name":m=ce;break;case"type":k=ce;break;case"checked":H=ce;break;case"defaultChecked":te=ce;break;case"value":E=ce;break;case"defaultValue":_=ce;break;case"children":case"dangerouslySetInnerHTML":if(ce!=null)throw Error(i(137,a));break;default:Ot(t,a,c,ce,s,null)}}ri(t,E,_,H,te,k,m,!1);return;case"select":ot("invalid",t),c=k=E=null;for(m in s)if(s.hasOwnProperty(m)&&(_=s[m],_!=null))switch(m){case"value":E=_;break;case"defaultValue":k=_;break;case"multiple":c=_;default:Ot(t,a,m,_,s,null)}a=E,s=k,t.multiple=!!c,a!=null?kn(t,!!c,a,!1):s!=null&&kn(t,!!c,s,!0);return;case"textarea":ot("invalid",t),E=m=c=null;for(k in s)if(s.hasOwnProperty(k)&&(_=s[k],_!=null))switch(k){case"value":c=_;break;case"defaultValue":m=_;break;case"children":E=_;break;case"dangerouslySetInnerHTML":if(_!=null)throw Error(i(91));break;default:Ot(t,a,k,_,s,null)}Ii(t,c,m,E);return;case"option":for(H in s)s.hasOwnProperty(H)&&(c=s[H],c!=null)&&(H==="selected"?t.selected=c&&typeof c!="function"&&typeof c!="symbol":Ot(t,a,H,c,s,null));return;case"dialog":ot("beforetoggle",t),ot("toggle",t),ot("cancel",t),ot("close",t);break;case"iframe":case"object":ot("load",t);break;case"video":case"audio":for(c=0;c<fl.length;c++)ot(fl[c],t);break;case"image":ot("error",t),ot("load",t);break;case"details":ot("toggle",t);break;case"embed":case"source":case"link":ot("error",t),ot("load",t);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:Ot(t,a,te,c,s,null)}return;default:if(Aa(a)){for(ce in s)s.hasOwnProperty(ce)&&(c=s[ce],c!==void 0&&Wu(t,a,ce,c,s,void 0));return}}for(_ in s)s.hasOwnProperty(_)&&(c=s[_],c!=null&&Ot(t,a,_,c,s,null))}function oy(t,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 m=null,E=null,k=null,_=null,H=null,te=null,ce=null;for(ae in s){var de=s[ae];if(s.hasOwnProperty(ae)&&de!=null)switch(ae){case"checked":break;case"value":break;case"defaultValue":H=de;default:c.hasOwnProperty(ae)||Ot(t,a,ae,null,c,de)}}for(var ne in c){var ae=c[ne];if(de=s[ne],c.hasOwnProperty(ne)&&(ae!=null||de!=null))switch(ne){case"type":E=ae;break;case"name":m=ae;break;case"checked":te=ae;break;case"defaultChecked":ce=ae;break;case"value":k=ae;break;case"defaultValue":_=ae;break;case"children":case"dangerouslySetInnerHTML":if(ae!=null)throw Error(i(137,a));break;default:ae!==de&&Ot(t,a,ne,ae,c,de)}}Ms(t,k,_,H,te,ce,E,m);return;case"select":ae=k=_=ne=null;for(E in s)if(H=s[E],s.hasOwnProperty(E)&&H!=null)switch(E){case"value":break;case"multiple":ae=H;default:c.hasOwnProperty(E)||Ot(t,a,E,null,c,H)}for(m in c)if(E=c[m],H=s[m],c.hasOwnProperty(m)&&(E!=null||H!=null))switch(m){case"value":ne=E;break;case"defaultValue":_=E;break;case"multiple":k=E;default:E!==H&&Ot(t,a,m,E,c,H)}a=_,s=k,c=ae,ne!=null?kn(t,!!s,ne,!1):!!c!=!!s&&(a!=null?kn(t,!!s,a,!0):kn(t,!!s,s?[]:"",!1));return;case"textarea":ae=ne=null;for(_ in s)if(m=s[_],s.hasOwnProperty(_)&&m!=null&&!c.hasOwnProperty(_))switch(_){case"value":break;case"children":break;default:Ot(t,a,_,null,c,m)}for(k in c)if(m=c[k],E=s[k],c.hasOwnProperty(k)&&(m!=null||E!=null))switch(k){case"value":ne=m;break;case"defaultValue":ae=m;break;case"children":break;case"dangerouslySetInnerHTML":if(m!=null)throw Error(i(91));break;default:m!==E&&Ot(t,a,k,m,c,E)}xo(t,ne,ae);return;case"option":for(var Te in s)ne=s[Te],s.hasOwnProperty(Te)&&ne!=null&&!c.hasOwnProperty(Te)&&(Te==="selected"?t.selected=!1:Ot(t,a,Te,null,c,ne));for(H in c)ne=c[H],ae=s[H],c.hasOwnProperty(H)&&ne!==ae&&(ne!=null||ae!=null)&&(H==="selected"?t.selected=ne&&typeof ne!="function"&&typeof ne!="symbol":Ot(t,a,H,ne,c,ae));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 $e in s)ne=s[$e],s.hasOwnProperty($e)&&ne!=null&&!c.hasOwnProperty($e)&&Ot(t,a,$e,null,c,ne);for(te in c)if(ne=c[te],ae=s[te],c.hasOwnProperty(te)&&ne!==ae&&(ne!=null||ae!=null))switch(te){case"children":case"dangerouslySetInnerHTML":if(ne!=null)throw Error(i(137,a));break;default:Ot(t,a,te,ne,c,ae)}return;default:if(Aa(a)){for(var zt in s)ne=s[zt],s.hasOwnProperty(zt)&&ne!==void 0&&!c.hasOwnProperty(zt)&&Wu(t,a,zt,void 0,c,ne);for(ce in c)ne=c[ce],ae=s[ce],!c.hasOwnProperty(ce)||ne===ae||ne===void 0&&ae===void 0||Wu(t,a,ce,ne,c,ae);return}}for(var K in s)ne=s[K],s.hasOwnProperty(K)&&ne!=null&&!c.hasOwnProperty(K)&&Ot(t,a,K,null,c,ne);for(de in c)ne=c[de],ae=s[de],!c.hasOwnProperty(de)||ne===ae||ne==null&&ae==null||Ot(t,a,de,ne,c,ae)}function Pp(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function cy(){if(typeof performance.getEntriesByType=="function"){for(var t=0,a=0,s=performance.getEntriesByType("resource"),c=0;c<s.length;c++){var m=s[c],E=m.transferSize,k=m.initiatorType,_=m.duration;if(E&&_&&Pp(k)){for(k=0,_=m.responseEnd,c+=1;c<s.length;c++){var H=s[c],te=H.startTime;if(te>_)break;var ce=H.transferSize,de=H.initiatorType;ce&&Pp(de)&&(H=H.responseEnd,k+=ce*(H<_?1:(_-te)/(H-te)))}if(--c,a+=8*(E+k)/(m.duration/1e3),t++,10<t)break}}if(0<t)return a/t/1e6}return navigator.connection&&(t=navigator.connection.downlink,typeof t=="number")?t:5}var Ju=null,ex=null;function c0(t){return t.nodeType===9?t:t.ownerDocument}function Ip(t){switch(t){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Up(t,a){if(t===0)switch(a){case"svg":return 1;case"math":return 2;default:return 0}return t===1&&a==="foreignObject"?0:t}function tx(t,a){return t==="textarea"||t==="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 nx=null;function uy(){var t=window.event;return t&&t.type==="popstate"?t===nx?!1:(nx=t,!0):(nx=null,!1)}var Hp=typeof setTimeout=="function"?setTimeout:void 0,xy=typeof clearTimeout=="function"?clearTimeout:void 0,$p=typeof Promise=="function"?Promise:void 0,dy=typeof queueMicrotask=="function"?queueMicrotask:typeof $p<"u"?function(t){return $p.resolve(null).then(t).catch(fy)}:Hp;function fy(t){setTimeout(function(){throw t})}function Ha(t){return t==="head"}function qp(t,a){var s=a,c=0;do{var m=s.nextSibling;if(t.removeChild(s),m&&m.nodeType===8)if(s=m.data,s==="/$"||s==="/&"){if(c===0){t.removeChild(m),ps(a);return}c--}else if(s==="$"||s==="$?"||s==="$~"||s==="$!"||s==="&")c++;else if(s==="html")pl(t.ownerDocument.documentElement);else if(s==="head"){s=t.ownerDocument.head,pl(s);for(var E=s.firstChild;E;){var k=E.nextSibling,_=E.nodeName;E[ti]||_==="SCRIPT"||_==="STYLE"||_==="LINK"&&E.rel.toLowerCase()==="stylesheet"||s.removeChild(E),E=k}}else s==="body"&&pl(t.ownerDocument.body);s=m}while(s);ps(a)}function Gp(t,a){var s=t;t=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(t===0)break;t--}else s!=="$"&&s!=="$?"&&s!=="$~"&&s!=="$!"||t++;s=c}while(s)}function rx(t){var a=t.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":rx(s),Ns(s);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(s.rel.toLowerCase()==="stylesheet")continue}t.removeChild(s)}}function hy(t,a,s,c){for(;t.nodeType===1;){var m=s;if(t.nodeName.toLowerCase()!==a.toLowerCase()){if(!c&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(c){if(!t[ti])switch(a){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(E=t.getAttribute("rel"),E==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(E!==m.rel||t.getAttribute("href")!==(m.href==null||m.href===""?null:m.href)||t.getAttribute("crossorigin")!==(m.crossOrigin==null?null:m.crossOrigin)||t.getAttribute("title")!==(m.title==null?null:m.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(E=t.getAttribute("src"),(E!==(m.src==null?null:m.src)||t.getAttribute("type")!==(m.type==null?null:m.type)||t.getAttribute("crossorigin")!==(m.crossOrigin==null?null:m.crossOrigin))&&E&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(a==="input"&&t.type==="hidden"){var E=m.name==null?null:""+m.name;if(m.type==="hidden"&&t.getAttribute("name")===E)return t}else return t;if(t=yr(t.nextSibling),t===null)break}return null}function py(t,a,s){if(a==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!s||(t=yr(t.nextSibling),t===null))return null;return t}function Vp(t,a){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!a||(t=yr(t.nextSibling),t===null))return null;return t}function ax(t){return t.data==="$?"||t.data==="$~"}function ix(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function my(t,a){var s=t.ownerDocument;if(t.data==="$~")t._reactRetry=a;else if(t.data!=="$?"||s.readyState!=="loading")a();else{var c=function(){a(),s.removeEventListener("DOMContentLoaded",c)};s.addEventListener("DOMContentLoaded",c),t._reactRetry=c}}function yr(t){for(;t!=null;t=t.nextSibling){var a=t.nodeType;if(a===1||a===3)break;if(a===8){if(a=t.data,a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"||a==="F!"||a==="F")break;if(a==="/$"||a==="/&")return null}}return t}var sx=null;function Qp(t){t=t.nextSibling;for(var a=0;t;){if(t.nodeType===8){var s=t.data;if(s==="/$"||s==="/&"){if(a===0)return yr(t.nextSibling);a--}else s!=="$"&&s!=="$!"&&s!=="$?"&&s!=="$~"&&s!=="&"||a++}t=t.nextSibling}return null}function Yp(t){t=t.previousSibling;for(var a=0;t;){if(t.nodeType===8){var s=t.data;if(s==="$"||s==="$!"||s==="$?"||s==="$~"||s==="&"){if(a===0)return t;a--}else s!=="/$"&&s!=="/&"||a++}t=t.previousSibling}return null}function Kp(t,a,s){switch(a=c0(s),t){case"html":if(t=a.documentElement,!t)throw Error(i(452));return t;case"head":if(t=a.head,!t)throw Error(i(453));return t;case"body":if(t=a.body,!t)throw Error(i(454));return t;default:throw Error(i(451))}}function pl(t){for(var a=t.attributes;a.length;)t.removeAttributeNode(a[0]);Ns(t)}var br=new Map,Xp=new Set;function u0(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var da=V.d;V.d={f:gy,r:Ey,D:yy,C:by,L:Cy,m:vy,X:ky,S:Ay,M:By};function gy(){var t=da.f(),a=t0();return t||a}function Ey(t){var a=Yr(t);a!==null&&a.tag===5&&a.type==="form"?f1(a):da.r(t)}var ds=typeof document>"u"?null:document;function Zp(t,a,s){var c=ds;if(c&&typeof a=="string"&&a){var m=Un(a);m='link[rel="'+t+'"][href="'+m+'"]',typeof s=="string"&&(m+='[crossorigin="'+s+'"]'),Xp.has(m)||(Xp.add(m),t={rel:t,crossOrigin:s,href:a},c.querySelector(m)===null&&(a=c.createElement("link"),Fn(a,"link",t),xn(a),c.head.appendChild(a)))}}function yy(t){da.D(t),Zp("dns-prefetch",t,null)}function by(t,a){da.C(t,a),Zp("preconnect",t,a)}function Cy(t,a,s){da.L(t,a,s);var c=ds;if(c&&t&&a){var m='link[rel="preload"][as="'+Un(a)+'"]';a==="image"&&s&&s.imageSrcSet?(m+='[imagesrcset="'+Un(s.imageSrcSet)+'"]',typeof s.imageSizes=="string"&&(m+='[imagesizes="'+Un(s.imageSizes)+'"]')):m+='[href="'+Un(t)+'"]';var E=m;switch(a){case"style":E=fs(t);break;case"script":E=hs(t)}br.has(E)||(t=p({rel:"preload",href:a==="image"&&s&&s.imageSrcSet?void 0:t,as:a},s),br.set(E,t),c.querySelector(m)!==null||a==="style"&&c.querySelector(ml(E))||a==="script"&&c.querySelector(gl(E))||(a=c.createElement("link"),Fn(a,"link",t),xn(a),c.head.appendChild(a)))}}function vy(t,a){da.m(t,a);var s=ds;if(s&&t){var c=a&&typeof a.as=="string"?a.as:"script",m='link[rel="modulepreload"][as="'+Un(c)+'"][href="'+Un(t)+'"]',E=m;switch(c){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":E=hs(t)}if(!br.has(E)&&(t=p({rel:"modulepreload",href:t},a),br.set(E,t),s.querySelector(m)===null)){switch(c){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(s.querySelector(gl(E)))return}c=s.createElement("link"),Fn(c,"link",t),xn(c),s.head.appendChild(c)}}}function Ay(t,a,s){da.S(t,a,s);var c=ds;if(c&&t){var m=va(c).hoistableStyles,E=fs(t);a=a||"default";var k=m.get(E);if(!k){var _={loading:0,preload:null};if(k=c.querySelector(ml(E)))_.loading=5;else{t=p({rel:"stylesheet",href:t,"data-precedence":a},s),(s=br.get(E))&&lx(t,s);var H=k=c.createElement("link");xn(H),Fn(H,"link",t),H._p=new Promise(function(te,ce){H.onload=te,H.onerror=ce}),H.addEventListener("load",function(){_.loading|=1}),H.addEventListener("error",function(){_.loading|=2}),_.loading|=4,x0(k,a,c)}k={type:"stylesheet",instance:k,count:1,state:_},m.set(E,k)}}}function ky(t,a){da.X(t,a);var s=ds;if(s&&t){var c=va(s).hoistableScripts,m=hs(t),E=c.get(m);E||(E=s.querySelector(gl(m)),E||(t=p({src:t,async:!0},a),(a=br.get(m))&&ox(t,a),E=s.createElement("script"),xn(E),Fn(E,"link",t),s.head.appendChild(E)),E={type:"script",instance:E,count:1,state:null},c.set(m,E))}}function By(t,a){da.M(t,a);var s=ds;if(s&&t){var c=va(s).hoistableScripts,m=hs(t),E=c.get(m);E||(E=s.querySelector(gl(m)),E||(t=p({src:t,async:!0,type:"module"},a),(a=br.get(m))&&ox(t,a),E=s.createElement("script"),xn(E),Fn(E,"link",t),s.head.appendChild(E)),E={type:"script",instance:E,count:1,state:null},c.set(m,E))}}function Wp(t,a,s,c){var m=(m=he.current)?u0(m):null;if(!m)throw Error(i(446));switch(t){case"meta":case"title":return null;case"style":return typeof s.precedence=="string"&&typeof s.href=="string"?(a=fs(s.href),s=va(m).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"){t=fs(s.href);var E=va(m).hoistableStyles,k=E.get(t);if(k||(m=m.ownerDocument||m,k={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},E.set(t,k),(E=m.querySelector(ml(t)))&&!E._p&&(k.instance=E,k.state.loading=5),br.has(t)||(s={rel:"preload",as:"style",href:s.href,crossOrigin:s.crossOrigin,integrity:s.integrity,media:s.media,hrefLang:s.hrefLang,referrerPolicy:s.referrerPolicy},br.set(t,s),E||Dy(m,t,s,k.state))),a&&c===null)throw Error(i(528,""));return k}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=hs(s),s=va(m).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,t))}}function fs(t){return'href="'+Un(t)+'"'}function ml(t){return'link[rel="stylesheet"]['+t+"]"}function Jp(t){return p({},t,{"data-precedence":t.precedence,precedence:null})}function Dy(t,a,s,c){t.querySelector('link[rel="preload"][as="style"]['+a+"]")?c.loading=1:(a=t.createElement("link"),c.preload=a,a.addEventListener("load",function(){return c.loading|=1}),a.addEventListener("error",function(){return c.loading|=2}),Fn(a,"link",s),xn(a),t.head.appendChild(a))}function hs(t){return'[src="'+Un(t)+'"]'}function gl(t){return"script[async]"+t}function em(t,a,s){if(a.count++,a.instance===null)switch(a.type){case"style":var c=t.querySelector('style[data-href~="'+Un(s.href)+'"]');if(c)return a.instance=c,xn(c),c;var m=p({},s,{"data-href":s.href,"data-precedence":s.precedence,href:null,precedence:null});return c=(t.ownerDocument||t).createElement("style"),xn(c),Fn(c,"style",m),x0(c,s.precedence,t),a.instance=c;case"stylesheet":m=fs(s.href);var E=t.querySelector(ml(m));if(E)return a.state.loading|=4,a.instance=E,xn(E),E;c=Jp(s),(m=br.get(m))&&lx(c,m),E=(t.ownerDocument||t).createElement("link"),xn(E);var k=E;return k._p=new Promise(function(_,H){k.onload=_,k.onerror=H}),Fn(E,"link",c),a.state.loading|=4,x0(E,s.precedence,t),a.instance=E;case"script":return E=hs(s.src),(m=t.querySelector(gl(E)))?(a.instance=m,xn(m),m):(c=s,(m=br.get(E))&&(c=p({},s),ox(c,m)),t=t.ownerDocument||t,m=t.createElement("script"),xn(m),Fn(m,"link",c),t.head.appendChild(m),a.instance=m);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,x0(c,s.precedence,t));return a.instance}function x0(t,a,s){for(var c=s.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),m=c.length?c[c.length-1]:null,E=m,k=0;k<c.length;k++){var _=c[k];if(_.dataset.precedence===a)E=_;else if(E!==m)break}E?E.parentNode.insertBefore(t,E.nextSibling):(a=s.nodeType===9?s.head:s,a.insertBefore(t,a.firstChild))}function lx(t,a){t.crossOrigin==null&&(t.crossOrigin=a.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=a.referrerPolicy),t.title==null&&(t.title=a.title)}function ox(t,a){t.crossOrigin==null&&(t.crossOrigin=a.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=a.referrerPolicy),t.integrity==null&&(t.integrity=a.integrity)}var d0=null;function tm(t,a,s){if(d0===null){var c=new Map,m=d0=new Map;m.set(s,c)}else m=d0,c=m.get(s),c||(c=new Map,m.set(s,c));if(c.has(t))return c;for(c.set(t,null),s=s.getElementsByTagName(t),m=0;m<s.length;m++){var E=s[m];if(!(E[ti]||E[an]||t==="link"&&E.getAttribute("rel")==="stylesheet")&&E.namespaceURI!=="http://www.w3.org/2000/svg"){var k=E.getAttribute(a)||"";k=t+k;var _=c.get(k);_?_.push(E):c.set(k,[E])}}return c}function nm(t,a,s){t=t.ownerDocument||t,t.head.insertBefore(s,a==="title"?t.querySelector("head > title"):null)}function wy(t,a,s){if(s===1||a.itemProp!=null)return!1;switch(t){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"?(t=a.disabled,typeof a.precedence=="string"&&t==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 rm(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function Fy(t,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 m=fs(c.href),E=a.querySelector(ml(m));if(E){a=E._p,a!==null&&typeof a=="object"&&typeof a.then=="function"&&(t.count++,t=f0.bind(t),a.then(t,t)),s.state.loading|=4,s.instance=E,xn(E);return}E=a.ownerDocument||a,c=Jp(c),(m=br.get(m))&&lx(c,m),E=E.createElement("link"),xn(E);var k=E;k._p=new Promise(function(_,H){k.onload=_,k.onerror=H}),Fn(E,"link",c),s.instance=E}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(s,a),(a=s.state.preload)&&(s.state.loading&3)===0&&(t.count++,s=f0.bind(t),a.addEventListener("load",s),a.addEventListener("error",s))}}var cx=0;function Sy(t,a){return t.stylesheets&&t.count===0&&p0(t,t.stylesheets),0<t.count||0<t.imgCount?function(s){var c=setTimeout(function(){if(t.stylesheets&&p0(t,t.stylesheets),t.unsuspend){var E=t.unsuspend;t.unsuspend=null,E()}},6e4+a);0<t.imgBytes&&cx===0&&(cx=62500*cy());var m=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&p0(t,t.stylesheets),t.unsuspend)){var E=t.unsuspend;t.unsuspend=null,E()}},(t.imgBytes>cx?50:800)+a);return t.unsuspend=s,function(){t.unsuspend=null,clearTimeout(c),clearTimeout(m)}}:null}function f0(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)p0(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var h0=null;function p0(t,a){t.stylesheets=null,t.unsuspend!==null&&(t.count++,h0=new Map,a.forEach(Ny,t),h0=null,f0.call(t))}function Ny(t,a){if(!(a.state.loading&4)){var s=h0.get(t);if(s)var c=s.get(null);else{s=new Map,h0.set(t,s);for(var m=t.querySelectorAll("link[data-precedence],style[data-precedence]"),E=0;E<m.length;E++){var k=m[E];(k.nodeName==="LINK"||k.getAttribute("media")!=="not all")&&(s.set(k.dataset.precedence,k),c=k)}c&&s.set(null,c)}m=a.instance,k=m.getAttribute("data-precedence"),E=s.get(k)||c,E===c&&s.set(null,m),s.set(k,m),this.count++,c=f0.bind(this),m.addEventListener("load",c),m.addEventListener("error",c),E?E.parentNode.insertBefore(m,E.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(m,t.firstChild)),a.state.loading|=4}}var El={$$typeof:S,Provider:null,Consumer:null,_currentValue:Z,_currentValue2:Z,_threadCount:0};function _y(t,a,s,c,m,E,k,_,H){this.tag=1,this.containerInfo=t,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=nt(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=nt(0),this.hiddenUpdates=nt(null),this.identifierPrefix=c,this.onUncaughtError=m,this.onCaughtError=E,this.onRecoverableError=k,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=H,this.incompleteTransitions=new Map}function am(t,a,s,c,m,E,k,_,H,te,ce,de){return t=new _y(t,a,s,k,H,te,ce,de,_),a=1,E===!0&&(a|=24),E=tr(3,null,null,a),t.current=E,E.stateNode=t,a=Hc(),a.refCount++,t.pooledCache=a,a.refCount++,E.memoizedState={element:c,isDehydrated:s,cache:a},Vc(E),t}function im(t){return t?(t=Gi,t):Gi}function sm(t,a,s,c,m,E){m=im(m),c.context===null?c.context=m:c.pendingContext=m,c=_a(a),c.payload={element:s},E=E===void 0?null:E,E!==null&&(c.callback=E),s=Ma(t,c,a),s!==null&&(Qn(s,t,a),Xs(s,t,a))}function lm(t,a){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var s=t.retryLane;t.retryLane=s!==0&&s<a?s:a}}function ux(t,a){lm(t,a),(t=t.alternate)&&lm(t,a)}function om(t){if(t.tag===13||t.tag===31){var a=li(t,67108864);a!==null&&Qn(a,t,67108864),ux(t,67108864)}}function cm(t){if(t.tag===13||t.tag===31){var a=sr();a=Xt(a);var s=li(t,a);s!==null&&Qn(s,t,a),ux(t,a)}}var m0=!0;function My(t,a,s,c){var m=P.T;P.T=null;var E=V.p;try{V.p=2,xx(t,a,s,c)}finally{V.p=E,P.T=m}}function jy(t,a,s,c){var m=P.T;P.T=null;var E=V.p;try{V.p=8,xx(t,a,s,c)}finally{V.p=E,P.T=m}}function xx(t,a,s,c){if(m0){var m=dx(c);if(m===null)Zu(t,a,c,g0,s),xm(t,c);else if(Ry(m,t,a,s,c))c.stopPropagation();else if(xm(t,c),a&4&&-1<Ty.indexOf(t)){for(;m!==null;){var E=Yr(m);if(E!==null)switch(E.tag){case 3:if(E=E.stateNode,E.current.memoizedState.isDehydrated){var k=yt(E.pendingLanes);if(k!==0){var _=E;for(_.pendingLanes|=2,_.entangledLanes|=2;k;){var H=1<<31-re(k);_.entanglements[1]|=H,k&=~H}Ir(E),(Dt&6)===0&&(Jo=Ye()+500,dl(0))}}break;case 31:case 13:_=li(E,2),_!==null&&Qn(_,E,2),t0(),ux(E,2)}if(E=dx(c),E===null&&Zu(t,a,c,g0,s),E===m)break;m=E}m!==null&&c.stopPropagation()}else Zu(t,a,c,null,s)}}function dx(t){return t=We(t),fx(t)}var g0=null;function fx(t){if(g0=null,t=On(t),t!==null){var a=o(t);if(a===null)t=null;else{var s=a.tag;if(s===13){if(t=u(a),t!==null)return t;t=null}else if(s===31){if(t=d(a),t!==null)return t;t=null}else if(s===3){if(a.stateNode.current.memoizedState.isDehydrated)return a.tag===3?a.stateNode.containerInfo:null;t=null}else a!==t&&(t=null)}}return g0=t,null}function um(t){switch(t){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(nn()){case se:return 2;case me:return 8;case je:case Ke:return 32;case it:return 268435456;default:return 32}default:return 32}}var hx=!1,$a=null,qa=null,Ga=null,yl=new Map,bl=new Map,Va=[],Ty="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 xm(t,a){switch(t){case"focusin":case"focusout":$a=null;break;case"dragenter":case"dragleave":qa=null;break;case"mouseover":case"mouseout":Ga=null;break;case"pointerover":case"pointerout":yl.delete(a.pointerId);break;case"gotpointercapture":case"lostpointercapture":bl.delete(a.pointerId)}}function Cl(t,a,s,c,m,E){return t===null||t.nativeEvent!==E?(t={blockedOn:a,domEventName:s,eventSystemFlags:c,nativeEvent:E,targetContainers:[m]},a!==null&&(a=Yr(a),a!==null&&om(a)),t):(t.eventSystemFlags|=c,a=t.targetContainers,m!==null&&a.indexOf(m)===-1&&a.push(m),t)}function Ry(t,a,s,c,m){switch(a){case"focusin":return $a=Cl($a,t,a,s,c,m),!0;case"dragenter":return qa=Cl(qa,t,a,s,c,m),!0;case"mouseover":return Ga=Cl(Ga,t,a,s,c,m),!0;case"pointerover":var E=m.pointerId;return yl.set(E,Cl(yl.get(E)||null,t,a,s,c,m)),!0;case"gotpointercapture":return E=m.pointerId,bl.set(E,Cl(bl.get(E)||null,t,a,s,c,m)),!0}return!1}function dm(t){var a=On(t.target);if(a!==null){var s=o(a);if(s!==null){if(a=s.tag,a===13){if(a=u(s),a!==null){t.blockedOn=a,Ri(t.priority,function(){cm(s)});return}}else if(a===31){if(a=d(s),a!==null){t.blockedOn=a,Ri(t.priority,function(){cm(s)});return}}else if(a===3&&s.stateNode.current.memoizedState.isDehydrated){t.blockedOn=s.tag===3?s.stateNode.containerInfo:null;return}}}t.blockedOn=null}function E0(t){if(t.blockedOn!==null)return!1;for(var a=t.targetContainers;0<a.length;){var s=dx(t.nativeEvent);if(s===null){s=t.nativeEvent;var c=new s.constructor(s.type,s);Oe=c,s.target.dispatchEvent(c),Oe=null}else return a=Yr(s),a!==null&&om(a),t.blockedOn=s,!1;a.shift()}return!0}function fm(t,a,s){E0(t)&&s.delete(a)}function Oy(){hx=!1,$a!==null&&E0($a)&&($a=null),qa!==null&&E0(qa)&&(qa=null),Ga!==null&&E0(Ga)&&(Ga=null),yl.forEach(fm),bl.forEach(fm)}function y0(t,a){t.blockedOn===a&&(t.blockedOn=null,hx||(hx=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,Oy)))}var b0=null;function hm(t){b0!==t&&(b0=t,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){b0===t&&(b0=null);for(var a=0;a<t.length;a+=3){var s=t[a],c=t[a+1],m=t[a+2];if(typeof c!="function"){if(fx(c||s)===null)continue;break}var E=Yr(s);E!==null&&(t.splice(a,3),a-=3,du(E,{pending:!0,data:m,method:s.method,action:c},c,m))}}))}function ps(t){function a(H){return y0(H,t)}$a!==null&&y0($a,t),qa!==null&&y0(qa,t),Ga!==null&&y0(Ga,t),yl.forEach(a),bl.forEach(a);for(var s=0;s<Va.length;s++){var c=Va[s];c.blockedOn===t&&(c.blockedOn=null)}for(;0<Va.length&&(s=Va[0],s.blockedOn===null);)dm(s),s.blockedOn===null&&Va.shift();if(s=(t.ownerDocument||t).$$reactFormReplay,s!=null)for(c=0;c<s.length;c+=3){var m=s[c],E=s[c+1],k=m[Nn]||null;if(typeof E=="function")k||hm(s);else if(k){var _=null;if(E&&E.hasAttribute("formAction")){if(m=E,k=E[Nn]||null)_=k.formAction;else if(fx(m)!==null)continue}else _=k.action;typeof _=="function"?s[c+1]=_:(s.splice(c,3),c-=3),hm(s)}}}function pm(){function t(E){E.canIntercept&&E.info==="react-transition"&&E.intercept({handler:function(){return new Promise(function(k){return m=k})},focusReset:"manual",scroll:"manual"})}function a(){m!==null&&(m(),m=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,m=null;return navigation.addEventListener("navigate",t),navigation.addEventListener("navigatesuccess",a),navigation.addEventListener("navigateerror",a),setTimeout(s,100),function(){c=!0,navigation.removeEventListener("navigate",t),navigation.removeEventListener("navigatesuccess",a),navigation.removeEventListener("navigateerror",a),m!==null&&(m(),m=null)}}}function px(t){this._internalRoot=t}C0.prototype.render=px.prototype.render=function(t){var a=this._internalRoot;if(a===null)throw Error(i(409));var s=a.current,c=sr();sm(s,c,t,a,null,null)},C0.prototype.unmount=px.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var a=t.containerInfo;sm(t.current,2,null,t,null,null),t0(),a[ba]=null}};function C0(t){this._internalRoot=t}C0.prototype.unstable_scheduleHydration=function(t){if(t){var a=Ti();t={blockedOn:null,target:t,priority:a};for(var s=0;s<Va.length&&a!==0&&a<Va[s].priority;s++);Va.splice(s,0,t),s===0&&dm(t)}};var mm=n.version;if(mm!=="19.2.7")throw Error(i(527,mm,"19.2.7"));V.findDOMNode=function(t){var a=t._reactInternals;if(a===void 0)throw typeof t.render=="function"?Error(i(188)):(t=Object.keys(t).join(","),Error(i(268,t)));return t=h(a),t=t!==null?g(t):null,t=t===null?null:t.stateNode,t};var zy={bundleType:0,version:"19.2.7",rendererPackageName:"react-dom",currentDispatcherRef:P,reconcilerVersion:"19.2.7"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var v0=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!v0.isDisabled&&v0.supportsFiber)try{Gt=v0.inject(zy),Bt=v0}catch{}}return Al.createRoot=function(t,a){if(!l(t))throw Error(i(299));var s=!1,c="",m=A1,E=k1,k=B1;return a!=null&&(a.unstable_strictMode===!0&&(s=!0),a.identifierPrefix!==void 0&&(c=a.identifierPrefix),a.onUncaughtError!==void 0&&(m=a.onUncaughtError),a.onCaughtError!==void 0&&(E=a.onCaughtError),a.onRecoverableError!==void 0&&(k=a.onRecoverableError)),a=am(t,1,!1,null,null,s,c,null,m,E,k,pm),t[ba]=a.current,Xu(t),new px(a)},Al.hydrateRoot=function(t,a,s){if(!l(t))throw Error(i(299));var c=!1,m="",E=A1,k=k1,_=B1,H=null;return s!=null&&(s.unstable_strictMode===!0&&(c=!0),s.identifierPrefix!==void 0&&(m=s.identifierPrefix),s.onUncaughtError!==void 0&&(E=s.onUncaughtError),s.onCaughtError!==void 0&&(k=s.onCaughtError),s.onRecoverableError!==void 0&&(_=s.onRecoverableError),s.formState!==void 0&&(H=s.formState)),a=am(t,1,!0,a,s??null,c,m,H,E,k,_,pm),a.context=im(null),s=a.current,c=sr(),c=Xt(c),m=_a(c),m.callback=null,Ma(s,m,c),s=c,a.current.lanes=s,Ft(a,s),Ir(a),t[ba]=a.current,Xu(t),new C0(a)},Al.version="19.2.7",Al}var Om;function _4(){if(Om)return Ex.exports;Om=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(n){console.error(n)}}return e(),Ex.exports=N4(),Ex.exports}var M4=_4();var Ud=/^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i,K2=/^[\\/]{2}/;function j4(e,n){return n+e.replace(/\\/g,"/")}var zm="popstate";function Lm(e){return typeof e=="object"&&e!=null&&"pathname"in e&&"search"in e&&"hash"in e&&"state"in e&&"key"in e}function T4(e={}){function n(i,l){let o=l.state?.masked,{pathname:u,search:d,hash:f}=o||i.location;return ld("",{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:Hl(l)}return O4(n,r,null,e)}function Kt(e,n){if(e===!1||e===null||typeof e>"u")throw new Error(n)}function kr(e,n){if(!e){typeof console<"u"&&console.warn(n);try{throw new Error(n)}catch{}}}function R4(){return Math.random().toString(36).substring(2,10)}function Pm(e,n){return{usr:e.state,key:e.key,idx:n,masked:e.mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}function ld(e,n,r=null,i,l){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof n=="string"?As(n):n,state:r,key:n&&n.key||i||R4(),mask:l}}function Hl({pathname:e="/",search:n="",hash:r=""}){return n&&n!=="?"&&(e+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(e+=r.charAt(0)==="#"?r:"#"+r),e}function As(e){let n={};if(e){let r=e.indexOf("#");r>=0&&(n.hash=e.substring(r),e=e.substring(0,r));let i=e.indexOf("?");i>=0&&(n.search=e.substring(i),e=e.substring(0,i)),e&&(n.pathname=e)}return n}function O4(e,n,r,i={}){let{window:l=document.defaultView,v5Compat:o=!1}=i,u=l.history,d="POP",f=null,h=g();h==null&&(h=0,u.replaceState({...u.state,idx:h},""));function g(){return(u.state||{idx:null}).idx}function p(){d="POP";let A=g(),B=A==null?null:A-h;h=A,f&&f({action:d,location:v.location,delta:B})}function y(A,B){d="PUSH";let j=Lm(A)?A:ld(v.location,A,B);h=g()+1;let S=Pm(j,h),N=v.createHref(j.mask||j);try{u.pushState(S,"",N)}catch(T){if(T instanceof DOMException&&T.name==="DataCloneError")throw T;l.location.assign(N)}o&&f&&f({action:d,location:v.location,delta:1})}function b(A,B){d="REPLACE";let j=Lm(A)?A:ld(v.location,A,B);h=g();let S=Pm(j,h),N=v.createHref(j.mask||j);u.replaceState(S,"",N),o&&f&&f({action:d,location:v.location,delta:0})}function C(A){return z4(l,A)}let v={get action(){return d},get location(){return e(l,u)},listen(A){if(f)throw new Error("A history only accepts one active listener");return l.addEventListener(zm,p),f=A,()=>{l.removeEventListener(zm,p),f=null}},createHref(A){return n(l,A)},createURL:C,encodeLocation(A){let B=C(A);return{pathname:B.pathname,search:B.search,hash:B.hash}},push:y,replace:b,go(A){return u.go(A)}};return v}function z4(e,n,r=!1){let i="http://localhost";e&&(i=e.location.origin!=="null"?e.location.origin:e.location.href),Kt(i,"No window.location.(origin|href) available to create URL");let l=typeof n=="string"?n:Hl(n);return l=l.replace(/ $/,"%20"),!r&&K2.test(l)&&(l=i+l),new URL(l,i)}function X2(e,n,r="/"){return L4(e,n,r,!1)}function L4(e,n,r,i,l){let o=typeof n=="string"?As(n):n,u=ma(o.pathname||"/",r);if(u==null)return null;let d=P4(e),f=null,h=t8(u);for(let g=0;f==null&&g<d.length;++g)f=K4(d[g],h,i);return f}function P4(e){let n=Z2(e);return I4(n),n}function Z2(e,n=[],r=[],i="",l=!1){let o=(u,d,f=l,h)=>{let g={relativePath:h===void 0?u.path||"":h,caseSensitive:u.caseSensitive===!0,childrenIndex:d,route:u};if(g.relativePath.startsWith("/")){if(!g.relativePath.startsWith(i)&&f)return;Kt(g.relativePath.startsWith(i),`Absolute route path "${g.relativePath}" nested under path "${i}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),g.relativePath=g.relativePath.slice(i.length)}let p=Tr([i,g.relativePath]),y=r.concat(g);u.children&&u.children.length>0&&(Kt(u.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${p}".`),Z2(u.children,n,y,p,f)),!(u.path==null&&!u.index)&&n.push({path:p,score:Q4(p,u.index),routesMeta:y.map((b,C)=>{let[v,A]=e8(b.relativePath,b.caseSensitive,C===y.length-1);return{...b,matcher:v,compiledParams:A}})})};return e.forEach((u,d)=>{if(u.path===""||!u.path?.includes("?"))o(u,d);else for(let f of W2(u.path))o(u,d,!0,f)}),n}function W2(e){let n=e.split("/");if(n.length===0)return[];let[r,...i]=n,l=r.endsWith("?"),o=r.replace(/\?$/,"");if(i.length===0)return l?[o,""]:[o];let u=W2(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 I4(e){e.sort((n,r)=>n.score!==r.score?r.score-n.score:Y4(n.routesMeta.map(i=>i.childrenIndex),r.routesMeta.map(i=>i.childrenIndex)))}var U4=/^:[\w-]+$/,H4=3,$4=2,q4=1,G4=10,V4=-2,Im=e=>e==="*";function Q4(e,n){let r=e.split("/"),i=r.length;return r.some(Im)&&(i+=V4),n&&(i+=$4),r.filter(l=>!Im(l)).reduce((l,o)=>l+(U4.test(o)?H4:o===""?q4:G4),i)}function Y4(e,n){return e.length===n.length&&e.slice(0,-1).every((i,l)=>i===n[l])?e[e.length-1]-n[n.length-1]:0}function K4(e,n,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,g=o==="/"?n:n.slice(o.length)||"/",p={path:f.relativePath,caseSensitive:f.caseSensitive,end:h},y=f.matcher&&f.compiledParams?J2(p,g,f.matcher,f.compiledParams):$l(p,g),b=f.route;if(!y&&h&&r&&!i[i.length-1].route.index&&(y=$l({path:f.relativePath,caseSensitive:f.caseSensitive,end:!1},g)),!y)return null;Object.assign(l,y.params),u.push({params:l,pathname:Tr([o,y.pathname]),pathnameBase:W4(Tr([o,y.pathnameBase])),route:b}),y.pathnameBase!=="/"&&(o=Tr([o,y.pathnameBase]))}return u}function $l(e,n){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[r,i]=e8(e.path,e.caseSensitive,e.end);return J2(e,n,r,i)}function J2(e,n,r,i){let l=n.match(r);if(!l)return null;let o=l[0],u=o.replace(/(.)\/+$/,"$1"),d=l.slice(1);return{params:i.reduce((h,{paramName:g,isOptional:p},y)=>{if(g==="*"){let C=d[y]||"";u=o.slice(0,o.length-C.length).replace(/(.)\/+$/,"$1")}const b=d[y];return p&&!b?h[g]=void 0:h[g]=(b||"").replace(/%2F/g,"/"),h},{}),pathname:o,pathnameBase:u,pattern:e}}function e8(e,n=!1,r=!0){kr(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,g)=>{if(i.push({paramName:d,isOptional:f!=null}),f){let p=g.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,n?void 0:"i"),i]}function t8(e){try{return e.split("/").map(n=>decodeURIComponent(n).replace(/\//g,"%2F")).join("/")}catch(n){return kr(!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 (${n}).`),e}}function ma(e,n){if(n==="/")return e;if(!e.toLowerCase().startsWith(n.toLowerCase()))return null;let r=n.endsWith("/")?n.length-1:n.length,i=e.charAt(r);return i&&i!=="/"?null:e.slice(r)||"/"}function X4(e,n="/"){let{pathname:r,search:i="",hash:l=""}=typeof e=="string"?As(e):e,o;return r?(r=n8(r),r.startsWith("/")?o=Um(r.substring(1),"/"):o=Um(r,n)):o=n,{pathname:o,search:J4(i),hash:eb(l)}}function Um(e,n){let r=Q0(n).split("/");return e.split("/").forEach(l=>{l===".."?r.length>1&&r.pop():l!=="."&&r.push(l)}),r.length>1?r.join("/"):"/"}function vx(e,n,r,i){return`Cannot include a '${e}' character in a manually specified \`to.${n}\` 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 Z4(e){return e.filter((n,r)=>r===0||n.route.path&&n.route.path.length>0)}function Hd(e){let n=Z4(e);return n.map((r,i)=>i===n.length-1?r.pathname:r.pathnameBase)}function tc(e,n,r,i=!1){let l;typeof e=="string"?l=As(e):(l={...e},Kt(!l.pathname||!l.pathname.includes("?"),vx("?","pathname","search",l)),Kt(!l.pathname||!l.pathname.includes("#"),vx("#","pathname","hash",l)),Kt(!l.search||!l.search.includes("#"),vx("#","search","hash",l)));let o=e===""||l.pathname==="",u=o?"/":l.pathname,d;if(u==null)d=r;else{let p=n.length-1;if(!i&&u.startsWith("..")){let y=u.split("/");for(;y[0]==="..";)y.shift(),p-=1;l.pathname=y.join("/")}d=p>=0?n[p]:"/"}let f=X4(l,d),h=u&&u!=="/"&&u.endsWith("/"),g=(o||u===".")&&r.endsWith("/");return!f.pathname.endsWith("/")&&(h||g)&&(f.pathname+="/"),f}var n8=e=>e.replace(/[\\/]{2,}/g,"/"),Tr=e=>n8(e.join("/")),Q0=e=>e.replace(/\/+$/,""),W4=e=>Q0(e).replace(/^\/*/,"/"),J4=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,eb=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,tb=class{constructor(e,n,r,i=!1){this.status=e,this.statusText=n||"",this.internal=i,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}};function nb(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function rb(e){let n=e.map(r=>r.route.path).filter(Boolean);return Tr(n)||"/"}var r8=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function a8(e,n){let r=e;if(typeof r!="string"||!Ud.test(r))return{absoluteURL:void 0,isExternal:!1,to:r};let i=r,l=!1;if(r8)try{let o=new URL(window.location.href),u=K2.test(r)?new URL(j4(r,o.protocol)):new URL(r),d=ma(u.pathname,n);u.origin===o.origin&&d!=null?r=d+u.search+u.hash:l=!0}catch{kr(!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 i8=["POST","PUT","PATCH","DELETE"];new Set(i8);var ab=["GET",...i8];new Set(ab);var ib=["about:","blob:","chrome:","chrome-untrusted:","content:","data:","devtools:","file:","filesystem:","javascript:"];function sb(e){try{return ib.includes(new URL(e).protocol)}catch{return!1}}var ks=D.createContext(null);ks.displayName="DataRouter";var nc=D.createContext(null);nc.displayName="DataRouterState";var s8=D.createContext(!1);function lb(){return D.useContext(s8)}var l8=D.createContext({isTransitioning:!1});l8.displayName="ViewTransition";var ob=D.createContext(new Map);ob.displayName="Fetchers";var cb=D.createContext(null);cb.displayName="Await";var xr=D.createContext(null);xr.displayName="Navigation";var Jl=D.createContext(null);Jl.displayName="Location";var wr=D.createContext({outlet:null,matches:[],isDataRoute:!1});wr.displayName="Route";var $d=D.createContext(null);$d.displayName="RouteError";var o8="REACT_ROUTER_ERROR",ub="REDIRECT",xb="ROUTE_ERROR_RESPONSE";function db(e){if(e.startsWith(`${o8}:${ub}:{`))try{let n=JSON.parse(e.slice(28));if(typeof n=="object"&&n&&typeof n.status=="number"&&typeof n.statusText=="string"&&typeof n.location=="string"&&typeof n.reloadDocument=="boolean"&&typeof n.replace=="boolean")return n}catch{}}function fb(e){if(e.startsWith(`${o8}:${xb}:{`))try{let n=JSON.parse(e.slice(40));if(typeof n=="object"&&n&&typeof n.status=="number"&&typeof n.statusText=="string")return new tb(n.status,n.statusText,n.data)}catch{}}function hb(e,{relative:n}={}){Kt(Ni(),"useHref() may be used only in the context of a <Router> component.");let{basename:r,navigator:i}=D.useContext(xr),{hash:l,pathname:o,search:u}=eo(e,{relative:n}),d=o;return r!=="/"&&(d=o==="/"?r:Tr([r,o])),i.createHref({pathname:d,search:u,hash:l})}function Ni(){return D.useContext(Jl)!=null}function Fr(){return Kt(Ni(),"useLocation() may be used only in the context of a <Router> component."),D.useContext(Jl).location}function pb(e){Kt(Ni(),"useMatch() may be used only in the context of a <Router> component.");let{pathname:n}=Fr();return D.useMemo(()=>$l(e,t8(n)),[n,e])}var c8="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function u8(e){D.useContext(xr).static||D.useLayoutEffect(e)}function _i(){let{isDataRoute:e}=D.useContext(wr);return e?_b():mb()}function mb(){Kt(Ni(),"useNavigate() may be used only in the context of a <Router> component.");let e=D.useContext(ks),{basename:n,navigator:r}=D.useContext(xr),{matches:i}=D.useContext(wr),{pathname:l}=Fr(),o=JSON.stringify(Hd(i)),u=D.useRef(!1);return u8(()=>{u.current=!0}),D.useCallback((f,h={})=>{if(kr(u.current,c8),!u.current)return;if(typeof f=="number"){r.go(f);return}let g=tc(f,JSON.parse(o),l,h.relative==="path");e==null&&n!=="/"&&(g.pathname=g.pathname==="/"?n:Tr([n,g.pathname])),(h.replace?r.replace:r.push)(g,h.state,h)},[n,r,o,l,e])}var gb=D.createContext(null);function Eb(e){let n=D.useContext(wr).outlet;return D.useMemo(()=>n&&D.createElement(gb.Provider,{value:e},n),[n,e])}function yb(){let{matches:e}=D.useContext(wr);return e[e.length-1]?.params??{}}function eo(e,{relative:n}={}){let{matches:r}=D.useContext(wr),{pathname:i}=Fr(),l=JSON.stringify(Hd(r));return D.useMemo(()=>tc(e,JSON.parse(l),i,n==="path"),[e,l,i,n])}function bb(e,n){return x8(e,n)}function x8(e,n,r){Kt(Ni(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:i}=D.useContext(xr),{matches:l}=D.useContext(wr),o=l[l.length-1],u=o?o.params:{},d=o?o.pathname:"/",f=o?o.pathnameBase:"/",h=o&&o.route;{let A=h&&h.path||"";f8(d,!h||A.endsWith("*")||A.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${d}" (under <Route path="${A}">) 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="${A}"> to <Route path="${A==="/"?"*":`${A}/*`}">.`)}let g=Fr(),p;if(n){let A=typeof n=="string"?As(n):n;Kt(f==="/"||A.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 "${A.pathname}" was given in the \`location\` prop.`),p=A}else p=g;let y=p.pathname||"/",b=y;if(f!=="/"){let A=f.replace(/^\//,"").split("/");b="/"+y.replace(/^\//,"").split("/").slice(A.length).join("/")}let C=r&&r.state.matches.length?r.state.matches.map(A=>Object.assign(A,{route:r.manifest[A.route.id]||A.route})):X2(e,{pathname:b});kr(h||C!=null,`No routes matched location "${p.pathname}${p.search}${p.hash}" `),kr(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 v=Bb(C&&C.map(A=>Object.assign({},A,{params:Object.assign({},u,A.params),pathname:Tr([f,i.encodeLocation?i.encodeLocation(A.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:A.pathname]),pathnameBase:A.pathnameBase==="/"?f:Tr([f,i.encodeLocation?i.encodeLocation(A.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:A.pathnameBase])})),l,r);return n&&v?D.createElement(Jl.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",mask:void 0,...p},navigationType:"POP"}},v):v}function Cb(){let e=Nb(),n=nb(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"}},n),r?D.createElement("pre",{style:l},r):null,u)}var vb=D.createElement(Cb,null),d8=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,n){return n.location!==e.location||n.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:n.error,location:n.location,revalidation:e.revalidation||n.revalidation}}componentDidCatch(e,n){this.props.onError?this.props.onError(e,n):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=fb(e.digest);r&&(e=r)}let n=e!==void 0?D.createElement(wr.Provider,{value:this.props.routeContext},D.createElement($d.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?D.createElement(Ab,{error:e},n):n}};d8.contextType=s8;var Ax=new WeakMap;function Ab({children:e,error:n}){let{basename:r}=D.useContext(xr);if(typeof n=="object"&&n&&"digest"in n&&typeof n.digest=="string"){let i=db(n.digest);if(i){let l=Ax.get(n);if(l)throw l;let o=a8(i.location,r),u=o.absoluteURL||o.to;if(sb(u))throw new Error("Invalid redirect location");if(r8&&!Ax.get(n))if(o.isExternal||i.reloadDocument)window.location.href=u;else{const d=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(o.to,{replace:i.replace}));throw Ax.set(n,d),d}return D.createElement("meta",{httpEquiv:"refresh",content:`0;url=${u}`})}}return e}function kb({routeContext:e,match:n,children:r}){let i=D.useContext(ks);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),D.createElement(wr.Provider,{value:e},r)}function Bb(e,n=[],r){let i=r?.state;if(e==null){if(!i)return null;if(i.errors)e=i.matches;else if(n.length===0&&!i.initialized&&i.matches.length>0)e=i.matches;else return null}let l=e,o=i?.errors;if(o!=null){let g=l.findIndex(p=>p.route.id&&o?.[p.route.id]!==void 0);Kt(g>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(o).join(",")}`),l=l.slice(0,Math.min(l.length,g+1))}let u=!1,d=-1;if(r&&i){u=i.renderFallback;for(let g=0;g<l.length;g++){let p=l[g];if((p.route.HydrateFallback||p.route.hydrateFallbackElement)&&(d=g),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?(g,p)=>{f(g,{location:i.location,params:i.matches?.[0]?.params??{},pattern:rb(i.matches),errorInfo:p})}:void 0;return l.reduceRight((g,p,y)=>{let b,C=!1,v=null,A=null;i&&(b=o&&p.route.id?o[p.route.id]:void 0,v=p.route.errorElement||vb,u&&(d<0&&y===0?(f8("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),C=!0,A=null):d===y&&(C=!0,A=p.route.hydrateFallbackElement||null)));let B=n.concat(l.slice(0,y+1)),j=()=>{let S;return b?S=v:C?S=A:p.route.Component?S=D.createElement(p.route.Component,null):p.route.element?S=p.route.element:S=g,D.createElement(kb,{match:p,routeContext:{outlet:g,matches:B,isDataRoute:i!=null},children:S})};return i&&(p.route.ErrorBoundary||p.route.errorElement||y===0)?D.createElement(d8,{location:i.location,revalidation:i.revalidation,component:v,error:b,children:j(),routeContext:{outlet:null,matches:B,isDataRoute:!0},onError:h}):j()},null)}function qd(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Db(e){let n=D.useContext(ks);return Kt(n,qd(e)),n}function wb(e){let n=D.useContext(nc);return Kt(n,qd(e)),n}function Fb(e){let n=D.useContext(wr);return Kt(n,qd(e)),n}function Gd(e){let n=Fb(e),r=n.matches[n.matches.length-1];return Kt(r.route.id,`${e} can only be used on routes that contain a unique "id"`),r.route.id}function Sb(){return Gd("useRouteId")}function Nb(){let e=D.useContext($d),n=wb("useRouteError"),r=Gd("useRouteError");return e!==void 0?e:n.errors?.[r]}function _b(){let{router:e}=Db("useNavigate"),n=Gd("useNavigate"),r=D.useRef(!1);return u8(()=>{r.current=!0}),D.useCallback(async(l,o={})=>{kr(r.current,c8),r.current&&(typeof l=="number"?await e.navigate(l):await e.navigate(l,{fromRouteId:n,...o}))},[e,n])}var Hm={};function f8(e,n,r){!n&&!Hm[e]&&(Hm[e]=!0,kr(!1,r))}D.memo(Mb);function Mb({routes:e,manifest:n,future:r,state:i,isStatic:l,onError:o}){return x8(e,void 0,{manifest:n,state:i,isStatic:l,onError:o})}function jb({to:e,replace:n,state:r,relative:i}){Kt(Ni(),"<Navigate> may be used only in the context of a <Router> component.");let{static:l}=D.useContext(xr);kr(!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(wr),{pathname:u}=Fr(),d=_i(),f=tc(e,Hd(o),u,i==="path"),h=JSON.stringify(f);return D.useEffect(()=>{d(JSON.parse(h),{replace:n,state:r,relative:i})},[d,h,i,n,r]),null}function Tb(e){return Eb(e.context)}function Tl(e){Kt(!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 Rb({basename:e="/",children:n=null,location:r,navigationType:i="POP",navigator:l,static:o=!1,useTransitions:u}){Kt(!Ni(),"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=As(r));let{pathname:h="/",search:g="",hash:p="",state:y=null,key:b="default",mask:C}=r,v=D.useMemo(()=>{let A=ma(h,d);return A==null?null:{location:{pathname:A,search:g,hash:p,state:y,key:b,mask:C},navigationType:i}},[d,h,g,p,y,b,i,C]);return kr(v!=null,`<Router basename="${d}"> is not able to match the URL "${h}${g}${p}" because it does not start with the basename, so the <Router> won't render anything.`),v==null?null:D.createElement(xr.Provider,{value:f},D.createElement(Jl.Provider,{children:n,value:v}))}function Ob({children:e,location:n}){return bb(od(e),n)}function od(e,n=[]){let r=[];return D.Children.forEach(e,(i,l)=>{if(!D.isValidElement(i))return;let o=[...n,l];if(i.type===D.Fragment){r.push.apply(r,od(i.props.children,o));return}Kt(i.type===Tl,`[${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>`),Kt(!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=od(i.props.children,o)),r.push(u)}),r}var P0="get",I0="application/x-www-form-urlencoded";function rc(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}function zb(e){return rc(e)&&e.tagName.toLowerCase()==="button"}function Lb(e){return rc(e)&&e.tagName.toLowerCase()==="form"}function Pb(e){return rc(e)&&e.tagName.toLowerCase()==="input"}function Ib(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Ub(e,n){return e.button===0&&(!n||n==="_self")&&!Ib(e)}function cd(e=""){return new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((n,r)=>{let i=e[r];return n.concat(Array.isArray(i)?i.map(l=>[r,l]):[[r,i]])},[]))}function Hb(e,n){let r=cd(e);return n&&n.forEach((i,l)=>{r.has(l)||n.getAll(l).forEach(o=>{r.append(l,o)})}),r}var B0=null;function $b(){if(B0===null)try{new FormData(document.createElement("form"),0),B0=!1}catch{B0=!0}return B0}var qb=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function kx(e){return e!=null&&!qb.has(e)?(kr(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${I0}"`),null):e}function Gb(e,n){let r,i,l,o,u;if(Lb(e)){let d=e.getAttribute("action");i=d?ma(d,n):null,r=e.getAttribute("method")||P0,l=kx(e.getAttribute("enctype"))||I0,o=new FormData(e)}else if(zb(e)||Pb(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?ma(f,n):null,r=e.getAttribute("formmethod")||d.getAttribute("method")||P0,l=kx(e.getAttribute("formenctype"))||kx(d.getAttribute("enctype"))||I0,o=new FormData(d,e),!$b()){let{name:h,type:g,value:p}=e;if(g==="image"){let y=h?`${h}.`:"";o.append(`${y}x`,"0"),o.append(`${y}y`,"0")}else h&&o.append(h,p)}}else{if(rc(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=P0,i=null,l=I0,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 Vd(e,n){if(e===!1||e===null||typeof e>"u")throw new Error(n)}function h8(e,n,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}`:n&&ma(l.pathname,n)==="/"?l.pathname=`${Q0(n)}/_root.${i}`:l.pathname=`${Q0(l.pathname)}.${i}`,l}async function Vb(e,n){if(e.id in n)return n[e.id];try{let r=await import(e.module);return n[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 Qb(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 Yb(e,n,r){let i=await Promise.all(e.map(async l=>{let o=n.routes[l.route.id];if(o){let u=await Vb(o,r);return u.links?u.links():[]}return[]}));return Wb(i.flat(1).filter(Qb).filter(l=>l.rel==="stylesheet"||l.rel==="preload").map(l=>l.rel==="stylesheet"?{...l,rel:"prefetch",as:"style"}:{...l,rel:"prefetch"}))}function $m(e,n,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"?n.filter((f,h)=>u(f,h)||d(f,h)):o==="data"?n.filter((f,h)=>{let g=i.routes[f.route.id];if(!g||!g.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 Kb(e,n,{includeHydrateFallback:r}={}){return Xb(e.map(i=>{let l=n.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 Xb(e){return[...new Set(e)]}function Zb(e){let n={},r=Object.keys(e).sort();for(let i of r)n[i]=e[i];return n}function Wb(e,n){let r=new Set;return new Set(n),e.reduce((i,l)=>{let o=JSON.stringify(Zb(l));return r.has(o)||(r.add(o),i.push({key:o,link:l})),i},[])}function Qd(){let e=D.useContext(ks);return Vd(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function Jb(){let e=D.useContext(nc);return Vd(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var Yd=D.createContext(void 0);Yd.displayName="FrameworkContext";function ac(){let e=D.useContext(Yd);return Vd(e,"You must render this element inside a <HydratedRouter> element"),e}function e7(e,n){let r=D.useContext(Yd),[i,l]=D.useState(!1),[o,u]=D.useState(!1),{onFocus:d,onBlur:f,onMouseEnter:h,onMouseLeave:g,onTouchStart:p}=n,y=D.useRef(null);D.useEffect(()=>{if(e==="render"&&u(!0),e==="viewport"){let v=B=>{B.forEach(j=>{u(j.isIntersecting)})},A=new IntersectionObserver(v,{threshold:.5});return y.current&&A.observe(y.current),()=>{A.disconnect()}}},[e]),D.useEffect(()=>{if(i){let v=setTimeout(()=>{u(!0)},100);return()=>{clearTimeout(v)}}},[i]);let b=()=>{l(!0)},C=()=>{l(!1),u(!1)};return r?e!=="intent"?[o,y,{}]:[o,y,{onFocus:kl(d,b),onBlur:kl(f,C),onMouseEnter:kl(h,b),onMouseLeave:kl(g,C),onTouchStart:kl(p,b)}]:[!1,y,{}]}function kl(e,n){return r=>{e&&e(r),r.defaultPrevented||n(r)}}function t7({page:e,...n}){let r=lb(),{nonce:i}=ac(),{router:l}=Qd(),o=D.useMemo(()=>X2(l.routes,e,l.basename),[l.routes,e,l.basename]);return o?(n.nonce==null&&i&&(n={...n,nonce:i}),r?D.createElement(r7,{page:e,matches:o,...n}):D.createElement(a7,{page:e,matches:o,...n})):null}function n7(e){let{manifest:n,routeModules:r}=ac(),[i,l]=D.useState([]);return D.useEffect(()=>{let o=!1;return Yb(e,n,r).then(u=>{o||l(u)}),()=>{o=!0}},[e,n,r]),i}function r7({page:e,matches:n,...r}){let i=Fr(),{future:l}=ac(),{basename:o}=Qd(),u=D.useMemo(()=>{if(e===i.pathname+i.search+i.hash)return[];let d=h8(e,o,l.v8_trailingSlashAwareDataRequests,"rsc"),f=!1,h=[];for(let g of n)typeof g.route.shouldRevalidate=="function"?f=!0:h.push(g.route.id);return f&&h.length>0&&d.searchParams.set("_routes",h.join(",")),[d.pathname+d.search]},[o,l.v8_trailingSlashAwareDataRequests,e,i,n]);return D.createElement(D.Fragment,null,u.map(d=>D.createElement("link",{key:d,rel:"prefetch",as:"fetch",href:d,...r})))}function a7({page:e,matches:n,...r}){let i=Fr(),{future:l,manifest:o,routeModules:u}=ac(),{basename:d}=Qd(),{loaderData:f,matches:h}=Jb(),g=D.useMemo(()=>$m(e,n,h,o,i,"data"),[e,n,h,o,i]),p=D.useMemo(()=>$m(e,n,h,o,i,"assets"),[e,n,h,o,i]),y=D.useMemo(()=>{if(e===i.pathname+i.search+i.hash)return[];let v=new Set,A=!1;if(n.forEach(j=>{let S=o.routes[j.route.id];!S||!S.hasLoader||(!g.some(N=>N.route.id===j.route.id)&&j.route.id in f&&u[j.route.id]?.shouldRevalidate||S.hasClientLoader?A=!0:v.add(j.route.id))}),v.size===0)return[];let B=h8(e,d,l.v8_trailingSlashAwareDataRequests,"data");return A&&v.size>0&&B.searchParams.set("_routes",n.filter(j=>v.has(j.route.id)).map(j=>j.route.id).join(",")),[B.pathname+B.search]},[d,l.v8_trailingSlashAwareDataRequests,f,i,o,g,n,e,u]),b=D.useMemo(()=>Kb(p,o),[p,o]),C=n7(p);return D.createElement(D.Fragment,null,y.map(v=>D.createElement("link",{key:v,rel:"prefetch",as:"fetch",href:v,...r})),b.map(v=>D.createElement("link",{key:v,rel:"modulepreload",href:v,...r})),C.map(({key:v,link:A})=>D.createElement("link",{key:v,nonce:r.nonce,...A,crossOrigin:A.crossOrigin??r.crossOrigin})))}function i7(...e){return n=>{e.forEach(r=>{typeof r=="function"?r(n):r!=null&&(r.current=n)})}}var s7=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{s7&&(window.__reactRouterVersion="7.18.1")}catch{}function l7({basename:e,children:n,useTransitions:r,window:i}){let l=D.useRef();l.current==null&&(l.current=T4({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(Rb,{basename:e,children:n,location:u.location,navigationType:u.action,navigator:o,useTransitions:r})}var p8=D.forwardRef(function({onClick:n,discover:r="render",prefetch:i="none",relative:l,reloadDocument:o,replace:u,mask:d,state:f,target:h,to:g,preventScrollReset:p,viewTransition:y,defaultShouldRevalidate:b,...C},v){let{basename:A,navigator:B,useTransitions:j}=D.useContext(xr),S=typeof g=="string"&&Ud.test(g),N=a8(g,A);g=N.to;let T=hb(g,{relative:l}),F=Fr(),R=null;if(d){let Y=tc(d,[],F.mask?F.mask.pathname:"/",!0);A!=="/"&&(Y.pathname=Y.pathname==="/"?A:Tr([A,Y.pathname])),R=B.createHref(Y)}let[L,I,O]=e7(i,C),$=x7(g,{replace:u,mask:d,state:f,target:h,preventScrollReset:p,relative:l,viewTransition:y,defaultShouldRevalidate:b,useTransitions:j});function Q(Y){n&&n(Y),Y.defaultPrevented||$(Y)}let le=!(N.isExternal||o),ee=D.createElement("a",{...C,...O,href:(le?R:void 0)||N.absoluteURL||T,onClick:le?Q:n,ref:i7(v,I),target:h,"data-discover":!S&&r==="render"?"true":void 0});return L&&!S?D.createElement(D.Fragment,null,ee,D.createElement(t7,{page:T})):ee});p8.displayName="Link";var o7=D.forwardRef(function({"aria-current":n="page",caseSensitive:r=!1,className:i="",end:l=!1,style:o,to:u,viewTransition:d,children:f,...h},g){let p=eo(u,{relative:h.relative}),y=Fr(),b=D.useContext(nc),{navigator:C,basename:v}=D.useContext(xr),A=b!=null&&m7(p)&&d===!0,B=C.encodeLocation?C.encodeLocation(p).pathname:p.pathname,j=y.pathname,S=b&&b.navigation&&b.navigation.location?b.navigation.location.pathname:null;r||(j=j.toLowerCase(),S=S?S.toLowerCase():null,B=B.toLowerCase()),S&&v&&(S=ma(S,v)||S);const N=B!=="/"&&B.endsWith("/")?B.length-1:B.length;let T=j===B||!l&&j.startsWith(B)&&j.charAt(N)==="/",F=S!=null&&(S===B||!l&&S.startsWith(B)&&S.charAt(B.length)==="/"),R={isActive:T,isPending:F,isTransitioning:A},L=T?n:void 0,I;typeof i=="function"?I=i(R):I=[i,T?"active":null,F?"pending":null,A?"transitioning":null].filter(Boolean).join(" ");let O=typeof o=="function"?o(R):o;return D.createElement(p8,{...h,"aria-current":L,className:I,ref:g,style:O,to:u,viewTransition:d},typeof f=="function"?f(R):f)});o7.displayName="NavLink";var c7=D.forwardRef(({discover:e="render",fetcherKey:n,navigate:r,reloadDocument:i,replace:l,state:o,method:u=P0,action:d,onSubmit:f,relative:h,preventScrollReset:g,viewTransition:p,defaultShouldRevalidate:y,...b},C)=>{let{useTransitions:v}=D.useContext(xr),A=h7(),B=p7(d,{relative:h}),j=u.toLowerCase()==="get"?"get":"post",S=typeof d=="string"&&Ud.test(d),N=T=>{if(f&&f(T),T.defaultPrevented)return;T.preventDefault();let F=T.nativeEvent.submitter,R=F?.getAttribute("formmethod")||u,L=()=>A(F||T.currentTarget,{fetcherKey:n,method:R,navigate:r,replace:l,state:o,relative:h,preventScrollReset:g,viewTransition:p,defaultShouldRevalidate:y});v&&r!==!1?D.startTransition(()=>L()):L()};return D.createElement("form",{ref:C,method:j,action:B,onSubmit:i?f:N,...b,"data-discover":!S&&e==="render"?"true":void 0})});c7.displayName="Form";function u7(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function m8(e){let n=D.useContext(ks);return Kt(n,u7(e)),n}function x7(e,{target:n,replace:r,mask:i,state:l,preventScrollReset:o,relative:u,viewTransition:d,defaultShouldRevalidate:f,useTransitions:h}={}){let g=_i(),p=Fr(),y=eo(e,{relative:u});return D.useCallback(b=>{if(Ub(b,n)){b.preventDefault();let C=r!==void 0?r:Hl(p)===Hl(y),v=()=>g(e,{replace:C,mask:i,state:l,preventScrollReset:o,relative:u,viewTransition:d,defaultShouldRevalidate:f});h?D.startTransition(()=>v()):v()}},[p,g,y,r,i,l,n,e,o,u,d,f,h])}function g8(e){kr(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 n=D.useRef(cd(e)),r=D.useRef(!1),i=Fr(),l=D.useMemo(()=>Hb(i.search,r.current?null:n.current),[i.search]),o=_i(),u=D.useCallback((d,f)=>{const h=cd(typeof d=="function"?d(new URLSearchParams(l)):d);r.current=!0,o("?"+h,f)},[o,l]);return[l,u]}var d7=0,f7=()=>`__${String(++d7)}__`;function h7(){let{router:e}=m8("useSubmit"),{basename:n}=D.useContext(xr),r=Sb(),i=e.fetch,l=e.navigate;return D.useCallback(async(o,u={})=>{let{action:d,method:f,encType:h,formData:g,body:p}=Gb(o,n);if(u.navigate===!1){let y=u.fetcherKey||f7();await i(y,r,u.action||d,{defaultShouldRevalidate:u.defaultShouldRevalidate,preventScrollReset:u.preventScrollReset,formData:g,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:g,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,n,r])}function p7(e,{relative:n}={}){let{basename:r}=D.useContext(xr),i=D.useContext(wr);Kt(i,"useFormAction must be used inside a RouteContext");let[l]=i.matches.slice(-1),o={...eo(e||".",{relative:n})},u=Fr();if(e==null){o.search=u.search;let d=new URLSearchParams(o.search),f=d.getAll("index");if(f.some(g=>g==="")){d.delete("index"),f.filter(p=>p).forEach(p=>d.append("index",p));let g=d.toString();o.search=g?`?${g}`:""}}return(!e||e===".")&&l.route.index&&(o.search=o.search?o.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(o.pathname=o.pathname==="/"?r:Tr([r,o.pathname])),Hl(o)}function m7(e,{relative:n}={}){let r=D.useContext(l8);Kt(r!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:i}=m8("useViewTransitionState"),l=eo(e,{relative:n});if(!r.isTransitioning)return!1;let o=ma(r.currentLocation.pathname,i)||r.currentLocation.pathname,u=ma(r.nextLocation.pathname,i)||r.nextLocation.pathname;return $l(l.pathname,u)!=null||$l(l.pathname,o)!=null}const g7="modulepreload",E7=function(e){return"/"+e},qm={},y7=function(n,r,i){let l=Promise.resolve();if(r&&r.length>0){let h=function(g){return Promise.all(g.map(p=>Promise.resolve(p).then(y=>({status:"fulfilled",value:y}),y=>({status:"rejected",reason:y}))))};var u=h;document.getElementsByTagName("link");const d=document.querySelector("meta[property=csp-nonce]"),f=d?.nonce||d?.getAttribute("nonce");l=h(r.map(g=>{if(g=E7(g),g in qm)return;qm[g]=!0;const p=g.endsWith(".css"),y=p?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${g}"]${y}`))return;const b=document.createElement("link");if(b.rel=p?"stylesheet":g7,p||(b.as="script"),b.crossOrigin="",b.href=g,f&&b.setAttribute("nonce",f),document.head.appendChild(b),p)return new Promise((C,v)=>{b.addEventListener("load",C),b.addEventListener("error",()=>v(new Error(`Unable to preload CSS for ${g}`)))})}))}function o(d){const f=new Event("vite:preloadError",{cancelable:!0});if(f.payload=d,window.dispatchEvent(f),!f.defaultPrevented)throw d}return l.then(d=>{for(const f of d||[])f.status==="rejected"&&o(f.reason);return n().catch(o)})};function b7(e={}){const{immediate:n=!1,onNeedReload:r,onNeedRefresh:i,onOfflineReady:l,onRegistered:o,onRegisteredSW:u,onRegisterError:d}=e;let f,h,g;const p=async(b=!0)=>{await h,g?.()};async function y(){if("serviceWorker"in navigator){if(f=await y7(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;g=()=>{f?.messageSkipWaiting()};{let b=!1;const C=()=>{b=!0,f?.addEventListener("controlling",v=>{v.isUpdate&&(r?r():window.location.reload())}),i?.()};f.addEventListener("installed",v=>{typeof v.isUpdate>"u"?typeof v.isExternal<"u"&&v.isExternal?C():!b&&l?.():v.isUpdate||l?.()}),f.addEventListener("waiting",C)}f.register({immediate:n}).then(b=>{u?u("/sw.js",b):o?.(b)}).catch(b=>{d?.(b)})}}return h=y(),p}function C7(e={}){const{immediate:n=!0,onNeedReload:r,onNeedRefresh:i,onOfflineReady:l,onRegistered:o,onRegisteredSW:u,onRegisterError:d}=e,[f,h]=D.useState(!1),[g,p]=D.useState(!1),[y]=D.useState(()=>b7({immediate:n,onNeedReload:r,onOfflineReady(){p(!0),l?.()},onNeedRefresh(){h(!0),i?.()},onRegistered:o,onRegisteredSW:u,onRegisterError:d}));return{needRefresh:[f,h],offlineReady:[g,p],updateServiceWorker:y}}const E8=(...e)=>e.filter((n,r,i)=>!!n&&n.trim()!==""&&i.indexOf(n)===r).join(" ").trim();const v7=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const A7=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(n,r,i)=>i?i.toUpperCase():r.toLowerCase());const Gm=e=>{const n=A7(e);return n.charAt(0).toUpperCase()+n.slice(1)};var k7={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 B7=e=>{for(const n in e)if(n.startsWith("aria-")||n==="role"||n==="title")return!0;return!1};const D7=D.forwardRef(({color:e="currentColor",size:n=24,strokeWidth:r=2,absoluteStrokeWidth:i,className:l="",children:o,iconNode:u,...d},f)=>D.createElement("svg",{ref:f,...k7,width:n,height:n,stroke:e,strokeWidth:i?Number(r)*24/Number(n):r,className:E8("lucide",l),...!o&&!B7(d)&&{"aria-hidden":"true"},...d},[...u.map(([h,g])=>D.createElement(h,g)),...Array.isArray(o)?o:[o]]));const q=(e,n)=>{const r=D.forwardRef(({className:i,...l},o)=>D.createElement(D7,{ref:o,iconNode:n,className:E8(`lucide-${v7(Gm(e))}`,`lucide-${e}`,i),...l}));return r.displayName=Gm(e),r};const w7=[["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"}]],F7=q("activity",w7);const S7=[["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"}]],N7=q("anchor",S7);const _7=[["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"}]],M7=q("apple",_7);const j7=[["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"}]],T7=q("archive-x",j7);const R7=[["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"}]],Kd=q("archive",R7);const O7=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],z7=q("arrow-right",O7);const L7=[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]],P7=q("arrow-up-right",L7);const I7=[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]],U7=q("arrow-up",I7);const H7=[["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"}]],$7=q("atom",H7);const q7=[["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"}]],G7=q("award",q7);const V7=[["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"}]],Q7=q("banknote",V7);const Y7=[["path",{d:"M 22 14 L 22 10",key:"nqc4tb"}],["rect",{x:"2",y:"6",width:"16",height:"12",rx:"2",key:"13zb55"}]],K7=q("battery",Y7);const X7=[["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"}]],Z7=q("beer",X7);const W7=[["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"}]],y8=q("bell",W7);const J7=[["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"}]],eC=q("bike",J7);const tC=[["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"}]],nC=q("bird",tC);const rC=[["path",{d:"m7 7 10 10-5 5V2l5 5L7 17",key:"1q5490"}]],aC=q("bluetooth",rC);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"}]],sC=q("book-open",iC);const lC=[["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"}]],oC=q("book",lC);const cC=[["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"}]],uC=q("bookmark",cC);const xC=[["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"}]],b8=q("bot",xC);const dC=[["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"}]],fC=q("box",dC);const hC=[["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"}]],pC=q("brain",hC);const mC=[["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"}]],gC=q("briefcase",mC);const EC=[["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"}]],yC=q("brush",EC);const bC=[["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"}]],CC=q("bug-play",bC);const vC=[["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"}]],AC=q("bug",vC);const kC=[["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"}]],BC=q("building-2",kC);const DC=[["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"}]],wC=q("building",DC);const FC=[["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"}]],SC=q("cake",FC);const NC=[["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"}]],_C=q("calendar",NC);const MC=[["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"}]],jC=q("camera",MC);const TC=[["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"}]],RC=q("car",TC);const OC=[["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"}]],zC=q("carrot",OC);const LC=[["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"}]],PC=q("cat",LC);const IC=[["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"}]],UC=q("chart-bar",IC);const HC=[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"m19 9-5 5-4-4-3 3",key:"2osh9i"}]],$C=q("chart-line",HC);const qC=[["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"}]],GC=q("chart-pie",qC);const VC=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],qr=q("check",VC);const QC=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Ea=q("chevron-down",QC);const YC=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],KC=q("chevron-left",YC);const XC=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],ZC=q("chevron-right",XC);const WC=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],JC=q("chevron-up",WC);const e3=[["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"}]],t3=q("circle-x",e3);const n3=[["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"}]],r3=q("clapperboard",n3);const a3=[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],C8=q("clock",a3);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"}]],s3=q("cloud-off",i3);const l3=[["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"}]],o3=q("cloud-upload",l3);const c3=[["path",{d:"M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z",key:"p7xjir"}]],u3=q("cloud",c3);const x3=[["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"}]],d3=q("code-xml",x3);const f3=[["path",{d:"m16 18 6-6-6-6",key:"eg8j8"}],["path",{d:"m8 6-6 6 6 6",key:"ppft3o"}]],h3=q("code",f3);const p3=[["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"}]],m3=q("coffee",p3);const g3=[["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"}]],E3=q("cog",g3);const y3=[["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"}]],b3=q("compass",y3);const C3=[["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"}]],Xd=q("copy",C3);const v3=[["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"}]],A3=q("cpu",v3);const k3=[["rect",{width:"20",height:"14",x:"2",y:"5",rx:"2",key:"ynyp8z"}],["line",{x1:"2",x2:"22",y1:"10",y2:"10",key:"1b3vmo"}]],B3=q("credit-card",k3);const D3=[["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"}]],w3=q("crown",D3);const F3=[["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"}]],S3=q("database",F3);const N3=[["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"}]],_3=q("dna",N3);const M3=[["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"}]],j3=q("dog",M3);const T3=[["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"}]],R3=q("dollar-sign",T3);const O3=[["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"}]],z3=q("dumbbell",O3);const L3=[["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"}]],P3=q("earth",L3);const I3=[["path",{d:"M12 2C8 2 4 8 4 14a8 8 0 0 0 16 0c0-6-4-12-8-12",key:"1le142"}]],U3=q("egg",I3);const H3=[["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"}]],$3=q("external-link",H3);const q3=[["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"}]],G3=q("factory",q3);const V3=[["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"}]],Q3=q("feather",V3);const Y3=[["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"}]],K3=q("file-code",Y3);const X3=[["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"}]],v8=q("file-diff",X3);const Z3=[["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"}]],W3=q("file",Z3);const J3=[["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"}]],ev=q("film",J3);const tv=[["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"}]],nv=q("fish",tv);const rv=[["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"}]],av=q("flag",rv);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"}]],sv=q("flame",iv);const lv=[["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"}]],ov=q("flask-conical",lv);const cv=[["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"}]],uv=q("folder",cv);const xv=[["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"}]],dv=q("funnel",xv);const fv=[["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"}]],hv=q("gamepad-2",fv);const pv=[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]],mv=q("gauge",pv);const gv=[["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"}]],Ev=q("gem",gv);const yv=[["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"}]],bv=q("gift",yv);const Cv=[["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"}]],vv=q("git-branch-plus",Cv);const Av=[["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"}]],kv=q("git-branch",Av);const Bv=[["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"}]],A8=q("git-fork",Bv);const Dv=[["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",Dv);const wv=[["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"}]],Fv=q("github",wv);const Sv=[["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"}]],Nv=q("glasses",Sv);const _v=[["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"}]],Mv=q("globe",_v);const jv=[["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"}]],Tv=q("graduation-cap",jv);const Rv=[["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"}]],Ov=q("grid-3x3",Rv);const zv=[["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"}]],Lv=q("hammer",zv);const Pv=[["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"}]],Iv=q("headphones",Pv);const Uv=[["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"}]],Hv=q("heart-pulse",Uv);const $v=[["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"}]],qv=q("heart",$v);const Gv=[["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"}]],Zd=q("hourglass",Gv);const Vv=[["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"}]],Qv=q("house",Vv);const Yv=[["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"}]],Kv=q("image",Yv);const Xv=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],Zv=q("info",Xv);const Wv=[["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"}]],Jv=q("key",Wv);const eA=[["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"}]],tA=q("laptop",eA);const nA=[["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"}]],rA=q("layers",nA);const aA=[["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"}]],iA=q("layout-grid",aA);const sA=[["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"}]],lA=q("leaf",sA);const oA=[["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"}]],cA=q("lightbulb",oA);const uA=[["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"}]],xA=q("link",uA);const dA=[["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"}]],B8=q("list",dA);const fA=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],Tn=q("loader-circle",fA);const hA=[["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"}]],pA=q("lock",hA);const mA=[["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"}]],gA=q("log-out",mA);const EA=[["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"}]],yA=q("mail",EA);const bA=[["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"}]],CA=q("map-pin",bA);const vA=[["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"}]],D8=q("map",vA);const AA=[["path",{d:"M8 22h8",key:"rmew8v"}],["path",{d:"M12 11v11",key:"ur9y6a"}],["path",{d:"m19 3-7 8-7-8Z",key:"1sgpiw"}]],kA=q("martini",AA);const BA=[["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"}]],DA=q("medal",BA);const wA=[["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"}]],FA=q("message-circle",wA);const SA=[["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"}]],NA=q("message-square",SA);const _A=[["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",_A);const jA=[["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",jA);const TA=[["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"}]],RA=q("microscope",TA);const OA=[["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"}]],zA=q("monitor",OA);const LA=[["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"}]],PA=q("moon",LA);const IA=[["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"}]],UA=q("music",IA);const HA=[["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"}]],$A=q("orbit",HA);const qA=[["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"}]],GA=q("package",qA);const VA=[["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"}]],QA=q("paintbrush",VA);const YA=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]],KA=q("panel-left",YA);const XA=[["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"}]],ic=q("paperclip",XA);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"}]],WA=q("paw-print",ZA);const JA=[["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"}]],ek=q("pen",JA);const tk=[["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"}]],nk=q("pencil",tk);const rk=[["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"}]],U0=q("phone-call",rk);const ak=[["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"}]],ik=q("phone-off",ak);const sk=[["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"}]],lk=q("phone",sk);const ok=[["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"}]],ck=q("pill",ok);const uk=[["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"}]],xk=q("pipette",uk);const dk=[["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"}]],fk=q("pizza",dk);const hk=[["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"}]],pk=q("plane",hk);const mk=[["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"}]],ud=q("play",mk);const gk=[["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"}]],Ek=q("plug",gk);const yk=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],Wd=q("plus",yk);const bk=[["path",{d:"M12 2v10",key:"mnfbl"}],["path",{d:"M18.4 6.6a9 9 0 1 1-12.77.04",key:"obofu9"}]],Ck=q("power",bk);const vk=[["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"}]],Ak=q("puzzle",vk);const kk=[["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"}]],F8=q("qr-code",kk);const Bk=[["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"}]],Dk=q("rabbit",Bk);const wk=[["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"}]],Fk=q("radio",wk);const Sk=[["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"}]],to=q("refresh-cw",Sk);const Nk=[["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"}]],_k=q("rocket",Nk);const Mk=[["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"}]],jk=q("rotate-ccw",Mk);const Tk=[["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"}]],Rk=q("salad",Tk);const Ok=[["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"}]],zk=q("ruler",Ok);const Lk=[["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"}]],Pk=q("satellite",Lk);const Ik=[["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"}]],Uk=q("save",Ik);const Hk=[["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"}]],$k=q("scissors",Hk);const qk=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],S8=q("search",qk);const Gk=[["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"}]],Vk=q("send",Gk);const Qk=[["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"}]],Yk=q("server",Qk);const Kk=[["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"}]],Xk=q("settings",Kk);const Zk=[["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"}]],Wk=q("shell",Zk);const Jk=[["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"}]],eB=q("shield",Jk);const tB=[["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"}]],nB=q("ship",tB);const rB=[["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"}]],aB=q("shopping-bag",rB);const iB=[["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"}]],sB=q("shopping-cart",iB);const lB=[["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"}]],oB=q("sliders-horizontal",lB);const cB=[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12 18h.01",key:"mhygvu"}]],uB=q("smartphone",cB);const xB=[["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"}]],dB=q("snail",xB);const fB=[["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"}]],hB=q("snowflake",fB);const pB=[["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"}]],mB=q("soup",pB);const gB=[["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"}]],EB=q("sparkles",gB);const yB=[["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"}]],bB=q("sprout",yB);const CB=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]],N8=q("square",CB);const vB=[["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"}]],xd=q("star",vB);const AB=[["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"}]],kB=q("stethoscope",AB);const BB=[["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"}]],DB=q("store",BB);const wB=[["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"}]],FB=q("sun-moon",wB);const SB=[["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"}]],_8=q("sun",SB);const NB=[["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"}]],_B=q("tag",NB);const MB=[["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"}]],jB=q("tags",MB);const TB=[["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"}]],RB=q("target",TB);const OB=[["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"}]],zB=q("telescope",OB);const LB=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],PB=q("terminal",LB);const IB=[["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"}]],UB=q("ticket",IB);const HB=[["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"}]],$B=q("train-front",HB);const qB=[["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"}]],GB=q("trash-2",qB);const VB=[["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"}]],QB=q("tree-pine",VB);const YB=[["path",{d:"M16 7h6v6",key:"box55l"}],["path",{d:"m22 7-8.5 8.5-5-5L2 17",key:"1t1m79"}]],KB=q("trending-up",YB);const XB=[["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"}]],sc=q("triangle-alert",XB);const ZB=[["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"}]],WB=q("trophy",ZB);const JB=[["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"}]],eD=q("turtle",JB);const tD=[["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"}]],nD=q("user",tD);const rD=[["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"}]],aD=q("users",rD);const iD=[["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"}]],sD=q("utensils",iD);const lD=[["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"}]],oD=q("video",lD);const cD=[["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"}]],uD=q("wallet",cD);const xD=[["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"}]],Vm=q("wand-sparkles",xD);const dD=[["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"}]],fD=q("warehouse",dD);const hD=[["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"}]],pD=q("waypoints",hD);const mD=[["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"}]],gD=q("wheat",mD);const ED=[["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"}]],Jd=q("wifi-off",ED);const yD=[["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"}]],M8=q("wifi",yD);const bD=[["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"}]],CD=q("wine",bD);const vD=[["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"}]],lc=q("workflow",vD);const AD=[["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"}]],kD=q("wrench",AD);const BD=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Cn=q("x",BD);const DD=[["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"}]],ef=q("zap",DD);function Qm(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function qt(e,n){return{method:e,pattern:n,path:()=>n}}function bt(e,n){const[r,i]=n.split(/:[a-zA-Z]+/);if(i===void 0)throw new Error(`route ${n} declares no :param`);return{method:e,pattern:n,path:l=>`${r}${encodeURIComponent(l)}${i}`,re:new RegExp(`^${Qm(r)}([^/]+)${Qm(i)}$`)}}const Ee={state:qt("GET","/api/state"),search:qt("GET","/api/search"),repos:qt("GET","/api/repos"),modelCatalog:qt("GET","/api/models"),modelDefaults:qt("GET","/api/models/defaults"),updateModelDefaults:qt("PATCH","/api/models/defaults"),planUsage:qt("GET","/api/usage"),voiceTicket:qt("POST","/api/voice/ticket"),voiceCall:qt("POST","/api/voice/calls"),voiceCallReady:bt("POST","/api/voice/calls/:callId/ready"),voiceCallEnd:bt("DELETE","/api/voice/calls/:callId"),repoIcon:bt("GET","/api/repos/:repo/icon"),localImage:bt("GET","/api/local-images/:path"),filePreview:bt("GET","/api/files/:reference"),toolImage:bt("GET","/api/tool-images/:reference"),stageAttachment:qt("POST","/api/attachments"),discardStagedAttachment:bt("DELETE","/api/attachments/:attachmentId"),logs:qt("GET","/api/logs"),restartConductor:qt("POST","/api/conductor/restart"),settings:qt("GET","/api/settings"),updateSettings:qt("PATCH","/api/settings"),prefs:qt("GET","/api/prefs"),updatePrefs:qt("PATCH","/api/prefs"),armNoSleep:qt("POST","/api/nosleep"),disarmNoSleep:qt("DELETE","/api/nosleep"),push:qt("GET","/api/push"),pushSubscribe:qt("POST","/api/push/subscribe"),pushUnsubscribe:qt("POST","/api/push/unsubscribe"),pushTest:qt("POST","/api/push/test"),roles:qt("GET","/api/roles"),updateRoles:qt("PATCH","/api/roles"),delegations:qt("GET","/api/delegations"),dismissDelegation:bt("DELETE","/api/delegations/:delegationId"),createWorkspace:qt("POST","/api/workspaces"),workspace:bt("GET","/api/workspaces/:workspaceId"),sessions:bt("GET","/api/workspaces/:workspaceId/sessions"),newChat:bt("POST","/api/workspaces/:workspaceId/sessions"),diff:bt("GET","/api/workspaces/:workspaceId/diff"),workspaceFiles:bt("GET","/api/workspaces/:workspaceId/files"),merge:bt("POST","/api/workspaces/:workspaceId/merge"),continueWorkspace:bt("POST","/api/workspaces/:workspaceId/continue"),workspaceStatus:bt("POST","/api/workspaces/:workspaceId/status"),archiveWorkspace:bt("POST","/api/workspaces/:workspaceId/archive"),devServer:bt("GET","/api/workspaces/:workspaceId/dev-server"),startDevServer:bt("POST","/api/workspaces/:workspaceId/dev-server"),stopDevServer:bt("DELETE","/api/workspaces/:workspaceId/dev-server"),dismissFirstPrompt:bt("DELETE","/api/workspaces/:workspaceId/prompt"),messages:bt("GET","/api/sessions/:sessionId/messages"),context:bt("GET","/api/sessions/:sessionId/context"),models:bt("GET","/api/sessions/:sessionId/models"),defaultModel:bt("POST","/api/sessions/:sessionId/default-model"),agent:bt("POST","/api/sessions/:sessionId/agent"),stop:bt("POST","/api/sessions/:sessionId/stop"),closeChat:bt("DELETE","/api/sessions/:sessionId"),sendPrompt:bt("POST","/api/sessions/:sessionId/prompt"),uploadAttachment:bt("POST","/api/sessions/:sessionId/attachments"),splitChat:bt("POST","/api/sessions/:sessionId/split"),delegateTask:bt("POST","/api/sessions/:sessionId/delegate"),dismissParkedPrompt:bt("DELETE","/api/sessions/:sessionId/prompt")},wD="## Workflow objective";function FD(e){const n=/^(\d+)(s|m|h)?$/.exec(e.trim());if(!n)return null;const r=Number(n[1]),i=n[2]??"s",l=r*(i==="h"?3600:i==="m"?60:1);return Number.isSafeInteger(l)?l:null}function SD(e){const n=e??"",i=(n.includes("/")?n.slice(n.indexOf("/")+1):n).replace(/[-_]/g," ").trim();return i?i[0].toUpperCase()+i.slice(1):""}function $r(e){return e.workspace_name||e.pr_title||SD(e.branch)||e.directory_name||e.id.slice(0,8)}function ND(e){return e.toLowerCase().match(/[\p{L}\p{N}_]+/gu)??[]}function Xn(e){const n=/^\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}(?:\.\d+)?$/.test(e);return Date.parse(n?`${e.replace(" ","T")}Z`:e)}function ql(e){return e.endsWith(" NEW")?e.slice(0,-4):e}function dd(e){return ql(e).replace(/^opencode-/i,"")}function j8(e){return e?e.replace(/^claude-/,"").replace(/-\d{8}$/,"").replace(/-latest$/,""):""}const fd=e=>e.toLowerCase().replace(/[^a-z0-9]/g,""),Ym=e=>fd(e.replace(/[\s\-_]\d+[mk]$/i,""));function _D(e){const n=[];for(const r of e){const i=n[n.length-1];i!==void 0&&/^\d+$/.test(r)&&/^\d[\d.]*$/.test(i)?n[n.length-1]=`${i}.${r}`:n.push(r)}return n}function MD(e){const n=_D(e.split("-")),r=i=>i?i.toLowerCase()==="1m"?"1M":i[0].toUpperCase()+i.slice(1):"";return n[0]==="gpt"&&n[1]?[n[1],...n.slice(2).map(r)].join(" "):/^(opus|sonnet|haiku|fable)$/.test(n[0]??"")?n.map(r).join(" "):e}function T8(e,n=[]){const r=j8(e);if(!r)return"";const i=r.split("/").pop()??r,l=i.split(":").pop()??i,o=fd(l);if(o){const u=n.find(f=>fd(f)===o);if(u)return u;const d=n.filter(f=>Ym(f)===Ym(l));if(d.length===1)return d[0]}return MD(l)}function R8(e){const n=ql(e).trim().toLowerCase();if(n.startsWith("anthropic/"))return"Anthropic";if(n.startsWith("openai/"))return"OpenAI";if(n.startsWith("cursor/"))return"Cursor";if(/^(claude|fable|haiku|opus|sonnet)(?:[\s-]|$)/.test(n))return"Anthropic";if(/^(?:auto|gpt|o[1-9]|\d)(?:[\s.-]|$)/.test(n))return"OpenAI";if(/^(composer|grok)(?:[\s-]|$)/.test(n))return"Cursor";if(/^opencode(?:-go)?\//.test(n))return"OpenCode";const r=n.indexOf("/");return r>0?n.slice(0,r):"Other"}function Bs(e){const n=R8(e);if(n==="Anthropic")return"claude";if(n==="OpenAI")return"codex";if(n==="Cursor")return"cursor";if(n==="OpenCode")return"acp"}function tf(e){return e==="claude"||e==="codex"}function nf(e){return e==="claude"||e==="codex"}function O8(e,n){const r=ql(e);return n.some(i=>i.models.some(l=>ql(l)===r))}function jD(e){const n=new Map;for(const r of e){const i=ql(r).trim();if(!i)continue;const l=R8(i),o=n.get(l)??[];o.includes(i)||o.push(i),n.set(l,o)}return[...n].map(([r,i])=>({label:r,models:i.sort((l,o)=>l.localeCompare(o))})).sort((r,i)=>r.label.localeCompare(i.label))}function z8(e,n){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 n}const TD="",RD="",L8=["marin","cedar","alloy","ash","ballad","coral","echo","sage","shimmer","verse"],OD=["auto","no","en"];function zD(e){return typeof e=="string"&&L8.includes(e)}function LD(e){return typeof e=="string"&&OD.includes(e)}const Km=".context/attachments/";function PD(e){const n=[];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 g=decodeURIComponent(h),p=g.startsWith(Km)?g.slice(Km.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("/")){n.push({start:i,end:d+1,name:o,path:g}),r=d+1,f=!0;continue}}catch{}d+=1}f||(r=i+2)}return n}const ID=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"]),UD=new Set([".avif",".gif",".jpeg",".jpg",".png",".webp"]);function P8(e){const n=e.slice(e.lastIndexOf("/")+1),r=n.lastIndexOf(".");return r===-1?null:n.slice(r).toLowerCase()}function rf(e){const n=P8(e);return n!==null&&ID.has(n)}function I8(e){const n=P8(e);return n!==null&&UD.has(n)}function Xm(e){return e.role==="tool"&&!e.tool&&e.output!==void 0}const HD="The Mac is locked";function Fi(e){return(e??"").includes(HD)}const $D="x-relay-device",Gl="conductor-remote-token";function qD(){const n=new URLSearchParams(location.hash.slice(1)).get("token");return n&&(localStorage.setItem(Gl,n),history.replaceState(null,"",location.pathname+location.search)),localStorage.getItem(Gl)}function af(){return localStorage.getItem(Gl)}function GD(){localStorage.removeItem(Gl)}function VD(e){localStorage.setItem(Gl,e)}function QD(e){const n=e.trim();if(!n)return null;const r=n.match(/token=([^&\s]+)/);return r?decodeURIComponent(r[1]):/\s/.test(n)?null:n}class Br extends Error{constructor(n,r){super(n),this.status=r}status}const U8=6e3,bn=45e3,YD=75e3,KD=75e3,Zm=75e3,XD=75e3;async function Ie(e,n={},r=U8){const i=af();let l;try{l=await fetch(e,{...n,signal:AbortSignal.timeout(r),headers:{authorization:`Bearer ${i??""}`,"content-type":"application/json","x-client-timeout-ms":String(r),...n.headers}})}catch(o){throw o instanceof DOMException&&o.name==="TimeoutError"?new Br("Request timed out",0):o}if(!l.ok){const o=await l.json().catch(()=>({}));throw new Br(z8(o.error,`HTTP ${l.status}`),l.status)}return l.json()}async function Wm(e,n){const r=af();let i;try{i=await fetch(e,{method:"POST",body:n,signal:AbortSignal.timeout(bn),headers:{authorization:`Bearer ${r??""}`,"content-type":n.type||"application/octet-stream","x-attachment-name":encodeURIComponent(n.name),"x-client-timeout-ms":String(bn)}})}catch(l){throw l instanceof DOMException&&l.name==="TimeoutError"?new Br("Upload timed out",0):l}if(!i.ok){const l=await i.json().catch(()=>({}));throw new Br(z8(l.error,`HTTP ${i.status}`),i.status)}return i.json()}const Bx=new Map;async function ZD(e){const n=af(),r=await fetch(e,{headers:{authorization:`Bearer ${n??""}`},signal:AbortSignal.timeout(U8)});if(!r.ok)throw new Br(`HTTP ${r.status}`,r.status);return URL.createObjectURL(await r.blob())}function Dx(e){let n=Bx.get(e);return n||(n=ZD(e),n.catch(()=>Bx.delete(e)),Bx.set(e,n)),n}const Me={state:()=>Ie(Ee.state.path()),voiceTicket:()=>Ie(Ee.voiceTicket.path(),{method:Ee.voiceTicket.method}),voiceCall:(e,n,r)=>Ie(Ee.voiceCall.path(),{method:Ee.voiceCall.method,body:JSON.stringify({sdp:e,voice:n,language:r})},bn),voiceCallReady:e=>Ie(Ee.voiceCallReady.path(e),{method:Ee.voiceCallReady.method},bn),voiceCallEnd:e=>Ie(Ee.voiceCallEnd.path(e),{method:Ee.voiceCallEnd.method},bn),repoIcon:e=>Dx(Ee.repoIcon.path(e)),localImage:e=>Dx(Ee.localImage.path(e)),toolImage:e=>Dx(Ee.toolImage.path(e)),filePreview:e=>Ie(Ee.filePreview.path(e)),stageAttachment:e=>Wm(Ee.stageAttachment.path(),e),discardStagedAttachment:e=>Ie(Ee.discardStagedAttachment.path(e),{method:Ee.discardStagedAttachment.method}),workspace:e=>Ie(Ee.workspace.path(e)),sessions:e=>Ie(Ee.sessions.path(e)),messages:(e,n,r)=>Ie(`${Ee.messages.path(e)}?after=${n}`,{headers:r?{[$D]:r}:{}}),contextBreakdown:e=>Ie(Ee.context.path(e)),uploadAttachment:(e,n,r)=>Wm(`${Ee.uploadAttachment.path(e)}?workspaceId=${encodeURIComponent(n)}`,r),diff:e=>Ie(Ee.diff.path(e)),workspaceFiles:e=>Ie(Ee.workspaceFiles.path(e)),sendPrompt:(e,n,r,i,l,o,u)=>Ie(Ee.sendPrompt.path(e),{method:Ee.sendPrompt.method,body:JSON.stringify({text:n,workspaceId:r,agent:i,clientId:l,queue:o,workflow:u})},KD),stop:(e,n)=>Ie(Ee.stop.path(e),{method:Ee.stop.method,body:JSON.stringify({workspaceId:n})},bn),closeChat:(e,n,r=!1)=>Ie(Ee.closeChat.path(e),{method:Ee.closeChat.method,body:JSON.stringify({workspaceId:n,closeRunning:r})},bn),newChat:e=>Ie(Ee.newChat.path(e),{method:Ee.newChat.method},bn),splitChat:(e,n,r,i,l,o,u="chat")=>Ie(Ee.splitChat.path(e),{method:Ee.splitChat.method,body:JSON.stringify({workspaceId:n,includeThinking:r,includeTools:i,throughRowid:l,onlyRowid:o,destination:u})},bn),repos:()=>Ie(Ee.repos.path()),modelCatalog:()=>Ie(Ee.modelCatalog.path()),modelDefaults:()=>Ie(Ee.modelDefaults.path()),patchModelDefaults:e=>Ie(Ee.updateModelDefaults.path(),{method:Ee.updateModelDefaults.method,body:JSON.stringify(e)}),planUsage:(e=!1)=>Ie(`${Ee.planUsage.path()}${e?"?refresh=1":""}`,{},15e3),roles:()=>Ie(Ee.roles.path()),updateRoles:e=>Ie(Ee.updateRoles.path(),{method:Ee.updateRoles.method,body:JSON.stringify(e)}),delegations:e=>Ie(`${Ee.delegations.path()}${e?`?workspaceId=${encodeURIComponent(e)}`:""}`),delegateTask:(e,n)=>Ie(Ee.delegateTask.path(e),{method:Ee.delegateTask.method,body:JSON.stringify(n)}),dismissDelegation:e=>Ie(Ee.dismissDelegation.path(e),{method:Ee.dismissDelegation.method}),search:(e,n=[],r=!0)=>{const i=new URLSearchParams({q:e});for(const l of n)i.append("repo",l);return r||i.set("archived","0"),Ie(`${Ee.search.path()}?${i}`)},dismissPrompt:e=>Ie(Ee.dismissFirstPrompt.path(e),{method:Ee.dismissFirstPrompt.method}),dismissParked:e=>Ie(Ee.dismissParkedPrompt.path(e),{method:Ee.dismissParkedPrompt.method}),createWorkspace:e=>Ie(Ee.createWorkspace.path(),{method:Ee.createWorkspace.method,body:JSON.stringify(e)},bn),setAgent:(e,n,r)=>Ie(Ee.agent.path(e),{method:Ee.agent.method,body:JSON.stringify({...n,workspaceId:r})},bn),models:(e,n)=>Ie(`${Ee.models.path(e)}?workspaceId=${encodeURIComponent(n)}`,{},bn),setDefaultModel:(e,n,r)=>Ie(Ee.defaultModel.path(e),{method:Ee.defaultModel.method,body:JSON.stringify({model:n,workspaceId:r})},bn),logs:(e,n=300)=>Ie(`${Ee.logs.path()}?limit=${n}${e?`&file=${encodeURIComponent(e)}`:""}`),push:()=>Ie(Ee.push.path()),pushSubscribe:(e,n)=>Ie(Ee.pushSubscribe.path(),{method:Ee.pushSubscribe.method,body:JSON.stringify({subscription:e,label:n})}),pushUnsubscribe:e=>Ie(Ee.pushUnsubscribe.path(),{method:Ee.pushUnsubscribe.method,body:JSON.stringify({endpoint:e})}),pushTest:e=>Ie(Ee.pushTest.path(),{method:Ee.pushTest.method,body:JSON.stringify({id:e})},bn),merge:e=>Ie(Ee.merge.path(e),{method:Ee.merge.method},bn),continueWorkspace:(e,n)=>Ie(Ee.continueWorkspace.path(e),{method:Ee.continueWorkspace.method,body:JSON.stringify({sessionId:n})},YD),setStatus:(e,n)=>Ie(Ee.workspaceStatus.path(e),{method:Ee.workspaceStatus.method,body:JSON.stringify({status:n})},bn),archive:(e,n=!1)=>Ie(Ee.archiveWorkspace.path(e),{method:Ee.archiveWorkspace.method,body:JSON.stringify({stopAgents:n})},bn),devServer:e=>Ie(Ee.devServer.path(e)),startDevServer:(e,n)=>Ie(Ee.startDevServer.path(e),{method:Ee.startDevServer.method,body:n?JSON.stringify({runConfigId:n}):void 0},Zm),stopDevServer:e=>Ie(Ee.stopDevServer.path(e),{method:Ee.stopDevServer.method},Zm),settings:()=>Ie(Ee.settings.path()),patchSettings:e=>Ie(Ee.updateSettings.path(),{method:Ee.updateSettings.method,body:JSON.stringify(e)}),prefs:()=>Ie(Ee.prefs.path()),patchPrefs:(e,n=!1)=>Ie(Ee.updatePrefs.path(),{method:Ee.updatePrefs.method,body:JSON.stringify(e),keepalive:n}),armNoSleep:e=>Ie(Ee.armNoSleep.path(),{method:Ee.armNoSleep.method,body:JSON.stringify({seconds:e})},bn),disarmNoSleep:()=>Ie(Ee.disarmNoSleep.path(),{method:Ee.disarmNoSleep.method},bn),restartConductor:(e=!1)=>Ie(Ee.restartConductor.path(),{method:Ee.restartConductor.method,body:JSON.stringify({stopAgents:e})},XD)},Jm=e=>{let n;const r=new Set,i=(h,g)=>{const p=typeof h=="function"?h(n):h;if(!Object.is(p,n)){const y=n;n=g??(typeof p!="object"||p===null)?p:Object.assign({},n,p),r.forEach(b=>b(n,y))}},l=()=>n,d={setState:i,getState:l,getInitialState:()=>f,subscribe:h=>(r.add(h),()=>r.delete(h))},f=n=e(i,l,d);return d},WD=(e=>e?Jm(e):Jm),JD=e=>e;function ew(e,n=JD){const r=k0.useSyncExternalStore(e.subscribe,k0.useCallback(()=>n(e.getState()),[e,n]),k0.useCallback(()=>n(e.getInitialState()),[e,n]));return k0.useDebugValue(r),r}const e9=e=>{const n=WD(e),r=i=>ew(n,i);return Object.assign(r,n),r},tw=(e=>e?e9(e):e9),nw=1e4;function rw(e,n=Date.now()){return Math.max(0,(e??n)+nw-n)}const hd="conductor-remote-pending",H8=20,aw=1440*60*1e3;function $8(e,n=[],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 n)if(!l.has(o.text.trim())){if(o.status==="failed")return"failed";o.status==="waiting"&&(i=!0)}return i?"sending":null}const t9=e=>e.status==="sending"||!!e.interrupted;function n9(e,n){const r=e.text.trim(),i=n.trim();return e.workflow?i.endsWith(`${wD}
|
|
12
|
+
|
|
13
|
+
${r}`):i===r}function iw(e){const n=e;return!!n&&typeof n.id=="string"&&typeof n.sessionId=="string"&&typeof n.workspaceId=="string"&&typeof n.text=="string"&&typeof n.createdAt=="number"&&(n.workflow===void 0||typeof n.workflow=="boolean")&&(n.status==="sending"||n.status==="error")}const sw=e=>e.status==="sending"?{...e,status:"error",interrupted:!0,error:"Never confirmed — the app reloaded"}:e;function lw(){try{const e=JSON.parse(localStorage.getItem(hd)??"[]");if(!Array.isArray(e))return[];const n=Date.now()-aw;return e.filter(iw).filter(r=>r.createdAt>n).slice(-H8).map(sw)}catch{return[]}}function ow(e){try{const n=e.slice(-H8);n.length?localStorage.setItem(hd,JSON.stringify(n)):localStorage.removeItem(hd)}catch{}}const D0="conductor-remote-agent:",w0="conductor-remote-draft:",fa="new-workspace",r9="conductor-remote-read",q8=(e,n,r)=>(e[n]??"")<r;function cw(e,n){return(e.unread_sessions??[]).filter(r=>q8(n,r.id,r.at)).length}function uw(e,n){return!!e.unread_count&&q8(n,e.id,e.updated_at)}const a9="conductor-remote-prefs-v1";function vr(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)?e:null}function pd(e){const n=vr(e);if(!n)return{};const r={};return typeof n.model=="string"&&(r.model=n.model),typeof n.effort=="string"&&(r.effort=n.effort),typeof n.plan=="boolean"&&(r.plan=n.plan),typeof n.fast=="boolean"&&(r.fast=n.fast),r}function ys(e){return Object.keys(e).length>0}function xw(e){const n=vr(e);return!n||typeof n.name!="string"||typeof n.path!="string"||typeof n.token!="string"||!Number.isSafeInteger(Number(n.bytes))||Number(n.bytes)<0||n.stageId!==void 0&&typeof n.stageId!="string"?null:{name:n.name,path:n.path,bytes:Number(n.bytes),token:n.token,...n.stageId?{stageId:n.stageId}:{}}}function G8(e){if(!Array.isArray(e))return[];const n=new Set;return e.flatMap(r=>{const i=xw(r);return!i||n.has(i.path)?[]:(n.add(i.path),[i])})}function i9(e){const n=vr(e);if(!n)return null;const r=Number(n.updatedAt);return!Number.isSafeInteger(r)||r<0?null:n.deleted===!0?{text:"",agent:{},attachments:[],updatedAt:r,deleted:!0}:typeof n.text!="string"?null:{text:n.text,agent:pd(n.agent),attachments:G8(n.attachments),updatedAt:r,deleted:!1}}function V8(e,n){return e.model===n.model&&e.effort===n.effort&&e.plan===n.plan&&e.fast===n.fast}function dw(e,n){return e.text===n.text&&e.updatedAt===n.updatedAt&&e.deleted===n.deleted&&V8(e.agent,n.agent)&&e.attachments.length===n.attachments.length&&e.attachments.every((r,i)=>{const l=n.attachments[i];return r.name===l?.name&&r.path===l.path&&r.bytes===l.bytes&&r.token===l.token&&r.stageId===l.stageId})}function ms(e,n,r,i){return e||ys(n)||r.length?{text:e,agent:{...n},attachments:G8(r),updatedAt:i,deleted:!1}:{text:"",agent:{},attachments:[],updatedAt:i,deleted:!0}}class fw{storage;prefs;clock;generation=0;touched=new Set;listeners=new Set;constructor(n){this.storage=n;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=ms(r[d]??"",i[d]??{},[],o[d]?.updatedAt??0),h=o[d];!(h&&!h.deleted&&h.attachments.length>0&&!h.text&&!ys(h.agent)&&f.deleted)&&(!h||h.text!==f.text||h.deleted!==f.deleted||!V8(h.agent,f.agent))&&(u[d]=ms(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]=ms(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(([n,r])=>[n,{...r,agent:{...r.agent},attachments:r.attachments.map(i=>({...i}))}]))}}project(){const n={},r={},i={};for(const[l,o]of Object.entries(this.prefs.drafts))o.deleted||(n[l]=o.text,ys(o.agent)&&(r[l]={...o.agent}),o.attachments.length&&(i[l]=o.attachments.map(u=>({...u}))));return{drafts:n,agentDrafts:r,draftAttachments:i,readMarks:{...this.prefs.readMarks}}}currentGeneration(){return this.generation}setDraft(n,r,i){return this.setLocal(n,r,i,this.prefs.drafts[n]?.attachments??[]),this.project()}setAgent(n,r,i){return this.setLocal(n,i,r,this.prefs.drafts[n]?.attachments??[]),this.project()}setAttachments(n,r,i,l){return this.setLocal(n,i,l,r),this.project()}setContent(n,r,i,l){return this.setLocal(n,r,i,l),this.project()}moveDraft(n,r){const i=this.prefs.drafts[n],l=this.prefs.drafts[r];return!i||i.deleted||n===r||l&&!l.deleted?this.project():(this.prefs.drafts[n]=ms("",{},[],this.tick()),this.prefs.drafts[r]=ms(i.text,i.agent,i.attachments,this.tick()),this.touched.add(n),this.touched.add(r),this.changed(),this.project())}markRead(n,r){return(this.prefs.readMarks[n]??"")>=r?this.project():(this.prefs.readMarks[n]=r,this.changed(),this.project())}merge(n,r){const i=vr(vr(n)?.drafts),l=this.cleanPrefs(n);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],g=vr(i?.[d]);if(f&&h&&!h.deleted&&g&&!Object.hasOwn(g,"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)||dw(f,h))continue;const p=r===d&&(this.touched.has(d)||!f.deleted&&(f.text.length>0||ys(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(n){return this.listeners.add(n),()=>this.listeners.delete(n)}requestFlush(){for(const n of this.listeners)n(!0)}setLocal(n,r,i,l){this.prefs.drafts[n]=ms(r,pd(i),l,this.tick()),this.touched.add(n),this.changed()}changed(){this.generation+=1,this.persistAll();for(const n of this.listeners)n(!1)}tick(n=0){return this.clock=Math.max(Date.now(),this.clock+1,n+1),this.clock}cleanPrefs(n){const r=vr(n),i={};for(const[o,u]of Object.entries(vr(r?.readMarks)??{}))typeof u=="string"&&(i[o]=u);const l={};for(const[o,u]of Object.entries(vr(r?.drafts)??{})){const d=i9(u);d&&(l[o]=d)}return{readMarks:i,drafts:l}}readMetadata(){try{const n=vr(JSON.parse(this.storage.getItem(a9)??"null"));if(n?.version!==1)return null;const r={};for(const[i,l]of Object.entries(vr(n.drafts)??{})){const o=i9(l);o&&(r[i]=o)}return{drafts:r}}catch{return null}}readRawDrafts(){const n={};try{for(let r=0;r<this.storage.length;r++){const i=this.storage.key(r);if(!i?.startsWith(w0))continue;const l=this.storage.getItem(i);l&&(n[i.slice(w0.length)]=l)}}catch{}return n}readRawAgents(){const n={};try{for(let r=0;r<this.storage.length;r++){const i=this.storage.key(r);if(!i?.startsWith(D0))continue;const l=this.storage.getItem(i);if(!l)continue;const o=pd(JSON.parse(l));ys(o)&&(n[i.slice(D0.length)]=o)}}catch{}return n}readRawMarks(){try{const n=vr(JSON.parse(this.storage.getItem(r9)??"{}"));return n?Object.fromEntries(Object.entries(n).filter(r=>typeof r[1]=="string")):{}}catch{return{}}}persistAll(){try{for(const[n,r]of Object.entries(this.prefs.drafts))!r.deleted&&r.text?this.storage.setItem(w0+n,r.text):this.storage.removeItem(w0+n),!r.deleted&&ys(r.agent)?this.storage.setItem(D0+n,JSON.stringify(r.agent)):this.storage.removeItem(D0+n);this.storage.setItem(r9,JSON.stringify(this.prefs.readMarks)),this.storage.setItem(a9,JSON.stringify({version:1,drafts:this.prefs.drafts}))}catch{}}}let wx=null;function Sr(){return wx||(wx=new fw(localStorage)),wx}const hw=()=>Sr().project(),pw=()=>Sr().snapshot(),s9=()=>Sr().currentGeneration(),mw=(e,n,r)=>Sr().setDraft(e,n,r),l9=(e,n,r)=>Sr().setAgent(e,n,r),o9=(e,n,r,i)=>Sr().setAttachments(e,n,r,i),gw=(e,n,r,i)=>Sr().setContent(e,n,r,i),Ew=(e,n)=>Sr().moveDraft(e,n),yw=(e,n)=>Sr().markRead(e,n),bw=(e,n)=>Sr().merge(e,n),Cw=e=>Sr().subscribe(e),md=()=>Sr().requestFlush();let gs=null;const F0=hw(),gd=15e3,Q8="conductor-remote-view",Y8="conductor-remote-last-new-workspace-repo",c9={groupBy:"status",repos:[],sortBy:"updated",showDiffs:!0,hideMerged:!1,hideDone:!1,collapsed:[]};function u9(e){const n={};return e.model!==void 0&&(n.model=e.model),e.effort!==void 0&&(n.effort=e.effort),e.plan!==void 0&&(n.plan=e.plan),e.fast!==void 0&&(n.fast=e.fast),n}function vw(){try{const{repo:e,...n}=JSON.parse(localStorage.getItem(Q8)??"{}"),r=Array.isArray(n.repos)?n.repos.filter(i=>typeof i=="string"):typeof e=="string"?[e]:[];return{...c9,...n,repos:r}}catch{return c9}}function Aw(){try{return localStorage.getItem(Y8)??""}catch{return""}}const Be=tw((e,n)=>{const r=l=>{localStorage.setItem(Q8,JSON.stringify(l)),e({view:l})},i=l=>{ow(l),e({pending:l})};return{token:qD(),online:!0,lastSyncAt:null,update:null,workingHints:{},pending:lw(),drafts:F0.drafts,draftAttachments:F0.draftAttachments,agentDrafts:F0.agentDrafts,readMarks:F0.readMarks,focusedDraft:null,push:{deviceId:null,devices:0},sidebarOpen:!location.pathname.startsWith("/w/"),lastNewWorkspaceRepo:Aw(),view:vw(),setToken:l=>{l?VD(l):GD(),e({token:l})},setOnline:l=>{if(l){gs&&clearTimeout(gs),gs=null,e({online:l,lastSyncAt:Date.now()});return}if(!n().online||gs)return;const o=rw(n().lastSyncAt);if(o===0){e({online:!1});return}gs=setTimeout(()=>{gs=null,e({online:!1})},o)},setUpdate:l=>e({update:l}),markWorking:l=>e({workingHints:{...n().workingHints,[l]:Date.now()}}),clearWorking:l=>{const{[l]:o,...u}=n().workingHints;e({workingHints:u})},addPending:l=>i([...n().pending.filter(o=>o.id!==l.id),{...l,status:"sending",error:void 0,createdAt:Date.now()}]),failPending:(l,o)=>i(n().pending.map(u=>u.id===l?{...u,status:"error",error:o}:u)),removePending:l=>i(n().pending.filter(o=>o.id!==l)),setDraft:(l,o)=>{const u=mw(l,o,n().agentDrafts[l]??{});e({drafts:u.drafts,agentDrafts:u.agentDrafts,draftAttachments:u.draftAttachments})},addDraftAttachment:(l,o)=>{const u=n().draftAttachments[l]??[];if(u.some(f=>f.path===o.path))return;const d=o9(l,[...u,o],n().drafts[l]??"",n().agentDrafts[l]??{});e({drafts:d.drafts,agentDrafts:d.agentDrafts,draftAttachments:d.draftAttachments})},removeDraftAttachment:(l,o)=>{const u=n().draftAttachments[l]??[],d=u.filter(h=>h.path!==o);if(d.length===u.length)return;const f=o9(l,d,n().drafts[l]??"",n().agentDrafts[l]??{});e({drafts:f.drafts,agentDrafts:f.agentDrafts,draftAttachments:f.draftAttachments})},clearDraftContent:l=>{const o=gw(l,"",n().agentDrafts[l]??{},[]);e({drafts:o.drafts,agentDrafts:o.agentDrafts,draftAttachments:o.draftAttachments})},moveDraft:(l,o)=>{const u=n().drafts,f=u[l]!==void 0||n().agentDrafts[l]!==void 0||n().draftAttachments[l]!==void 0,h=u[o]!==void 0||n().agentDrafts[o]!==void 0||n().draftAttachments[o]!==void 0;if(!f||l===o||h)return;const g=Ew(l,o);e({drafts:g.drafts,agentDrafts:g.agentDrafts,draftAttachments:g.draftAttachments})},markRead:(l,o)=>{(n().readMarks[l]??"")>=o||e({readMarks:yw(l,o).readMarks})},stageAgent:(l,o)=>{const u=u9({...n().agentDrafts[l],...o}),d=l9(l,u,n().drafts[l]??"");e({drafts:d.drafts,agentDrafts:d.agentDrafts,draftAttachments:d.draftAttachments})},clearAgentDraft:(l,o)=>{const u=n().agentDrafts[l];if(!u)return;const d=u9({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=l9(l,d,n().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(Y8,l)}catch{}e({lastNewWorkspaceRepo:l})},setView:l=>r({...n().view,...l}),toggleGroup:l=>{const{collapsed:o}=n().view;r({...n().view,collapsed:o.includes(l)?o.filter(u=>u!==l):[...o,l]})}}}),x9=6e4,kw=1e4,Fx="pwa-update-attempted-at",Bw=2500,Dw=30*6e4,Bl="pwa-update-snoozed-until";async function ww(){try{if("serviceWorker"in navigator){const n=await navigator.serviceWorker.getRegistrations();await Promise.all(n.map(r=>r.unregister()))}if("caches"in window){const n=await caches.keys();await Promise.all(n.map(r=>caches.delete(r)))}}catch{}const e=location.search?"&":"?";location.replace(`${location.pathname}${location.search}${e}_v=${Date.now()}`)}function Fw(){const e=Be(p=>p.token),n=D.useRef(null),r=D.useRef(!1),{needRefresh:[i,l],updateServiceWorker:o}=C7({onRegisteredSW(p,y){y&&(n.current=y,setInterval(()=>{y.update().catch(()=>{})},x9))}}),{data:u}=vn({queryKey:["state"],queryFn:()=>Me.state(),enabled:!!e,refetchInterval:!1}),d=u?.version,f=D.useRef(null);if(D.useEffect(()=>{!d||d==="1.104.0"||f.current===d||(f.current=d,n.current?.update().catch(()=>{}))},[d]),D.useEffect(()=>{if(!i)return;const p=Number(sessionStorage.getItem(Fx));if(sessionStorage.removeItem(Fx),p&&Date.now()-p<kw){l(!1);return}const y=Number(sessionStorage.getItem(Bl));y&&Date.now()<y&&l(!1)},[i,l]),D.useEffect(()=>{if(i)return;const p=()=>{const b=Number(sessionStorage.getItem(Bl));!b||Date.now()<b||n.current?.waiting&&(sessionStorage.removeItem(Bl),l(!0))},y=window.setInterval(p,x9);return document.addEventListener("visibilitychange",p),()=>{window.clearInterval(y),document.removeEventListener("visibilitychange",p)}},[i,l]),!i)return null;const h=()=>{sessionStorage.setItem(Bl,String(Date.now()+Dw)),l(!1)},g=()=>{sessionStorage.removeItem(Bl),sessionStorage.setItem(Fx,String(Date.now()));const p=()=>{r.current||(r.current=!0,window.location.reload())},y=n.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,ww())},Bw)};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(to,{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:g,className:"rounded-lg bg-accent px-3 py-1 text-xs font-semibold text-on-solid transition active:scale-95",children:"Update"})]})}function Sw(){return/iP(hone|ad|od)/.test(navigator.userAgent)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1}function K8(){return window.matchMedia("(display-mode: standalone)").matches||navigator.standalone===!0}function X8(){return window.isSecureContext?"serviceWorker"in navigator?!("PushManager"in window)||!("Notification"in window)?Sw()&&!K8()?"needs-install":"unsupported":"ok":"unsupported":"insecure"}function Z8(){const e=navigator.userAgent,n=/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 K8()?n:`${n} (browser)`}function Nw(e){const n=e+"=".repeat((4-e.length%4)%4),r=atob(n.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 _w(e){let n="";for(const r of new Uint8Array(e))n+=String.fromCharCode(r);return btoa(n).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}async function sf(){if(!("serviceWorker"in navigator))return null;const e=await navigator.serviceWorker.getRegistration();return e||Promise.race([navigator.serviceWorker.ready,new Promise(n=>setTimeout(()=>n(null),5e3))])}async function Mw(e){const n=await sf();if(typeof n?.getNotifications=="function")try{for(const r of await n.getNotifications({tag:e}))r.close()}catch{}}async function W8(){return await(await sf())?.pushManager.getSubscription()??null}function jw(e,n){const r=e.options.applicationServerKey;return!!r&&_w(r)===n}async function J8(e){const n=await sf();if(!n)throw new Error("the app’s service worker isn’t running yet — reload and try again");return n.pushManager.subscribe({userVisibleOnly:!0,applicationServerKey:Nw(e)})}function eg(e){const n=e.toJSON(),r=n.keys??{};if(!n.endpoint||!r.p256dh||!r.auth)throw new Error("the browser returned an incomplete subscription");return{endpoint:n.endpoint,keys:{p256dh:r.p256dh,auth:r.auth}}}async function Tw(e){let n=await W8();if(n&&!jw(n,e)&&(await n.unsubscribe().catch(()=>{}),n=Notification.permission==="granted"?await J8(e):null),!n)return null;const r=await Me.pushSubscribe(eg(n),Z8());return{id:r.id??null,devices:r.devices.length}}function Y0(){const e=window.getSelection();return!!e&&!e.isCollapsed&&e.toString().length>0}const S0=28;function Rw(e,n){const r=window.getSelection();if(!r||r.isCollapsed||!r.rangeCount)return!1;for(const i of r.getRangeAt(0).getClientRects())if(e>=i.left-S0&&e<=i.right+S0&&n>=i.top-S0&&n<=i.bottom+S0)return!0;return!1}function Ow(e,n){const r=n.filter(o=>Xm(o)&&o.toolUseId);if(!r.length)return[...e,...n];const i=[...e,...n.filter(o=>!Xm(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 zw(e,n){if(!n.length)return[...e];const r=new Set(e.map(i=>i.id));return[...e,...n.filter(i=>!r.has(i.id))]}function Lw(e){const n=Be(l=>l.setSidebarOpen),r=Be(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,g=!1,p=!1,y=0,b=0,C=0,v=0;const A=R=>{const L=d();L&&(L.style.transition="none",L.style.transform=`translateX(${R}px)`,v=R)},B=()=>{const R=d();R&&(R.style.transition="",R.style.transform="")},j=R=>{for(let L=R;L;L=L.parentElement)if(L.scrollLeft>0)return!0;return!1},S=()=>{f&&(f=!1,B())},N=R=>{if(S(),u.matches||R.touches.length!==1)return;const L=R.touches[0];if(i.current){const I=d()?.getBoundingClientRect().right??0;if(L.clientX>I)return}else if(L.clientX>44||j(R.target))return;Rw(L.clientX,L.clientY)||(f=!0,h=!1,g=!1,p=Y0(),y=L.clientX,b=L.clientY,C=d()?.offsetWidth??0)},T=R=>{if(!f||g)return;if(!p&&Y0()){g=!0;return}const L=R.touches[0],I=L.clientX-y,O=L.clientY-b;if(!h){if(Math.abs(O)>Math.abs(I)&&Math.abs(O)>8){g=!0;return}if(Math.abs(I)<6)return;h=!0}R.preventDefault();const $=i.current?0:-C;A(Math.max(-C,Math.min(0,$+I)))},F=()=>{if(!f)return;if(f=!1,!h||g)return B();const R=C?(v+C)/C:0;B(),n(R>.4)};return window.addEventListener("touchstart",N,{passive:!0}),window.addEventListener("touchmove",T,{passive:!1}),window.addEventListener("touchend",F),window.addEventListener("touchcancel",F),document.addEventListener("visibilitychange",S),()=>{window.removeEventListener("touchstart",N),window.removeEventListener("touchmove",T),window.removeEventListener("touchend",F),window.removeEventListener("touchcancel",F),document.removeEventListener("visibilitychange",S)}},[e,n])}const d9='input, textarea, [contenteditable]:not([contenteditable="false"])';function Pw(){D.useEffect(()=>{const e=window.visualViewport;if(!e)return;const n=document.documentElement;(matchMedia("(display-mode: standalone)").matches||navigator.standalone)&&n.setAttribute("data-standalone","");let r=0,i;const l=()=>{n.style.removeProperty("--app-height"),n.removeAttribute("data-keyboard")},o=g=>{g&&!i?i=setInterval(u,300):!g&&i&&(clearInterval(i),i=void 0)},u=()=>{const g=document.activeElement,p=g instanceof HTMLElement&&g.matches(d9),y=e.scale>1.01;!p||y?(!y&&window.innerHeight-e.height<120&&(r=e.height),l()):(r||window.innerHeight)-e.height>40?(n.style.setProperty("--app-height",`${Math.round(e.height+e.offsetTop)}px`),n.setAttribute("data-keyboard","")):l(),o(p||n.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 g=document.activeElement;g instanceof HTMLElement&&g.matches(d9)&&g.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 Ds(){const e=Be(r=>r.setOnline),n=Be(r=>r.setToken);return D.useCallback((r,i)=>{e(r),i instanceof Br&&i.status===401&&n(null)},[e,n])}function tg(){const e=Ds(),n=Be(i=>i.setUpdate),r=vn({queryKey:["state"],queryFn:()=>Me.state(),refetchInterval:2500});return D.useEffect(()=>{r.isSuccess&&(e(!0),n(r.data.update??null)),r.isError&&e(!1,r.error)},[r.isSuccess,r.isError,r.error,r.data,e,n]),r}function Iw(){const e=Ds();D.useEffect(()=>{let i=!0,l=!1,o=!1,u=!1,d=null;const f=v=>{const A=bw(v,Be.getState().focusedDraft);Be.getState().applySyncedPrefs(A.state),A.needsUpload&&g(!1)},h=async(v,A=!1)=>{if(!i)return;if(l){o||=v,u||=A;return}l=!0;const B=s9();try{const j=v?await Me.patchPrefs(pw(),A):await Me.prefs();if(!i)return;e(!0),f(j.prefs),s9()!==B&&g(!1)}catch(j){if(!i)return;j instanceof Br&&j.status===404||e(!1,j)}finally{if(l=!1,i&&o){const j=u;o=!1,u=!1,h(!0,j)}}};function g(v,A=!1){d&&clearTimeout(d),d=null,v?h(!0,A):d=setTimeout(()=>{h(!0)},700)}const p=Cw(v=>g(v)),y=setInterval(()=>{h(!1)},15e3),b=()=>{document.visibilityState==="hidden"?g(!0,!0):h(!1)},C=()=>g(!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 ng(){return vn({queryKey:["repos"],queryFn:()=>Me.repos(),staleTime:6e4})}function Uw(e,n){const[r,i]=D.useState(e);return D.useEffect(()=>{const l=setTimeout(()=>i(e),n);return()=>clearTimeout(l)},[e,n]),r}function Hw(e,n=[],r=!0){const i=e.trim();return vn({queryKey:["search",i,n,r],queryFn:()=>Me.search(i,n,r),enabled:i.length>=2,staleTime:3e4,placeholderData:Ky})}function $w(e,n){const r=Ds(),i=vn({queryKey:["workspace",e],queryFn:()=>Me.workspace(e),enabled:n&&!!e,staleTime:Number.POSITIVE_INFINITY,retry:(l,o)=>!(o instanceof Br&&o.status===404)&&l<1});return D.useEffect(()=>{i.isError&&!(i.error instanceof Br&&i.error.status===404)&&r(!1,i.error)},[i.isError,i.error,r]),i}function rg(e,n=!0){const r=Ds(),i=vn({queryKey:["sessions",e],queryFn:()=>Me.sessions(e),enabled:!!e,refetchInterval:n?2e3:!1});return D.useEffect(()=>{i.isError&&r(!1,i.error)},[i.isError,i.error,r]),i}function qw(e,n,r=!1){return vn({queryKey:["workspaceFiles",e],queryFn:()=>Me.workspaceFiles(e),enabled:n&&!!e,staleTime:12e4,refetchInterval:r?5e3:!1,retry:!1})}function Gw(e){return vn({queryKey:["dev-server",e],queryFn:()=>Me.devServer(e),enabled:!!e,refetchInterval:2500})}function Vw(e,n){const r=Ds(),i=vn({queryKey:["diff",e],queryFn:()=>Me.diff(e),enabled:n&&!!e,refetchInterval:5e3});return D.useEffect(()=>{i.isError&&r(!1,i.error)},[i.isError,i.error,r]),i}function Qw(e,n){return vn({queryKey:["filePreview",e],queryFn:()=>Me.filePreview(e),enabled:n&&!!e,refetchInterval:5e3,retry:!1})}function Yw(e){return vn({queryKey:["repoIcon",e],queryFn:()=>Me.repoIcon(e),enabled:!!e,staleTime:Number.POSITIVE_INFINITY,gcTime:Number.POSITIVE_INFINITY,retry:!1})}function Kw(e,n){return vn({queryKey:["logs",e],queryFn:()=>Me.logs(e),enabled:n,refetchInterval:3e3,retry:!1})}function oc(){return vn({queryKey:["model-catalog"],queryFn:Me.modelCatalog,staleTime:6e4,gcTime:Number.POSITIVE_INFINITY,retry:!1})}function ag(){return vn({queryKey:["model-defaults"],queryFn:Me.modelDefaults,staleTime:0,gcTime:Number.POSITIVE_INFINITY,retry:!1})}function Xw(e){return vn({queryKey:["plan-usage"],queryFn:()=>Me.planUsage(),enabled:e,staleTime:6e4,gcTime:Number.POSITIVE_INFINITY,retry:!1})}function ig(e,n=!0,r){return vn({queryKey:["context-breakdown",e,r??null],queryFn:()=>Me.contextBreakdown(e),enabled:n&&!!e,staleTime:0,retry:!1})}function lf(e=!0){return vn({queryKey:["roles"],queryFn:Me.roles,enabled:e,staleTime:3e4,retry:!1})}function Zw(e,n,r){const i=e?.agent_type??"claude",l=ur();return vn({queryKey:["models",i],queryFn:async()=>{const o=await Me.models(e.id,n);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 Ww=(e,n)=>e.length===n.length&&e.every((r,i)=>r.id===n[i].id&&r.text===n[i].text);function Jw(e,n=!0){const r=Ds(),[i,l]=D.useState({entries:[],queued:[],loading:!0,error:null}),o=D.useRef(0),u=Be(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,g=!1;const p=async()=>{if(!g){g=!0;try{const b=document.visibilityState==="visible"?d.current:null,{entries:C,queued:v=[],cursor:A}=await Me.messages(e,o.current,b);if(!h)return;r(!0),o.current=A,l(B=>{const j=C.length?Ow(B.entries,C):B.entries,S=Ww(B.queued,v);return j===B.entries&&S&&!B.loading&&!B.error?B:{entries:j,queued:S?B.queued:v,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{g=!1}}};p();const y=n?setInterval(p,1e3):void 0;return()=>{h=!1,y&&clearInterval(y)}},[e,n,r]),{entries:D.useMemo(()=>zw(i.entries,i.queued),[i.entries,i.queued]),loading:i.loading,error:i.error}}function sg(){const e=ur(),n=Be(u=>u.addPending),r=Be(u=>u.failPending),i=Be(u=>u.removePending),l=Be(u=>u.markWorking),o=Be(u=>u.clearAgentDraft);return D.useCallback(async u=>{const d=u.text.trim();if(!d)return!1;const f=u.id??crypto.randomUUID(),{sessionId:h,workspaceId:g}=u;n({id:f,sessionId:h,workspaceId:g,text:d,queue:u.queue,workflow:u.workflow});try{const p=Be.getState().agentDrafts[h],y=!u.workflow&&p&&Object.keys(p).length?p:void 0,b=await Me.sendPrompt(h,d,g,y,f,u.queue,u.workflow);if(b.ok||b.parked){const C=u.workflow?p:y;return C&&(o(h,C),e.invalidateQueries({queryKey:["sessions",g]})),b.ok&&l(h),e.invalidateQueries({queryKey:["state"]}),setTimeout(()=>i(f),4e3),!0}r(f,b.error||"Send failed")}catch(p){r(f,p instanceof Error?p.message:String(p))}return!1},[n,r,i,l,o,e])}function lg(e){return vn({queryKey:["push"],queryFn:()=>Me.push(),enabled:e,staleTime:3e4})}function eF(){const[e]=D.useState(X8),n=Be(l=>l.setPush),{data:r}=lg(e==="ok"),i=r?.publicKey;D.useEffect(()=>{if(e!=="ok"||!i)return;let l=!0;return Tw(i).then(o=>{l&&n({deviceId:o?.id??null,devices:o?.devices??0})}).catch(()=>{}),()=>{l=!1}},[e,i,n])}function tF(){const[e]=D.useState(X8),[n,r]=D.useState(()=>"Notification"in window?Notification.permission:"unsupported"),[i,l]=D.useState(!1),[o,u]=D.useState(null),{deviceId:d,devices:f}=Be(v=>v.push),h=Be(v=>v.setPush),g=lg(e==="ok"),p=g.data?.publicKey,y=D.useCallback(async()=>{l(!0),u(null);try{const v=await Notification.requestPermission();if(r(v),v!=="granted"){u(v==="denied"?"Notifications are blocked for this app — allow them in your device settings, then try again.":"Notification permission wasn’t granted.");return}const A=p??(await Me.push()).publicKey,B=await J8(A),j=await Me.pushSubscribe(eg(B),Z8());h({deviceId:j.id??null,devices:j.devices.length})}catch(v){u(v instanceof Error?v.message:String(v))}finally{l(!1)}},[p,h]),b=D.useCallback(async()=>{l(!0),u(null);try{const v=await W8();let A=0;v&&(A=(await Me.pushUnsubscribe(v.endpoint).catch(()=>null))?.devices.length??0,await v.unsubscribe()),h({deviceId:null,devices:A})}catch(v){u(v instanceof Error?v.message:String(v))}finally{l(!1)}},[h]),C=D.useCallback(async()=>{if(d){l(!0),u(null);try{const v=await Me.pushTest(d);v.ok||u(v.error??"The push service rejected it.")}catch(v){u(v instanceof Error?v.message:String(v))}finally{l(!1)}}},[d]);return{support:e,permission:n,enabled:!!d,relayDisabled:g.data?.enabled===!1,busy:i,error:o,devices:f,enable:y,disable:b,test:C}}const nF="push-route",f9="/__push-route",rF=12e4;async function h9(){if(!("caches"in window))return null;try{const e=await caches.open(nF),n=await e.match(f9);if(!n)return null;await e.delete(f9);const{url:r,ts:i}=await n.json();return typeof r!="string"||!r.startsWith("/")||typeof i!="number"||Date.now()-i>rF?null:r}catch{return null}}function aF(){const e=_i();D.useEffect(()=>{let n=!0;const r=()=>{h9().then(o=>{n&&o&&e(o)})},i=o=>{const u=o.data;u?.type==="push-navigate"&&typeof u.url=="string"&&u.url.startsWith("/")&&(h9(),e(u.url))},l=()=>{document.visibilityState==="visible"&&r()};return"serviceWorker"in navigator&&navigator.serviceWorker.addEventListener("message",i),document.addEventListener("visibilitychange",l),r(),()=>{n=!1,"serviceWorker"in navigator&&navigator.serviceWorker.removeEventListener("message",i),document.removeEventListener("visibilitychange",l)}},[e])}function iF(e,n){D.useEffect(()=>{if(!e)return;const r=()=>{document.visibilityState==="visible"&&Mw(e)};return r(),document.addEventListener("visibilitychange",r),()=>document.removeEventListener("visibilitychange",r)},[e,n])}function og(e){var n,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(n=0;n<l;n++)e[n]&&(r=og(e[n]))&&(i&&(i+=" "),i+=r)}else for(r in e)e[r]&&(i&&(i+=" "),i+=r);return i}function sF(){for(var e,n,r=0,i="",l=arguments.length;r<l;r++)(e=arguments[r])&&(n=og(e))&&(i&&(i+=" "),i+=n);return i}const lF=(e,n)=>{const r=new Array(e.length+n.length);for(let i=0;i<e.length;i++)r[i]=e[i];for(let i=0;i<n.length;i++)r[e.length+i]=n[i];return r},oF=(e,n)=>({classGroupId:e,validator:n}),cg=(e=new Map,n=null,r)=>({nextPart:e,validators:n,classGroupId:r}),K0="-",p9=[],cF="arbitrary..",uF=e=>{const n=dF(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:i}=e;return{getClassGroupId:u=>{if(u.startsWith("[")&&u.endsWith("]"))return xF(u);const d=u.split(K0),f=d[0]===""&&d.length>1?1:0;return ug(d,f,n)},getConflictingClassGroupIds:(u,d)=>{if(d){const f=i[u],h=r[u];return f?h?lF(h,f):f:h||p9}return r[u]||p9}}},ug=(e,n,r)=>{if(e.length-n===0)return r.classGroupId;const l=e[n],o=r.nextPart.get(l);if(o){const h=ug(e,n+1,o);if(h)return h}const u=r.validators;if(u===null)return;const d=n===0?e.join(K0):e.slice(n).join(K0),f=u.length;for(let h=0;h<f;h++){const g=u[h];if(g.validator(d))return g.classGroupId}},xF=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const n=e.slice(1,-1),r=n.indexOf(":"),i=n.slice(0,r);return i?cF+i:void 0})(),dF=e=>{const{theme:n,classGroups:r}=e;return fF(r,n)},fF=(e,n)=>{const r=cg();for(const i in e){const l=e[i];of(l,r,i,n)}return r},of=(e,n,r,i)=>{const l=e.length;for(let o=0;o<l;o++){const u=e[o];hF(u,n,r,i)}},hF=(e,n,r,i)=>{if(typeof e=="string"){pF(e,n,r);return}if(typeof e=="function"){mF(e,n,r,i);return}gF(e,n,r,i)},pF=(e,n,r)=>{const i=e===""?n:xg(n,e);i.classGroupId=r},mF=(e,n,r,i)=>{if(EF(e)){of(e(i),n,r,i);return}n.validators===null&&(n.validators=[]),n.validators.push(oF(r,e))},gF=(e,n,r,i)=>{const l=Object.entries(e),o=l.length;for(let u=0;u<o;u++){const[d,f]=l[u];of(f,xg(n,d),r,i)}},xg=(e,n)=>{let r=e;const i=n.split(K0),l=i.length;for(let o=0;o<l;o++){const u=i[o];let d=r.nextPart.get(u);d||(d=cg(),r.nextPart.set(u,d)),r=d}return r},EF=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,yF=e=>{if(e<1)return{get:()=>{},set:()=>{}};let n=0,r=Object.create(null),i=Object.create(null);const l=(o,u)=>{r[o]=u,n++,n>e&&(n=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)}}},Ed="!",m9=":",bF=[],g9=(e,n,r,i,l)=>({modifiers:e,hasImportantModifier:n,baseClassName:r,maybePostfixModifierPosition:i,isExternal:l}),CF=e=>{const{prefix:n,experimentalParseClassName:r}=e;let i=l=>{const o=[];let u=0,d=0,f=0,h;const g=l.length;for(let v=0;v<g;v++){const A=l[v];if(u===0&&d===0){if(A===m9){o.push(l.slice(f,v)),f=v+1;continue}if(A==="/"){h=v;continue}}A==="["?u++:A==="]"?u--:A==="("?d++:A===")"&&d--}const p=o.length===0?l:l.slice(f);let y=p,b=!1;p.endsWith(Ed)?(y=p.slice(0,-1),b=!0):p.startsWith(Ed)&&(y=p.slice(1),b=!0);const C=h&&h>f?h-f:void 0;return g9(o,b,y,C)};if(n){const l=n+m9,o=i;i=u=>u.startsWith(l)?o(u.slice(l.length)):g9(bF,!1,u,void 0,!0)}if(r){const l=i;i=o=>r({className:o,parseClassName:l})}return i},vF=e=>{const n=new Map;return e.orderSensitiveModifiers.forEach((r,i)=>{n.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=n.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}},AF=e=>({cache:yF(e.cacheSize),parseClassName:CF(e),sortModifiers:vF(e),postfixLookupClassGroupIds:kF(e),...uF(e)}),kF=e=>{const n=Object.create(null),r=e.postfixLookupClassGroups;if(r)for(let i=0;i<r.length;i++)n[r[i]]=!0;return n},BF=/\s+/,DF=(e,n)=>{const{parseClassName:r,getClassGroupId:i,getConflictingClassGroupIds:l,sortModifiers:o,postfixLookupClassGroupIds:u}=n,d=[],f=e.trim().split(BF);let h="";for(let g=f.length-1;g>=0;g-=1){const p=f[g],{isExternal:y,modifiers:b,hasImportantModifier:C,baseClassName:v,maybePostfixModifierPosition:A}=r(p);if(y){h=p+(h.length>0?" "+h:h);continue}let B=!!A,j;if(B){const R=v.substring(0,A);j=i(R);const L=j&&u[j]?i(v):void 0;L&&L!==j&&(j=L,B=!1)}else j=i(v);if(!j){if(!B){h=p+(h.length>0?" "+h:h);continue}if(j=i(v),!j){h=p+(h.length>0?" "+h:h);continue}B=!1}const S=b.length===0?"":b.length===1?b[0]:o(b).join(":"),N=C?S+Ed:S,T=N+j;if(d.indexOf(T)>-1)continue;d.push(T);const F=l(j,B);for(let R=0;R<F.length;++R){const L=F[R];d.push(N+L)}h=p+(h.length>0?" "+h:h)}return h},wF=(...e)=>{let n=0,r,i,l="";for(;n<e.length;)(r=e[n++])&&(i=dg(r))&&(l&&(l+=" "),l+=i);return l},dg=e=>{if(typeof e=="string")return e;let n,r="";for(let i=0;i<e.length;i++)e[i]&&(n=dg(e[i]))&&(r&&(r+=" "),r+=n);return r},FF=(e,...n)=>{let r,i,l,o;const u=f=>{const h=n.reduce((g,p)=>p(g),e());return r=AF(h),i=r.cache.get,l=r.cache.set,o=d,d(f)},d=f=>{const h=i(f);if(h)return h;const g=DF(f,r);return l(f,g),g};return o=u,(...f)=>o(wF(...f))},SF=[],yn=e=>{const n=r=>r[e]||SF;return n.isThemeGetter=!0,n},fg=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,hg=/^\((?:(\w[\w-]*):)?(.+)\)$/i,NF=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,_F=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,MF=/\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$/,jF=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,TF=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,RF=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ya=e=>NF.test(e),rt=e=>!!e&&!Number.isNaN(Number(e)),Ur=e=>!!e&&Number.isInteger(Number(e)),Sx=e=>e.endsWith("%")&&rt(e.slice(0,-1)),ha=e=>_F.test(e),pg=()=>!0,OF=e=>MF.test(e)&&!jF.test(e),cf=()=>!1,zF=e=>TF.test(e),LF=e=>RF.test(e),PF=e=>!Ne(e)&&!_e(e),IF=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)),UF=e=>Ja(e,Eg,cf),Ne=e=>fg.test(e),bi=e=>Ja(e,yg,OF),E9=e=>Ja(e,KF,rt),HF=e=>Ja(e,Cg,pg),$F=e=>Ja(e,bg,cf),y9=e=>Ja(e,mg,cf),qF=e=>Ja(e,gg,LF),N0=e=>Ja(e,vg,zF),_e=e=>hg.test(e),Dl=e=>Mi(e,yg),GF=e=>Mi(e,bg),b9=e=>Mi(e,mg),VF=e=>Mi(e,Eg),QF=e=>Mi(e,gg),_0=e=>Mi(e,vg,!0),YF=e=>Mi(e,Cg,!0),Ja=(e,n,r)=>{const i=fg.exec(e);return i?i[1]?n(i[1]):r(i[2]):!1},Mi=(e,n,r=!1)=>{const i=hg.exec(e);return i?i[1]?n(i[1]):r:!1},mg=e=>e==="position"||e==="percentage",gg=e=>e==="image"||e==="url",Eg=e=>e==="length"||e==="size"||e==="bg-size",yg=e=>e==="length",KF=e=>e==="number",bg=e=>e==="family-name",Cg=e=>e==="number"||e==="weight",vg=e=>e==="shadow",XF=()=>{const e=yn("color"),n=yn("font"),r=yn("text"),i=yn("font-weight"),l=yn("tracking"),o=yn("leading"),u=yn("breakpoint"),d=yn("container"),f=yn("spacing"),h=yn("radius"),g=yn("shadow"),p=yn("inset-shadow"),y=yn("text-shadow"),b=yn("drop-shadow"),C=yn("blur"),v=yn("perspective"),A=yn("aspect"),B=yn("ease"),j=yn("animate"),S=()=>["auto","avoid","all","avoid-page","page","left","right","column"],N=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],T=()=>[...N(),_e,Ne],F=()=>["auto","hidden","clip","visible","scroll"],R=()=>["auto","contain","none"],L=()=>[_e,Ne,f],I=()=>[Ya,"full","auto",...L()],O=()=>[Ur,"none","subgrid",_e,Ne],$=()=>["auto",{span:["full",Ur,_e,Ne]},Ur,_e,Ne],Q=()=>[Ur,"auto",_e,Ne],le=()=>["auto","min","max","fr",_e,Ne],ee=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],Y=()=>["start","end","center","stretch","center-safe","end-safe"],P=()=>["auto",...L()],V=()=>[Ya,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...L()],Z=()=>[Ya,"screen","full","dvw","lvw","svw","min","max","fit",...L()],xe=()=>[Ya,"screen","full","lh","dvh","lvh","svh","min","max","fit",...L()],M=()=>[e,_e,Ne],z=()=>[...N(),b9,y9,{position:[_e,Ne]}],X=()=>["no-repeat",{repeat:["","x","y","space","round"]}],w=()=>["auto","cover","contain",VF,UF,{size:[_e,Ne]}],W=()=>[Sx,Dl,bi],fe=()=>["","none","full",h,_e,Ne],he=()=>["",rt,Dl,bi],De=()=>["solid","dashed","dotted","double"],Ce=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Fe=()=>[rt,Sx,b9,y9],at=()=>["","none",C,_e,Ne],mt=()=>["none",rt,_e,Ne],Lt=()=>["none",rt,_e,Ne],kt=()=>[rt,_e,Ne],we=()=>[Ya,"full",...L()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[ha],breakpoint:[ha],color:[pg],container:[ha],"drop-shadow":[ha],ease:["in","out","in-out"],font:[PF],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[ha],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[ha],shadow:[ha],spacing:["px",rt],text:[ha],"text-shadow":[ha],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Ya,Ne,_e,A]}],container:["container"],"container-type":[{"@container":["","normal","size",_e,Ne]}],"container-named":[IF],columns:[{columns:[rt,Ne,_e,d]}],"break-after":[{"break-after":S()}],"break-before":[{"break-before":S()}],"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:T()}],overflow:[{overflow:F()}],"overflow-x":[{"overflow-x":F()}],"overflow-y":[{"overflow-y":F()}],overscroll:[{overscroll:R()}],"overscroll-x":[{"overscroll-x":R()}],"overscroll-y":[{"overscroll-y":R()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:I()}],"inset-x":[{"inset-x":I()}],"inset-y":[{"inset-y":I()}],start:[{"inset-s":I(),start:I()}],end:[{"inset-e":I(),end:I()}],"inset-bs":[{"inset-bs":I()}],"inset-be":[{"inset-be":I()}],top:[{top:I()}],right:[{right:I()}],bottom:[{bottom:I()}],left:[{left:I()}],visibility:["visible","invisible","collapse"],z:[{z:[Ur,"auto",_e,Ne]}],basis:[{basis:[Ya,"full","auto",d,...L()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[rt,Ya,"auto","initial","none",Ne]}],grow:[{grow:["",rt,_e,Ne]}],shrink:[{shrink:["",rt,_e,Ne]}],order:[{order:[Ur,"first","last","none",_e,Ne]}],"grid-cols":[{"grid-cols":O()}],"col-start-end":[{col:$()}],"col-start":[{"col-start":Q()}],"col-end":[{"col-end":Q()}],"grid-rows":[{"grid-rows":O()}],"row-start-end":[{row:$()}],"row-start":[{"row-start":Q()}],"row-end":[{"row-end":Q()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":le()}],"auto-rows":[{"auto-rows":le()}],gap:[{gap:L()}],"gap-x":[{"gap-x":L()}],"gap-y":[{"gap-y":L()}],"justify-content":[{justify:[...ee(),"normal"]}],"justify-items":[{"justify-items":[...Y(),"normal"]}],"justify-self":[{"justify-self":["auto",...Y()]}],"align-content":[{content:["normal",...ee()]}],"align-items":[{items:[...Y(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...Y(),{baseline:["","last"]}]}],"place-content":[{"place-content":ee()}],"place-items":[{"place-items":[...Y(),"baseline"]}],"place-self":[{"place-self":["auto",...Y()]}],p:[{p:L()}],px:[{px:L()}],py:[{py:L()}],ps:[{ps:L()}],pe:[{pe:L()}],pbs:[{pbs:L()}],pbe:[{pbe:L()}],pt:[{pt:L()}],pr:[{pr:L()}],pb:[{pb:L()}],pl:[{pl:L()}],m:[{m:P()}],mx:[{mx:P()}],my:[{my:P()}],ms:[{ms:P()}],me:[{me:P()}],mbs:[{mbs:P()}],mbe:[{mbe:P()}],mt:[{mt:P()}],mr:[{mr:P()}],mb:[{mb:P()}],ml:[{ml:P()}],"space-x":[{"space-x":L()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":L()}],"space-y-reverse":["space-y-reverse"],size:[{size:V()}],"inline-size":[{inline:["auto",...Z()]}],"min-inline-size":[{"min-inline":["auto",...Z()]}],"max-inline-size":[{"max-inline":["none",...Z()]}],"block-size":[{block:["auto",...xe()]}],"min-block-size":[{"min-block":["auto",...xe()]}],"max-block-size":[{"max-block":["none",...xe()]}],w:[{w:[d,"screen",...V()]}],"min-w":[{"min-w":[d,"screen","none",...V()]}],"max-w":[{"max-w":[d,"screen","none","prose",{screen:[u]},...V()]}],h:[{h:["screen","lh",...V()]}],"min-h":[{"min-h":["screen","lh","none",...V()]}],"max-h":[{"max-h":["screen","lh",...V()]}],"font-size":[{text:["base",r,Dl,bi]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[i,YF,HF]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Sx,Ne]}],"font-family":[{font:[GF,$F,n]}],"font-features":[{"font-features":[Ne]}],"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,_e,Ne]}],"line-clamp":[{"line-clamp":[rt,"none",_e,E9]}],leading:[{leading:[o,...L()]}],"list-image":[{"list-image":["none",_e,Ne]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",_e,Ne]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:M()}],"text-color":[{text:M()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...De(),"wavy"]}],"text-decoration-thickness":[{decoration:[rt,"from-font","auto",_e,bi]}],"text-decoration-color":[{decoration:M()}],"underline-offset":[{"underline-offset":[rt,"auto",_e,Ne]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:L()}],"tab-size":[{tab:[Ur,_e,Ne]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",_e,Ne]}],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",_e,Ne]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:z()}],"bg-repeat":[{bg:X()}],"bg-size":[{bg:w()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Ur,_e,Ne],radial:["",_e,Ne],conic:[Ur,_e,Ne]},QF,qF]}],"bg-color":[{bg:M()}],"gradient-from-pos":[{from:W()}],"gradient-via-pos":[{via:W()}],"gradient-to-pos":[{to:W()}],"gradient-from":[{from:M()}],"gradient-via":[{via:M()}],"gradient-to":[{to:M()}],rounded:[{rounded:fe()}],"rounded-s":[{"rounded-s":fe()}],"rounded-e":[{"rounded-e":fe()}],"rounded-t":[{"rounded-t":fe()}],"rounded-r":[{"rounded-r":fe()}],"rounded-b":[{"rounded-b":fe()}],"rounded-l":[{"rounded-l":fe()}],"rounded-ss":[{"rounded-ss":fe()}],"rounded-se":[{"rounded-se":fe()}],"rounded-ee":[{"rounded-ee":fe()}],"rounded-es":[{"rounded-es":fe()}],"rounded-tl":[{"rounded-tl":fe()}],"rounded-tr":[{"rounded-tr":fe()}],"rounded-br":[{"rounded-br":fe()}],"rounded-bl":[{"rounded-bl":fe()}],"border-w":[{border:he()}],"border-w-x":[{"border-x":he()}],"border-w-y":[{"border-y":he()}],"border-w-s":[{"border-s":he()}],"border-w-e":[{"border-e":he()}],"border-w-bs":[{"border-bs":he()}],"border-w-be":[{"border-be":he()}],"border-w-t":[{"border-t":he()}],"border-w-r":[{"border-r":he()}],"border-w-b":[{"border-b":he()}],"border-w-l":[{"border-l":he()}],"divide-x":[{"divide-x":he()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":he()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...De(),"hidden","none"]}],"divide-style":[{divide:[...De(),"hidden","none"]}],"border-color":[{border:M()}],"border-color-x":[{"border-x":M()}],"border-color-y":[{"border-y":M()}],"border-color-s":[{"border-s":M()}],"border-color-e":[{"border-e":M()}],"border-color-bs":[{"border-bs":M()}],"border-color-be":[{"border-be":M()}],"border-color-t":[{"border-t":M()}],"border-color-r":[{"border-r":M()}],"border-color-b":[{"border-b":M()}],"border-color-l":[{"border-l":M()}],"divide-color":[{divide:M()}],"outline-style":[{outline:[...De(),"none","hidden"]}],"outline-offset":[{"outline-offset":[rt,_e,Ne]}],"outline-w":[{outline:["",rt,Dl,bi]}],"outline-color":[{outline:M()}],shadow:[{shadow:["","none",g,_0,N0]}],"shadow-color":[{shadow:M()}],"inset-shadow":[{"inset-shadow":["none",p,_0,N0]}],"inset-shadow-color":[{"inset-shadow":M()}],"ring-w":[{ring:he()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:M()}],"ring-offset-w":[{"ring-offset":[rt,bi]}],"ring-offset-color":[{"ring-offset":M()}],"inset-ring-w":[{"inset-ring":he()}],"inset-ring-color":[{"inset-ring":M()}],"text-shadow":[{"text-shadow":["none",y,_0,N0]}],"text-shadow-color":[{"text-shadow":M()}],opacity:[{opacity:[rt,_e,Ne]}],"mix-blend":[{"mix-blend":[...Ce(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Ce()}],"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":[rt]}],"mask-image-linear-from-pos":[{"mask-linear-from":Fe()}],"mask-image-linear-to-pos":[{"mask-linear-to":Fe()}],"mask-image-linear-from-color":[{"mask-linear-from":M()}],"mask-image-linear-to-color":[{"mask-linear-to":M()}],"mask-image-t-from-pos":[{"mask-t-from":Fe()}],"mask-image-t-to-pos":[{"mask-t-to":Fe()}],"mask-image-t-from-color":[{"mask-t-from":M()}],"mask-image-t-to-color":[{"mask-t-to":M()}],"mask-image-r-from-pos":[{"mask-r-from":Fe()}],"mask-image-r-to-pos":[{"mask-r-to":Fe()}],"mask-image-r-from-color":[{"mask-r-from":M()}],"mask-image-r-to-color":[{"mask-r-to":M()}],"mask-image-b-from-pos":[{"mask-b-from":Fe()}],"mask-image-b-to-pos":[{"mask-b-to":Fe()}],"mask-image-b-from-color":[{"mask-b-from":M()}],"mask-image-b-to-color":[{"mask-b-to":M()}],"mask-image-l-from-pos":[{"mask-l-from":Fe()}],"mask-image-l-to-pos":[{"mask-l-to":Fe()}],"mask-image-l-from-color":[{"mask-l-from":M()}],"mask-image-l-to-color":[{"mask-l-to":M()}],"mask-image-x-from-pos":[{"mask-x-from":Fe()}],"mask-image-x-to-pos":[{"mask-x-to":Fe()}],"mask-image-x-from-color":[{"mask-x-from":M()}],"mask-image-x-to-color":[{"mask-x-to":M()}],"mask-image-y-from-pos":[{"mask-y-from":Fe()}],"mask-image-y-to-pos":[{"mask-y-to":Fe()}],"mask-image-y-from-color":[{"mask-y-from":M()}],"mask-image-y-to-color":[{"mask-y-to":M()}],"mask-image-radial":[{"mask-radial":[_e,Ne]}],"mask-image-radial-from-pos":[{"mask-radial-from":Fe()}],"mask-image-radial-to-pos":[{"mask-radial-to":Fe()}],"mask-image-radial-from-color":[{"mask-radial-from":M()}],"mask-image-radial-to-color":[{"mask-radial-to":M()}],"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":N()}],"mask-image-conic-pos":[{"mask-conic":[rt]}],"mask-image-conic-from-pos":[{"mask-conic-from":Fe()}],"mask-image-conic-to-pos":[{"mask-conic-to":Fe()}],"mask-image-conic-from-color":[{"mask-conic-from":M()}],"mask-image-conic-to-color":[{"mask-conic-to":M()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:z()}],"mask-repeat":[{mask:X()}],"mask-size":[{mask:w()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",_e,Ne]}],filter:[{filter:["","none",_e,Ne]}],blur:[{blur:at()}],brightness:[{brightness:[rt,_e,Ne]}],contrast:[{contrast:[rt,_e,Ne]}],"drop-shadow":[{"drop-shadow":["","none",b,_0,N0]}],"drop-shadow-color":[{"drop-shadow":M()}],grayscale:[{grayscale:["",rt,_e,Ne]}],"hue-rotate":[{"hue-rotate":[rt,_e,Ne]}],invert:[{invert:["",rt,_e,Ne]}],saturate:[{saturate:[rt,_e,Ne]}],sepia:[{sepia:["",rt,_e,Ne]}],"backdrop-filter":[{"backdrop-filter":["","none",_e,Ne]}],"backdrop-blur":[{"backdrop-blur":at()}],"backdrop-brightness":[{"backdrop-brightness":[rt,_e,Ne]}],"backdrop-contrast":[{"backdrop-contrast":[rt,_e,Ne]}],"backdrop-grayscale":[{"backdrop-grayscale":["",rt,_e,Ne]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[rt,_e,Ne]}],"backdrop-invert":[{"backdrop-invert":["",rt,_e,Ne]}],"backdrop-opacity":[{"backdrop-opacity":[rt,_e,Ne]}],"backdrop-saturate":[{"backdrop-saturate":[rt,_e,Ne]}],"backdrop-sepia":[{"backdrop-sepia":["",rt,_e,Ne]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":L()}],"border-spacing-x":[{"border-spacing-x":L()}],"border-spacing-y":[{"border-spacing-y":L()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",_e,Ne]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[rt,"initial",_e,Ne]}],ease:[{ease:["linear","initial",B,_e,Ne]}],delay:[{delay:[rt,_e,Ne]}],animate:[{animate:["none",j,_e,Ne]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[v,_e,Ne]}],"perspective-origin":[{"perspective-origin":T()}],rotate:[{rotate:mt()}],"rotate-x":[{"rotate-x":mt()}],"rotate-y":[{"rotate-y":mt()}],"rotate-z":[{"rotate-z":mt()}],scale:[{scale:Lt()}],"scale-x":[{"scale-x":Lt()}],"scale-y":[{"scale-y":Lt()}],"scale-z":[{"scale-z":Lt()}],"scale-3d":["scale-3d"],skew:[{skew:kt()}],"skew-x":[{"skew-x":kt()}],"skew-y":[{"skew-y":kt()}],transform:[{transform:[_e,Ne,"","none","gpu","cpu"]}],"transform-origin":[{origin:T()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:we()}],"translate-x":[{"translate-x":we()}],"translate-y":[{"translate-y":we()}],"translate-z":[{"translate-z":we()}],"translate-none":["translate-none"],zoom:[{zoom:[Ur,_e,Ne]}],accent:[{accent:M()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:M()}],"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",_e,Ne]}],"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":M()}],"scrollbar-track-color":[{"scrollbar-track":M()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":L()}],"scroll-mx":[{"scroll-mx":L()}],"scroll-my":[{"scroll-my":L()}],"scroll-ms":[{"scroll-ms":L()}],"scroll-me":[{"scroll-me":L()}],"scroll-mbs":[{"scroll-mbs":L()}],"scroll-mbe":[{"scroll-mbe":L()}],"scroll-mt":[{"scroll-mt":L()}],"scroll-mr":[{"scroll-mr":L()}],"scroll-mb":[{"scroll-mb":L()}],"scroll-ml":[{"scroll-ml":L()}],"scroll-p":[{"scroll-p":L()}],"scroll-px":[{"scroll-px":L()}],"scroll-py":[{"scroll-py":L()}],"scroll-ps":[{"scroll-ps":L()}],"scroll-pe":[{"scroll-pe":L()}],"scroll-pbs":[{"scroll-pbs":L()}],"scroll-pbe":[{"scroll-pbe":L()}],"scroll-pt":[{"scroll-pt":L()}],"scroll-pr":[{"scroll-pr":L()}],"scroll-pb":[{"scroll-pb":L()}],"scroll-pl":[{"scroll-pl":L()}],"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",_e,Ne]}],fill:[{fill:["none",...M()]}],"stroke-w":[{stroke:[rt,Dl,bi,E9]}],stroke:[{stroke:["none",...M()]}],"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"]}},ZF=FF(XF);function pe(...e){return ZF(sF(e))}const WF=200,Ag=1e3;function JF(e,n){if(!e||e.length>Ag)return null;let r;try{r=decodeURIComponent(e)}catch{return null}if(!I8(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?n?`${n}/${i}`:i:null}function eS(e,n){if(!e||e.length>Ag||e.includes("\0")||!/^\.context\/attachments\/[A-Za-z0-9]{6}\/[^/]+$/.test(e))return null;const r=I8(e)?"image":rf(e)?"source":null;return r?{reference:n?`${n}/${e}`:e,kind:r}:null}function kg(e,n){const r=new Map;for(const i of n??[]){const l=i.slice(i.lastIndexOf("/")+1),o=r.get(l);o?o.push(i):r.set(l,[i])}return i=>{const l=tS(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=nS(r,o);return d?`${e}/${d}${u}`:null}}function tS(e){if(!e||e.length>WF||/\s/.test(e)||e.includes("://"))return null;const n=e.match(/:([1-9]\d*)(?::\d+)?$/),r=n?n[0]:"",i=n?e.slice(0,-r.length):e;return i.startsWith("../")||i.includes("/../")?null:rf(i)?{path:i.startsWith("./")?i.slice(2):i,location:r}:null}function nS(e,n){const r=n.slice(n.lastIndexOf("/")+1),i=e.get(r);if(!i)return null;const l=i.filter(o=>o===n||o.endsWith(`/${n}`));return l.length===1?l[0]:null}const cc=D.createContext(null),rS=cc.Provider,aS=kg(null,void 0);function Bg(e){const n=D.useContext(cc)?.resolveMention??aS;return e===null?null:n(e)}function Dg(e){return JF(e,D.useContext(cc)?.worktree??null)}function iS(e){return eS(e,D.useContext(cc)?.worktree??null)}function C9(e){return e.endsWith(".0")?e.slice(0,-2):e}function H0(e){return e>=1e6?`${C9((e/1e6).toFixed(e<1e7?1:0))}M`:e>=1e3?`${C9((e/1e3).toFixed(e<1e5?1:0))}k`:String(e)}function v9(e,n){if(e<=0||n<=0)return"0%";const r=e/n*100;return r<1?"<1%":`${Math.round(r)}%`}function sS(e){const n=[],r=e.split(TD);for(let i=0;i<r.length;i++){const l=r[i];if(i===0){l&&n.push({text:l,hit:!1});continue}const o=l.indexOf(RD);if(o<0){l&&n.push({text:l,hit:!0});continue}const u=l.slice(0,o),d=l.slice(o+1);u&&n.push({text:u,hit:!0}),d&&n.push({text:d,hit:!1})}return n}function wg(e){return e.state==="setting_up"}const lS={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 oS(e){return wg(e)?{color:"var(--color-muted)",spinning:!0}:{color:e.pr_status&&lS[e.pr_status]||"var(--color-done)",spinning:e.session_status==="working"||e.pr_status==="checks_pending"}}function cS(e){return e.pr_status==="merged"}function uS(e){return uf(e)==="done"}function uf(e){return wg(e)?"setting-up":e.manual_status||e.derived_status||"in-progress"}const A9=["done","in-review","in-progress","setting-up","backlog","canceled"],xS=["backlog","in-progress","in-review","done","canceled"];function yd(e){return{done:"Done","in-review":"In review","in-progress":"In progress","setting-up":"Setting up",backlog:"Backlog",canceled:"Canceled"}[e]??e}const dS=["today","yesterday","week","month","older"];function fS(e){return{today:"Today",yesterday:"Yesterday",week:"Past week",month:"Past month",older:"Older"}[e]}function k9(e){const n=new Date(e);return n.setHours(0,0,0,0),n.getTime()}function hS(e,n=new Date){const r=new Date(Xn(e));if(!Number.isFinite(r.getTime()))return"older";const i=Math.round((k9(n)-k9(r))/864e5);return i<=0?"today":i===1?"yesterday":i<7?"week":i<30?"month":"older"}const xf={done:"var(--color-pr-merged)","in-review":"var(--color-pr-mergeable)","in-progress":"var(--color-done)","setting-up":"var(--color-muted)"};function df(e,n=120){const i=(e.split(`
|
|
14
|
+
`).find(l=>l.trim())??"").replace(/^[\s>#*\-+]+/,"").replace(/`/g,"").replace(/\s+/g," ").trim();return i.length>n?`${i.slice(0,n-1)}…`:i}function ff(e){const n=Math.max(0,Math.floor(e/1e3)),r=n%60,i=Math.floor(n/60)%60,l=Math.floor(n/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 pS=6e4,mS=60*pS,gS=24*mS,ES=7*gS;function Fg(e){return e.toLocaleTimeString(void 0,{hour:"2-digit",minute:"2-digit"})}function Sg(e,n){return`${e.toLocaleDateString(void 0,{month:"short",day:"numeric",...e.getFullYear()===n.getFullYear()?{}:{year:"numeric"}})}, ${Fg(e)}`}function yS(e){const n=new Date(Xn(e));if(!Number.isFinite(n.getTime()))return"";const r=new Date;return n.toDateString()===r.toDateString()?Fg(n):Sg(n,r)}function bS(e,n=Date.now()){const r=new Date(Xn(e)),i=n-r.getTime();return Number.isFinite(i)?i>=ES?Sg(r,new Date(n)):_g(e,n):""}function Ng(e){const n=Xn(e);if(!Number.isFinite(n))return"";const r=Math.round((Date.now()-n)/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 Ci;function _g(e,n=Date.now()){const r=Xn(e);if(!Number.isFinite(r))return"";const i=Math.round((n-r)/1e3);if(i<45)return"now";if(Ci??=new Intl.RelativeTimeFormat(void 0,{numeric:"auto"}),i<90)return Ci.format(-1,"minute");const l=Math.round(i/60);if(l<60)return Ci.format(-l,"minute");const o=Math.round(l/60);if(o<24)return Ci.format(-o,"hour");const u=Math.round(o/24);if(u<30)return Ci.format(-u,"day");const d=Math.round(u/30.4);return d<12?Ci.format(-d,"month"):Ci.format(-Math.round(u/365),"year")}function CS(){const e=location.hostname;return!e||e==="localhost"||e.startsWith("127.")?null:`vnc://${e}`}async function vS(e){if(navigator.clipboard?.writeText)return navigator.clipboard.writeText(e);const n=document.createElement("textarea");n.value=e,n.setAttribute("readonly",""),n.style.cssText="position:fixed;opacity:0",document.body.append(n),n.select();const r=document.execCommand("copy");if(n.remove(),!r)throw new Error("Clipboard unavailable")}const AS={activity:F7,anchor:N7,apple:M7,atom:$7,award:G7,banknote:Q7,battery:K7,beer:Z7,bell:y8,bike:eC,bird:nC,bluetooth:aC,book:oC,"book-open":sC,bookmark:uC,bot:b8,box:fC,brain:pC,briefcase:gC,brush:yC,bug:AC,"bug-play":CC,building:wC,"building-2":BC,cake:SC,calendar:_C,camera:jC,car:RC,carrot:zC,cat:PC,"chart-bar":UC,"chart-line":$C,"chart-pie":GC,clapperboard:r3,clock:C8,cloud:u3,code:h3,"code-xml":d3,coffee:m3,cog:E3,compass:b3,cpu:A3,"credit-card":B3,crown:w3,database:S3,dna:_3,dog:j3,"dollar-sign":R3,dumbbell:z3,egg:U3,factory:G3,feather:Q3,file:W3,"file-code":K3,film:ev,fish:nv,flag:av,flame:sv,"flask-conical":ov,folder:uv,"gamepad-2":hv,gem:Ev,gift:bv,"git-branch":kv,github:Fv,glasses:Nv,globe:Mv,"graduation-cap":Tv,"grid-3x3":Ov,hammer:Lv,headphones:Iv,heart:qv,"heart-pulse":Hv,house:Qv,image:Kv,key:Jv,laptop:tA,"layout-grid":iA,layers:rA,leaf:lA,lightbulb:cA,link:xA,lock:pA,mail:yA,map:D8,"map-pin":CA,martini:kA,medal:DA,"message-circle":FA,"message-square":NA,mic:w8,microscope:RA,monitor:zA,moon:PA,music:UA,orbit:$A,package:GA,paintbrush:QA,paperclip:ic,"paw-print":WA,pen:ek,pencil:nk,phone:lk,pill:ck,pipette:xk,pizza:fk,plane:pk,plug:Ek,power:Ck,puzzle:Ak,rabbit:Dk,radio:Fk,rocket:_k,ruler:zk,salad:Rk,satellite:Pk,scissors:$k,server:Yk,settings:Xk,shell:Wk,shield:eB,ship:nB,"shopping-bag":aB,"shopping-cart":sB,smartphone:uB,snail:dB,soup:mB,sparkles:EB,sprout:bB,star:xd,stethoscope:kB,store:DB,sun:_8,tag:_B,tags:jB,target:RB,telescope:zB,terminal:PB,ticket:UB,"train-front":$B,"tree-pine":QB,"trending-up":KB,trophy:WB,turtle:eD,user:nD,users:aD,utensils:sD,video:oD,wallet:uD,"wand-2":Vm,"wand-sparkles":Vm,warehouse:fD,wheat:gD,wifi:M8,wine:CD,wrench:kD,zap:ef};function Mg({state:e,color:n="var(--color-working)",className:r}){return e==="failed"?x.jsx("span",{className:pe("dot-error",r),role:"img","aria-label":"Send failed","data-prompt-state":"failed",children:x.jsx(Cn,{size:8,strokeWidth:3,"aria-hidden":!0})}):x.jsx("span",{className:pe("dot-spinner",r),style:{"--spin-color":n},role:"img","aria-label":"Prompt pending","data-prompt-state":"sending"})}function kS({w:e,promptState:n,className:r}){const{color:i,spinning:l}=oS(e);return n?x.jsx(Mg,{state:n,color:i,className:r}):l?x.jsx("span",{className:pe("dot-spinner",r),style:{"--spin-color":i}}):x.jsx("span",{className:pe("dot",r),style:{background:i}})}function BS({className:e}){return x.jsx("span",{className:pe("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(ud,{size:7,strokeWidth:0,fill:"currentColor","aria-hidden":!0})})}function DS(e){const n=Math.max(0,Math.round(e/1e3));if(n<90)return`${n}s`;const r=Math.round(n/60);return r<60?`${r}m`:`${Math.round(r/60)}h`}function wS(){const e=Be(u=>u.online),n=Be(u=>u.lastSyncAt),r=Be(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(to,{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(Jd,{size:13}),x.jsxs("span",{children:["Offline — retrying…",n?` last synced ${DS(l-n)} ago`:""]})]})}function ga({className:e}){const n=CS();return n?x.jsx("a",{href:n,className:pe("font-semibold text-accent underline underline-offset-2",e),children:"Unlock the Mac"}):null}function jg({text:e,label:n,className:r,size:i=14}){const[l,o]=D.useState(!1),u=async()=>{try{await vS(e),o(!0),window.setTimeout(()=>o(!1),1800)}catch{o(!1)}};return x.jsx("button",{type:"button",onClick:()=>{u()},"aria-label":l?`Copied ${n}`:`Copy ${n}`,className:pe("flex items-center justify-center text-muted transition active:bg-surface-2",r),children:l?x.jsx(qr,{size:i,className:"text-accent"}):x.jsx(Xd,{size:i})})}function B9({children:e,className:n}){return x.jsx("span",{className:pe("rounded-md bg-surface-2 px-1.5 py-0.5 font-mono text-[11px] text-muted",n),children:e})}function FS({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 SS({error:e}){const n=typeof navigator<"u"&&navigator.onLine===!1,r=e instanceof Error?e.message:String(e??"request failed"),i=!(e instanceof Br)||e.status===0;return n?x.jsxs(tn,{children:[x.jsx(Jd,{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(tn,{children:[x.jsx(s3,{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 tn({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 $0="grid size-8 place-items-center overflow-hidden rounded-lg bg-surface-2 font-semibold text-muted";function Vl({icon:e,name:n,artwork:r}){const i=x.jsx("div",{className:pe($0,"text-xs"),children:(n.trim()[0]??"?").toUpperCase()});if(!e)return i;if(e.kind==="emoji")return x.jsx("div",{className:pe($0,"text-lg leading-none"),children:e.value});if(e.kind==="named"){const l=AS[e.value];return l?x.jsx("div",{className:$0,children:x.jsx(l,{size:18,className:"text-muted"})}):i}return e.kind==="github"?x.jsx(Tg,{src:`https://github.com/${encodeURIComponent(e.owner)}.png?size=64`,fit:"cover",artwork:r,fallback:i}):x.jsx(NS,{repoName:n,artwork:r,fallback:i})}function Tg({src:e,fit:n,artwork:r,fallback:i}){const[l,o]=D.useState(!1);return l?x.jsx(x.Fragment,{children:i}):x.jsx("div",{className:pe($0,r==="inset"&&"p-1.5"),children:x.jsx("img",{src:e,alt:"",loading:"lazy",className:pe("size-full",r==="full-bleed"?"rounded-[inherit]":"rounded-sm",n==="cover"?"object-cover":"object-contain"),onError:()=>o(!0)})})}function NS({repoName:e,artwork:n,fallback:r}){const{data:i,isError:l}=Yw(e);return!e||l||!i?x.jsx(x.Fragment,{children:r}):x.jsx(Tg,{src:i,fit:"contain",artwork:n,fallback:r})}function Rg({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(wS,{})]})}function bd({title:e,subtitle:n,menu:r,right:i}){const l=Be(o=>o.setSidebarOpen);return x.jsx(Rg,{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(KA,{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}),n?x.jsx("div",{className:"truncate text-xs leading-tight text-muted",children:n}):null]}),i]})})}function _S(e){const n=e.regex,r={},i={begin:/\$\{/,end:/\}/,contains:["self",{begin:/:-/,contains:[r]}]};Object.assign(r,{className:"variable",variants:[{begin:n.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:/'/},g={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},v=["if","then","else","elif","fi","time","for","while","until","in","do","done","case","esac","coproc","function","select"],A=["true","false"],B={match:/(\/[a-z._-]+)+/},j=["break","cd","continue","eval","exec","exit","export","getopts","hash","pwd","readonly","return","shift","test","times","trap","umask","unset"],S=["alias","bind","builtin","caller","command","declare","echo","enable","help","let","local","logout","mapfile","printf","read","readarray","source","sudo","type","typeset","ulimit","unalias"],N=["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"],T=["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:v,literal:A,built_in:[...j,...S,"set","shopt",...N,...T]},contains:[b,e.SHEBANG(),C,p,o,u,B,d,f,h,g,r]}}const MS=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_-]*/}}),jS=["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"],TS=["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"],RS=[...jS,...TS],OS=["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(),zS=["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(),LS=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),PS=["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 IS(e){const n=e.regex,r=MS(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:":("+zS.join("|")+")"},{begin:":(:)?("+LS.join("|")+")"}]},r.CSS_VARIABLE,{className:"attribute",begin:"\\b("+PS.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:n.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:OS.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...d,r.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+RS.join("|")+")\\b"}]}}function US(e){const n=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=/"(\\"|[^"])*"/,g=/'[^']*'/,p=n.either(f,h,g),y=n.concat(p,"(\\s*\\.\\s*",p,")*",n.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 D9="[A-Za-z$_][0-9A-Za-z$_]*",HS=["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"],$S=["true","false","null","undefined","NaN","Infinity"],Og=["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"],zg=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],Lg=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],qS=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],GS=[].concat(Lg,Og,zg);function VS(e){const n=e.regex,r=(Z,{after:xe})=>{const M="</"+Z[0].slice(1);return Z.input.indexOf(M,xe)!==-1},i=D9,l={begin:"<>",end:"</>"},o=/<[A-Za-z0-9\\._:-]+\s*\/>/,u={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(Z,xe)=>{const M=Z[0].length+Z.index,z=Z.input[M];if(z==="<"||z===","){xe.ignoreMatch();return}z===">"&&(r(Z,{after:M})||xe.ignoreMatch());let X;const w=Z.input.substring(M);if(X=w.match(/^\s*=/)){xe.ignoreMatch();return}if((X=w.match(/^\s+extends\s+/))&&X.index===0){xe.ignoreMatch();return}}},d={$pattern:D9,keyword:HS,literal:$S,built_in:GS,"variable.language":qS},f="[0-9](_?[0-9])*",h=`\\.(${f})`,g="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",p={className:"number",variants:[{begin:`(\\b(${g})((${h})|\\.)?|(${h}))[eE][+-]?(${f})\\b`},{begin:`\\b(${g})\\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"}},v={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,y],subLanguage:"graphql"}},A={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,y]},j={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]},S=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,b,C,v,A,{match:/\$\d+/},p];y.contains=S.concat({begin:/\{/,end:/\}/,keywords:d,contains:["self"].concat(S)});const N=[].concat(j,y.contains),T=N.concat([{begin:/(\s*)\(/,end:/\)/,keywords:d,contains:["self"].concat(N)}]),F={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:d,contains:T},R={variants:[{match:[/class/,/\s+/,i,/\s+/,/extends/,/\s+/,n.concat(i,"(",n.concat(/\./,i),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,i],scope:{1:"keyword",3:"title.class"}}]},L={relevance:0,match:n.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:{_:[...Og,...zg]}},I={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},O={variants:[{match:[/function/,/\s+/,i,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[F],illegal:/%/},$={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function Q(Z){return n.concat("(?!",Z.join("|"),")")}const le={match:n.concat(/\b/,Q([...Lg,"super","import","await"].map(Z=>`${Z}\\s*\\(`)),i,n.lookahead(/\s*\(/)),className:"title.function",relevance:0},ee={begin:n.concat(/\./,n.lookahead(n.concat(i,/(?![0-9A-Za-z$_(])/))),end:i,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},Y={match:[/get|set/,/\s+/,i,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},F]},P="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+e.UNDERSCORE_IDENT_RE+")\\s*=>",V={match:[/const|var|let/,/\s+/,i,/\s*/,/=\s*/,/(async\s*)?/,n.lookahead(P)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[F]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:d,exports:{PARAMS_CONTAINS:T,CLASS_REFERENCE:L},illegal:/#(?![$_A-Za-z])/,contains:[e.SHEBANG({label:"shebang",binary:"node",relevance:5}),I,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,b,C,v,A,j,{match:/\$\d+/},p,L,{scope:"attr",match:i+n.lookahead(":"),relevance:0},V,{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[j,e.REGEXP_MODE,{className:"function",begin:P,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:T}]}]},{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"]}]}]},O,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+e.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[F,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:[F]},le,$,R,Y,{match:/\$[(.]/}]}}const QS="([-+]?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)|NaN|[-+]?Infinity",YS={scope:"number",match:QS,relevance:0};function KS(e){const n={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:[n,r,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,l,YS,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE],illegal:"\\S"}}function XS(e){const n=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:n.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}/}]},g={className:"emphasis",contains:[],variants:[{begin:/\*(?![*\s])/,end:/\*/},{begin:/_(?![_\s])/,end:/_/,relevance:0}]},p=e.inherit(h,{contains:[]}),y=e.inherit(g,{contains:[]});h.contains.push(y),g.contains.push(p);let b=[r,f];return[h,g,p,y].forEach(B=>{B.contains=B.contains.concat(b)}),b=b.concat(h,g),{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,g,{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 ZS(e){const n=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:/#/},g={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,g,h]},{begin:/([fF][rR]|[rR][fF]|[fF])"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,f,g,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,g,h]},{begin:/([fF][rR]|[rR][fF]|[fF])"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,g,h]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},y="[0-9](_?[0-9])*",b=`(\\b(${y}))?\\.(${y})|\\b(${y})\\.`,C=`\\b|${i.join("|")}`,v={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})`}]},A={className:"comment",begin:n.lookahead(/# type:/),end:/$/,keywords:d,contains:[{begin:/# type:/},{begin:/#/,end:/\b\B/,endsWithParent:!0}]},B={className:"params",variants:[{className:"",begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:d,contains:["self",f,v,p,e.HASH_COMMENT_MODE]}]};return h.contains=[p,v,f],{name:"Python",aliases:["py","gyp","ipython"],unicodeRegex:!0,keywords:d,illegal:/(<\/|\?)|=>/,contains:[f,v,{scope:"variable.language",match:/\bself\b/},{beginKeywords:"if",relevance:0},{match:/\bor\b/,scope:"keyword"},p,A,e.HASH_COMMENT_MODE,{match:[/\bdef/,/\s+/,r],scope:{1:"keyword",3:"title.function"},contains:[B]},{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:[v,B,p]}]}}function WS(e){const n=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"],g=["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=g,C=[...h,...f].filter(T=>!g.includes(T)),v={scope:"variable",match:/@[a-z0-9][a-z0-9_]*/},A={scope:"operator",match:/[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,relevance:0},B={match:n.concat(/\b/,n.either(...b),/\s*\(/),relevance:0,keywords:{built_in:b}};function j(T){return n.concat(/\b/,n.either(...T.map(F=>F.replace(/\s+/,"\\s+"))),/\b/)}const S={scope:"keyword",match:j(y),relevance:0};function N(T,{exceptions:F,when:R}={}){const L=R;return F=F||[],T.map(I=>I.match(/\|\d+$/)||F.includes(I)?I:L(I)?`${I}|0`:I)}return{name:"SQL",case_insensitive:!0,illegal:/[{}]|<\//,keywords:{$pattern:/\b[\w\.]+/,keyword:N(C,{when:T=>T.length<3}),literal:o,type:d,built_in:p},contains:[{scope:"type",match:j(u)},S,B,v,i,l,e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,r,A]}}const X0="[A-Za-z$_][0-9A-Za-z$_]*",Pg=["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"],Ig=["true","false","null","undefined","NaN","Infinity"],Ug=["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"],Hg=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],$g=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],qg=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],Gg=[].concat($g,Ug,Hg);function JS(e){const n=e.regex,r=(Z,{after:xe})=>{const M="</"+Z[0].slice(1);return Z.input.indexOf(M,xe)!==-1},i=X0,l={begin:"<>",end:"</>"},o=/<[A-Za-z0-9\\._:-]+\s*\/>/,u={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(Z,xe)=>{const M=Z[0].length+Z.index,z=Z.input[M];if(z==="<"||z===","){xe.ignoreMatch();return}z===">"&&(r(Z,{after:M})||xe.ignoreMatch());let X;const w=Z.input.substring(M);if(X=w.match(/^\s*=/)){xe.ignoreMatch();return}if((X=w.match(/^\s+extends\s+/))&&X.index===0){xe.ignoreMatch();return}}},d={$pattern:X0,keyword:Pg,literal:Ig,built_in:Gg,"variable.language":qg},f="[0-9](_?[0-9])*",h=`\\.(${f})`,g="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",p={className:"number",variants:[{begin:`(\\b(${g})((${h})|\\.)?|(${h}))[eE][+-]?(${f})\\b`},{begin:`\\b(${g})\\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"}},v={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,y],subLanguage:"graphql"}},A={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,y]},j={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]},S=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,b,C,v,A,{match:/\$\d+/},p];y.contains=S.concat({begin:/\{/,end:/\}/,keywords:d,contains:["self"].concat(S)});const N=[].concat(j,y.contains),T=N.concat([{begin:/(\s*)\(/,end:/\)/,keywords:d,contains:["self"].concat(N)}]),F={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:d,contains:T},R={variants:[{match:[/class/,/\s+/,i,/\s+/,/extends/,/\s+/,n.concat(i,"(",n.concat(/\./,i),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,i],scope:{1:"keyword",3:"title.class"}}]},L={relevance:0,match:n.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:{_:[...Ug,...Hg]}},I={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},O={variants:[{match:[/function/,/\s+/,i,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[F],illegal:/%/},$={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function Q(Z){return n.concat("(?!",Z.join("|"),")")}const le={match:n.concat(/\b/,Q([...$g,"super","import","await"].map(Z=>`${Z}\\s*\\(`)),i,n.lookahead(/\s*\(/)),className:"title.function",relevance:0},ee={begin:n.concat(/\./,n.lookahead(n.concat(i,/(?![0-9A-Za-z$_(])/))),end:i,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},Y={match:[/get|set/,/\s+/,i,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},F]},P="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+e.UNDERSCORE_IDENT_RE+")\\s*=>",V={match:[/const|var|let/,/\s+/,i,/\s*/,/=\s*/,/(async\s*)?/,n.lookahead(P)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[F]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:d,exports:{PARAMS_CONTAINS:T,CLASS_REFERENCE:L},illegal:/#(?![$_A-Za-z])/,contains:[e.SHEBANG({label:"shebang",binary:"node",relevance:5}),I,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,b,C,v,A,j,{match:/\$\d+/},p,L,{scope:"attr",match:i+n.lookahead(":"),relevance:0},V,{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[j,e.REGEXP_MODE,{className:"function",begin:P,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:T}]}]},{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"]}]}]},O,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+e.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[F,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:[F]},le,$,R,Y,{match:/\$[(.]/}]}}function eN(e){const n=e.regex,r=JS(e),i=X0,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:X0,keyword:Pg.concat(f),literal:Ig,built_in:Gg.concat(l),"variable.language":qg},g={className:"meta",begin:"@"+i},p=(v,A,B)=>{const j=v.contains.findIndex(S=>S.label===A);if(j===-1)throw new Error("can not find mode to replace");v.contains.splice(j,1,B)};Object.assign(r.keywords,h),r.exports.PARAMS_CONTAINS.push(g);const y=r.contains.find(v=>v.scope==="attr"),b=Object.assign({},y,{match:n.concat(i,n.lookahead(/\s*\?:/))});r.exports.PARAMS_CONTAINS.push([r.exports.CLASS_REFERENCE,y,b]),r.contains=r.contains.concat([g,o,u,b]),p(r,"shebang",e.SHEBANG()),p(r,"use_strict",d);const C=r.contains.find(v=>v.label==="func.def");return C.relevance=0,Object.assign(r,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),r}function tN(e){const n=e.regex,r=n.concat(/[\p{L}_]/u,n.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:n.concat(/</,n.lookahead(n.concat(r,n.either(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:r,relevance:0,starts:h}]},{className:"tag",begin:n.concat(/<\//,n.lookahead(n.concat(r,/>/))),contains:[{className:"name",begin:r,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}function nN(e){const n="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:n,relevance:0},C={begin:/\{/,end:/\}/,contains:[b],illegal:"\\n",relevance:0},v={begin:"\\[",end:"\\]",contains:[b],illegal:"\\n",relevance:0},A=[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:n,keywords:{literal:n}},y,{className:"number",begin:e.C_NUMBER_RE+"\\b",relevance:0},C,v,o,u],B=[...A];return B.pop(),B.push(d),b.contains=B,{name:"YAML",case_insensitive:!0,aliases:["yml"],contains:A}}var Nx,w9;function rN(){if(w9)return Nx;w9=1;function e(U){return U instanceof Map?U.clear=U.delete=U.set=function(){throw new Error("map is read-only")}:U instanceof Set&&(U.add=U.clear=U.delete=function(){throw new Error("set is read-only")}),Object.freeze(U),Object.getOwnPropertyNames(U).forEach(ie=>{const ke=U[ie],Ge=typeof ke;(Ge==="object"||Ge==="function")&&!Object.isFrozen(ke)&&e(ke)}),U}class n{constructor(ie){ie.data===void 0&&(ie.data={}),this.data=ie.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function r(U){return U.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function i(U,...ie){const ke=Object.create(null);for(const Ge in U)ke[Ge]=U[Ge];return ie.forEach(function(Ge){for(const nt in Ge)ke[nt]=Ge[nt]}),ke}const l="</span>",o=U=>!!U.scope,u=(U,{prefix:ie})=>{if(U.startsWith("language:"))return U.replace("language:","language-");if(U.includes(".")){const ke=U.split(".");return[`${ie}${ke.shift()}`,...ke.map((Ge,nt)=>`${Ge}${"_".repeat(nt+1)}`)].join(" ")}return`${ie}${U}`};class d{constructor(ie,ke){this.buffer="",this.classPrefix=ke.classPrefix,ie.walk(this)}addText(ie){this.buffer+=r(ie)}openNode(ie){if(!o(ie))return;const ke=u(ie.scope,{prefix:this.classPrefix});this.span(ke)}closeNode(ie){o(ie)&&(this.buffer+=l)}value(){return this.buffer}span(ie){this.buffer+=`<span class="${ie}">`}}const f=(U={})=>{const ie={children:[]};return Object.assign(ie,U),ie};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(ie){this.top.children.push(ie)}openNode(ie){const ke=f({scope:ie});this.add(ke),this.stack.push(ke)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(ie){return this.constructor._walk(ie,this.rootNode)}static _walk(ie,ke){return typeof ke=="string"?ie.addText(ke):ke.children&&(ie.openNode(ke),ke.children.forEach(Ge=>this._walk(ie,Ge)),ie.closeNode(ke)),ie}static _collapse(ie){typeof ie!="string"&&ie.children&&(ie.children.every(ke=>typeof ke=="string")?ie.children=[ie.children.join("")]:ie.children.forEach(ke=>{h._collapse(ke)}))}}class g extends h{constructor(ie){super(),this.options=ie}addText(ie){ie!==""&&this.add(ie)}startScope(ie){this.openNode(ie)}endScope(){this.closeNode()}__addSublanguage(ie,ke){const Ge=ie.root;ke&&(Ge.scope=`language:${ke}`),this.add(Ge)}toHTML(){return new d(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function p(U){return U?typeof U=="string"?U:U.source:null}function y(U){return v("(?=",U,")")}function b(U){return v("(?:",U,")*")}function C(U){return v("(?:",U,")?")}function v(...U){return U.map(ke=>p(ke)).join("")}function A(U){const ie=U[U.length-1];return typeof ie=="object"&&ie.constructor===Object?(U.splice(U.length-1,1),ie):{}}function B(...U){return"("+(A(U).capture?"":"?:")+U.map(Ge=>p(Ge)).join("|")+")"}function j(U){return new RegExp(U.toString()+"|").exec("").length-1}function S(U,ie){const ke=U&&U.exec(ie);return ke&&ke.index===0}const N=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function T(U,{joinWith:ie}){let ke=0;return U.map(Ge=>{ke+=1;const nt=ke;let Ft=p(Ge),Re="";for(;Ft.length>0;){const Se=N.exec(Ft);if(!Se){Re+=Ft;break}Re+=Ft.substring(0,Se.index),Ft=Ft.substring(Se.index+Se[0].length),Se[0][0]==="\\"&&Se[1]?Re+="\\"+String(Number(Se[1])+nt):(Re+=Se[0],Se[0]==="("&&ke++)}return Re}).map(Ge=>`(${Ge})`).join(ie)}const F=/\b\B/,R="[a-zA-Z]\\w*",L="[a-zA-Z_]\\w*",I="\\b\\d+(\\.\\d+)?",O="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",$="\\b(0b[01]+)",Q="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",le=(U={})=>{const ie=/^#![ ]*\//;return U.binary&&(U.begin=v(ie,/.*\b/,U.binary,/\b.*/)),i({scope:"meta",begin:ie,end:/$/,relevance:0,"on:begin":(ke,Ge)=>{ke.index!==0&&Ge.ignoreMatch()}},U)},ee={begin:"\\\\[\\s\\S]",relevance:0},Y={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[ee]},P={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[ee]},V={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/},Z=function(U,ie,ke={}){const Ge=i({scope:"comment",begin:U,end:ie,contains:[]},ke);Ge.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 nt=B("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 Ge.contains.push({begin:v(/[ ]+/,"(",nt,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),Ge},xe=Z("//","$"),M=Z("/\\*","\\*/"),z=Z("#","$"),X={scope:"number",begin:I,relevance:0},w={scope:"number",begin:O,relevance:0},W={scope:"number",begin:$,relevance:0},fe={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[ee,{begin:/\[/,end:/\]/,relevance:0,contains:[ee]}]},he={scope:"title",begin:R,relevance:0},De={scope:"title",begin:L,relevance:0},Ce={begin:"\\.\\s*"+L,relevance:0};var at=Object.freeze({__proto__:null,APOS_STRING_MODE:Y,BACKSLASH_ESCAPE:ee,BINARY_NUMBER_MODE:W,BINARY_NUMBER_RE:$,COMMENT:Z,C_BLOCK_COMMENT_MODE:M,C_LINE_COMMENT_MODE:xe,C_NUMBER_MODE:w,C_NUMBER_RE:O,END_SAME_AS_BEGIN:function(U){return Object.assign(U,{"on:begin":(ie,ke)=>{ke.data._beginMatch=ie[1]},"on:end":(ie,ke)=>{ke.data._beginMatch!==ie[1]&&ke.ignoreMatch()}})},HASH_COMMENT_MODE:z,IDENT_RE:R,MATCH_NOTHING_RE:F,METHOD_GUARD:Ce,NUMBER_MODE:X,NUMBER_RE:I,PHRASAL_WORDS_MODE:V,QUOTE_STRING_MODE:P,REGEXP_MODE:fe,RE_STARTERS_RE:Q,SHEBANG:le,TITLE_MODE:he,UNDERSCORE_IDENT_RE:L,UNDERSCORE_TITLE_MODE:De});function mt(U,ie){U.input[U.index-1]==="."&&ie.ignoreMatch()}function Lt(U,ie){U.className!==void 0&&(U.scope=U.className,delete U.className)}function kt(U,ie){ie&&U.beginKeywords&&(U.begin="\\b("+U.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",U.__beforeBegin=mt,U.keywords=U.keywords||U.beginKeywords,delete U.beginKeywords,U.relevance===void 0&&(U.relevance=0))}function we(U,ie){Array.isArray(U.illegal)&&(U.illegal=B(...U.illegal))}function Ae(U,ie){if(U.match){if(U.begin||U.end)throw new Error("begin & end are not supported with match");U.begin=U.match,delete U.match}}function tt(U,ie){U.relevance===void 0&&(U.relevance=1)}const Qe=(U,ie)=>{if(!U.beforeMatch)return;if(U.starts)throw new Error("beforeMatch cannot be used with starts");const ke=Object.assign({},U);Object.keys(U).forEach(Ge=>{delete U[Ge]}),U.keywords=ke.keywords,U.begin=v(ke.beforeMatch,y(ke.begin)),U.starts={relevance:0,contains:[Object.assign(ke,{endsParent:!0})]},U.relevance=0,delete ke.beforeMatch},Tt=["of","and","for","in","not","or","if","then","parent","list","value"],Ue="keyword";function Ct(U,ie,ke=Ue){const Ge=Object.create(null);return typeof U=="string"?nt(ke,U.split(" ")):Array.isArray(U)?nt(ke,U):Object.keys(U).forEach(function(Ft){Object.assign(Ge,Ct(U[Ft],ie,Ft))}),Ge;function nt(Ft,Re){ie&&(Re=Re.map(Se=>Se.toLowerCase())),Re.forEach(function(Se){const Ve=Se.split("|");Ge[Ve[0]]=[Ft,wt(Ve[0],Ve[1])]})}}function wt(U,ie){return ie?Number(ie):cn(U)?0:1}function cn(U){return Tt.includes(U.toLowerCase())}const Pn={},Ye=U=>{console.error(U)},nn=(U,...ie)=>{console.log(`WARN: ${U}`,...ie)},se=(U,ie)=>{Pn[`${U}/${ie}`]||(console.log(`Deprecated as of ${U}. ${ie}`),Pn[`${U}/${ie}`]=!0)},me=new Error;function je(U,ie,{key:ke}){let Ge=0;const nt=U[ke],Ft={},Re={};for(let Se=1;Se<=ie.length;Se++)Re[Se+Ge]=nt[Se],Ft[Se+Ge]=!0,Ge+=j(ie[Se-1]);U[ke]=Re,U[ke]._emit=Ft,U[ke]._multi=!0}function Ke(U){if(Array.isArray(U.begin)){if(U.skip||U.excludeBegin||U.returnBegin)throw Ye("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),me;if(typeof U.beginScope!="object"||U.beginScope===null)throw Ye("beginScope must be object"),me;je(U,U.begin,{key:"beginScope"}),U.begin=T(U.begin,{joinWith:""})}}function it(U){if(Array.isArray(U.end)){if(U.skip||U.excludeEnd||U.returnEnd)throw Ye("skip, excludeEnd, returnEnd not compatible with endScope: {}"),me;if(typeof U.endScope!="object"||U.endScope===null)throw Ye("endScope must be object"),me;je(U,U.end,{key:"endScope"}),U.end=T(U.end,{joinWith:""})}}function Ht(U){U.scope&&typeof U.scope=="object"&&U.scope!==null&&(U.beginScope=U.scope,delete U.scope)}function un(U){Ht(U),typeof U.beginScope=="string"&&(U.beginScope={_wrap:U.beginScope}),typeof U.endScope=="string"&&(U.endScope={_wrap:U.endScope}),Ke(U),it(U)}function Gt(U){function ie(Re,Se){return new RegExp(p(Re),"m"+(U.case_insensitive?"i":"")+(U.unicodeRegex?"u":"")+(Se?"g":""))}class ke{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(Se,Ve){Ve.position=this.position++,this.matchIndexes[this.matchAt]=Ve,this.regexes.push([Ve,Se]),this.matchAt+=j(Se)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const Se=this.regexes.map(Ve=>Ve[1]);this.matcherRe=ie(T(Se,{joinWith:"|"}),!0),this.lastIndex=0}exec(Se){this.matcherRe.lastIndex=this.lastIndex;const Ve=this.matcherRe.exec(Se);if(!Ve)return null;const rn=Ve.findIndex((Qr,Ti)=>Ti>0&&Qr!==void 0),Xt=this.matchIndexes[rn];return Ve.splice(0,rn),Object.assign(Ve,Xt)}}class Ge{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 Ve=new ke;return this.rules.slice(Se).forEach(([rn,Xt])=>Ve.addRule(rn,Xt)),Ve.compile(),this.multiRegexes[Se]=Ve,Ve}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(Se,Ve){this.rules.push([Se,Ve]),Ve.type==="begin"&&this.count++}exec(Se){const Ve=this.getMatcher(this.regexIndex);Ve.lastIndex=this.lastIndex;let rn=Ve.exec(Se);if(this.resumingScanAtSamePosition()&&!(rn&&rn.index===this.lastIndex)){const Xt=this.getMatcher(0);Xt.lastIndex=this.lastIndex+1,rn=Xt.exec(Se)}return rn&&(this.regexIndex+=rn.position+1,this.regexIndex===this.count&&this.considerAll()),rn}}function nt(Re){const Se=new Ge;return Re.contains.forEach(Ve=>Se.addRule(Ve.begin,{rule:Ve,type:"begin"})),Re.terminatorEnd&&Se.addRule(Re.terminatorEnd,{type:"end"}),Re.illegal&&Se.addRule(Re.illegal,{type:"illegal"}),Se}function Ft(Re,Se){const Ve=Re;if(Re.isCompiled)return Ve;[Lt,Ae,un,Qe].forEach(Xt=>Xt(Re,Se)),U.compilerExtensions.forEach(Xt=>Xt(Re,Se)),Re.__beforeBegin=null,[kt,we,tt].forEach(Xt=>Xt(Re,Se)),Re.isCompiled=!0;let rn=null;return typeof Re.keywords=="object"&&Re.keywords.$pattern&&(Re.keywords=Object.assign({},Re.keywords),rn=Re.keywords.$pattern,delete Re.keywords.$pattern),rn=rn||/\w+/,Re.keywords&&(Re.keywords=Ct(Re.keywords,U.case_insensitive)),Ve.keywordPatternRe=ie(rn,!0),Se&&(Re.begin||(Re.begin=/\B|\b/),Ve.beginRe=ie(Ve.begin),!Re.end&&!Re.endsWithParent&&(Re.end=/\B|\b/),Re.end&&(Ve.endRe=ie(Ve.end)),Ve.terminatorEnd=p(Ve.end)||"",Re.endsWithParent&&Se.terminatorEnd&&(Ve.terminatorEnd+=(Re.end?"|":"")+Se.terminatorEnd)),Re.illegal&&(Ve.illegalRe=ie(Re.illegal)),Re.contains||(Re.contains=[]),Re.contains=[].concat(...Re.contains.map(function(Xt){return Vt(Xt==="self"?Re:Xt)})),Re.contains.forEach(function(Xt){Ft(Xt,Ve)}),Re.starts&&Ft(Re.starts,Se),Ve.matcher=nt(Ve),Ve}if(U.compilerExtensions||(U.compilerExtensions=[]),U.contains&&U.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return U.classNameAliases=i(U.classNameAliases||{}),Ft(U)}function Bt(U){return U?U.endsWithParent||Bt(U.starts):!1}function Vt(U){return U.variants&&!U.cachedVariants&&(U.cachedVariants=U.variants.map(function(ie){return i(U,{variants:null},ie)})),U.cachedVariants?U.cachedVariants:Bt(U)?i(U,{starts:U.starts?i(U.starts):null}):Object.isFrozen(U)?i(U):U}var re="11.11.2";class ht extends Error{constructor(ie,ke){super(ie),this.name="HTMLInjectionError",this.html=ke}}const gt=r,oe=i,ut=Symbol("nomatch"),St=7,be=function(U){const ie=Object.create(null),ke=Object.create(null),Ge=[];let nt=!0;const Ft="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:g};function Ve(ge){return Se.noHighlightRe.test(ge)}function rn(ge){let Le=ge.className+" ";Le+=ge.parentNode?ge.parentNode.className:"";const st=Se.languageDetectRe.exec(Le);if(st){const Nt=On(st[1]);return Nt||(nn(Ft.replace("{}",st[1])),nn("Falling back to no-highlight mode for this block.",ge)),Nt?st[1]:"no-highlight"}return Le.split(/\s+/).find(Nt=>Ve(Nt)||On(Nt))}function Xt(ge,Le,st){let Nt="",sn="";typeof Le=="object"?(Nt=ge,st=Le.ignoreIllegals,sn=Le.language):(se("10.7.0","highlight(lang, code, ...args) has been deprecated."),se("10.7.0",`Please use highlight(code, options) instead.
|
|
15
|
+
https://github.com/highlightjs/highlight.js/issues/2277`),sn=ge,Nt=Le),st===void 0&&(st=!0);const _n={code:Nt,language:sn};ni("before:highlight",_n);const Wn=_n.result?_n.result:Qr(_n.language,_n.code,st);return Wn.code=_n.code,ni("after:highlight",Wn),Wn}function Qr(ge,Le,st,Nt){const sn=Object.create(null);function _n(ve,Oe){return ve.keywords[Oe]}function Wn(){if(!qe.keywords){dn.addText(_t);return}let ve=0;qe.keywordPatternRe.lastIndex=0;let Oe=qe.keywordPatternRe.exec(_t),We="";for(;Oe;){We+=_t.substring(ve,Oe.index);const xt=kn.case_insensitive?Oe[0].toLowerCase():Oe[0],Wt=_n(qe,xt);if(Wt){const[dr,Ts]=Wt;if(dn.addText(We),We="",sn[xt]=(sn[xt]||0)+1,sn[xt]<=St&&(Aa+=Ts),dr.startsWith("_"))We+=Oe[0];else{const ho=kn.classNameAliases[dr]||dr;Jn(Oe[0],ho)}}else We+=Oe[0];ve=qe.keywordPatternRe.lastIndex,Oe=qe.keywordPatternRe.exec(_t)}We+=_t.substring(ve),dn.addText(We)}function In(){if(_t==="")return;let ve=null;if(typeof qe.subLanguage=="string"){if(!ie[qe.subLanguage]){dn.addText(_t);return}ve=Qr(qe.subLanguage,_t,!0,fo[qe.subLanguage]),fo[qe.subLanguage]=ve._top}else ve=Ri(_t,qe.subLanguage.length?qe.subLanguage:null);qe.relevance>0&&(Aa+=ve.relevance),dn.__addSublanguage(ve._emitter,ve.language)}function $t(){qe.subLanguage!=null?In():Wn(),_t=""}function Jn(ve,Oe){ve!==""&&(dn.startScope(Oe),dn.addText(ve),dn.endScope())}function uo(ve,Oe){let We=1;const xt=Oe.length-1;for(;We<=xt;){if(!ve._emit[We]){We++;continue}const Wt=kn.classNameAliases[ve[We]]||ve[We],dr=Oe[We];Wt?Jn(dr,Wt):(_t=dr,Wn(),_t=""),We++}}function zi(ve,Oe){return ve.scope&&typeof ve.scope=="string"&&dn.openNode(kn.classNameAliases[ve.scope]||ve.scope),ve.beginScope&&(ve.beginScope._wrap?(Jn(_t,kn.classNameAliases[ve.beginScope._wrap]||ve.beginScope._wrap),_t=""):ve.beginScope._multi&&(uo(ve.beginScope,Oe),_t="")),qe=Object.create(ve,{parent:{value:qe}}),qe}function _s(ve,Oe,We){let xt=S(ve.endRe,We);if(xt){if(ve["on:end"]){const Wt=new n(ve);ve["on:end"](Oe,Wt),Wt.isMatchIgnored&&(xt=!1)}if(xt){for(;ve.endsParent&&ve.parent;)ve=ve.parent;return ve}}if(ve.endsWithParent)return _s(ve.parent,Oe,We)}function Li(ve){return qe.matcher.regexIndex===0?(_t+=ve[0],1):(ka=!0,0)}function pc(ve){const Oe=ve[0],We=ve.rule,xt=new n(We),Wt=[We.__beforeBegin,We["on:begin"]];for(const dr of Wt)if(dr&&(dr(ve,xt),xt.isMatchIgnored))return Li(Oe);return We.skip?_t+=Oe:(We.excludeBegin&&(_t+=Oe),$t(),!We.returnBegin&&!We.excludeBegin&&(_t=Oe)),zi(We,ve),We.returnBegin?0:Oe.length}function Un(ve){const Oe=ve[0],We=Le.substring(ve.index),xt=_s(qe,ve,We);if(!xt)return ut;const Wt=qe;qe.endScope&&qe.endScope._wrap?($t(),Jn(Oe,qe.endScope._wrap)):qe.endScope&&qe.endScope._multi?($t(),uo(qe.endScope,ve)):Wt.skip?_t+=Oe:(Wt.returnEnd||Wt.excludeEnd||(_t+=Oe),$t(),Wt.excludeEnd&&(_t=Oe));do qe.scope&&dn.closeNode(),!qe.skip&&!qe.subLanguage&&(Aa+=qe.relevance),qe=qe.parent;while(qe!==xt.parent);return xt.starts&&zi(xt.starts,ve),Wt.returnEnd?0:Oe.length}function Ms(){const ve=[];for(let Oe=qe;Oe!==kn;Oe=Oe.parent)Oe.scope&&ve.unshift(Oe.scope);ve.forEach(Oe=>dn.openNode(Oe))}let ri={};function Pi(ve,Oe){const We=Oe&&Oe[0];if(_t+=ve,We==null)return $t(),0;if(ri.type==="begin"&&Oe.type==="end"&&ri.index===Oe.index&&We===""){if(_t+=Le.slice(Oe.index,Oe.index+1),!nt){const xt=new Error(`0 width match regex (${ge})`);throw xt.languageName=ge,xt.badRule=ri.rule,xt}return 1}if(ri=Oe,Oe.type==="begin")return pc(Oe);if(Oe.type==="illegal"&&!st){const xt=new Error('Illegal lexeme "'+We+'" for mode "'+(qe.scope||"<unnamed>")+'"');throw xt.mode=qe,xt}else if(Oe.type==="end"){const xt=Un(Oe);if(xt!==ut)return xt}if(Oe.type==="illegal"&&We==="")return Oe.index===Le.length||(_t+=`
|
|
16
|
+
`),1;if(js>1e5&&js>Oe.index*3)throw new Error("potential infinite loop, way more iterations than matches");return _t+=We,We.length}const kn=On(ge);if(!kn)throw Ye(Ft.replace("{}",ge)),new Error('Unknown language: "'+ge+'"');const xo=Gt(kn);let Ii="",qe=Nt||xo;const fo={},dn=new Se.__emitter(Se);Ms();let _t="",Aa=0,Xr=0,js=0,ka=!1;try{if(kn.__emitTokens)kn.__emitTokens(Le,dn);else{for(qe.matcher.considerAll();;){js++,ka?ka=!1:qe.matcher.considerAll(),qe.matcher.lastIndex=Xr;const ve=qe.matcher.exec(Le);if(!ve)break;const Oe=Le.substring(Xr,ve.index),We=Pi(Oe,ve);Xr=ve.index+We}Pi(Le.substring(Xr))}return dn.finalize(),Ii=dn.toHTML(),{language:ge,value:Ii,relevance:Aa,illegal:!1,_emitter:dn,_top:qe}}catch(ve){if(ve.message&&ve.message.includes("Illegal"))return{language:ge,value:gt(Le),illegal:!0,relevance:0,_illegalBy:{message:ve.message,index:Xr,context:Le.slice(Xr-100,Xr+100),mode:ve.mode,resultSoFar:Ii},_emitter:dn};if(nt)return{language:ge,value:gt(Le),illegal:!1,relevance:0,errorRaised:ve,_emitter:dn,_top:qe};throw ve}}function Ti(ge){const Le={value:gt(ge),illegal:!1,relevance:0,_top:Re,_emitter:new Se.__emitter(Se)};return Le._emitter.addText(ge),Le}function Ri(ge,Le){Le=Le||Se.languages||Object.keys(ie);const st=Ti(ge),Nt=Le.filter(On).filter(Ca).map($t=>Qr($t,ge,!1));Nt.unshift(st);const sn=Nt.sort(($t,Jn)=>{if($t.relevance!==Jn.relevance)return Jn.relevance-$t.relevance;if($t.language&&Jn.language){if(On($t.language).supersetOf===Jn.language)return 1;if(On(Jn.language).supersetOf===$t.language)return-1}return 0}),[_n,Wn]=sn,In=_n;return In.secondBest=Wn,In}function Or(ge,Le,st){const Nt=Le&&ke[Le]||st;ge.classList.add("hljs"),ge.classList.add(`language-${Nt}`)}function an(ge){let Le=null;const st=rn(ge);if(Ve(st))return;if(ni("before:highlightElement",{el:ge,language:st}),ge.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",ge);return}if(ge.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(ge)),Se.throwUnescapedHTML))throw new ht("One of your code blocks includes unescaped HTML.",ge.innerHTML);Le=ge;const Nt=Le.textContent,sn=st?Xt(Nt,{language:st,ignoreIllegals:!0}):Ri(Nt);ge.innerHTML=sn.value,ge.dataset.highlighted="yes",Or(ge,st,sn.language),ge.result={language:sn.language,re:sn.relevance,relevance:sn.relevance},sn.secondBest&&(ge.secondBest={language:sn.secondBest.language,relevance:sn.secondBest.relevance}),ni("after:highlightElement",{el:ge,result:sn,text:Nt})}function Nn(ge){Se=oe(Se,ge)}const ba=()=>{Oi(),se("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function Ss(){Oi(),se("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let lo=!1;function Oi(){function ge(){Oi()}if(document.readyState==="loading"){lo||window.addEventListener("DOMContentLoaded",ge,!1),lo=!0;return}document.querySelectorAll(Se.cssSelector).forEach(an)}function oo(ge,Le){let st=null;try{st=Le(U)}catch(Nt){if(Ye("Language definition for '{}' could not be registered.".replace("{}",ge)),nt)Ye(Nt);else throw Nt;st=Re}st.name||(st.name=ge),ie[ge]=st,st.rawDefinition=Le.bind(null,U),st.aliases&&Yr(st.aliases,{languageName:ge})}function ti(ge){delete ie[ge];for(const Le of Object.keys(ke))ke[Le]===ge&&delete ke[Le]}function Ns(){return Object.keys(ie)}function On(ge){return ge=(ge||"").toLowerCase(),ie[ge]||ie[ke[ge]]}function Yr(ge,{languageName:Le}){typeof ge=="string"&&(ge=[ge]),ge.forEach(st=>{ke[st.toLowerCase()]=Le})}function Ca(ge){const Le=On(ge);return Le&&!Le.disableAutodetect}function va(ge){ge["before:highlightBlock"]&&!ge["before:highlightElement"]&&(ge["before:highlightElement"]=Le=>{ge["before:highlightBlock"](Object.assign({block:Le.el},Le))}),ge["after:highlightBlock"]&&!ge["after:highlightElement"]&&(ge["after:highlightElement"]=Le=>{ge["after:highlightBlock"](Object.assign({block:Le.el},Le))})}function xn(ge){va(ge),Ge.push(ge)}function co(ge){const Le=Ge.indexOf(ge);Le!==-1&&Ge.splice(Le,1)}function ni(ge,Le){const st=ge;Ge.forEach(function(Nt){Nt[st]&&Nt[st](Le)})}function Kr(ge){return se("10.7.0","highlightBlock will be removed entirely in v12.0"),se("10.7.0","Please use highlightElement now."),an(ge)}Object.assign(U,{highlight:Xt,highlightAuto:Ri,highlightAll:Oi,highlightElement:an,highlightBlock:Kr,configure:Nn,initHighlighting:ba,initHighlightingOnLoad:Ss,registerLanguage:oo,unregisterLanguage:ti,listLanguages:Ns,getLanguage:On,registerAliases:Yr,autoDetection:Ca,inherit:oe,addPlugin:xn,removePlugin:co}),U.debugMode=function(){nt=!1},U.safeMode=function(){nt=!0},U.versionString=re,U.regex={concat:v,lookahead:y,either:B,optional:C,anyNumberOfTimes:b};for(const ge in at)typeof at[ge]=="object"&&e(at[ge]);return Object.assign(U,at),U},yt=be({});return yt.newInstance=()=>be({}),Nx=yt,yt.HighlightJS=yt,yt.default=yt,Nx}var aN=rN();const iN=Zl(aN),F9={},sN="hljs-";function lN(e){const n=iN.newInstance();return e&&o(e),{highlight:r,highlightAuto:i,listLanguages:l,register:o,registerAlias:u,registered:d};function r(f,h,g){const p=g||F9,y=typeof p.prefix=="string"?p.prefix:sN;if(!n.getLanguage(f))throw new Error("Unknown language: `"+f+"` is not registered");n.configure({__emitter:oN,classPrefix:y});const b=n.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,v=C.data;return v.language=b.language,v.relevance=b.relevance,C}function i(f,h){const p=(h||F9).subset||l();let y=-1,b=0,C;for(;++y<p.length;){const v=p[y];if(!n.getLanguage(v))continue;const A=r(v,f,h);A.data&&A.data.relevance!==void 0&&A.data.relevance>b&&(b=A.data.relevance,C=A)}return C||{type:"root",children:[],data:{language:void 0,relevance:b}}}function l(){return n.listLanguages()}function o(f,h){if(typeof f=="string")n.registerLanguage(f,h);else{let g;for(g in f)Object.hasOwn(f,g)&&n.registerLanguage(g,f[g])}}function u(f,h){if(typeof f=="string")n.registerAliases(typeof h=="string"?h:[...h],{languageName:f});else{let g;for(g in f)if(Object.hasOwn(f,g)){const p=f[g];n.registerAliases(typeof p=="string"?p:[...p],{languageName:g})}}}function d(f){return!!n.getLanguage(f)}}class oN{constructor(n){this.options=n,this.root={type:"root",children:[],data:{language:void 0,relevance:0}},this.stack=[this.root]}addText(n){if(n==="")return;const r=this.stack[this.stack.length-1],i=r.children[r.children.length-1];i&&i.type==="text"?i.value+=n:r.children.push({type:"text",value:n})}startScope(n){this.openNode(String(n))}endScope(){this.closeNode()}__addSublanguage(n,r){const i=this.stack[this.stack.length-1],l=n.root.children;r?i.children.push({type:"element",tagName:"span",properties:{className:[r]},children:l}):i.children.push(...l)}openNode(n){const r=this,i=n.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 S9=lN({bash:_S,css:IS,ini:US,javascript:VS,json:KS,markdown:XS,python:ZS,sql:WS,typescript:eN,xml:tN,yaml:nN}),Vg={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"},cN={...Vg,shell:"bash",console:"bash",javascript:"javascript",typescript:"typescript",python:"python",yaml:"yaml",json:"json",sql:"sql"},uN={Bash:"bash"};function xN(e){return(e&&uN[e])??null}function Qg(e){const n=e.slice(e.lastIndexOf("/")+1),r=n.lastIndexOf(".");return r<1?null:Vg[n.slice(r+1).toLowerCase()]??null}function dN(e,n){return e==="Read"&&n?Qg(n):null}function fN(e){const n=e?.match(/(?:^|\s)language-([\w+-]+)/)?.[1];return n?cN[n.toLowerCase()]??null:null}function Yg(e,n){return!n||!S9.registered(n)?null:S9.highlight(n,e).children.filter(hN)}function hN(e){return e.type==="element"||e.type==="text"}function pN(e,n){const r=Yg(e,n);return r?Kg(r):null}function Kg(e){const n=[[]];for(const r of e){const i=mN(r);n[n.length-1].push(...i[0]);for(let l=1;l<i.length;l++)n.push(i[l])}return n}function mN(e){if(e.type==="text")return e.value.split(`
|
|
17
|
+
`).map(r=>r?[{type:"text",value:r}]:[]);if(e.type!=="element")return[[e]];const n=e;return Kg(n.children).map(r=>r.length?[{...n,children:r}]:[])}function gN(e){for(let n=e.length-1;n>=0;n--){const r=e[n];if(r.role==="assistant")return r;if(r.role==="user")return null}return null}function N9(e){const n=[];let r=null;for(const i of e)i.role==="assistant"?r=i:i.role==="user"&&(r&&n.push(r),r=null);return r&&n.push(r),n}function EN(e,n,r){const i=Xn(n.ts);if(r&&Xn(r)<i)return r;const l=e.lastIndexOf(n);for(let o=(l<0?e.length:l)-1;o>=0;o--)if(e[o].role==="user")return e[o].ts;return null}function yN(e){const n=new Map;for(const o of e)o.subagentLabel&&o.toolUseId&&!n.has(o.toolUseId)&&n.set(o.toolUseId,o);const r=new Map,i=new Set;for(const o of e){const u=o.parentToolUseId,d=u?n.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 hf({nodes:e}){return x.jsx(x.Fragment,{children:e.map((n,r)=>{if(n.type==="text")return n.value;if(n.type!=="element")return null;const i=n.properties?.className;return x.jsx("span",{className:Array.isArray(i)?i.join(" "):void 0,children:x.jsx(hf,{nodes:n.children})},r)})})}const Xg=D.memo(function({text:n,language:r}){const i=D.useMemo(()=>Yg(n,r),[n,r]);return i?x.jsx(hf,{nodes:i}):n}),bN="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",CN="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",vN="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",AN="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",Ql={none:"None",low:"Low",medium:"Medium",high:"High",xhigh:"Extra high",max:"Max",ultracode:"Ultracode"},Bi=["low","medium","high","xhigh","max","ultracode"];function Zg(e){return Bi[(Bi.indexOf(e??"")+1)%Bi.length]}function no(e,n){const r=n?.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 pf(e,n){return no(e,n)==="claude"}function mf(e,n){const r=no(e,n);return r==="claude"||r==="openai"}function gf(e,n){const r=no(e,n);return r==="claude"||r==="openai"}function kN(e,n){const r=no(null,e),i=r==="claude"?n?.claude:r==="openai"?n?.codex:void 0;return i&&Bi.includes(i)?i:void 0}function BN(e,n){const r=Zg(e);if(!(r===n||!n&&e===Bi.at(-1)))return r}const DN={claude:bN,cursor:CN,openai:vN,opencode:AN},wN={claude:"#D97757",openai:"var(--color-provider-openai)"};function ro({agentType:e,model:n,className:r}){const i=no(e,n);if(!i)return x.jsx(b8,{"aria-hidden":"true",className:r});const l=DN[i];return x.jsx("span",{"aria-hidden":"true",className:pe("inline-block shrink-0 bg-current",r),style:{color:wN[i],WebkitMaskImage:`url("${l}")`,maskImage:`url("${l}")`,WebkitMaskPosition:"center",maskPosition:"center",WebkitMaskRepeat:"no-repeat",maskRepeat:"no-repeat",WebkitMaskSize:"contain",maskSize:"contain"}})}const FN=[5,7,9,11,13,15],SN={low:1,medium:2,high:3,xhigh:4,max:5,ultracode:6};function Wg({effort:e,className:n}){const r=SN[e]??0;return x.jsx("span",{"aria-hidden":"true",className:pe("flex h-[15px] shrink-0 items-end gap-[1.5px]",n),children:FN.map((i,l)=>x.jsx("span",{className:pe("w-0.5 rounded-full bg-current transition-opacity",l<r?"opacity-100":"opacity-20"),style:{height:i}},i))})}var Gr=Y2();function NN(e,n){const r={};return(e[e.length-1]===""?[...e,""]:e).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}const _N=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,MN=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,jN={};function _9(e,n){return(jN.jsx?MN:_N).test(e)}const TN=/[ \t\n\f\r]/g;function RN(e){return typeof e=="object"?e.type==="text"?M9(e.value):!1:M9(e)}function M9(e){return e.replace(TN,"")===""}class ao{constructor(n,r,i){this.normal=r,this.property=n,i&&(this.space=i)}}ao.prototype.normal={};ao.prototype.property={};ao.prototype.space=void 0;function Jg(e,n){const r={},i={};for(const l of e)Object.assign(r,l.property),Object.assign(i,l.normal);return new ao(r,i,n)}function Cd(e){return e.toLowerCase()}class Zn{constructor(n,r){this.attribute=r,this.property=n}}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 ON=0;const Xe=ji(),gn=ji(),vd=ji(),ye=ji(),It=ji(),Di=ji(),lr=ji();function ji(){return 2**++ON}const Ad=Object.freeze(Object.defineProperty({__proto__:null,boolean:Xe,booleanish:gn,commaOrSpaceSeparated:lr,commaSeparated:Di,number:ye,overloadedBoolean:vd,spaceSeparated:It},Symbol.toStringTag,{value:"Module"})),_x=Object.keys(Ad);class Ef extends Zn{constructor(n,r,i,l){let o=-1;if(super(n,r),j9(this,"space",l),typeof i=="number")for(;++o<_x.length;){const u=_x[o];j9(this,_x[o],(i&Ad[u])===Ad[u])}}}Ef.prototype.defined=!0;function j9(e,n,r){r&&(e[n]=r)}function ws(e){const n={},r={};for(const[i,l]of Object.entries(e.properties)){const o=new Ef(i,e.transform(e.attributes||{},i),l,e.space);e.mustUseProperty&&e.mustUseProperty.includes(i)&&(o.mustUseProperty=!0),n[i]=o,r[Cd(i)]=i,r[Cd(o.attribute)]=i}return new ao(n,r,e.space)}const eE=ws({properties:{ariaActiveDescendant:null,ariaAtomic:gn,ariaAutoComplete:null,ariaBusy:gn,ariaChecked:gn,ariaColCount:ye,ariaColIndex:ye,ariaColSpan:ye,ariaControls:It,ariaCurrent:null,ariaDescribedBy:It,ariaDetails:null,ariaDisabled:gn,ariaDropEffect:It,ariaErrorMessage:null,ariaExpanded:gn,ariaFlowTo:It,ariaGrabbed:gn,ariaHasPopup:null,ariaHidden:gn,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:It,ariaLevel:ye,ariaLive:null,ariaModal:gn,ariaMultiLine:gn,ariaMultiSelectable:gn,ariaOrientation:null,ariaOwns:It,ariaPlaceholder:null,ariaPosInSet:ye,ariaPressed:gn,ariaReadOnly:gn,ariaRelevant:null,ariaRequired:gn,ariaRoleDescription:It,ariaRowCount:ye,ariaRowIndex:ye,ariaRowSpan:ye,ariaSelected:gn,ariaSetSize:ye,ariaSort:null,ariaValueMax:ye,ariaValueMin:ye,ariaValueNow:ye,ariaValueText:null,role:null},transform(e,n){return n==="role"?n:"aria-"+n.slice(4).toLowerCase()}});function tE(e,n){return n in e?e[n]:n}function nE(e,n){return tE(e,n.toLowerCase())}const zN=ws({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Di,acceptCharset:It,accessKey:It,action:null,allow:null,allowFullScreen:Xe,allowPaymentRequest:Xe,allowUserMedia:Xe,alpha:Xe,alt:null,as:null,async:Xe,autoCapitalize:null,autoComplete:It,autoFocus:Xe,autoPlay:Xe,blocking:It,capture:null,charSet:null,checked:Xe,cite:null,className:It,closedBy:null,colorSpace:null,cols:ye,colSpan:ye,command:null,commandFor:null,content:null,contentEditable:gn,controls:Xe,controlsList:It,coords:ye|Di,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Xe,defer:Xe,dir:null,dirName:null,disabled:Xe,download:vd,draggable:gn,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Xe,formTarget:null,headers:It,height:ye,hidden:vd,high:ye,href:null,hrefLang:null,htmlFor:It,httpEquiv:It,id:null,imageSizes:null,imageSrcSet:null,inert:Xe,inputMode:null,integrity:null,is:null,isMap:Xe,itemId:null,itemProp:It,itemRef:It,itemScope:Xe,itemType:It,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Xe,low:ye,manifest:null,max:null,maxLength:ye,media:null,method:null,min:null,minLength:ye,multiple:Xe,muted:Xe,name:null,nonce:null,noModule:Xe,noValidate:Xe,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:Xe,optimum:ye,pattern:null,ping:It,placeholder:null,playsInline:Xe,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Xe,referrerPolicy:null,rel:It,required:Xe,reversed:Xe,rows:ye,rowSpan:ye,sandbox:It,scope:null,scoped:Xe,seamless:Xe,selected:Xe,shadowRootClonable:Xe,shadowRootCustomElementRegistry:Xe,shadowRootDelegatesFocus:Xe,shadowRootMode:null,shadowRootSerializable:Xe,shape:null,size:ye,sizes:null,slot:null,span:ye,spellCheck:gn,src:null,srcDoc:null,srcLang:null,srcSet:null,start:ye,step:null,style:null,tabIndex:ye,target:null,title:null,translate:null,type:null,typeMustMatch:Xe,useMap:null,value:gn,width:ye,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:It,axis:null,background:null,bgColor:null,border:ye,borderColor:null,bottomMargin:ye,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Xe,declare:Xe,event:null,face:null,frame:null,frameBorder:null,hSpace:ye,leftMargin:ye,link:null,longDesc:null,lowSrc:null,marginHeight:ye,marginWidth:ye,noResize:Xe,noHref:Xe,noShade:Xe,noWrap:Xe,object:null,profile:null,prompt:null,rev:null,rightMargin:ye,rules:null,scheme:null,scrolling:gn,standby:null,summary:null,text:null,topMargin:ye,valueType:null,version:null,vAlign:null,vLink:null,vSpace:ye,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:Xe,disablePictureInPicture:Xe,disableRemotePlayback:Xe,exportParts:Di,part:It,prefix:null,property:null,results:ye,security:null,unselectable:null},space:"html",transform:nE}),LN=ws({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:lr,accentHeight:ye,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:ye,amplitude:ye,arabicForm:null,ascent:ye,attributeName:null,attributeType:null,azimuth:ye,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:ye,by:null,calcMode:null,capHeight:ye,className:It,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:ye,diffuseConstant:ye,direction:null,display:null,dur:null,divisor:ye,dominantBaseline:null,download:Xe,dx:null,dy:null,edgeMode:null,editable:null,elevation:ye,enableBackground:null,end:null,event:null,exponent:ye,externalResourcesRequired:null,fill:null,fillOpacity:ye,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:Di,g2:Di,glyphName:Di,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:ye,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:ye,horizOriginX:ye,horizOriginY:ye,id:null,ideographic:ye,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:ye,k:ye,k1:ye,k2:ye,k3:ye,k4:ye,kernelMatrix:lr,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:ye,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:ye,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:ye,overlineThickness:ye,paintOrder:null,panose1:null,path:null,pathLength:ye,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:It,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:ye,pointsAtY:ye,pointsAtZ:ye,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:lr,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:lr,rev:lr,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:lr,requiredFeatures:lr,requiredFonts:lr,requiredFormats:lr,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:ye,specularExponent:ye,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:ye,strikethroughThickness:ye,string:null,stroke:null,strokeDashArray:lr,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:ye,strokeOpacity:ye,strokeWidth:null,style:null,surfaceScale:ye,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:lr,tabIndex:ye,tableValues:null,target:null,targetX:ye,targetY:ye,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:lr,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:ye,underlineThickness:ye,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:ye,values:null,vAlphabetic:ye,vMathematical:ye,vectorEffect:null,vHanging:ye,vIdeographic:ye,version:null,vertAdvY:ye,vertOriginX:ye,vertOriginY:ye,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:ye,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:tE}),rE=ws({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,n){return"xlink:"+n.slice(5).toLowerCase()}}),aE=ws({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:nE}),iE=ws({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,n){return"xml:"+n.slice(3).toLowerCase()}}),PN={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"},IN=/[A-Z]/g,T9=/-[a-z]/g,UN=/^data[-\w.:]+$/i;function HN(e,n){const r=Cd(n);let i=n,l=Zn;if(r in e.normal)return e.property[e.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&UN.test(n)){if(n.charAt(4)==="-"){const o=n.slice(5).replace(T9,qN);i="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=n.slice(4);if(!T9.test(o)){let u=o.replace(IN,$N);u.charAt(0)!=="-"&&(u="-"+u),n="data"+u}}l=Ef}return new l(i,n)}function $N(e){return"-"+e.toLowerCase()}function qN(e){return e.charAt(1).toUpperCase()}const GN=Jg([eE,zN,rE,aE,iE],"html"),yf=Jg([eE,LN,rE,aE,iE],"svg");function VN(e){return e.join(" ").trim()}var Es={},Mx,R9;function QN(){if(R9)return Mx;R9=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,r=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,l=/^:\s*/,o=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,u=/^[;\s]*/,d=/^\s+|\s+$/g,f=`
|
|
18
|
+
`,h="/",g="*",p="",y="comment",b="declaration";function C(A,B){if(typeof A!="string")throw new TypeError("First argument must be a string");if(!A)return[];B=B||{};var j=1,S=1;function N(ee){var Y=ee.match(n);Y&&(j+=Y.length);var P=ee.lastIndexOf(f);S=~P?ee.length-P:S+ee.length}function T(){var ee={line:j,column:S};return function(Y){return Y.position=new F(ee),I(),Y}}function F(ee){this.start=ee,this.end={line:j,column:S},this.source=B.source}F.prototype.content=A;function R(ee){var Y=new Error(B.source+":"+j+":"+S+": "+ee);if(Y.reason=ee,Y.filename=B.source,Y.line=j,Y.column=S,Y.source=A,!B.silent)throw Y}function L(ee){var Y=ee.exec(A);if(Y){var P=Y[0];return N(P),A=A.slice(P.length),Y}}function I(){L(r)}function O(ee){var Y;for(ee=ee||[];Y=$();)Y!==!1&&ee.push(Y);return ee}function $(){var ee=T();if(!(h!=A.charAt(0)||g!=A.charAt(1))){for(var Y=2;p!=A.charAt(Y)&&(g!=A.charAt(Y)||h!=A.charAt(Y+1));)++Y;if(Y+=2,p===A.charAt(Y-1))return R("End of comment missing");var P=A.slice(2,Y-2);return S+=2,N(P),A=A.slice(Y),S+=2,ee({type:y,comment:P})}}function Q(){var ee=T(),Y=L(i);if(Y){if($(),!L(l))return R("property missing ':'");var P=L(o),V=ee({type:b,property:v(Y[0].replace(e,p)),value:P?v(P[0].replace(e,p)):p});return L(u),V}}function le(){var ee=[];O(ee);for(var Y;Y=Q();)Y!==!1&&(ee.push(Y),O(ee));return ee}return I(),le()}function v(A){return A?A.replace(d,p):p}return Mx=C,Mx}var O9;function YN(){if(O9)return Es;O9=1;var e=Es&&Es.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Es,"__esModule",{value:!0}),Es.default=r;const n=e(QN());function r(i,l){let o=null;if(!i||typeof i!="string")return o;const u=(0,n.default)(i),d=typeof l=="function";return u.forEach(f=>{if(f.type!=="declaration")return;const{property:h,value:g}=f;d?l(h,g,f):g&&(o=o||{},o[h]=g)}),o}return Es}var wl={},z9;function KN(){if(z9)return wl;z9=1,Object.defineProperty(wl,"__esModule",{value:!0}),wl.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,n=/-([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,g){return g.toUpperCase()},d=function(h,g){return"".concat(g,"-")},f=function(h,g){return g===void 0&&(g={}),o(h)?h:(h=h.toLowerCase(),g.reactCompat?h=h.replace(l,d):h=h.replace(i,d),h.replace(n,u))};return wl.camelCase=f,wl}var Fl,L9;function XN(){if(L9)return Fl;L9=1;var e=Fl&&Fl.__importDefault||function(l){return l&&l.__esModule?l:{default:l}},n=e(YN()),r=KN();function i(l,o){var u={};return!l||typeof l!="string"||(0,n.default)(l,function(d,f){d&&f&&(u[(0,r.camelCase)(d,o)]=f)}),u}return i.default=i,Fl=i,Fl}var ZN=XN();const WN=Zl(ZN),sE=lE("end"),bf=lE("start");function lE(e){return n;function n(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 JN(e){const n=bf(e),r=sE(e);if(n&&r)return{start:n,end:r}}function Ol(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?P9(e.position):"start"in e||"end"in e?P9(e):"line"in e||"column"in e?kd(e):""}function kd(e){return I9(e&&e.line)+":"+I9(e&&e.column)}function P9(e){return kd(e&&e.start)+"-"+kd(e&&e.end)}function I9(e){return e&&typeof e=="number"?e:1}class Rn extends Error{constructor(n,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 n=="string"?l=n:!o.cause&&n&&(u=!0,l=n.message,o.cause=n),!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=Ol(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}}Rn.prototype.file="";Rn.prototype.name="";Rn.prototype.reason="";Rn.prototype.message="";Rn.prototype.stack="";Rn.prototype.column=void 0;Rn.prototype.line=void 0;Rn.prototype.ancestors=void 0;Rn.prototype.cause=void 0;Rn.prototype.fatal=void 0;Rn.prototype.place=void 0;Rn.prototype.ruleId=void 0;Rn.prototype.source=void 0;const Cf={}.hasOwnProperty,e_=new Map,t_=/[A-Z]/g,n_=new Set(["table","tbody","thead","tfoot","tr"]),r_=new Set(["td","th"]),oE="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function a_(e,n){if(!n||n.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const r=n.filePath||void 0;let i;if(n.development){if(typeof n.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");i=d_(r,n.jsxDEV)}else{if(typeof n.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof n.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");i=x_(r,n.jsx,n.jsxs)}const l={Fragment:n.Fragment,ancestors:[],components:n.components||{},create:i,elementAttributeNameCase:n.elementAttributeNameCase||"react",evaluater:n.createEvaluater?n.createEvaluater():void 0,filePath:r,ignoreInvalidStyle:n.ignoreInvalidStyle||!1,passKeys:n.passKeys!==!1,passNode:n.passNode||!1,schema:n.space==="svg"?yf:GN,stylePropertyNameCase:n.stylePropertyNameCase||"dom",tableCellAlignToStyle:n.tableCellAlignToStyle!==!1},o=cE(l,e,void 0);return o&&typeof o!="string"?o:l.create(e,l.Fragment,{children:o||void 0},void 0)}function cE(e,n,r){if(n.type==="element")return i_(e,n,r);if(n.type==="mdxFlowExpression"||n.type==="mdxTextExpression")return s_(e,n);if(n.type==="mdxJsxFlowElement"||n.type==="mdxJsxTextElement")return o_(e,n,r);if(n.type==="mdxjsEsm")return l_(e,n);if(n.type==="root")return c_(e,n,r);if(n.type==="text")return u_(e,n)}function i_(e,n,r){const i=e.schema;let l=i;n.tagName.toLowerCase()==="svg"&&i.space==="html"&&(l=yf,e.schema=l),e.ancestors.push(n);const o=xE(e,n.tagName,!1),u=f_(e,n);let d=Af(e,n);return n_.has(n.tagName)&&(d=d.filter(function(f){return typeof f=="string"?!RN(f):!0})),uE(e,u,o,n),vf(u,d),e.ancestors.pop(),e.schema=i,e.create(n,o,u,r)}function s_(e,n){if(n.data&&n.data.estree&&e.evaluater){const i=n.data.estree.body[0];return i.type,e.evaluater.evaluateExpression(i.expression)}Yl(e,n.position)}function l_(e,n){if(n.data&&n.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(n.data.estree);Yl(e,n.position)}function o_(e,n,r){const i=e.schema;let l=i;n.name==="svg"&&i.space==="html"&&(l=yf,e.schema=l),e.ancestors.push(n);const o=n.name===null?e.Fragment:xE(e,n.name,!0),u=h_(e,n),d=Af(e,n);return uE(e,u,o,n),vf(u,d),e.ancestors.pop(),e.schema=i,e.create(n,o,u,r)}function c_(e,n,r){const i={};return vf(i,Af(e,n)),e.create(n,e.Fragment,i,r)}function u_(e,n){return n.value}function uE(e,n,r,i){typeof r!="string"&&r!==e.Fragment&&e.passNode&&(n.node=i)}function vf(e,n){if(n.length>0){const r=n.length>1?n:n[0];r&&(e.children=r)}}function x_(e,n,r){return i;function i(l,o,u,d){const h=Array.isArray(u.children)?r:n;return d?h(o,u,d):h(o,u)}}function d_(e,n){return r;function r(i,l,o,u){const d=Array.isArray(o.children),f=bf(i);return n(l,o,u,d,{columnNumber:f?f.column-1:void 0,fileName:e,lineNumber:f?f.line:void 0},void 0)}}function f_(e,n){const r={};let i,l;for(l in n.properties)if(l!=="children"&&Cf.call(n.properties,l)){const o=p_(e,l,n.properties[l]);if(o){const[u,d]=o;e.tableCellAlignToStyle&&u==="align"&&typeof d=="string"&&r_.has(n.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 h_(e,n){const r={};for(const i of n.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 Yl(e,n.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 Yl(e,n.position);else o=i.value===null?!0:i.value;r[l]=o}return r}function Af(e,n){const r=[];let i=-1;const l=e.passKeys?new Map:e_;for(;++i<n.children.length;){const o=n.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=cE(e,o,u);d!==void 0&&r.push(d)}return r}function p_(e,n,r){const i=HN(e.schema,n);if(!(r==null||typeof r=="number"&&Number.isNaN(r))){if(Array.isArray(r)&&(r=i.commaSeparated?NN(r):VN(r)),i.property==="style"){let l=typeof r=="object"?r:m_(e,String(r));return e.stylePropertyNameCase==="css"&&(l=g_(l)),["style",l]}return[e.elementAttributeNameCase==="react"&&i.space?PN[i.property]||i.property:i.attribute,r]}}function m_(e,n){try{return WN(n,{reactCompat:!0})}catch(r){if(e.ignoreInvalidStyle)return{};const i=r,l=new Rn("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=oE+"#cannot-parse-style-attribute",l}}function xE(e,n,r){let i;if(!r)i={type:"Literal",value:n};else if(n.includes(".")){const l=n.split(".");let o=-1,u;for(;++o<l.length;){const d=_9(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=_9(n)&&!/^[a-z]/.test(n)?{type:"Identifier",name:n}:{type:"Literal",value:n};if(i.type==="Literal"){const l=i.value;return Cf.call(e.components,l)?e.components[l]:l}if(e.evaluater)return e.evaluater.evaluateExpression(i);Yl(e)}function Yl(e,n){const r=new Rn("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:n,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw r.file=e.filePath||void 0,r.url=oE+"#cannot-handle-mdx-estrees-without-createevaluater",r}function g_(e){const n={};let r;for(r in e)Cf.call(e,r)&&(n[E_(r)]=e[r]);return n}function E_(e){let n=e.replace(t_,y_);return n.slice(0,3)==="ms-"&&(n="-"+n),n}function y_(e){return"-"+e.toLowerCase()}const jx={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"]},b_={};function kf(e,n){const r=b_,i=typeof r.includeImageAlt=="boolean"?r.includeImageAlt:!0,l=typeof r.includeHtml=="boolean"?r.includeHtml:!0;return dE(e,i,l)}function dE(e,n,r){if(C_(e)){if("value"in e)return e.type==="html"&&!r?"":e.value;if(n&&"alt"in e&&e.alt)return e.alt;if("children"in e)return U9(e.children,n,r)}return Array.isArray(e)?U9(e,n,r):""}function U9(e,n,r){const i=[];let l=-1;for(;++l<e.length;)i[l]=dE(e[l],n,r);return i.join("")}function C_(e){return!!(e&&typeof e=="object")}const H9=document.createElement("i");function Bf(e){const n="&"+e+";";H9.innerHTML=n;const r=H9.textContent;return r.charCodeAt(r.length-1)===59&&e!=="semi"||r===n?!1:r}function cr(e,n,r,i){const l=e.length;let o=0,u;if(n<0?n=-n>l?0:l+n:n=n>l?l:n,r=r>0?r:0,i.length<1e4)u=Array.from(i),u.unshift(n,r),e.splice(...u);else for(r&&e.splice(n,r);o<i.length;)u=i.slice(o,o+1e4),u.unshift(n,0),e.splice(...u),o+=1e4,n+=1e4}function Ar(e,n){return e.length>0?(cr(e,e.length,0,n),e):n}const $9={}.hasOwnProperty;function fE(e){const n={};let r=-1;for(;++r<e.length;)v_(n,e[r]);return n}function v_(e,n){let r;for(r in n){const l=($9.call(e,r)?e[r]:void 0)||(e[r]={}),o=n[r];let u;if(o)for(u in o){$9.call(l,u)||(l[u]=[]);const d=o[u];A_(l[u],Array.isArray(d)?d:d?[d]:[])}}}function A_(e,n){let r=-1;const i=[];for(;++r<n.length;)(n[r].add==="after"?e:i).push(n[r]);cr(e,0,0,i)}function hE(e,n){const r=Number.parseInt(e,n);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 Rr(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Ln=ei(/[A-Za-z]/),jn=ei(/[\dA-Za-z]/),k_=ei(/[#-'*+\--9=?A-Z^-~]/);function Z0(e){return e!==null&&(e<32||e===127)}const Bd=ei(/\d/),B_=ei(/[\dA-Fa-f]/),D_=ei(/[!-/:-@[-`{-~]/);function He(e){return e!==null&&e<-2}function Ut(e){return e!==null&&(e<0||e===32)}function ct(e){return e===-2||e===-1||e===32}const uc=ei(new RegExp("\\p{P}|\\p{S}","u")),Si=ei(/\s/);function ei(e){return n;function n(r){return r!==null&&r>-1&&e.test(String.fromCharCode(r))}}function Fs(e){const n=[];let r=-1,i=0,l=0;for(;++r<e.length;){const o=e.charCodeAt(r);let u="";if(o===37&&jn(e.charCodeAt(r+1))&&jn(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&&(n.push(e.slice(i,r),encodeURIComponent(u)),i=r+l+1,u=""),l&&(r+=l,l=0)}return n.join("")+e.slice(i)}function Et(e,n,r,i){const l=i?i-1:Number.POSITIVE_INFINITY;let o=0;return u;function u(f){return ct(f)?(e.enter(r),d(f)):n(f)}function d(f){return ct(f)&&o++<l?(e.consume(f),d):(e.exit(r),n(f))}}const w_={tokenize:F_};function F_(e){const n=e.attempt(this.parser.constructs.contentInitial,i,l);let r;return n;function i(d){if(d===null){e.consume(d);return}return e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),Et(e,n,"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 He(d)?(e.consume(d),e.exit("chunkText"),o):(e.consume(d),u)}}const S_={tokenize:N_},q9={tokenize:__};function N_(e){const n=this,r=[];let i=0,l,o,u;return d;function d(S){if(i<r.length){const N=r[i];return n.containerState=N[1],e.attempt(N[0].continuation,f,h)(S)}return h(S)}function f(S){if(i++,n.containerState._closeFlow){n.containerState._closeFlow=void 0,l&&j();const N=n.events.length;let T=N,F;for(;T--;)if(n.events[T][0]==="exit"&&n.events[T][1].type==="chunkFlow"){F=n.events[T][1].end;break}B(i);let R=N;for(;R<n.events.length;)n.events[R][1].end={...F},R++;return cr(n.events,T+1,0,n.events.slice(N)),n.events.length=R,h(S)}return d(S)}function h(S){if(i===r.length){if(!l)return y(S);if(l.currentConstruct&&l.currentConstruct.concrete)return C(S);n.interrupt=!!(l.currentConstruct&&!l._gfmTableDynamicInterruptHack)}return n.containerState={},e.check(q9,g,p)(S)}function g(S){return l&&j(),B(i),y(S)}function p(S){return n.parser.lazy[n.now().line]=i!==r.length,u=n.now().offset,C(S)}function y(S){return n.containerState={},e.attempt(q9,b,C)(S)}function b(S){return i++,r.push([n.currentConstruct,n.containerState]),y(S)}function C(S){if(S===null){l&&j(),B(0),e.consume(S);return}return l=l||n.parser.flow(n.now()),e.enter("chunkFlow",{_tokenizer:l,contentType:"flow",previous:o}),v(S)}function v(S){if(S===null){A(e.exit("chunkFlow"),!0),B(0),e.consume(S);return}return He(S)?(e.consume(S),A(e.exit("chunkFlow")),i=0,n.interrupt=void 0,d):(e.consume(S),v)}function A(S,N){const T=n.sliceStream(S);if(N&&T.push(null),S.previous=o,o&&(o.next=S),o=S,l.defineSkip(S.start),l.write(T),n.parser.lazy[S.start.line]){let F=l.events.length;for(;F--;)if(l.events[F][1].start.offset<u&&(!l.events[F][1].end||l.events[F][1].end.offset>u))return;const R=n.events.length;let L=R,I,O;for(;L--;)if(n.events[L][0]==="exit"&&n.events[L][1].type==="chunkFlow"){if(I){O=n.events[L][1].end;break}I=!0}for(B(i),F=R;F<n.events.length;)n.events[F][1].end={...O},F++;cr(n.events,L+1,0,n.events.slice(R)),n.events.length=F}}function B(S){let N=r.length;for(;N-- >S;){const T=r[N];n.containerState=T[1],T[0].exit.call(n,e)}r.length=S}function j(){l.write([null]),o=void 0,l=void 0,n.containerState._closeFlow=void 0}}function __(e,n,r){return Et(e,e.attempt(this.parser.constructs.document,n,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function vs(e){if(e===null||Ut(e)||Si(e))return 1;if(uc(e))return 2}function xc(e,n,r){const i=[];let l=-1;for(;++l<e.length;){const o=e[l].resolveAll;o&&!i.includes(o)&&(n=o(n,r),i.push(o))}return n}const Dd={name:"attention",resolveAll:M_,tokenize:j_};function M_(e,n){let r=-1,i,l,o,u,d,f,h,g;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&&n.sliceSerialize(e[i][1]).charCodeAt(0)===n.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};G9(p,-f),G9(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=Ar(h,[["enter",e[i][1],n],["exit",e[i][1],n]])),h=Ar(h,[["enter",l,n],["enter",u,n],["exit",u,n],["enter",o,n]]),h=Ar(h,xc(n.parser.constructs.insideSpan.null,e.slice(i+1,r),n)),h=Ar(h,[["exit",o,n],["enter",d,n],["exit",d,n],["exit",l,n]]),e[r][1].end.offset-e[r][1].start.offset?(g=2,h=Ar(h,[["enter",e[r][1],n],["exit",e[r][1],n]])):g=0,cr(e,i-1,r-i+3,h),r=i+h.length-g-2;break}}for(r=-1;++r<e.length;)e[r][1].type==="attentionSequence"&&(e[r][1].type="data");return e}function j_(e,n){const r=this.parser.constructs.attentionMarkers.null,i=this.previous,l=vs(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"),g=vs(f),p=!g||g===2&&l||r.includes(f),y=!l||l===2&&g||r.includes(i);return h._open=!!(o===42?p:p&&(l||!y)),h._close=!!(o===42?y:y&&(g||!p)),n(f)}}function G9(e,n){e.column+=n,e.offset+=n,e._bufferIndex+=n}const T_={name:"autolink",tokenize:R_};function R_(e,n,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 Ln(b)?(e.consume(b),u):b===64?r(b):h(b)}function u(b){return b===43||b===45||b===46||jn(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||jn(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"),n):b===null||b===32||b===60||Z0(b)?r(b):(e.consume(b),f)}function h(b){return b===64?(e.consume(b),g):k_(b)?(e.consume(b),h):r(b)}function g(b){return jn(b)?p(b):r(b)}function p(b){return b===46?(e.consume(b),i=0,g):b===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(b),e.exit("autolinkMarker"),e.exit("autolink"),n):y(b)}function y(b){if((b===45||jn(b))&&i++<63){const C=b===45?y:p;return e.consume(b),C}return r(b)}}const io={partial:!0,tokenize:O_};function O_(e,n,r){return i;function i(o){return ct(o)?Et(e,l,"linePrefix")(o):l(o)}function l(o){return o===null||He(o)?n(o):r(o)}}const pE={continuation:{tokenize:L_},exit:P_,name:"blockQuote",tokenize:z_};function z_(e,n,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 ct(u)?(e.enter("blockQuotePrefixWhitespace"),e.consume(u),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),n):(e.exit("blockQuotePrefix"),n(u))}}function L_(e,n,r){const i=this;return l;function l(u){return ct(u)?Et(e,o,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(u):o(u)}function o(u){return e.attempt(pE,n,r)(u)}}function P_(e){e.exit("blockQuote")}const mE={name:"characterEscape",tokenize:I_};function I_(e,n,r){return i;function i(o){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(o),e.exit("escapeMarker"),l}function l(o){return D_(o)?(e.enter("characterEscapeValue"),e.consume(o),e.exit("characterEscapeValue"),e.exit("characterEscape"),n):r(o)}}const gE={name:"characterReference",tokenize:U_};function U_(e,n,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=jn,g(p))}function h(p){return p===88||p===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(p),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,u=B_,g):(e.enter("characterReferenceValue"),o=7,u=Bd,g(p))}function g(p){if(p===59&&l){const y=e.exit("characterReferenceValue");return u===jn&&!Bf(i.sliceSerialize(y))?r(p):(e.enter("characterReferenceMarker"),e.consume(p),e.exit("characterReferenceMarker"),e.exit("characterReference"),n)}return u(p)&&l++<o?(e.consume(p),g):r(p)}}const V9={partial:!0,tokenize:$_},Q9={concrete:!0,name:"codeFenced",tokenize:H_};function H_(e,n,r){const i=this,l={partial:!0,tokenize:T};let o=0,u=0,d;return f;function f(F){return h(F)}function h(F){const R=i.events[i.events.length-1];return o=R&&R[1].type==="linePrefix"?R[2].sliceSerialize(R[1],!0).length:0,d=F,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),g(F)}function g(F){return F===d?(u++,e.consume(F),g):u<3?r(F):(e.exit("codeFencedFenceSequence"),ct(F)?Et(e,p,"whitespace")(F):p(F))}function p(F){return F===null||He(F)?(e.exit("codeFencedFence"),i.interrupt?n(F):e.check(V9,v,N)(F)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),y(F))}function y(F){return F===null||He(F)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),p(F)):ct(F)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Et(e,b,"whitespace")(F)):F===96&&F===d?r(F):(e.consume(F),y)}function b(F){return F===null||He(F)?p(F):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),C(F))}function C(F){return F===null||He(F)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),p(F)):F===96&&F===d?r(F):(e.consume(F),C)}function v(F){return e.attempt(l,N,A)(F)}function A(F){return e.enter("lineEnding"),e.consume(F),e.exit("lineEnding"),B}function B(F){return o>0&&ct(F)?Et(e,j,"linePrefix",o+1)(F):j(F)}function j(F){return F===null||He(F)?e.check(V9,v,N)(F):(e.enter("codeFlowValue"),S(F))}function S(F){return F===null||He(F)?(e.exit("codeFlowValue"),j(F)):(e.consume(F),S)}function N(F){return e.exit("codeFenced"),n(F)}function T(F,R,L){let I=0;return O;function O(Y){return F.enter("lineEnding"),F.consume(Y),F.exit("lineEnding"),$}function $(Y){return F.enter("codeFencedFence"),ct(Y)?Et(F,Q,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(Y):Q(Y)}function Q(Y){return Y===d?(F.enter("codeFencedFenceSequence"),le(Y)):L(Y)}function le(Y){return Y===d?(I++,F.consume(Y),le):I>=u?(F.exit("codeFencedFenceSequence"),ct(Y)?Et(F,ee,"whitespace")(Y):ee(Y)):L(Y)}function ee(Y){return Y===null||He(Y)?(F.exit("codeFencedFence"),R(Y)):L(Y)}}}function $_(e,n,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):n(u)}}const Tx={name:"codeIndented",tokenize:G_},q_={partial:!0,tokenize:V_};function G_(e,n,r){const i=this;return l;function l(h){return e.enter("codeIndented"),Et(e,o,"linePrefix",5)(h)}function o(h){const g=i.events[i.events.length-1];return g&&g[1].type==="linePrefix"&&g[2].sliceSerialize(g[1],!0).length>=4?u(h):r(h)}function u(h){return h===null?f(h):He(h)?e.attempt(q_,u,f)(h):(e.enter("codeFlowValue"),d(h))}function d(h){return h===null||He(h)?(e.exit("codeFlowValue"),u(h)):(e.consume(h),d)}function f(h){return e.exit("codeIndented"),n(h)}}function V_(e,n,r){const i=this;return l;function l(u){return i.parser.lazy[i.now().line]?r(u):He(u)?(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),l):Et(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?n(u):He(u)?l(u):r(u)}}const Q_={name:"codeText",previous:K_,resolve:Y_,tokenize:X_};function Y_(e){let n=e.length-4,r=3,i,l;if((e[r][1].type==="lineEnding"||e[r][1].type==="space")&&(e[n][1].type==="lineEnding"||e[n][1].type==="space")){for(i=r;++i<n;)if(e[i][1].type==="codeTextData"){e[r][1].type="codeTextPadding",e[n][1].type="codeTextPadding",r+=2,n-=2;break}}for(i=r-1,n++;++i<=n;)l===void 0?i!==n&&e[i][1].type!=="lineEnding"&&(l=i):(i===n||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),n-=i-l-2,i=l+2),l=void 0);return e}function K_(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function X_(e,n,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,g(p)):He(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||He(p)?(e.exit("codeTextData"),f(p)):(e.consume(p),h)}function g(p){return p===96?(e.consume(p),l++,g):l===i?(e.exit("codeTextSequence"),e.exit("codeText"),n(p)):(o.type="codeTextData",h(p))}}class Z_{constructor(n){this.left=n?[...n]:[],this.right=[]}get(n){if(n<0||n>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+n+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return n<this.left.length?this.left[n]:this.right[this.right.length-n+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(n,r){const i=r??Number.POSITIVE_INFINITY;return i<this.left.length?this.left.slice(n,i):n>this.left.length?this.right.slice(this.right.length-i+this.left.length,this.right.length-n+this.left.length).reverse():this.left.slice(n).concat(this.right.slice(this.right.length-i+this.left.length).reverse())}splice(n,r,i){const l=r||0;this.setCursor(Math.trunc(n));const o=this.right.splice(this.right.length-l,Number.POSITIVE_INFINITY);return i&&Sl(this.left,i),o.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(n){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(n)}pushMany(n){this.setCursor(Number.POSITIVE_INFINITY),Sl(this.left,n)}unshift(n){this.setCursor(0),this.right.push(n)}unshiftMany(n){this.setCursor(0),Sl(this.right,n.reverse())}setCursor(n){if(!(n===this.left.length||n>this.left.length&&this.right.length===0||n<0&&this.left.length===0))if(n<this.left.length){const r=this.left.splice(n,Number.POSITIVE_INFINITY);Sl(this.right,r.reverse())}else{const r=this.right.splice(this.left.length+this.right.length-n,Number.POSITIVE_INFINITY);Sl(this.left,r.reverse())}}}function Sl(e,n){let r=0;if(n.length<1e4)e.push(...n);else for(;r<n.length;)e.push(...n.slice(r,r+1e4)),r+=1e4}function EE(e){const n={};let r=-1,i,l,o,u,d,f,h;const g=new Z_(e);for(;++r<g.length;){for(;r in n;)r=n[r];if(i=g.get(r),r&&i[1].type==="chunkFlow"&&g.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(n,W_(g,r)),r=n[r],h=!0);else if(i[1]._container){for(o=r,l=void 0;o--;)if(u=g.get(o),u[1].type==="lineEnding"||u[1].type==="lineEndingBlank")u[0]==="enter"&&(l&&(g.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={...g.get(l)[1].start},d=g.slice(l,r),d.unshift(i),g.splice(l,r-l+1,d))}}return cr(e,0,Number.POSITIVE_INFINITY,g.slice(0)),!h}function W_(e,n){const r=e.get(n)[1],i=e.get(n)[2];let l=n-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 g,p,y=-1,b=r,C=0,v=0;const A=[v];for(;b;){for(;e.get(++l)[1]!==b;);o.push(l),b._tokenizer||(g=i.sliceStream(b),b.next||g.push(null),p&&u.defineSkip(b.start),b._isInFirstContentOfListItem&&(u._gfmTasklistFirstContentOfListItem=!0),u.write(g),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&&(v=y+1,A.push(v),b._tokenizer=void 0,b.previous=void 0,b=b.next);for(u.events=[],b?(b._tokenizer=void 0,b.previous=void 0):A.pop(),y=A.length;y--;){const B=d.slice(A[y],A[y+1]),j=o.pop();f.push([j,j+B.length-1]),e.splice(j,2,B)}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 J_={resolve:tM,tokenize:nM},eM={partial:!0,tokenize:rM};function tM(e){return EE(e),e}function nM(e,n){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):He(d)?e.check(eM,u,o)(d):(e.consume(d),l)}function o(d){return e.exit("chunkContent"),e.exit("content"),n(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 rM(e,n,r){const i=this;return l;function l(u){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),Et(e,o,"linePrefix")}function o(u){if(u===null||He(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?n(u):e.interrupt(i.parser.constructs.flow,r,n)(u)}}function yE(e,n,r,i,l,o,u,d,f){const h=f||Number.POSITIVE_INFINITY;let g=0;return p;function p(B){return B===60?(e.enter(i),e.enter(l),e.enter(o),e.consume(B),e.exit(o),y):B===null||B===32||B===41||Z0(B)?r(B):(e.enter(i),e.enter(u),e.enter(d),e.enter("chunkString",{contentType:"string"}),v(B))}function y(B){return B===62?(e.enter(o),e.consume(B),e.exit(o),e.exit(l),e.exit(i),n):(e.enter(d),e.enter("chunkString",{contentType:"string"}),b(B))}function b(B){return B===62?(e.exit("chunkString"),e.exit(d),y(B)):B===null||B===60||He(B)?r(B):(e.consume(B),B===92?C:b)}function C(B){return B===60||B===62||B===92?(e.consume(B),b):b(B)}function v(B){return!g&&(B===null||B===41||Ut(B))?(e.exit("chunkString"),e.exit(d),e.exit(u),e.exit(i),n(B)):g<h&&B===40?(e.consume(B),g++,v):B===41?(e.consume(B),g--,v):B===null||B===32||B===40||Z0(B)?r(B):(e.consume(B),B===92?A:v)}function A(B){return B===40||B===41||B===92?(e.consume(B),v):v(B)}}function bE(e,n,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),g}function g(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),n):He(b)?(e.enter("lineEnding"),e.consume(b),e.exit("lineEnding"),g):(e.enter("chunkString",{contentType:"string"}),p(b))}function p(b){return b===null||b===91||b===93||He(b)||d++>999?(e.exit("chunkString"),g(b)):(e.consume(b),f||(f=!ct(b)),b===92?y:p)}function y(b){return b===91||b===92||b===93?(e.consume(b),d++,p):p(b)}}function CE(e,n,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),n):(e.enter(o),h(y))}function h(y){return y===u?(e.exit(o),f(u)):y===null?r(y):He(y)?(e.enter("lineEnding"),e.consume(y),e.exit("lineEnding"),Et(e,h,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),g(y))}function g(y){return y===u||y===null||He(y)?(e.exit("chunkString"),h(y)):(e.consume(y),y===92?p:g)}function p(y){return y===u||y===92?(e.consume(y),g):g(y)}}function zl(e,n){let r;return i;function i(l){return He(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),r=!0,i):ct(l)?Et(e,i,r?"linePrefix":"lineSuffix")(l):n(l)}}const aM={name:"definition",tokenize:sM},iM={partial:!0,tokenize:lM};function sM(e,n,r){const i=this;let l;return o;function o(b){return e.enter("definition"),u(b)}function u(b){return bE.call(i,e,d,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(b)}function d(b){return l=Rr(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 Ut(b)?zl(e,h)(b):h(b)}function h(b){return yE(e,g,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(b)}function g(b){return e.attempt(iM,p,p)(b)}function p(b){return ct(b)?Et(e,y,"whitespace")(b):y(b)}function y(b){return b===null||He(b)?(e.exit("definition"),i.parser.defined.push(l),n(b)):r(b)}}function lM(e,n,r){return i;function i(d){return Ut(d)?zl(e,l)(d):r(d)}function l(d){return CE(e,o,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(d)}function o(d){return ct(d)?Et(e,u,"whitespace")(d):u(d)}function u(d){return d===null||He(d)?n(d):r(d)}}const oM={name:"hardBreakEscape",tokenize:cM};function cM(e,n,r){return i;function i(o){return e.enter("hardBreakEscape"),e.consume(o),l}function l(o){return He(o)?(e.exit("hardBreakEscape"),n(o)):r(o)}}const uM={name:"headingAtx",resolve:xM,tokenize:dM};function xM(e,n){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"},cr(e,i,r-i+1,[["enter",l,n],["enter",o,n],["exit",o,n],["exit",l,n]])),e}function dM(e,n,r){let i=0;return l;function l(g){return e.enter("atxHeading"),o(g)}function o(g){return e.enter("atxHeadingSequence"),u(g)}function u(g){return g===35&&i++<6?(e.consume(g),u):g===null||Ut(g)?(e.exit("atxHeadingSequence"),d(g)):r(g)}function d(g){return g===35?(e.enter("atxHeadingSequence"),f(g)):g===null||He(g)?(e.exit("atxHeading"),n(g)):ct(g)?Et(e,d,"whitespace")(g):(e.enter("atxHeadingText"),h(g))}function f(g){return g===35?(e.consume(g),f):(e.exit("atxHeadingSequence"),d(g))}function h(g){return g===null||g===35||Ut(g)?(e.exit("atxHeadingText"),d(g)):(e.consume(g),h)}}const fM=["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"],hM={concrete:!0,name:"htmlFlow",resolveTo:gM,tokenize:EM},pM={partial:!0,tokenize:bM},mM={partial:!0,tokenize:yM};function gM(e){let n=e.length;for(;n--&&!(e[n][0]==="enter"&&e[n][1].type==="htmlFlow"););return n>1&&e[n-2][1].type==="linePrefix"&&(e[n][1].start=e[n-2][1].start,e[n+1][1].start=e[n-2][1].start,e.splice(n-2,2)),e}function EM(e,n,r){const i=this;let l,o,u,d,f;return h;function h(w){return g(w)}function g(w){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(w),p}function p(w){return w===33?(e.consume(w),y):w===47?(e.consume(w),o=!0,v):w===63?(e.consume(w),l=3,i.interrupt?n:M):Ln(w)?(e.consume(w),u=String.fromCharCode(w),A):r(w)}function y(w){return w===45?(e.consume(w),l=2,b):w===91?(e.consume(w),l=5,d=0,C):Ln(w)?(e.consume(w),l=4,i.interrupt?n:M):r(w)}function b(w){return w===45?(e.consume(w),i.interrupt?n:M):r(w)}function C(w){const W="CDATA[";return w===W.charCodeAt(d++)?(e.consume(w),d===W.length?i.interrupt?n:Q:C):r(w)}function v(w){return Ln(w)?(e.consume(w),u=String.fromCharCode(w),A):r(w)}function A(w){if(w===null||w===47||w===62||Ut(w)){const W=w===47,fe=u.toLowerCase();return!W&&!o&&Y9.includes(fe)?(l=1,i.interrupt?n(w):Q(w)):fM.includes(u.toLowerCase())?(l=6,W?(e.consume(w),B):i.interrupt?n(w):Q(w)):(l=7,i.interrupt&&!i.parser.lazy[i.now().line]?r(w):o?j(w):S(w))}return w===45||jn(w)?(e.consume(w),u+=String.fromCharCode(w),A):r(w)}function B(w){return w===62?(e.consume(w),i.interrupt?n:Q):r(w)}function j(w){return ct(w)?(e.consume(w),j):O(w)}function S(w){return w===47?(e.consume(w),O):w===58||w===95||Ln(w)?(e.consume(w),N):ct(w)?(e.consume(w),S):O(w)}function N(w){return w===45||w===46||w===58||w===95||jn(w)?(e.consume(w),N):T(w)}function T(w){return w===61?(e.consume(w),F):ct(w)?(e.consume(w),T):S(w)}function F(w){return w===null||w===60||w===61||w===62||w===96?r(w):w===34||w===39?(e.consume(w),f=w,R):ct(w)?(e.consume(w),F):L(w)}function R(w){return w===f?(e.consume(w),f=null,I):w===null||He(w)?r(w):(e.consume(w),R)}function L(w){return w===null||w===34||w===39||w===47||w===60||w===61||w===62||w===96||Ut(w)?T(w):(e.consume(w),L)}function I(w){return w===47||w===62||ct(w)?S(w):r(w)}function O(w){return w===62?(e.consume(w),$):r(w)}function $(w){return w===null||He(w)?Q(w):ct(w)?(e.consume(w),$):r(w)}function Q(w){return w===45&&l===2?(e.consume(w),P):w===60&&l===1?(e.consume(w),V):w===62&&l===4?(e.consume(w),z):w===63&&l===3?(e.consume(w),M):w===93&&l===5?(e.consume(w),xe):He(w)&&(l===6||l===7)?(e.exit("htmlFlowData"),e.check(pM,X,le)(w)):w===null||He(w)?(e.exit("htmlFlowData"),le(w)):(e.consume(w),Q)}function le(w){return e.check(mM,ee,X)(w)}function ee(w){return e.enter("lineEnding"),e.consume(w),e.exit("lineEnding"),Y}function Y(w){return w===null||He(w)?le(w):(e.enter("htmlFlowData"),Q(w))}function P(w){return w===45?(e.consume(w),M):Q(w)}function V(w){return w===47?(e.consume(w),u="",Z):Q(w)}function Z(w){if(w===62){const W=u.toLowerCase();return Y9.includes(W)?(e.consume(w),z):Q(w)}return Ln(w)&&u.length<8?(e.consume(w),u+=String.fromCharCode(w),Z):Q(w)}function xe(w){return w===93?(e.consume(w),M):Q(w)}function M(w){return w===62?(e.consume(w),z):w===45&&l===2?(e.consume(w),M):Q(w)}function z(w){return w===null||He(w)?(e.exit("htmlFlowData"),X(w)):(e.consume(w),z)}function X(w){return e.exit("htmlFlow"),n(w)}}function yM(e,n,r){const i=this;return l;function l(u){return He(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):n(u)}}function bM(e,n,r){return i;function i(l){return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),e.attempt(io,n,r)}}const CM={name:"htmlText",tokenize:vM};function vM(e,n,r){const i=this;let l,o,u;return d;function d(M){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(M),f}function f(M){return M===33?(e.consume(M),h):M===47?(e.consume(M),T):M===63?(e.consume(M),S):Ln(M)?(e.consume(M),L):r(M)}function h(M){return M===45?(e.consume(M),g):M===91?(e.consume(M),o=0,C):Ln(M)?(e.consume(M),j):r(M)}function g(M){return M===45?(e.consume(M),b):r(M)}function p(M){return M===null?r(M):M===45?(e.consume(M),y):He(M)?(u=p,V(M)):(e.consume(M),p)}function y(M){return M===45?(e.consume(M),b):p(M)}function b(M){return M===62?P(M):M===45?y(M):p(M)}function C(M){const z="CDATA[";return M===z.charCodeAt(o++)?(e.consume(M),o===z.length?v:C):r(M)}function v(M){return M===null?r(M):M===93?(e.consume(M),A):He(M)?(u=v,V(M)):(e.consume(M),v)}function A(M){return M===93?(e.consume(M),B):v(M)}function B(M){return M===62?P(M):M===93?(e.consume(M),B):v(M)}function j(M){return M===null||M===62?P(M):He(M)?(u=j,V(M)):(e.consume(M),j)}function S(M){return M===null?r(M):M===63?(e.consume(M),N):He(M)?(u=S,V(M)):(e.consume(M),S)}function N(M){return M===62?P(M):S(M)}function T(M){return Ln(M)?(e.consume(M),F):r(M)}function F(M){return M===45||jn(M)?(e.consume(M),F):R(M)}function R(M){return He(M)?(u=R,V(M)):ct(M)?(e.consume(M),R):P(M)}function L(M){return M===45||jn(M)?(e.consume(M),L):M===47||M===62||Ut(M)?I(M):r(M)}function I(M){return M===47?(e.consume(M),P):M===58||M===95||Ln(M)?(e.consume(M),O):He(M)?(u=I,V(M)):ct(M)?(e.consume(M),I):P(M)}function O(M){return M===45||M===46||M===58||M===95||jn(M)?(e.consume(M),O):$(M)}function $(M){return M===61?(e.consume(M),Q):He(M)?(u=$,V(M)):ct(M)?(e.consume(M),$):I(M)}function Q(M){return M===null||M===60||M===61||M===62||M===96?r(M):M===34||M===39?(e.consume(M),l=M,le):He(M)?(u=Q,V(M)):ct(M)?(e.consume(M),Q):(e.consume(M),ee)}function le(M){return M===l?(e.consume(M),l=void 0,Y):M===null?r(M):He(M)?(u=le,V(M)):(e.consume(M),le)}function ee(M){return M===null||M===34||M===39||M===60||M===61||M===96?r(M):M===47||M===62||Ut(M)?I(M):(e.consume(M),ee)}function Y(M){return M===47||M===62||Ut(M)?I(M):r(M)}function P(M){return M===62?(e.consume(M),e.exit("htmlTextData"),e.exit("htmlText"),n):r(M)}function V(M){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(M),e.exit("lineEnding"),Z}function Z(M){return ct(M)?Et(e,xe,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(M):xe(M)}function xe(M){return e.enter("htmlTextData"),u(M)}}const Df={name:"labelEnd",resolveAll:DM,resolveTo:wM,tokenize:FM},AM={tokenize:SM},kM={tokenize:NM},BM={tokenize:_M};function DM(e){let n=-1;const r=[];for(;++n<e.length;){const i=e[n][1];if(r.push(e[n]),i.type==="labelImage"||i.type==="labelLink"||i.type==="labelEnd"){const l=i.type==="labelImage"?4:2;i.type="data",n+=l}}return e.length!==r.length&&cr(e,0,e.length,r),e}function wM(e,n){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}},g={type:"labelText",start:{...e[o+i+2][1].end},end:{...e[u-2][1].start}};return d=[["enter",f,n],["enter",h,n]],d=Ar(d,e.slice(o+1,o+i+3)),d=Ar(d,[["enter",g,n]]),d=Ar(d,xc(n.parser.constructs.insideSpan.null,e.slice(o+i+4,u-3),n)),d=Ar(d,[["exit",g,n],e[u-2],e[u-1],["exit",h,n]]),d=Ar(d,e.slice(u+1)),d=Ar(d,[["exit",f,n]]),cr(e,o,e.length,d),e}function FM(e,n,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(Rr(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(AM,g,u?g:p)(y):y===91?e.attempt(kM,g,u?h:p)(y):u?g(y):p(y)}function h(y){return e.attempt(BM,g,p)(y)}function g(y){return n(y)}function p(y){return o._balanced=!0,r(y)}}function SM(e,n,r){return i;function i(p){return e.enter("resource"),e.enter("resourceMarker"),e.consume(p),e.exit("resourceMarker"),l}function l(p){return Ut(p)?zl(e,o)(p):o(p)}function o(p){return p===41?g(p):yE(e,u,d,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(p)}function u(p){return Ut(p)?zl(e,f)(p):g(p)}function d(p){return r(p)}function f(p){return p===34||p===39||p===40?CE(e,h,r,"resourceTitle","resourceTitleMarker","resourceTitleString")(p):g(p)}function h(p){return Ut(p)?zl(e,g)(p):g(p)}function g(p){return p===41?(e.enter("resourceMarker"),e.consume(p),e.exit("resourceMarker"),e.exit("resource"),n):r(p)}}function NM(e,n,r){const i=this;return l;function l(d){return bE.call(i,e,o,u,"reference","referenceMarker","referenceString")(d)}function o(d){return i.parser.defined.includes(Rr(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)))?n(d):r(d)}function u(d){return r(d)}}function _M(e,n,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"),n):r(o)}}const MM={name:"labelStartImage",resolveAll:Df.resolveAll,tokenize:jM};function jM(e,n,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):n(d)}}const TM={name:"labelStartLink",resolveAll:Df.resolveAll,tokenize:RM};function RM(e,n,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):n(u)}}const Rx={name:"lineEnding",tokenize:OM};function OM(e,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),Et(e,n,"linePrefix")}}const q0={name:"thematicBreak",tokenize:zM};function zM(e,n,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||He(h))?(e.exit("thematicBreak"),n(h)):r(h)}function f(h){return h===l?(e.consume(h),i++,f):(e.exit("thematicBreakSequence"),ct(h)?Et(e,d,"whitespace")(h):d(h))}}const Yn={continuation:{tokenize:UM},exit:$M,name:"list",tokenize:IM},LM={partial:!0,tokenize:qM},PM={partial:!0,tokenize:HM};function IM(e,n,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:Bd(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 Bd(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(io,i.interrupt?r:g,e.attempt(LM,y,p))}function g(b){return i.containerState.initialBlankLine=!0,o++,y(b)}function p(b){return ct(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,n(b)}}function UM(e,n,r){const i=this;return i.containerState._closeFlow=void 0,e.check(io,l,o);function l(d){return i.containerState.furtherBlankLines=i.containerState.furtherBlankLines||i.containerState.initialBlankLine,Et(e,n,"listItemIndent",i.containerState.size+1)(d)}function o(d){return i.containerState.furtherBlankLines||!ct(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(PM,n,u)(d))}function u(d){return i.containerState._closeFlow=!0,i.interrupt=void 0,Et(e,e.attempt(Yn,n,r),"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(d)}}function HM(e,n,r){const i=this;return Et(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?n(o):r(o)}}function $M(e){e.exit(this.containerState.type)}function qM(e,n,r){const i=this;return Et(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!ct(o)&&u&&u[1].type==="listItemPrefixWhitespace"?n(o):r(o)}}const K9={name:"setextUnderline",resolveTo:GM,tokenize:VM};function GM(e,n){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,n]),e.splice(o+1,0,["exit",e[i][1],n]),e[i][1].end={...e[o][1].end}):e[i][1]=u,e.push(["exit",u,n]),e}function VM(e,n,r){const i=this;let l;return o;function o(h){let g=i.events.length,p;for(;g--;)if(i.events[g][1].type!=="lineEnding"&&i.events[g][1].type!=="linePrefix"&&i.events[g][1].type!=="content"){p=i.events[g][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"),ct(h)?Et(e,f,"lineSuffix")(h):f(h))}function f(h){return h===null||He(h)?(e.exit("setextHeadingLine"),n(h)):r(h)}}const QM={tokenize:YM};function YM(e){const n=this,r=e.attempt(io,i,e.attempt(this.parser.constructs.flowInitial,l,Et(e,e.attempt(this.parser.constructs.flow,l,e.attempt(J_,l)),"linePrefix")));return r;function i(o){if(o===null){e.consume(o);return}return e.enter("lineEndingBlank"),e.consume(o),e.exit("lineEndingBlank"),n.currentConstruct=void 0,r}function l(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),n.currentConstruct=void 0,r}}const KM={resolveAll:AE()},XM=vE("string"),ZM=vE("text");function vE(e){return{resolveAll:AE(e==="text"?WM:void 0),tokenize:n};function n(r){const i=this,l=this.parser.constructs[e],o=r.attempt(l,u,d);return u;function u(g){return h(g)?o(g):d(g)}function d(g){if(g===null){r.consume(g);return}return r.enter("data"),r.consume(g),f}function f(g){return h(g)?(r.exit("data"),o(g)):(r.consume(g),f)}function h(g){if(g===null)return!0;const p=l[g];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 n;function n(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 WM(e,n){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=n.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(n._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,n],["exit",h,n]),r+=2)}r++}return e}const JM={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:pE},ej={91:aM},tj={[-2]:Tx,[-1]:Tx,32:Tx},nj={35:uM,42:q0,45:[K9,q0],60:hM,61:K9,95:q0,96:Q9,126:Q9},rj={38:gE,92:mE},aj={[-5]:Rx,[-4]:Rx,[-3]:Rx,33:MM,38:gE,42:Dd,60:[T_,CM],91:TM,92:[oM,mE],93:Df,95:Dd,96:Q_},ij={null:[Dd,KM]},sj={null:[42,95]},lj={null:[]},oj=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:sj,contentInitial:ej,disable:lj,document:JM,flow:nj,flowInitial:tj,insideSpan:ij,string:rj,text:aj},Symbol.toStringTag,{value:"Module"}));function cj(e,n,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:R(T),check:R(F),consume:j,enter:S,exit:N,interrupt:R(F,{interrupt:!0})},h={code:null,containerState:{},defineSkip:v,events:[],now:C,parser:e,previous:null,sliceSerialize:y,sliceStream:b,write:p};let g=n.tokenize.call(h,f);return n.resolveAll&&o.push(n),h;function p($){return u=Ar(u,$),A(),u[u.length-1]!==null?[]:(L(n,0),h.events=xc(o,h.events,h),h.events)}function y($,Q){return xj(b($),Q)}function b($){return uj(u,$)}function C(){const{_bufferIndex:$,_index:Q,line:le,column:ee,offset:Y}=i;return{_bufferIndex:$,_index:Q,line:le,column:ee,offset:Y}}function v($){l[$.line]=$.column,O()}function A(){let $;for(;i._index<u.length;){const Q=u[i._index];if(typeof Q=="string")for($=i._index,i._bufferIndex<0&&(i._bufferIndex=0);i._index===$&&i._bufferIndex<Q.length;)B(Q.charCodeAt(i._bufferIndex));else B(Q)}}function B($){g=g($)}function j($){He($)?(i.line++,i.column=1,i.offset+=$===-3?2:1,O()):$!==-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 S($,Q){const le=Q||{};return le.type=$,le.start=C(),h.events.push(["enter",le,h]),d.push(le),le}function N($){const Q=d.pop();return Q.end=C(),h.events.push(["exit",Q,h]),Q}function T($,Q){L($,Q.from)}function F($,Q){Q.restore()}function R($,Q){return le;function le(ee,Y,P){let V,Z,xe,M;return Array.isArray(ee)?X(ee):"tokenize"in ee?X([ee]):z(ee);function z(he){return De;function De(Ce){const Fe=Ce!==null&&he[Ce],at=Ce!==null&&he.null,mt=[...Array.isArray(Fe)?Fe:Fe?[Fe]:[],...Array.isArray(at)?at:at?[at]:[]];return X(mt)(Ce)}}function X(he){return V=he,Z=0,he.length===0?P:w(he[Z])}function w(he){return De;function De(Ce){return M=I(),xe=he,he.partial||(h.currentConstruct=he),he.name&&h.parser.constructs.disable.null.includes(he.name)?fe():he.tokenize.call(Q?Object.assign(Object.create(h),Q):h,f,W,fe)(Ce)}}function W(he){return $(xe,M),Y}function fe(he){return M.restore(),++Z<V.length?w(V[Z]):P}}}function L($,Q){$.resolveAll&&!o.includes($)&&o.push($),$.resolve&&cr(h.events,Q,h.events.length-Q,$.resolve(h.events.slice(Q),h)),$.resolveTo&&(h.events=$.resolveTo(h.events,h))}function I(){const $=C(),Q=h.previous,le=h.currentConstruct,ee=h.events.length,Y=Array.from(d);return{from:ee,restore:P};function P(){i=$,h.previous=Q,h.currentConstruct=le,h.events.length=ee,d=Y,O()}}function O(){i.line in l&&i.column<2&&(i.column=l[i.line],i.offset+=l[i.line]-1)}}function uj(e,n){const r=n.start._index,i=n.start._bufferIndex,l=n.end._index,o=n.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 xj(e,n){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=`
|
|
19
|
+
`;break}case-3:{u=`\r
|
|
20
|
+
`;break}case-2:{u=n?" ":" ";break}case-1:{if(!n&&l)continue;u=" ";break}default:u=String.fromCharCode(o)}l=o===-2,i.push(u)}return i.join("")}function dj(e){const i={constructs:fE([oj,...(e||{}).extensions||[]]),content:l(w_),defined:[],document:l(S_),flow:l(QM),lazy:{},string:l(XM),text:l(ZM)};return i;function l(o){return u;function u(d){return cj(i,o,d)}}}function fj(e){for(;!EE(e););return e}const X9=/[\0\t\n\r]/g;function hj(){let e=1,n="",r=!0,i;return l;function l(o,u,d){const f=[];let h,g,p,y,b;for(o=n+(typeof o=="string"?o.toString():new TextDecoder(u||void 0).decode(o)),p=0,n="",r&&(o.charCodeAt(0)===65279&&p++,r=void 0);p<o.length;){if(X9.lastIndex=p,h=X9.exec(o),y=h&&h.index!==void 0?h.index:o.length,b=o.charCodeAt(y),!h){n=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(g=Math.ceil(e/4)*4,f.push(-2);e++<g;)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),n&&f.push(n),f.push(null)),f}}const pj=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function mj(e){return e.replace(pj,gj)}function gj(e,n,r){if(n)return n;if(r.charCodeAt(0)===35){const l=r.charCodeAt(1),o=l===120||l===88;return hE(r.slice(o?2:1),o?16:10)}return Bf(r)||e}const kE={}.hasOwnProperty;function Ej(e,n,r){return n&&typeof n=="object"&&(r=n,n=void 0),yj(r)(fj(dj(r).document().write(hj()(e,n,!0))))}function yj(e){const n={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o(Ue),autolinkProtocol:I,autolinkEmail:I,atxHeading:o(Ae),blockQuote:o(at),characterEscape:I,characterReference:I,codeFenced:o(mt),codeFencedFenceInfo:u,codeFencedFenceMeta:u,codeIndented:o(mt,u),codeText:o(Lt,u),codeTextData:I,data:I,codeFlowValue:I,definition:o(kt),definitionDestinationString:u,definitionLabelString:u,definitionTitleString:u,emphasis:o(we),hardBreakEscape:o(tt),hardBreakTrailing:o(tt),htmlFlow:o(Qe,u),htmlFlowData:I,htmlText:o(Qe,u),htmlTextData:I,image:o(Tt),label:u,link:o(Ue),listItem:o(wt),listItemValue:y,listOrdered:o(Ct,p),listUnordered:o(Ct),paragraph:o(cn),reference:w,referenceString:u,resourceDestinationString:u,resourceTitleString:u,setextHeading:o(Ae),strong:o(Pn),thematicBreak:o(nn)},exit:{atxHeading:f(),atxHeadingSequence:T,autolink:f(),autolinkEmail:Fe,autolinkProtocol:Ce,blockQuote:f(),characterEscapeValue:O,characterReferenceMarkerHexadecimal:fe,characterReferenceMarkerNumeric:fe,characterReferenceValue:he,characterReference:De,codeFenced:f(A),codeFencedFence:v,codeFencedFenceInfo:b,codeFencedFenceMeta:C,codeFlowValue:O,codeIndented:f(B),codeText:f(Y),codeTextData:O,data:O,definition:f(),definitionDestinationString:N,definitionLabelString:j,definitionTitleString:S,emphasis:f(),hardBreakEscape:f(Q),hardBreakTrailing:f(Q),htmlFlow:f(le),htmlFlowData:O,htmlText:f(ee),htmlTextData:O,image:f(V),label:xe,labelText:Z,lineEnding:$,link:f(P),listItem:f(),listOrdered:f(),listUnordered:f(),paragraph:f(),referenceString:W,resourceDestinationString:M,resourceTitleString:z,resource:X,setextHeading:f(L),setextHeadingLineSequence:R,setextHeadingText:F,strong:f(),thematicBreak:f()}};BE(n,(e||{}).mdastExtensions||[]);const r={};return i;function i(se){let me={type:"root",children:[]};const je={stack:[me],tokenStack:[],config:n,enter:d,exit:h,buffer:u,resume:g,data:r},Ke=[];let it=-1;for(;++it<se.length;)if(se[it][1].type==="listOrdered"||se[it][1].type==="listUnordered")if(se[it][0]==="enter")Ke.push(it);else{const Ht=Ke.pop();it=l(se,Ht,it)}for(it=-1;++it<se.length;){const Ht=n[se[it][0]];kE.call(Ht,se[it][1].type)&&Ht[se[it][1].type].call(Object.assign({sliceSerialize:se[it][2].sliceSerialize},je),se[it][1])}if(je.tokenStack.length>0){const Ht=je.tokenStack[je.tokenStack.length-1];(Ht[1]||Z9).call(je,void 0,Ht[0])}for(me.position={start:Ka(se.length>0?se[0][1].start:{line:1,column:1,offset:0}),end:Ka(se.length>0?se[se.length-2][1].end:{line:1,column:1,offset:0})},it=-1;++it<n.transforms.length;)me=n.transforms[it](me)||me;return me}function l(se,me,je){let Ke=me-1,it=-1,Ht=!1,un,Gt,Bt,Vt;for(;++Ke<=je;){const re=se[Ke];switch(re[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{re[0]==="enter"?it++:it--,Vt=void 0;break}case"lineEndingBlank":{re[0]==="enter"&&(un&&!Vt&&!it&&!Bt&&(Bt=Ke),Vt=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Vt=void 0}if(!it&&re[0]==="enter"&&re[1].type==="listItemPrefix"||it===-1&&re[0]==="exit"&&(re[1].type==="listUnordered"||re[1].type==="listOrdered")){if(un){let ht=Ke;for(Gt=void 0;ht--;){const gt=se[ht];if(gt[1].type==="lineEnding"||gt[1].type==="lineEndingBlank"){if(gt[0]==="exit")continue;Gt&&(se[Gt][1].type="lineEndingBlank",Ht=!0),gt[1].type="lineEnding",Gt=ht}else if(!(gt[1].type==="linePrefix"||gt[1].type==="blockQuotePrefix"||gt[1].type==="blockQuotePrefixWhitespace"||gt[1].type==="blockQuoteMarker"||gt[1].type==="listItemIndent"))break}Bt&&(!Gt||Bt<Gt)&&(un._spread=!0),un.end=Object.assign({},Gt?se[Gt][1].start:re[1].end),se.splice(Gt||Ke,0,["exit",un,re[2]]),Ke++,je++}if(re[1].type==="listItemPrefix"){const ht={type:"listItem",_spread:!1,start:Object.assign({},re[1].start),end:void 0};un=ht,se.splice(Ke,0,["enter",ht,re[2]]),Ke++,je++,Bt=void 0,Vt=!0}}}return se[me][1]._spread=Ht,je}function o(se,me){return je;function je(Ke){d.call(this,se(Ke),Ke),me&&me.call(this,Ke)}}function u(){this.stack.push({type:"fragment",children:[]})}function d(se,me,je){this.stack[this.stack.length-1].children.push(se),this.stack.push(se),this.tokenStack.push([me,je||void 0]),se.position={start:Ka(me.start),end:void 0}}function f(se){return me;function me(je){se&&se.call(this,je),h.call(this,je)}}function h(se,me){const je=this.stack.pop(),Ke=this.tokenStack.pop();if(Ke)Ke[0].type!==se.type&&(me?me.call(this,se,Ke[0]):(Ke[1]||Z9).call(this,se,Ke[0]));else throw new Error("Cannot close `"+se.type+"` ("+Ol({start:se.start,end:se.end})+"): it’s not open");je.position.end=Ka(se.end)}function g(){return kf(this.stack.pop())}function p(){this.data.expectingFirstListItemValue=!0}function y(se){if(this.data.expectingFirstListItemValue){const me=this.stack[this.stack.length-2];me.start=Number.parseInt(this.sliceSerialize(se),10),this.data.expectingFirstListItemValue=void 0}}function b(){const se=this.resume(),me=this.stack[this.stack.length-1];me.lang=se}function C(){const se=this.resume(),me=this.stack[this.stack.length-1];me.meta=se}function v(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function A(){const se=this.resume(),me=this.stack[this.stack.length-1];me.value=se.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function B(){const se=this.resume(),me=this.stack[this.stack.length-1];me.value=se.replace(/(\r?\n|\r)$/g,"")}function j(se){const me=this.resume(),je=this.stack[this.stack.length-1];je.label=me,je.identifier=Rr(this.sliceSerialize(se)).toLowerCase()}function S(){const se=this.resume(),me=this.stack[this.stack.length-1];me.title=se}function N(){const se=this.resume(),me=this.stack[this.stack.length-1];me.url=se}function T(se){const me=this.stack[this.stack.length-1];if(!me.depth){const je=this.sliceSerialize(se).length;me.depth=je}}function F(){this.data.setextHeadingSlurpLineEnding=!0}function R(se){const me=this.stack[this.stack.length-1];me.depth=this.sliceSerialize(se).codePointAt(0)===61?1:2}function L(){this.data.setextHeadingSlurpLineEnding=void 0}function I(se){const je=this.stack[this.stack.length-1].children;let Ke=je[je.length-1];(!Ke||Ke.type!=="text")&&(Ke=Ye(),Ke.position={start:Ka(se.start),end:void 0},je.push(Ke)),this.stack.push(Ke)}function O(se){const me=this.stack.pop();me.value+=this.sliceSerialize(se),me.position.end=Ka(se.end)}function $(se){const me=this.stack[this.stack.length-1];if(this.data.atHardBreak){const je=me.children[me.children.length-1];je.position.end=Ka(se.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&n.canContainEols.includes(me.type)&&(I.call(this,se),O.call(this,se))}function Q(){this.data.atHardBreak=!0}function le(){const se=this.resume(),me=this.stack[this.stack.length-1];me.value=se}function ee(){const se=this.resume(),me=this.stack[this.stack.length-1];me.value=se}function Y(){const se=this.resume(),me=this.stack[this.stack.length-1];me.value=se}function P(){const se=this.stack[this.stack.length-1];if(this.data.inReference){const me=this.data.referenceType||"shortcut";se.type+="Reference",se.referenceType=me,delete se.url,delete se.title}else delete se.identifier,delete se.label;this.data.referenceType=void 0}function V(){const se=this.stack[this.stack.length-1];if(this.data.inReference){const me=this.data.referenceType||"shortcut";se.type+="Reference",se.referenceType=me,delete se.url,delete se.title}else delete se.identifier,delete se.label;this.data.referenceType=void 0}function Z(se){const me=this.sliceSerialize(se),je=this.stack[this.stack.length-2];je.label=mj(me),je.identifier=Rr(me).toLowerCase()}function xe(){const se=this.stack[this.stack.length-1],me=this.resume(),je=this.stack[this.stack.length-1];if(this.data.inReference=!0,je.type==="link"){const Ke=se.children;je.children=Ke}else je.alt=me}function M(){const se=this.resume(),me=this.stack[this.stack.length-1];me.url=se}function z(){const se=this.resume(),me=this.stack[this.stack.length-1];me.title=se}function X(){this.data.inReference=void 0}function w(){this.data.referenceType="collapsed"}function W(se){const me=this.resume(),je=this.stack[this.stack.length-1];je.label=me,je.identifier=Rr(this.sliceSerialize(se)).toLowerCase(),this.data.referenceType="full"}function fe(se){this.data.characterReferenceType=se.type}function he(se){const me=this.sliceSerialize(se),je=this.data.characterReferenceType;let Ke;je?(Ke=hE(me,je==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Ke=Bf(me);const it=this.stack[this.stack.length-1];it.value+=Ke}function De(se){const me=this.stack.pop();me.position.end=Ka(se.end)}function Ce(se){O.call(this,se);const me=this.stack[this.stack.length-1];me.url=this.sliceSerialize(se)}function Fe(se){O.call(this,se);const me=this.stack[this.stack.length-1];me.url="mailto:"+this.sliceSerialize(se)}function at(){return{type:"blockquote",children:[]}}function mt(){return{type:"code",lang:null,meta:null,value:""}}function Lt(){return{type:"inlineCode",value:""}}function kt(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function we(){return{type:"emphasis",children:[]}}function Ae(){return{type:"heading",depth:0,children:[]}}function tt(){return{type:"break"}}function Qe(){return{type:"html",value:""}}function Tt(){return{type:"image",title:null,url:"",alt:null}}function Ue(){return{type:"link",title:null,url:"",children:[]}}function Ct(se){return{type:"list",ordered:se.type==="listOrdered",start:null,spread:se._spread,children:[]}}function wt(se){return{type:"listItem",spread:se._spread,checked:null,children:[]}}function cn(){return{type:"paragraph",children:[]}}function Pn(){return{type:"strong",children:[]}}function Ye(){return{type:"text",value:""}}function nn(){return{type:"thematicBreak"}}}function Ka(e){return{line:e.line,column:e.column,offset:e.offset}}function BE(e,n){let r=-1;for(;++r<n.length;){const i=n[r];Array.isArray(i)?BE(e,i):bj(e,i)}}function bj(e,n){let r;for(r in n)if(kE.call(n,r))switch(r){case"canContainEols":{const i=n[r];i&&e[r].push(...i);break}case"transforms":{const i=n[r];i&&e[r].push(...i);break}case"enter":case"exit":{const i=n[r];i&&Object.assign(e[r],i);break}}}function Z9(e,n){throw e?new Error("Cannot close `"+e.type+"` ("+Ol({start:e.start,end:e.end})+"): a different token (`"+n.type+"`, "+Ol({start:n.start,end:n.end})+") is open"):new Error("Cannot close document, a token (`"+n.type+"`, "+Ol({start:n.start,end:n.end})+") is still open")}function Cj(e){const n=this;n.parser=r;function r(i){return Ej(i,{...n.data("settings"),...e,extensions:n.data("micromarkExtensions")||[],mdastExtensions:n.data("fromMarkdownExtensions")||[]})}}function vj(e,n){const r={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(n),!0)};return e.patch(n,r),e.applyData(n,r)}function Aj(e,n){const r={type:"element",tagName:"br",properties:{},children:[]};return e.patch(n,r),[e.applyData(n,r),{type:"text",value:`
|
|
21
|
+
`}]}function kj(e,n){const r=n.value?n.value+`
|
|
22
|
+
`:"",i={},l=n.lang?n.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 n.meta&&(o.data={meta:n.meta}),e.patch(n,o),o=e.applyData(n,o),o={type:"element",tagName:"pre",properties:{},children:[o]},e.patch(n,o),o}function Bj(e,n){const r={type:"element",tagName:"del",properties:{},children:e.all(n)};return e.patch(n,r),e.applyData(n,r)}function Dj(e,n){const r={type:"element",tagName:"em",properties:{},children:e.all(n)};return e.patch(n,r),e.applyData(n,r)}function wj(e,n){const r=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",i=String(n.identifier).toUpperCase(),l=Fs(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(n,f);const h={type:"element",tagName:"sup",properties:{},children:[f]};return e.patch(n,h),e.applyData(n,h)}function Fj(e,n){const r={type:"element",tagName:"h"+n.depth,properties:{},children:e.all(n)};return e.patch(n,r),e.applyData(n,r)}function Sj(e,n){if(e.options.allowDangerousHtml){const r={type:"raw",value:n.value};return e.patch(n,r),e.applyData(n,r)}}function DE(e,n){const r=n.referenceType;let i="]";if(r==="collapsed"?i+="[]":r==="full"&&(i+="["+(n.label||n.identifier)+"]"),n.type==="imageReference")return[{type:"text",value:"!["+n.alt+i}];const l=e.all(n),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 Nj(e,n){const r=String(n.identifier).toUpperCase(),i=e.definitionById.get(r);if(!i)return DE(e,n);const l={src:Fs(i.url||""),alt:n.alt};i.title!==null&&i.title!==void 0&&(l.title=i.title);const o={type:"element",tagName:"img",properties:l,children:[]};return e.patch(n,o),e.applyData(n,o)}function _j(e,n){const r={src:Fs(n.url)};n.alt!==null&&n.alt!==void 0&&(r.alt=n.alt),n.title!==null&&n.title!==void 0&&(r.title=n.title);const i={type:"element",tagName:"img",properties:r,children:[]};return e.patch(n,i),e.applyData(n,i)}function Mj(e,n){const r={type:"text",value:n.value.replace(/\r?\n|\r/g," ")};e.patch(n,r);const i={type:"element",tagName:"code",properties:{},children:[r]};return e.patch(n,i),e.applyData(n,i)}function jj(e,n){const r=String(n.identifier).toUpperCase(),i=e.definitionById.get(r);if(!i)return DE(e,n);const l={href:Fs(i.url||"")};i.title!==null&&i.title!==void 0&&(l.title=i.title);const o={type:"element",tagName:"a",properties:l,children:e.all(n)};return e.patch(n,o),e.applyData(n,o)}function Tj(e,n){const r={href:Fs(n.url)};n.title!==null&&n.title!==void 0&&(r.title=n.title);const i={type:"element",tagName:"a",properties:r,children:e.all(n)};return e.patch(n,i),e.applyData(n,i)}function Rj(e,n,r){const i=e.all(n),l=r?Oj(r):wE(n),o={},u=[];if(typeof n.checked=="boolean"){const g=i[0];let p;g&&g.type==="element"&&g.tagName==="p"?p=g:(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:n.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let d=-1;for(;++d<i.length;){const g=i[d];(l||d!==0||g.type!=="element"||g.tagName!=="p")&&u.push({type:"text",value:`
|
|
23
|
+
`}),g.type==="element"&&g.tagName==="p"&&!l?u.push(...g.children):u.push(g)}const f=i[i.length-1];f&&(l||f.type!=="element"||f.tagName!=="p")&&u.push({type:"text",value:`
|
|
24
|
+
`});const h={type:"element",tagName:"li",properties:o,children:u};return e.patch(n,h),e.applyData(n,h)}function Oj(e){let n=!1;if(e.type==="list"){n=e.spread||!1;const r=e.children;let i=-1;for(;!n&&++i<r.length;)n=wE(r[i])}return n}function wE(e){const n=e.spread;return n??e.children.length>1}function zj(e,n){const r={},i=e.all(n);let l=-1;for(typeof n.start=="number"&&n.start!==1&&(r.start=n.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:n.ordered?"ol":"ul",properties:r,children:e.wrap(i,!0)};return e.patch(n,o),e.applyData(n,o)}function Lj(e,n){const r={type:"element",tagName:"p",properties:{},children:e.all(n)};return e.patch(n,r),e.applyData(n,r)}function Pj(e,n){const r={type:"root",children:e.wrap(e.all(n))};return e.patch(n,r),e.applyData(n,r)}function Ij(e,n){const r={type:"element",tagName:"strong",properties:{},children:e.all(n)};return e.patch(n,r),e.applyData(n,r)}function Uj(e,n){const r=e.all(n),i=r.shift(),l=[];if(i){const u={type:"element",tagName:"thead",properties:{},children:e.wrap([i],!0)};e.patch(n.children[0],u),l.push(u)}if(r.length>0){const u={type:"element",tagName:"tbody",properties:{},children:e.wrap(r,!0)},d=bf(n.children[1]),f=sE(n.children[n.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(n,o),e.applyData(n,o)}function Hj(e,n,r){const i=r?r.children:void 0,o=(i?i.indexOf(n):1)===0?"th":"td",u=r&&r.type==="table"?r.align:void 0,d=u?u.length:n.children.length;let f=-1;const h=[];for(;++f<d;){const p=n.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 g={type:"element",tagName:"tr",properties:{},children:e.wrap(h,!0)};return e.patch(n,g),e.applyData(n,g)}function $j(e,n){const r={type:"element",tagName:"td",properties:{},children:e.all(n)};return e.patch(n,r),e.applyData(n,r)}const W9=9,J9=32;function qj(e){const n=String(e),r=/\r?\n|\r/g;let i=r.exec(n),l=0;const o=[];for(;i;)o.push(e2(n.slice(l,i.index),l>0,!0),i[0]),l=i.index+i[0].length,i=r.exec(n);return o.push(e2(n.slice(l),l>0,!1)),o.join("")}function e2(e,n,r){let i=0,l=e.length;if(n){let o=e.codePointAt(i);for(;o===W9||o===J9;)i++,o=e.codePointAt(i)}if(r){let o=e.codePointAt(l-1);for(;o===W9||o===J9;)l--,o=e.codePointAt(l-1)}return l>i?e.slice(i,l):""}function Gj(e,n){const r={type:"text",value:qj(String(n.value))};return e.patch(n,r),e.applyData(n,r)}function Vj(e,n){const r={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(n,r),e.applyData(n,r)}const Qj={blockquote:vj,break:Aj,code:kj,delete:Bj,emphasis:Dj,footnoteReference:wj,heading:Fj,html:Sj,imageReference:Nj,image:_j,inlineCode:Mj,linkReference:jj,link:Tj,listItem:Rj,list:zj,paragraph:Lj,root:Pj,strong:Ij,table:Uj,tableCell:$j,tableRow:Hj,text:Gj,thematicBreak:Vj,toml:M0,yaml:M0,definition:M0,footnoteDefinition:M0};function M0(){}const FE=-1,dc=0,Ll=1,W0=2,wf=3,Ff=4,Sf=5,Nf=6,SE=7,NE=8,_E=typeof self=="object"?self:globalThis,t2=(e,n)=>{switch(e){case"Function":case"SharedWorker":case"Worker":case"eval":case"setInterval":case"setTimeout":throw new TypeError("unable to deserialize "+e)}return new _E[e](n)},Yj=(e,n)=>{const r=(l,o)=>(e.set(o,l),l),i=l=>{if(e.has(l))return e.get(l);const[o,u]=n[l];switch(o){case dc:case FE:return r(u,l);case Ll:{const d=r([],l);for(const f of u)d.push(i(f));return d}case W0:{const d=r({},l);for(const[f,h]of u)d[i(f)]=i(h);return d}case wf:return r(new Date(u),l);case Ff:{const{source:d,flags:f}=u;return r(new RegExp(d,f),l)}case Sf:{const d=r(new Map,l);for(const[f,h]of u)d.set(i(f),i(h));return d}case Nf:{const d=r(new Set,l);for(const f of u)d.add(i(f));return d}case SE:{const{name:d,message:f}=u;return r(typeof _E[d]=="function"?t2(d,f):new Error(f),l)}case NE: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(t2(o,u),l)};return i},n2=e=>Yj(new Map,e)(0),Ai="",{toString:Kj}={},{keys:Xj}=Object,Nl=e=>{const n=typeof e;if(n!=="object"||!e)return[dc,n];const r=Kj.call(e).slice(8,-1);switch(r){case"Array":return[Ll,Ai];case"Object":return[W0,Ai];case"Date":return[wf,Ai];case"RegExp":return[Ff,Ai];case"Map":return[Sf,Ai];case"Set":return[Nf,Ai];case"DataView":return[Ll,r]}return r.includes("Array")?[Ll,r]:e instanceof Error?[SE,e.name||"Error"]:[W0,r]},j0=([e,n])=>e===dc&&(n==="function"||n==="symbol"),Zj=(e,n,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]=Nl(u);switch(d){case dc:{let g=u;switch(f){case"bigint":d=NE,g=u.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+f);g=null;break;case"undefined":return l([FE],u)}return l([d,g],u)}case Ll:{if(f){let y=u;return f==="DataView"?y=new Uint8Array(u.buffer):f==="ArrayBuffer"&&(y=new Uint8Array(u)),l([f,[...y]],u)}const g=[],p=l([d,g],u);for(const y of u)g.push(o(y));return p}case W0:{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(n&&"toJSON"in u)return o(u.toJSON());const g=[],p=l([d,g],u);for(const y of Xj(u))(e||!j0(Nl(u[y])))&&g.push([o(y),o(u[y])]);return p}case wf:return l([d,isNaN(u.getTime())?Ai:u.toISOString()],u);case Ff:{const{source:g,flags:p}=u;return l([d,{source:g,flags:p}],u)}case Sf:{const g=[],p=l([d,g],u);for(const[y,b]of u)(e||!(j0(Nl(y))||j0(Nl(b))))&&g.push([o(y),o(b)]);return p}case Nf:{const g=[],p=l([d,g],u);for(const y of u)(e||!j0(Nl(y)))&&g.push(o(y));return p}}const{message:h}=u;return l([d,{name:f,message:h}],u)};return o},r2=(e,{json:n,lossy:r}={})=>{const i=[];return Zj(!(n||r),!!n,new Map,i)(e),i},J0=typeof structuredClone=="function"?(e,n)=>n&&("json"in n||"lossy"in n)?n2(r2(e,n)):structuredClone(e):(e,n)=>n2(r2(e,n));function Wj(e,n){const r=[{type:"text",value:"↩"}];return n>1&&r.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(n)}]}),r}function Jj(e,n){return"Back to reference "+(e+1)+(n>1?"-"+n:"")}function eT(e){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=e.options.footnoteBackContent||Wj,i=e.options.footnoteBackLabel||Jj,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 g=e.all(h),p=String(h.identifier).toUpperCase(),y=Fs(p.toLowerCase());let b=0;const C=[],v=e.footnoteCounts.get(p);for(;v!==void 0&&++b<=v;){C.length>0&&C.push({type:"text",value:" "});let j=typeof r=="string"?r:r(f,b);typeof j=="string"&&(j={type:"text",value:j}),C.push({type:"element",tagName:"a",properties:{href:"#"+n+"fnref-"+y+(b>1?"-"+b:""),dataFootnoteBackref:"",ariaLabel:typeof i=="string"?i:i(f,b),className:["data-footnote-backref"]},children:Array.isArray(j)?j:[j]})}const A=g[g.length-1];if(A&&A.type==="element"&&A.tagName==="p"){const j=A.children[A.children.length-1];j&&j.type==="text"?j.value+=" ":A.children.push({type:"text",value:" "}),A.children.push(...C)}else g.push(...C);const B={type:"element",tagName:"li",properties:{id:n+"fn-"+y},children:e.wrap(g,!0)};e.patch(h,B),d.push(B)}if(d.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:o,properties:{...J0(u),id:"footnote-label"},children:[{type:"text",value:l}]},{type:"text",value:`
|
|
25
|
+
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(d,!0)},{type:"text",value:`
|
|
26
|
+
`}]}}const fc=(function(e){if(e==null)return aT;if(typeof e=="function")return hc(e);if(typeof e=="object")return Array.isArray(e)?tT(e):nT(e);if(typeof e=="string")return rT(e);throw new Error("Expected function, string, or object as test")});function tT(e){const n=[];let r=-1;for(;++r<e.length;)n[r]=fc(e[r]);return hc(i);function i(...l){let o=-1;for(;++o<n.length;)if(n[o].apply(this,l))return!0;return!1}}function nT(e){const n=e;return hc(r);function r(i){const l=i;let o;for(o in e)if(l[o]!==n[o])return!1;return!0}}function rT(e){return hc(n);function n(r){return r&&r.type===e}}function hc(e){return n;function n(r,i,l){return!!(iT(r)&&e.call(this,r,typeof i=="number"?i:void 0,l||void 0))}}function aT(){return!0}function iT(e){return e!==null&&typeof e=="object"&&"type"in e}const ME=[],sT=!0,wd=!1,lT="skip";function jE(e,n,r,i){let l;typeof n=="function"&&typeof r!="function"?(i=r,r=n):l=n;const o=fc(l),u=i?-1:1;d(e,void 0,[])();function d(f,h,g){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=ME,C,v,A;if((!n||o(f,h,g[g.length-1]||void 0))&&(b=oT(r(f,g)),b[0]===wd))return b;if("children"in f&&f.children){const B=f;if(B.children&&b[0]!==lT)for(v=(i?B.children.length:-1)+u,A=g.concat(B);v>-1&&v<B.children.length;){const j=B.children[v];if(C=d(j,v,A)(),C[0]===wd)return C;v=typeof C[1]=="number"?C[1]:v+u}}return b}}}function oT(e){return Array.isArray(e)?e:typeof e=="number"?[sT,e]:e==null?ME:[e]}function _f(e,n,r,i){let l,o,u;typeof n=="function"&&typeof r!="function"?(o=void 0,u=n,l=r):(o=n,u=r,l=i),jE(e,o,d,l);function d(f,h){const g=h[h.length-1],p=g?g.children.indexOf(f):void 0;return u(f,p,g)}}const Fd={}.hasOwnProperty,cT={};function uT(e,n){const r=n||cT,i=new Map,l=new Map,o=new Map,u={...Qj,...r.handlers},d={all:h,applyData:dT,definitionById:i,footnoteById:l,footnoteCounts:o,footnoteOrder:[],handlers:u,one:f,options:r,patch:xT,wrap:hT};return _f(e,function(g){if(g.type==="definition"||g.type==="footnoteDefinition"){const p=g.type==="definition"?i:l,y=String(g.identifier).toUpperCase();p.has(y)||p.set(y,g)}}),d;function f(g,p){const y=g.type,b=d.handlers[y];if(Fd.call(d.handlers,y)&&b)return b(d,g,p);if(d.options.passThrough&&d.options.passThrough.includes(y)){if("children"in g){const{children:v,...A}=g,B=J0(A);return B.children=d.all(g),B}return J0(g)}return(d.options.unknownHandler||fT)(d,g,p)}function h(g){const p=[];if("children"in g){const y=g.children;let b=-1;for(;++b<y.length;){const C=d.one(y[b],g);if(C){if(b&&y[b-1].type==="break"&&(!Array.isArray(C)&&C.type==="text"&&(C.value=a2(C.value)),!Array.isArray(C)&&C.type==="element")){const v=C.children[0];v&&v.type==="text"&&(v.value=a2(v.value))}Array.isArray(C)?p.push(...C):p.push(C)}}}return p}}function xT(e,n){e.position&&(n.position=JN(e))}function dT(e,n){let r=n;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,J0(o)),"children"in r&&r.children&&l!==null&&l!==void 0&&(r.children=l)}return r}function fT(e,n){const r=n.data||{},i="value"in n&&!(Fd.call(r,"hProperties")||Fd.call(r,"hChildren"))?{type:"text",value:n.value}:{type:"element",tagName:"div",properties:{},children:e.all(n)};return e.patch(n,i),e.applyData(n,i)}function hT(e,n){const r=[];let i=-1;for(n&&r.push({type:"text",value:`
|
|
27
|
+
`});++i<e.length;)i&&r.push({type:"text",value:`
|
|
28
|
+
`}),r.push(e[i]);return n&&e.length>0&&r.push({type:"text",value:`
|
|
29
|
+
`}),r}function a2(e){let n=0,r=e.charCodeAt(n);for(;r===9||r===32;)n++,r=e.charCodeAt(n);return e.slice(n)}function i2(e,n){const r=uT(e,n),i=r.one(e,void 0),l=eT(r),o=Array.isArray(i)?{type:"root",children:i}:i||{type:"root",children:[]};return l&&o.children.push({type:"text",value:`
|
|
30
|
+
`},l),o}function pT(e,n){return e&&"run"in e?async function(r,i){const l=i2(r,{file:i,...n});await e.run(l,i)}:function(r,i){return i2(r,{file:i,...e||n})}}function s2(e){if(e)throw e}var Ox,l2;function mT(){if(l2)return Ox;l2=1;var e=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,l=function(h){return typeof Array.isArray=="function"?Array.isArray(h):n.call(h)==="[object Array]"},o=function(h){if(!h||n.call(h)!=="[object Object]")return!1;var g=e.call(h,"constructor"),p=h.constructor&&h.constructor.prototype&&e.call(h.constructor.prototype,"isPrototypeOf");if(h.constructor&&!g&&!p)return!1;var y;for(y in h);return typeof y>"u"||e.call(h,y)},u=function(h,g){r&&g.name==="__proto__"?r(h,g.name,{enumerable:!0,configurable:!0,value:g.newValue,writable:!0}):h[g.name]=g.newValue},d=function(h,g){if(g==="__proto__")if(e.call(h,g)){if(i)return i(h,g).value}else return;return h[g]};return Ox=function f(){var h,g,p,y,b,C,v=arguments[0],A=1,B=arguments.length,j=!1;for(typeof v=="boolean"&&(j=v,v=arguments[1]||{},A=2),(v==null||typeof v!="object"&&typeof v!="function")&&(v={});A<B;++A)if(h=arguments[A],h!=null)for(g in h)p=d(v,g),y=d(h,g),v!==y&&(j&&y&&(o(y)||(b=l(y)))?(b?(b=!1,C=p&&l(p)?p:[]):C=p&&o(p)?p:{},u(v,{name:g,newValue:f(j,C,y)})):typeof y<"u"&&u(v,{name:g,newValue:y}));return v},Ox}var gT=mT();const zx=Zl(gT);function Sd(e){if(typeof e!="object"||e===null)return!1;const n=Object.getPrototypeOf(e);return(n===null||n===Object.prototype||Object.getPrototypeOf(n)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function ET(){const e=[],n={run:r,use:i};return n;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 g=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,g?yT(g,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),n}}function yT(e,n){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 g=h;if(d&&r)throw g;return l(g)}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,n(u,...d))}function o(u){l(null,u)}}const Hr={basename:bT,dirname:CT,extname:vT,join:AT,sep:"/"};function bT(e,n){if(n!==void 0&&typeof n!="string")throw new TypeError('"ext" argument must be a string');so(e);let r=0,i=-1,l=e.length,o;if(n===void 0||n.length===0||n.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(n===e)return"";let u=-1,d=n.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)===n.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 CT(e){if(so(e),e.length===0)return".";let n=-1,r=e.length,i;for(;--r;)if(e.codePointAt(r)===47){if(i){n=r;break}}else i||(i=!0);return n<0?e.codePointAt(0)===47?"/":".":n===1&&e.codePointAt(0)===47?"//":e.slice(0,n)}function vT(e){so(e);let n=e.length,r=-1,i=0,l=-1,o=0,u;for(;n--;){const d=e.codePointAt(n);if(d===47){if(u){i=n+1;break}continue}r<0&&(u=!0,r=n+1),d===46?l<0?l=n: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 AT(...e){let n=-1,r;for(;++n<e.length;)so(e[n]),e[n]&&(r=r===void 0?e[n]:r+"/"+e[n]);return r===void 0?".":kT(r)}function kT(e){so(e);const n=e.codePointAt(0)===47;let r=BT(e,!n);return r.length===0&&!n&&(r="."),r.length>0&&e.codePointAt(e.length-1)===47&&(r+="/"),n?"/"+r:r}function BT(e,n){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}}n&&(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 so(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const DT={cwd:wT};function wT(){return"/"}function Nd(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function FT(e){if(typeof e=="string")e=new URL(e);else if(!Nd(e)){const n=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw n.code="ERR_INVALID_ARG_TYPE",n}if(e.protocol!=="file:"){const n=new TypeError("The URL must be of scheme file");throw n.code="ERR_INVALID_URL_SCHEME",n}return ST(e)}function ST(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 n=e.pathname;let r=-1;for(;++r<n.length;)if(n.codePointAt(r)===37&&n.codePointAt(r+1)===50){const i=n.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(n)}const Lx=["history","path","basename","stem","extname","dirname"];class TE{constructor(n){let r;n?Nd(n)?r={path:n}:typeof n=="string"||NT(n)?r={value:n}:r=n:r={},this.cwd="cwd"in r?"":DT.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let i=-1;for(;++i<Lx.length;){const o=Lx[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)Lx.includes(l)||(this[l]=r[l])}get basename(){return typeof this.path=="string"?Hr.basename(this.path):void 0}set basename(n){Ix(n,"basename"),Px(n,"basename"),this.path=Hr.join(this.dirname||"",n)}get dirname(){return typeof this.path=="string"?Hr.dirname(this.path):void 0}set dirname(n){o2(this.basename,"dirname"),this.path=Hr.join(n||"",this.basename)}get extname(){return typeof this.path=="string"?Hr.extname(this.path):void 0}set extname(n){if(Px(n,"extname"),o2(this.dirname,"extname"),n){if(n.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(n.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Hr.join(this.dirname,this.stem+(n||""))}get path(){return this.history[this.history.length-1]}set path(n){Nd(n)&&(n=FT(n)),Ix(n,"path"),this.path!==n&&this.history.push(n)}get stem(){return typeof this.path=="string"?Hr.basename(this.path,this.extname):void 0}set stem(n){Ix(n,"stem"),Px(n,"stem"),this.path=Hr.join(this.dirname||"",n+(this.extname||""))}fail(n,r,i){const l=this.message(n,r,i);throw l.fatal=!0,l}info(n,r,i){const l=this.message(n,r,i);return l.fatal=void 0,l}message(n,r,i){const l=new Rn(n,r,i);return this.path&&(l.name=this.path+":"+l.name,l.file=this.path),l.fatal=!1,this.messages.push(l),l}toString(n){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(n||void 0).decode(this.value)}}function Px(e,n){if(e&&e.includes(Hr.sep))throw new Error("`"+n+"` cannot be a path: did not expect `"+Hr.sep+"`")}function Ix(e,n){if(!e)throw new Error("`"+n+"` cannot be empty")}function o2(e,n){if(!e)throw new Error("Setting `"+n+"` requires `path` to be set too")}function NT(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const _T=(function(e){const i=this.constructor.prototype,l=i[e],o=function(){return l.apply(o,arguments)};return Object.setPrototypeOf(o,i),o}),MT={}.hasOwnProperty;class Mf extends _T{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=ET()}copy(){const n=new Mf;let r=-1;for(;++r<this.attachers.length;){const i=this.attachers[r];n.use(...i)}return n.data(zx(!0,{},this.namespace)),n}data(n,r){return typeof n=="string"?arguments.length===2?($x("data",this.frozen),this.namespace[n]=r,this):MT.call(this.namespace,n)&&this.namespace[n]||void 0:n?($x("data",this.frozen),this.namespace=n,this):this.namespace}freeze(){if(this.frozen)return this;const n=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(n,...i);typeof l=="function"&&this.transformers.use(l)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(n){this.freeze();const r=T0(n),i=this.parser||this.Parser;return Ux("parse",i),i(String(r),r)}process(n,r){const i=this;return this.freeze(),Ux("process",this.parser||this.Parser),Hx("process",this.compiler||this.Compiler),r?l(void 0,r):new Promise(l);function l(o,u){const d=T0(n),f=i.parse(d);i.run(f,d,function(g,p,y){if(g||!p||!y)return h(g);const b=p,C=i.stringify(b,y);RT(C)?y.value=C:y.result=C,h(g,y)});function h(g,p){g||!p?u(g):o?o(p):r(void 0,p)}}}processSync(n){let r=!1,i;return this.freeze(),Ux("processSync",this.parser||this.Parser),Hx("processSync",this.compiler||this.Compiler),this.process(n,l),u2("processSync","process",r),i;function l(o,u){r=!0,s2(o),i=u}}run(n,r,i){c2(n),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=T0(r);l.run(n,f,h);function h(g,p,y){const b=p||n;g?d(g):u?u(b):i(void 0,b,y)}}}runSync(n,r){let i=!1,l;return this.run(n,r,o),u2("runSync","run",i),l;function o(u,d){s2(u),l=d,i=!0}}stringify(n,r){this.freeze();const i=T0(r),l=this.compiler||this.Compiler;return Hx("stringify",l),c2(n),l(n,i)}use(n,...r){const i=this.attachers,l=this.namespace;if($x("use",this.frozen),n!=null)if(typeof n=="function")f(n,r);else if(typeof n=="object")Array.isArray(n)?d(n):u(n);else throw new TypeError("Expected usable value, not `"+n+"`");return this;function o(h){if(typeof h=="function")f(h,[]);else if(typeof h=="object")if(Array.isArray(h)){const[g,...p]=h;f(g,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=zx(!0,l.settings,h.settings))}function d(h){let g=-1;if(h!=null)if(Array.isArray(h))for(;++g<h.length;){const p=h[g];o(p)}else throw new TypeError("Expected a list of plugins, not `"+h+"`")}function f(h,g){let p=-1,y=-1;for(;++p<i.length;)if(i[p][0]===h){y=p;break}if(y===-1)i.push([h,...g]);else if(g.length>0){let[b,...C]=g;const v=i[y][1];Sd(v)&&Sd(b)&&(b=zx(!0,v,b)),i[y]=[h,b,...C]}}}}const jT=new Mf().freeze();function Ux(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function Hx(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function $x(e,n){if(n)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function c2(e){if(!Sd(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function u2(e,n,r){if(!r)throw new Error("`"+e+"` finished async. Use `"+n+"` instead")}function T0(e){return TT(e)?e:new TE(e)}function TT(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function RT(e){return typeof e=="string"||OT(e)}function OT(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const zT="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",x2=[],d2={allowDangerousHtml:!0},LT=/^(https?|ircs?|mailto|xmpp)$/i,PT=[{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 IT(e){const n=UT(e),r=HT(e);return $T(n.runSync(n.parse(r),r),e)}function UT(e){const n=e.rehypePlugins||x2,r=e.remarkPlugins||x2,i=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...d2}:d2;return jT().use(Cj).use(r).use(pT,i).use(n)}function HT(e){const n=e.children||"",r=new TE;return typeof n=="string"&&(r.value=n),r}function $T(e,n){const r=n.allowedElements,i=n.allowElement,l=n.components,o=n.disallowedElements,u=n.skipHtml,d=n.unwrapDisallowed,f=n.urlTransform||qT;for(const g of PT)Object.hasOwn(n,g.from)&&(""+g.from+(g.to?"use `"+g.to+"` instead":"remove it")+zT+g.id,void 0);return _f(e,h),a_(e,{Fragment:x.Fragment,components:l,ignoreInvalidStyle:!0,jsx:x.jsx,jsxs:x.jsxs,passKeys:!0,passNode:!0});function h(g,p,y){if(g.type==="raw"&&y&&typeof p=="number")return u?y.children.splice(p,1):y.children[p]={type:"text",value:g.value},p;if(g.type==="element"){let b;for(b in jx)if(Object.hasOwn(jx,b)&&Object.hasOwn(g.properties,b)){const C=g.properties[b],v=jx[b];(v===null||v.includes(g.tagName))&&(g.properties[b]=f(String(C||""),b,g))}}if(g.type==="element"){let b=r?!r.includes(g.tagName):o?o.includes(g.tagName):!1;if(!b&&i&&typeof p=="number"&&(b=!i(g,p,y)),b&&y&&typeof p=="number")return d&&g.children?y.children.splice(p,1,...g.children):y.children.splice(p,1),p}}}function qT(e){const n=e.indexOf(":"),r=e.indexOf("?"),i=e.indexOf("#"),l=e.indexOf("/");return n===-1||l!==-1&&n>l||r!==-1&&n>r||i!==-1&&n>i||LT.test(e.slice(0,n))?e:""}function GT(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function RE(e,n,r){const l=fc((r||{}).ignore||[]),o=VT(n);let u=-1;for(;++u<o.length;)jE(e,"text",d);function d(h,g){let p=-1,y;for(;++p<g.length;){const b=g[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,g)}function f(h,g){const p=g[g.length-1],y=o[u][0],b=o[u][1];let C=0;const A=p.children.indexOf(h);let B=!1,j=[];y.lastIndex=0;let S=y.exec(h.value);for(;S;){const N=S.index,T={index:S.index,input:S.input,stack:[...g,h]};let F=b(...S,T);if(typeof F=="string"&&(F=F.length>0?{type:"text",value:F}:void 0),F===!1?y.lastIndex=N+1:(C!==N&&j.push({type:"text",value:h.value.slice(C,N)}),Array.isArray(F)?j.push(...F):F&&j.push(F),C=N+S[0].length,B=!0),!y.global)break;S=y.exec(h.value)}return B?(C<h.value.length&&j.push({type:"text",value:h.value.slice(C)}),p.children.splice(A,1,...j)):j=[h],A+j.length}}function VT(e){const n=[];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];n.push([QT(l[0]),YT(l[1])])}return n}function QT(e){return typeof e=="string"?new RegExp(GT(e),"g"):e}function YT(e){return typeof e=="function"?e:function(){return e}}function KT(e){RE(e,[/\r?\n|\r/g,XT])}function XT(){return{type:"break"}}function ZT(){return function(e){KT(e)}}function f2(e,n){const r=String(e);if(typeof n!="string")throw new TypeError("Expected character");let i=0,l=r.indexOf(n);for(;l!==-1;)i++,l=r.indexOf(n,l+n.length);return i}const qx="phrasing",Gx=["autolink","link","image","label"];function WT(){return{transforms:[iR],enter:{literalAutolink:eR,literalAutolinkEmail:Vx,literalAutolinkHttp:Vx,literalAutolinkWww:Vx},exit:{literalAutolink:aR,literalAutolinkEmail:rR,literalAutolinkHttp:tR,literalAutolinkWww:nR}}}function JT(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:qx,notInConstruct:Gx},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:qx,notInConstruct:Gx},{character:":",before:"[ps]",after:"\\/",inConstruct:qx,notInConstruct:Gx}]}}function eR(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function Vx(e){this.config.enter.autolinkProtocol.call(this,e)}function tR(e){this.config.exit.autolinkProtocol.call(this,e)}function nR(e){this.config.exit.data.call(this,e);const n=this.stack[this.stack.length-1];n.type,n.url="http://"+this.sliceSerialize(e)}function rR(e){this.config.exit.autolinkEmail.call(this,e)}function aR(e){this.exit(e)}function iR(e){RE(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,sR],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),lR]],{ignore:["link","linkReference"]})}function sR(e,n,r,i,l){let o="";if(!OE(l)||(/^w/i.test(n)&&(r=n+r,n="",o="http://"),!oR(r)))return!1;const u=cR(r+i);if(!u[0])return!1;const d={type:"link",title:null,url:o+n+u[0],children:[{type:"text",value:n+u[0]}]};return u[1]?[d,{type:"text",value:u[1]}]:d}function lR(e,n,r,i){return!OE(i,!0)||/[-\d_]$/.test(r)?!1:{type:"link",title:null,url:"mailto:"+n+"@"+r,children:[{type:"text",value:n+"@"+r}]}}function oR(e){const n=e.split(".");return!(n.length<2||n[n.length-1]&&(/_/.test(n[n.length-1])||!/[a-zA-Z\d]/.test(n[n.length-1]))||n[n.length-2]&&(/_/.test(n[n.length-2])||!/[a-zA-Z\d]/.test(n[n.length-2])))}function cR(e){const n=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!n)return[e,void 0];e=e.slice(0,n.index);let r=n[0],i=r.indexOf(")");const l=f2(e,"(");let o=f2(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 OE(e,n){const r=e.input.charCodeAt(e.index-1);return(e.index===0||Si(r)||uc(r))&&(!n||r!==47)}zE.peek=ER;function uR(){this.buffer()}function xR(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function dR(){this.buffer()}function fR(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function hR(e){const n=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=Rr(this.sliceSerialize(e)).toLowerCase(),r.label=n}function pR(e){this.exit(e)}function mR(e){const n=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=Rr(this.sliceSerialize(e)).toLowerCase(),r.label=n}function gR(e){this.exit(e)}function ER(){return"["}function zE(e,n,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 yR(){return{enter:{gfmFootnoteCallString:uR,gfmFootnoteCall:xR,gfmFootnoteDefinitionLabelString:dR,gfmFootnoteDefinition:fR},exit:{gfmFootnoteCallString:hR,gfmFootnoteCall:pR,gfmFootnoteDefinitionLabelString:mR,gfmFootnoteDefinition:gR}}}function bR(e){let n=!1;return e&&e.firstLineBlank&&(n=!0),{handlers:{footnoteDefinition:r,footnoteReference:zE},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"),g=o.enter("label");return f+=d.move(o.safe(o.associationId(i),{before:f,after:"]"})),g(),f+=d.move("]:"),i.children&&i.children.length>0&&(d.shift(4),f+=d.move((n?`
|
|
31
|
+
`:" ")+o.indentLines(o.containerFlow(i,d.current()),n?LE:CR))),h(),f}}function CR(e,n,r){return n===0?e:LE(e,n,r)}function LE(e,n,r){return(r?"":" ")+e}const vR=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];PE.peek=wR;function AR(){return{canContainEols:["delete"],enter:{strikethrough:BR},exit:{strikethrough:DR}}}function kR(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:vR}],handlers:{delete:PE}}}function BR(e){this.enter({type:"delete",children:[]},e)}function DR(e){this.exit(e)}function PE(e,n,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 wR(){return"~"}function FR(e){return e.length}function SR(e,n){const r=n||{},i=(r.align||[]).concat(),l=r.stringLength||FR,o=[],u=[],d=[],f=[];let h=0,g=-1;for(;++g<e.length;){const v=[],A=[];let B=-1;for(e[g].length>h&&(h=e[g].length);++B<e[g].length;){const j=NR(e[g][B]);if(r.alignDelimiters!==!1){const S=l(j);A[B]=S,(f[B]===void 0||S>f[B])&&(f[B]=S)}v.push(j)}u[g]=v,d[g]=A}let p=-1;if(typeof i=="object"&&"length"in i)for(;++p<h;)o[p]=h2(i[p]);else{const v=h2(i);for(;++p<h;)o[p]=v}p=-1;const y=[],b=[];for(;++p<h;){const v=o[p];let A="",B="";v===99?(A=":",B=":"):v===108?A=":":v===114&&(B=":");let j=r.alignDelimiters===!1?1:Math.max(1,f[p]-A.length-B.length);const S=A+"-".repeat(j)+B;r.alignDelimiters!==!1&&(j=A.length+j+B.length,j>f[p]&&(f[p]=j),b[p]=j),y[p]=S}u.splice(1,0,y),d.splice(1,0,b),g=-1;const C=[];for(;++g<u.length;){const v=u[g],A=d[g];p=-1;const B=[];for(;++p<h;){const j=v[p]||"";let S="",N="";if(r.alignDelimiters!==!1){const T=f[p]-(A[p]||0),F=o[p];F===114?S=" ".repeat(T):F===99?T%2?(S=" ".repeat(T/2+.5),N=" ".repeat(T/2-.5)):(S=" ".repeat(T/2),N=S):N=" ".repeat(T)}r.delimiterStart!==!1&&!p&&B.push("|"),r.padding!==!1&&!(r.alignDelimiters===!1&&j==="")&&(r.delimiterStart!==!1||p)&&B.push(" "),r.alignDelimiters!==!1&&B.push(S),B.push(j),r.alignDelimiters!==!1&&B.push(N),r.padding!==!1&&B.push(" "),(r.delimiterEnd!==!1||p!==h-1)&&B.push("|")}C.push(r.delimiterEnd===!1?B.join("").replace(/ +$/,""):B.join(""))}return C.join(`
|
|
32
|
+
`)}function NR(e){return e==null?"":String(e)}function h2(e){const n=typeof e=="string"?e.codePointAt(0):0;return n===67||n===99?99:n===76||n===108?108:n===82||n===114?114:0}function _R(e,n,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()),MR);return l(),u}function MR(e,n,r){return">"+(r?"":" ")+e}function jR(e,n){return p2(e,n.inConstruct,!0)&&!p2(e,n.notInConstruct,!1)}function p2(e,n,r){if(typeof n=="string"&&(n=[n]),!n||n.length===0)return r;let i=-1;for(;++i<n.length;)if(e.includes(n[i]))return!0;return!1}function m2(e,n,r,i){let l=-1;for(;++l<r.unsafe.length;)if(r.unsafe[l].character===`
|
|
33
|
+
`&&jR(r.stack,r.unsafe[l]))return/[ \t]/.test(i.before)?"":" ";return`\\
|
|
34
|
+
`}function TR(e,n){const r=String(e);let i=r.indexOf(n),l=i,o=0,u=0;if(typeof n!="string")throw new TypeError("Expected substring");for(;i!==-1;)i===l?++o>u&&(u=o):o=1,l=i+n.length,i=r.indexOf(n,l);return u}function RR(e,n){return!!(n.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function OR(e){const n=e.options.fence||"`";if(n!=="`"&&n!=="~")throw new Error("Cannot serialize code with `"+n+"` for `options.fence`, expected `` ` `` or `~`");return n}function zR(e,n,r,i){const l=OR(r),o=e.value||"",u=l==="`"?"GraveAccent":"Tilde";if(RR(e,r)){const p=r.enter("codeIndented"),y=r.indentLines(o,LR);return p(),y}const d=r.createTracker(i),f=l.repeat(Math.max(TR(o,l)+1,3)),h=r.enter("codeFenced");let g=d.move(f);if(e.lang){const p=r.enter(`codeFencedLang${u}`);g+=d.move(r.safe(e.lang,{before:g,after:" ",encode:["`"],...d.current()})),p()}if(e.lang&&e.meta){const p=r.enter(`codeFencedMeta${u}`);g+=d.move(" "),g+=d.move(r.safe(e.meta,{before:g,after:`
|
|
35
|
+
`,encode:["`"],...d.current()})),p()}return g+=d.move(`
|
|
36
|
+
`),o&&(g+=d.move(o+`
|
|
37
|
+
`)),g+=d.move(f),h(),g}function LR(e,n,r){return(r?"":" ")+e}function jf(e){const n=e.options.quote||'"';if(n!=='"'&&n!=="'")throw new Error("Cannot serialize title with `"+n+"` for `options.quote`, expected `\"`, or `'`");return n}function PR(e,n,r,i){const l=jf(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?" ":`
|
|
38
|
+
`,...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 IR(e){const n=e.options.emphasis||"*";if(n!=="*"&&n!=="_")throw new Error("Cannot serialize emphasis with `"+n+"` for `options.emphasis`, expected `*`, or `_`");return n}function Kl(e){return"&#x"+e.toString(16).toUpperCase()+";"}function ec(e,n,r){const i=vs(e),l=vs(n);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}}IE.peek=UR;function IE(e,n,r,i){const l=IR(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),g=ec(i.before.charCodeAt(i.before.length-1),h,l);g.inside&&(f=Kl(h)+f.slice(1));const p=f.charCodeAt(f.length-1),y=ec(i.after.charCodeAt(0),p,l);y.inside&&(f=f.slice(0,-1)+Kl(p));const b=u.move(l);return o(),r.attentionEncodeSurroundingInfo={after:y.outside,before:g.outside},d+f+b}function UR(e,n,r){return r.options.emphasis||"*"}function HR(e,n){let r=!1;return _f(e,function(i){if("value"in i&&/\r?\n|\r/.test(i.value)||i.type==="break")return r=!0,wd}),!!((!e.depth||e.depth<3)&&kf(e)&&(n.options.setext||r))}function $R(e,n,r,i){const l=Math.max(Math.min(6,e.depth||1),1),o=r.createTracker(i);if(HR(e,r)){const g=r.enter("headingSetext"),p=r.enter("phrasing"),y=r.containerPhrasing(e,{...o.current(),before:`
|
|
39
|
+
`,after:`
|
|
40
|
+
`});return p(),g(),y+`
|
|
41
|
+
`+(l===1?"=":"-").repeat(y.length-(Math.max(y.lastIndexOf("\r"),y.lastIndexOf(`
|
|
42
|
+
`))+1))}const u="#".repeat(l),d=r.enter("headingAtx"),f=r.enter("phrasing");o.move(u+" ");let h=r.containerPhrasing(e,{before:"# ",after:`
|
|
43
|
+
`,...o.current()});return/^[\t ]/.test(h)&&(h=Kl(h.charCodeAt(0))+h.slice(1)),h=h?u+" "+h:u,r.options.closeAtx&&(h+=" "+u),f(),d(),h}UE.peek=qR;function UE(e){return e.value||""}function qR(){return"<"}HE.peek=GR;function HE(e,n,r,i){const l=jf(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 GR(){return"!"}$E.peek=VR;function $E(e,n,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 g=r.stack;r.stack=[],u=r.enter("reference");const p=r.safe(r.associationId(e),{before:f,after:"]",...d.current()});return u(),r.stack=g,o(),l==="full"||!h||h!==p?f+=d.move(p+"]"):l==="shortcut"?f=f.slice(0,-1):f+=d.move("]"),f}function VR(){return"!"}qE.peek=QR;function qE(e,n,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 QR(){return"`"}function GE(e,n){const r=kf(e);return!!(!n.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))}VE.peek=YR;function VE(e,n,r,i){const l=jf(r),o=l==='"'?"Quote":"Apostrophe",u=r.createTracker(i);let d,f;if(GE(e,r)){const g=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=g,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 YR(e,n,r){return GE(e,r)?"<":"["}QE.peek=KR;function QE(e,n,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 g=r.stack;r.stack=[],u=r.enter("reference");const p=r.safe(r.associationId(e),{before:f,after:"]",...d.current()});return u(),r.stack=g,o(),l==="full"||!h||h!==p?f+=d.move(p+"]"):l==="shortcut"?f=f.slice(0,-1):f+=d.move("]"),f}function KR(){return"["}function Tf(e){const n=e.options.bullet||"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bullet`, expected `*`, `+`, or `-`");return n}function XR(e){const n=Tf(e),r=e.options.bulletOther;if(!r)return n==="*"?"-":"*";if(r!=="*"&&r!=="+"&&r!=="-")throw new Error("Cannot serialize items with `"+r+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(r===n)throw new Error("Expected `bullet` (`"+n+"`) and `bulletOther` (`"+r+"`) to be different");return r}function ZR(e){const n=e.options.bulletOrdered||".";if(n!=="."&&n!==")")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOrdered`, expected `.` or `)`");return n}function YE(e){const n=e.options.rule||"*";if(n!=="*"&&n!=="-"&&n!=="_")throw new Error("Cannot serialize rules with `"+n+"` for `options.rule`, expected `*`, `-`, or `_`");return n}function WR(e,n,r,i){const l=r.enter("list"),o=r.bulletCurrent;let u=e.ordered?ZR(r):Tf(r);const d=e.ordered?u==="."?")":".":XR(r);let f=n&&r.bulletLastUsed?u===r.bulletLastUsed:!1;if(!e.ordered){const g=e.children?e.children[0]:void 0;if((u==="*"||u==="-")&&g&&(!g.children||!g.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&&g){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 JR(e){const n=e.options.listItemIndent||"one";if(n!=="tab"&&n!=="one"&&n!=="mixed")throw new Error("Cannot serialize items with `"+n+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return n}function eO(e,n,r,i){const l=JR(r);let o=r.bulletCurrent||Tf(r);n&&n.type==="list"&&n.ordered&&(o=(typeof n.start=="number"&&n.start>-1?n.start:1)+(r.options.incrementListMarker===!1?0:n.children.indexOf(e))+o);let u=o.length+1;(l==="tab"||l==="mixed"&&(n&&n.type==="list"&&n.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()),g);return f(),h;function g(p,y,b){return y?(b?"":" ".repeat(u))+p:(b?o:o+" ".repeat(u-o.length))+p}}function tO(e,n,r,i){const l=r.enter("paragraph"),o=r.enter("phrasing"),u=r.containerPhrasing(e,i);return o(),l(),u}const nO=fc(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function rO(e,n,r,i){return(e.children.some(function(u){return nO(u)})?r.containerPhrasing:r.containerFlow).call(r,e,i)}function aO(e){const n=e.options.strong||"*";if(n!=="*"&&n!=="_")throw new Error("Cannot serialize strong with `"+n+"` for `options.strong`, expected `*`, or `_`");return n}KE.peek=iO;function KE(e,n,r,i){const l=aO(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),g=ec(i.before.charCodeAt(i.before.length-1),h,l);g.inside&&(f=Kl(h)+f.slice(1));const p=f.charCodeAt(f.length-1),y=ec(i.after.charCodeAt(0),p,l);y.inside&&(f=f.slice(0,-1)+Kl(p));const b=u.move(l+l);return o(),r.attentionEncodeSurroundingInfo={after:y.outside,before:g.outside},d+f+b}function iO(e,n,r){return r.options.strong||"*"}function sO(e,n,r,i){return r.safe(e.value,i)}function lO(e){const n=e.options.ruleRepetition||3;if(n<3)throw new Error("Cannot serialize rules with repetition `"+n+"` for `options.ruleRepetition`, expected `3` or more");return n}function oO(e,n,r){const i=(YE(r)+(r.options.ruleSpaces?" ":"")).repeat(lO(r));return r.options.ruleSpaces?i.slice(0,-1):i}const XE={blockquote:_R,break:m2,code:zR,definition:PR,emphasis:IE,hardBreak:m2,heading:$R,html:UE,image:HE,imageReference:$E,inlineCode:qE,link:VE,linkReference:QE,list:WR,listItem:eO,paragraph:tO,root:rO,strong:KE,text:sO,thematicBreak:oO};function cO(){return{enter:{table:uO,tableData:g2,tableHeader:g2,tableRow:dO},exit:{codeText:fO,table:xO,tableData:Qx,tableHeader:Qx,tableRow:Qx}}}function uO(e){const n=e._align;this.enter({type:"table",align:n.map(function(r){return r==="none"?null:r}),children:[]},e),this.data.inTable=!0}function xO(e){this.exit(e),this.data.inTable=void 0}function dO(e){this.enter({type:"tableRow",children:[]},e)}function Qx(e){this.exit(e)}function g2(e){this.enter({type:"tableCell",children:[]},e)}function fO(e){let n=this.resume();this.data.inTable&&(n=n.replace(/\\([\\|])/g,hO));const r=this.stack[this.stack.length-1];r.type,r.value=n,this.exit(e)}function hO(e,n){return n==="|"?n:e}function pO(e){const n=e||{},r=n.tableCellPadding,i=n.tablePipeAlign,l=n.stringLength,o=r?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
|
|
44
|
+
`,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,v,A){return h(g(b,v,A),b.align)}function d(b,C,v,A){const B=p(b,v,A),j=h([B]);return j.slice(0,j.indexOf(`
|
|
45
|
+
`))}function f(b,C,v,A){const B=v.enter("tableCell"),j=v.enter("phrasing"),S=v.containerPhrasing(b,{...A,before:o,after:o});return j(),B(),S}function h(b,C){return SR(b,{align:C,alignDelimiters:i,padding:r,stringLength:l})}function g(b,C,v){const A=b.children;let B=-1;const j=[],S=C.enter("table");for(;++B<A.length;)j[B]=p(A[B],C,v);return S(),j}function p(b,C,v){const A=b.children;let B=-1;const j=[],S=C.enter("tableRow");for(;++B<A.length;)j[B]=f(A[B],b,C,v);return S(),j}function y(b,C,v){let A=XE.inlineCode(b,C,v);return v.stack.includes("tableCell")&&(A=A.replace(/\|/g,"\\$&")),A}}function mO(){return{exit:{taskListCheckValueChecked:E2,taskListCheckValueUnchecked:E2,paragraph:EO}}}function gO(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:yO}}}function E2(e){const n=this.stack[this.stack.length-2];n.type,n.checked=e.type==="taskListCheckValueChecked"}function EO(e){const n=this.stack[this.stack.length-2];if(n&&n.type==="listItem"&&typeof n.checked=="boolean"){const r=this.stack[this.stack.length-1];r.type;const i=r.children[0];if(i&&i.type==="text"){const l=n.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 yO(e,n,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=XE.listItem(e,n,r,{...i,...d.current()});return o&&(f=f.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,h)),f;function h(g){return g+u}}function bO(){return[WT(),yR(),AR(),cO(),mO()]}function CO(e){return{extensions:[JT(),bR(e),kR(),pO(e),gO()]}}const vO={tokenize:FO,partial:!0},ZE={tokenize:SO,partial:!0},WE={tokenize:NO,partial:!0},JE={tokenize:_O,partial:!0},AO={tokenize:MO,partial:!0},e5={name:"wwwAutolink",tokenize:DO,previous:n5},t5={name:"protocolAutolink",tokenize:wO,previous:r5},ya={name:"emailAutolink",tokenize:BO,previous:a5},Vr={};function kO(){return{text:Vr}}let vi=48;for(;vi<123;)Vr[vi]=ya,vi++,vi===58?vi=65:vi===91&&(vi=97);Vr[43]=ya;Vr[45]=ya;Vr[46]=ya;Vr[95]=ya;Vr[72]=[ya,t5];Vr[104]=[ya,t5];Vr[87]=[ya,e5];Vr[119]=[ya,e5];function BO(e,n,r){const i=this;let l,o;return u;function u(p){return!_d(p)||!a5.call(i,i.previous)||Rf(i.events)?r(p):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),d(p))}function d(p){return _d(p)?(e.consume(p),d):p===64?(e.consume(p),f):r(p)}function f(p){return p===46?e.check(AO,g,h)(p):p===45||p===95||jn(p)?(o=!0,e.consume(p),f):g(p)}function h(p){return e.consume(p),l=!0,f}function g(p){return o&&l&&Ln(i.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),n(p)):r(p)}}function DO(e,n,r){const i=this;return l;function l(u){return u!==87&&u!==119||!n5.call(i,i.previous)||Rf(i.events)?r(u):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(vO,e.attempt(ZE,e.attempt(WE,o),r),r)(u))}function o(u){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),n(u)}}function wO(e,n,r){const i=this;let l="",o=!1;return u;function u(p){return(p===72||p===104)&&r5.call(i,i.previous)&&!Rf(i.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),l+=String.fromCodePoint(p),e.consume(p),d):r(p)}function d(p){if(Ln(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||Z0(p)||Ut(p)||Si(p)||uc(p)?r(p):e.attempt(ZE,e.attempt(WE,g),r)(p)}function g(p){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),n(p)}}function FO(e,n,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):n(u)}}function SO(e,n,r){let i,l,o;return u;function u(h){return h===46||h===95?e.check(JE,f,d)(h):h===null||Ut(h)||Si(h)||h!==45&&uc(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):n(h)}}function NO(e,n){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(JE,n,o)(u):u===null||Ut(u)||Si(u)?n(u):(e.consume(u),l)}function o(u){return u===41&&i++,e.consume(u),l}}function _O(e,n,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||Ut(d)||Si(d)?n(d):r(d)}function l(d){return d===null||d===40||d===91||Ut(d)||Si(d)?n(d):i(d)}function o(d){return Ln(d)?u(d):r(d)}function u(d){return d===59?(e.consume(d),i):Ln(d)?(e.consume(d),u):r(d)}}function MO(e,n,r){return i;function i(o){return e.consume(o),l}function l(o){return jn(o)?r(o):n(o)}}function n5(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||Ut(e)}function r5(e){return!Ln(e)}function a5(e){return!(e===47||_d(e))}function _d(e){return e===43||e===45||e===46||e===95||jn(e)}function Rf(e){let n=e.length,r=!1;for(;n--;){const i=e[n][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 jO={tokenize:UO,partial:!0};function TO(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:LO,continuation:{tokenize:PO},exit:IO}},text:{91:{name:"gfmFootnoteCall",tokenize:zO},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:RO,resolveTo:OO}}}}function RO(e,n,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=Rr(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"),n(f))}}function OO(e,n){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,n],e[r+3],e[r+4],["enter",l,n],["exit",l,n],["enter",o,n],["enter",u,n],["exit",u,n],["exit",o,n],e[e.length-2],e[e.length-1],["exit",i,n]];return e.splice(r,e.length-r+1,...d),e}function zO(e,n,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||Ut(p))return r(p);if(p===93){e.exit("chunkString");const y=e.exit("gfmFootnoteCallString");return l.includes(Rr(i.sliceSerialize(y)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(p),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),n):r(p)}return Ut(p)||(u=!0),o++,e.consume(p),p===92?g:h}function g(p){return p===91||p===92||p===93?(e.consume(p),o++,h):h(p)}}function LO(e,n,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",g):r(C)}function g(C){if(u>999||C===93&&!d||C===null||C===91||Ut(C))return r(C);if(C===93){e.exit("chunkString");const v=e.exit("gfmFootnoteDefinitionLabelString");return o=Rr(i.sliceSerialize(v)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(C),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),y}return Ut(C)||(d=!0),u++,e.consume(C),C===92?p:g}function p(C){return C===91||C===92||C===93?(e.consume(C),u++,g):g(C)}function y(C){return C===58?(e.enter("definitionMarker"),e.consume(C),e.exit("definitionMarker"),l.includes(o)||l.push(o),Et(e,b,"gfmFootnoteDefinitionWhitespace")):r(C)}function b(C){return n(C)}}function PO(e,n,r){return e.check(io,n,e.attempt(jO,n,r))}function IO(e){e.exit("gfmFootnoteDefinition")}function UO(e,n,r){const i=this;return Et(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?n(o):r(o)}}function HO(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 g={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",g,d],["enter",u[h][1],d],["exit",u[h][1],d],["enter",p,d]],b=d.parser.constructs.insideSpan.null;b&&cr(y,y.length,0,xc(b,u.slice(h+1,f),d)),cr(y,y.length,0,[["exit",p,d],["enter",u[f][1],d],["exit",u[f][1],d],["exit",g,d]]),cr(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,g=this.events;let p=0;return y;function y(C){return h===126&&g[g.length-1][1].type!=="characterEscape"?f(C):(u.enter("strikethroughSequenceTemporary"),b(C))}function b(C){const v=vs(h);if(C===126)return p>1?f(C):(u.consume(C),p++,b);if(p<2&&!r)return f(C);const A=u.exit("strikethroughSequenceTemporary"),B=vs(C);return A._open=!B||B===2&&!!v,A._close=!v||v===2&&!!B,d(C)}}}class $O{constructor(){this.map=[]}add(n,r,i){qO(this,n,r,i)}consume(n){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(n.slice(this.map[r][0]+this.map[r][1]),this.map[r][2]),n.length=this.map[r][0];i.push(n.slice()),n.length=0;let l=i.pop();for(;l;){for(const o of l)n.push(o);l=i.pop()}this.map.length=0}}function qO(e,n,r,i){let l=0;if(!(r===0&&i.length===0)){for(;l<e.map.length;){if(e.map[l][0]===n){e.map[l][1]+=r,e.map[l][2].push(...i);return}l+=1}e.map.push([n,r,i])}}function GO(e,n){let r=!1;const i=[];for(;n<e.length;){const l=e[n];if(r){if(l[0]==="enter")l[1].type==="tableContent"&&i.push(e[n+1][1].type==="tableDelimiterMarker"?"left":"none");else if(l[1].type==="tableContent"){if(e[n-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);n+=1}return i}function VO(){return{flow:{null:{name:"table",tokenize:QO,resolveAll:YO}}}}function QO(e,n,r){const i=this;let l=0,o=0,u;return d;function d(O){let $=i.events.length-1;for(;$>-1;){const ee=i.events[$][1].type;if(ee==="lineEnding"||ee==="linePrefix")$--;else break}const Q=$>-1?i.events[$][1].type:null,le=Q==="tableHead"||Q==="tableRow"?F:f;return le===F&&i.parser.lazy[i.now().line]?r(O):le(O)}function f(O){return e.enter("tableHead"),e.enter("tableRow"),h(O)}function h(O){return O===124||(u=!0,o+=1),g(O)}function g(O){return O===null?r(O):He(O)?o>1?(o=0,i.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(O),e.exit("lineEnding"),b):r(O):ct(O)?Et(e,g,"whitespace")(O):(o+=1,u&&(u=!1,l+=1),O===124?(e.enter("tableCellDivider"),e.consume(O),e.exit("tableCellDivider"),u=!0,g):(e.enter("data"),p(O)))}function p(O){return O===null||O===124||Ut(O)?(e.exit("data"),g(O)):(e.consume(O),O===92?y:p)}function y(O){return O===92||O===124?(e.consume(O),p):p(O)}function b(O){return i.interrupt=!1,i.parser.lazy[i.now().line]?r(O):(e.enter("tableDelimiterRow"),u=!1,ct(O)?Et(e,C,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(O):C(O))}function C(O){return O===45||O===58?A(O):O===124?(u=!0,e.enter("tableCellDivider"),e.consume(O),e.exit("tableCellDivider"),v):T(O)}function v(O){return ct(O)?Et(e,A,"whitespace")(O):A(O)}function A(O){return O===58?(o+=1,u=!0,e.enter("tableDelimiterMarker"),e.consume(O),e.exit("tableDelimiterMarker"),B):O===45?(o+=1,B(O)):O===null||He(O)?N(O):T(O)}function B(O){return O===45?(e.enter("tableDelimiterFiller"),j(O)):T(O)}function j(O){return O===45?(e.consume(O),j):O===58?(u=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(O),e.exit("tableDelimiterMarker"),S):(e.exit("tableDelimiterFiller"),S(O))}function S(O){return ct(O)?Et(e,N,"whitespace")(O):N(O)}function N(O){return O===124?C(O):O===null||He(O)?!u||l!==o?T(O):(e.exit("tableDelimiterRow"),e.exit("tableHead"),n(O)):T(O)}function T(O){return r(O)}function F(O){return e.enter("tableRow"),R(O)}function R(O){return O===124?(e.enter("tableCellDivider"),e.consume(O),e.exit("tableCellDivider"),R):O===null||He(O)?(e.exit("tableRow"),n(O)):ct(O)?Et(e,R,"whitespace")(O):(e.enter("data"),L(O))}function L(O){return O===null||O===124||Ut(O)?(e.exit("data"),R(O)):(e.consume(O),O===92?I:L)}function I(O){return O===92||O===124?(e.consume(O),L):L(O)}}function YO(e,n){let r=-1,i=!0,l=0,o=[0,0,0,0],u=[0,0,0,0],d=!1,f=0,h,g,p;const y=new $O;for(;++r<e.length;){const b=e[r],C=b[1];b[0]==="enter"?C.type==="tableHead"?(d=!1,f!==0&&(y2(y,n,f,h,g),g=void 0,f=0),h={type:"table",start:Object.assign({},C.start),end:Object.assign({},C.end)},y.add(r,0,[["enter",h,n]])):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,g={type:"tableBody",start:Object.assign({},C.start),end:Object.assign({},C.end)},y.add(r,0,[["enter",g,n]])),l=C.type==="tableDelimiterRow"?2:g?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=R0(y,n,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=R0(y,n,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=R0(y,n,o,l,r,p)):u[1]!==0&&(p=R0(y,n,u,l,r,p)),l=0):l&&(C.type==="data"||C.type==="tableDelimiterMarker"||C.type==="tableDelimiterFiller")&&(u[3]=r)}for(f!==0&&y2(y,n,f,h,g),y.consume(n.events),r=-1;++r<n.events.length;){const b=n.events[r];b[0]==="enter"&&b[1].type==="table"&&(b[1]._align=GO(n.events,r))}return e}function R0(e,n,r,i,l,o){const u=i===1?"tableHeader":i===2?"tableDelimiter":"tableData",d="tableContent";r[0]!==0&&(o.end=Object.assign({},bs(n.events,r[0])),e.add(r[0],0,[["exit",o,n]]));const f=bs(n.events,r[1]);if(o={type:u,start:Object.assign({},f),end:Object.assign({},f)},e.add(r[1],0,[["enter",o,n]]),r[2]!==0){const h=bs(n.events,r[2]),g=bs(n.events,r[3]),p={type:d,start:Object.assign({},h),end:Object.assign({},g)};if(e.add(r[2],0,[["enter",p,n]]),i!==2){const y=n.events[r[2]],b=n.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,v=r[3]-r[2]-1;e.add(C,v,[])}}e.add(r[3]+1,0,[["exit",p,n]])}return l!==void 0&&(o.end=Object.assign({},bs(n.events,l)),e.add(l,0,[["exit",o,n]]),o=void 0),o}function y2(e,n,r,i,l){const o=[],u=bs(n.events,r);l&&(l.end=Object.assign({},u),o.push(["exit",l,n])),i.end=Object.assign({},u),o.push(["exit",i,n]),e.add(r+1,0,o)}function bs(e,n){const r=e[n],i=r[0]==="enter"?"start":"end";return r[1][i]}const KO={name:"tasklistCheck",tokenize:ZO};function XO(){return{text:{91:KO}}}function ZO(e,n,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 Ut(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 He(f)?n(f):ct(f)?e.check({tokenize:WO},n,r)(f):r(f)}}function WO(e,n,r){return Et(e,i,"whitespace");function i(l){return l===null?r(l):n(l)}}function JO(e){return fE([kO(),TO(),HO(e),VO(),XO()])}const ez={};function tz(e){const n=this,r=e||ez,i=n.data(),l=i.micromarkExtensions||(i.micromarkExtensions=[]),o=i.fromMarkdownExtensions||(i.fromMarkdownExtensions=[]),u=i.toMarkdownExtensions||(i.toMarkdownExtensions=[]);l.push(JO(r)),o.push(bO()),u.push(CO(r))}function i5({preview:e,lineRef:n}){const r=Qg(e.path),{text:i,tokens:l}=D.useMemo(()=>{const o=e.content.split(`
|
|
46
|
+
`),u=pN(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?n:void 0,className:pe("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(hf,{nodes:h}):o||" "})]},d)})}),x.jsx(s5,{preview:e})]})}function s5({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}function Of({title:e,subtitle:n,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}),n?x.jsx("p",{className:"truncate font-mono text-xs text-muted",children:n}):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(Cn,{size:18})})]})}const nz=[tz,ZT],l5="conductor-attachment.invalid";function rz(e){const n=PD(e);if(!n.length)return e;let r="",i=0;for(const l of n){const o=l.name.replace(/[\\`*_[\]<>]/g,"\\$&");r+=`${e.slice(i,l.start)}[${o}](https://${l5}/?path=${encodeURIComponent(l.path)})`,i=l.end}return r+e.slice(i)}function az(e){if(!e)return null;try{const n=new URL(e);return n.hostname===l5?n.searchParams.get("path"):null}catch{return null}}function o5(e){const[n,r]=D.useState(null),[i,l]=D.useState(null);return D.useEffect(()=>{if(r(null),l(null),!e)return;let o=!1;return Me.localImage(e).then(u=>{o||r(u)},u=>{o||l(u instanceof Error?u.message:"Image unavailable")}),()=>{o=!0}},[e]),{objectUrl:n,error:i}}function iz({src:e,alt:n,...r}){const i=Dg(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:[n||"Image"," unavailable: ",o]}):l?x.jsx("img",{src:l,alt:n??"",...r}):null:x.jsx("img",{src:e,alt:n??"",...r})}function c5(e){if(!e?.startsWith("/"))return null;const n=e.match(/:([1-9]\d*)(?::\d+)?$/);return rf(n?e.slice(0,-n[0].length):e)?e:null}function Md({href:e,children:n,onClick:r,...i}){const l=az(e),o=iS(l),u=Dg(e??null),d=o?.kind==="image"?o.reference:u,f=Bg(e??null),h=o?.kind==="source"?o.reference:c5(e)??f,g=d??h,[p,y]=D.useState(!1),b=d&&p?x.jsx(sz,{reference:d,onClose:()=>y(!1)}):h&&p?x.jsx(u5,{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:!g,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(ic,{size:12,className:"shrink-0"}),x.jsx("span",{className:"truncate",children:n})]}),b]}):x.jsxs(x.Fragment,{children:[x.jsx("a",{href:e,...i,title:d?`Open image ${d}`:i.title,onClick:C=>{r?.(C),!(!g||C.defaultPrevented||C.button!==0||C.metaKey||C.ctrlKey||C.shiftKey||C.altKey)&&(C.preventDefault(),y(!0))},children:n}),b]}):x.jsx("span",{title:i.title,children:n})}function sz({reference:e,onClose:n}){const{objectUrl:r,error:i}=o5(e);return D.useEffect(()=>{const l=o=>{o.key==="Escape"&&n()};return window.addEventListener("keydown",l),()=>window.removeEventListener("keydown",l)},[n]),Gr.createPortal(x.jsxs(x.Fragment,{children:[x.jsx("div",{className:"fixed inset-0 z-[60] bg-black/60",onClick:n,"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(Of,{title:"Image",subtitle:e,onClose:n,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 u5({reference:e,onClose:n}){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),Me.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"&&n()};return window.addEventListener("keydown",d),()=>window.removeEventListener("keydown",d)},[n]),Gr.createPortal(x.jsxs(x.Fragment,{children:[x.jsx("div",{className:"fixed inset-0 z-[60] bg-black/60",onClick:n,"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(Of,{title:"Source",subtitle:r?.path??e,onClose:n,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?lz(r.path)?x.jsx(oz,{preview:r}):x.jsx(i5,{preview:r,lineRef:u}):null]})]})]}),document.body)}function lz(e){return e.toLowerCase().endsWith(".md")}function oz({preview:e}){return x.jsxs("div",{className:"p-4 text-sm leading-6 text-text",children:[x.jsx(Wa,{children:e.content}),x.jsx(s5,{preview:e})]})}function cz({className:e,children:n,node:r,...i}){const l=fN(e),o=xz(n),u=Bg(e?null:o);return u?x.jsx(uz,{reference:u,...i,children:n}):x.jsx("code",{className:e,...i,children:l&&o!==null?x.jsx(Xg,{text:o,language:l}):n})}function uz({reference:e,children:n,...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:n})}),i?x.jsx(u5,{reference:e,onClose:()=>l(!1)}):null]})}function xz(e){return typeof e=="string"?e:Array.isArray(e)&&e.every(n=>typeof n=="string")?e.join(""):null}function dz({node:e,children:n,...r}){const i=e?fz(e):"";return x.jsxs("div",{className:"relative",children:[x.jsx("pre",{...r,children:n}),i?x.jsx(jg,{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 fz(e){let n="";const r=i=>{for(const l of i)l.type==="text"?n+=l.value:l.type==="element"&&r(l.children)};return r(e.children),n.replace(/\n$/,"")}const hz={a:Md,code:cz,img:iz,pre:dz},Wa=D.memo(function({children:n}){return x.jsx("div",{className:"md",children:x.jsx(IT,{remarkPlugins:nz,components:hz,children:rz(n)})})});function zf({state:e,label:n,meta:r,actions:i=[],align:l="right",children:o,className:u,dataUserMessage:d,dataMessageState:f}){const h=e==="failed";return x.jsxs("div",{className:pe("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:pe("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:[n?x.jsx("div",{className:pe("mb-1 text-[10px] font-semibold uppercase tracking-wide",h?"text-del":"text-faint"),children:n}):null,o]}),h?x.jsxs("div",{className:pe("flex flex-wrap items-center gap-x-2 gap-y-1 px-1 text-[11px] text-del",l==="right"&&"justify-end"),children:[x.jsx(sc,{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(g=>x.jsx("button",{type:"button",onClick:g.onClick,className:pe("underline underline-offset-2",g.primary?"font-semibold text-del":"text-faint"),children:g.label},g.label))]}):x.jsxs("div",{className:pe("flex min-w-0 items-center gap-1 px-1 text-[11px] text-faint",l==="right"&&"justify-end"),children:[x.jsx(Tn,{size:11,className:"shrink-0 animate-spin"}),x.jsx("span",{className:"min-w-0 truncate",children:r??"Queued"}),i.map(g=>x.jsx("button",{type:"button",onClick:g.onClick,className:pe("ml-1 underline underline-offset-2",g.primary&&"font-semibold text-accent"),children:g.label},g.label))]})]})}const x5={queued:"Queued",opening:"Opening",configuring:"Configuring",sending:"Sending",running:"Running",returning:"Returning",returned:"Returned",failed:"Failed"};function pz(e,n,r){const i=n.flatMap(d=>{const f=r[d.id],h=f?.delegationId;return h?[{session:d,assignment:f,delegationId:h}]:[]}),l=new Map(i.map(d=>[d.delegationId,d])),o=new Set(e.map(d=>d.id)),u=e.map(d=>({key:`job:${d.id}`,order:d.createdAt,role:d.role,model:d.resolvedRole.model,agentType:d.resolvedRole.agentType,childSessionId:d.childSessionId??l.get(d.id)?.session.id,status:x5[d.status],state:d.status==="failed"?"failed":"busy"}));for(const{session:d,assignment:f,delegationId:h}of i){if(o.has(h))continue;const g=!!d.background_tasks.length,p=d.status==="working";u.push({key:`session:${d.id}`,order:f.assignedAt,role:f.role,model:d.model,agentType:d.agent_type,childSessionId:d.id,...p?{status:"Running",state:"busy"}:g?{status:"Waiting",state:"waiting"}:{}})}return u.sort((d,f)=>d.order-f.order||d.key.localeCompare(f.key))}function mz({jobs:e,sessions:n=[],roles:r={},activeSessionId:i,onSelectSession:l}){const o=pz(e,n,r);return o.length?x.jsx("nav",{"aria-label":"Delegated work",className:"flex shrink-0 items-center gap-1.5 overflow-x-auto border-b border-border-soft bg-bg px-3 py-2",children:o.map((u,d)=>{const f=u.state==="failed",h=!!u.childSessionId&&u.childSessionId===i,g=x.jsxs(x.Fragment,{children:[x.jsx(ro,{agentType:u.agentType,model:u.model,className:"size-3.5"}),x.jsx("span",{className:"max-w-24 truncate font-medium",children:u.role}),u.model?x.jsx("span",{className:"max-w-28 truncate text-faint",children:u.model}):null,u.status?x.jsxs("span",{className:pe("flex shrink-0 items-center gap-1",f?"text-del":"text-muted"),children:[u.state==="failed"?x.jsx(sc,{size:10}):u.state==="waiting"?x.jsx(Zd,{size:10}):x.jsx(Tn,{size:10,className:"animate-spin"}),u.status]}):null]}),p=u.childSessionId;return x.jsxs("div",{className:"flex shrink-0 items-center gap-1.5",children:[d?x.jsx(z7,{size:11,className:"shrink-0 text-faint"}):null,p?x.jsx("button",{type:"button",onClick:()=>l(p),className:pe("flex h-7 shrink-0 items-center gap-1.5 rounded-lg border border-border-soft px-2 text-[11px] active:bg-surface-2",h&&"border-accent/50 bg-surface-2",f&&"border-del/40"),children:g}):x.jsx("div",{className:pe("flex h-7 shrink-0 items-center gap-1.5 rounded-lg border border-border-soft px-2 text-[11px]",f&&"border-del/40"),children:g})]},u.key)})}):null}function gz(e){return x5[e]}function Ez({jobs:e,sessionId:n,onSelectSession:r,onDismiss:i,onOpenRoles:l}){if(!n)return null;const o=e.filter(u=>u.parentSessionId===n||u.childSessionId===n);return o.length?x.jsx(x.Fragment,{children:o.map(u=>{const d=u.parentSessionId===n,f=u.status==="failed",h=d?u.childSessionId:u.parentSessionId,g=[];return h&&g.push({label:d?"Open worker":"Open parent",onClick:()=>r(h)}),f&&(g.push({label:"Edit roles",onClick:l,primary:!0}),g.push({label:"Dismiss delegation",onClick:()=>i(u.id)})),x.jsx(zf,{state:f?"failed":"pending",align:"wide",label:`${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."}`:`${gz(u.status)}${u.attempts?` · attempt ${u.attempts+1}`:""}`,actions:g,dataMessageState:`delegation-${u.status}`,children:x.jsx(Wa,{children:u.prompt})},u.id)})}):null}const yz=1500,bz=400,d5=12,Cz=2,vz=d5+8,Az=2,kz=1.1,Bz=200,Dz=420,wz=.6,f5=()=>window.matchMedia("(prefers-reduced-motion: reduce)").matches,Yx=(e,n,r)=>Math.min(r,Math.max(n,e)),Fz=e=>e.scrollHeight-e.clientHeight-e.scrollTop<=Az?e.scrollTop+e.clientHeight:e.scrollTop+vz,Sz=(e,n)=>e.length===n.length&&e.every((r,i)=>r.top===n[i].top&&r.preview===n[i].preview);function Nz(e,n,r){const i=Yx(n,0,e.scrollHeight-e.clientHeight);if(f5())return e.scrollTop=i,r(),()=>{};const l=e.clientHeight*kz;Math.abs(i-e.scrollTop)>l&&(e.scrollTop=Yx(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=Yx(Math.abs(u)*wz,Bz,Dz),f=performance.now();let h=0,g=!1;const p=()=>{g||(g=!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 _z({scroller:e}){const[n,r]=D.useState([]),[i,l]=D.useState(0),[o,u]=D.useState(!1),[d,f]=D.useState(!1),h=D.useRef([]),g=D.useRef(!1),p=D.useRef(!1),y=D.useRef(0),b=D.useRef(0),C=D.useRef(0),v=D.useRef(()=>{}),A=D.useCallback(()=>{p.current||(clearTimeout(y.current),g.current=!1,u(!1))},[]),B=D.useCallback(()=>{g.current=!0,u(!0),clearTimeout(y.current),y.current=window.setTimeout(A,yz)},[A]),j=D.useCallback(()=>{const O=e.current;if(!O)return;const $=O.getBoundingClientRect().top-O.scrollTop,Q=Array.from(O.querySelectorAll("[data-user-msg]"),le=>({top:le.getBoundingClientRect().top-$,preview:le.dataset.userMsg??"",ts:le.dataset.msgTs??null,state:le.dataset.msgState??null,node:le}));h.current=Sz(h.current,Q)?h.current:Q,r(h.current),l(Fz(O))},[e]),S=D.useCallback(()=>{C.current||(C.current=requestAnimationFrame(()=>{C.current=0,j()}))},[j]);D.useEffect(()=>{const O=e.current;if(!O)return;const $=()=>{b.current=performance.now()},Q=()=>{!g.current&&performance.now()-b.current>bz||Y0()||(B(),S())},le=()=>{Y0()&&A()};O.addEventListener("touchmove",$,{passive:!0}),O.addEventListener("wheel",$,{passive:!0}),O.addEventListener("scroll",Q,{passive:!0}),document.addEventListener("selectionchange",le);const ee=()=>{g.current&&S()},Y=new ResizeObserver(ee);Y.observe(O);const P=new MutationObserver(ee);return P.observe(O,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["open"]}),()=>{O.removeEventListener("touchmove",$),O.removeEventListener("wheel",$),O.removeEventListener("scroll",Q),document.removeEventListener("selectionchange",le),Y.disconnect(),P.disconnect(),v.current(),C.current&&cancelAnimationFrame(C.current),clearTimeout(y.current)}},[e,B,A,S]);const N=O=>{const $=e.current,Q=h.current[O];$&&Q&&(v.current(),v.current=Nz($,Q.top-d5,()=>{f5()||Q.node.firstElementChild?.animate([{boxShadow:"0 0 0 2px var(--color-accent)"},{boxShadow:"0 0 0 2px transparent"}],{duration:700,easing:"ease-out"})}),B())},T=D.useCallback(()=>{p.current=!1,f(!1),B()},[B]);if(n.length<Cz)return null;let F=-1;for(let O=0;O<n.length;O++)n[O].top<=i&&(F=O);const R=F>0?F-1:null,L=F+1<n.length?F+1:null,I=o||d;return x.jsxs(x.Fragment,{children:[x.jsx("div",{className:pe("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",I?"translate-y-0 opacity-100":"translate-y-3 opacity-0"),children:x.jsxs("nav",{"aria-label":"Jump to your messages",onFocus:B,className:pe("flex h-12 items-stretch overflow-hidden rounded-full border border-border bg-surface-2 shadow-lg shadow-black/60",I?"pointer-events-auto":"pointer-events-none"),children:[x.jsx(b2,{dir:"up",onClick:()=>R!==null&&N(R),disabled:R===null}),x.jsxs("button",{type:"button",onClick:()=>{j(),p.current=!0,f(!0),B()},"aria-haspopup":"dialog","aria-expanded":d,"aria-label":`Your messages — ${n.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(B8,{size:16,className:"shrink-0"}),x.jsxs("span",{className:"font-mono text-[13px] tabular-nums",children:[x.jsx("span",{className:"text-text",children:F+1||"–"}),x.jsxs("span",{className:"text-muted",children:["/",n.length]})]})]}),x.jsx(b2,{dir:"down",onClick:()=>L!==null&&N(L),disabled:L===null})]})}),d?x.jsx(jz,{marks:n,current:F,onPick:O=>{T(),N(O)},onClose:T}):null]})}function Mz({mark:e}){if(e.state==="failed")return x.jsx("span",{className:"shrink-0 text-[11px] text-del",children:"didn’t send"});const n=e.state==="sending"?"sending…":e.state==="queued"?"queued":e.ts&&Ng(e.ts);return n?x.jsx("span",{className:"shrink-0 text-[11px] text-muted tabular-nums",children:n}):null}function b2({dir:e,onClick:n,disabled:r}){const i=e==="up"?JC:Ea;return x.jsx("button",{type:"button",onClick:n,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 jz({marks:e,current:n,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(Cn,{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===n?o:void 0,type:"button",onClick:()=>r(d),"aria-current":d===n?"true":void 0,className:pe("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===n&&"bg-surface-2/60"),children:[x.jsx("span",{className:pe("w-5 shrink-0 text-right font-mono text-[11px] tabular-nums",d===n?"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(Mz,{mark:u})]},u.top))})]})]})}function h5({patch:e,truncated:n,className:r}){const i=D.useMemo(()=>e.split(`
|
|
47
|
+
`),[e]);return x.jsxs("pre",{className:pe("overflow-x-auto font-mono text-[11.5px] leading-[1.5]",r),children:[i.map((l,o)=>x.jsx("div",{className:pe("whitespace-pre",Tz(l)),children:l||" "},o)),n?x.jsx("div",{className:"mt-2 text-faint",children:"… diff truncated …"}):null]})}function Tz(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 p5({sessionId:e,workspaceId:n,working:r,workingSince:i,turnStartedAt:l,queued:o,waiting:u,delegations:d=[],poll:f,onFork:h,onSelectSession:g,onDismissDelegation:p,onOpenRoles:y}){const{entries:b,loading:C,error:v}=Jw(e,f??!0),A=Be(w=>w.pending),B=Be(w=>w.removePending),j=sg(),S=ur(),N=D.useRef(null),T=D.useRef(!0),F=D.useMemo(()=>yN(b),[b]),R=D.useMemo(()=>F.map(w=>w.e),[F]),L=D.useMemo(()=>Oz(F),[F]),I=D.useMemo(()=>gN(R),[R]),O=D.useMemo(()=>{const w=N9(R).filter(W=>W!==I);return new Set(w.map(wi))},[R,I]),$=D.useMemo(()=>new Map(N9(R).map(w=>[w,EN(R,w,l)])),[R,l]),Q=async w=>{await(w.sessionId?Me.dismissParked(w.sessionId):Me.dismissPrompt(w.workspaceId)).catch(()=>{}),S.invalidateQueries({queryKey:["state"]})},le=new Set(b.filter(w=>w.role==="user").map(w=>w.text.trim())),ee=[...le],Y=A.filter(w=>w.sessionId===e),P=Y.filter(w=>!(t9(w)&&ee.some(W=>n9(w,W)))),V=o?.text.trim()||null,Z=V&&!le.has(V)&&!Y.some(w=>w.text.trim()===V)?o:null,xe=!!e&&d.some(w=>w.parentSessionId===e||w.childSessionId===e);D.useEffect(()=>{const w=b.filter(W=>W.role==="user").map(W=>W.text.trim());for(const W of A)W.sessionId===e&&t9(W)&&w.some(fe=>n9(W,fe))&&B(W.id)},[b,A,e,B]);const M=()=>{const w=N.current;w&&(T.current=w.scrollHeight-w.scrollTop-w.clientHeight<120)},z=u?.length??0;if(D.useLayoutEffect(()=>{const w=N.current;w&&T.current&&(w.scrollTop=w.scrollHeight)},[b,P.length,r,z]),D.useEffect(()=>{T.current=!0},[e]),D.useEffect(()=>{const w=N.current;if(!w)return;const W=new ResizeObserver(()=>{T.current&&(w.scrollTop=w.scrollHeight)});return W.observe(w),()=>W.disconnect()},[]),!e&&!Z)return x.jsx(tn,{children:"No active session in this workspace."});const X=b.length===0&&P.length===0&&!Z&&!xe;return x.jsxs("div",{className:"relative flex min-h-0 min-w-0 flex-1",children:[x.jsx("div",{ref:N,onScroll:M,className:"min-w-0 flex-1 overflow-y-auto overflow-x-hidden px-3 py-3",children:C&&X?x.jsx(Dr,{label:"Loading transcript…"}):v&&X?x.jsx(tn,{children:v}):X&&!r?x.jsx(tn,{children:"No messages yet."}):x.jsxs("div",{className:"flex min-w-0 flex-col gap-2.5",children:[L.map(w=>w.kind==="steps"?x.jsx(zz,{nodes:w.nodes},w.key):x.jsxs(D.Fragment,{children:[x.jsx(Lf,{node:w.node}),O.has(wi(w.node.e))?x.jsx(C2,{text:w.node.e.text,at:w.node.e.ts,startedAt:$.get(w.node.e),rowid:w.node.e.rowid,through:w.node.e.rowid,onFork:h}):null]},w.key)),I?x.jsx(C2,{text:I.text,at:I.ts,startedAt:$.get(I),rowid:I.rowid,working:r,onFork:h}):null,d.length&&g&&p&&y?x.jsx(Ez,{jobs:d,sessionId:e,onSelectSession:g,onDismiss:p,onOpenRoles:y}):null,P.map(w=>x.jsx(Iz,{p:w,onRetry:()=>j({id:w.id,sessionId:w.sessionId,workspaceId:w.workspaceId,text:w.text,queue:w.queue,workflow:w.workflow}),onDismiss:()=>B(w.id)},w.id)),Z?x.jsx(Pz,{queued:Z,onRetry:e?()=>j({id:`queued:${Z.sessionId??Z.workspaceId}:${Z.createdAt}`,sessionId:e,workspaceId:n,text:Z.text}):void 0,onDismiss:()=>Q(Z)}):null,u?.map(w=>x.jsx($z,{task:w},w.taskId)),r?x.jsx(Hz,{since:i}):null]})}),x.jsx(_z,{scroller:N})]})}const wi=e=>`${e.rowid}-${e.id}`,Rz=(e,n)=>e.nodes.length===n.nodes.length&&e.nodes.every((r,i)=>r.e===n.nodes[i]?.e);function Oz(e){const n=[];let r=[];const i=()=>{if(r.length>1)n.push({kind:"steps",key:`steps-${wi(r[0].e)}`,nodes:r});else for(const l of r)n.push({kind:"entry",key:wi(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(),n.push({kind:"entry",key:wi(l.e),node:l})}return i(),n}const zz=D.memo(function({nodes:n}){const r=n.filter(o=>o.e.error).length,i=n[n.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:[n.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:n.map(o=>x.jsx(Lf,{node:o},wi(o.e)))})]})},Rz);function Lf({node:e}){return e.e.subagentLabel?x.jsx(Lz,{node:e}):x.jsx(Uz,{e:e.e})}function Lz({node:e}){const{e:n,children:r}=e,i=n.output&&(n.error||n.tool==="Agent"||n.tool==="Task")?n.output:null,l=r.length>0||!!i;return x.jsxs("section",{className:"min-w-0 px-0.5","data-subagent":n.subagentLabel,children:[x.jsxs("div",{className:"flex min-w-0 items-center gap-2 py-1 text-[12.5px]",children:[x.jsx(pD,{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:n.subagentLabel}),n.error?x.jsx("span",{className:"shrink-0 text-[11px] text-del",children:"failed"}):null]}),l?x.jsx("div",{className:"ml-[7px] min-w-0 border-l border-border pl-4 pb-1 pt-1",children:x.jsxs("div",{className:"flex min-w-0 flex-col gap-2.5",children:[r.map(o=>x.jsx(Lf,{node:o},wi(o.e))),i?x.jsx("div",{className:"flex flex-col items-start","data-subagent-result":!0,children:x.jsx(jd,{className:pe("max-w-[92%] px-0.5",n.error&&"text-del/80"),children:x.jsx(Wa,{children:i})})}):null]})}):null]})}function Pz({queued:e,onRetry:n,onDismiss:r}){const i=e.status==="failed",l=!i&&!!e.sessionId;return x.jsx(zf,{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(ga,{className:"ml-1"}):null]}),actions:i?[...n?[{label:"Retry",onClick:n,primary:!0}]:[],{label:"Dismiss prompt",onClick:r}]:[],dataUserMessage:df(e.text),dataMessageState:"queued",children:x.jsx("div",{children:x.jsx(Wa,{children:e.text})})})}function Iz({p:e,onRetry:n,onDismiss:r}){const i=e.status==="error";return x.jsx(zf,{state:i?"failed":"pending",meta:i?e.error||"Didn’t send":"Sending…",actions:i?[{label:"Retry",onClick:n,primary:!0},{label:"Dismiss message",onClick:r}]:[],dataUserMessage:df(e.text),dataMessageState:i?"failed":"sending",children:x.jsx("div",{children:x.jsx(Wa,{children:e.text})})})}const Uz=D.memo(function({e:n}){return n.role==="user"?x.jsxs("div",{className:"flex flex-col items-end gap-0.5","data-user-msg":df(n.text),"data-msg-ts":n.ts,"data-msg-state":n.queued?"queued":void 0,children:[x.jsxs(jd,{className:pe("max-w-[85%] bg-accent-soft text-text",n.queued&&"opacity-60"),children:[n.queued?x.jsx(Td,{children:"queued"}):null,x.jsx(Wa,{children:n.text})]}),x.jsx("span",{className:"pr-1 text-[11px] text-faint",children:yS(n.ts)})]}):n.role==="tool"?x.jsx(qz,{e:n}):n.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(Wa,{children:n.text})})]}):n.role==="system"?x.jsx("div",{className:"px-2 text-center text-[11px] text-faint",children:n.text}):x.jsx("div",{className:"flex flex-col items-start",children:x.jsx(jd,{className:"max-w-[92%] px-0.5",children:x.jsx(Wa,{children:n.text})})})});function C2({text:e,at:n,startedAt:r,working:i,rowid:l,through:o,onFork:u}){const[d,f]=D.useState(!1),[h,g]=D.useState(!1),[p,y]=D.useState(null),[b,C]=D.useState("chat"),[v,A]=D.useState(()=>Date.now());D.useEffect(()=>{const N=setInterval(()=>A(Date.now()),6e4);return()=>clearInterval(N)},[]);const B=r?Xn(n)-Xn(r):Number.NaN,j=[B>0?ff(B):null,bS(n,v)].filter(Boolean).join(" · "),S=async N=>{if(!(!u||h)){g(!0),y(null),f(!1);try{await u({thinking:N.thinking,tools:N.tools,destination:b,through:N.only?void 0:o,only:N.only?l:void 0})}catch(T){y(T instanceof Error?T.message:"Could not fork this chat")}finally{g(!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&&j?x.jsx("span",{className:"text-[11px] tabular-nums text-faint",children:j}):null,x.jsx(jg,{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:()=>{S({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(Tn,{size:13,className:"animate-spin"}):x.jsx(A8,{size:13}),b==="workspace"?"Fork workspace":"Fork"]}),x.jsx("button",{type:"button",onClick:()=>f(N=>!N),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(Ea,{size:14,className:pe("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(N=>N==="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:pe("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:pe("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(O0,{label:"Last message only",detail:"This response, without history",onClick:()=>{S({thinking:!1,tools:!1,only:!0})}}),x.jsx(O0,{label:"Concise",detail:"Messages only",onClick:()=>{S({thinking:!1,tools:!1})}}),x.jsx(O0,{label:"With reasoning",detail:"Messages and reasoning",onClick:()=>{S({thinking:!0,tools:!1})}}),x.jsx(O0,{label:"Full transcript",detail:"Messages, reasoning, and tools",onClick:()=>{S({thinking:!0,tools:!0})}})]})]}):null]}):null]}),p?x.jsxs("span",{className:"max-w-[85vw] text-[11px] text-del",children:[p,Fi(p)?x.jsx(ga,{className:"ml-1"}):null]}):null]})}function O0({label:e,detail:n,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:n})]})}function Hz({since:e}){const[n,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:ff(n-e)}):null]})}function $z({task:e}){const n=Xn(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(Zd,{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(n)?null:x.jsx("span",{className:"shrink-0 text-[11px] tabular-nums text-faint",children:ff(r-n)})]})}const qz=D.memo(function({e:n}){const[r,i]=D.useState(!1);if(n.error&&!n.tool)return x.jsx("div",{className:"overflow-hidden rounded-xl border border-del/30 bg-del/5 px-3 py-2",children:x.jsx(Kx,{text:n.text,className:"line-clamp-4 text-del/80"})});const l=c5(n.detail),o=n.images??[];return!n.detail&&!n.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:n.text})]}):x.jsxs("details",{open:r,onToggle:u=>i(u.currentTarget.open),className:pe("group/tool min-w-0 overflow-hidden rounded-xl border",n.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:n.text}),n.detail?l?x.jsx(Md,{href:l,title:`Open ${n.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:n.detail}):x.jsx("span",{className:"min-w-0 flex-1 truncate font-mono text-[11px] text-faint group-open/tool:invisible",children:n.detail}):null,n.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:[n.detail?l?x.jsx(Md,{href:l,title:`Open ${n.detail}`,className:"block whitespace-pre-wrap font-mono text-[11.5px] leading-relaxed text-accent underline underline-offset-2 [overflow-wrap:anywhere]",children:n.detail}):x.jsx(Kx,{text:n.detail,className:"text-muted",language:xN(n.tool)}):null,n.output?x.jsxs("div",{className:pe("min-w-0",n.detail&&"border-t border-border-soft pt-2"),children:[x.jsx(Td,{children:n.error?"error":n.diff?"changes":"output"}),n.diff?x.jsx(h5,{patch:n.output}):x.jsx(Kx,{text:n.output,className:n.error?"text-del/80":"text-muted",language:n.error?null:dN(n.tool,n.detail)})]}):null,r&&o.length?x.jsxs("div",{className:pe("flex min-w-0 flex-col gap-2",(n.detail||n.output)&&"border-t border-border-soft pt-2"),children:[x.jsx(Td,{children:Qz(o.length,"image")}),o.map(u=>x.jsx(Vz,{reference:u},u))]}):null]})]})}),Gz="whitespace-pre-wrap font-mono text-[11.5px] leading-relaxed [overflow-wrap:anywhere]";function Kx({text:e,className:n,language:r}){return x.jsx("pre",{className:pe(Gz,n),children:r?x.jsx(Xg,{text:e,language:r}):e})}function Vz({reference:e}){const[n,r]=D.useState(null),[i,l]=D.useState(!1);return D.useEffect(()=>{let o=!1;return Me.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."}):n?x.jsx("img",{src:n,alt:"Tool output",className:"max-w-full rounded-lg border border-border-soft"}):x.jsx(Dr,{label:"Loading image…"})}const Qz=(e,n)=>`${e} ${n}${e===1?"":"s"}`;function jd({children:e,className:n}){return x.jsx("div",{className:pe("min-w-0 rounded-2xl px-3.5 py-2.5 text-[14px] leading-relaxed [overflow-wrap:anywhere]",n),children:e})}function Td({children:e}){return x.jsx("div",{className:"mb-1 text-[10px] font-semibold uppercase tracking-wide text-faint",children:e})}function Yz({workspace:e}){const[n,r]=g8(),i=n.get("session"),{data:l,isLoading:o}=rg(e.id,!1),u=l?.sessions??[],d=(i&&u.some(h=>h.id===i)?i:null)??u[0]?.id??null,f=[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(bd,{title:$r(e),subtitle:f,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(Kd,{size:12}),"Archived"]})}),u.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:u.map(h=>x.jsx("button",{type:"button",onClick:()=>r({session:h.id},{replace:!0}),className:pe("pill shrink-0",h.id===d&&"pill-active"),children:x.jsx("span",{className:"max-w-36 truncate",children:h.title||"Untitled"})},h.id))}):null,!o&&!d?x.jsx(tn,{children:"This workspace was archived with no chat in it."}):x.jsx(p5,{sessionId:d,workspaceId:e.id,turnStartedAt:u.find(h=>h.id===d)?.turn_started_at,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:"Read-only — unarchive it in Conductor to reply."})]})}const m5=[{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 Kz(e,n){if(!n||n.totalTokens<=0)return[];const r=Math.min(100,Math.max(0,e));let i=0;return m5.flatMap(l=>{const o=Math.max(0,n.categories[l.key]),u=Math.min(100-i,o/n.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 Xz=()=>typeof window<"u"&&window.matchMedia("(pointer: coarse)").matches;function g5(e,n=Xz()){return e.key!=="Enter"||e.nativeEvent.isComposing||e.shiftKey?!1:e.metaKey||e.ctrlKey?!0:!n}const jr=6e4,Zz=e=>/(?:^|[:/])(claude|fable|haiku|opus|sonnet)|^(claude|fable|haiku|opus|sonnet)/.test(e),v2=e=>/(?:^|[:/])(openai|gpt|o[1-9])|^(openai|gpt|o[1-9]|\d)/.test(e);function Wz(e){const n=e.agent_type?.trim().toLowerCase()??"",r=e.model?.trim().toLowerCase()??"";return(n==="claude"||n==="anthropic")&&e.prompt_cache_ttl_ms&&e.prompt_cache_ttl_ms>0?pa(e.prompt_cache_ttl_ms,!0):n==="claude"||n==="anthropic"?pa(60*jr,!1):n==="codex"||n==="openai"?pa(30*jr,!1):n==="cursor"?Zz(r)?pa(5*jr,!1):(v2(r),pa(30*jr,!1)):(n==="acp"||n==="opencode")&&v2(r)?pa(30*jr,!1):pa(5*jr,!1)}function Jz(e,n=Date.now()){if(!e.last_user_message_at)return null;const r=Xn(e.updated_at);if(!Number.isFinite(r))return null;const i=Wz(e);return n-r>=i.ttlMs?i:null}function pa(e,n){return{ttlMs:e,ttlLabel:e>=60*jr?`${e/(60*jr)}h`:`${e/jr}m`,observed:n}}function E5({value:e,models:n,onSelect:r,defaultModel:i,onSetDefault:l,settingDefault:o,open:u,onOpenChange:d,isFetching:f=!1,isError:h=!1,empty:g="No models are cached yet. Open a model picker in a chat first.",placement:p="above",className:y,beforeOptions:b,renderTrigger:C}){const[v,A]=D.useState(!1),B=u??v,j=N=>{const T=typeof N=="function"?N(B):N;u===void 0&&A(T),d?.(T)},S=jD(n);return x.jsxs("div",{className:"relative",children:[C?C({picking:B,toggle:()=>j(N=>!N)}):x.jsxs("button",{type:"button",onClick:()=>j(N=>!N),"aria-haspopup":"menu","aria-expanded":B,className:pe("ctl flex max-w-40 items-center gap-1",e&&"ctl-staged",y),children:[x.jsx("span",{className:"truncate",children:e?dd(e):"Model"}),x.jsx(Ea,{size:13,className:"shrink-0"})]}),B?x.jsxs(x.Fragment,{children:[x.jsx("button",{type:"button","aria-label":"Close model picker",onClick:()=>j(!1),className:"fixed inset-0 z-30 cursor-default"}),x.jsxs("div",{className:pe("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(to,{size:10,className:"mx-3 my-1.5 animate-spin text-faint"}):null,S.length?S.map(N=>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:N.label}),N.models.map(T=>{const F=i===T;return x.jsxs("div",{className:"flex items-stretch active:bg-surface",children:[x.jsxs("button",{type:"button",onClick:()=>{j(!1),r(T)},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:dd(T)}),x.jsx(qr,{size:13,className:pe("shrink-0 text-accent",e!==T&&"invisible")})]}),l?x.jsx("button",{type:"button",disabled:F||o!==void 0,onClick:()=>{j(!1),l(T)},"aria-label":F?`${T} is the default model`:`Set ${T} as default and select`,"aria-pressed":F,className:pe("flex w-9 shrink-0 items-center justify-center text-faint disabled:opacity-60",F&&"text-accent"),children:o===T?x.jsx(Tn,{size:14,className:"animate-spin"}):x.jsx(xd,{size:14,fill:F?"currentColor":"none"})}):F?x.jsx(xd,{size:14,fill:"currentColor","aria-label":`${T} is the default model`,className:"mx-3 self-center text-accent"}):null]},T)})]},N.label)):x.jsx("div",{className:"px-3 py-2 text-sm text-muted",children:f?"Reading Conductor’s model list…":g}),h?x.jsx("div",{className:"px-3 py-1.5 text-[11px] text-del",children:n.length?"Couldn’t refresh. Showing saved models.":"Couldn’t read the model list."}):null]})]}):null]})}function y5({model:e,providerModel:n,agentType:r,models:i,modelPickerOpen:l,onModelPickerOpenChange:o,modelsFetching:u=!1,modelsError:d=!1,defaultModel:f,onSetDefaultModel:h,settingDefaultModel:g,fast:p,effort:y,plan:b,showEmptyEffort:C=!1,modelStaged:v=!1,fastStaged:A=!1,effortStaged:B=!1,planStaged:j=!1,onModelChange:S,onFastChange:N,onEffortChange:T,onPlanChange:F,disabled:R=!1,hidePlan:L=!1,beforeModel:I,status:O}){const $=pf(r,n),Q=mf(r,n),le=gf(r,n);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:[I,x.jsx("div",{className:"min-w-0",children:x.jsx(E5,{value:e,models:i,open:l,onOpenChange:o,isFetching:u,isError:d,defaultModel:f,onSetDefault:h,settingDefault:g,onSelect:S,renderTrigger:({picking:ee,toggle:Y})=>x.jsxs("button",{type:"button",disabled:R,onClick:Y,"aria-label":`Change model, currently ${e}`,"aria-haspopup":"menu","aria-expanded":ee,className:pe("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(ro,{agentType:r,model:n,className:"size-[15px]"}),x.jsx("span",{className:"truncate",children:dd(e)})]})})}),le?x.jsx("button",{type:"button",disabled:R,onClick:N,"aria-label":`Fast mode ${p===void 0?"default":p?"on":"off"}`,"aria-pressed":p===!0,className:pe("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(ef,{size:17})}):null,Q&&(y||C)?x.jsxs("button",{type:"button",disabled:R,onClick:T,"aria-label":`Reasoning effort: ${y?Ql[y]:"default"}`,className:pe("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",B&&"text-accent"),children:[x.jsx(Wg,{effort:y??""}),x.jsx("span",{className:"max-[340px]:hidden",children:y?Ql[y]:"Effort"})]}):null,$&&!L?x.jsx("button",{type:"button",disabled:R,onClick:F,"aria-label":`Plan mode ${b===void 0?"default":b?"on":"off"}`,"aria-pressed":b===!0,className:pe("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",j&&"text-accent"),children:x.jsx(D8,{size:17})}):null]}),O?x.jsx("div",{className:"px-2 pt-0.5 text-[11px] text-faint",children:O}):null]})}function Pf({className:e}){return x.jsx("span",{className:pe("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 b5({active:e,onChange:n}){return x.jsxs("button",{type:"button",onClick:()=>n(!e),title:"Run this task through your configured delegated roles","aria-label":`Workflow mode ${e?"on":"off"}`,"aria-pressed":e,className:pe("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(lc,{size:15}),x.jsx("span",{children:"Workflow"}),x.jsx(Pf,{className:"-mr-0.5"})]})}const eL=600*1e3,tL={};function z0(e,n){return e===n?void 0:e}function nL({session:e,workspaceId:n,workflow:r}){const[i,l]=D.useState(!1),[o,u]=D.useState(),[d,f]=D.useState(),h=Be(Z=>Z.agentDrafts[e.id])??tL,g=Be(Z=>Z.stageAgent),p=ur(),y=Be(Z=>Z.pending.some(xe=>xe.sessionId===e.id&&xe.status==="sending")),b=oc(),C=b.data?.groups.find(Z=>Z.agentType===(e.agent_type??"unknown")),v=!!C?.defaultModel&&Date.now()-C.updatedAt<eL,A=Zw(e,n,i&&!r?.active&&!v),B=A.data?.models??C?.models??[],j=A.data?.defaultModel??b.data?.defaultModel??C?.defaultModel,S=Z=>g(e.id,Z),N=e.claude_effort_level??void 0,T=e.permission_mode==="plan",F=!!e.fast_mode,R=h.effort??N,L=h.plan??T,I=h.fast??F,O=Object.keys(h).length>0,$=h.model??(T8(e.model,B)||"Model"),Q=h.model??e.model,le=pf(e.agent_type,Q),ee=mf(e.agent_type,Q),Y=gf(e.agent_type,Q),P=r?.role?.model??"Planning role";D.useEffect(()=>{!le&&h.plan!==void 0&&g(e.id,{plan:void 0})},[le,e.id,h.plan,g]),D.useEffect(()=>{!ee&&h.effort!==void 0&&g(e.id,{effort:void 0}),!Y&&h.fast!==void 0&&g(e.id,{fast:void 0})},[ee,Y,e.id,h.effort,h.fast,g]);const V=async Z=>{if(!o){u(Z),f(void 0);try{const xe=await Me.setDefaultModel(e.id,Z,n);if(!xe.ok)throw new Error(xe.error??"could not set the default model");g(e.id,{model:void 0}),await Promise.all([p.invalidateQueries({queryKey:["model-catalog"]}),p.invalidateQueries({queryKey:["sessions",n]}),p.invalidateQueries({queryKey:["state"]})])}catch(xe){f(xe instanceof Error?xe.message:"could not set the default model")}finally{u(void 0)}}};return x.jsx(y5,{model:r?.active?P:$,providerModel:r?.active?r.role?.model??null:Q,agentType:r?.active&&r.role?Bs(r.role.model)??null:e.agent_type,models:B,modelPickerOpen:i,onModelPickerOpenChange:l,modelsFetching:A.isFetching||b.isFetching,modelsError:A.isError,defaultModel:j,onSetDefaultModel:Z=>{V(Z)},settingDefaultModel:o,fast:r?.active?r.role?.fast:I,effort:r?.active?r.role?.effort:R,plan:r?.active?void 0:L,showEmptyEffort:r?.active,modelStaged:!r?.active&&h.model!==void 0,fastStaged:!r?.active&&h.fast!==void 0,effortStaged:!r?.active&&h.effort!==void 0,planStaged:!r?.active&&h.plan!==void 0,onModelChange:Z=>S({model:z0(Z,h.model)}),onFastChange:()=>S({fast:z0(!I,F)}),onEffortChange:()=>S({effort:z0(Zg(R),N)}),onPlanChange:()=>S({plan:z0(!L,T)}),disabled:r?.active,hidePlan:r?.active,beforeModel:r?x.jsx(b5,{active:r.active,onChange:Z=>{l(!1),r.onChange(Z)}}):void 0,status:r?.active?r.problem?x.jsx("span",{className:"text-del",children:r.problem}):r.loading?"Loading the planning role…":"Planning root · starts tracked sibling-chat delegation":d?x.jsxs("span",{className:"text-del",children:[d,Fi(d)?x.jsx(ga,{className:"ml-1"}):null]}):o?"Setting default and selecting…":O?y?"Applying…":"Applies when you send":void 0})}const rL=[];function aL({session:e,sessionId:n,workspaceId:r,working:i,actuator:l,onFork:o,onContext:u,workflowStarted:d=!1,focusDraft:f=!1,onDraftFocused:h}){const g=n??r,p=Be(re=>re.drafts[g]??""),y=Be(re=>re.draftAttachments[g]??rL),b=Be(re=>re.setDraft),C=Be(re=>re.addDraftAttachment),v=Be(re=>re.removeDraftAttachment),A=Be(re=>re.clearDraftContent),B=Be(re=>re.moveDraft),j=Be(re=>re.setFocusedDraft),S=Be(re=>re.online),N=Be(re=>re.clearWorking),T=sg(),F=ur(),[R,L]=D.useState(!1),[I,O]=D.useState(null),[$,Q]=D.useState(!1),[le,ee]=D.useState(null),[Y,P]=D.useState({sessionId:null,active:!1}),V=Y.sessionId===n&&Y.active,Z=re=>P({sessionId:n,active:re}),xe=D.useRef(null),M=D.useRef(null),z=D.useRef(new Set),X=D.useRef(0),[w,W]=D.useState([]),[fe,he]=D.useState(!1),De=w.filter(re=>re.sessionId===n),Ce=[...y.map(re=>({...re,id:re.path,status:"ready"})),...De],Fe=De.some(re=>re.status==="uploading"),at=[...y.map(re=>re.token),p.trim()].filter(Boolean).join(`
|
|
48
|
+
`),mt=Be(re=>re.pending.some(ht=>ht.sessionId===n&&!!ht.workflow)),Lt=!!e&&!e.last_user_message_at&&!i&&!d&&!mt,kt=V||Lt,we=lf(kt),Ae=we.data?.roles.planning,tt=we.data?.issues.find(re=>re.role==="planning"),Qe=e?.permission_mode==="plan"?"Workflow needs ordinary chat mode. Turn Plan off first.":we.isError?"Could not load delegated roles.":we.data?.warning?we.data.warning:we.data&&!Ae?"Workflow mode needs a configured planning role.":tt?.error.message,Tt=!!Ae&&!Qe;D.useEffect(()=>{n&&B(r,n)},[r,n,B]),D.useEffect(()=>(document.activeElement===xe.current&&j(g),()=>{Be.getState().focusedDraft===g&&j(null)}),[g,j]);const Ue=()=>{const re=xe.current;re&&(re.style.height="auto",re.style.height=`${Math.min(re.scrollHeight,160)}px`)};D.useEffect(Ue,[p]),D.useEffect(()=>{if(!f)return;const re=xe.current;re&&(re.focus({preventScroll:!0}),re.setSelectionRange(re.value.length,re.value.length),h?.())},[f,h]);const Ct=(re=!1)=>{if(!at||Fe||$||!n||!S||mt||V&&!Tt)return;const ht=V;T({sessionId:n,workspaceId:r,text:at,queue:ht?!1:re,workflow:ht}).then(gt=>{gt&&ht&&P(oe=>oe.sessionId===n?{...oe,active:!1}:oe)}),A(g),W(gt=>gt.filter(oe=>oe.sessionId!==n))},wt=async()=>{if(!(!(o&&at)||Fe||$||!S)){Q(!0),ee(null);try{await o(at),A(g),W(re=>re.filter(ht=>ht.sessionId!==n))}catch(re){ee(re instanceof Error?re.message:"Could not fork this chat")}finally{Q(!1)}}},cn=re=>{if(y.some(ht=>ht.path===re)){v(g,re);return}z.current.add(re),W(ht=>ht.filter(gt=>gt.id!==re))},Pn=async re=>{if(!(!n||!S))for(const ht of Array.from(re)){const gt=crypto.randomUUID();W(oe=>[...oe,{id:gt,sessionId:n,name:ht.name||"attachment",status:"uploading"}]);try{const oe=await Me.uploadAttachment(n,r,ht);if(z.current.delete(gt))continue;C(n,oe.attachment),W(ut=>ut.filter(St=>St.id!==gt))}catch(oe){if(z.current.delete(gt))continue;W(ut=>ut.map(St=>St.id===gt?{...St,status:"error",error:oe instanceof Error?oe.message:"Upload failed"}:St))}}},Ye=re=>{re?.length&&Pn(re)},nn=re=>Array.from(re.dataTransfer.types).includes("Files"),se=re=>{nn(re)&&(re.preventDefault(),X.current+=1,he(!0))},me=re=>{nn(re)&&(X.current-=1,X.current<=0&&(X.current=0,he(!1)))},je=re=>{nn(re)&&(re.preventDefault(),re.dataTransfer.dropEffect="copy")},Ke=re=>{nn(re)&&(re.preventDefault(),X.current=0,he(!1),Ye(re.dataTransfer.files))},it=async()=>{if(!(!n||R||!S)){L(!0),O(null);try{const re=await Me.stop(n,r);re.ok?(N(n),await F.invalidateQueries({queryKey:["sessions",r]}),F.invalidateQueries({queryKey:["state"]})):O(re.error||"Stop failed")}catch(re){O(re instanceof Error?re.message:"Stop failed")}finally{L(!1)}}},Ht=!n,un=l?.precise&&l.available,Gt=i&&!!n,Bt=(!!p.trim()||y.length>0)&&!Fe&&!mt&&(!V||Tt),Vt=!i&&Bt&&e&&o?Jz(e):null;return x.jsxs("div",{className:"pb-safe border-t border-border-soft bg-bg px-3 pt-2",children:[S?!un&&x.jsxs("div",{className:"mb-1.5 flex items-center gap-1.5 px-1 text-[11px] text-faint",children:[x.jsx(Zv,{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(Jd,{size:12}),"Offline — drafts are saved, sending resumes when the relay is back"]}),I?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:()=>O(null),className:"block w-full text-left",children:I}),Fi(I)?x.jsx(ga,{className:"mt-1 inline-block"}):null]}):null,Vt?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(hB,{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 ",Vt.ttlLabel," window"]}),le?x.jsxs("div",{className:"mt-0.5 text-[11px] text-del",role:"alert",children:[le,Fi(le)?x.jsx(ga,{className:"ml-1"}):null]}):null]}),x.jsxs("button",{type:"button",onClick:()=>{wt()},disabled:$||!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:[$?x.jsx(Tn,{size:13,className:"animate-spin"}):x.jsx(A8,{size:13}),"Fork draft"]})]}):null,x.jsxs("fieldset",{"aria-label":"Message composer",onDragEnter:se,onDragLeave:me,onDragOver:je,onDrop:Ke,className:`m-0 min-w-0 rounded-2xl border border-border bg-surface p-2 has-[textarea:focus]:border-accent/60 ${fe?"border-accent bg-accent-soft":""}`,children:[x.jsx("input",{ref:M,type:"file",multiple:!0,className:"hidden",onChange:re=>{Ye(re.target.files),re.target.value=""}}),Ce.length?x.jsx("div",{className:"flex flex-wrap gap-1 px-2 pb-1",children:Ce.map(re=>x.jsxs("div",{title:re.error??re.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:[re.status==="uploading"?x.jsx(Tn,{size:12,className:"shrink-0 animate-spin"}):null,x.jsx("span",{className:"truncate",children:re.status==="error"?`${re.name}: ${re.error}`:re.name}),x.jsx("button",{type:"button",onClick:()=>cn(re.id),"aria-label":`Remove ${re.name}`,className:"flex size-5 shrink-0 items-center justify-center rounded active:bg-surface",children:x.jsx(Cn,{size:13})})]},re.id))}):null,fe?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,x.jsx("textarea",{ref:xe,rows:1,value:p,disabled:Ht||$,placeholder:Ht?"No active session":V?"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:re=>b(g,re.target.value),onFocus:()=>j(g),onBlur:()=>{Be.getState().focusedDraft===g&&j(null),md()},onPaste:re=>{const ht=re.clipboardData.files;ht.length&&(re.preventDefault(),Ye(ht))},onKeyDown:re=>{g5(re)&&(re.preventDefault(),Ct(re.metaKey||re.ctrlKey))}}),x.jsxs("div",{className:"mt-1 flex items-start gap-1",children:[e?x.jsx(nL,{session:e,workspaceId:r,workflow:kt?{active:V,role:Ae,loading:we.isLoading,problem:Qe,onChange:Z}:void 0}):x.jsx("span",{className:"flex-1"}),e&&u?x.jsx(iL,{session:e,onOpen:u}):null,x.jsx("button",{type:"button",onClick:()=>M.current?.click(),disabled:Ht||$||!S,"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(ic,{size:17})}),Gt?x.jsx("button",{type:"button",onClick:it,disabled:R||!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:R?x.jsx("span",{className:"size-4 animate-spin rounded-full border-2 border-border border-t-text"}):x.jsx(N8,{size:14,fill:"currentColor"})}):null,Gt&&!Bt?null:x.jsx("button",{type:"button",onClick:()=>Ct(),disabled:Ht||!Bt||$||!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(U7,{size:18})})]})]})]})}function iL({session:e,onOpen:n}){const r=e.context_used_percent,i=ig(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=Kz(l,i.data);return x.jsx("button",{type:"button",onClick:n,"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 Xx(e,n,r){let i=e;const l=Math.min(i,n);i-=l;const o=Math.min(i,Math.max(0,r-n));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 sL({label:e,layers:n,scale:r}){return x.jsx("div",{role:"img","aria-label":`${e}: ${H0(n.reduce((i,l)=>i+l.tokens,0))} estimated tokens`,className:"flex h-1.5 overflow-hidden rounded-full bg-surface-2",children:n.map(i=>i.tokens>0?x.jsx("span",{className:i.color,style:{width:`${i.tokens/r*100}%`}},i.key):null)})}function lL({data:e}){const n=typeof e.usedPercent=="number"?`${Math.round(e.usedPercent)}% used`:null,r=m5.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:Xx(e.forkTokens.concise,e.forkTokens.concise,e.forkTokens.reasoning)},{label:"With reasoning",detail:"Messages and reasoning",tokens:e.forkTokens.reasoning,layers:Xx(e.forkTokens.reasoning,e.forkTokens.concise,e.forkTokens.reasoning)},{label:"Full transcript",detail:"Messages, reasoning, and tools",tokens:e.forkTokens.full,layers:Xx(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:[H0(e.totalTokens)," tokens"]}),n?x.jsx("span",{className:"text-xs tabular-nums text-muted",children:n}):null]}),x.jsx("div",{role:"img","aria-label":r.map(o=>`${o.label} ${v9(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=v9(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?"≈":"",H0(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:["≈",H0(o.tokens)]})]}),x.jsx(sL,{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 oL({sessionId:e,title:n,revision:r,onClose:i}){const l=ig(e,!0,r);return Gr.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:n||"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(Cn,{size:18})})]}),x.jsx("div",{className:"min-h-0 flex-1 overflow-y-auto overscroll-contain p-4",children:l.data?x.jsx(lL,{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(Tn,{size:16,className:"animate-spin"}),"Reading context…"]})})]})]}),document.body)}function cL(e){document.visibilityState==="visible"&&window.open(e,"_blank","noopener,noreferrer")}const Zx="flex size-9 shrink-0 items-center justify-center rounded-full text-muted transition active:bg-surface-2 disabled:opacity-40";function uL({workspaceId:e}){const n=Gw(e),r=ur(),i=Be(N=>N.online),[l,o]=D.useState(null),[u,d]=D.useState(null),[f,h]=D.useState(!1),[g,p]=D.useState(!1),y=D.useRef(null),b=D.useRef(null),C=n.data,v=(C?.runConfigs?.length??0)>1,A=C?.forwards?.filter(N=>N.forwarded&&N.url)??(C?.forwarded&&C.url?[{name:C.port?`Port ${C.port}`:"Dev server",port:C.port??0,url:C.url}]:[]);D.useEffect(()=>{if(!f&&!g)return;const N=g?b:y,T=R=>{R.target instanceof Node&&N.current?.contains(R.target)||(h(!1),p(!1))},F=R=>{R.key==="Escape"&&(R.preventDefault(),h(!1),p(!1),N.current?.querySelector("button")?.focus())};return document.addEventListener("pointerdown",T),document.addEventListener("keydown",F),()=>{document.removeEventListener("pointerdown",T),document.removeEventListener("keydown",F)}},[f,g]);const B=async(N,T)=>{if(!l){o(N?"start":"stop"),d(null);try{const F=N?await Me.startDevServer(e,T):await Me.stopDevServer(e);r.setQueryData(["dev-server",e],F),F.ok?N&&F.url&&cL(F.url):d(F.error??`Could not ${N?"start":"stop"} the dev server`)}catch(F){d(F instanceof Error?F.message:`Could not ${N?"start":"stop"} the dev server`)}finally{o(null),r.invalidateQueries({queryKey:["dev-server",e]})}}},j=v?"Choose Run config":C?.running?"Forward dev server to tailnet":"Start and forward dev server",S=C&&!C.available;return x.jsxs(x.Fragment,{children:[A.length&&A[0]?.url?x.jsxs("div",{ref:y,className:"relative flex shrink-0 items-center",children:[x.jsx("a",{href:A[0].url,target:"_blank",rel:"noreferrer","aria-label":`Open ${A[0].name} on port ${A[0].port}`,title:A[0].url,className:Zx,children:x.jsx($3,{size:18})}),A.length>1?x.jsxs(x.Fragment,{children:[x.jsx("button",{type:"button",onClick:()=>h(N=>!N),"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(Ea,{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:A.map(N=>x.jsxs("a",{href:N.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:N.name}),x.jsxs("span",{className:"font-mono text-xs text-faint",children:[":",N.port]})]},`${N.port}:${N.url}`))}):null]}):null]}):x.jsxs("div",{ref:b,className:"relative shrink-0",children:[x.jsx("button",{type:"button",onClick:()=>{v?p(N=>!N):B(!0)},disabled:!i||!!l||!!S||n.isLoading,"aria-label":j,"aria-haspopup":v?"menu":void 0,"aria-expanded":v?g:void 0,title:S?C.error:j,className:Zx,children:l==="start"||n.isLoading?x.jsx(Tn,{size:18,className:"animate-spin"}):C?.running?x.jsx(P3,{size:18}):x.jsx(ud,{size:18,fill:"currentColor"})}),g&&v?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(N=>x.jsxs("button",{type:"button",role:"menuitem",onClick:()=>{p(!1),B(!0,N.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(ud,{size:14,className:"shrink-0 text-muted"}),x.jsx("span",{className:"min-w-0 flex-1 truncate",children:N.name})]},N.id))}):null]}),C?.running||C?.forwarded?x.jsx("button",{type:"button",onClick:()=>{B(!1)},disabled:!i||!!l,"aria-label":"Stop dev server",className:Zx,children:l==="stop"?x.jsx(Tn,{size:18,className:"animate-spin"}):x.jsx(N8,{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]})}function C5(e,n,r){if(e==="changed")return n;const i=new Map(n.map(l=>[l.path,l]));return[...r].sort().map(l=>i.get(l)??{path:l,added:0,removed:0})}function xL(e){if(!e)return[];const n=e.split(`
|
|
49
|
+
`),r=[];for(const[i,l]of n.entries())l.startsWith("diff --git ")&&r.push(i);return r.length?r.map((i,l)=>n.slice(i,r[l+1]??n.length).join(`
|
|
50
|
+
`)):[e]}function dL(e,n,r){const i=n.findIndex(l=>l.path===r);return i<0?null:xL(e)[i]??null}function fL(e,n){if(e.pr_status==="merged")return"merged";if(n&&(n.dirty||n.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 hL={push:{label:"Uncommitted changes",tone:"text-working",icon:x.jsx(o3,{size:14})},resolve:{label:"Merge conflicts",tone:"text-muted",icon:x.jsx(sc,{size:14})},merge:{label:"Ready to merge",tone:"text-add"},checks:{label:"Checks running",tone:"text-working",icon:x.jsx(Tn,{size:14,className:"animate-spin"})},failed:{label:"Checks failed",tone:"text-del",icon:x.jsx(t3,{size:14})},draft:{label:"Draft",tone:"text-muted"},merged:{label:"Merged",tone:"text-pr-merged",icon:x.jsx(k8,{size:14})}},pL={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 mL({ws:e,local:n,sessionId:r}){return x.jsx(gL,{ws:e,local:n,sessionId:r},e.id)}function gL({ws:e,local:n,sessionId:r}){const i=ur(),[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(A2,{children:[x.jsx(qr,{size:15,className:"shrink-0 text-add"}),x.jsx("span",{className:"truncate font-medium text-add",children:f.msg})]});const g=fL(e,n);if(!g)return null;const{label:p,tone:y,icon:b}=hL[g],C=async()=>{d(!0),h(null);try{const B=await Me.merge(e.id);B.ok?(h({ok:!0,msg:`Merged${B.method?` (${B.method})`:""}`}),i.invalidateQueries({queryKey:["state"]}),i.invalidateQueries({queryKey:["diff",e.id]})):(h({ok:!1,msg:B.error||"Merge failed"}),o(!1))}catch(B){h({ok:!1,msg:B instanceof Error?B.message:String(B)}),o(!1)}finally{d(!1)}},v=async()=>{d(!0),h(null);try{const B=await Me.continueWorkspace(e.id,r);B.ok?(h({ok:!0,msg:B.workspace?.branch?`Continued on ${B.workspace.branch}`:"Continued on a new branch",continued:!0}),i.invalidateQueries({queryKey:["state"]}),i.invalidateQueries({queryKey:["diff",e.id]})):h({ok:!1,msg:B.error||"Could not continue this workspace"})}catch(B){h({ok:!1,msg:B instanceof Error?B.message:String(B)})}finally{d(!1)}},A=async B=>{if(!e.active_session_id)return h({ok:!1,msg:"No active session to message"});d(!0),h(null);try{const j=await Me.sendPrompt(e.active_session_id,pL[B],e.id);h(j.ok?{ok:!0,msg:"Asked the agent"}:{ok:!1,msg:j.error||"Send failed"})}catch(j){h({ok:!1,msg:j instanceof Error?j.message:String(j)})}finally{d(!1)}};return x.jsxs(A2,{tint:g==="merge"?"add":g==="merged"?"merged":void 0,children:[e.pr_number?x.jsxs("a",{href:e.pr_url??void 0,target:"_blank",rel:"noreferrer",className:pe("flex shrink-0 items-center gap-0.5 rounded-md px-1.5 py-0.5 font-mono text-[11px] active:bg-surface",g==="merged"?"bg-pr-merged/15 text-pr-merged":"bg-surface-2 text-muted"),children:["#",e.pr_number,x.jsx(P7,{size:12})]}):null,x.jsxs("span",{className:pe("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}),Fi(f.msg)?x.jsx(ga,{className:"shrink-0 text-[11px]"}):null]}):null,g==="merge"||g==="checks"?l?x.jsxs(x.Fragment,{children:[x.jsx(EL,{onClick:()=>o(!1)}),x.jsx(_l,{onClick:C,busy:u,className:g==="merge"?"bg-add text-on-solid":"bg-working text-on-solid",children:"Confirm"})]}):x.jsxs(_l,{onClick:()=>o(!0),className:g==="merge"?"bg-add text-on-solid":"border border-border bg-surface-2 text-text",children:[x.jsx(k8,{size:13}),"Merge"]}):g==="push"?x.jsx(_l,{onClick:()=>A("push"),busy:u,className:"bg-working text-on-solid",children:"Commit & push"}):g==="resolve"?x.jsx(_l,{onClick:()=>A("resolve"),busy:u,className:"border border-border bg-surface-2 text-text",children:"Resolve"}):g==="merged"?x.jsxs(_l,{onClick:v,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(vv,{size:13}),"Continue"]}):null]})]})}function _l({onClick:e,busy:n,title:r,className:i,children:l}){return x.jsxs("button",{type:"button",onClick:e,disabled:n,title:r,className:pe("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:[n?x.jsx(Tn,{size:13,className:"animate-spin"}):null,l]})}function EL({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 yL={add:"bg-add/10",merged:"bg-pr-merged/10"};function A2({tint:e,children:n}){return x.jsx("div",{className:pe("sticky top-0 z-10 flex items-center gap-2 border-b border-border-soft px-3 py-2 backdrop-blur",e?yL[e]:"bg-surface/95"),children:n})}function v5({review:e,sessionId:n,scope:r,selectedFile:i,onSelectFile:l}){const{workspace:o,query:u,filesQuery:d}=e,{data:f,isLoading:h,isError:g,error:p}=u,y=f?{dirty:f.dirty,unpushed:f.unpushed}:void 0,b=D.useMemo(()=>C5(r,f?.files??[],d.data?.files??[]),[r,f?.files,d.data?.files]),C=r==="changed"?h:d.isLoading,v=r==="changed"?g:d.isError,A=r==="changed"?p:d.error,B=r==="changed"?!!f:!!d.data;return x.jsxs("div",{className:"min-h-0 flex flex-1 flex-col",children:[x.jsx(mL,{ws:o,local:y,sessionId:n}),C&&!B?x.jsx(Dr,{label:r==="changed"?"Computing diff…":"Listing files…"}):null,v&&!B?x.jsx(tn,{children:A?.message}):null,!C&&!v&&!B?x.jsx(tn,{children:r==="changed"?"No diff.":"No file list."}):null,r==="changed"&&f?.files.length===0?x.jsxs(tn,{children:["No changes vs ",x.jsx("span",{className:"font-mono",children:f.base}),"."]}):null,r==="all"&&d.data?.files.length===0?x.jsx(tn,{children:"No previewable files in this workspace."}):null,B&&b.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"&&f?x.jsxs(x.Fragment,{children:["vs ",x.jsx("span",{className:"font-mono text-faint",children:f.base})," · ",b.length," file",b.length===1?"":"s"]}):x.jsxs(x.Fragment,{children:[b.length,d.data?.truncated?"+":""," previewable file",b.length===1?"":"s"]})}),x.jsx(bL,{files:b,selectedFile:i,onSelectFile:l})]}):null]})}function bL({files:e,selectedFile:n,onSelectFile:r}){return x.jsx("ul",{className:"grid min-h-0 flex-1 auto-rows-min grid-cols-[minmax(0,1fr)_auto_auto] items-center gap-x-2 gap-y-1 overflow-y-auto overscroll-contain px-2 py-2 font-mono text-[12px]",children:e.map(i=>{const l=i.path===n;return x.jsx("li",{className:"col-span-3 grid grid-cols-subgrid items-center",children:x.jsxs("button",{type:"button",title:i.path,onClick:()=>r(i.path),"aria-pressed":l,className:pe("col-span-3 grid min-w-0 grid-cols-subgrid items-center rounded-md px-2 py-1.5 text-left transition hover:bg-surface-2 focus-visible:outline-2 focus-visible:outline-accent active:bg-surface-2",l&&"bg-accent-soft"),children:[x.jsx("span",{className:pe("truncate",l?"text-text":"text-muted"),children:i.path}),x.jsx("span",{className:"text-right text-add",children:i.added?`+${i.added}`:null}),x.jsx("span",{className:"text-right text-del",children:i.removed?`−${i.removed}`:null})]})},i.path)})})}function CL({review:e,filePath:n,scope:r,onSelectFile:i,onShowFiles:l,onClose:o}){const{workspace:u,query:d,filesQuery:f}=e,{data:h,isLoading:g,isError:p,error:y}=d,b=D.useMemo(()=>C5(r,h?.files??[],f.data?.files??[]),[r,h?.files,f.data?.files]),C=b.findIndex(R=>R.path===n),v=C>=0?b[C]:void 0,A=D.useMemo(()=>r==="changed"&&h?dL(h.patch,h.files,n):null,[r,h,n]),B=C>0?b[C-1]:void 0,j=C>=0&&C<b.length-1?b[C+1]:void 0,S=r==="all"&&u.worktree?`${u.worktree}/${n}`:null,N=Qw(S,r==="all"),T=r==="changed"?"changed file":"file",F=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 ${n}`:`Source of ${n}`,children:[x.jsx(Of,{title:x.jsxs("span",{className:"flex items-baseline gap-2",children:[x.jsx("span",{children:r==="changed"?"Changes":"Source"}),r==="changed"&&v?.added?x.jsxs("span",{className:"text-xs font-normal text-add",children:["+",v.added]}):null,r==="changed"&&v?.removed?x.jsxs("span",{className:"text-xs font-normal text-del",children:["−",v.removed]}):null]}),subtitle:v?.path??n,actions:x.jsxs("div",{className:"flex shrink-0 items-center gap-0.5 lg:hidden",children:[x.jsx("button",{type:"button",onClick:()=>B&&i(B.path),disabled:!B,"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(KC,{size:17})}),x.jsx("span",{className:"min-w-9 text-center text-[11px] tabular-nums text-faint",children:C>=0?`${C+1}/${b.length}`:"—"}),x.jsx("button",{type:"button",onClick:()=>j&&i(j.path),disabled:!j,"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(ZC,{size:17})}),x.jsx("button",{type:"button",onClick:l,"aria-label":`Show ${F}`,className:"flex size-8 items-center justify-center rounded-full text-muted transition active:bg-surface-2",children:x.jsx(B8,{size:17})})]}),onClose:o,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:[g&&!h?x.jsx(Dr,{label:"Loading changes…"}):null,p?x.jsx(tn,{children:y?.message}):null,h&&C<0?x.jsx(tn,{children:"This file is no longer changed."}):null,h&&C>=0&&A===null?x.jsx(tn,{children:h.truncated?"This file falls beyond the workspace diff preview.":"No textual patch is available for this file."}):null,A!==null?x.jsx(h5,{patch:A,className:"min-w-max p-4"}):null]}):x.jsxs(x.Fragment,{children:[N.isLoading&&!N.data?x.jsx(Dr,{label:"Reading source…"}):null,N.isError&&!N.data?x.jsx(tn,{children:N.error?.message}):null,!f.isLoading&&!u.worktree?x.jsx(tn,{children:"Workspace files are unavailable."}):null,N.data?x.jsx(i5,{preview:N.data}):null]})})]})}const vL=/^[a-z][a-z0-9_-]{0,63}$/,k2=["none","low","medium","high","xhigh","max","ultracode"],B2=e=>({version:1,roles:Object.fromEntries(Object.entries(e.roles).map(([n,r])=>[n,{...r}]))}),AL=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 kL(e,n){const i=[void 0,...n==="codex"?k2:k2.filter(o=>o!=="none")],l=i.indexOf(e);return i[(l+1)%i.length]}function BL(e,n){const r={...e};return n===void 0?delete r.effort:r.effort=n,r}function DL(e,n){const r={...e,model:n},i=Bs(n);return tf(i)||delete r.effort,nf(i)||delete r.fast,r}function wL(e,n){if(!O8(e.model,n))return"Choose an exact model from Conductor’s picker.";const r=Bs(e.model);return r?e.effort!==void 0&&!tf(r)?"Conductor does not expose a reasoning control for this provider. Select its model again to clear Effort.":e.effort==="none"&&r!=="codex"?"None effort is available only for Codex.":e.fast!==void 0&&!nf(r)?"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 FL(e,n){return O8(e.model,n)?Bs(e.model)??null:null}function D2(e,n,r,i){return e&&!n&&r!==void 0&&i===0}function A5({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 SL({name:e,role:n,models:r,agentType:i=null,invalid:l,onChange:o,onRemove:u,canRemove:d}){const f=i??Bs(n.model)??null,h=tf(f),g=nf(f);return x.jsxs("section",{className:pe("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(A5,{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(GB,{size:14})})]}),x.jsxs("div",{className:"flex min-w-0 flex-wrap items-center gap-1.5",children:[x.jsx(E5,{value:n.model,models:r,placement:"below",empty:"No picker models are cached yet.",onSelect:p=>o(DL(n,p)),renderTrigger:({picking:p,toggle:y})=>x.jsxs("button",{type:"button",onClick:y,"aria-label":`Choose model for ${e}, currently ${n.model}`,"aria-haspopup":"menu","aria-expanded":p,className:pe("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(ro,{agentType:i,model:n.model,className:"size-3.5"}),x.jsx("span",{className:"truncate",children:n.model})]})}),h?x.jsxs("button",{type:"button",onClick:()=>o(BL(n,kL(n.effort,f))),"aria-label":`Reasoning effort for ${e}: ${n.effort?Ql[n.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(Wg,{effort:n.effort??""}),n.effort?Ql[n.effort]:"Effort"]}):null,g?x.jsxs("button",{type:"button",onClick:()=>o({...n,fast:!n.fast}),"aria-label":`Fast mode for ${e} ${n.fast?"on":"off"}`,"aria-pressed":n.fast===!0,className:pe("flex h-8 items-center gap-1 rounded-lg border border-border px-2 text-xs text-muted active:bg-surface-2",n.fast&&"bg-surface-2 text-text"),children:[x.jsx(ef,{size:13})," Fast"]}):null]}),l?x.jsxs("p",{className:"mt-2 flex items-start gap-1.5 text-xs text-del",children:[x.jsx(sc,{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:n.preamble??"",onChange:p=>o({...n,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 k5({onClose:e}){const n=ur(),r=lf(),i=oc(),[l,o]=D.useState(null),[u,d]=D.useState(!1),[f,h]=D.useState(!1),[g,p]=D.useState(null),[y,b]=D.useState("");D.useEffect(()=>{r.data&&!u&&o(B2(r.data))},[r.data,u]);const C=i.data?.groups,v=D.useMemo(()=>C?.flatMap(I=>I.models)??[],[C]),A=new Map(r.data?.issues.map(I=>[I.role,I.error.message])??[]),B=l,j=new Map;if(B)for(const[I,O]of Object.entries(B.roles)){const $=C?wL(O,C):A.get(I);$&&j.set(I,$)}const S=(I,O)=>{B&&(o({version:1,roles:{...B.roles,[I]:O}}),d(!0),p(null))},N=I=>{if(!B||Object.keys(B.roles).length<=1)return;const{[I]:O,...$}=B.roles;o({version:1,roles:$}),d(!0)},T=y.trim().toLowerCase().replace(/\s+/g,"-"),F=y&&!vL.test(T)?"Use lowercase letters, numbers, dashes, or underscores.":T&&B?.roles[T]?"That role already exists.":null,R=()=>{!B||!T||F||(o({version:1,roles:{...B.roles,[T]:{model:"Choose a model",fast:!1,preamble:AL(T)}}}),b(""),d(!0))},L=async()=>{if(!(!B||!D2(u,f,C,j.size))){h(!0),p(null);try{const I=await Me.updateRoles(B);if(!I.ok){p(I.error.message);return}o(B2(I.config)),d(!1),await n.invalidateQueries({queryKey:["roles"]})}catch(I){p(I instanceof Error?I.message:String(I))}finally{h(!1)}}};return Gr.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(Pf,{})]}),x.jsx("p",{className:"text-[11px] text-faint",children:"Cross-provider delegated chats"})]}),x.jsxs("button",{type:"button",disabled:!D2(u,f,C,j.size),onClick:()=>{L()},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(Tn,{size:15,className:"animate-spin"}):x.jsx(Uk,{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(Cn,{size:20})})]}),x.jsx("div",{className:"pb-safe min-h-0 flex-1 overflow-y-auto p-3",children:r.isLoading&&!B?x.jsx(Dr,{label:"Loading roles…"}):r.isError&&!B?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."}):B?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(B.roles).map(([I,O])=>x.jsx(SL,{name:I,role:O,models:v,agentType:C?FL(O,C):null,invalid:j.get(I),onChange:$=>S(I,$),onRemove:()=>N(I),canRemove:Object.keys(B.roles).length>1},I)),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:I=>b(I.target.value),onKeyDown:I=>{I.key==="Enter"&&R()},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:!T||!!F,onClick:R,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(Wd,{size:14})," Add"]})]}),F?x.jsx("p",{className:"mt-1.5 px-1 text-xs text-del",children:F}):null]}),j.size?x.jsx("p",{className:"text-xs text-del",children:"Choose the missing picker models before saving or delegating."}):null,g?x.jsx("p",{className:"rounded-xl border border-del/40 bg-del/5 p-3 text-xs text-del",children:g}):null,x.jsx("p",{className:"px-1 text-[11px] leading-relaxed text-faint",children:"Roles configure ordinary chats. Changes apply only to future jobs; accepted jobs keep their frozen model and effort."})]}):null})]}),document.body)}function NL({workspace:e,agentsRunning:n}){const[r,i]=D.useState(!1),[l,o]=D.useState(!1),[u,d]=D.useState(null),[f,h]=D.useState(null),g=Be(j=>j.online),p=ur(),y=uf(e),b=()=>{i(!1),o(!1)},C=async j=>{if(!u&&(b(),j!==y)){d(j),h(null);try{const S=await Me.setStatus(e.id,j);S.ok||h(S.error??"status change failed"),await p.invalidateQueries({queryKey:["state"]})}catch(S){h(S instanceof Error?S.message:"status change failed")}finally{d(null)}}},v=async()=>{if(!u){b(),d("archive"),h(null);try{const j=await Me.archive(e.id,n>0);j.ok||h(j.error??"archiving failed"),await p.invalidateQueries({queryKey:["state"]}),await p.invalidateQueries({queryKey:["workspace",e.id]})}catch(j){h(j instanceof Error?j.message:"archiving failed")}finally{d(null)}}},B=u==="archive"?y:u??y;return x.jsxs(x.Fragment,{children:[x.jsx("button",{type:"button",onClick:()=>r?b():i(!0),disabled:!g||u!==null,"aria-label":`Workspace menu: ${yd(y)}`,"aria-expanded":r,className:pe("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":_L(B)}}):x.jsx(w2,{status:B})}),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:n>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:v,className:"rounded-lg bg-del px-2.5 py-1 text-xs font-semibold text-on-solid active:scale-95",children:n>0?"Stop agents and archive":"Archive"})]})]}):x.jsxs(x.Fragment,{children:[xS.map(j=>x.jsxs("button",{type:"button",onClick:()=>C(j),className:"flex w-full items-center gap-2 px-3 py-2.5 text-left text-sm active:bg-surface-2",children:[x.jsx(w2,{status:j}),x.jsx("span",{className:"flex-1",children:yd(j)}),j===y?x.jsx(qr,{size:15,className:"text-accent"}):null]},j)),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(Kd,{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 _L(e){return xf[e]??"var(--color-faint)"}function w2({status:e}){const n=xf[e];return n?x.jsx("span",{className:"dot size-2.5",style:{background:n}}):x.jsx("span",{className:"dot size-2.5 border border-faint bg-transparent"})}function ML(){const{workspaceId:e}=yb(),[n,r]=g8(),i=n.get("session"),l=be=>r({session:be},{replace:!0}),[o,u]=D.useState(!1),[d,f]=D.useState("changed"),[h,g]=D.useState(null),[p,y]=D.useState(!1),b=h&&h.workspaceId===e?h.path:null,[C,v]=D.useState(!1),[A,B]=D.useState(null),[j,S]=D.useState(!1),[N,T]=D.useState(null),[F,R]=D.useState(null),[L,I]=D.useState(null),[O,$]=D.useState(null),[Q,le]=D.useState(null),ee=ur(),Y=_i(),{data:P,isLoading:V}=tg(),Z=P?.workspaces.find(be=>be.id===e),xe=Vw(e,o&&!!Z),M=!!P&&!Z,{data:z}=rg(e,!M),X=Be(be=>be.workingHints),w=Be(be=>be.pending),W=Be(be=>be.readMarks),fe=Be(be=>be.markRead),he=Be(be=>be.setDraft),De=Be(be=>be.online),Ce=Z,Fe=P?.actuator,{data:at,isLoading:mt}=$w(e,M),Lt=qw(e,!!Z?.worktree,o&&d==="all"),{data:kt}=Lt,we=Z?.worktree??null,Ae=kt?.files,tt=D.useMemo(()=>({resolveMention:kg(we,Ae),worktree:we}),[we,Ae]),Qe=z?.sessions??[],Tt=Ce?.active_session_id&&Qe.some(be=>be.id===Ce.active_session_id)?Ce.active_session_id:null,Ue=(i&&Qe.some(be=>be.id===i)?i:null)??Tt??Qe[0]?.id??null,Ct=Qe.find(be=>be.id===Ue),wt={...z?.session_roles??{},...Ce?.session_roles??{}},cn=Ce?.delegations??[],Pn=D.useMemo(()=>new Set(cn.flatMap(be=>be.childSessionId?[be.childSessionId]:[])),[cn]),Ye=Ct?.updated_at;if(D.useEffect(()=>{Ce&&Ue&&Ye&&document.visibilityState==="visible"&&fe(Ue,Ye)},[Ce,Ue,Ye,fe]),iF(Ue,Ye),!Ce)return at?x.jsx(Yz,{workspace:at.workspace}):x.jsxs("div",{className:"flex h-full flex-col overflow-hidden",children:[x.jsx(bd,{title:"Session",menu:!0}),V||M&&mt?x.jsx(Dr,{}):x.jsx("div",{className:"p-6 text-center text-sm text-muted",children:"Workspace not found."})]});const nn=Ue?X[Ue]:void 0,se=Ct?.status==="working"||nn!==void 0&&Date.now()-nn<gd,me=Ct?.turn_started_at?Xn(Ct.turn_started_at):null,je=(Ct?.status==="working"?me??nn:nn??me)??null,Ke=Date.now(),it=Object.fromEntries(Qe.map(be=>{const yt=X[be.id],U=[...be.id===Ue&&Ce.pending_prompt?[Ce.pending_prompt]:[],...(Ce.parked_prompts??[]).filter(ie=>ie.sessionId===be.id)];return[be.id,$8(w.filter(ie=>ie.sessionId===be.id),U,yt!==void 0&&Ke-yt<gd)]})),Ht=[Ce.repo_name,Ce.branch,j8(Ce.model)].filter(Boolean).join(" · "),un=async()=>{if(!j){S(!0);try{const be=await Me.newChat(Ce.id);be.ok&&(await ee.invalidateQueries({queryKey:["sessions",Ce.id]}),be.sessionId&&l(be.sessionId))}finally{S(!1)}}},Gt=async(be,yt=!1)=>{if(N||!De)return;const U=Qe.find(ie=>ie.id===be);if((U?.status==="working"||U?.background_tasks.length)&&!yt){R(be),I(null);return}T(be),R(null),I(null);try{const ie=await Me.closeChat(be,Ce.id,yt);if(!ie.ok)throw new Error(ie.error??"Could not close this chat");Ue===be&&(ie.activeSessionId?l(ie.activeSessionId):r({},{replace:!0})),await Promise.all([ee.invalidateQueries({queryKey:["sessions",Ce.id]}),ee.invalidateQueries({queryKey:["state"]})])}catch(ie){ie instanceof Br&&ie.status===409&&/still working/i.test(ie.message)?R(be):I(ie instanceof Error?ie.message:"Could not close this chat")}finally{T(null)}},Bt=async({thinking:be,tools:yt,through:U,only:ie,destination:ke="chat"},Ge)=>{if(!Ue)return;const nt=await Me.splitChat(Ue,Ce.id,be,yt,U,ie,ke);if(!nt.ok)throw new Error(nt.error??"Could not fork this chat");const Ft=nt.sessionId??(ke==="workspace"?nt.workspaceId:null);if(!Ft)throw new Error("The new chat opened, but its id was not available");if(he(Ft,[nt.text,Ge?.trim()].filter(Boolean).join(`
|
|
51
|
+
`)),nt.sessionId&&$(nt.sessionId),ke==="workspace"){await ee.invalidateQueries({queryKey:["state"]}),Y(nt.sessionId?`/w/${nt.workspaceId}?session=${encodeURIComponent(nt.sessionId)}`:`/w/${nt.workspaceId}`);return}await ee.invalidateQueries({queryKey:["sessions",Ce.id]}),nt.sessionId&&l(nt.sessionId)},Vt=()=>{u(!1),g(null),y(!1)},re=()=>{g(null),y(!0)},ht=()=>{o?Vt():(u(!0),y(!0))},gt=be=>{g({workspaceId:Ce.id,path:be}),y(!1)},oe=be=>{f(be),be==="all"&&Ce.worktree&&Lt.refetch()},ut={workspace:Ce,query:xe,filesQuery:Lt},St=async be=>{B(null);try{const yt=await Me.dismissDelegation(be);if(!yt.ok)throw new Error(yt.error.message);await ee.invalidateQueries({queryKey:["state"]})}catch(yt){B(yt instanceof Error?yt.message:String(yt))}};return x.jsx(rS,{value:tt,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(bd,{title:$r(Ce),subtitle:Ht,menu:!0,right:x.jsxs(x.Fragment,{children:[x.jsx(uL,{workspaceId:Ce.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(lc,{size:18})}),x.jsx(NL,{workspace:Ce,agentsRunning:Qe.filter(be=>be.status==="working").length}),x.jsx(jL,{stats:Ce.change_stats,open:o,onToggle:ht})]})}),Qe.length>0||Ce.state==="ready"?x.jsx(TL,{sessions:Qe,activeId:Ue,readMarks:W,promptStates:it,roles:wt,subtabSessionIds:Pn,onSelect:l,onContext:be=>le({workspaceId:Ce.id,id:be.id,title:be.title}),onNewChat:un,onClose:be=>{Gt(be)},creating:j,closingId:N,online:De}):null,F?x.jsx(RL,{title:Qe.find(be=>be.id===F)?.title??"Untitled",busy:N===F,onCancel:()=>R(null),onConfirm:()=>{Gt(F,!0)}}):L?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:L}),Fi(L)?x.jsx(ga,{}):null,x.jsx("button",{type:"button",onClick:()=>I(null),"aria-label":"Dismiss close error",className:"p-1",children:x.jsx(Cn,{size:14})})]}):null,x.jsx(mz,{jobs:cn,sessions:Qe,roles:wt,activeSessionId:Ue,onSelectSession:l}),Ce.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??Ce.delegation_warning}):null,x.jsxs("div",{className:"relative min-h-0 flex flex-1 flex-col",children:[b?x.jsx(CL,{review:ut,filePath:b,scope:d,onSelectFile:gt,onShowFiles:()=>y(!0),onClose:re},b):x.jsx(p5,{sessionId:Ue,workspaceId:Ce.id,working:se,workingSince:je,turnStartedAt:Ct?.turn_started_at,waiting:Ct?.background_tasks,delegations:cn,queued:Ce.parked_prompts?.find(be=>be.sessionId===Ue)??Ce.pending_prompt,onFork:Bt,onSelectSession:l,onDismissDelegation:be=>{St(be)},onOpenRoles:()=>v(!0)}),o&&(p||!b)?x.jsx(LL,{review:ut,sessionId:Ue,scope:d,onScopeChange:oe,selectedFile:b,onSelectFile:gt,onClose:Vt}):null]}),x.jsx(aL,{session:Ct,sessionId:Ue,workspaceId:Ce.id,working:se,actuator:Fe,onFork:be=>Bt({thinking:!0,tools:!1},be),onContext:Ct?()=>le({workspaceId:Ce.id,id:Ct.id,title:Ct.title}):void 0,workflowStarted:!!(Ue&&wt[Ue])||!!(Ce.pending_prompt&&Ue===Ce.active_session_id),focusDraft:Ue===O,onDraftFocused:()=>$(null)},Ce.id)]}),o?x.jsx(zL,{review:ut,sessionId:Ue,scope:d,onScopeChange:oe,selectedFile:b,onSelectFile:gt,onClose:Vt}):null,C?x.jsx(k5,{onClose:()=>v(!1)}):null,Q&&Q.workspaceId===e?x.jsx(oL,{sessionId:Q.id,title:Q.title,revision:Qe.find(be=>be.id===Q.id)?.updated_at,onClose:()=>le(null)}):null]})})}function jL({stats:e,open:n,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":n,className:pe("relative flex size-9 shrink-0 items-center justify-center rounded-full text-muted transition active:bg-surface-2",n&&"bg-surface-2 text-text"),children:[x.jsx(v8,{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 TL({sessions:e,activeId:n,readMarks:r,promptStates:i,roles:l={},subtabSessionIds:o,onSelect:u,onContext:d,onNewChat:f,onClose:h,creating:g,closingId:p,online:y}){const b=D.useRef(null),C=e.filter(A=>!l[A.id]?.delegationId&&!o?.has(A.id)),v=C.some(A=>A.id===n);return D.useLayoutEffect(()=>{n&&v&&b.current?.scrollIntoView({block:"nearest",inline:"nearest"})},[n,v]),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(A=>{const B=i[A.id],j=typeof A.context_used_percent=="number"&&A.context_used_percent>0;return x.jsxs("div",{ref:A.id===n?b:void 0,className:pe("flex shrink-0 items-center rounded-full text-sm font-medium text-muted transition",A.id===n&&"bg-surface-2 text-text"),children:[x.jsxs("button",{type:"button",onClick:()=>u(A.id),className:pe("flex min-w-0 items-center gap-1.5 py-1.5 pl-3.5",e.length>1||j?"pr-1":"pr-3.5"),children:[B?x.jsx(Mg,{state:B,className:"size-3"}):A.status==="working"?x.jsx("span",{className:"dot-spinner size-3"}):A.background_tasks?.length?x.jsx(Zd,{size:11,className:"shrink-0 text-faint","aria-label":"Waiting for a background task"}):null,x.jsx("span",{className:"max-w-36 truncate",children:A.title||"Untitled"}),l[A.id]?x.jsx(A5,{name:l[A.id].role}):null,uw(A,r)?x.jsx("span",{className:"dot size-1.5 bg-accent"}):null]}),x.jsx(OL,{session:A,onOpen:()=>d(A)}),e.length>1?x.jsx("button",{type:"button",onClick:()=>h(A.id),disabled:!y||p!==null,"aria-label":`Close ${A.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===A.id?x.jsx(Tn,{size:12,className:"animate-spin"}):x.jsx(Cn,{size:12})}):null]},A.id)})}),x.jsx("button",{type:"button",onClick:f,disabled:g,"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(Wd,{size:18})})]})}function RL({title:e,busy:n,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:n,className:"rounded-lg px-2 py-1 text-muted active:bg-surface-2",children:"Cancel"}),x.jsxs("button",{type:"button",onClick:i,disabled:n,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:[n?x.jsx(Tn,{size:12,className:"animate-spin"}):null,"Close anyway"]})]})}function OL({session:e,onOpen:n}){const r=e.context_used_percent;return typeof r!="number"||r<=0?null:x.jsxs("button",{type:"button",onClick:n,"aria-label":`Context for ${e.title||"Untitled"}: ${Math.round(r)}% used`,"aria-haspopup":"dialog",className:pe("mr-1 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 B5({scope:e,onChange:n}){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:()=>n(r),"aria-label":r==="changed"?"Changed files":"All files","aria-pressed":e===r,className:pe("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 zL({review:e,sessionId:n,scope:r,onScopeChange:i,selectedFile:l,onSelectFile:o,onClose:u}){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(B5,{scope:r,onChange:i}),x.jsx("button",{type:"button",onClick:u,"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(Cn,{size:20})})]}),x.jsx(v5,{review:e,sessionId:n,scope:r,selectedFile:l,onSelectFile:o})]})}function LL({review:e,sessionId:n,scope:r,onScopeChange:i,selectedFile:l,onSelectFile:o,onClose:u}){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(B5,{scope:r,onChange:i}),x.jsx("button",{type:"button",onClick:u,"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(Cn,{size:20})})]}),x.jsx(v5,{review:e,sessionId:n,scope:r,selectedFile:l,onSelectFile:o})]})}var G0={exports:{}},PL=G0.exports,F2;function IL(){return F2||(F2=1,(function(e,n){(function(i,l){e.exports=l()})(typeof self<"u"?self:PL,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,g,p){for(var y=f;y<f+g;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,g,p){this.primitive=h,this.size=g,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,g){return h===0||g===0?0:this.expTable[(this.logTable[h]+this.logTable[g])%(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,g){if(h<0)throw new Error("Invalid monomial degree less than 0");if(g===0)return this.zero;var p=new Uint8ClampedArray(h+1);return p[0]=g,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 g=h.length;if(g>1&&h[0]===0){for(var p=1;p<g&&h[p]===0;)p++;if(p===g)this.coefficients=f.zero.coefficients;else{this.coefficients=new Uint8ClampedArray(g-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 g=this.coefficients,p=f.coefficients;g.length>p.length&&(h=[p,g],g=h[0],p=h[1]);for(var y=new Uint8ClampedArray(p.length),b=p.length-g.length,C=0;C<b;C++)y[C]=p[C];for(var C=b;C<p.length;C++)y[C]=o.addOrSubtractGF(g[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,g=new Uint8ClampedArray(h),p=0;p<h;p++)g[p]=this.field.multiply(this.coefficients[p],f);return new d(this.field,g)},d.prototype.multiplyPoly=function(f){if(this.isZero()||f.isZero())return this.field.zero;for(var h=this.coefficients,g=h.length,p=f.coefficients,y=p.length,b=new Uint8ClampedArray(g+y-1),C=0;C<g;C++)for(var v=h[C],A=0;A<y;A++)b[C+A]=o.addOrSubtractGF(b[C+A],this.field.multiply(v,p[A]));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 g=this.coefficients.length,p=new Uint8ClampedArray(g+f),y=0;y<g;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 g=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<g;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,v=b;C<v.length;C++){var A=v[C],B=d.extract(y,A),j=u.decode(B.matrix);if(j)return{binaryData:j.bytes,data:j.text,chunks:j.chunks,version:j.version,location:{topRightCorner:B.mappingFunction(A.dimension,0),topLeftCorner:B.mappingFunction(0,0),bottomRightCorner:B.mappingFunction(A.dimension,A.dimension),bottomLeftCorner:B.mappingFunction(0,A.dimension),topRightFinderPattern:A.topRight,topLeftFinderPattern:A.topLeft,bottomLeftFinderPattern:A.bottomLeft,bottomRightAlignmentPattern:A.alignmentPattern}}}return null}var g={inversionAttempts:"attemptBoth"};function p(y,b,C,v){v===void 0&&(v={});var A=g;Object.keys(A||{}).forEach(function(R){A[R]=v[R]||A[R]});var B=A.inversionAttempts==="attemptBoth"||A.inversionAttempts==="invertFirst",j=A.inversionAttempts==="onlyInvert"||A.inversionAttempts==="invertFirst",S=o.binarize(y,b,C,B),N=S.binarized,T=S.inverted,F=h(j?T:N);return!F&&(A.inversionAttempts==="attemptBoth"||A.inversionAttempts==="invertFirst")&&(F=h(j?N:T)),F}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 g(p,y,b,C){if(p.length!==y*b*4)throw new Error("Malformed data passed to binarizer.");for(var v=new h(y,b),A=0;A<y;A++)for(var B=0;B<b;B++){var j=p[(B*y+A)*4+0],S=p[(B*y+A)*4+1],N=p[(B*y+A)*4+2];v.set(A,B,.2126*j+.7152*S+.0722*N)}for(var T=Math.ceil(y/u),F=Math.ceil(b/u),R=new h(T,F),L=0;L<F;L++)for(var I=0;I<T;I++){for(var O=0,$=1/0,Q=0,B=0;B<u;B++)for(var A=0;A<u;A++){var le=v.get(I*u+A,L*u+B);O+=le,$=Math.min($,le),Q=Math.max(Q,le)}var ee=O/Math.pow(u,2);if(Q-$<=d&&(ee=$/2,L>0&&I>0)){var Y=(R.get(I,L-1)+2*R.get(I-1,L)+R.get(I-1,L-1))/4;$<Y&&(ee=Y)}R.set(I,L,ee)}var P=o.BitMatrix.createEmpty(y,b),V=null;C&&(V=o.BitMatrix.createEmpty(y,b));for(var L=0;L<F;L++)for(var I=0;I<T;I++){for(var Z=f(I,2,T-3),xe=f(L,2,F-3),O=0,M=-2;M<=2;M++)for(var z=-2;z<=2;z++)O+=R.get(Z+M,xe+z);for(var X=O/25,M=0;M<u;M++)for(var z=0;z<u;z++){var A=I*u+M,B=L*u+z,w=v.get(A,B);P.set(A,B,w<=X),C&&V.set(A,B,!(w<=X))}}return C?{binarized:P,inverted:V}:{binarized:P}}i.binarize=g}),(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(N,T){for(var F=N^T,R=0;F;)R++,F&=F-1;return R}function g(N,T){return T<<1|N}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(N){return(N.y+N.x)%2===0},function(N){return N.y%2===0},function(N){return N.x%3===0},function(N){return(N.y+N.x)%3===0},function(N){return(Math.floor(N.y/2)+Math.floor(N.x/3))%2===0},function(N){return N.x*N.y%2+N.x*N.y%3===0},function(N){return(N.y*N.x%2+N.y*N.x%3)%2===0},function(N){return((N.y+N.x)%2+N.y*N.x%3)%2===0}];function b(N){var T=17+4*N.versionNumber,F=o.BitMatrix.createEmpty(T,T);F.setRegion(0,0,9,9,!0),F.setRegion(T-8,0,8,9,!0),F.setRegion(0,T-8,9,8,!0);for(var R=0,L=N.alignmentPatternCenters;R<L.length;R++)for(var I=L[R],O=0,$=N.alignmentPatternCenters;O<$.length;O++){var Q=$[O];I===6&&Q===6||I===6&&Q===T-7||I===T-7&&Q===6||F.setRegion(I-2,Q-2,5,5,!0)}return F.setRegion(6,9,1,T-17,!0),F.setRegion(9,6,T-17,1,!0),N.versionNumber>6&&(F.setRegion(T-11,0,3,6,!0),F.setRegion(0,T-11,6,3,!0)),F}function C(N,T,F){for(var R=y[F.dataMask],L=N.height,I=b(T),O=[],$=0,Q=0,le=!0,ee=L-1;ee>0;ee-=2){ee===6&&ee--;for(var Y=0;Y<L;Y++)for(var P=le?L-1-Y:Y,V=0;V<2;V++){var Z=ee-V;if(!I.get(Z,P)){Q++;var xe=N.get(Z,P);R({y:P,x:Z})&&(xe=!xe),$=g(xe,$),Q===8&&(O.push($),Q=0,$=0)}}le=!le}return O}function v(N){var T=N.height,F=Math.floor((T-17)/4);if(F<=6)return f.VERSIONS[F-1];for(var R=0,L=5;L>=0;L--)for(var I=T-9;I>=T-11;I--)R=g(N.get(I,L),R);for(var O=0,I=5;I>=0;I--)for(var L=T-9;L>=T-11;L--)O=g(N.get(I,L),O);for(var $=1/0,Q,le=0,ee=f.VERSIONS;le<ee.length;le++){var Y=ee[le];if(Y.infoBits===R||Y.infoBits===O)return Y;var P=h(R,Y.infoBits);P<$&&(Q=Y,$=P),P=h(O,Y.infoBits),P<$&&(Q=Y,$=P)}if($<=3)return Q}function A(N){for(var T=0,F=0;F<=8;F++)F!==6&&(T=g(N.get(F,8),T));for(var R=7;R>=0;R--)R!==6&&(T=g(N.get(8,R),T));for(var L=N.height,I=0,R=L-1;R>=L-7;R--)I=g(N.get(8,R),I);for(var F=L-8;F<L;F++)I=g(N.get(F,8),I);for(var O=1/0,$=null,Q=0,le=p;Q<le.length;Q++){var ee=le[Q],Y=ee.bits,P=ee.formatInfo;if(Y===T||Y===I)return P;var V=h(T,Y);V<O&&($=P,O=V),T!==I&&(V=h(I,Y),V<O&&($=P,O=V))}return O<=3?$:null}function B(N,T,F){var R=T.errorCorrectionLevels[F],L=[],I=0;if(R.ecBlocks.forEach(function(xe){for(var M=0;M<xe.numBlocks;M++)L.push({numDataCodewords:xe.dataCodewordsPerBlock,codewords:[]}),I+=xe.dataCodewordsPerBlock+R.ecCodewordsPerBlock}),N.length<I)return null;N=N.slice(0,I);for(var O=R.ecBlocks[0].dataCodewordsPerBlock,$=0;$<O;$++)for(var Q=0,le=L;Q<le.length;Q++){var ee=le[Q];ee.codewords.push(N.shift())}if(R.ecBlocks.length>1)for(var Y=R.ecBlocks[0].numBlocks,P=R.ecBlocks[1].numBlocks,$=0;$<P;$++)L[Y+$].codewords.push(N.shift());for(;N.length>0;)for(var V=0,Z=L;V<Z.length;V++){var ee=Z[V];ee.codewords.push(N.shift())}return L}function j(N){var T=v(N);if(!T)return null;var F=A(N);if(!F)return null;var R=C(N,T,F),L=B(R,T,F.errorCorrectionLevel);if(!L)return null;for(var I=L.reduce(function(V,Z){return V+Z.numDataCodewords},0),O=new Uint8ClampedArray(I),$=0,Q=0,le=L;Q<le.length;Q++){var ee=le[Q],Y=d.decode(ee.codewords,ee.codewords.length-ee.numDataCodewords);if(!Y)return null;for(var P=0;P<ee.numDataCodewords;P++)O[$++]=Y[P]}try{return u.decode(O,T.versionNumber)}catch{return null}}function S(N){if(N==null)return null;var T=j(N);if(T)return T;for(var F=0;F<N.width;F++)for(var R=F+1;R<N.height;R++)N.get(F,R)!==N.get(R,F)&&(N.set(F,R,!N.get(F,R)),N.set(R,F,!N.get(R,F)));return j(N)}i.decode=S}),(function(r,i,l){Object.defineProperty(i,"__esModule",{value:!0});var o=l(7),u=l(8),d;(function(v){v.Numeric="numeric",v.Alphanumeric="alphanumeric",v.Byte="byte",v.Kanji="kanji",v.ECI="eci"})(d=i.Mode||(i.Mode={}));var f;(function(v){v[v.Terminator=0]="Terminator",v[v.Numeric=1]="Numeric",v[v.Alphanumeric=2]="Alphanumeric",v[v.Byte=4]="Byte",v[v.Kanji=8]="Kanji",v[v.ECI=7]="ECI"})(f||(f={}));function h(v,A){for(var B=[],j="",S=[10,12,14][A],N=v.readBits(S);N>=3;){var T=v.readBits(10);if(T>=1e3)throw new Error("Invalid numeric value above 999");var F=Math.floor(T/100),R=Math.floor(T/10)%10,L=T%10;B.push(48+F,48+R,48+L),j+=F.toString()+R.toString()+L.toString(),N-=3}if(N===2){var T=v.readBits(7);if(T>=100)throw new Error("Invalid numeric value above 99");var F=Math.floor(T/10),R=T%10;B.push(48+F,48+R),j+=F.toString()+R.toString()}else if(N===1){var T=v.readBits(4);if(T>=10)throw new Error("Invalid numeric value above 9");B.push(48+T),j+=T.toString()}return{bytes:B,text:j}}var g=["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(v,A){for(var B=[],j="",S=[9,11,13][A],N=v.readBits(S);N>=2;){var T=v.readBits(11),F=Math.floor(T/45),R=T%45;B.push(g[F].charCodeAt(0),g[R].charCodeAt(0)),j+=g[F]+g[R],N-=2}if(N===1){var F=v.readBits(6);B.push(g[F].charCodeAt(0)),j+=g[F]}return{bytes:B,text:j}}function y(v,A){for(var B=[],j="",S=[8,16,16][A],N=v.readBits(S),T=0;T<N;T++){var F=v.readBits(8);B.push(F)}try{j+=decodeURIComponent(B.map(function(R){return"%"+("0"+R.toString(16)).substr(-2)}).join(""))}catch{}return{bytes:B,text:j}}function b(v,A){for(var B=[],j="",S=[8,10,12][A],N=v.readBits(S),T=0;T<N;T++){var F=v.readBits(13),R=Math.floor(F/192)<<8|F%192;R<7936?R+=33088:R+=49472,B.push(R>>8,R&255),j+=String.fromCharCode(u.shiftJISTable[R])}return{bytes:B,text:j}}function C(v,A){for(var B,j,S,N,T=new o.BitStream(v),F=A<=9?0:A<=26?1:2,R={text:"",bytes:[],chunks:[],version:A};T.available()>=4;){var L=T.readBits(4);if(L===f.Terminator)return R;if(L===f.ECI)T.readBits(1)===0?R.chunks.push({type:d.ECI,assignmentNumber:T.readBits(7)}):T.readBits(1)===0?R.chunks.push({type:d.ECI,assignmentNumber:T.readBits(14)}):T.readBits(1)===0?R.chunks.push({type:d.ECI,assignmentNumber:T.readBits(21)}):R.chunks.push({type:d.ECI,assignmentNumber:-1});else if(L===f.Numeric){var I=h(T,F);R.text+=I.text,(B=R.bytes).push.apply(B,I.bytes),R.chunks.push({type:d.Numeric,text:I.text})}else if(L===f.Alphanumeric){var O=p(T,F);R.text+=O.text,(j=R.bytes).push.apply(j,O.bytes),R.chunks.push({type:d.Alphanumeric,text:O.text})}else if(L===f.Byte){var $=y(T,F);R.text+=$.text,(S=R.bytes).push.apply(S,$.bytes),R.chunks.push({type:d.Byte,bytes:$.bytes,text:$.text})}else if(L===f.Kanji){var Q=b(T,F);R.text+=Q.text,(N=R.bytes).push.apply(N,Q.bytes),R.chunks.push({type:d.Kanji,bytes:Q.bytes,text:Q.text})}}if(T.available()===0||T.readBits(T.available())===0)return R}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,g=d<h?d:h,p=h-g,y=255>>8-g<<p;f=(this.bytes[this.byteOffset]&y)>>p,d-=g,this.bitOffset+=g,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 v;y.degree()<b.degree()&&(v=[b,y],y=v[0],b=v[1]);for(var A=y,B=b,j=p.zero,S=p.one;B.degree()>=C/2;){var N=A,T=j;if(A=B,j=S,A.isZero())return null;B=N;for(var F=p.zero,R=A.getCoefficient(A.degree()),L=p.inverse(R);B.degree()>=A.degree()&&!B.isZero();){var I=B.degree()-A.degree(),O=p.multiply(B.getCoefficient(B.degree()),L);F=F.addOrSubtract(p.buildMonomial(I,O)),B=B.addOrSubtract(A.multiplyByMonomial(I,O))}if(S=F.multiplyPoly(j).addOrSubtract(T),B.degree()>=A.degree())return null}var $=S.getCoefficient(0);if($===0)return null;var Q=p.inverse($);return[S.multiply(Q),B.multiply(Q)]}function f(p,y){var b=y.degree();if(b===1)return[y.getCoefficient(1)];for(var C=new Array(b),v=0,A=1;A<p.size&&v<b;A++)y.evaluateAt(A)===0&&(C[v]=p.inverse(A),v++);return v!==b?null:C}function h(p,y,b){for(var C=b.length,v=new Array(C),A=0;A<C;A++){for(var B=p.inverse(b[A]),j=1,S=0;S<C;S++)A!==S&&(j=p.multiply(j,o.addOrSubtractGF(1,p.multiply(b[S],B))));v[A]=p.multiply(y.evaluateAt(B),p.inverse(j)),p.generatorBase!==0&&(v[A]=p.multiply(v[A],B))}return v}function g(p,y){var b=new Uint8ClampedArray(p.length);b.set(p);for(var C=new o.default(285,256,0),v=new u.default(C,b),A=new Uint8ClampedArray(y),B=!1,j=0;j<y;j++){var S=v.evaluateAt(C.exp(j+C.generatorBase));A[A.length-1-j]=S,S!==0&&(B=!0)}if(!B)return b;var N=new u.default(C,A),T=d(C,C.buildMonomial(y,1),N,y);if(T===null)return null;var F=f(C,T[0]);if(F==null)return null;for(var R=h(C,T[1],F),L=0;L<F.length;L++){var I=b.length-1-C.log(F[L]);if(I<0)return null;b[I]=o.addOrSubtractGF(b[I],R[L])}return b}i.decode=g}),(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(g,p,y,b){var C=g.x-p.x+y.x-b.x,v=g.y-p.y+y.y-b.y;if(C===0&&v===0)return{a11:p.x-g.x,a12:p.y-g.y,a13:0,a21:y.x-p.x,a22:y.y-p.y,a23:0,a31:g.x,a32:g.y,a33:1};var A=p.x-y.x,B=b.x-y.x,j=p.y-y.y,S=b.y-y.y,N=A*S-B*j,T=(C*S-B*v)/N,F=(A*v-C*j)/N;return{a11:p.x-g.x+T*p.x,a12:p.y-g.y+T*p.y,a13:T,a21:b.x-g.x+F*b.x,a22:b.y-g.y+F*b.y,a23:F,a31:g.x,a32:g.y,a33:1}}function d(g,p,y,b){var C=u(g,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(g,p){return{a11:g.a11*p.a11+g.a21*p.a12+g.a31*p.a13,a12:g.a12*p.a11+g.a22*p.a12+g.a32*p.a13,a13:g.a13*p.a11+g.a23*p.a12+g.a33*p.a13,a21:g.a11*p.a21+g.a21*p.a22+g.a31*p.a23,a22:g.a12*p.a21+g.a22*p.a22+g.a32*p.a23,a23:g.a13*p.a21+g.a23*p.a22+g.a33*p.a23,a31:g.a11*p.a31+g.a21*p.a32+g.a31*p.a33,a32:g.a12*p.a31+g.a22*p.a32+g.a32*p.a33,a33:g.a13*p.a31+g.a23*p.a32+g.a33*p.a33}}function h(g,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),v=o.BitMatrix.createEmpty(p.dimension,p.dimension),A=function(F,R){var L=C.a13*F+C.a23*R+C.a33;return{x:(C.a11*F+C.a21*R+C.a31)/L,y:(C.a12*F+C.a22*R+C.a32)/L}},B=0;B<p.dimension;B++)for(var j=0;j<p.dimension;j++){var S=j+.5,N=B+.5,T=A(S,N);v.set(j,B,g.get(Math.floor(T.x),Math.floor(T.y)))}return{matrix:v,mappingFunction:A}}i.extract=h}),(function(r,i,l){Object.defineProperty(i,"__esModule",{value:!0});var o=4,u=.5,d=1.5,f=function(S,N){return Math.sqrt(Math.pow(N.x-S.x,2)+Math.pow(N.y-S.y,2))};function h(S){return S.reduce(function(N,T){return N+T})}function g(S,N,T){var F,R,L,I,O=f(S,N),$=f(N,T),Q=f(S,T),le,ee,Y;return $>=O&&$>=Q?(F=[N,S,T],le=F[0],ee=F[1],Y=F[2]):Q>=$&&Q>=O?(R=[S,N,T],le=R[0],ee=R[1],Y=R[2]):(L=[S,T,N],le=L[0],ee=L[1],Y=L[2]),(Y.x-ee.x)*(le.y-ee.y)-(Y.y-ee.y)*(le.x-ee.x)<0&&(I=[Y,le],le=I[0],Y=I[1]),{bottomLeft:le,topLeft:ee,topRight:Y}}function p(S,N,T,F){var R=(h(b(S,T,F,5))/7+h(b(S,N,F,5))/7+h(b(T,S,F,5))/7+h(b(N,S,F,5))/7)/4;if(R<1)throw new Error("Invalid module size");var L=Math.round(f(S,N)/R),I=Math.round(f(S,T)/R),O=Math.floor((L+I)/2)+7;switch(O%4){case 0:O++;break;case 2:O--;break}return{dimension:O,moduleSize:R}}function y(S,N,T,F){var R=[{x:Math.floor(S.x),y:Math.floor(S.y)}],L=Math.abs(N.y-S.y)>Math.abs(N.x-S.x),I,O,$,Q;L?(I=Math.floor(S.y),O=Math.floor(S.x),$=Math.floor(N.y),Q=Math.floor(N.x)):(I=Math.floor(S.x),O=Math.floor(S.y),$=Math.floor(N.x),Q=Math.floor(N.y));for(var le=Math.abs($-I),ee=Math.abs(Q-O),Y=Math.floor(-le/2),P=I<$?1:-1,V=O<Q?1:-1,Z=!0,xe=I,M=O;xe!==$+P;xe+=P){var z=L?M:xe,X=L?xe:M;if(T.get(z,X)!==Z&&(Z=!Z,R.push({x:z,y:X}),R.length===F+1))break;if(Y+=ee,Y>0){if(M===Q)break;M+=V,Y-=le}}for(var w=[],W=0;W<F;W++)R[W]&&R[W+1]?w.push(f(R[W],R[W+1])):w.push(0);return w}function b(S,N,T,F){var R,L=N.y-S.y,I=N.x-S.x,O=y(S,N,T,Math.ceil(F/2)),$=y(S,{x:S.x-I,y:S.y-L},T,Math.ceil(F/2)),Q=O.shift()+$.shift()-1;return(R=$.concat(Q)).concat.apply(R,O)}function C(S,N){var T=h(S)/h(N),F=0;return N.forEach(function(R,L){F+=Math.pow(S[L]-R*T,2)}),{averageSize:T,error:F}}function v(S,N,T){try{var F=b(S,{x:-1,y:S.y},T,N.length),R=b(S,{x:S.x,y:-1},T,N.length),L={x:Math.max(0,S.x-S.y)-1,y:Math.max(0,S.y-S.x)-1},I=b(S,L,T,N.length),O={x:Math.min(T.width,S.x+S.y)+1,y:Math.min(T.height,S.y+S.x)+1},$=b(S,O,T,N.length),Q=C(F,N),le=C(R,N),ee=C(I,N),Y=C($,N),P=Math.sqrt(Q.error*Q.error+le.error*le.error+ee.error*ee.error+Y.error*Y.error),V=(Q.averageSize+le.averageSize+ee.averageSize+Y.averageSize)/4,Z=(Math.pow(Q.averageSize-V,2)+Math.pow(le.averageSize-V,2)+Math.pow(ee.averageSize-V,2)+Math.pow(Y.averageSize-V,2))/V;return P+Z}catch{return 1/0}}function A(S,N){for(var T=Math.round(N.x);S.get(T,Math.round(N.y));)T--;for(var F=Math.round(N.x);S.get(F,Math.round(N.y));)F++;for(var R=(T+F)/2,L=Math.round(N.y);S.get(Math.round(R),L);)L--;for(var I=Math.round(N.y);S.get(Math.round(R),I);)I++;var O=(L+I)/2;return{x:R,y:O}}function B(S){for(var N=[],T=[],F=[],R=[],L=function(z){for(var X=0,w=!1,W=[0,0,0,0,0],fe=function(De){var Ce=S.get(De,z);if(Ce===w)X++;else{W=[W[1],W[2],W[3],W[4],X],X=1,w=Ce;var Fe=h(W)/7,at=Math.abs(W[0]-Fe)<Fe&&Math.abs(W[1]-Fe)<Fe&&Math.abs(W[2]-3*Fe)<3*Fe&&Math.abs(W[3]-Fe)<Fe&&Math.abs(W[4]-Fe)<Fe&&!Ce,mt=h(W.slice(-3))/3,Lt=Math.abs(W[2]-mt)<mt&&Math.abs(W[3]-mt)<mt&&Math.abs(W[4]-mt)<mt&&Ce;if(at){var kt=De-W[3]-W[4],we=kt-W[2],Ae={startX:we,endX:kt,y:z},tt=T.filter(function(Ue){return we>=Ue.bottom.startX&&we<=Ue.bottom.endX||kt>=Ue.bottom.startX&&we<=Ue.bottom.endX||we<=Ue.bottom.startX&&kt>=Ue.bottom.endX&&W[2]/(Ue.bottom.endX-Ue.bottom.startX)<d&&W[2]/(Ue.bottom.endX-Ue.bottom.startX)>u});tt.length>0?tt[0].bottom=Ae:T.push({top:Ae,bottom:Ae})}if(Lt){var Qe=De-W[4],Tt=Qe-W[3],Ae={startX:Tt,y:z,endX:Qe},tt=R.filter(function(wt){return Tt>=wt.bottom.startX&&Tt<=wt.bottom.endX||Qe>=wt.bottom.startX&&Tt<=wt.bottom.endX||Tt<=wt.bottom.startX&&Qe>=wt.bottom.endX&&W[2]/(wt.bottom.endX-wt.bottom.startX)<d&&W[2]/(wt.bottom.endX-wt.bottom.startX)>u});tt.length>0?tt[0].bottom=Ae:R.push({top:Ae,bottom:Ae})}}},he=-1;he<=S.width;he++)fe(he);N.push.apply(N,T.filter(function(De){return De.bottom.y!==z&&De.bottom.y-De.top.y>=2})),T=T.filter(function(De){return De.bottom.y===z}),F.push.apply(F,R.filter(function(De){return De.bottom.y!==z})),R=R.filter(function(De){return De.bottom.y===z})},I=0;I<=S.height;I++)L(I);N.push.apply(N,T.filter(function(z){return z.bottom.y-z.top.y>=2})),F.push.apply(F,R);var O=N.filter(function(z){return z.bottom.y-z.top.y>=2}).map(function(z){var X=(z.top.startX+z.top.endX+z.bottom.startX+z.bottom.endX)/4,w=(z.top.y+z.bottom.y+1)/2;if(S.get(Math.round(X),Math.round(w))){var W=[z.top.endX-z.top.startX,z.bottom.endX-z.bottom.startX,z.bottom.y-z.top.y+1],fe=h(W)/W.length,he=v({x:Math.round(X),y:Math.round(w)},[1,1,3,1,1],S);return{score:he,x:X,y:w,size:fe}}}).filter(function(z){return!!z}).sort(function(z,X){return z.score-X.score}).map(function(z,X,w){if(X>o)return null;var W=w.filter(function(he,De){return X!==De}).map(function(he){return{x:he.x,y:he.y,score:he.score+Math.pow(he.size-z.size,2)/z.size,size:he.size}}).sort(function(he,De){return he.score-De.score});if(W.length<2)return null;var fe=z.score+W[0].score+W[1].score;return{points:[z].concat(W.slice(0,2)),score:fe}}).filter(function(z){return!!z}).sort(function(z,X){return z.score-X.score});if(O.length===0)return null;var $=g(O[0].points[0],O[0].points[1],O[0].points[2]),Q=$.topRight,le=$.topLeft,ee=$.bottomLeft,Y=j(S,F,Q,le,ee),P=[];Y&&P.push({alignmentPattern:{x:Y.alignmentPattern.x,y:Y.alignmentPattern.y},bottomLeft:{x:ee.x,y:ee.y},dimension:Y.dimension,topLeft:{x:le.x,y:le.y},topRight:{x:Q.x,y:Q.y}});var V=A(S,Q),Z=A(S,le),xe=A(S,ee),M=j(S,F,V,Z,xe);return M&&P.push({alignmentPattern:{x:M.alignmentPattern.x,y:M.alignmentPattern.y},bottomLeft:{x:xe.x,y:xe.y},topLeft:{x:Z.x,y:Z.y},topRight:{x:V.x,y:V.y},dimension:M.dimension}),P.length===0?null:P}i.locate=B;function j(S,N,T,F,R){var L,I,O;try{L=p(F,T,R,S),I=L.dimension,O=L.moduleSize}catch{return null}var $={x:T.x-F.x+R.x,y:T.y-F.y+R.y},Q=(f(F,R)+f(F,T))/2/O,le=1-3/Q,ee={x:F.x+le*($.x-F.x),y:F.y+le*($.y-F.y)},Y=N.map(function(V){var Z=(V.top.startX+V.top.endX+V.bottom.startX+V.bottom.endX)/4,xe=(V.top.y+V.bottom.y+1)/2;if(S.get(Math.floor(Z),Math.floor(xe))){var M=[V.top.endX-V.top.startX,V.bottom.endX-V.bottom.startX,V.bottom.y-V.top.y+1];h(M)/M.length;var z=v({x:Math.floor(Z),y:Math.floor(xe)},[1,1,1],S),X=z+f({x:Z,y:xe},ee);return{x:Z,y:xe,score:X}}}).filter(function(V){return!!V}).sort(function(V,Z){return V.score-Z.score}),P=Q>=15&&Y.length?Y[0]:ee;return{alignmentPattern:P,dimension:I}}})]).default})})(G0)),G0.exports}var UL=IL();const HL=Zl(UL);function $L({onResult:e,onClose:n}){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}),g=()=>{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),v=HL(y,b,C,{inversionAttempts:"dontInvert"});if(v?.data){d=!0,e(v.data);return}}u=requestAnimationFrame(g)}};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(g))}).catch(p=>l(qL(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:n,"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(Cn,{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 qL(e){const n=e instanceof DOMException?e.name:"";return n==="NotAllowedError"?"Camera permission denied. Allow camera access, or paste the token instead.":n==="NotFoundError"||n==="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 GL(){const e=Be(h=>h.setToken),[n,r]=D.useState(""),[i,l]=D.useState(!1),[o,u]=D.useState(!1),d=h=>{const g=QD(h);u(!1),g?e(g):l(!0)},f=h=>{h.preventDefault(),d(n)};return o?x.jsx($L,{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:n,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(F8,{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 Wx={voice:"marin",language:"auto"},D5="conductor-remote-voice";function VL(e=localStorage){try{const n=JSON.parse(e.getItem(D5)??"{}");return{voice:zD(n.voice)?n.voice:Wx.voice,language:LD(n.language)?n.language:Wx.language}}catch{return Wx}}function QL(e,n=localStorage){try{n.setItem(D5,JSON.stringify(e))}catch{}}function Cr(e,n){return typeof e[n]=="string"?e[n]:null}function YL(e){let n=e;if(typeof n=="string")try{n=JSON.parse(n)}catch{return null}if(!n||typeof n!="object")return null;const r=n,i=Cr(r,"type"),l=Cr(r,"item_id")??Cr(r,"call_id")??"voice-item";if(i==="conversation.item.input_audio_transcription.delta"){const o=Cr(r,"delta");return o===null?null:{kind:"input-delta",itemId:l,text:o}}if(i==="conversation.item.input_audio_transcription.completed"){const o=Cr(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=Cr(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=Cr(r,"transcript");return o===null?null:{kind:"output-done",itemId:l,text:o}}if(i==="response.output_text.delta"){const o=Cr(r,"delta");return o===null?null:{kind:"output-delta",itemId:l,text:o}}if(i==="response.output_text.done"){const o=Cr(r,"text");return o===null?null:{kind:"output-done",itemId:l,text:o}}if(i==="response.function_call_arguments.done"){const o=Cr(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?Cr(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&&Cr(o,"message")||"Voice call failed"}}return null}function KL(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 w5=D.createContext(null);function L0(e){return[...e.values()].join(" ").trimStart()}function XL(e){return e instanceof DOMException&&(e.name==="NotAllowedError"||e.name==="SecurityError")}function ZL({children:e}){const[n,r]=D.useState(!1),[i,l]=D.useState("idle"),[o,u]=D.useState(!1),[d,f]=D.useState(null),[h,g]=D.useState([]),[p,y]=D.useState(""),[b,C]=D.useState(""),[v,A]=D.useState(VL),B=D.useRef("idle"),j=D.useRef(v),S=D.useRef(0),N=D.useRef(null),T=D.useRef(null),F=D.useRef(null),R=D.useRef(null),L=D.useRef(null),I=D.useRef(null),O=D.useRef(new Map),$=D.useRef(new Map),Q=D.useRef(new Set),le=D.useRef(new Set),ee=D.useRef(new Set),Y=D.useRef(null);j.current=v;const P=D.useCallback(we=>{B.current=we,l(we)},[]),V=D.useCallback(we=>{g(Ae=>Ae.some(tt=>tt.id===we.id)?Ae:[...Ae,we])},[]),Z=D.useCallback(()=>{O.current.clear(),$.current.clear(),y(""),C("")},[]),xe=D.useCallback(()=>{S.current+=1,Y.current&&clearTimeout(Y.current),Y.current=null;try{T.current?.close()}catch{}try{N.current?.close()}catch{}for(const we of F.current?.getTracks()??[])we.stop();L.current&&(L.current.srcObject=null),N.current=null,T.current=null,F.current=null,R.current=null,L.current=null,I.current=null,Z()},[Z]),M=D.useCallback(we=>{const Ae=I.current;xe(),u(!1),P("idle"),f(we),Ae&&Me.voiceCallEnd(Ae).catch(()=>{})},[xe,P]),z=D.useCallback(we=>{const Ae=YL(we);if(Ae)switch(Ae.kind){case"input-delta":O.current.set(Ae.itemId,(O.current.get(Ae.itemId)??"")+Ae.text),y(L0(O.current));return;case"input-done":{O.current.delete(Ae.itemId),y(L0(O.current)),!Q.current.has(Ae.itemId)&&Ae.text.trim()&&(Q.current.add(Ae.itemId),V({id:`user:${Ae.itemId}`,role:"user",text:Ae.text.trim()})),B.current!=="speaking"&&P("thinking");return}case"output-delta":$.current.set(Ae.itemId,($.current.get(Ae.itemId)??"")+Ae.text),C(L0($.current)),P("speaking");return;case"output-done":{const tt=(Ae.text||$.current.get(Ae.itemId)||"").trim();$.current.delete(Ae.itemId),C(L0($.current)),!le.current.has(Ae.itemId)&&tt&&(le.current.add(Ae.itemId),V({id:`assistant:${Ae.itemId}`,role:"assistant",text:tt}));return}case"tool":ee.current.has(Ae.itemId)||(ee.current.add(Ae.itemId),V({id:`tool:${Ae.itemId}`,role:"activity",text:KL(Ae.name)})),P("thinking");return;case"speech-started":P("listening");return;case"response-started":P("thinking");return;case"response-done":Ae.error&&f(Ae.error),P("connected");return;case"error":f(Ae.text),B.current!=="idle"&&P("connected")}},[V,P]),X=D.useCallback(async()=>{if(B.current!=="idle")return;if(typeof RTCPeerConnection>"u"||!navigator.mediaDevices?.getUserMedia){f("This browser does not support WebRTC calling");return}r(!0),f(null),g([]),Z(),Q.current.clear(),le.current.clear(),ee.current.clear(),u(!1),P("connecting");const we=++S.current;try{const Ae=await navigator.mediaDevices.getUserMedia({audio:{echoCancellation:!0,noiseSuppression:!0,autoGainControl:!0}});if(we!==S.current){for(const Ye of Ae.getTracks())Ye.stop();return}const tt=Ae.getAudioTracks()[0];if(!tt)throw new Error("No microphone was available");tt.enabled=!1,F.current=Ae,R.current=tt;const Qe=new RTCPeerConnection,Tt=Qe.createDataChannel("oai-events"),Ue=document.createElement("audio");Ue.autoplay=!0,Ue.setAttribute("playsinline",""),N.current=Qe,T.current=Tt,L.current=Ue,Qe.addTrack(tt,Ae),Qe.addEventListener("track",Ye=>{we===S.current&&(Ue.srcObject=Ye.streams[0]??new MediaStream([Ye.track]),Ue.play().catch(()=>f("Tap the audio notice to hear this call")))}),Tt.addEventListener("message",Ye=>{we===S.current&&z(Ye.data)}),Tt.addEventListener("close",()=>{we===S.current&&B.current!=="idle"&&M("The control-room call closed")}),Qe.addEventListener("connectionstatechange",()=>{if(we===S.current){if(Qe.connectionState==="connected"&&Y.current&&(clearTimeout(Y.current),Y.current=null),Qe.connectionState==="failed"||Qe.connectionState==="closed")return M("The control-room connection failed");Qe.connectionState==="disconnected"&&!Y.current&&(Y.current=setTimeout(()=>{Y.current=null,we===S.current&&Qe.connectionState==="disconnected"&&M("The control-room connection was lost")},4e3))}});const Ct=await Qe.createOffer();await Qe.setLocalDescription(Ct);const wt=Qe.localDescription?.sdp;if(!wt)throw new Error("The browser did not create a WebRTC offer");const cn=await Me.voiceCall(wt,j.current.voice,j.current.language);if(we!==S.current){Me.voiceCallEnd(cn.callId).catch(()=>{});return}if(I.current=cn.callId,await Qe.setRemoteDescription({type:"answer",sdp:cn.sdp}),await new Promise((Ye,nn)=>{if(Tt.readyState==="open")return Ye();const se=setTimeout(()=>nn(new Error("Voice event channel did not open")),8e3);Tt.addEventListener("open",()=>{clearTimeout(se),Ye()},{once:!0})}),await Me.voiceCallReady(cn.callId),we!==S.current)return;tt.enabled=!0,B.current==="connecting"&&P("connected")}catch(Ae){if(we!==S.current)return;M(XL(Ae)?"Microphone access was denied — allow it in this site’s settings and try again":Ae instanceof Error?Ae.message:String(Ae))}},[Z,M,z,P]),w=D.useCallback(()=>{const we=I.current;xe(),u(!1),P("idle"),f(null),we&&Me.voiceCallEnd(we).catch(()=>{})},[xe,P]),W=D.useCallback(()=>{B.current==="idle"||B.current==="connecting"||u(we=>{const Ae=!we;return R.current&&(R.current.enabled=!Ae),Ae})},[]),fe=D.useCallback(we=>{const Ae=we.trim(),tt=T.current;if(!Ae||tt?.readyState!=="open"||B.current!=="connected")return!1;const Qe=crypto.randomUUID();return V({id:`typed:${Qe}`,role:"user",text:Ae}),tt.send(JSON.stringify({type:"conversation.item.create",item:{type:"message",role:"user",content:[{type:"input_text",text:Ae}]}})),tt.send(JSON.stringify({type:"response.create"})),P("thinking"),!0},[V,P]),he=D.useCallback(we=>{B.current==="idle"&&A(Ae=>{const tt={...Ae,...we};return j.current=tt,QL(tt),tt})},[]),De=D.useCallback(()=>{L.current?.play().then(()=>f(null)).catch(()=>f("This browser is still blocking call audio"))},[]),Ce=D.useCallback(()=>r(!0),[]),Fe=D.useCallback(()=>r(!1),[]),at=D.useCallback(()=>f(null),[]),mt=D.useCallback(we=>he({voice:we}),[he]),Lt=D.useCallback(we=>he({language:we}),[he]);D.useEffect(()=>()=>{const we=I.current;xe(),we&&Me.voiceCallEnd(we).catch(()=>{})},[xe]);const kt=D.useMemo(()=>({panelOpen:n,status:i,muted:o,error:d,entries:h,inputPartial:p,outputPartial:b,preferences:v,openPanel:Ce,closePanel:Fe,startCall:X,endCall:w,toggleMute:W,sendText:fe,dismissError:at,enableAudio:De,setVoice:mt,setLanguage:Lt}),[n,i,o,d,h,p,b,v,Ce,Fe,X,w,W,fe,at,De,mt,Lt]);return x.jsx(w5.Provider,{value:kt,children:e})}function F5(){const e=D.useContext(w5);if(!e)throw new Error("useVoiceCall must be used inside VoiceCallProvider");return e}const WL=[["auto","Auto detect"],["no","Norsk"],["en","English"]];function JL(e){return e[0].toUpperCase()+e.slice(1)}function S2(e,n){return e==="idle"?"Not connected":e==="connecting"?"Connecting…":e==="listening"?n?"Microphone muted":"Listening":e==="thinking"?"Checking the fleet…":e==="speaking"?"Orchestrator speaking":n?"Microphone muted":"Connected"}function eP(){const e=F5(),n=Be(g=>g.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 g=p=>{p.key==="Escape"&&e.closePanel()};return window.addEventListener("keydown",g),()=>window.removeEventListener("keydown",g)},[e.panelOpen,e.closePanel]),D.useEffect(()=>{if(!e.panelOpen||!d)return;const g=l.current;g&&(g.scrollTop=g.scrollHeight)},[e.panelOpen,d]),!e.panelOpen)return null;const f=g=>{g.preventDefault(),e.sendText(r)&&i("")},h=e.error?.toLowerCase().includes("audio")??!1;return Gr.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:pe("grid size-9 shrink-0 place-items-center rounded-full bg-surface-2 text-muted",o&&"bg-voice-soft text-voice"),children:x.jsx(U0,{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(Pf,{})]}),x.jsxs("p",{className:"flex items-center gap-1.5 text-xs text-muted",children:[o?x.jsx("span",{className:pe("size-1.5 rounded-full bg-voice",(e.status==="listening"||e.status==="speaking")&&"animate-pulse")}):null,x.jsxs("span",{className:"truncate",children:["All workspaces · ",S2(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(Cn,{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(Tn,{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(g=>g.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"}),g.text]},g.id):x.jsx("div",{className:pe("max-w-[88%] rounded-2xl px-3.5 py-2.5 text-sm leading-relaxed",g.role==="user"?"ml-auto rounded-br-md bg-voice-soft text-text":"mr-auto rounded-bl-md bg-surface-2 text-text"),children:g.text},g.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:g=>i(g.target.value),disabled:!u,placeholder:u?"Type to the orchestrator…":S2(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(Vk,{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:pe("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(ik,{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(U0,{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:g=>e.setVoice(g.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:L8.map(g=>x.jsx("option",{value:g,children:JL(g)},g))})]}),x.jsxs("label",{className:"text-xs font-medium text-muted",children:["Language",x.jsx("select",{value:e.preferences.language,onChange:g=>e.setLanguage(g.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:WL.map(([g,p])=>x.jsx("option",{value:g,children:p},g))})]})]}),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:!n,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(U0,{size:18}),n?"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)}function tP({total:e,shown:n,hidden:r,repoFiltered:i}){if(e)return!i&&!r?`${e} active`:[`${n} of ${e}`,r?`${r} hidden`:null].filter(Boolean).join(" · ")}function nP(e,n,r){const i=n.includes(r)?n.filter(l=>l!==r):[...n,r];return e.length>0&&e.every(l=>i.includes(l))?[]:i}const rP=new Intl.NumberFormat("en",{notation:"compact"});function N2(e){return rP.format(Math.max(0,e)).toLowerCase()}function _2(e,n){return`${e.toLocaleString("en")} ${e===1?"line":"lines"} ${n}`}function aP({stats:e,className:n}){if(!e||e.added<=0&&e.removed<=0)return null;const r=[e.added>0?_2(e.added,"added"):null,e.removed>0?_2(e.removed,"removed"):null].filter(Boolean).join(", ");return x.jsxs("span",{className:pe("flex shrink-0 items-center gap-1 font-mono text-[10px] font-medium leading-none tabular-nums",n),title:r,children:[x.jsx("span",{className:"sr-only",children:r}),e.added>0?x.jsxs("span",{className:"text-add","aria-hidden":"true",children:["+",N2(e.added)]}):null,e.removed>0?x.jsxs("span",{className:"text-del","aria-hidden":"true",children:["-",N2(e.removed)]}):null]})}const S5="conductor-remote-theme",iP={light:"#f5f6f8",dark:"#0a0b0e"};function sP(e){return e==="light"||e==="dark"||e==="system"?e:"system"}function N5(e){try{return sP((e??localStorage).getItem(S5))}catch{return"system"}}function lP(e,n){return e==="system"?n?"dark":"light":e}function oP(){return typeof window<"u"&&window.matchMedia("(prefers-color-scheme: dark)").matches}function _5(e,n=oP()){if(typeof document>"u")return;e==="system"?delete document.documentElement.dataset.theme:document.documentElement.dataset.theme=e;const r=lP(e,n);document.querySelector('meta[name="theme-color"]')?.setAttribute("content",iP[r])}function cP(e,n){try{(n??localStorage).setItem(S5,e)}catch{}_5(e)}function uP(){if(typeof window>"u")return()=>{};const e=window.matchMedia("(prefers-color-scheme: dark)"),n=()=>_5(N5(),e.matches);return e.addEventListener("change",n),n(),()=>e.removeEventListener("change",n)}const Xl=new Uint8Array(512),Rd=new Uint8Array(256);let Ml=1;for(let e=0;e<255;e++)Xl[e]=Ml,Rd[Ml]=e,Ml<<=1,Ml&256&&(Ml^=285);for(let e=255;e<512;e++)Xl[e]=Xl[e-255];function M5(e,n){return e===0||n===0?0:Xl[Rd[e]+Rd[n]]}function xP(e){let n=[1];for(let r=0;r<e;r++){const i=new Array(n.length+1).fill(0);for(let l=0;l<n.length;l++)i[l]^=n[l],i[l+1]^=M5(n[l],Xl[r]);n=i}return n}function dP(e,n){const r=xP(n),i=new Array(n).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<n;u++)i[u]^=M5(r[u+1],o)}return i}const If={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 M2(e){return If[e].groups.reduce((n,[r,i])=>n+r*i,0)}function j2(e){return e<=9?8:16}function jl(e,n,r){for(let i=r-1;i>=0;i--)e.push(n>>i&1)}function fP(e){const n=Array.from(new TextEncoder().encode(e));let r=0;for(let C=1;C<=10;C++)if(4+j2(C)+8*n.length<=M2(C)*8){r=C;break}if(r===0)throw new Error(`data too long for a v1–10 QR (${n.length} bytes)`);const i=M2(r)*8,l=[];jl(l,4,4),jl(l,n.length,j2(r));for(const C of n)jl(l,C,8);for(let C=0,v=Math.min(4,i-l.length);C<v;C++)l.push(0);for(;l.length%8!==0;)l.push(0);const o=[236,17];for(let C=0;l.length<i;C++)jl(l,o[C%2],8);const u=[];for(let C=0;C<l.length;C+=8){let v=0;for(let A=0;A<8;A++)v=v<<1|l[C+A];u.push(v)}const{ec:d,groups:f}=If[r],h=[];let g=0;for(const[C,v]of f)for(let A=0;A<C;A++){const B=u.slice(g,g+v);g+=v,h.push({data:B,ec:dP(B,d)})}const p=[],y=Math.max(...h.map(C=>C.data.length));for(let C=0;C<y;C++)for(const v of h)C<v.data.length&&p.push(v.data[C]);for(let C=0;C<d;C++)for(const v of h)p.push(v.ec[C]);const b=[];for(const C of p)jl(b,C,8);return{version:r,bits:b}}function hP(e,n){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 v=p+b,A=y+C;if(v<0||v>=r||A<0||A>=r)continue;const B=b>=0&&b<=6&&(C===0||C===6)||C>=0&&C<=6&&(b===0||b===6),j=b>=2&&b<=4&&C>=2&&C<=4;i[v][A]=B||j,l[v][A]=!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=If[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],v=u[y];for(let A=-2;A<=2;A++)for(let B=-2;B<=2;B++)i[C+A][v+B]=Math.max(Math.abs(A),Math.abs(B))!==1,l[C+A][v+B]=!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 v=p-C;l[b][v]||(i[b][v]=d<n.length?n[d]===1:!1,d++)}}f=!f}e>=7&&gP(i,e,r);let h=null,g=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 v=0;v<r;v++)!l[C][v]&&pP(p,C,v)&&(y[C][v]=!y[C][v]);mP(y,p,r);const b=EP(y);b<g&&(g=b,h=y)}return h}function pP(e,n,r){switch(e){case 0:return(n+r)%2===0;case 1:return n%2===0;case 2:return r%3===0;case 3:return(n+r)%3===0;case 4:return(Math.floor(n/2)+Math.floor(r/3))%2===0;case 5:return n*r%2+n*r%3===0;case 6:return(n*r%2+n*r%3)%2===0;default:return((n+r)%2+n*r%3)%2===0}}function mP(e,n,r){const i=0|n;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 gP(e,n,r){let i=n;for(let o=0;o<12;o++)i=i<<1^(i>>11&1?7973:0);const l=n<<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 EP(e){const n=e.length;let r=0;const i=f=>{let h=f(0),g=1;for(let p=1;p<n;p++)f(p)===h?g++:(g>=5&&(r+=g-2),h=f(p),g=1);g>=5&&(r+=g-2)};for(let f=0;f<n;f++)i(h=>e[f][h]);for(let f=0;f<n;f++)i(h=>e[h][f]);for(let f=0;f<n-1;f++)for(let h=0;h<n-1;h++){const g=e[f][h];g===e[f][h+1]&&g===e[f+1][h]&&g===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,g)=>{for(let p=0;p<11;p++)if(f(h+p)!==g[p])return!1;return!0};for(let f=0;f<n;f++)for(let h=0;h<=n-11;h++)(u(g=>e[f][g],h,l)||u(g=>e[f][g],h,o))&&(r+=40);for(let f=0;f<n;f++)for(let h=0;h<=n-11;h++)(u(g=>e[g][f],h,l)||u(g=>e[g][f],h,o))&&(r+=40);let d=0;for(let f=0;f<n;f++)for(let h=0;h<n;h++)e[f][h]&&d++;return r+=Math.floor(Math.abs(d/(n*n)*100-50)/5)*10,r}function yP(e){const{version:n,bits:r}=fP(e);return hP(n,r)}function bP({text:e,size:n=220,className:r}){const i=yP(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:n,height:n,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 CP({version:e,onLogs:n,onClose:r}){const i=Be(y=>y.token),l=Be(y=>y.setToken),[o,u]=D.useState(!1),[d,f]=D.useState(!1),h=i?`${location.origin}/#token=${i}`:location.origin,g=!!e&&e!=="1.104.0",p=async()=>{try{await navigator.clipboard.writeText(h),u(!0),setTimeout(()=>u(!1),1500)}catch{}};return Gr.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:pe("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(gA,{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(Cn,{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(bP,{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(qr,{size:16}):x.jsx(Xd,{size:16}),o?"Copied":"Copy link"]}),x.jsx(AP,{}),x.jsx(kP,{}),x.jsx(DP,{}),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:g?"text-working":void 0,children:["app v","1.104.0"]}),g?" · update pending":""]}),x.jsx("button",{type:"button",onClick:n,className:"shrink-0 text-muted underline-offset-2 hover:underline",children:"Logs"})]})]})]})]}),document.body)}const vP=[["system","System"],["light","Light"],["dark","Dark"]];function AP(){const[e,n]=D.useState(N5),r=Be(o=>o.view.showDiffs),i=Be(o=>o.setView),l=o=>{n(o),cP(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(FB,{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:vP.map(([o,u])=>x.jsx("button",{type:"button","aria-pressed":e===o,onClick:()=>l(o),className:pe("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(v8,{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:pe("relative h-6 w-11 shrink-0 rounded-full transition-colors",r?"bg-accent":"border border-border bg-surface"),children:x.jsx("span",{className:pe("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 kP(){const e=tF(),n=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.":n?"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(y8,{size:16,className:pe("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||n||e.busy,onClick:()=>{e.enabled?e.disable():e.enable()},className:pe("relative h-6 w-11 shrink-0 rounded-full transition-colors",e.enabled?"bg-accent":"border border-border bg-surface",(r||n||e.busy)&&"opacity-40"),children:x.jsx("span",{className:pe("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 BP=[{label:"1h",seconds:3600},{label:"4h",seconds:4*3600,className:"hidden min-[400px]:block"},{label:"10h",seconds:10*3600}];function Jx(e){if(!e)return"until you turn it off";const n=new Date(e),r=n.toDateString()===new Date().toDateString(),i=n.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"});return r?`until ${i}`:`until ${n.toLocaleDateString([],{weekday:"short"})} ${i}`}function DP(){const[e,n]=D.useState(null),[r,i]=D.useState(!1),[l,o]=D.useState(null),[u,d]=D.useState(!1),[f,h]=D.useState(!1),[g,p]=D.useState(""),[y,b]=D.useState(null),[C,v]=D.useState("idle"),[A,B]=D.useState(null),j=D.useCallback(async()=>{try{n(await Me.settings()),o(null)}catch(O){o(O instanceof Error?O.message:String(O))}},[]);D.useEffect(()=>{j()},[j]);const S=async O=>{i(!0),o(null);try{return await O(),await j(),!0}catch($){return o($ instanceof Error?$.message:String($)),!1}finally{i(!1)}},N=async O=>{i(!0),o(null);try{const $=await Me.restartConductor(O);B($.ms??0),v("idle"),await j()}catch($){$ instanceof Br&&$.status===409&&v("agents"),o($ instanceof Error?$.message:String($))}finally{i(!1)}},T=async O=>{O.preventDefault();const $=FD(g);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 Q=e?.nosleep.maxSeconds??168*3600;if($>Q){b(`Choose a duration up to ${Math.round(Q/3600)}h.`);return}b(null),d(!1),await S(()=>Me.armNoSleep($))&&h(!1)},F=e?.nosleep,R=e?.screenLocked===!0,L=e?.wifi.known??[],I=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(_8,{size:16,className:pe("shrink-0",F?.armed?"text-accent":"text-muted")}),x.jsx("span",{children:"Keep the Mac awake"})]}),F?.armed?x.jsx("button",{type:"button",disabled:r,onClick:()=>{S(async()=>{const O=await Me.disarmNoSleep();d(O.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:[BP.map(O=>x.jsx("button",{type:"button",disabled:r||!F?.available,onClick:()=>{S(()=>(h(!1),b(null),d(!1),Me.armNoSleep(O.seconds)))},className:pe("rounded-lg border border-border px-2.5 py-1 text-xs active:bg-surface disabled:opacity-40",O.className),children:O.label},O.seconds)),x.jsx("button",{type:"button",disabled:r||!F?.available,"aria-label":"Choose a custom keep-awake duration","aria-expanded":f,onClick:()=>{b(null),h(O=>!O)},className:pe("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(C8,{size:14})})]})]}),!F?.armed&&f?x.jsxs("form",{onSubmit:T,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:g,disabled:r,placeholder:"e.g. 80h",autoCapitalize:"none",autoCorrect:"off",onChange:O=>{p(O.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||!g.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?F?.available?F.armed?F.preventsScreenLock?R?`Awake ${Jx(F.until)}, lid closed. It blocks the idle screen lock from starting; it can’t lift one already up.`:`Awake ${Jx(F.until)}, lid closed. The idle screen lock is off; anyone at the Mac can use it.`:`Awake ${Jx(F.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…"}),R?x.jsxs("p",{className:"text-xs text-del",children:["The Mac is locked right now, so writes park until it’s unlocked. ",x.jsx(ga,{})]}):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(M8,{size:16,className:pe("shrink-0",e?.settings.autoRejoin?"text-accent":"text-muted")}),x.jsx("span",{children:"Fallback network"})]}),I?x.jsx("button",{type:"button",disabled:r,onClick:()=>{S(()=>Me.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]}),I?x.jsxs("p",{className:"mt-1 text-xs text-muted",children:["Auto-joins ",x.jsx("span",{className:"text-fg",children:I})," when the primary network drops."]}):x.jsx(wP,{known:L,hotspots:e?.wifi.likelyHotspots??[],busy:r,onPick:O=>{S(()=>Me.patchSettings({fallbackSsids:[O],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(jk,{size:16,className:"shrink-0 text-muted"}),x.jsx("span",{children:"Restart Conductor"})]}),C==="idle"?x.jsx("button",{type:"button",disabled:r,onClick:()=>{B(null),o(null),v("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]}),A!==null?x.jsxs("p",{className:"mt-1 text-xs text-muted",children:["Quit and reopened in ",(A/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:()=>{v("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:()=>{N(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," ",Fi(l)?x.jsx(ga,{}):null]}):null]})}function wP({known:e,hotspots:n,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(n),d=l.trim().toLowerCase(),f=e.filter(p=>!d||p.toLowerCase().includes(d)),h=f.find(p=>u.has(p)),g=(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:[g.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)),g.length===0?x.jsxs("p",{className:"text-xs text-faint",children:["Nothing matches “",l,"”."]}):null]}),!d&&e.length>g.length?x.jsxs("p",{className:"mt-1 text-xs text-faint",children:["Most recently joined. Search to reach the other ",e.length-g.length,"."]}):null]})}const FP={info:"text-muted",warn:"text-working",error:"text-del"};function Xa(e){return String(e).padStart(2,"0")}function SP(e){if(e==null)return"·";const n=new Date(e);return`${Xa(n.getHours())}:${Xa(n.getMinutes())}:${Xa(n.getSeconds())}`}function T2(e){if(e==null)return" ";const n=new Date(e);return`${n.getFullYear()}-${Xa(n.getMonth()+1)}-${Xa(n.getDate())} ${Xa(n.getHours())}:${Xa(n.getMinutes())}:${Xa(n.getSeconds())}`}function NP(e){return e<1024?`${e} B`:e<1024*1024?`${Math.round(e/1024)} KB`:`${(e/1024/1024).toFixed(1)} MB`}function R2(e){const n=Math.max(0,Math.round(e/1e3));if(n<90)return`${n}s ago`;const r=Math.round(n/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 _P({onClose:e}){const[n,r]=D.useState(null),[i,l]=D.useState(!1),[o,u]=D.useState(null),{data:d,isLoading:f,isError:h,error:g}=Kw(n,!0),p=D.useRef(null),y=D.useRef(!0),b=D.useMemo(()=>(d?.entries??[]).filter(A=>!i||A.level!=="info"),[d,i]);D.useEffect(()=>{const A=p.current;A&&y.current&&b.length&&(A.scrollTop=A.scrollHeight)},[b]);const C=async()=>{const A=`# conductor-remote ${n??"live"} log · app v1.104.0 · copied ${T2(Date.now())}`,B=b.map(j=>`${T2(j.t)} ${j.level==="info"?"":j.level.toUpperCase()} ${j.text}`);try{await navigator.clipboard.writeText([A,...B].join(`
|
|
52
|
+
`)),u("ok")}catch{u("failed")}setTimeout(()=>u(null),2e3)},v=[{key:null,label:"Live",hint:d?`since ${R2(d.now-d.startedAt)}`:void 0},...(d?.files??[]).map(A=>({key:A.name,label:A.name,hint:NP(A.size)}))];return Gr.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 ${R2(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(Cn,{size:18})})]}),x.jsx("div",{className:"flex gap-1.5 overflow-x-auto border-b border-border-soft px-3 py-2",children:v.map(A=>x.jsxs("button",{type:"button",onClick:()=>{y.current=!0,r(A.key)},className:pe("pill shrink-0 whitespace-nowrap",A.key===n&&"pill-active"),children:[A.label,A.hint?x.jsx("span",{className:"ml-1.5 text-[11px] text-faint",children:A.hint}):null]},A.key??"live"))}),n&&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:A=>{const B=A.currentTarget;y.current=B.scrollHeight-B.scrollTop-B.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(tn,{children:g?.message}):b.length===0?x.jsx(tn,{children:i?"No warnings or errors logged.":"Nothing logged yet — the relay has been quiet."}):b.map((A,B)=>x.jsxs("div",{className:"flex gap-2 whitespace-pre-wrap break-words py-px",children:[x.jsx("span",{className:"shrink-0 text-faint",children:SP(A.t)}),x.jsx("span",{className:pe("min-w-0 flex-1",FP[A.level]),children:A.text})]},B))}),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(A=>!A),className:pe("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(qr,{size:16}):x.jsx(Xd,{size:16}),o==="ok"?"Copied":o==="failed"?"Copy blocked — select by hand":"Copy"]})]})]})]}),document.body)}function MP(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 the planning role…":e.workflowReady?null:e.workflowProblem??"The planning role is unavailable.":"Describe what the workflow should accomplish.":null:"Reconnect to the relay to continue."}const j5="conductor-remote-send-immediately",jP=[];function TP(){try{return localStorage.getItem(j5)!=="off"}catch{return!0}}function RP(e){try{localStorage.setItem(j5,e?"on":"off")}catch{}}function OP(e){e&&Me.discardStagedAttachment(e).catch(()=>{})}function zP({onClose:e}){const n=ng(),{data:r}=n,i=oc(),l=ag(),o=lf(),u=Be(oe=>oe.lastNewWorkspaceRepo),d=Be(oe=>oe.setLastNewWorkspaceRepo),[f,h]=D.useState(u),g=Be(oe=>oe.drafts[fa]??""),p=Be(oe=>oe.draftAttachments[fa]??jP),y=D.useMemo(()=>p.filter(oe=>!!oe.stageId),[p]),b=Be(oe=>oe.setDraft),C=Be(oe=>oe.addDraftAttachment),v=Be(oe=>oe.removeDraftAttachment),A=Be(oe=>oe.clearDraftContent),B=Be(oe=>oe.setFocusedDraft),j=oe=>b(fa,oe),[S,N]=D.useState({}),[T,F]=D.useState(!1),[R,L]=D.useState(!1),[I,O]=D.useState(TP),[$,Q]=D.useState(!1),[le,ee]=D.useState(null),Y=D.useRef(null),P=D.useRef(new Set),V=D.useRef(0),[Z,xe]=D.useState([]),[M,z]=D.useState(!1),X=_i(),w=ur(),W=Be(oe=>oe.online);D.useEffect(()=>()=>{Be.getState().focusedDraft===fa&&B(null),md()},[B]);const fe=r?.repos??[],he=fe.find(oe=>oe.name===f);D.useEffect(()=>{fe.length&&!fe.some(oe=>oe.name===f)&&h(fe[0].name)},[f,fe]);const De=[...y.map(oe=>({...oe,id:oe.path,status:"ready"})),...Z],Ce=Z.some(oe=>oe.status==="uploading"),Fe=Z.some(oe=>oe.status==="error"),at=!!g.trim()||y.length>0,mt=i.data?.groups.flatMap(oe=>oe.models)??[],Lt=i.data?.defaultModel,kt=o.data?.roles.planning,we=o.data?.issues.find(oe=>oe.role==="planning"),Ae=o.isError?"Could not load delegated roles.":o.data?.warning?o.data.warning:o.data&&!kt?"Workflow mode needs a configured planning role.":we?.error.message,tt=!!kt&&!Ae,Qe=he?"selected":n.isLoading?"loading":n.isError?"error":fe.length===0?"empty":"required",Tt=MP({online:W,repoStatus:Qe,uploading:Ce,attachmentError:Fe,workflowMode:T,hasInitialPrompt:at,workflowReady:tt,workflowLoading:o.isLoading,workflowProblem:Ae}),Ue=$||Tt!==null,Ct=S.model??Lt??null,wt=T?kt?.model??"Planning role":Ct,cn=pf(null,Ct),Pn=mf(null,Ct),Ye=gf(null,Ct),nn=kN(Ct,l.data?.defaultEfforts),se=T?kt?.effort:S.effort??nn,me=Object.keys(S).length>0,je=D.useCallback(oe=>N(ut=>{const St={...ut,...oe};return Object.fromEntries(Object.entries(St).filter(([,be])=>be!==void 0))}),[]);D.useEffect(()=>{!cn&&S.plan!==void 0&&je({plan:void 0})},[cn,S.plan,je]),D.useEffect(()=>{!Pn&&S.effort!==void 0&&je({effort:void 0}),!Ye&&S.fast!==void 0&&je({fast:void 0})},[S.effort,S.fast,Pn,Ye,je]);const Ke=oe=>{const ut=y.find(St=>St.path===oe);if(ut){v(fa,ut.path);return}P.current.add(oe),xe(St=>St.filter(be=>be.id!==oe))},it=async oe=>{if(W)for(const ut of Array.from(oe)){const St=crypto.randomUUID();xe(be=>[...be,{id:St,name:ut.name||"attachment",status:"uploading"}]);try{const be=await Me.stageAttachment(ut);if(P.current.delete(St)){OP(be.attachment.stageId);continue}C(fa,be.attachment),xe(yt=>yt.filter(U=>U.id!==St))}catch(be){if(P.current.delete(St))continue;xe(yt=>yt.map(U=>U.id===St?{...U,status:"error",error:be instanceof Error?be.message:"Upload failed"}:U))}}},Ht=oe=>{oe?.length&&it(oe)},un=oe=>Array.from(oe.dataTransfer.types).includes("Files"),Gt=oe=>{un(oe)&&(oe.preventDefault(),V.current+=1,z(!0))},Bt=oe=>{un(oe)&&(V.current-=1,V.current<=0&&(V.current=0,z(!1)))},Vt=oe=>{un(oe)&&(oe.preventDefault(),oe.dataTransfer.dropEffect="copy")},re=oe=>{un(oe)&&(oe.preventDefault(),V.current=0,z(!1),Ht(oe.dataTransfer.files))},ht=D.useCallback(()=>{for(const oe of Z)P.current.add(oe.id);e()},[Z,e]),gt=async()=>{const oe=g.trim();if(!Ue){Q(!0),ee(null);try{const ut=await Me.createWorkspace({repo:f,prompt:oe,sendImmediately:I,attachmentIds:y.flatMap(St=>St.stageId?[St.stageId]:[]),...T?{workflow:!0}:S});if(!ut.ok||!ut.workspaceId){ee(ut.error??"could not create the workspace");return}await w.invalidateQueries({queryKey:["state"]}),A(fa),e(),X(`/w/${ut.workspaceId}`)}catch(ut){ee(ut instanceof Error?ut.message:"could not create the workspace")}finally{Q(!1)}}};return D.useEffect(()=>{const oe=ut=>{ut.key==="Escape"&&(R?L(!1):ht())};return window.addEventListener("keydown",oe),()=>window.removeEventListener("keydown",oe)},[ht,R]),Gr.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:ht,"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(Cn,{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:()=>L(oe=>!oe),"aria-haspopup":"menu","aria-expanded":R,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:[he?x.jsx(Vl,{icon:he.icon,name:he.name,artwork:"inset"}):null,x.jsx("span",{className:"min-w-0 flex-1 truncate text-[15px] font-medium",children:he?.name??"Choose a repo"}),x.jsx(Ea,{size:18,className:pe("shrink-0 text-muted transition",R&&"rotate-180")})]}),R?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:fe.map(oe=>x.jsx("li",{children:x.jsxs("button",{type:"button",onClick:()=>{h(oe.name),d(oe.name),L(!1)},className:"flex w-full items-center gap-3 px-3 py-2 text-left active:bg-surface-2",children:[x.jsx(Vl,{icon:oe.icon,name:oe.name,artwork:"inset"}),x.jsx("span",{className:"min-w-0 flex-1 truncate text-[15px]",children:oe.name}),oe.name===f?x.jsx(qr,{size:16,className:"shrink-0 text-accent"}):null]})},oe.name))}):null]}),x.jsxs("fieldset",{"aria-label":"First message",onDragEnter:Gt,onDragLeave:Bt,onDragOver:Vt,onDrop:re,className:pe("relative m-0 min-w-0 rounded-2xl border border-border bg-surface p-2 has-[textarea:focus]:border-accent/60",M&&"border-accent bg-accent-soft"),children:[x.jsx("input",{ref:Y,type:"file",multiple:!0,className:"hidden",onChange:oe=>{Ht(oe.target.files),oe.target.value=""}}),De.length?x.jsx("div",{className:"flex flex-wrap gap-1 px-2 pb-1",children:De.map(oe=>x.jsxs("div",{title:oe.error??oe.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:[oe.status==="uploading"?x.jsx(Tn,{size:12,className:"shrink-0 animate-spin"}):null,x.jsx("span",{className:"truncate",children:oe.status==="error"?`${oe.name}: ${oe.error}`:oe.name}),x.jsx("button",{type:"button",onClick:()=>Ke(oe.id),"aria-label":`Remove ${oe.name}`,className:"flex size-5 shrink-0 items-center justify-center rounded active:bg-surface",children:x.jsx(Cn,{size:13})})]},oe.id))}):null,x.jsx("textarea",{value:g,onChange:oe=>j(oe.target.value),onFocus:()=>B(fa),onBlur:()=>{Be.getState().focusedDraft===fa&&B(null),md()},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:oe=>{const ut=oe.clipboardData.files;ut.length&&(oe.preventDefault(),Ht(ut))},onKeyDown:oe=>{g5(oe)&&(oe.preventDefault(),gt())}}),x.jsxs("div",{className:"mt-1 flex items-start gap-1 px-1",children:[x.jsx(y5,{model:wt??"Model",providerModel:T?kt?.model??null:wt,agentType:T&&kt?Bs(kt.model)??null:null,models:mt,modelsFetching:i.isFetching,modelsError:i.isError,defaultModel:Lt,fast:T?kt?.fast:S.fast,effort:se,plan:T?void 0:S.plan,showEmptyEffort:!0,modelStaged:!T&&S.model!==void 0,fastStaged:!T&&S.fast!==void 0,effortStaged:!T&&S.effort!==void 0,planStaged:!T&&S.plan!==void 0,onModelChange:oe=>je({model:oe===(S.model??Lt)?void 0:oe}),onFastChange:()=>je({fast:S.fast===void 0?!0:S.fast?!1:void 0}),onEffortChange:()=>je({effort:BN(se,nn)}),onPlanChange:()=>je({plan:S.plan===void 0?!0:S.plan?!1:void 0}),disabled:T,hidePlan:T,beforeModel:x.jsx(b5,{active:T,onChange:oe=>{F(oe),ee(null)}}),status:T?tt?"Planning root · delegates configured roles into sibling chats":o.isLoading?"Loading the planning role…":void 0:me?"Applies when the workspace opens":void 0}),x.jsx("button",{type:"button",onClick:()=>Y.current?.click(),disabled:!W,"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(ic,{size:17})})]}),T&&Ae?x.jsx("div",{className:"px-2 pb-1 text-xs text-del",children:Ae}):null,M?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]}),x.jsxs("label",{className:pe("flex items-start gap-3 rounded-2xl border border-border bg-surface px-3 py-2.5 transition active:bg-surface-2",!at&&"opacity-40"),children:[x.jsx("input",{type:"checkbox",checked:I,disabled:!at,onChange:oe=>{O(oe.target.checked),RP(oe.target.checked)},className:"sr-only"}),x.jsx("span",{className:pe("mt-0.5 flex size-[18px] shrink-0 items-center justify-center rounded-md border transition",I?"border-accent bg-accent text-bg":"border-border"),children:I?x.jsx(qr,{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:I?"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."})]})]}),le?x.jsx("div",{className:"text-xs text-del",children:le}):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:Tt?x.jsx("span",{id:"new-workspace-create-reason",children:Tt}):null}),x.jsx("button",{type:"button",onClick:gt,disabled:Ue,"aria-describedby":Tt?"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:$?T?"Starting workflow…":"Creating…":T?"Start workflow":at?"Create & start":"Create empty workspace"})]})]}),document.body)}function LP(e){return e.replaceAll("_"," ").replace(/\b\w/g,n=>n.toUpperCase())}function PP(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]??LP(e)}function IP(e,n=Date.now()){if(e===null)return"Reset time unavailable";const r=e-n;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 UP({window:e}){const n=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:[n,"%"]})]}),x.jsx("div",{role:"progressbar","aria-label":`${e.label}: ${n}% used`,"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":n,className:"h-1.5 overflow-hidden rounded-full bg-surface",children:x.jsx("div",{className:pe("h-full rounded-full transition-[width]",n>=95?"bg-del":n>=80?"bg-working":"bg-accent"),style:{width:`${e.usedPercent}%`}})}),x.jsx("div",{className:"mt-1 text-[11px] text-faint",children:IP(e.resetsAt)})]})}const HP=[{provider:"claude",label:"Claude Code"},{provider:"codex",label:"Codex"},{provider:"cursor",label:"Cursor Agent"},{provider:"opencode",label:"OpenCode"}];function T5(e){return e==="claude"||e==="codex"?e:null}function $P({usage:e,defaultEffort:n,defaultsLoading:r=!1,savingDefault:i=!1,onDefaultEffortChange:l}){const o=T5(e.provider),u=n&&!Bi.includes(n)?n: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:pe("flex items-center gap-2",(o||d.length)&&"mb-3"),children:[x.jsx(ro,{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:PP(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:n??"",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,Bi.map(f=>x.jsx("option",{value:f,children:Ql[f]},f))]}),x.jsx("span",{className:"pointer-events-none absolute inset-y-0 right-2 flex items-center text-faint",children:i?x.jsx(to,{size:12,className:"animate-spin"}):x.jsx(Ea,{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(UP,{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 qP(e){return new Date(e).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})}function GP({onClose:e}){const n=Xw(!0),r=ag(),i=ur(),[l,o]=D.useState(!1),[u,d]=D.useState(),[f,h]=D.useState(),[g,p]=D.useState(),y=HP.map(v=>n.data?.providers.find(A=>A.provider===v.provider)??{...v,status:"unavailable",plan:null,buckets:[]}),b=async()=>{if(!l){o(!0),d(void 0);try{const v=await Me.planUsage(!0);i.setQueryData(["plan-usage"],v)}catch(v){d(v instanceof Error?v.message:"Could not refresh plan usage.")}finally{o(!1)}}},C=async(v,A)=>{if(f)return;h(v),p(void 0);const B=r.data;B&&i.setQueryData(["model-defaults"],{defaultEfforts:{...B.defaultEfforts,[v]:A}});try{const j=await Me.patchModelDefaults({[v]:A});i.setQueryData(["model-defaults"],j)}catch(j){B&&i.setQueryData(["model-defaults"],B),p(j instanceof Error?j.message:"Could not save the default effort.")}finally{h(void 0)}};return Gr.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||!n.data&&n.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(to,{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(Cn,{size:18})})]}),x.jsxs("div",{className:"min-h-0 flex-1 space-y-3 overflow-y-auto overscroll-contain p-4",children:[y.map(v=>{const A=T5(v.provider);return x.jsx($P,{usage:v,defaultEffort:A?r.data?.defaultEfforts[A]:void 0,defaultsLoading:r.isLoading||f!==void 0,savingDefault:f===A,onDefaultEffortChange:A?B=>{C(A,B)}:void 0},v.provider)}),n.isLoading&&!n.data?x.jsx("p",{className:"text-center text-xs text-faint",children:"Reading plan usage…"}):n.isError&&!n.data?x.jsx(tn,{children:n.error?.message??"Could not read plan usage."}):null,u?x.jsx("p",{className:"text-xs text-del",children:u}):null,g?x.jsx("p",{className:"text-xs text-del",children:g}):null,r.isError?x.jsx("p",{className:"text-xs text-del",children:r.error?.message??"Could not read model defaults."}):null]}),n.data?x.jsxs("div",{className:"shrink-0 border-t border-border-soft px-4 py-2.5 text-[11px] text-faint",children:["Updated ",qP(n.data.fetchedAt)," · cached for one minute"]}):null]})]}),document.body)}function Cs(e){return e.length?e.length===1?e[0]:`${e.length} repos`:"All repos"}function R5({repos:e,selected:n,onChange:r}){const i=e.filter(u=>n.includes(u.name)).length,l=n.length===0,o=u=>{r(nP(e.map(d=>d.name),n,u))};return x.jsxs(x.Fragment,{children:[l?x.jsxs("div",{className:"sticky top-0 z-[1] mb-0.5 flex min-h-8 items-center justify-between gap-3 border-b border-border-soft bg-inherit px-2 text-xs",children:[x.jsx("span",{className:"min-w-0 truncate text-faint",children:e.length?`All ${e.length} ${e.length===1?"repo":"repos"}`:"No repos"}),e.length?x.jsxs("span",{className:"flex shrink-0 items-center gap-1 font-medium text-muted",children:[x.jsx(qr,{size:12,strokeWidth:2.5,"aria-hidden":!0}),"Showing all"]}):null]}):x.jsxs("button",{type:"button",onClick:()=>r([]),"aria-label":"Show all repos",className:"sticky top-0 z-[1] mb-0.5 flex min-h-8 w-full items-center justify-between gap-3 border-b border-border-soft bg-inherit px-2 text-xs active:bg-surface",children:[x.jsxs("span",{className:"min-w-0 truncate text-faint",children:[i," of ",e.length," repos"]}),x.jsx("span",{className:"shrink-0 font-semibold text-accent",children:"Show all"})]}),e.map(u=>x.jsx(VP,{checked:n.includes(u.name),label:u.name,icon:x.jsx(Vl,{icon:u.icon,name:u.name,artwork:"inset"}),onChange:()=>o(u.name)},u.name))]})}function VP({checked:e,label:n,icon:r,onChange:i}){return x.jsxs("label",{className:"flex min-w-0 cursor-pointer items-center gap-2 px-2 py-0.5 text-left text-sm text-text active:bg-surface",children:[x.jsx("input",{type:"checkbox",checked:e,onChange:i,className:"peer sr-only"}),r??x.jsx("span",{className:"size-8 shrink-0"}),x.jsx("span",{className:"min-w-0 flex-1 truncate",children:n}),x.jsx("span",{className:pe("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?"border-accent bg-accent text-on-solid":"border-faint bg-surface"),children:e?x.jsx(qr,{size:12,strokeWidth:3}):null})]})}function QP({query:e,repos:n,includeArchived:r,live:i,selectedId:l,onOpen:o}){const u=Uw(e.trim(),250),{data:d,isError:f,error:h,isFetching:g}=Hw(u,n,r),p=D.useMemo(()=>ND(e),[e]),y=D.useMemo(()=>{const C=new Map;if(p.length)for(const v of i){if(n.length&&!(v.repo_name&&n.includes(v.repo_name)))continue;const A=[$r(v),v.branch,v.repo_name,v.directory_name,v.session_title].filter(Boolean).join(" ").toLowerCase();p.every(B=>A.includes(B))&&C.set(v.id,{workspace:v,archived:!1,sessionId:null,snippets:[],hits:0})}for(const v of d?.results??[]){if(!r&&v.workspace.archived)continue;const A=C.get(v.workspace.id);if(A){A.sessionId=v.sessionId,A.snippets=v.snippets,A.hits=v.hits;continue}C.set(v.workspace.id,{workspace:v.workspace,archived:v.workspace.archived,sessionId:v.sessionId,snippets:v.snippets,hits:v.hits})}return[...C.values()]},[i,d,p,n,r]),b=d?.index;return x.jsxs(x.Fragment,{children:[b&&!b.ready?x.jsxs("p",{className:"px-1 pb-2 text-xs text-faint",children:["Indexing chats… ",Math.round(b.progress*100),"% — older conversations aren’t searchable yet."]}):null,b?.error?x.jsxs("p",{className:"px-1 pb-2 text-xs text-del",children:["Chat index unavailable (",b.error,") — searching names only."]}):null,f?x.jsxs("p",{className:"px-1 pb-2 text-xs text-del",children:["Chat search unavailable (",h?.message,") — showing name matches only."]}):null,y.length===0?g||u!==e.trim()?x.jsx(Dr,{}):f?null:x.jsxs(tn,{children:["Nothing matches “",e.trim(),"”",n.length?` in ${Cs(n)}`:"","."]}):x.jsx("ul",{className:"flex flex-col gap-2 pb-2",children:y.map(C=>x.jsx("li",{className:"fade-in",children:x.jsx(KP,{row:C,tokens:p,selected:C.workspace.id===l,onOpen:o})},C.workspace.id))})]})}const YP="card w-full flex-col items-stretch gap-0";function KP({row:e,tokens:n,selected:r,onOpen:i}){const l=e.workspace,o=l.directory_name?.toLowerCase(),u=`${$r(l)} ${l.branch??""} ${l.repo_name??""}`.toLowerCase(),d=!!o&&n.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(Vl,{icon:l.icon,name:l.repo_name||$r(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:$r(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(B9,{className:"min-w-0 flex-1 truncate",children:l.branch}):null,d?x.jsxs(B9,{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:Ng(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(ZP,{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:pe(YP,r&&"border-accent/50 bg-surface-2"),onClick:()=>i(l.id,e.sessionId),children:f})}const XP={user:"you",assistant:"agent",thinking:"thought"};function ZP({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:XP[e.role]}),sS(e.text).map((n,r)=>n.hit?x.jsx("mark",{className:"rounded bg-accent/25 px-0.5 text-text",children:n.text},r):x.jsx("span",{children:n.text},r))]})}function WP({live:e,selectedId:n,onOpen:r,onClose:i}){const[l,o]=D.useState(""),[u,d]=D.useState([]),[f,h]=D.useState(!0),[g,p]=D.useState(!1),y=D.useRef(null),C=(ng().data?.repos??[]).map(A=>({name:A.name,icon:A.icon}));for(const A of e)A.repo_name&&!C.some(B=>B.name===A.repo_name)&&C.push({name:A.repo_name,icon:A.icon});D.useEffect(()=>y.current?.focus(),[]),D.useEffect(()=>{const A=B=>{B.key==="Escape"&&(g?p(!1):i())};return window.addEventListener("keydown",A),()=>window.removeEventListener("keydown",A)},[i,g]);const v=u.length>0;return Gr.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(S8,{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(Cn,{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:pe("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(Kd,{size:18}):x.jsx(T7,{size:18})}),x.jsxs("button",{type:"button",onClick:()=>p(A=>!A),"aria-label":v?`Repo filter: ${Cs(u)}`:"Filter by repo","aria-haspopup":"menu","aria-expanded":g,className:pe("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(dv,{size:v?14:18,className:"shrink-0"}),v?x.jsxs(x.Fragment,{children:[x.jsx("span",{className:"min-w-0 truncate",children:Cs(u)}),x.jsx(Ea,{size:14,className:pe("shrink-0 text-faint transition-transform",g&&"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(Cn,{size:20})}),g?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(R5,{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(QP,{query:l,repos:u,includeArchived:f,live:e,selectedId:n,onOpen:r}):x.jsxs(tn,{children:[v?`Workspaces and chats in ${Cs(u)}`:"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 JP(e){return!!(e.pending_prompt?.sessionRole||e.delegations?.length||Object.keys(e.session_roles??{}).length)}function eI(e,n){return e?.length?e.find(i=>i.agentType===(n??"unknown"))?.models??[...new Set(e.flatMap(i=>i.models))]:[]}function tI({workspace:e,modelGroups:n}){if(JP(e))return x.jsxs("span",{title:"Delegated workflow",className:"ml-auto flex min-w-0 items-center gap-1 text-[11px] text-accent",children:[x.jsx(lc,{size:13,"aria-hidden":"true"}),x.jsx("span",{className:"truncate",children:"Workflow"})]});const r=T8(e.model,eI(n,e.agent_type));return r?x.jsxs("span",{className:"ml-auto flex min-w-0 items-center gap-1 text-[11px]",children:[x.jsx(ro,{agentType:e.agent_type,model:e.model,className:"size-3"}),x.jsx("span",{className:"truncate",children:r})]}):null}function nI(e,n){return[...e].sort((r,i)=>{const l=+!!i.pinned_at-+!!r.pinned_at;if(l)return l;if(n==="name")return $r(r).localeCompare($r(i));const o=n==="created"?r.created_at:r.updated_at,u=n==="created"?i.created_at:i.updated_at,d=Xn(u)-Xn(o);return Number.isFinite(d)?d:u.localeCompare(o)})}function rI(e,n){return n==="status"?uf(e):n==="recent"?hS(e.updated_at):e.repo_name??""}function aI(e,n){if(n==="none")return[{key:"all",label:"",items:e}];const r=new Map;for(const i of e){const l=rI(i,n),o=r.get(l);o?o.push(i):r.set(l,[i])}return n==="status"?[...A9,...[...r.keys()].filter(l=>!A9.includes(l))].filter(l=>r.has(l)).map(l=>({key:`status:${l}`,label:yd(l),status:l,items:r.get(l)??[]})):n==="recent"?dS.filter(i=>r.has(i)).map(i=>({key:`recent:${i}`,label:fS(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 iI({selectedId:e}){const n=_i(),r=F5(),i=Be(w=>w.setSidebarOpen),l=Be(w=>w.view),o=Be(w=>w.readMarks),u=Be(w=>w.pending),d=Be(w=>w.workingHints),f=Be(w=>w.toggleGroup),[h,g]=D.useState(!1),[p,y]=D.useState(!1),[b,C]=D.useState(!1),[v,A]=D.useState(!1),[B,j]=D.useState(!1),[S,N]=D.useState(!1),[T,F]=D.useState(!1),{data:R,isLoading:L,isError:I,error:O}=tg(),$=R?.workspaces??[],Q=oc().data?.groups;D.useEffect(()=>{const w=W=>{(W.metaKey||W.ctrlKey)&&!W.shiftKey&&!W.altKey&&W.key.toLowerCase()==="k"&&(W.preventDefault(),F(fe=>!fe))};return window.addEventListener("keydown",w),()=>window.removeEventListener("keydown",w)},[]);const le=new Map($.map(w=>[w.repo_name,w.icon])),ee=[...new Set([...$.map(w=>w.repo_name).filter(w=>!!w),...l.repos])].sort().map(w=>({name:w,icon:le.get(w)??null})),Y=l.repos.length?$.filter(w=>!!w.repo_name&&l.repos.includes(w.repo_name)):$,P=Y.filter(w=>w.id===e||!(l.hideMerged&&cS(w)||l.hideDone&&uS(w))),V=Y.length-P.length,Z=aI(nI(P,l.sortBy),l.groupBy),xe=(w,W=null)=>{n(W?`/w/${w}?session=${encodeURIComponent(W)}`:`/w/${w}`),i(!1)},M=l.repos.length>0||l.hideMerged||l.hideDone,z=Cs(l.repos),X=tP({total:$.length,shown:P.length,hidden:V,repoFiltered:l.repos.length>0});return x.jsxs("div",{className:"flex h-full min-w-0 flex-col overflow-hidden",children:[x.jsxs("div",{className:"relative",children:[x.jsx(Rg,{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:()=>F(!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(S8,{size:18})}),x.jsx("button",{type:"button",onClick:()=>j(!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(mv,{size:18})}),x.jsxs("button",{type:"button",onClick:()=>g(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(oB,{size:18}),M?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(F8,{size:18})}),x.jsx("button",{type:"button",onClick:()=>N(!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(lc,{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:pe("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(U0,{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(Wd,{size:20})})]})}),h?x.jsx(lI,{repos:ee,view:l,summary:X,onClose:()=>g(!1)}):null]}),x.jsx("nav",{className:"pb-safe min-w-0 flex-1 overflow-y-auto overflow-x-hidden px-3 py-3",children:L&&!R?x.jsx(Dr,{label:"Loading workspaces…"}):I?x.jsx(SS,{error:O}):$.length===0?x.jsx(tn,{children:"No active workspaces. Start one in Conductor and it’ll appear here."}):P.length===0?x.jsxs(tn,{children:[l.repos.length?`No workspaces in ${z}`:"No workspaces",V?` — ${V} ${V===1?"one is":"ones are"} hidden.`:"."]}):Z.map(w=>{const W=!!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(sI,{status:w.status}),x.jsx("span",{className:"truncate",children:w.label}),W?x.jsx("span",{className:"font-normal text-muted text-xs",children:w.items.length}):null,x.jsx(Ea,{size:14,className:pe("ml-auto shrink-0 text-faint transition-transform",W&&"-rotate-90")})]}):null,W?null:x.jsx("ul",{className:"flex flex-col gap-2 pb-2",children:w.items.map(fe=>{const he=cw(fe,o),De=fe.active_session_id?d[fe.active_session_id]:void 0,Ce=$8(u.filter(Fe=>Fe.workspaceId===fe.id),[...fe.pending_prompt?[fe.pending_prompt]:[],...fe.parked_prompts??[]],De!==void 0&&Date.now()-De<gd);return x.jsx("li",{className:"fade-in",children:x.jsx("button",{type:"button",className:pe("card w-full px-3 py-2.5",fe.id===e?"border-accent/50 bg-surface-2":he&&"border-l-accent"),onClick:()=>xe(fe.id),children:x.jsx(cI,{w:fe,unread:he,selected:fe.id===e,modelGroups:Q,promptState:Ce,showDiffs:l.showDiffs})})},fe.id)})})]},w.key)})}),p?x.jsx(CP,{version:R?.version,onLogs:()=>{y(!1),A(!0)},onClose:()=>y(!1)}):null,b?x.jsx(zP,{onClose:()=>C(!1)}):null,T?x.jsx(WP,{live:$,selectedId:e,onOpen:(w,W)=>{F(!1),xe(w,W)},onClose:()=>F(!1)}):null,v?x.jsx(_P,{onClose:()=>A(!1)}):null,B?x.jsx(GP,{onClose:()=>j(!1)}):null,S?x.jsx(k5,{onClose:()=>N(!1)}):null]})}function sI({status:e}){if(!e)return null;const n=xf[e];return n?x.jsx("span",{className:"dot size-2",style:{background:n}}):x.jsx("span",{className:"dot size-2 border border-faint bg-transparent"})}function lI({repos:e,view:n,summary:r,onClose:i}){const l=Be(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(Rl,{id:"view-group",label:"Group by",children:x.jsx(z2,{id:"view-group",value:n.groupBy,onChange:o=>l({groupBy:o}),options:[["status","Status"],["recent","Recent"],["repo","Repo"],["none","None"]]})}),x.jsx(oI,{repos:e,selected:n.repos,onChange:o=>l({repos:o})}),x.jsx(Rl,{id:"view-sort",label:"Sort by",children:x.jsx(z2,{id:"view-sort",value:n.sortBy,onChange:o=>l({sortBy:o}),options:[["updated","Updated"],["created","Created"],["name","Name"]]})}),x.jsx(Rl,{id:"view-hide-merged",label:"Hide merged",children:x.jsx(O2,{id:"view-hide-merged",checked:n.hideMerged,label:"Hide workspaces whose PR has merged",onChange:o=>l({hideMerged:o})})}),x.jsx(Rl,{id:"view-hide-done",label:"Hide done",children:x.jsx(O2,{id:"view-hide-done",checked:n.hideDone,label:"Hide workspaces marked Done",onChange:o=>l({hideDone:o})})})]})]})}function oI({repos:e,selected:n,onChange:r}){const[i,l]=D.useState(!1);return x.jsxs("div",{className:"flex flex-col gap-1.5",children:[x.jsx(Rl,{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:Cs(n)}),x.jsx(Ea,{size:14,className:pe("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(R5,{repos:e,selected:n,onChange:r})}):null]})}function O2({id:e,checked:n,label:r,onChange:i}){return x.jsx("button",{id:e,type:"button",role:"switch","aria-checked":n,"aria-label":r,onClick:()=>i(!n),className:pe("relative h-6 w-11 shrink-0 rounded-full transition-colors",n?"bg-accent":"border border-border bg-surface-2"),children:x.jsx("span",{className:pe("absolute left-0.5 top-0.5 size-5 rounded-full bg-white transition-transform",n?"translate-x-5":"translate-x-0")})})}function Rl({id:e,label:n,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:n}),r]})}function z2({id:e,value:n,options:r,onChange:i}){return x.jsx("select",{id:e,value:n,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 cI({w:e,unread:n,selected:r,modelGroups:i,promptState:l,showDiffs:o}){return x.jsxs(x.Fragment,{children:[x.jsxs("div",{className:"relative shrink-0",children:[x.jsx(Vl,{icon:e.icon,name:e.repo_name||$r(e),artwork:"full-bleed"}),x.jsx(kS,{w:e,promptState:l,className:"absolute -right-0.5 -bottom-0.5 bg-surface ring-2 ring-surface"}),e.run_active?x.jsx(BS,{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:pe("min-w-0 truncate text-sm leading-none",n?"font-bold":"font-medium",n||r?"text-text":"text-muted"),children:$r(e)}),e.pinned_at?x.jsx("span",{className:"shrink-0 text-xs text-faint",children:"📌"}):null,n>1?x.jsx(FS,{children:n}):n?x.jsx("span",{className:"dot size-2 bg-accent"}):null]}),o?x.jsx(aP,{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:_g(e.updated_at)}),x.jsx(tI,{workspace:e,modelGroups:i})]})]})]})}function uI(){Pw();const e=Be(n=>n.token);return x.jsxs(x.Fragment,{children:[x.jsx(Fw,{}),e?x.jsxs(Ob,{children:[x.jsxs(Tl,{element:x.jsx(xI,{}),children:[x.jsx(Tl,{index:!0,element:x.jsx(dI,{})}),x.jsx(Tl,{path:"/w/:workspaceId",element:x.jsx(ML,{})})]}),x.jsx(Tl,{path:"*",element:x.jsx(jb,{to:"/",replace:!0})})]}):x.jsx(GL,{})]})}function xI(){const e=pb("/w/:workspaceId"),n=Be(l=>l.sidebarOpen),r=Be(l=>l.setSidebarOpen),i=D.useRef(null);return Lw(i),aF(),eF(),Iw(),x.jsxs(ZL,{children:[x.jsxs("div",{className:"flex h-full overflow-hidden",children:[n?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:pe("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",n?"translate-x-0":"-translate-x-full"),children:x.jsx(iI,{selectedId:e?.params.workspaceId})}),x.jsx("main",{className:"flex min-w-0 flex-1 flex-col",children:x.jsx(Tb,{})})]}),x.jsx(eP,{})]})}function dI(){const e=Be(n=>n.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(()=>{});uP();const fI=new f4({defaultOptions:{queries:{staleTime:1e3,retry:1,refetchOnWindowFocus:!0}}}),O5=document.getElementById("root");if(!O5)throw new Error("#root missing");M4.createRoot(O5).render(x.jsx(D.StrictMode,{children:x.jsx(p4,{client:fI,children:x.jsx(l7,{children:x.jsx(uI,{})})})}));
|