conductor-remote 1.95.0 → 1.96.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -2
- package/dist/assets/index-35kfVzU0.css +1 -0
- package/dist/assets/index-DS9xqkPd.js +50 -0
- package/dist/index.html +2 -2
- package/dist/sw.js +1 -1
- package/dist-node/src/conductor.applescript +39 -13
- package/dist-node/src/dev-server.js +54 -18
- package/dist-node/src/file-preview.js +8 -1
- package/dist-node/src/preview-urls.js +5 -3
- package/dist-node/src/routes.js +1 -1
- package/dist-node/src/server.js +25 -8
- package/dist-node/src/shared.js +14 -3
- package/dist-node/src/writes.js +6 -2
- package/package.json +1 -1
- package/dist/assets/index-CiKWr7Dc.js +0 -48
- package/dist/assets/index-Da1nOOI-.css +0 -1
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
(function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))i(s);new MutationObserver(s=>{for(const c of s)if(c.type==="childList")for(const x of c.addedNodes)x.tagName==="LINK"&&x.rel==="modulepreload"&&i(x)}).observe(document,{childList:!0,subtree:!0});function a(s){const c={};return s.integrity&&(c.integrity=s.integrity),s.referrerPolicy&&(c.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?c.credentials="include":s.crossOrigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function i(s){if(s.ep)return;s.ep=!0;const c=a(s);fetch(s.href,c)}})();function Qs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var su={exports:{}},bs={};var Zp;function K6(){if(Zp)return bs;Zp=1;var e=Symbol.for("react.transitional.element"),n=Symbol.for("react.fragment");function a(i,s,c){var x=null;if(c!==void 0&&(x=""+c),s.key!==void 0&&(x=""+s.key),"key"in s){c={};for(var u in s)u!=="key"&&(c[u]=s[u])}else c=s;return s=c.ref,{$$typeof:e,type:i,key:x,ref:s!==void 0?s:null,props:c}}return bs.Fragment=n,bs.jsx=a,bs.jsxs=a,bs}var Wp;function X6(){return Wp||(Wp=1,su.exports=K6()),su.exports}var h=X6(),Ys=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(){}},Z6=class extends Ys{#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"}},Ad=new Z6,W6={setTimeout:(e,n)=>setTimeout(e,n),clearTimeout:e=>clearTimeout(e),setInterval:(e,n)=>setInterval(e,n),clearInterval:e=>clearInterval(e)},J6=class{#e=W6;#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)}},bi=new J6;function e4(e){setTimeout(e,0)}var t4=typeof window>"u"||"Deno"in globalThis;function Hn(){}function n4(e,n){return typeof e=="function"?e(n):e}function qu(e){return typeof e=="number"&&e>=0&&e!==1/0}function f8(e,n){return Math.max(e+(n||0)-Date.now(),0)}function Ga(e,n){return typeof e=="function"?e(n):e}function nr(e,n){return typeof e=="function"?e(n):e}function Jp(e,n){const{type:a="all",exact:i,fetchStatus:s,predicate:c,queryKey:x,stale:u}=e;if(x){if(i){if(n.queryHash!==vd(x,n.options))return!1}else if(!Ls(n.queryKey,x))return!1}if(a!=="all"){const d=n.isActive();if(a==="active"&&!d||a==="inactive"&&d)return!1}return!(typeof u=="boolean"&&n.isStale()!==u||s&&s!==n.state.fetchStatus||c&&!c(n))}function em(e,n){const{exact:a,status:i,predicate:s,mutationKey:c}=e;if(c){if(!n.options.mutationKey)return!1;if(a){if(zs(n.options.mutationKey)!==zs(c))return!1}else if(!Ls(n.options.mutationKey,c))return!1}return!(i&&n.state.status!==i||s&&!s(n))}function vd(e,n){return(n?.queryKeyHashFn||zs)(e)}function zs(e){return JSON.stringify(e,(n,a)=>Gu(a)?Object.keys(a).sort().reduce((i,s)=>(i[s]=a[s],i),{}):a)}function Ls(e,n){return e===n?!0:typeof e!=typeof n?!1:e&&n&&typeof e=="object"&&typeof n=="object"?Object.keys(n).every(a=>Ls(e[a],n[a])):!1}var r4=Object.prototype.hasOwnProperty;function h8(e,n,a=0){if(e===n)return e;if(a>500)return n;const i=tm(e)&&tm(n);if(!i&&!(Gu(e)&&Gu(n)))return n;const c=(i?e:Object.keys(e)).length,x=i?n:Object.keys(n),u=x.length,d=i?new Array(u):{};let f=0;for(let E=0;E<u;E++){const p=i?E:x[E],y=e[p],b=n[p];if(y===b){d[p]=y,(i?E<c:r4.call(e,p))&&f++;continue}if(y===null||b===null||typeof y!="object"||typeof b!="object"){d[p]=b;continue}const C=h8(y,b,a+1);d[p]=C,C===y&&f++}return c===u&&f===c?e:d}function $u(e,n){if(!n||Object.keys(e).length!==Object.keys(n).length)return!1;for(const a in e)if(e[a]!==n[a])return!1;return!0}function tm(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Gu(e){if(!nm(e))return!1;const n=e.constructor;if(n===void 0)return!0;const a=n.prototype;return!(!nm(a)||!a.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function nm(e){return Object.prototype.toString.call(e)==="[object Object]"}function a4(e){return new Promise(n=>{bi.setTimeout(n,e)})}function Vu(e,n,a){return typeof a.structuralSharing=="function"?a.structuralSharing(e,n):a.structuralSharing!==!1?h8(e,n):n}function i4(e){return e}function l4(e,n,a=0){const i=[...e,n];return a&&i.length>a?i.slice(1):i}function s4(e,n,a=0){const i=[n,...e];return a&&i.length>a?i.slice(0,-1):i}var Bd=Symbol();function p8(e,n){return!e.queryFn&&n?.initialPromise?()=>n.initialPromise:!e.queryFn||e.queryFn===Bd?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function m8(e,n){return typeof e=="function"?e(...n):!!e}function o4(e,n,a){let i=!1,s;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(s??=n(),i||(i=!0,s.aborted?a():s.addEventListener("abort",a,{once:!0})),s)}),e}var Ps=(()=>{let e=()=>t4;return{isServer(){return e()},setIsServer(n){e=n}}})();function Qu(){let e,n;const a=new Promise((s,c)=>{e=s,n=c});a.status="pending",a.catch(()=>{});function i(s){Object.assign(a,s),delete a.resolve,delete a.reject}return a.resolve=s=>{i({status:"fulfilled",value:s}),e(s)},a.reject=s=>{i({status:"rejected",reason:s}),n(s)},a}var c4=e4;function x4(){let e=[],n=0,a=u=>{u()},i=u=>{u()},s=c4;const c=u=>{n?e.push(u):s(()=>{a(u)})},x=()=>{const u=e;e=[],u.length&&s(()=>{i(()=>{u.forEach(d=>{a(d)})})})};return{batch:u=>{let d;n++;try{d=u()}finally{n--,n||x()}return d},batchCalls:u=>(...d)=>{c(()=>{u(...d)})},schedule:c,setNotifyFunction:u=>{a=u},setBatchNotifyFunction:u=>{i=u},setScheduler:u=>{s=u}}}var gn=x4(),u4=class extends Ys{#e=!0;#t;#n;constructor(){super(),this.#n=e=>{if(typeof window<"u"&&window.addEventListener){const n=()=>e(!0),a=()=>e(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",a,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",a)}}}}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(a=>{a(e)}))}isOnline(){return this.#e}},L0=new u4;function d4(e){return Math.min(1e3*2**e,3e4)}function E8(e){return(e??"online")==="online"?L0.isOnline():!0}var Yu=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function g8(e){let n=!1,a=0,i;const s=Qu(),c=()=>s.status!=="pending",x=A=>{if(!c()){const B=new Yu(A);y(B),e.onCancel?.(B)}},u=()=>{n=!0},d=()=>{n=!1},f=()=>Ad.isFocused()&&(e.networkMode==="always"||L0.isOnline())&&e.canRun(),E=()=>E8(e.networkMode)&&e.canRun(),p=A=>{c()||(i?.(),s.resolve(A))},y=A=>{c()||(i?.(),s.reject(A))},b=()=>new Promise(A=>{i=B=>{(c()||f())&&A(B)},e.onPause?.()}).then(()=>{i=void 0,c()||e.onContinue?.()}),C=()=>{if(c())return;let A;const B=a===0?e.initialPromise:void 0;try{A=B??e.fn()}catch(k){A=Promise.reject(k)}Promise.resolve(A).then(p).catch(k=>{if(c())return;const j=e.retry??(Ps.isServer()?0:3),F=e.retryDelay??d4,_=typeof F=="function"?F(a,k):F,R=j===!0||typeof j=="number"&&a<j||typeof j=="function"&&j(a,k);if(n||!R){y(k);return}a++,e.onFail?.(a,k),a4(_).then(()=>f()?void 0:b()).then(()=>{n?y(k):C()})})};return{promise:s,status:()=>s.status,cancel:x,continue:()=>(i?.(),s),cancelRetry:u,continueRetry:d,canStart:E,start:()=>(E()?C():b().then(C),s)}}var y8=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),qu(this.gcTime)&&(this.#e=bi.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Ps.isServer()?1/0:300*1e3))}clearGcTimeout(){this.#e!==void 0&&(bi.clearTimeout(this.#e),this.#e=void 0)}};function f4(e){return{onFetch:(n,a)=>{const i=n.options,s=n.fetchOptions?.meta?.fetchMore?.direction,c=n.state.data?.pages||[],x=n.state.data?.pageParams||[];let u={pages:[],pageParams:[]},d=0;const f=async()=>{let E=!1;const p=C=>{o4(C,()=>n.signal,()=>E=!0)},y=p8(n.options,n.fetchOptions),b=async(C,A,B)=>{if(E)return Promise.reject(n.signal.reason);if(A==null&&C.pages.length)return Promise.resolve(C);const j=(()=>{const S={client:n.client,queryKey:n.queryKey,pageParam:A,direction:B?"backward":"forward",meta:n.options.meta};return p(S),S})(),F=await y(j),{maxPages:_}=n.options,R=B?s4:l4;return{pages:R(C.pages,F,_),pageParams:R(C.pageParams,A,_)}};if(s&&c.length){const C=s==="backward",A=C?h4:rm,B={pages:c,pageParams:x},k=A(i,B);u=await b(B,k,C)}else{const C=e??c.length;do{const A=d===0?x[0]??i.initialPageParam:rm(i,u);if(d>0&&A==null)break;u=await b(u,A),d++}while(d<C)}return u};n.options.persister?n.fetchFn=()=>n.options.persister?.(f,{client:n.client,queryKey:n.queryKey,meta:n.options.meta,signal:n.signal},a):n.fetchFn=f}}}function rm(e,{pages:n,pageParams:a}){const i=n.length-1;return n.length>0?e.getNextPageParam(n[i],n,a[i],a):void 0}function h4(e,{pages:n,pageParams:a}){return n.length>0?e.getPreviousPageParam?.(n[0],n,a[0],a):void 0}var p4=class extends y8{#e;#t;#n;#r;#i;#a;#s;#l;constructor(e){super(),this.#l=!1,this.#s=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=im(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.#s,...e},e?._type&&(this.#e=e._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const n=im(this.options);n.data!==void 0&&(this.setState(am(n.data,n.dataUpdatedAt)),this.#t=n)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#r.remove(this)}setData(e,n){const a=Vu(this.state.data,e,this.options);return this.#o({data:a,type:"success",dataUpdatedAt:n?.updatedAt,manual:n?.manual}),a}setState(e){this.#o({type:"setState",state:e})}cancel(e){const n=this.#a?.promise;return this.#a?.cancel(e),n?n.then(Hn).catch(Hn):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=>nr(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Bd||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>Ga(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:!f8(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.#l||this.#x()?this.#a.cancel({revert:!0}):this.#a.cancelRetry()),this.scheduleGc()),this.#r.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}#x(){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 d=this.observers.find(f=>f.options.queryFn);d&&this.setOptions(d.options)}const a=new AbortController,i=d=>{Object.defineProperty(d,"signal",{enumerable:!0,get:()=>(this.#l=!0,a.signal)})},s=()=>{const d=p8(this.options,n),E=(()=>{const p={client:this.#i,queryKey:this.queryKey,meta:this.meta};return i(p),p})();return this.#l=!1,this.options.persister?this.options.persister(d,E,this):d(E)},x=(()=>{const d={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:this.#i,state:this.state,fetchFn:s};return i(d),d})();(this.#e==="infinite"?f4(this.options.pages):this.options.behavior)?.onFetch(x,this),this.#n=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==x.fetchOptions?.meta)&&this.#o({type:"fetch",meta:x.fetchOptions?.meta}),this.#a=g8({initialPromise:n?.initialPromise,fn:x.fetchFn,onCancel:d=>{d instanceof Yu&&d.revert&&this.setState({...this.#n,fetchStatus:"idle"}),a.abort()},onFail:(d,f)=>{this.#o({type:"failed",failureCount:d,error:f})},onPause:()=>{this.#o({type:"pause"})},onContinue:()=>{this.#o({type:"continue"})},retry:x.options.retry,retryDelay:x.options.retryDelay,networkMode:x.options.networkMode,canRun:()=>!0});try{const d=await this.#a.start();if(d===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(d),this.#r.config.onSuccess?.(d,this),this.#r.config.onSettled?.(d,this.state.error,this),d}catch(d){if(d instanceof Yu){if(d.silent)return this.#a.promise;if(d.revert){if(this.state.data===void 0)throw d;return this.state.data}}throw this.#o({type:"error",error:d}),this.#r.config.onError?.(d,this),this.#r.config.onSettled?.(this.state.data,d,this),d}finally{this.scheduleGc()}}#o(e){const n=a=>{switch(e.type){case"failed":return{...a,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...a,fetchStatus:"paused"};case"continue":return{...a,fetchStatus:"fetching"};case"fetch":return{...a,...b8(a.data,this.options),fetchMeta:e.meta??null};case"success":const i={...a,...am(e.data,e.dataUpdatedAt),dataUpdateCount:a.dataUpdateCount+1,...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#n=e.manual?i:void 0,i;case"error":const s=e.error;return{...a,error:s,errorUpdateCount:a.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:a.fetchFailureCount+1,fetchFailureReason:s,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...a,isInvalidated:!0};case"setState":return{...a,...e.state}}};this.state=n(this.state),gn.batch(()=>{this.observers.forEach(a=>{a.onQueryUpdate()}),this.#r.notify({query:this,type:"updated",action:e})})}};function b8(e,n){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:E8(n.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function am(e,n){return{data:e,dataUpdatedAt:n??Date.now(),error:null,isInvalidated:!1,status:"success"}}function im(e){const n=typeof e.initialData=="function"?e.initialData():e.initialData,a=n!==void 0,i=a?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:n,dataUpdateCount:0,dataUpdatedAt:a?i??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:a?"success":"pending",fetchStatus:"idle"}}var m4=class extends Ys{constructor(e,n){super(),this.options=n,this.#e=e,this.#l=null,this.#s=Qu(),this.bindMethods(),this.setOptions(n)}#e;#t=void 0;#n=void 0;#r=void 0;#i;#a;#s;#l;#x;#o;#h;#u;#d;#c;#p=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),lm(this.#t,this.options)?this.#f():this.updateResult(),this.#y())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Ku(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Ku(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,a=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 nr(this.options.enabled,this.#t)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#A(),this.#t.setOptions(this.options),n._defaulted&&!$u(this.options,n)&&this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#t,observer:this});const i=this.hasListeners();i&&sm(this.#t,a,this.options,n)&&this.#f(),this.updateResult(),i&&(this.#t!==a||nr(this.options.enabled,this.#t)!==nr(n.enabled,this.#t)||Ga(this.options.staleTime,this.#t)!==Ga(n.staleTime,this.#t))&&this.#m();const s=this.#E();i&&(this.#t!==a||nr(this.options.enabled,this.#t)!==nr(n.enabled,this.#t)||s!==this.#c)&&this.#g(s)}getOptimisticResult(e){const n=this.#e.getQueryCache().build(this.#e,e),a=this.createResult(n,e);return g4(this,a)&&(this.#r=a,this.#a=this.options,this.#i=this.#t.state),a}getCurrentResult(){return this.#r}trackResult(e,n){return new Proxy(e,{get:(a,i)=>(this.trackProp(i),n?.(i),i==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&this.#s.status==="pending"&&this.#s.reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(a,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),a=this.#e.getQueryCache().build(this.#e,n);return a.fetch().then(()=>this.createResult(a,n))}fetch(e){return this.#f({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#r))}#f(e){this.#A();let n=this.#t.fetch(this.options,e);return e?.throwOnError||(n=n.catch(Hn)),n}#m(){this.#b();const e=Ga(this.options.staleTime,this.#t);if(Ps.isServer()||this.#r.isStale||!qu(e))return;const a=f8(this.#r.dataUpdatedAt,e)+1;this.#u=bi.setTimeout(()=>{this.#r.isStale||this.updateResult()},a)}#E(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#g(e){this.#C(),this.#c=e,!(Ps.isServer()||nr(this.options.enabled,this.#t)===!1||!qu(this.#c)||this.#c===0)&&(this.#d=bi.setInterval(()=>{(this.options.refetchIntervalInBackground||Ad.isFocused())&&this.#f()},this.#c))}#y(){this.#m(),this.#g(this.#E())}#b(){this.#u!==void 0&&(bi.clearTimeout(this.#u),this.#u=void 0)}#C(){this.#d!==void 0&&(bi.clearInterval(this.#d),this.#d=void 0)}createResult(e,n){const a=this.#t,i=this.options,s=this.#r,c=this.#i,x=this.#a,d=e!==a?e.state:this.#n,{state:f}=e;let E={...f},p=!1,y;if(n._optimisticResults){const z=this.hasListeners(),G=!z&&lm(e,n),L=z&&sm(e,a,n,i);(G||L)&&(E={...E,...b8(f.data,e.options)}),n._optimisticResults==="isRestoring"&&(E.fetchStatus="idle")}let{error:b,errorUpdatedAt:C,status:A}=E;y=E.data;let B=!1;if(n.placeholderData!==void 0&&y===void 0&&A==="pending"){let z;s?.isPlaceholderData&&n.placeholderData===x?.placeholderData?(z=s.data,B=!0):z=typeof n.placeholderData=="function"?n.placeholderData(this.#h?.state.data,this.#h):n.placeholderData,z!==void 0&&(A="success",y=Vu(s?.data,z,n),p=!0)}if(n.select&&y!==void 0&&!B)if(s&&y===c?.data&&n.select===this.#x)y=this.#o;else try{this.#x=n.select,y=n.select(y),y=Vu(s?.data,y,n),this.#o=y,this.#l=null}catch(z){this.#l=z}this.#l&&(b=this.#l,y=this.#o,C=Date.now(),A="error");const k=E.fetchStatus==="fetching",j=A==="pending",F=A==="error",_=j&&k,R=y!==void 0,O={status:A,fetchStatus:E.fetchStatus,isPending:j,isSuccess:A==="success",isError:F,isInitialLoading:_,isLoading:_,data:y,dataUpdatedAt:E.dataUpdatedAt,error:b,errorUpdatedAt:C,failureCount:E.fetchFailureCount,failureReason:E.fetchFailureReason,errorUpdateCount:E.errorUpdateCount,isFetched:e.isFetched(),isFetchedAfterMount:E.dataUpdateCount>d.dataUpdateCount||E.errorUpdateCount>d.errorUpdateCount,isFetching:k,isRefetching:k&&!j,isLoadingError:F&&!R,isPaused:E.fetchStatus==="paused",isPlaceholderData:p,isRefetchError:F&&R,isStale:kd(e,n),refetch:this.refetch,promise:this.#s,isEnabled:nr(n.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){const z=O.data!==void 0,G=O.status==="error"&&!z,L=ie=>{G?ie.reject(O.error):z&&ie.resolve(O.data)},X=()=>{const ie=this.#s=O.promise=Qu();L(ie)},Q=this.#s;switch(Q.status){case"pending":e.queryHash===a.queryHash&&L(Q);break;case"fulfilled":(G||O.data!==Q.value)&&X();break;case"rejected":(!G||O.error!==Q.reason)&&X();break}}return O}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),$u(n,e))return;this.#r=n;const a=()=>{if(!e)return!0;const{notifyOnChangeProps:i}=this.options,s=typeof i=="function"?i():i;if(s==="all"||!s&&!this.#p.size)return!0;const c=new Set(s??this.#p);return this.options.throwOnError&&c.add("error"),Object.keys(this.#r).some(x=>{const u=x;return this.#r[u]!==e[u]&&c.has(u)})};this.#v({listeners:a()})}#A(){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()}#v(e){gn.batch(()=>{e.listeners&&this.listeners.forEach(n=>{n(this.#r)}),this.#e.getQueryCache().notify({query:this.#t,type:"observerResultsUpdated"})})}};function E4(e,n){return nr(n.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&nr(n.retryOnMount,e)===!1)}function lm(e,n){return E4(e,n)||e.state.data!==void 0&&Ku(e,n,n.refetchOnMount)}function Ku(e,n,a){if(nr(n.enabled,e)!==!1&&Ga(n.staleTime,e)!=="static"){const i=typeof a=="function"?a(e):a;return i==="always"||i!==!1&&kd(e,n)}return!1}function sm(e,n,a,i){return(e!==n||nr(i.enabled,e)===!1)&&(!a.suspense||e.state.status!=="error")&&kd(e,a)}function kd(e,n){return nr(n.enabled,e)!==!1&&e.isStaleByTime(Ga(n.staleTime,e))}function g4(e,n){return!$u(e.getCurrentResult(),n)}var y4=class extends y8{#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||b4(),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"})},a={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#r=g8({fn:()=>this.options.mutationFn?this.options.mutationFn(e,a):Promise.reject(new Error("No mutationFn found")),onFail:(c,x)=>{this.#i({type:"failed",failureCount:c,error:x})},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",s=!this.#r.canStart();try{if(i)n();else{this.#i({type:"pending",variables:e,isPaused:s}),this.#n.config.onMutate&&await this.#n.config.onMutate(e,this,a);const x=await this.options.onMutate?.(e,a);x!==this.state.context&&this.#i({type:"pending",context:x,variables:e,isPaused:s})}const c=await this.#r.start();return await this.#n.config.onSuccess?.(c,e,this.state.context,this,a),await this.options.onSuccess?.(c,e,this.state.context,a),await this.#n.config.onSettled?.(c,null,this.state.variables,this.state.context,this,a),await this.options.onSettled?.(c,null,e,this.state.context,a),this.#i({type:"success",data:c}),c}catch(c){try{await this.#n.config.onError?.(c,e,this.state.context,this,a)}catch(x){Promise.reject(x)}try{await this.options.onError?.(c,e,this.state.context,a)}catch(x){Promise.reject(x)}try{await this.#n.config.onSettled?.(void 0,c,this.state.variables,this.state.context,this,a)}catch(x){Promise.reject(x)}try{await this.options.onSettled?.(void 0,c,e,this.state.context,a)}catch(x){Promise.reject(x)}throw this.#i({type:"error",error:c}),c}finally{this.#n.runNext(this)}}#i(e){const n=a=>{switch(e.type){case"failed":return{...a,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...a,isPaused:!0};case"continue":return{...a,isPaused:!1};case"pending":return{...a,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{...a,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...a,data:void 0,error:e.error,failureCount:a.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=n(this.state),gn.batch(()=>{this.#t.forEach(a=>{a.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:"updated",action:e})})}};function b4(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var C4=class extends Ys{constructor(e={}){super(),this.config=e,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(e,n,a){const i=new y4({client:e,mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(n),state:a});return this.add(i),i}add(e){this.#e.add(e);const n=g0(e);if(typeof n=="string"){const a=this.#t.get(n);a?a.push(e):this.#t.set(n,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#e.delete(e)){const n=g0(e);if(typeof n=="string"){const a=this.#t.get(n);if(a)if(a.length>1){const i=a.indexOf(e);i!==-1&&a.splice(i,1)}else a[0]===e&&this.#t.delete(n)}}this.notify({type:"removed",mutation:e})}canRun(e){const n=g0(e);if(typeof n=="string"){const i=this.#t.get(n)?.find(s=>s.state.status==="pending");return!i||i===e}else return!0}runNext(e){const n=g0(e);return typeof n=="string"?this.#t.get(n)?.find(i=>i!==e&&i.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){gn.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(a=>em(n,a))}findAll(e={}){return this.getAll().filter(n=>em(e,n))}notify(e){gn.batch(()=>{this.listeners.forEach(n=>{n(e)})})}resumePausedMutations(){const e=this.getAll().filter(n=>n.state.isPaused);return gn.batch(()=>Promise.all(e.map(n=>n.continue().catch(Hn))))}};function g0(e){return e.options.scope?.id}var A4=class extends Ys{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,n,a){const i=n.queryKey,s=n.queryHash??vd(i,n);let c=this.get(s);return c||(c=new p4({client:e,queryKey:i,queryHash:s,options:e.defaultQueryOptions(n),state:a,defaultOptions:e.getQueryDefaults(i)}),this.add(c)),c}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(){gn.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(a=>Jp(n,a))}findAll(e={}){const n=this.getAll();return Object.keys(e).length>0?n.filter(a=>Jp(e,a)):n}notify(e){gn.batch(()=>{this.listeners.forEach(n=>{n(e)})})}onFocus(){gn.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){gn.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},v4=class{#e;#t;#n;#r;#i;#a;#s;#l;constructor(e={}){this.#e=e.queryCache||new A4,this.#t=e.mutationCache||new C4,this.#n=e.defaultOptions||{},this.#r=new Map,this.#i=new Map,this.#a=0}mount(){this.#a++,this.#a===1&&(this.#s=Ad.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#l=L0.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#a--,this.#a===0&&(this.#s?.(),this.#s=void 0,this.#l?.(),this.#l=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),a=this.#e.build(this,n),i=a.state.data;return i===void 0?this.fetchQuery(e):(e.revalidateIfStale&&a.isStaleByTime(Ga(n.staleTime,a))&&this.prefetchQuery(n),Promise.resolve(i))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:n,state:a})=>{const i=a.data;return[n,i]})}setQueryData(e,n,a){const i=this.defaultQueryOptions({queryKey:e}),c=this.#e.get(i.queryHash)?.state.data,x=n4(n,c);if(x!==void 0)return this.#e.build(this,i).setData(x,{...a,manual:!0})}setQueriesData(e,n,a){return gn.batch(()=>this.#e.findAll(e).map(({queryKey:i})=>[i,this.setQueryData(i,n,a)]))}getQueryState(e){const n=this.defaultQueryOptions({queryKey:e});return this.#e.get(n.queryHash)?.state}removeQueries(e){const n=this.#e;gn.batch(()=>{n.findAll(e).forEach(a=>{n.remove(a)})})}resetQueries(e,n){const a=this.#e;return gn.batch(()=>(a.findAll(e).forEach(i=>{i.reset()}),this.refetchQueries({type:"active",...e},n)))}cancelQueries(e,n={}){const a={revert:!0,...n},i=gn.batch(()=>this.#e.findAll(e).map(s=>s.cancel(a)));return Promise.all(i).then(Hn).catch(Hn)}invalidateQueries(e,n={}){return gn.batch(()=>(this.#e.findAll(e).forEach(a=>{a.invalidate()}),e?.refetchType==="none"?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},n)))}refetchQueries(e,n={}){const a={...n,cancelRefetch:n.cancelRefetch??!0},i=gn.batch(()=>this.#e.findAll(e).filter(s=>!s.isDisabled()&&!s.isStatic()).map(s=>{let c=s.fetch(void 0,a);return a.throwOnError||(c=c.catch(Hn)),s.state.fetchStatus==="paused"?Promise.resolve():c}));return Promise.all(i).then(Hn)}fetchQuery(e){const n=this.defaultQueryOptions(e);n.retry===void 0&&(n.retry=!1);const a=this.#e.build(this,n);return a.isStaleByTime(Ga(n.staleTime,a))?a.fetch(n):Promise.resolve(a.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Hn).catch(Hn)}fetchInfiniteQuery(e){return e._type="infinite",this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Hn).catch(Hn)}ensureInfiniteQueryData(e){return e._type="infinite",this.ensureQueryData(e)}resumePausedMutations(){return L0.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(zs(e),{queryKey:e,defaultOptions:n})}getQueryDefaults(e){const n=[...this.#r.values()],a={};return n.forEach(i=>{Ls(e,i.queryKey)&&Object.assign(a,i.defaultOptions)}),a}setMutationDefaults(e,n){this.#i.set(zs(e),{mutationKey:e,defaultOptions:n})}getMutationDefaults(e){const n=[...this.#i.values()],a={};return n.forEach(i=>{Ls(e,i.mutationKey)&&Object.assign(a,i.defaultOptions)}),a}defaultQueryOptions(e){if(e._defaulted)return e;const n={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return n.queryHash||(n.queryHash=vd(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===Bd&&(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()}},ou={exports:{}},Ve={};var om;function B4(){if(om)return Ve;om=1;var e=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),c=Symbol.for("react.consumer"),x=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),f=Symbol.for("react.memo"),E=Symbol.for("react.lazy"),p=Symbol.for("react.activity"),y=Symbol.iterator;function b(M){return M===null||typeof M!="object"?null:(M=y&&M[y]||M["@@iterator"],typeof M=="function"?M:null)}var C={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},A=Object.assign,B={};function k(M,V,T){this.props=M,this.context=V,this.refs=B,this.updater=T||C}k.prototype.isReactComponent={},k.prototype.setState=function(M,V){if(typeof M!="object"&&typeof M!="function"&&M!=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,M,V,"setState")},k.prototype.forceUpdate=function(M){this.updater.enqueueForceUpdate(this,M,"forceUpdate")};function j(){}j.prototype=k.prototype;function F(M,V,T){this.props=M,this.context=V,this.refs=B,this.updater=T||C}var _=F.prototype=new j;_.constructor=F,A(_,k.prototype),_.isPureReactComponent=!0;var R=Array.isArray;function S(){}var O={H:null,A:null,T:null,S:null},z=Object.prototype.hasOwnProperty;function G(M,V,T){var le=T.ref;return{$$typeof:e,type:M,key:V,ref:le!==void 0?le:null,props:T}}function L(M,V){return G(M.type,V,M.props)}function X(M){return typeof M=="object"&&M!==null&&M.$$typeof===e}function Q(M){var V={"=":"=0",":":"=2"};return"$"+M.replace(/[=:]/g,function(T){return V[T]})}var ie=/\/+/g;function Z(M,V){return typeof M=="object"&&M!==null&&M.key!=null?Q(""+M.key):V.toString(36)}function Y(M){switch(M.status){case"fulfilled":return M.value;case"rejected":throw M.reason;default:switch(typeof M.status=="string"?M.then(S,S):(M.status="pending",M.then(function(V){M.status==="pending"&&(M.status="fulfilled",M.value=V)},function(V){M.status==="pending"&&(M.status="rejected",M.reason=V)})),M.status){case"fulfilled":return M.value;case"rejected":throw M.reason}}throw M}function U(M,V,T,le,Ee){var fe=typeof M;(fe==="undefined"||fe==="boolean")&&(M=null);var Be=!1;if(M===null)Be=!0;else switch(fe){case"bigint":case"string":case"number":Be=!0;break;case"object":switch(M.$$typeof){case e:case n:Be=!0;break;case E:return Be=M._init,U(Be(M._payload),V,T,le,Ee)}}if(Be)return Ee=Ee(M),Be=le===""?"."+Z(M,0):le,R(Ee)?(T="",Be!=null&&(T=Be.replace(ie,"$&/")+"/"),U(Ee,V,T,"",function(qe){return qe})):Ee!=null&&(X(Ee)&&(Ee=L(Ee,T+(Ee.key==null||M&&M.key===Ee.key?"":(""+Ee.key).replace(ie,"$&/")+"/")+Be)),V.push(Ee)),1;Be=0;var Le=le===""?".":le+":";if(R(M))for(var ke=0;ke<M.length;ke++)le=M[ke],fe=Le+Z(le,ke),Be+=U(le,V,T,fe,Ee);else if(ke=b(M),typeof ke=="function")for(M=ke.call(M),ke=0;!(le=M.next()).done;)le=le.value,fe=Le+Z(le,ke++),Be+=U(le,V,T,fe,Ee);else if(fe==="object"){if(typeof M.then=="function")return U(Y(M),V,T,le,Ee);throw V=String(M),Error("Objects are not valid as a React child (found: "+(V==="[object Object]"?"object with keys {"+Object.keys(M).join(", ")+"}":V)+"). If you meant to render a collection of children, use an array instead.")}return Be}function P(M,V,T){if(M==null)return M;var le=[],Ee=0;return U(M,le,"","",function(fe){return V.call(T,fe,Ee++)}),le}function re(M){if(M._status===-1){var V=M._result;V=V(),V.then(function(T){(M._status===0||M._status===-1)&&(M._status=1,M._result=T)},function(T){(M._status===0||M._status===-1)&&(M._status=2,M._result=T)}),M._status===-1&&(M._status=0,M._result=V)}if(M._status===1)return M._result.default;throw M._result}var he=typeof reportError=="function"?reportError:function(M){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var V=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof M=="object"&&M!==null&&typeof M.message=="string"?String(M.message):String(M),error:M});if(!window.dispatchEvent(V))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",M);return}console.error(M)},w={map:P,forEach:function(M,V,T){P(M,function(){V.apply(this,arguments)},T)},count:function(M){var V=0;return P(M,function(){V++}),V},toArray:function(M){return P(M,function(V){return V})||[]},only:function(M){if(!X(M))throw Error("React.Children.only expected to receive a single React element child.");return M}};return Ve.Activity=p,Ve.Children=w,Ve.Component=k,Ve.Fragment=a,Ve.Profiler=s,Ve.PureComponent=F,Ve.StrictMode=i,Ve.Suspense=d,Ve.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=O,Ve.__COMPILER_RUNTIME={__proto__:null,c:function(M){return O.H.useMemoCache(M)}},Ve.cache=function(M){return function(){return M.apply(null,arguments)}},Ve.cacheSignal=function(){return null},Ve.cloneElement=function(M,V,T){if(M==null)throw Error("The argument must be a React element, but you passed "+M+".");var le=A({},M.props),Ee=M.key;if(V!=null)for(fe in V.key!==void 0&&(Ee=""+V.key),V)!z.call(V,fe)||fe==="key"||fe==="__self"||fe==="__source"||fe==="ref"&&V.ref===void 0||(le[fe]=V[fe]);var fe=arguments.length-2;if(fe===1)le.children=T;else if(1<fe){for(var Be=Array(fe),Le=0;Le<fe;Le++)Be[Le]=arguments[Le+2];le.children=Be}return G(M.type,Ee,le)},Ve.createContext=function(M){return M={$$typeof:x,_currentValue:M,_currentValue2:M,_threadCount:0,Provider:null,Consumer:null},M.Provider=M,M.Consumer={$$typeof:c,_context:M},M},Ve.createElement=function(M,V,T){var le,Ee={},fe=null;if(V!=null)for(le in V.key!==void 0&&(fe=""+V.key),V)z.call(V,le)&&le!=="key"&&le!=="__self"&&le!=="__source"&&(Ee[le]=V[le]);var Be=arguments.length-2;if(Be===1)Ee.children=T;else if(1<Be){for(var Le=Array(Be),ke=0;ke<Be;ke++)Le[ke]=arguments[ke+2];Ee.children=Le}if(M&&M.defaultProps)for(le in Be=M.defaultProps,Be)Ee[le]===void 0&&(Ee[le]=Be[le]);return G(M,fe,Ee)},Ve.createRef=function(){return{current:null}},Ve.forwardRef=function(M){return{$$typeof:u,render:M}},Ve.isValidElement=X,Ve.lazy=function(M){return{$$typeof:E,_payload:{_status:-1,_result:M},_init:re}},Ve.memo=function(M,V){return{$$typeof:f,type:M,compare:V===void 0?null:V}},Ve.startTransition=function(M){var V=O.T,T={};O.T=T;try{var le=M(),Ee=O.S;Ee!==null&&Ee(T,le),typeof le=="object"&&le!==null&&typeof le.then=="function"&&le.then(S,he)}catch(fe){he(fe)}finally{V!==null&&T.types!==null&&(V.types=T.types),O.T=V}},Ve.unstable_useCacheRefresh=function(){return O.H.useCacheRefresh()},Ve.use=function(M){return O.H.use(M)},Ve.useActionState=function(M,V,T){return O.H.useActionState(M,V,T)},Ve.useCallback=function(M,V){return O.H.useCallback(M,V)},Ve.useContext=function(M){return O.H.useContext(M)},Ve.useDebugValue=function(){},Ve.useDeferredValue=function(M,V){return O.H.useDeferredValue(M,V)},Ve.useEffect=function(M,V){return O.H.useEffect(M,V)},Ve.useEffectEvent=function(M){return O.H.useEffectEvent(M)},Ve.useId=function(){return O.H.useId()},Ve.useImperativeHandle=function(M,V,T){return O.H.useImperativeHandle(M,V,T)},Ve.useInsertionEffect=function(M,V){return O.H.useInsertionEffect(M,V)},Ve.useLayoutEffect=function(M,V){return O.H.useLayoutEffect(M,V)},Ve.useMemo=function(M,V){return O.H.useMemo(M,V)},Ve.useOptimistic=function(M,V){return O.H.useOptimistic(M,V)},Ve.useReducer=function(M,V,T){return O.H.useReducer(M,V,T)},Ve.useRef=function(M){return O.H.useRef(M)},Ve.useState=function(M){return O.H.useState(M)},Ve.useSyncExternalStore=function(M,V,T){return O.H.useSyncExternalStore(M,V,T)},Ve.useTransition=function(){return O.H.useTransition()},Ve.version="19.2.7",Ve}var cm;function Dd(){return cm||(cm=1,ou.exports=B4()),ou.exports}var D=Dd();const y0=Qs(D);var C8=D.createContext(void 0),yr=e=>{const n=D.useContext(C8);if(!n)throw new Error("No QueryClient set, use QueryClientProvider to set one");return n},k4=({client:e,children:n})=>(D.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),h.jsx(C8.Provider,{value:e,children:n})),A8=D.createContext(!1),D4=()=>D.useContext(A8);A8.Provider;function F4(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var w4=D.createContext(F4()),S4=()=>D.useContext(w4),N4=(e,n,a)=>{const i=a?.state.error&&typeof e.throwOnError=="function"?m8(e.throwOnError,[a.state.error,a]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||i)&&(n.isReset()||(e.retryOnMount=!1))},_4=e=>{D.useEffect(()=>{e.clearReset()},[e])},M4=({result:e,errorResetBoundary:n,throwOnError:a,query:i,suspense:s})=>e.isError&&!n.isReset()&&!e.isFetching&&i&&(s&&e.data===void 0||m8(a,[e.error,i])),T4=e=>{if(e.suspense){const a=s=>s==="static"?s:Math.max(s??1e3,1e3),i=e.staleTime;e.staleTime=typeof i=="function"?(...s)=>a(i(...s)):a(i),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},j4=(e,n)=>e.isLoading&&e.isFetching&&!n,R4=(e,n)=>e?.suspense&&n.isPending,xm=(e,n,a)=>n.fetchOptimistic(e).catch(()=>{a.clearReset()});function O4(e,n,a){const i=D4(),s=S4(),c=yr(),x=c.defaultQueryOptions(e);c.getDefaultOptions().queries?._experimental_beforeQuery?.(x);const u=c.getQueryCache().get(x.queryHash),d=e.subscribed!==!1;x._optimisticResults=i?"isRestoring":d?"optimistic":void 0,T4(x),N4(x,s,u),_4(s);const f=!c.getQueryCache().get(x.queryHash),[E]=D.useState(()=>new n(c,x)),p=E.getOptimisticResult(x),y=!i&&d;if(D.useSyncExternalStore(D.useCallback(b=>{const C=y?E.subscribe(gn.batchCalls(b)):Hn;return E.updateResult(),C},[E,y]),()=>E.getCurrentResult(),()=>E.getCurrentResult()),D.useEffect(()=>{E.setOptions(x)},[x,E]),R4(x,p))throw xm(x,E,s);if(M4({result:p,errorResetBoundary:s,throwOnError:x.throwOnError,query:u,suspense:x.suspense}))throw p.error;return c.getDefaultOptions().queries?._experimental_afterQuery?.(x,p),x.experimental_prefetchInRender&&!Ps.isServer()&&j4(p,i)&&(f?xm(x,E,s):u?.promise)?.catch(Hn).finally(()=>{E.updateResult()}),x.notifyOnChangeProps?p:E.trackResult(p)}function Dn(e,n){return O4(e,m4)}var cu={exports:{}},Cs={},xu={exports:{}},uu={};var um;function z4(){return um||(um=1,(function(e){function n(U,P){var re=U.length;U.push(P);e:for(;0<re;){var he=re-1>>>1,w=U[he];if(0<s(w,P))U[he]=P,U[re]=w,re=he;else break e}}function a(U){return U.length===0?null:U[0]}function i(U){if(U.length===0)return null;var P=U[0],re=U.pop();if(re!==P){U[0]=re;e:for(var he=0,w=U.length,M=w>>>1;he<M;){var V=2*(he+1)-1,T=U[V],le=V+1,Ee=U[le];if(0>s(T,re))le<w&&0>s(Ee,T)?(U[he]=Ee,U[le]=re,he=le):(U[he]=T,U[V]=re,he=V);else if(le<w&&0>s(Ee,re))U[he]=Ee,U[le]=re,he=le;else break e}}return P}function s(U,P){var re=U.sortIndex-P.sortIndex;return re!==0?re:U.id-P.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var c=performance;e.unstable_now=function(){return c.now()}}else{var x=Date,u=x.now();e.unstable_now=function(){return x.now()-u}}var d=[],f=[],E=1,p=null,y=3,b=!1,C=!1,A=!1,B=!1,k=typeof setTimeout=="function"?setTimeout:null,j=typeof clearTimeout=="function"?clearTimeout:null,F=typeof setImmediate<"u"?setImmediate:null;function _(U){for(var P=a(f);P!==null;){if(P.callback===null)i(f);else if(P.startTime<=U)i(f),P.sortIndex=P.expirationTime,n(d,P);else break;P=a(f)}}function R(U){if(A=!1,_(U),!C)if(a(d)!==null)C=!0,S||(S=!0,Q());else{var P=a(f);P!==null&&Y(R,P.startTime-U)}}var S=!1,O=-1,z=5,G=-1;function L(){return B?!0:!(e.unstable_now()-G<z)}function X(){if(B=!1,S){var U=e.unstable_now();G=U;var P=!0;try{e:{C=!1,A&&(A=!1,j(O),O=-1),b=!0;var re=y;try{t:{for(_(U),p=a(d);p!==null&&!(p.expirationTime>U&&L());){var he=p.callback;if(typeof he=="function"){p.callback=null,y=p.priorityLevel;var w=he(p.expirationTime<=U);if(U=e.unstable_now(),typeof w=="function"){p.callback=w,_(U),P=!0;break t}p===a(d)&&i(d),_(U)}else i(d);p=a(d)}if(p!==null)P=!0;else{var M=a(f);M!==null&&Y(R,M.startTime-U),P=!1}}break e}finally{p=null,y=re,b=!1}P=void 0}}finally{P?Q():S=!1}}}var Q;if(typeof F=="function")Q=function(){F(X)};else if(typeof MessageChannel<"u"){var ie=new MessageChannel,Z=ie.port2;ie.port1.onmessage=X,Q=function(){Z.postMessage(null)}}else Q=function(){k(X,0)};function Y(U,P){O=k(function(){U(e.unstable_now())},P)}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(U){U.callback=null},e.unstable_forceFrameRate=function(U){0>U||125<U?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):z=0<U?Math.floor(1e3/U):5},e.unstable_getCurrentPriorityLevel=function(){return y},e.unstable_next=function(U){switch(y){case 1:case 2:case 3:var P=3;break;default:P=y}var re=y;y=P;try{return U()}finally{y=re}},e.unstable_requestPaint=function(){B=!0},e.unstable_runWithPriority=function(U,P){switch(U){case 1:case 2:case 3:case 4:case 5:break;default:U=3}var re=y;y=U;try{return P()}finally{y=re}},e.unstable_scheduleCallback=function(U,P,re){var he=e.unstable_now();switch(typeof re=="object"&&re!==null?(re=re.delay,re=typeof re=="number"&&0<re?he+re:he):re=he,U){case 1:var w=-1;break;case 2:w=250;break;case 5:w=1073741823;break;case 4:w=1e4;break;default:w=5e3}return w=re+w,U={id:E++,callback:P,priorityLevel:U,startTime:re,expirationTime:w,sortIndex:-1},re>he?(U.sortIndex=re,n(f,U),a(d)===null&&U===a(f)&&(A?(j(O),O=-1):A=!0,Y(R,re-he))):(U.sortIndex=w,n(d,U),C||b||(C=!0,S||(S=!0,Q()))),U},e.unstable_shouldYield=L,e.unstable_wrapCallback=function(U){var P=y;return function(){var re=y;y=P;try{return U.apply(this,arguments)}finally{y=re}}}})(uu)),uu}var dm;function L4(){return dm||(dm=1,xu.exports=z4()),xu.exports}var du={exports:{}},An={};var fm;function P4(){if(fm)return An;fm=1;var e=Dd();function n(d){var f="https://react.dev/errors/"+d;if(1<arguments.length){f+="?args[]="+encodeURIComponent(arguments[1]);for(var E=2;E<arguments.length;E++)f+="&args[]="+encodeURIComponent(arguments[E])}return"Minified React error #"+d+"; visit "+f+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function a(){}var i={d:{f:a,r:function(){throw Error(n(522))},D:a,C:a,L:a,m:a,X:a,S:a,M:a},p:0,findDOMNode:null},s=Symbol.for("react.portal");function c(d,f,E){var p=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:s,key:p==null?null:""+p,children:d,containerInfo:f,implementation:E}}var x=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function u(d,f){if(d==="font")return"";if(typeof f=="string")return f==="use-credentials"?f:""}return An.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,An.createPortal=function(d,f){var E=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!f||f.nodeType!==1&&f.nodeType!==9&&f.nodeType!==11)throw Error(n(299));return c(d,f,null,E)},An.flushSync=function(d){var f=x.T,E=i.p;try{if(x.T=null,i.p=2,d)return d()}finally{x.T=f,i.p=E,i.d.f()}},An.preconnect=function(d,f){typeof d=="string"&&(f?(f=f.crossOrigin,f=typeof f=="string"?f==="use-credentials"?f:"":void 0):f=null,i.d.C(d,f))},An.prefetchDNS=function(d){typeof d=="string"&&i.d.D(d)},An.preinit=function(d,f){if(typeof d=="string"&&f&&typeof f.as=="string"){var E=f.as,p=u(E,f.crossOrigin),y=typeof f.integrity=="string"?f.integrity:void 0,b=typeof f.fetchPriority=="string"?f.fetchPriority:void 0;E==="style"?i.d.S(d,typeof f.precedence=="string"?f.precedence:void 0,{crossOrigin:p,integrity:y,fetchPriority:b}):E==="script"&&i.d.X(d,{crossOrigin:p,integrity:y,fetchPriority:b,nonce:typeof f.nonce=="string"?f.nonce:void 0})}},An.preinitModule=function(d,f){if(typeof d=="string")if(typeof f=="object"&&f!==null){if(f.as==null||f.as==="script"){var E=u(f.as,f.crossOrigin);i.d.M(d,{crossOrigin:E,integrity:typeof f.integrity=="string"?f.integrity:void 0,nonce:typeof f.nonce=="string"?f.nonce:void 0})}}else f==null&&i.d.M(d)},An.preload=function(d,f){if(typeof d=="string"&&typeof f=="object"&&f!==null&&typeof f.as=="string"){var E=f.as,p=u(E,f.crossOrigin);i.d.L(d,E,{crossOrigin:p,integrity:typeof f.integrity=="string"?f.integrity:void 0,nonce:typeof f.nonce=="string"?f.nonce:void 0,type:typeof f.type=="string"?f.type:void 0,fetchPriority:typeof f.fetchPriority=="string"?f.fetchPriority:void 0,referrerPolicy:typeof f.referrerPolicy=="string"?f.referrerPolicy:void 0,imageSrcSet:typeof f.imageSrcSet=="string"?f.imageSrcSet:void 0,imageSizes:typeof f.imageSizes=="string"?f.imageSizes:void 0,media:typeof f.media=="string"?f.media:void 0})}},An.preloadModule=function(d,f){if(typeof d=="string")if(f){var E=u(f.as,f.crossOrigin);i.d.m(d,{as:typeof f.as=="string"&&f.as!=="script"?f.as:void 0,crossOrigin:E,integrity:typeof f.integrity=="string"?f.integrity:void 0})}else i.d.m(d)},An.requestFormReset=function(d){i.d.r(d)},An.unstable_batchedUpdates=function(d,f){return d(f)},An.useFormState=function(d,f,E){return x.H.useFormState(d,f,E)},An.useFormStatus=function(){return x.H.useHostTransitionStatus()},An.version="19.2.7",An}var hm;function v8(){if(hm)return du.exports;hm=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(),du.exports=P4(),du.exports}var pm;function U4(){if(pm)return Cs;pm=1;var e=L4(),n=Dd(),a=v8();function i(t){var r="https://react.dev/errors/"+t;if(1<arguments.length){r+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)r+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+t+"; visit "+r+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function c(t){var r=t,l=t;if(t.alternate)for(;r.return;)r=r.return;else{t=r;do r=t,(r.flags&4098)!==0&&(l=r.return),t=r.return;while(t)}return r.tag===3?l:null}function x(t){if(t.tag===13){var r=t.memoizedState;if(r===null&&(t=t.alternate,t!==null&&(r=t.memoizedState)),r!==null)return r.dehydrated}return null}function u(t){if(t.tag===31){var r=t.memoizedState;if(r===null&&(t=t.alternate,t!==null&&(r=t.memoizedState)),r!==null)return r.dehydrated}return null}function d(t){if(c(t)!==t)throw Error(i(188))}function f(t){var r=t.alternate;if(!r){if(r=c(t),r===null)throw Error(i(188));return r!==t?null:t}for(var l=t,o=r;;){var m=l.return;if(m===null)break;var g=m.alternate;if(g===null){if(o=m.return,o!==null){l=o;continue}break}if(m.child===g.child){for(g=m.child;g;){if(g===l)return d(m),t;if(g===o)return d(m),r;g=g.sibling}throw Error(i(188))}if(l.return!==o.return)l=m,o=g;else{for(var v=!1,N=m.child;N;){if(N===l){v=!0,l=m,o=g;break}if(N===o){v=!0,o=m,l=g;break}N=N.sibling}if(!v){for(N=g.child;N;){if(N===l){v=!0,l=g,o=m;break}if(N===o){v=!0,o=g,l=m;break}N=N.sibling}if(!v)throw Error(i(189))}}if(l.alternate!==o)throw Error(i(190))}if(l.tag!==3)throw Error(i(188));return l.stateNode.current===l?t:r}function E(t){var r=t.tag;if(r===5||r===26||r===27||r===6)return t;for(t=t.child;t!==null;){if(r=E(t),r!==null)return r;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"),A=Symbol.for("react.fragment"),B=Symbol.for("react.strict_mode"),k=Symbol.for("react.profiler"),j=Symbol.for("react.consumer"),F=Symbol.for("react.context"),_=Symbol.for("react.forward_ref"),R=Symbol.for("react.suspense"),S=Symbol.for("react.suspense_list"),O=Symbol.for("react.memo"),z=Symbol.for("react.lazy"),G=Symbol.for("react.activity"),L=Symbol.for("react.memo_cache_sentinel"),X=Symbol.iterator;function Q(t){return t===null||typeof t!="object"?null:(t=X&&t[X]||t["@@iterator"],typeof t=="function"?t:null)}var ie=Symbol.for("react.client.reference");function Z(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===ie?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case A:return"Fragment";case k:return"Profiler";case B:return"StrictMode";case R:return"Suspense";case S:return"SuspenseList";case G:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case C:return"Portal";case F:return t.displayName||"Context";case j:return(t._context.displayName||"Context")+".Consumer";case _:var r=t.render;return t=t.displayName,t||(t=r.displayName||r.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case O:return r=t.displayName||null,r!==null?r:Z(t.type)||"Memo";case z:r=t._payload,t=t._init;try{return Z(t(r))}catch{}}return null}var Y=Array.isArray,U=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,P=a.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,re={pending:!1,data:null,method:null,action:null},he=[],w=-1;function M(t){return{current:t}}function V(t){0>w||(t.current=he[w],he[w]=null,w--)}function T(t,r){w++,he[w]=t.current,t.current=r}var le=M(null),Ee=M(null),fe=M(null),Be=M(null);function Le(t,r){switch(T(fe,r),T(Ee,t),T(le,null),r.nodeType){case 9:case 11:t=(t=r.documentElement)&&(t=t.namespaceURI)?bp(t):0;break;default:if(t=r.tagName,r=r.namespaceURI)r=bp(r),t=Cp(r,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}V(le),T(le,t)}function ke(){V(le),V(Ee),V(fe)}function qe(t){t.memoizedState!==null&&T(Be,t);var r=le.current,l=Cp(r,t.type);r!==l&&(T(Ee,t),T(le,l))}function Ze(t){Ee.current===t&&(V(le),V(Ee)),Be.current===t&&(V(Be),ms._currentValue=re)}var Ot,zt;function ot(t){if(Ot===void 0)try{throw Error()}catch(l){var r=l.stack.trim().match(/\n( *(at )?)/);Ot=r&&r[1]||"",zt=-1<l.stack.indexOf(`
|
|
2
|
+
at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
3
|
+
`+Ot+t+zt}var Ut=!1;function Wt(t,r){if(!t||Ut)return"";Ut=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var o={DetermineComponentFrameRoot:function(){try{if(r){var ue=function(){throw Error()};if(Object.defineProperty(ue.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ue,[])}catch(ae){var ne=ae}Reflect.construct(t,[],ue)}else{try{ue.call()}catch(ae){ne=ae}t.call(ue.prototype)}}else{try{throw Error()}catch(ae){ne=ae}(ue=t())&&typeof ue.catch=="function"&&ue.catch(function(){})}}catch(ae){if(ae&&ne&&typeof ae.stack=="string")return[ae.stack,ne.stack]}return[null,null]}};o.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var m=Object.getOwnPropertyDescriptor(o.DetermineComponentFrameRoot,"name");m&&m.configurable&&Object.defineProperty(o.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var g=o.DetermineComponentFrameRoot(),v=g[0],N=g[1];if(v&&N){var I=v.split(`
|
|
4
|
+
`),ee=N.split(`
|
|
5
|
+
`);for(m=o=0;o<I.length&&!I[o].includes("DetermineComponentFrameRoot");)o++;for(;m<ee.length&&!ee[m].includes("DetermineComponentFrameRoot");)m++;if(o===I.length||m===ee.length)for(o=I.length-1,m=ee.length-1;1<=o&&0<=m&&I[o]!==ee[m];)m--;for(;1<=o&&0<=m;o--,m--)if(I[o]!==ee[m]){if(o!==1||m!==1)do if(o--,m--,0>m||I[o]!==ee[m]){var se=`
|
|
6
|
+
`+I[o].replace(" at new "," at ");return t.displayName&&se.includes("<anonymous>")&&(se=se.replace("<anonymous>",t.displayName)),se}while(1<=o&&0<=m);break}}}finally{Ut=!1,Error.prepareStackTrace=l}return(l=t?t.displayName||t.name:"")?ot(l):""}function Ht(t,r){switch(t.tag){case 26:case 27:case 5:return ot(t.type);case 16:return ot("Lazy");case 13:return t.child!==r&&r!==null?ot("Suspense Fallback"):ot("Suspense");case 19:return ot("SuspenseList");case 0:case 15:return Wt(t.type,!1);case 11:return Wt(t.type.render,!1);case 1:return Wt(t.type,!0);case 31:return ot("Activity");default:return""}}function Gt(t){try{var r="",l=null;do r+=Ht(t,l),l=t,t=t.return;while(t);return r}catch(o){return`
|
|
7
|
+
Error generating stack: `+o.message+`
|
|
8
|
+
`+o.stack}}var wt=Object.prototype.hasOwnProperty,dn=e.unstable_scheduleCallback,St=e.unstable_cancelCallback,de=e.unstable_shouldYield,ht=e.unstable_requestPaint,Je=e.unstable_now,oe=e.unstable_getCurrentPriorityLevel,te=e.unstable_ImmediatePriority,W=e.unstable_UserBlockingPriority,ve=e.unstable_NormalPriority,Ue=e.unstable_LowPriority,Te=e.unstable_IdlePriority,sn=e.log,Gn=e.unstable_setDisableYieldValue,dt=null,_t=null;function yn(t){if(typeof sn=="function"&&Gn(t),_t&&typeof _t.setStrictMode=="function")try{_t.setStrictMode(dt,t)}catch{}}var pt=Math.clz32?Math.clz32:to,Sr=Math.log,wn=Math.LN2;function to(t){return t>>>=0,t===0?32:31-(Sr(t)/wn|0)|0}var Ka=256,_i=262144,Xa=4194304;function Mn(t){var r=t&42;if(r!==0)return r;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 H(t,r,l){var o=t.pendingLanes;if(o===0)return 0;var m=0,g=t.suspendedLanes,v=t.pingedLanes;t=t.warmLanes;var N=o&134217727;return N!==0?(o=N&~g,o!==0?m=Mn(o):(v&=N,v!==0?m=Mn(v):l||(l=N&~t,l!==0&&(m=Mn(l))))):(N=o&~g,N!==0?m=Mn(N):v!==0?m=Mn(v):l||(l=o&~t,l!==0&&(m=Mn(l)))),m===0?0:r!==0&&r!==m&&(r&g)===0&&(g=m&-m,l=r&-r,g>=l||g===32&&(l&4194048)!==0)?r:m}function ce(t,r){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&r)===0}function be(t,r){switch(t){case 1:case 2:case 4:case 8:case 64:return r+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 r+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 $e(){var t=Xa;return Xa<<=1,(Xa&62914560)===0&&(Xa=4194304),t}function Mt(t){for(var r=[],l=0;31>l;l++)r.push(t);return r}function Bt(t,r){t.pendingLanes|=r,r!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function Ne(t,r,l,o,m,g){var v=t.pendingLanes;t.pendingLanes=l,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=l,t.entangledLanes&=l,t.errorRecoveryDisabledLanes&=l,t.shellSuspendCounter=0;var N=t.entanglements,I=t.expirationTimes,ee=t.hiddenUpdates;for(l=v&~l;0<l;){var se=31-pt(l),ue=1<<se;N[se]=0,I[se]=-1;var ne=ee[se];if(ne!==null)for(ee[se]=null,se=0;se<ne.length;se++){var ae=ne[se];ae!==null&&(ae.lane&=-536870913)}l&=~ue}o!==0&&De(t,o,0),g!==0&&m===0&&t.tag!==0&&(t.suspendedLanes|=g&~(v&~r))}function De(t,r,l){t.pendingLanes|=r,t.suspendedLanes&=~r;var o=31-pt(r);t.entangledLanes|=r,t.entanglements[o]=t.entanglements[o]|1073741824|l&261930}function He(t,r){var l=t.entangledLanes|=r;for(t=t.entanglements;l;){var o=31-pt(l),m=1<<o;m&r|t[o]&r&&(t[o]|=r),l&=~m}}function Vt(t,r){var l=r&-r;return l=(l&42)!==0?1:Lt(l),(l&(t.suspendedLanes|r))!==0?0:l}function Lt(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 Ur(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function Mi(){var t=P.p;return t!==0?t:(t=window.event,t===void 0?32:$p(t.type))}function Ti(t,r){var l=P.p;try{return P.p=t,r()}finally{P.p=l}}var Nr=Math.random().toString(36).slice(2),Qt="__reactFiber$"+Nr,bn="__reactProps$"+Nr,ha="__reactContainer$"+Nr,Fl="__reactEvents$"+Nr,no="__reactListeners$"+Nr,ji="__reactHandles$"+Nr,ro="__reactResources$"+Nr,Za="__reactMarker$"+Nr;function wl(t){delete t[Qt],delete t[bn],delete t[Fl],delete t[no],delete t[ji]}function Sn(t){var r=t[Qt];if(r)return r;for(var l=t.parentNode;l;){if(r=l[ha]||l[Qt]){if(l=r.alternate,r.child!==null||l!==null&&l.child!==null)for(t=wp(t);t!==null;){if(l=t[Qt])return l;t=wp(t)}return r}t=l,l=t.parentNode}return null}function Ir(t){if(t=t[Qt]||t[ha]){var r=t.tag;if(r===5||r===6||r===13||r===31||r===26||r===27||r===3)return t}return null}function pa(t){var r=t.tag;if(r===5||r===26||r===27||r===6)return t.stateNode;throw Error(i(33))}function ma(t){var r=t[ro];return r||(r=t[ro]={hoistableStyles:new Map,hoistableScripts:new Map}),r}function Jt(t){t[Za]=!0}var ao=new Set,Wa={};function Hr(t,r){pe(t,r),pe(t+"Capture",r)}function pe(t,r){for(Wa[t]=r,t=0;t<r.length;t++)ao.add(r[t])}var je=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]*$"),et={},mt={};function Yt(t){return wt.call(mt,t)?!0:wt.call(et,t)?!1:je.test(t)?mt[t]=!0:(et[t]=!0,!1)}function Cn(t,r,l){if(Yt(r))if(l===null)t.removeAttribute(r);else{switch(typeof l){case"undefined":case"function":case"symbol":t.removeAttribute(r);return;case"boolean":var o=r.toLowerCase().slice(0,5);if(o!=="data-"&&o!=="aria-"){t.removeAttribute(r);return}}t.setAttribute(r,""+l)}}function Vn(t,r,l){if(l===null)t.removeAttribute(r);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(r);return}t.setAttribute(r,""+l)}}function Tn(t,r,l,o){if(o===null)t.removeAttribute(l);else{switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(l);return}t.setAttributeNS(r,l,""+o)}}function Nt(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function Qn(t){var r=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(r==="checkbox"||r==="radio")}function io(t,r,l){var o=Object.getOwnPropertyDescriptor(t.constructor.prototype,r);if(!t.hasOwnProperty(r)&&typeof o<"u"&&typeof o.get=="function"&&typeof o.set=="function"){var m=o.get,g=o.set;return Object.defineProperty(t,r,{configurable:!0,get:function(){return m.call(this)},set:function(v){l=""+v,g.call(this,v)}}),Object.defineProperty(t,r,{enumerable:o.enumerable}),{getValue:function(){return l},setValue:function(v){l=""+v},stopTracking:function(){t._valueTracker=null,delete t[r]}}}}function Ri(t){if(!t._valueTracker){var r=Qn(t)?"checked":"value";t._valueTracker=io(t,r,""+t[r])}}function Sl(t){if(!t)return!1;var r=t._valueTracker;if(!r)return!0;var l=r.getValue(),o="";return t&&(o=Qn(t)?t.checked?"true":"false":t.value),t=o,t!==l?(r.setValue(t),!0):!1}function Oi(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 lc=/[\n"\\]/g;function jn(t){return t.replace(lc,function(r){return"\\"+r.charCodeAt(0).toString(16)+" "})}function Nl(t,r,l,o,m,g,v,N){t.name="",v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"?t.type=v:t.removeAttribute("type"),r!=null?v==="number"?(r===0&&t.value===""||t.value!=r)&&(t.value=""+Nt(r)):t.value!==""+Nt(r)&&(t.value=""+Nt(r)):v!=="submit"&&v!=="reset"||t.removeAttribute("value"),r!=null?zi(t,v,Nt(r)):l!=null?zi(t,v,Nt(l)):o!=null&&t.removeAttribute("value"),m==null&&g!=null&&(t.defaultChecked=!!g),m!=null&&(t.checked=m&&typeof m!="function"&&typeof m!="symbol"),N!=null&&typeof N!="function"&&typeof N!="symbol"&&typeof N!="boolean"?t.name=""+Nt(N):t.removeAttribute("name")}function Ja(t,r,l,o,m,g,v,N){if(g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"&&(t.type=g),r!=null||l!=null){if(!(g!=="submit"&&g!=="reset"||r!=null)){Ri(t);return}l=l!=null?""+Nt(l):"",r=r!=null?""+Nt(r):l,N||r===t.value||(t.value=r),t.defaultValue=r}o=o??m,o=typeof o!="function"&&typeof o!="symbol"&&!!o,t.checked=N?t.checked:!!o,t.defaultChecked=!!o,v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"&&(t.name=v),Ri(t)}function zi(t,r,l){r==="number"&&Oi(t.ownerDocument)===t||t.defaultValue===""+l||(t.defaultValue=""+l)}function fn(t,r,l,o){if(t=t.options,r){r={};for(var m=0;m<l.length;m++)r["$"+l[m]]=!0;for(l=0;l<t.length;l++)m=r.hasOwnProperty("$"+t[l].value),t[l].selected!==m&&(t[l].selected=m),m&&o&&(t[l].defaultSelected=!0)}else{for(l=""+Nt(l),r=null,m=0;m<t.length;m++){if(t[m].value===l){t[m].selected=!0,o&&(t[m].defaultSelected=!0);return}r!==null||t[m].disabled||(r=t[m])}r!==null&&(r.selected=!0)}}function lo(t,r,l){if(r!=null&&(r=""+Nt(r),r!==t.value&&(t.value=r),l==null)){t.defaultValue!==r&&(t.defaultValue=r);return}t.defaultValue=l!=null?""+Nt(l):""}function Li(t,r,l,o){if(r==null){if(o!=null){if(l!=null)throw Error(i(92));if(Y(o)){if(1<o.length)throw Error(i(93));o=o[0]}l=o}l==null&&(l=""),r=l}l=Nt(r),t.defaultValue=l,o=t.textContent,o===l&&o!==""&&o!==null&&(t.value=o),Ri(t)}function Ie(t,r){if(r){var l=t.firstChild;if(l&&l===t.lastChild&&l.nodeType===3){l.nodeValue=r;return}}t.textContent=r}var so=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 en(t,r,l){var o=r.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?o?t.setProperty(r,""):r==="float"?t.cssFloat="":t[r]="":o?t.setProperty(r,l):typeof l!="number"||l===0||so.has(r)?r==="float"?t.cssFloat=l:t[r]=(""+l).trim():t[r]=l+"px"}function Et(t,r,l){if(r!=null&&typeof r!="object")throw Error(i(62));if(t=t.style,l!=null){for(var o in l)!l.hasOwnProperty(o)||r!=null&&r.hasOwnProperty(o)||(o.indexOf("--")===0?t.setProperty(o,""):o==="float"?t.cssFloat="":t[o]="");for(var m in r)o=r[m],r.hasOwnProperty(m)&&l[m]!==o&&en(t,m,o)}else for(var g in r)r.hasOwnProperty(g)&&en(t,g,r[g])}function Ea(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 qr=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"]]),_l=/^[\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 ga(t){return _l.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function ge(){}var _e=null;function Ye(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var at=null,It=null;function lr(t){var r=Ir(t);if(r&&(t=r.stateNode)){var l=t[bn]||null;e:switch(t=r.stateNode,r.type){case"input":if(Nl(t,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),r=l.name,l.type==="radio"&&r!=null){for(l=t;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+jn(""+r)+'"][type="radio"]'),r=0;r<l.length;r++){var o=l[r];if(o!==t&&o.form===t.form){var m=o[bn]||null;if(!m)throw Error(i(90));Nl(o,m.value,m.defaultValue,m.defaultValue,m.checked,m.defaultChecked,m.type,m.name)}}for(r=0;r<l.length;r++)o=l[r],o.form===t.form&&Sl(o)}break e;case"textarea":lo(t,l.value,l.defaultValue);break e;case"select":r=l.value,r!=null&&fn(t,!!l.multiple,r,!1)}}}var Ml=!1;function oo(t,r,l){if(Ml)return t(r,l);Ml=!0;try{var o=t(r);return o}finally{if(Ml=!1,(at!==null||It!==null)&&(Xo(),at&&(r=at,t=It,It=at=null,lr(r),t)))for(r=0;r<t.length;r++)lr(t[r])}}function Tl(t,r){var l=t.stateNode;if(l===null)return null;var o=l[bn]||null;if(o===null)return null;l=o[r];e:switch(r){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(o=!o.disabled)||(t=t.type,o=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!o;break e;default:t=!1}if(t)return null;if(l&&typeof l!="function")throw Error(i(231,r,typeof l));return l}var $r=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),sc=!1;if($r)try{var jl={};Object.defineProperty(jl,"passive",{get:function(){sc=!0}}),window.addEventListener("test",jl,jl),window.removeEventListener("test",jl,jl)}catch{sc=!1}var ya=null,oc=null,co=null;function Cf(){if(co)return co;var t,r=oc,l=r.length,o,m="value"in ya?ya.value:ya.textContent,g=m.length;for(t=0;t<l&&r[t]===m[t];t++);var v=l-t;for(o=1;o<=v&&r[l-o]===m[g-o];o++);return co=m.slice(t,1<o?1-o:void 0)}function xo(t){var r=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&r===13&&(t=13)):t=r,t===10&&(t=13),32<=t||t===13?t:0}function uo(){return!0}function Af(){return!1}function Rn(t){function r(l,o,m,g,v){this._reactName=l,this._targetInst=m,this.type=o,this.nativeEvent=g,this.target=v,this.currentTarget=null;for(var N in t)t.hasOwnProperty(N)&&(l=t[N],this[N]=l?l(g):g[N]);return this.isDefaultPrevented=(g.defaultPrevented!=null?g.defaultPrevented:g.returnValue===!1)?uo:Af,this.isPropagationStopped=Af,this}return p(r.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=uo)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=uo)},persist:function(){},isPersistent:uo}),r}var ei={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},fo=Rn(ei),Rl=p({},ei,{view:0,detail:0}),Qg=Rn(Rl),cc,xc,Ol,ho=p({},Rl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:dc,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!==Ol&&(Ol&&t.type==="mousemove"?(cc=t.screenX-Ol.screenX,xc=t.screenY-Ol.screenY):xc=cc=0,Ol=t),cc)},movementY:function(t){return"movementY"in t?t.movementY:xc}}),vf=Rn(ho),Yg=p({},ho,{dataTransfer:0}),Kg=Rn(Yg),Xg=p({},Rl,{relatedTarget:0}),uc=Rn(Xg),Zg=p({},ei,{animationName:0,elapsedTime:0,pseudoElement:0}),Wg=Rn(Zg),Jg=p({},ei,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),e5=Rn(Jg),t5=p({},ei,{data:0}),Bf=Rn(t5),n5={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},r5={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"},a5={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function i5(t){var r=this.nativeEvent;return r.getModifierState?r.getModifierState(t):(t=a5[t])?!!r[t]:!1}function dc(){return i5}var l5=p({},Rl,{key:function(t){if(t.key){var r=n5[t.key]||t.key;if(r!=="Unidentified")return r}return t.type==="keypress"?(t=xo(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?r5[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:dc,charCode:function(t){return t.type==="keypress"?xo(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?xo(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),s5=Rn(l5),o5=p({},ho,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),kf=Rn(o5),c5=p({},Rl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:dc}),x5=Rn(c5),u5=p({},ei,{propertyName:0,elapsedTime:0,pseudoElement:0}),d5=Rn(u5),f5=p({},ho,{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}),h5=Rn(f5),p5=p({},ei,{newState:0,oldState:0}),m5=Rn(p5),E5=[9,13,27,32],fc=$r&&"CompositionEvent"in window,zl=null;$r&&"documentMode"in document&&(zl=document.documentMode);var g5=$r&&"TextEvent"in window&&!zl,Df=$r&&(!fc||zl&&8<zl&&11>=zl),Ff=" ",wf=!1;function Sf(t,r){switch(t){case"keyup":return E5.indexOf(r.keyCode)!==-1;case"keydown":return r.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Nf(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Pi=!1;function y5(t,r){switch(t){case"compositionend":return Nf(r);case"keypress":return r.which!==32?null:(wf=!0,Ff);case"textInput":return t=r.data,t===Ff&&wf?null:t;default:return null}}function b5(t,r){if(Pi)return t==="compositionend"||!fc&&Sf(t,r)?(t=Cf(),co=oc=ya=null,Pi=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(r.ctrlKey||r.altKey||r.metaKey)||r.ctrlKey&&r.altKey){if(r.char&&1<r.char.length)return r.char;if(r.which)return String.fromCharCode(r.which)}return null;case"compositionend":return Df&&r.locale!=="ko"?null:r.data;default:return null}}var C5={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 _f(t){var r=t&&t.nodeName&&t.nodeName.toLowerCase();return r==="input"?!!C5[t.type]:r==="textarea"}function Mf(t,r,l,o){at?It?It.push(o):It=[o]:at=o,r=r0(r,"onChange"),0<r.length&&(l=new fo("onChange","change",null,l,o),t.push({event:l,listeners:r}))}var Ll=null,Pl=null;function A5(t){hp(t,0)}function po(t){var r=pa(t);if(Sl(r))return t}function Tf(t,r){if(t==="change")return r}var jf=!1;if($r){var hc;if($r){var pc="oninput"in document;if(!pc){var Rf=document.createElement("div");Rf.setAttribute("oninput","return;"),pc=typeof Rf.oninput=="function"}hc=pc}else hc=!1;jf=hc&&(!document.documentMode||9<document.documentMode)}function Of(){Ll&&(Ll.detachEvent("onpropertychange",zf),Pl=Ll=null)}function zf(t){if(t.propertyName==="value"&&po(Pl)){var r=[];Mf(r,Pl,t,Ye(t)),oo(A5,r)}}function v5(t,r,l){t==="focusin"?(Of(),Ll=r,Pl=l,Ll.attachEvent("onpropertychange",zf)):t==="focusout"&&Of()}function B5(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return po(Pl)}function k5(t,r){if(t==="click")return po(r)}function D5(t,r){if(t==="input"||t==="change")return po(r)}function F5(t,r){return t===r&&(t!==0||1/t===1/r)||t!==t&&r!==r}var Yn=typeof Object.is=="function"?Object.is:F5;function Ul(t,r){if(Yn(t,r))return!0;if(typeof t!="object"||t===null||typeof r!="object"||r===null)return!1;var l=Object.keys(t),o=Object.keys(r);if(l.length!==o.length)return!1;for(o=0;o<l.length;o++){var m=l[o];if(!wt.call(r,m)||!Yn(t[m],r[m]))return!1}return!0}function Lf(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function Pf(t,r){var l=Lf(t);t=0;for(var o;l;){if(l.nodeType===3){if(o=t+l.textContent.length,t<=r&&o>=r)return{node:l,offset:r-t};t=o}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=Lf(l)}}function Uf(t,r){return t&&r?t===r?!0:t&&t.nodeType===3?!1:r&&r.nodeType===3?Uf(t,r.parentNode):"contains"in t?t.contains(r):t.compareDocumentPosition?!!(t.compareDocumentPosition(r)&16):!1:!1}function If(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var r=Oi(t.document);r instanceof t.HTMLIFrameElement;){try{var l=typeof r.contentWindow.location.href=="string"}catch{l=!1}if(l)t=r.contentWindow;else break;r=Oi(t.document)}return r}function mc(t){var r=t&&t.nodeName&&t.nodeName.toLowerCase();return r&&(r==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||r==="textarea"||t.contentEditable==="true")}var w5=$r&&"documentMode"in document&&11>=document.documentMode,Ui=null,Ec=null,Il=null,gc=!1;function Hf(t,r,l){var o=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;gc||Ui==null||Ui!==Oi(o)||(o=Ui,"selectionStart"in o&&mc(o)?o={start:o.selectionStart,end:o.selectionEnd}:(o=(o.ownerDocument&&o.ownerDocument.defaultView||window).getSelection(),o={anchorNode:o.anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset}),Il&&Ul(Il,o)||(Il=o,o=r0(Ec,"onSelect"),0<o.length&&(r=new fo("onSelect","select",null,r,l),t.push({event:r,listeners:o}),r.target=Ui)))}function ti(t,r){var l={};return l[t.toLowerCase()]=r.toLowerCase(),l["Webkit"+t]="webkit"+r,l["Moz"+t]="moz"+r,l}var Ii={animationend:ti("Animation","AnimationEnd"),animationiteration:ti("Animation","AnimationIteration"),animationstart:ti("Animation","AnimationStart"),transitionrun:ti("Transition","TransitionRun"),transitionstart:ti("Transition","TransitionStart"),transitioncancel:ti("Transition","TransitionCancel"),transitionend:ti("Transition","TransitionEnd")},yc={},qf={};$r&&(qf=document.createElement("div").style,"AnimationEvent"in window||(delete Ii.animationend.animation,delete Ii.animationiteration.animation,delete Ii.animationstart.animation),"TransitionEvent"in window||delete Ii.transitionend.transition);function ni(t){if(yc[t])return yc[t];if(!Ii[t])return t;var r=Ii[t],l;for(l in r)if(r.hasOwnProperty(l)&&l in qf)return yc[t]=r[l];return t}var $f=ni("animationend"),Gf=ni("animationiteration"),Vf=ni("animationstart"),S5=ni("transitionrun"),N5=ni("transitionstart"),_5=ni("transitioncancel"),Qf=ni("transitionend"),Yf=new Map,bc="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(" ");bc.push("scrollEnd");function vr(t,r){Yf.set(t,r),Hr(r,[t])}var mo=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var r=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(r))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)},sr=[],Hi=0,Cc=0;function Eo(){for(var t=Hi,r=Cc=Hi=0;r<t;){var l=sr[r];sr[r++]=null;var o=sr[r];sr[r++]=null;var m=sr[r];sr[r++]=null;var g=sr[r];if(sr[r++]=null,o!==null&&m!==null){var v=o.pending;v===null?m.next=m:(m.next=v.next,v.next=m),o.pending=m}g!==0&&Kf(l,m,g)}}function go(t,r,l,o){sr[Hi++]=t,sr[Hi++]=r,sr[Hi++]=l,sr[Hi++]=o,Cc|=o,t.lanes|=o,t=t.alternate,t!==null&&(t.lanes|=o)}function Ac(t,r,l,o){return go(t,r,l,o),yo(t)}function ri(t,r){return go(t,null,null,r),yo(t)}function Kf(t,r,l){t.lanes|=l;var o=t.alternate;o!==null&&(o.lanes|=l);for(var m=!1,g=t.return;g!==null;)g.childLanes|=l,o=g.alternate,o!==null&&(o.childLanes|=l),g.tag===22&&(t=g.stateNode,t===null||t._visibility&1||(m=!0)),t=g,g=g.return;return t.tag===3?(g=t.stateNode,m&&r!==null&&(m=31-pt(l),t=g.hiddenUpdates,o=t[m],o===null?t[m]=[r]:o.push(r),r.lane=l|536870912),g):null}function yo(t){if(50<cs)throw cs=0,_x=null,Error(i(185));for(var r=t.return;r!==null;)t=r,r=t.return;return t.tag===3?t.stateNode:null}var qi={};function M5(t,r,l,o){this.tag=t,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=r,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=o,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Kn(t,r,l,o){return new M5(t,r,l,o)}function vc(t){return t=t.prototype,!(!t||!t.isReactComponent)}function Gr(t,r){var l=t.alternate;return l===null?(l=Kn(t.tag,r,t.key,t.mode),l.elementType=t.elementType,l.type=t.type,l.stateNode=t.stateNode,l.alternate=t,t.alternate=l):(l.pendingProps=r,l.type=t.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=t.flags&65011712,l.childLanes=t.childLanes,l.lanes=t.lanes,l.child=t.child,l.memoizedProps=t.memoizedProps,l.memoizedState=t.memoizedState,l.updateQueue=t.updateQueue,r=t.dependencies,l.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext},l.sibling=t.sibling,l.index=t.index,l.ref=t.ref,l.refCleanup=t.refCleanup,l}function Xf(t,r){t.flags&=65011714;var l=t.alternate;return l===null?(t.childLanes=0,t.lanes=r,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null):(t.childLanes=l.childLanes,t.lanes=l.lanes,t.child=l.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=l.memoizedProps,t.memoizedState=l.memoizedState,t.updateQueue=l.updateQueue,t.type=l.type,r=l.dependencies,t.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext}),t}function bo(t,r,l,o,m,g){var v=0;if(o=t,typeof t=="function")vc(t)&&(v=1);else if(typeof t=="string")v=z6(t,l,le.current)?26:t==="html"||t==="head"||t==="body"?27:5;else e:switch(t){case G:return t=Kn(31,l,r,m),t.elementType=G,t.lanes=g,t;case A:return ai(l.children,m,g,r);case B:v=8,m|=24;break;case k:return t=Kn(12,l,r,m|2),t.elementType=k,t.lanes=g,t;case R:return t=Kn(13,l,r,m),t.elementType=R,t.lanes=g,t;case S:return t=Kn(19,l,r,m),t.elementType=S,t.lanes=g,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case F:v=10;break e;case j:v=9;break e;case _:v=11;break e;case O:v=14;break e;case z:v=16,o=null;break e}v=29,l=Error(i(130,t===null?"null":typeof t,"")),o=null}return r=Kn(v,l,r,m),r.elementType=t,r.type=o,r.lanes=g,r}function ai(t,r,l,o){return t=Kn(7,t,o,r),t.lanes=l,t}function Bc(t,r,l){return t=Kn(6,t,null,r),t.lanes=l,t}function Zf(t){var r=Kn(18,null,null,0);return r.stateNode=t,r}function kc(t,r,l){return r=Kn(4,t.children!==null?t.children:[],t.key,r),r.lanes=l,r.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},r}var Wf=new WeakMap;function or(t,r){if(typeof t=="object"&&t!==null){var l=Wf.get(t);return l!==void 0?l:(r={value:t,source:r,stack:Gt(r)},Wf.set(t,r),r)}return{value:t,source:r,stack:Gt(r)}}var $i=[],Gi=0,Co=null,Hl=0,cr=[],xr=0,ba=null,_r=1,Mr="";function Vr(t,r){$i[Gi++]=Hl,$i[Gi++]=Co,Co=t,Hl=r}function Jf(t,r,l){cr[xr++]=_r,cr[xr++]=Mr,cr[xr++]=ba,ba=t;var o=_r;t=Mr;var m=32-pt(o)-1;o&=~(1<<m),l+=1;var g=32-pt(r)+m;if(30<g){var v=m-m%5;g=(o&(1<<v)-1).toString(32),o>>=v,m-=v,_r=1<<32-pt(r)+m|l<<m|o,Mr=g+t}else _r=1<<g|l<<m|o,Mr=t}function Dc(t){t.return!==null&&(Vr(t,1),Jf(t,1,0))}function Fc(t){for(;t===Co;)Co=$i[--Gi],$i[Gi]=null,Hl=$i[--Gi],$i[Gi]=null;for(;t===ba;)ba=cr[--xr],cr[xr]=null,Mr=cr[--xr],cr[xr]=null,_r=cr[--xr],cr[xr]=null}function eh(t,r){cr[xr++]=_r,cr[xr++]=Mr,cr[xr++]=ba,_r=r.id,Mr=r.overflow,ba=t}var hn=null,Tt=null,st=!1,Ca=null,ur=!1,wc=Error(i(519));function Aa(t){var r=Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw ql(or(r,t)),wc}function th(t){var r=t.stateNode,l=t.type,o=t.memoizedProps;switch(r[Qt]=t,r[bn]=o,l){case"dialog":nt("cancel",r),nt("close",r);break;case"iframe":case"object":case"embed":nt("load",r);break;case"video":case"audio":for(l=0;l<us.length;l++)nt(us[l],r);break;case"source":nt("error",r);break;case"img":case"image":case"link":nt("error",r),nt("load",r);break;case"details":nt("toggle",r);break;case"input":nt("invalid",r),Ja(r,o.value,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name,!0);break;case"select":nt("invalid",r);break;case"textarea":nt("invalid",r),Li(r,o.value,o.defaultValue,o.children)}l=o.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||r.textContent===""+l||o.suppressHydrationWarning===!0||gp(r.textContent,l)?(o.popover!=null&&(nt("beforetoggle",r),nt("toggle",r)),o.onScroll!=null&&nt("scroll",r),o.onScrollEnd!=null&&nt("scrollend",r),o.onClick!=null&&(r.onclick=ge),r=!0):r=!1,r||Aa(t,!0)}function nh(t){for(hn=t.return;hn;)switch(hn.tag){case 5:case 31:case 13:ur=!1;return;case 27:case 3:ur=!0;return;default:hn=hn.return}}function Vi(t){if(t!==hn)return!1;if(!st)return nh(t),st=!0,!1;var r=t.tag,l;if((l=r!==3&&r!==27)&&((l=r===5)&&(l=t.type,l=!(l!=="form"&&l!=="button")||Vx(t.type,t.memoizedProps)),l=!l),l&&Tt&&Aa(t),nh(t),r===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(i(317));Tt=Fp(t)}else if(r===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(i(317));Tt=Fp(t)}else r===27?(r=Tt,Oa(t.type)?(t=Zx,Zx=null,Tt=t):Tt=r):Tt=hn?fr(t.stateNode.nextSibling):null;return!0}function ii(){Tt=hn=null,st=!1}function Sc(){var t=Ca;return t!==null&&(Pn===null?Pn=t:Pn.push.apply(Pn,t),Ca=null),t}function ql(t){Ca===null?Ca=[t]:Ca.push(t)}var Nc=M(null),li=null,Qr=null;function va(t,r,l){T(Nc,r._currentValue),r._currentValue=l}function Yr(t){t._currentValue=Nc.current,V(Nc)}function _c(t,r,l){for(;t!==null;){var o=t.alternate;if((t.childLanes&r)!==r?(t.childLanes|=r,o!==null&&(o.childLanes|=r)):o!==null&&(o.childLanes&r)!==r&&(o.childLanes|=r),t===l)break;t=t.return}}function Mc(t,r,l,o){var m=t.child;for(m!==null&&(m.return=t);m!==null;){var g=m.dependencies;if(g!==null){var v=m.child;g=g.firstContext;e:for(;g!==null;){var N=g;g=m;for(var I=0;I<r.length;I++)if(N.context===r[I]){g.lanes|=l,N=g.alternate,N!==null&&(N.lanes|=l),_c(g.return,l,t),o||(v=null);break e}g=N.next}}else if(m.tag===18){if(v=m.return,v===null)throw Error(i(341));v.lanes|=l,g=v.alternate,g!==null&&(g.lanes|=l),_c(v,l,t),v=null}else v=m.child;if(v!==null)v.return=m;else for(v=m;v!==null;){if(v===t){v=null;break}if(m=v.sibling,m!==null){m.return=v.return,v=m;break}v=v.return}m=v}}function Qi(t,r,l,o){t=null;for(var m=r,g=!1;m!==null;){if(!g){if((m.flags&524288)!==0)g=!0;else if((m.flags&262144)!==0)break}if(m.tag===10){var v=m.alternate;if(v===null)throw Error(i(387));if(v=v.memoizedProps,v!==null){var N=m.type;Yn(m.pendingProps.value,v.value)||(t!==null?t.push(N):t=[N])}}else if(m===Be.current){if(v=m.alternate,v===null)throw Error(i(387));v.memoizedState.memoizedState!==m.memoizedState.memoizedState&&(t!==null?t.push(ms):t=[ms])}m=m.return}t!==null&&Mc(r,t,l,o),r.flags|=262144}function Ao(t){for(t=t.firstContext;t!==null;){if(!Yn(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function si(t){li=t,Qr=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function pn(t){return rh(li,t)}function vo(t,r){return li===null&&si(t),rh(t,r)}function rh(t,r){var l=r._currentValue;if(r={context:r,memoizedValue:l,next:null},Qr===null){if(t===null)throw Error(i(308));Qr=r,t.dependencies={lanes:0,firstContext:r},t.flags|=524288}else Qr=Qr.next=r;return l}var T5=typeof AbortController<"u"?AbortController:function(){var t=[],r=this.signal={aborted:!1,addEventListener:function(l,o){t.push(o)}};this.abort=function(){r.aborted=!0,t.forEach(function(l){return l()})}},j5=e.unstable_scheduleCallback,R5=e.unstable_NormalPriority,tn={$$typeof:F,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Tc(){return{controller:new T5,data:new Map,refCount:0}}function $l(t){t.refCount--,t.refCount===0&&j5(R5,function(){t.controller.abort()})}var Gl=null,jc=0,Yi=0,Ki=null;function O5(t,r){if(Gl===null){var l=Gl=[];jc=0,Yi=zx(),Ki={status:"pending",value:void 0,then:function(o){l.push(o)}}}return jc++,r.then(ah,ah),r}function ah(){if(--jc===0&&Gl!==null){Ki!==null&&(Ki.status="fulfilled");var t=Gl;Gl=null,Yi=0,Ki=null;for(var r=0;r<t.length;r++)(0,t[r])()}}function z5(t,r){var l=[],o={status:"pending",value:null,reason:null,then:function(m){l.push(m)}};return t.then(function(){o.status="fulfilled",o.value=r;for(var m=0;m<l.length;m++)(0,l[m])(r)},function(m){for(o.status="rejected",o.reason=m,m=0;m<l.length;m++)(0,l[m])(void 0)}),o}var ih=U.S;U.S=function(t,r){H1=Je(),typeof r=="object"&&r!==null&&typeof r.then=="function"&&O5(t,r),ih!==null&&ih(t,r)};var oi=M(null);function Rc(){var t=oi.current;return t!==null?t:kt.pooledCache}function Bo(t,r){r===null?T(oi,oi.current):T(oi,r.pool)}function lh(){var t=Rc();return t===null?null:{parent:tn._currentValue,pool:t}}var Xi=Error(i(460)),Oc=Error(i(474)),ko=Error(i(542)),Do={then:function(){}};function sh(t){return t=t.status,t==="fulfilled"||t==="rejected"}function oh(t,r,l){switch(l=t[l],l===void 0?t.push(r):l!==r&&(r.then(ge,ge),r=l),r.status){case"fulfilled":return r.value;case"rejected":throw t=r.reason,xh(t),t;default:if(typeof r.status=="string")r.then(ge,ge);else{if(t=kt,t!==null&&100<t.shellSuspendCounter)throw Error(i(482));t=r,t.status="pending",t.then(function(o){if(r.status==="pending"){var m=r;m.status="fulfilled",m.value=o}},function(o){if(r.status==="pending"){var m=r;m.status="rejected",m.reason=o}})}switch(r.status){case"fulfilled":return r.value;case"rejected":throw t=r.reason,xh(t),t}throw xi=r,Xi}}function ci(t){try{var r=t._init;return r(t._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(xi=l,Xi):l}}var xi=null;function ch(){if(xi===null)throw Error(i(459));var t=xi;return xi=null,t}function xh(t){if(t===Xi||t===ko)throw Error(i(483))}var Zi=null,Vl=0;function Fo(t){var r=Vl;return Vl+=1,Zi===null&&(Zi=[]),oh(Zi,t,r)}function Ql(t,r){r=r.props.ref,t.ref=r!==void 0?r:null}function wo(t,r){throw r.$$typeof===y?Error(i(525)):(t=Object.prototype.toString.call(r),Error(i(31,t==="[object Object]"?"object with keys {"+Object.keys(r).join(", ")+"}":t)))}function uh(t){function r(K,q){if(t){var J=K.deletions;J===null?(K.deletions=[q],K.flags|=16):J.push(q)}}function l(K,q){if(!t)return null;for(;q!==null;)r(K,q),q=q.sibling;return null}function o(K){for(var q=new Map;K!==null;)K.key!==null?q.set(K.key,K):q.set(K.index,K),K=K.sibling;return q}function m(K,q){return K=Gr(K,q),K.index=0,K.sibling=null,K}function g(K,q,J){return K.index=J,t?(J=K.alternate,J!==null?(J=J.index,J<q?(K.flags|=67108866,q):J):(K.flags|=67108866,q)):(K.flags|=1048576,q)}function v(K){return t&&K.alternate===null&&(K.flags|=67108866),K}function N(K,q,J,xe){return q===null||q.tag!==6?(q=Bc(J,K.mode,xe),q.return=K,q):(q=m(q,J),q.return=K,q)}function I(K,q,J,xe){var Re=J.type;return Re===A?se(K,q,J.props.children,xe,J.key):q!==null&&(q.elementType===Re||typeof Re=="object"&&Re!==null&&Re.$$typeof===z&&ci(Re)===q.type)?(q=m(q,J.props),Ql(q,J),q.return=K,q):(q=bo(J.type,J.key,J.props,null,K.mode,xe),Ql(q,J),q.return=K,q)}function ee(K,q,J,xe){return q===null||q.tag!==4||q.stateNode.containerInfo!==J.containerInfo||q.stateNode.implementation!==J.implementation?(q=kc(J,K.mode,xe),q.return=K,q):(q=m(q,J.children||[]),q.return=K,q)}function se(K,q,J,xe,Re){return q===null||q.tag!==7?(q=ai(J,K.mode,xe,Re),q.return=K,q):(q=m(q,J),q.return=K,q)}function ue(K,q,J){if(typeof q=="string"&&q!==""||typeof q=="number"||typeof q=="bigint")return q=Bc(""+q,K.mode,J),q.return=K,q;if(typeof q=="object"&&q!==null){switch(q.$$typeof){case b:return J=bo(q.type,q.key,q.props,null,K.mode,J),Ql(J,q),J.return=K,J;case C:return q=kc(q,K.mode,J),q.return=K,q;case z:return q=ci(q),ue(K,q,J)}if(Y(q)||Q(q))return q=ai(q,K.mode,J,null),q.return=K,q;if(typeof q.then=="function")return ue(K,Fo(q),J);if(q.$$typeof===F)return ue(K,vo(K,q),J);wo(K,q)}return null}function ne(K,q,J,xe){var Re=q!==null?q.key:null;if(typeof J=="string"&&J!==""||typeof J=="number"||typeof J=="bigint")return Re!==null?null:N(K,q,""+J,xe);if(typeof J=="object"&&J!==null){switch(J.$$typeof){case b:return J.key===Re?I(K,q,J,xe):null;case C:return J.key===Re?ee(K,q,J,xe):null;case z:return J=ci(J),ne(K,q,J,xe)}if(Y(J)||Q(J))return Re!==null?null:se(K,q,J,xe,null);if(typeof J.then=="function")return ne(K,q,Fo(J),xe);if(J.$$typeof===F)return ne(K,q,vo(K,J),xe);wo(K,J)}return null}function ae(K,q,J,xe,Re){if(typeof xe=="string"&&xe!==""||typeof xe=="number"||typeof xe=="bigint")return K=K.get(J)||null,N(q,K,""+xe,Re);if(typeof xe=="object"&&xe!==null){switch(xe.$$typeof){case b:return K=K.get(xe.key===null?J:xe.key)||null,I(q,K,xe,Re);case C:return K=K.get(xe.key===null?J:xe.key)||null,ee(q,K,xe,Re);case z:return xe=ci(xe),ae(K,q,J,xe,Re)}if(Y(xe)||Q(xe))return K=K.get(J)||null,se(q,K,xe,Re,null);if(typeof xe.then=="function")return ae(K,q,J,Fo(xe),Re);if(xe.$$typeof===F)return ae(K,q,J,vo(q,xe),Re);wo(q,xe)}return null}function Se(K,q,J,xe){for(var Re=null,xt=null,Me=q,Xe=q=0,lt=null;Me!==null&&Xe<J.length;Xe++){Me.index>Xe?(lt=Me,Me=null):lt=Me.sibling;var ut=ne(K,Me,J[Xe],xe);if(ut===null){Me===null&&(Me=lt);break}t&&Me&&ut.alternate===null&&r(K,Me),q=g(ut,q,Xe),xt===null?Re=ut:xt.sibling=ut,xt=ut,Me=lt}if(Xe===J.length)return l(K,Me),st&&Vr(K,Xe),Re;if(Me===null){for(;Xe<J.length;Xe++)Me=ue(K,J[Xe],xe),Me!==null&&(q=g(Me,q,Xe),xt===null?Re=Me:xt.sibling=Me,xt=Me);return st&&Vr(K,Xe),Re}for(Me=o(Me);Xe<J.length;Xe++)lt=ae(Me,K,Xe,J[Xe],xe),lt!==null&&(t&<.alternate!==null&&Me.delete(lt.key===null?Xe:lt.key),q=g(lt,q,Xe),xt===null?Re=lt:xt.sibling=lt,xt=lt);return t&&Me.forEach(function(Ia){return r(K,Ia)}),st&&Vr(K,Xe),Re}function Pe(K,q,J,xe){if(J==null)throw Error(i(151));for(var Re=null,xt=null,Me=q,Xe=q=0,lt=null,ut=J.next();Me!==null&&!ut.done;Xe++,ut=J.next()){Me.index>Xe?(lt=Me,Me=null):lt=Me.sibling;var Ia=ne(K,Me,ut.value,xe);if(Ia===null){Me===null&&(Me=lt);break}t&&Me&&Ia.alternate===null&&r(K,Me),q=g(Ia,q,Xe),xt===null?Re=Ia:xt.sibling=Ia,xt=Ia,Me=lt}if(ut.done)return l(K,Me),st&&Vr(K,Xe),Re;if(Me===null){for(;!ut.done;Xe++,ut=J.next())ut=ue(K,ut.value,xe),ut!==null&&(q=g(ut,q,Xe),xt===null?Re=ut:xt.sibling=ut,xt=ut);return st&&Vr(K,Xe),Re}for(Me=o(Me);!ut.done;Xe++,ut=J.next())ut=ae(Me,K,Xe,ut.value,xe),ut!==null&&(t&&ut.alternate!==null&&Me.delete(ut.key===null?Xe:ut.key),q=g(ut,q,Xe),xt===null?Re=ut:xt.sibling=ut,xt=ut);return t&&Me.forEach(function(Y6){return r(K,Y6)}),st&&Vr(K,Xe),Re}function At(K,q,J,xe){if(typeof J=="object"&&J!==null&&J.type===A&&J.key===null&&(J=J.props.children),typeof J=="object"&&J!==null){switch(J.$$typeof){case b:e:{for(var Re=J.key;q!==null;){if(q.key===Re){if(Re=J.type,Re===A){if(q.tag===7){l(K,q.sibling),xe=m(q,J.props.children),xe.return=K,K=xe;break e}}else if(q.elementType===Re||typeof Re=="object"&&Re!==null&&Re.$$typeof===z&&ci(Re)===q.type){l(K,q.sibling),xe=m(q,J.props),Ql(xe,J),xe.return=K,K=xe;break e}l(K,q);break}else r(K,q);q=q.sibling}J.type===A?(xe=ai(J.props.children,K.mode,xe,J.key),xe.return=K,K=xe):(xe=bo(J.type,J.key,J.props,null,K.mode,xe),Ql(xe,J),xe.return=K,K=xe)}return v(K);case C:e:{for(Re=J.key;q!==null;){if(q.key===Re)if(q.tag===4&&q.stateNode.containerInfo===J.containerInfo&&q.stateNode.implementation===J.implementation){l(K,q.sibling),xe=m(q,J.children||[]),xe.return=K,K=xe;break e}else{l(K,q);break}else r(K,q);q=q.sibling}xe=kc(J,K.mode,xe),xe.return=K,K=xe}return v(K);case z:return J=ci(J),At(K,q,J,xe)}if(Y(J))return Se(K,q,J,xe);if(Q(J)){if(Re=Q(J),typeof Re!="function")throw Error(i(150));return J=Re.call(J),Pe(K,q,J,xe)}if(typeof J.then=="function")return At(K,q,Fo(J),xe);if(J.$$typeof===F)return At(K,q,vo(K,J),xe);wo(K,J)}return typeof J=="string"&&J!==""||typeof J=="number"||typeof J=="bigint"?(J=""+J,q!==null&&q.tag===6?(l(K,q.sibling),xe=m(q,J),xe.return=K,K=xe):(l(K,q),xe=Bc(J,K.mode,xe),xe.return=K,K=xe),v(K)):l(K,q)}return function(K,q,J,xe){try{Vl=0;var Re=At(K,q,J,xe);return Zi=null,Re}catch(Me){if(Me===Xi||Me===ko)throw Me;var xt=Kn(29,Me,null,K.mode);return xt.lanes=xe,xt.return=K,xt}}}var ui=uh(!0),dh=uh(!1),Ba=!1;function zc(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Lc(t,r){t=t.updateQueue,r.updateQueue===t&&(r.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function ka(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function Da(t,r,l){var o=t.updateQueue;if(o===null)return null;if(o=o.shared,(ft&2)!==0){var m=o.pending;return m===null?r.next=r:(r.next=m.next,m.next=r),o.pending=r,r=yo(t),Kf(t,null,l),r}return go(t,o,r,l),yo(t)}function Yl(t,r,l){if(r=r.updateQueue,r!==null&&(r=r.shared,(l&4194048)!==0)){var o=r.lanes;o&=t.pendingLanes,l|=o,r.lanes=l,He(t,l)}}function Pc(t,r){var l=t.updateQueue,o=t.alternate;if(o!==null&&(o=o.updateQueue,l===o)){var m=null,g=null;if(l=l.firstBaseUpdate,l!==null){do{var v={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};g===null?m=g=v:g=g.next=v,l=l.next}while(l!==null);g===null?m=g=r:g=g.next=r}else m=g=r;l={baseState:o.baseState,firstBaseUpdate:m,lastBaseUpdate:g,shared:o.shared,callbacks:o.callbacks},t.updateQueue=l;return}t=l.lastBaseUpdate,t===null?l.firstBaseUpdate=r:t.next=r,l.lastBaseUpdate=r}var Uc=!1;function Kl(){if(Uc){var t=Ki;if(t!==null)throw t}}function Xl(t,r,l,o){Uc=!1;var m=t.updateQueue;Ba=!1;var g=m.firstBaseUpdate,v=m.lastBaseUpdate,N=m.shared.pending;if(N!==null){m.shared.pending=null;var I=N,ee=I.next;I.next=null,v===null?g=ee:v.next=ee,v=I;var se=t.alternate;se!==null&&(se=se.updateQueue,N=se.lastBaseUpdate,N!==v&&(N===null?se.firstBaseUpdate=ee:N.next=ee,se.lastBaseUpdate=I))}if(g!==null){var ue=m.baseState;v=0,se=ee=I=null,N=g;do{var ne=N.lane&-536870913,ae=ne!==N.lane;if(ae?(it&ne)===ne:(o&ne)===ne){ne!==0&&ne===Yi&&(Uc=!0),se!==null&&(se=se.next={lane:0,tag:N.tag,payload:N.payload,callback:null,next:null});e:{var Se=t,Pe=N;ne=r;var At=l;switch(Pe.tag){case 1:if(Se=Pe.payload,typeof Se=="function"){ue=Se.call(At,ue,ne);break e}ue=Se;break e;case 3:Se.flags=Se.flags&-65537|128;case 0:if(Se=Pe.payload,ne=typeof Se=="function"?Se.call(At,ue,ne):Se,ne==null)break e;ue=p({},ue,ne);break e;case 2:Ba=!0}}ne=N.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:N.tag,payload:N.payload,callback:N.callback,next:null},se===null?(ee=se=ae,I=ue):se=se.next=ae,v|=ne;if(N=N.next,N===null){if(N=m.shared.pending,N===null)break;ae=N,N=ae.next,ae.next=null,m.lastBaseUpdate=ae,m.shared.pending=null}}while(!0);se===null&&(I=ue),m.baseState=I,m.firstBaseUpdate=ee,m.lastBaseUpdate=se,g===null&&(m.shared.lanes=0),_a|=v,t.lanes=v,t.memoizedState=ue}}function fh(t,r){if(typeof t!="function")throw Error(i(191,t));t.call(r)}function hh(t,r){var l=t.callbacks;if(l!==null)for(t.callbacks=null,t=0;t<l.length;t++)fh(l[t],r)}var Wi=M(null),So=M(0);function ph(t,r){t=ra,T(So,t),T(Wi,r),ra=t|r.baseLanes}function Ic(){T(So,ra),T(Wi,Wi.current)}function Hc(){ra=So.current,V(Wi),V(So)}var Xn=M(null),dr=null;function Fa(t){var r=t.alternate;T(Kt,Kt.current&1),T(Xn,t),dr===null&&(r===null||Wi.current!==null||r.memoizedState!==null)&&(dr=t)}function qc(t){T(Kt,Kt.current),T(Xn,t),dr===null&&(dr=t)}function mh(t){t.tag===22?(T(Kt,Kt.current),T(Xn,t),dr===null&&(dr=t)):wa()}function wa(){T(Kt,Kt.current),T(Xn,Xn.current)}function Zn(t){V(Xn),dr===t&&(dr=null),V(Kt)}var Kt=M(0);function No(t){for(var r=t;r!==null;){if(r.tag===13){var l=r.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||Kx(l)||Xx(l)))return r}else if(r.tag===19&&(r.memoizedProps.revealOrder==="forwards"||r.memoizedProps.revealOrder==="backwards"||r.memoizedProps.revealOrder==="unstable_legacy-backwards"||r.memoizedProps.revealOrder==="together")){if((r.flags&128)!==0)return r}else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return null;r=r.return}r.sibling.return=r.return,r=r.sibling}return null}var Kr=0,Ke=null,bt=null,nn=null,_o=!1,Ji=!1,di=!1,Mo=0,Zl=0,el=null,L5=0;function qt(){throw Error(i(321))}function $c(t,r){if(r===null)return!1;for(var l=0;l<r.length&&l<t.length;l++)if(!Yn(t[l],r[l]))return!1;return!0}function Gc(t,r,l,o,m,g){return Kr=g,Ke=r,r.memoizedState=null,r.updateQueue=null,r.lanes=0,U.H=t===null||t.memoizedState===null?Jh:lx,di=!1,g=l(o,m),di=!1,Ji&&(g=gh(r,l,o,m)),Eh(t),g}function Eh(t){U.H=es;var r=bt!==null&&bt.next!==null;if(Kr=0,nn=bt=Ke=null,_o=!1,Zl=0,el=null,r)throw Error(i(300));t===null||rn||(t=t.dependencies,t!==null&&Ao(t)&&(rn=!0))}function gh(t,r,l,o){Ke=t;var m=0;do{if(Ji&&(el=null),Zl=0,Ji=!1,25<=m)throw Error(i(301));if(m+=1,nn=bt=null,t.updateQueue!=null){var g=t.updateQueue;g.lastEffect=null,g.events=null,g.stores=null,g.memoCache!=null&&(g.memoCache.index=0)}U.H=e1,g=r(l,o)}while(Ji);return g}function P5(){var t=U.H,r=t.useState()[0];return r=typeof r.then=="function"?Wl(r):r,t=t.useState()[0],(bt!==null?bt.memoizedState:null)!==t&&(Ke.flags|=1024),r}function Vc(){var t=Mo!==0;return Mo=0,t}function Qc(t,r,l){r.updateQueue=t.updateQueue,r.flags&=-2053,t.lanes&=~l}function Yc(t){if(_o){for(t=t.memoizedState;t!==null;){var r=t.queue;r!==null&&(r.pending=null),t=t.next}_o=!1}Kr=0,nn=bt=Ke=null,Ji=!1,Zl=Mo=0,el=null}function Nn(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return nn===null?Ke.memoizedState=nn=t:nn=nn.next=t,nn}function Xt(){if(bt===null){var t=Ke.alternate;t=t!==null?t.memoizedState:null}else t=bt.next;var r=nn===null?Ke.memoizedState:nn.next;if(r!==null)nn=r,bt=t;else{if(t===null)throw Ke.alternate===null?Error(i(467)):Error(i(310));bt=t,t={memoizedState:bt.memoizedState,baseState:bt.baseState,baseQueue:bt.baseQueue,queue:bt.queue,next:null},nn===null?Ke.memoizedState=nn=t:nn=nn.next=t}return nn}function To(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Wl(t){var r=Zl;return Zl+=1,el===null&&(el=[]),t=oh(el,t,r),r=Ke,(nn===null?r.memoizedState:nn.next)===null&&(r=r.alternate,U.H=r===null||r.memoizedState===null?Jh:lx),t}function jo(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return Wl(t);if(t.$$typeof===F)return pn(t)}throw Error(i(438,String(t)))}function Kc(t){var r=null,l=Ke.updateQueue;if(l!==null&&(r=l.memoCache),r==null){var o=Ke.alternate;o!==null&&(o=o.updateQueue,o!==null&&(o=o.memoCache,o!=null&&(r={data:o.data.map(function(m){return m.slice()}),index:0})))}if(r==null&&(r={data:[],index:0}),l===null&&(l=To(),Ke.updateQueue=l),l.memoCache=r,l=r.data[r.index],l===void 0)for(l=r.data[r.index]=Array(t),o=0;o<t;o++)l[o]=L;return r.index++,l}function Xr(t,r){return typeof r=="function"?r(t):r}function Ro(t){var r=Xt();return Xc(r,bt,t)}function Xc(t,r,l){var o=t.queue;if(o===null)throw Error(i(311));o.lastRenderedReducer=l;var m=t.baseQueue,g=o.pending;if(g!==null){if(m!==null){var v=m.next;m.next=g.next,g.next=v}r.baseQueue=m=g,o.pending=null}if(g=t.baseState,m===null)t.memoizedState=g;else{r=m.next;var N=v=null,I=null,ee=r,se=!1;do{var ue=ee.lane&-536870913;if(ue!==ee.lane?(it&ue)===ue:(Kr&ue)===ue){var ne=ee.revertLane;if(ne===0)I!==null&&(I=I.next={lane:0,revertLane:0,gesture:null,action:ee.action,hasEagerState:ee.hasEagerState,eagerState:ee.eagerState,next:null}),ue===Yi&&(se=!0);else if((Kr&ne)===ne){ee=ee.next,ne===Yi&&(se=!0);continue}else ue={lane:0,revertLane:ee.revertLane,gesture:null,action:ee.action,hasEagerState:ee.hasEagerState,eagerState:ee.eagerState,next:null},I===null?(N=I=ue,v=g):I=I.next=ue,Ke.lanes|=ne,_a|=ne;ue=ee.action,di&&l(g,ue),g=ee.hasEagerState?ee.eagerState:l(g,ue)}else ne={lane:ue,revertLane:ee.revertLane,gesture:ee.gesture,action:ee.action,hasEagerState:ee.hasEagerState,eagerState:ee.eagerState,next:null},I===null?(N=I=ne,v=g):I=I.next=ne,Ke.lanes|=ue,_a|=ue;ee=ee.next}while(ee!==null&&ee!==r);if(I===null?v=g:I.next=N,!Yn(g,t.memoizedState)&&(rn=!0,se&&(l=Ki,l!==null)))throw l;t.memoizedState=g,t.baseState=v,t.baseQueue=I,o.lastRenderedState=g}return m===null&&(o.lanes=0),[t.memoizedState,o.dispatch]}function Zc(t){var r=Xt(),l=r.queue;if(l===null)throw Error(i(311));l.lastRenderedReducer=t;var o=l.dispatch,m=l.pending,g=r.memoizedState;if(m!==null){l.pending=null;var v=m=m.next;do g=t(g,v.action),v=v.next;while(v!==m);Yn(g,r.memoizedState)||(rn=!0),r.memoizedState=g,r.baseQueue===null&&(r.baseState=g),l.lastRenderedState=g}return[g,o]}function yh(t,r,l){var o=Ke,m=Xt(),g=st;if(g){if(l===void 0)throw Error(i(407));l=l()}else l=r();var v=!Yn((bt||m).memoizedState,l);if(v&&(m.memoizedState=l,rn=!0),m=m.queue,ex(Ah.bind(null,o,m,t),[t]),m.getSnapshot!==r||v||nn!==null&&nn.memoizedState.tag&1){if(o.flags|=2048,tl(9,{destroy:void 0},Ch.bind(null,o,m,l,r),null),kt===null)throw Error(i(349));g||(Kr&127)!==0||bh(o,r,l)}return l}function bh(t,r,l){t.flags|=16384,t={getSnapshot:r,value:l},r=Ke.updateQueue,r===null?(r=To(),Ke.updateQueue=r,r.stores=[t]):(l=r.stores,l===null?r.stores=[t]:l.push(t))}function Ch(t,r,l,o){r.value=l,r.getSnapshot=o,vh(r)&&Bh(t)}function Ah(t,r,l){return l(function(){vh(r)&&Bh(t)})}function vh(t){var r=t.getSnapshot;t=t.value;try{var l=r();return!Yn(t,l)}catch{return!0}}function Bh(t){var r=ri(t,2);r!==null&&Un(r,t,2)}function Wc(t){var r=Nn();if(typeof t=="function"){var l=t;if(t=l(),di){yn(!0);try{l()}finally{yn(!1)}}}return r.memoizedState=r.baseState=t,r.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Xr,lastRenderedState:t},r}function kh(t,r,l,o){return t.baseState=l,Xc(t,bt,typeof o=="function"?o:Xr)}function U5(t,r,l,o,m){if(Lo(t))throw Error(i(485));if(t=r.action,t!==null){var g={payload:m,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(v){g.listeners.push(v)}};U.T!==null?l(!0):g.isTransition=!1,o(g),l=r.pending,l===null?(g.next=r.pending=g,Dh(r,g)):(g.next=l.next,r.pending=l.next=g)}}function Dh(t,r){var l=r.action,o=r.payload,m=t.state;if(r.isTransition){var g=U.T,v={};U.T=v;try{var N=l(m,o),I=U.S;I!==null&&I(v,N),Fh(t,r,N)}catch(ee){Jc(t,r,ee)}finally{g!==null&&v.types!==null&&(g.types=v.types),U.T=g}}else try{g=l(m,o),Fh(t,r,g)}catch(ee){Jc(t,r,ee)}}function Fh(t,r,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(o){wh(t,r,o)},function(o){return Jc(t,r,o)}):wh(t,r,l)}function wh(t,r,l){r.status="fulfilled",r.value=l,Sh(r),t.state=l,r=t.pending,r!==null&&(l=r.next,l===r?t.pending=null:(l=l.next,r.next=l,Dh(t,l)))}function Jc(t,r,l){var o=t.pending;if(t.pending=null,o!==null){o=o.next;do r.status="rejected",r.reason=l,Sh(r),r=r.next;while(r!==o)}t.action=null}function Sh(t){t=t.listeners;for(var r=0;r<t.length;r++)(0,t[r])()}function Nh(t,r){return r}function _h(t,r){if(st){var l=kt.formState;if(l!==null){e:{var o=Ke;if(st){if(Tt){t:{for(var m=Tt,g=ur;m.nodeType!==8;){if(!g){m=null;break t}if(m=fr(m.nextSibling),m===null){m=null;break t}}g=m.data,m=g==="F!"||g==="F"?m:null}if(m){Tt=fr(m.nextSibling),o=m.data==="F!";break e}}Aa(o)}o=!1}o&&(r=l[0])}}return l=Nn(),l.memoizedState=l.baseState=r,o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Nh,lastRenderedState:r},l.queue=o,l=Xh.bind(null,Ke,o),o.dispatch=l,o=Wc(!1),g=ix.bind(null,Ke,!1,o.queue),o=Nn(),m={state:r,dispatch:null,action:t,pending:null},o.queue=m,l=U5.bind(null,Ke,m,g,l),m.dispatch=l,o.memoizedState=t,[r,l,!1]}function Mh(t){var r=Xt();return Th(r,bt,t)}function Th(t,r,l){if(r=Xc(t,r,Nh)[0],t=Ro(Xr)[0],typeof r=="object"&&r!==null&&typeof r.then=="function")try{var o=Wl(r)}catch(v){throw v===Xi?ko:v}else o=r;r=Xt();var m=r.queue,g=m.dispatch;return l!==r.memoizedState&&(Ke.flags|=2048,tl(9,{destroy:void 0},I5.bind(null,m,l),null)),[o,g,t]}function I5(t,r){t.action=r}function jh(t){var r=Xt(),l=bt;if(l!==null)return Th(r,l,t);Xt(),r=r.memoizedState,l=Xt();var o=l.queue.dispatch;return l.memoizedState=t,[r,o,!1]}function tl(t,r,l,o){return t={tag:t,create:l,deps:o,inst:r,next:null},r=Ke.updateQueue,r===null&&(r=To(),Ke.updateQueue=r),l=r.lastEffect,l===null?r.lastEffect=t.next=t:(o=l.next,l.next=t,t.next=o,r.lastEffect=t),t}function Rh(){return Xt().memoizedState}function Oo(t,r,l,o){var m=Nn();Ke.flags|=t,m.memoizedState=tl(1|r,{destroy:void 0},l,o===void 0?null:o)}function zo(t,r,l,o){var m=Xt();o=o===void 0?null:o;var g=m.memoizedState.inst;bt!==null&&o!==null&&$c(o,bt.memoizedState.deps)?m.memoizedState=tl(r,g,l,o):(Ke.flags|=t,m.memoizedState=tl(1|r,g,l,o))}function Oh(t,r){Oo(8390656,8,t,r)}function ex(t,r){zo(2048,8,t,r)}function H5(t){Ke.flags|=4;var r=Ke.updateQueue;if(r===null)r=To(),Ke.updateQueue=r,r.events=[t];else{var l=r.events;l===null?r.events=[t]:l.push(t)}}function zh(t){var r=Xt().memoizedState;return H5({ref:r,nextImpl:t}),function(){if((ft&2)!==0)throw Error(i(440));return r.impl.apply(void 0,arguments)}}function Lh(t,r){return zo(4,2,t,r)}function Ph(t,r){return zo(4,4,t,r)}function Uh(t,r){if(typeof r=="function"){t=t();var l=r(t);return function(){typeof l=="function"?l():r(null)}}if(r!=null)return t=t(),r.current=t,function(){r.current=null}}function Ih(t,r,l){l=l!=null?l.concat([t]):null,zo(4,4,Uh.bind(null,r,t),l)}function tx(){}function Hh(t,r){var l=Xt();r=r===void 0?null:r;var o=l.memoizedState;return r!==null&&$c(r,o[1])?o[0]:(l.memoizedState=[t,r],t)}function qh(t,r){var l=Xt();r=r===void 0?null:r;var o=l.memoizedState;if(r!==null&&$c(r,o[1]))return o[0];if(o=t(),di){yn(!0);try{t()}finally{yn(!1)}}return l.memoizedState=[o,r],o}function nx(t,r,l){return l===void 0||(Kr&1073741824)!==0&&(it&261930)===0?t.memoizedState=r:(t.memoizedState=l,t=$1(),Ke.lanes|=t,_a|=t,l)}function $h(t,r,l,o){return Yn(l,r)?l:Wi.current!==null?(t=nx(t,l,o),Yn(t,r)||(rn=!0),t):(Kr&42)===0||(Kr&1073741824)!==0&&(it&261930)===0?(rn=!0,t.memoizedState=l):(t=$1(),Ke.lanes|=t,_a|=t,r)}function Gh(t,r,l,o,m){var g=P.p;P.p=g!==0&&8>g?g:8;var v=U.T,N={};U.T=N,ix(t,!1,r,l);try{var I=m(),ee=U.S;if(ee!==null&&ee(N,I),I!==null&&typeof I=="object"&&typeof I.then=="function"){var se=z5(I,o);Jl(t,r,se,er(t))}else Jl(t,r,o,er(t))}catch(ue){Jl(t,r,{then:function(){},status:"rejected",reason:ue},er())}finally{P.p=g,v!==null&&N.types!==null&&(v.types=N.types),U.T=v}}function q5(){}function rx(t,r,l,o){if(t.tag!==5)throw Error(i(476));var m=Vh(t).queue;Gh(t,m,r,re,l===null?q5:function(){return Qh(t),l(o)})}function Vh(t){var r=t.memoizedState;if(r!==null)return r;r={memoizedState:re,baseState:re,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Xr,lastRenderedState:re},next:null};var l={};return r.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Xr,lastRenderedState:l},next:null},t.memoizedState=r,t=t.alternate,t!==null&&(t.memoizedState=r),r}function Qh(t){var r=Vh(t);r.next===null&&(r=t.alternate.memoizedState),Jl(t,r.next.queue,{},er())}function ax(){return pn(ms)}function Yh(){return Xt().memoizedState}function Kh(){return Xt().memoizedState}function $5(t){for(var r=t.return;r!==null;){switch(r.tag){case 24:case 3:var l=er();t=ka(l);var o=Da(r,t,l);o!==null&&(Un(o,r,l),Yl(o,r,l)),r={cache:Tc()},t.payload=r;return}r=r.return}}function G5(t,r,l){var o=er();l={lane:o,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Lo(t)?Zh(r,l):(l=Ac(t,r,l,o),l!==null&&(Un(l,t,o),Wh(l,r,o)))}function Xh(t,r,l){var o=er();Jl(t,r,l,o)}function Jl(t,r,l,o){var m={lane:o,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(Lo(t))Zh(r,m);else{var g=t.alternate;if(t.lanes===0&&(g===null||g.lanes===0)&&(g=r.lastRenderedReducer,g!==null))try{var v=r.lastRenderedState,N=g(v,l);if(m.hasEagerState=!0,m.eagerState=N,Yn(N,v))return go(t,r,m,0),kt===null&&Eo(),!1}catch{}if(l=Ac(t,r,m,o),l!==null)return Un(l,t,o),Wh(l,r,o),!0}return!1}function ix(t,r,l,o){if(o={lane:2,revertLane:zx(),gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null},Lo(t)){if(r)throw Error(i(479))}else r=Ac(t,l,o,2),r!==null&&Un(r,t,2)}function Lo(t){var r=t.alternate;return t===Ke||r!==null&&r===Ke}function Zh(t,r){Ji=_o=!0;var l=t.pending;l===null?r.next=r:(r.next=l.next,l.next=r),t.pending=r}function Wh(t,r,l){if((l&4194048)!==0){var o=r.lanes;o&=t.pendingLanes,l|=o,r.lanes=l,He(t,l)}}var es={readContext:pn,use:jo,useCallback:qt,useContext:qt,useEffect:qt,useImperativeHandle:qt,useLayoutEffect:qt,useInsertionEffect:qt,useMemo:qt,useReducer:qt,useRef:qt,useState:qt,useDebugValue:qt,useDeferredValue:qt,useTransition:qt,useSyncExternalStore:qt,useId:qt,useHostTransitionStatus:qt,useFormState:qt,useActionState:qt,useOptimistic:qt,useMemoCache:qt,useCacheRefresh:qt};es.useEffectEvent=qt;var Jh={readContext:pn,use:jo,useCallback:function(t,r){return Nn().memoizedState=[t,r===void 0?null:r],t},useContext:pn,useEffect:Oh,useImperativeHandle:function(t,r,l){l=l!=null?l.concat([t]):null,Oo(4194308,4,Uh.bind(null,r,t),l)},useLayoutEffect:function(t,r){return Oo(4194308,4,t,r)},useInsertionEffect:function(t,r){Oo(4,2,t,r)},useMemo:function(t,r){var l=Nn();r=r===void 0?null:r;var o=t();if(di){yn(!0);try{t()}finally{yn(!1)}}return l.memoizedState=[o,r],o},useReducer:function(t,r,l){var o=Nn();if(l!==void 0){var m=l(r);if(di){yn(!0);try{l(r)}finally{yn(!1)}}}else m=r;return o.memoizedState=o.baseState=m,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:m},o.queue=t,t=t.dispatch=G5.bind(null,Ke,t),[o.memoizedState,t]},useRef:function(t){var r=Nn();return t={current:t},r.memoizedState=t},useState:function(t){t=Wc(t);var r=t.queue,l=Xh.bind(null,Ke,r);return r.dispatch=l,[t.memoizedState,l]},useDebugValue:tx,useDeferredValue:function(t,r){var l=Nn();return nx(l,t,r)},useTransition:function(){var t=Wc(!1);return t=Gh.bind(null,Ke,t.queue,!0,!1),Nn().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,r,l){var o=Ke,m=Nn();if(st){if(l===void 0)throw Error(i(407));l=l()}else{if(l=r(),kt===null)throw Error(i(349));(it&127)!==0||bh(o,r,l)}m.memoizedState=l;var g={value:l,getSnapshot:r};return m.queue=g,Oh(Ah.bind(null,o,g,t),[t]),o.flags|=2048,tl(9,{destroy:void 0},Ch.bind(null,o,g,l,r),null),l},useId:function(){var t=Nn(),r=kt.identifierPrefix;if(st){var l=Mr,o=_r;l=(o&~(1<<32-pt(o)-1)).toString(32)+l,r="_"+r+"R_"+l,l=Mo++,0<l&&(r+="H"+l.toString(32)),r+="_"}else l=L5++,r="_"+r+"r_"+l.toString(32)+"_";return t.memoizedState=r},useHostTransitionStatus:ax,useFormState:_h,useActionState:_h,useOptimistic:function(t){var r=Nn();r.memoizedState=r.baseState=t;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return r.queue=l,r=ix.bind(null,Ke,!0,l),l.dispatch=r,[t,r]},useMemoCache:Kc,useCacheRefresh:function(){return Nn().memoizedState=$5.bind(null,Ke)},useEffectEvent:function(t){var r=Nn(),l={impl:t};return r.memoizedState=l,function(){if((ft&2)!==0)throw Error(i(440));return l.impl.apply(void 0,arguments)}}},lx={readContext:pn,use:jo,useCallback:Hh,useContext:pn,useEffect:ex,useImperativeHandle:Ih,useInsertionEffect:Lh,useLayoutEffect:Ph,useMemo:qh,useReducer:Ro,useRef:Rh,useState:function(){return Ro(Xr)},useDebugValue:tx,useDeferredValue:function(t,r){var l=Xt();return $h(l,bt.memoizedState,t,r)},useTransition:function(){var t=Ro(Xr)[0],r=Xt().memoizedState;return[typeof t=="boolean"?t:Wl(t),r]},useSyncExternalStore:yh,useId:Yh,useHostTransitionStatus:ax,useFormState:Mh,useActionState:Mh,useOptimistic:function(t,r){var l=Xt();return kh(l,bt,t,r)},useMemoCache:Kc,useCacheRefresh:Kh};lx.useEffectEvent=zh;var e1={readContext:pn,use:jo,useCallback:Hh,useContext:pn,useEffect:ex,useImperativeHandle:Ih,useInsertionEffect:Lh,useLayoutEffect:Ph,useMemo:qh,useReducer:Zc,useRef:Rh,useState:function(){return Zc(Xr)},useDebugValue:tx,useDeferredValue:function(t,r){var l=Xt();return bt===null?nx(l,t,r):$h(l,bt.memoizedState,t,r)},useTransition:function(){var t=Zc(Xr)[0],r=Xt().memoizedState;return[typeof t=="boolean"?t:Wl(t),r]},useSyncExternalStore:yh,useId:Yh,useHostTransitionStatus:ax,useFormState:jh,useActionState:jh,useOptimistic:function(t,r){var l=Xt();return bt!==null?kh(l,bt,t,r):(l.baseState=t,[t,l.queue.dispatch])},useMemoCache:Kc,useCacheRefresh:Kh};e1.useEffectEvent=zh;function sx(t,r,l,o){r=t.memoizedState,l=l(o,r),l=l==null?r:p({},r,l),t.memoizedState=l,t.lanes===0&&(t.updateQueue.baseState=l)}var ox={enqueueSetState:function(t,r,l){t=t._reactInternals;var o=er(),m=ka(o);m.payload=r,l!=null&&(m.callback=l),r=Da(t,m,o),r!==null&&(Un(r,t,o),Yl(r,t,o))},enqueueReplaceState:function(t,r,l){t=t._reactInternals;var o=er(),m=ka(o);m.tag=1,m.payload=r,l!=null&&(m.callback=l),r=Da(t,m,o),r!==null&&(Un(r,t,o),Yl(r,t,o))},enqueueForceUpdate:function(t,r){t=t._reactInternals;var l=er(),o=ka(l);o.tag=2,r!=null&&(o.callback=r),r=Da(t,o,l),r!==null&&(Un(r,t,l),Yl(r,t,l))}};function t1(t,r,l,o,m,g,v){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(o,g,v):r.prototype&&r.prototype.isPureReactComponent?!Ul(l,o)||!Ul(m,g):!0}function n1(t,r,l,o){t=r.state,typeof r.componentWillReceiveProps=="function"&&r.componentWillReceiveProps(l,o),typeof r.UNSAFE_componentWillReceiveProps=="function"&&r.UNSAFE_componentWillReceiveProps(l,o),r.state!==t&&ox.enqueueReplaceState(r,r.state,null)}function fi(t,r){var l=r;if("ref"in r){l={};for(var o in r)o!=="ref"&&(l[o]=r[o])}if(t=t.defaultProps){l===r&&(l=p({},l));for(var m in t)l[m]===void 0&&(l[m]=t[m])}return l}function r1(t){mo(t)}function a1(t){console.error(t)}function i1(t){mo(t)}function Po(t,r){try{var l=t.onUncaughtError;l(r.value,{componentStack:r.stack})}catch(o){setTimeout(function(){throw o})}}function l1(t,r,l){try{var o=t.onCaughtError;o(l.value,{componentStack:l.stack,errorBoundary:r.tag===1?r.stateNode:null})}catch(m){setTimeout(function(){throw m})}}function cx(t,r,l){return l=ka(l),l.tag=3,l.payload={element:null},l.callback=function(){Po(t,r)},l}function s1(t){return t=ka(t),t.tag=3,t}function o1(t,r,l,o){var m=l.type.getDerivedStateFromError;if(typeof m=="function"){var g=o.value;t.payload=function(){return m(g)},t.callback=function(){l1(r,l,o)}}var v=l.stateNode;v!==null&&typeof v.componentDidCatch=="function"&&(t.callback=function(){l1(r,l,o),typeof m!="function"&&(Ma===null?Ma=new Set([this]):Ma.add(this));var N=o.stack;this.componentDidCatch(o.value,{componentStack:N!==null?N:""})})}function V5(t,r,l,o,m){if(l.flags|=32768,o!==null&&typeof o=="object"&&typeof o.then=="function"){if(r=l.alternate,r!==null&&Qi(r,l,m,!0),l=Xn.current,l!==null){switch(l.tag){case 31:case 13:return dr===null?Zo():l.alternate===null&&$t===0&&($t=3),l.flags&=-257,l.flags|=65536,l.lanes=m,o===Do?l.flags|=16384:(r=l.updateQueue,r===null?l.updateQueue=new Set([o]):r.add(o),jx(t,o,m)),!1;case 22:return l.flags|=65536,o===Do?l.flags|=16384:(r=l.updateQueue,r===null?(r={transitions:null,markerInstances:null,retryQueue:new Set([o])},l.updateQueue=r):(l=r.retryQueue,l===null?r.retryQueue=new Set([o]):l.add(o)),jx(t,o,m)),!1}throw Error(i(435,l.tag))}return jx(t,o,m),Zo(),!1}if(st)return r=Xn.current,r!==null?((r.flags&65536)===0&&(r.flags|=256),r.flags|=65536,r.lanes=m,o!==wc&&(t=Error(i(422),{cause:o}),ql(or(t,l)))):(o!==wc&&(r=Error(i(423),{cause:o}),ql(or(r,l))),t=t.current.alternate,t.flags|=65536,m&=-m,t.lanes|=m,o=or(o,l),m=cx(t.stateNode,o,m),Pc(t,m),$t!==4&&($t=2)),!1;var g=Error(i(520),{cause:o});if(g=or(g,l),os===null?os=[g]:os.push(g),$t!==4&&($t=2),r===null)return!0;o=or(o,l),l=r;do{switch(l.tag){case 3:return l.flags|=65536,t=m&-m,l.lanes|=t,t=cx(l.stateNode,o,t),Pc(l,t),!1;case 1:if(r=l.type,g=l.stateNode,(l.flags&128)===0&&(typeof r.getDerivedStateFromError=="function"||g!==null&&typeof g.componentDidCatch=="function"&&(Ma===null||!Ma.has(g))))return l.flags|=65536,m&=-m,l.lanes|=m,m=s1(m),o1(m,t,l,o),Pc(l,m),!1}l=l.return}while(l!==null);return!1}var xx=Error(i(461)),rn=!1;function mn(t,r,l,o){r.child=t===null?dh(r,null,l,o):ui(r,t.child,l,o)}function c1(t,r,l,o,m){l=l.render;var g=r.ref;if("ref"in o){var v={};for(var N in o)N!=="ref"&&(v[N]=o[N])}else v=o;return si(r),o=Gc(t,r,l,v,g,m),N=Vc(),t!==null&&!rn?(Qc(t,r,m),Zr(t,r,m)):(st&&N&&Dc(r),r.flags|=1,mn(t,r,o,m),r.child)}function x1(t,r,l,o,m){if(t===null){var g=l.type;return typeof g=="function"&&!vc(g)&&g.defaultProps===void 0&&l.compare===null?(r.tag=15,r.type=g,u1(t,r,g,o,m)):(t=bo(l.type,null,o,r,r.mode,m),t.ref=r.ref,t.return=r,r.child=t)}if(g=t.child,!gx(t,m)){var v=g.memoizedProps;if(l=l.compare,l=l!==null?l:Ul,l(v,o)&&t.ref===r.ref)return Zr(t,r,m)}return r.flags|=1,t=Gr(g,o),t.ref=r.ref,t.return=r,r.child=t}function u1(t,r,l,o,m){if(t!==null){var g=t.memoizedProps;if(Ul(g,o)&&t.ref===r.ref)if(rn=!1,r.pendingProps=o=g,gx(t,m))(t.flags&131072)!==0&&(rn=!0);else return r.lanes=t.lanes,Zr(t,r,m)}return ux(t,r,l,o,m)}function d1(t,r,l,o){var m=o.children,g=t!==null?t.memoizedState:null;if(t===null&&r.stateNode===null&&(r.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),o.mode==="hidden"){if((r.flags&128)!==0){if(g=g!==null?g.baseLanes|l:l,t!==null){for(o=r.child=t.child,m=0;o!==null;)m=m|o.lanes|o.childLanes,o=o.sibling;o=m&~g}else o=0,r.child=null;return f1(t,r,g,l,o)}if((l&536870912)!==0)r.memoizedState={baseLanes:0,cachePool:null},t!==null&&Bo(r,g!==null?g.cachePool:null),g!==null?ph(r,g):Ic(),mh(r);else return o=r.lanes=536870912,f1(t,r,g!==null?g.baseLanes|l:l,l,o)}else g!==null?(Bo(r,g.cachePool),ph(r,g),wa(),r.memoizedState=null):(t!==null&&Bo(r,null),Ic(),wa());return mn(t,r,m,l),r.child}function ts(t,r){return t!==null&&t.tag===22||r.stateNode!==null||(r.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.sibling}function f1(t,r,l,o,m){var g=Rc();return g=g===null?null:{parent:tn._currentValue,pool:g},r.memoizedState={baseLanes:l,cachePool:g},t!==null&&Bo(r,null),Ic(),mh(r),t!==null&&Qi(t,r,o,!0),r.childLanes=m,null}function Uo(t,r){return r=Ho({mode:r.mode,children:r.children},t.mode),r.ref=t.ref,t.child=r,r.return=t,r}function h1(t,r,l){return ui(r,t.child,null,l),t=Uo(r,r.pendingProps),t.flags|=2,Zn(r),r.memoizedState=null,t}function Q5(t,r,l){var o=r.pendingProps,m=(r.flags&128)!==0;if(r.flags&=-129,t===null){if(st){if(o.mode==="hidden")return t=Uo(r,o),r.lanes=536870912,ts(null,t);if(qc(r),(t=Tt)?(t=Dp(t,ur),t=t!==null&&t.data==="&"?t:null,t!==null&&(r.memoizedState={dehydrated:t,treeContext:ba!==null?{id:_r,overflow:Mr}:null,retryLane:536870912,hydrationErrors:null},l=Zf(t),l.return=r,r.child=l,hn=r,Tt=null)):t=null,t===null)throw Aa(r);return r.lanes=536870912,null}return Uo(r,o)}var g=t.memoizedState;if(g!==null){var v=g.dehydrated;if(qc(r),m)if(r.flags&256)r.flags&=-257,r=h1(t,r,l);else if(r.memoizedState!==null)r.child=t.child,r.flags|=128,r=null;else throw Error(i(558));else if(rn||Qi(t,r,l,!1),m=(l&t.childLanes)!==0,rn||m){if(o=kt,o!==null&&(v=Vt(o,l),v!==0&&v!==g.retryLane))throw g.retryLane=v,ri(t,v),Un(o,t,v),xx;Zo(),r=h1(t,r,l)}else t=g.treeContext,Tt=fr(v.nextSibling),hn=r,st=!0,Ca=null,ur=!1,t!==null&&eh(r,t),r=Uo(r,o),r.flags|=4096;return r}return t=Gr(t.child,{mode:o.mode,children:o.children}),t.ref=r.ref,r.child=t,t.return=r,t}function Io(t,r){var l=r.ref;if(l===null)t!==null&&t.ref!==null&&(r.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(i(284));(t===null||t.ref!==l)&&(r.flags|=4194816)}}function ux(t,r,l,o,m){return si(r),l=Gc(t,r,l,o,void 0,m),o=Vc(),t!==null&&!rn?(Qc(t,r,m),Zr(t,r,m)):(st&&o&&Dc(r),r.flags|=1,mn(t,r,l,m),r.child)}function p1(t,r,l,o,m,g){return si(r),r.updateQueue=null,l=gh(r,o,l,m),Eh(t),o=Vc(),t!==null&&!rn?(Qc(t,r,g),Zr(t,r,g)):(st&&o&&Dc(r),r.flags|=1,mn(t,r,l,g),r.child)}function m1(t,r,l,o,m){if(si(r),r.stateNode===null){var g=qi,v=l.contextType;typeof v=="object"&&v!==null&&(g=pn(v)),g=new l(o,g),r.memoizedState=g.state!==null&&g.state!==void 0?g.state:null,g.updater=ox,r.stateNode=g,g._reactInternals=r,g=r.stateNode,g.props=o,g.state=r.memoizedState,g.refs={},zc(r),v=l.contextType,g.context=typeof v=="object"&&v!==null?pn(v):qi,g.state=r.memoizedState,v=l.getDerivedStateFromProps,typeof v=="function"&&(sx(r,l,v,o),g.state=r.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof g.getSnapshotBeforeUpdate=="function"||typeof g.UNSAFE_componentWillMount!="function"&&typeof g.componentWillMount!="function"||(v=g.state,typeof g.componentWillMount=="function"&&g.componentWillMount(),typeof g.UNSAFE_componentWillMount=="function"&&g.UNSAFE_componentWillMount(),v!==g.state&&ox.enqueueReplaceState(g,g.state,null),Xl(r,o,g,m),Kl(),g.state=r.memoizedState),typeof g.componentDidMount=="function"&&(r.flags|=4194308),o=!0}else if(t===null){g=r.stateNode;var N=r.memoizedProps,I=fi(l,N);g.props=I;var ee=g.context,se=l.contextType;v=qi,typeof se=="object"&&se!==null&&(v=pn(se));var ue=l.getDerivedStateFromProps;se=typeof ue=="function"||typeof g.getSnapshotBeforeUpdate=="function",N=r.pendingProps!==N,se||typeof g.UNSAFE_componentWillReceiveProps!="function"&&typeof g.componentWillReceiveProps!="function"||(N||ee!==v)&&n1(r,g,o,v),Ba=!1;var ne=r.memoizedState;g.state=ne,Xl(r,o,g,m),Kl(),ee=r.memoizedState,N||ne!==ee||Ba?(typeof ue=="function"&&(sx(r,l,ue,o),ee=r.memoizedState),(I=Ba||t1(r,l,I,o,ne,ee,v))?(se||typeof g.UNSAFE_componentWillMount!="function"&&typeof g.componentWillMount!="function"||(typeof g.componentWillMount=="function"&&g.componentWillMount(),typeof g.UNSAFE_componentWillMount=="function"&&g.UNSAFE_componentWillMount()),typeof g.componentDidMount=="function"&&(r.flags|=4194308)):(typeof g.componentDidMount=="function"&&(r.flags|=4194308),r.memoizedProps=o,r.memoizedState=ee),g.props=o,g.state=ee,g.context=v,o=I):(typeof g.componentDidMount=="function"&&(r.flags|=4194308),o=!1)}else{g=r.stateNode,Lc(t,r),v=r.memoizedProps,se=fi(l,v),g.props=se,ue=r.pendingProps,ne=g.context,ee=l.contextType,I=qi,typeof ee=="object"&&ee!==null&&(I=pn(ee)),N=l.getDerivedStateFromProps,(ee=typeof N=="function"||typeof g.getSnapshotBeforeUpdate=="function")||typeof g.UNSAFE_componentWillReceiveProps!="function"&&typeof g.componentWillReceiveProps!="function"||(v!==ue||ne!==I)&&n1(r,g,o,I),Ba=!1,ne=r.memoizedState,g.state=ne,Xl(r,o,g,m),Kl();var ae=r.memoizedState;v!==ue||ne!==ae||Ba||t!==null&&t.dependencies!==null&&Ao(t.dependencies)?(typeof N=="function"&&(sx(r,l,N,o),ae=r.memoizedState),(se=Ba||t1(r,l,se,o,ne,ae,I)||t!==null&&t.dependencies!==null&&Ao(t.dependencies))?(ee||typeof g.UNSAFE_componentWillUpdate!="function"&&typeof g.componentWillUpdate!="function"||(typeof g.componentWillUpdate=="function"&&g.componentWillUpdate(o,ae,I),typeof g.UNSAFE_componentWillUpdate=="function"&&g.UNSAFE_componentWillUpdate(o,ae,I)),typeof g.componentDidUpdate=="function"&&(r.flags|=4),typeof g.getSnapshotBeforeUpdate=="function"&&(r.flags|=1024)):(typeof g.componentDidUpdate!="function"||v===t.memoizedProps&&ne===t.memoizedState||(r.flags|=4),typeof g.getSnapshotBeforeUpdate!="function"||v===t.memoizedProps&&ne===t.memoizedState||(r.flags|=1024),r.memoizedProps=o,r.memoizedState=ae),g.props=o,g.state=ae,g.context=I,o=se):(typeof g.componentDidUpdate!="function"||v===t.memoizedProps&&ne===t.memoizedState||(r.flags|=4),typeof g.getSnapshotBeforeUpdate!="function"||v===t.memoizedProps&&ne===t.memoizedState||(r.flags|=1024),o=!1)}return g=o,Io(t,r),o=(r.flags&128)!==0,g||o?(g=r.stateNode,l=o&&typeof l.getDerivedStateFromError!="function"?null:g.render(),r.flags|=1,t!==null&&o?(r.child=ui(r,t.child,null,m),r.child=ui(r,null,l,m)):mn(t,r,l,m),r.memoizedState=g.state,t=r.child):t=Zr(t,r,m),t}function E1(t,r,l,o){return ii(),r.flags|=256,mn(t,r,l,o),r.child}var dx={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function fx(t){return{baseLanes:t,cachePool:lh()}}function hx(t,r,l){return t=t!==null?t.childLanes&~l:0,r&&(t|=Jn),t}function g1(t,r,l){var o=r.pendingProps,m=!1,g=(r.flags&128)!==0,v;if((v=g)||(v=t!==null&&t.memoizedState===null?!1:(Kt.current&2)!==0),v&&(m=!0,r.flags&=-129),v=(r.flags&32)!==0,r.flags&=-33,t===null){if(st){if(m?Fa(r):wa(),(t=Tt)?(t=Dp(t,ur),t=t!==null&&t.data!=="&"?t:null,t!==null&&(r.memoizedState={dehydrated:t,treeContext:ba!==null?{id:_r,overflow:Mr}:null,retryLane:536870912,hydrationErrors:null},l=Zf(t),l.return=r,r.child=l,hn=r,Tt=null)):t=null,t===null)throw Aa(r);return Xx(t)?r.lanes=32:r.lanes=536870912,null}var N=o.children;return o=o.fallback,m?(wa(),m=r.mode,N=Ho({mode:"hidden",children:N},m),o=ai(o,m,l,null),N.return=r,o.return=r,N.sibling=o,r.child=N,o=r.child,o.memoizedState=fx(l),o.childLanes=hx(t,v,l),r.memoizedState=dx,ts(null,o)):(Fa(r),px(r,N))}var I=t.memoizedState;if(I!==null&&(N=I.dehydrated,N!==null)){if(g)r.flags&256?(Fa(r),r.flags&=-257,r=mx(t,r,l)):r.memoizedState!==null?(wa(),r.child=t.child,r.flags|=128,r=null):(wa(),N=o.fallback,m=r.mode,o=Ho({mode:"visible",children:o.children},m),N=ai(N,m,l,null),N.flags|=2,o.return=r,N.return=r,o.sibling=N,r.child=o,ui(r,t.child,null,l),o=r.child,o.memoizedState=fx(l),o.childLanes=hx(t,v,l),r.memoizedState=dx,r=ts(null,o));else if(Fa(r),Xx(N)){if(v=N.nextSibling&&N.nextSibling.dataset,v)var ee=v.dgst;v=ee,o=Error(i(419)),o.stack="",o.digest=v,ql({value:o,source:null,stack:null}),r=mx(t,r,l)}else if(rn||Qi(t,r,l,!1),v=(l&t.childLanes)!==0,rn||v){if(v=kt,v!==null&&(o=Vt(v,l),o!==0&&o!==I.retryLane))throw I.retryLane=o,ri(t,o),Un(v,t,o),xx;Kx(N)||Zo(),r=mx(t,r,l)}else Kx(N)?(r.flags|=192,r.child=t.child,r=null):(t=I.treeContext,Tt=fr(N.nextSibling),hn=r,st=!0,Ca=null,ur=!1,t!==null&&eh(r,t),r=px(r,o.children),r.flags|=4096);return r}return m?(wa(),N=o.fallback,m=r.mode,I=t.child,ee=I.sibling,o=Gr(I,{mode:"hidden",children:o.children}),o.subtreeFlags=I.subtreeFlags&65011712,ee!==null?N=Gr(ee,N):(N=ai(N,m,l,null),N.flags|=2),N.return=r,o.return=r,o.sibling=N,r.child=o,ts(null,o),o=r.child,N=t.child.memoizedState,N===null?N=fx(l):(m=N.cachePool,m!==null?(I=tn._currentValue,m=m.parent!==I?{parent:I,pool:I}:m):m=lh(),N={baseLanes:N.baseLanes|l,cachePool:m}),o.memoizedState=N,o.childLanes=hx(t,v,l),r.memoizedState=dx,ts(t.child,o)):(Fa(r),l=t.child,t=l.sibling,l=Gr(l,{mode:"visible",children:o.children}),l.return=r,l.sibling=null,t!==null&&(v=r.deletions,v===null?(r.deletions=[t],r.flags|=16):v.push(t)),r.child=l,r.memoizedState=null,l)}function px(t,r){return r=Ho({mode:"visible",children:r},t.mode),r.return=t,t.child=r}function Ho(t,r){return t=Kn(22,t,null,r),t.lanes=0,t}function mx(t,r,l){return ui(r,t.child,null,l),t=px(r,r.pendingProps.children),t.flags|=2,r.memoizedState=null,t}function y1(t,r,l){t.lanes|=r;var o=t.alternate;o!==null&&(o.lanes|=r),_c(t.return,r,l)}function Ex(t,r,l,o,m,g){var v=t.memoizedState;v===null?t.memoizedState={isBackwards:r,rendering:null,renderingStartTime:0,last:o,tail:l,tailMode:m,treeForkCount:g}:(v.isBackwards=r,v.rendering=null,v.renderingStartTime=0,v.last=o,v.tail=l,v.tailMode=m,v.treeForkCount=g)}function b1(t,r,l){var o=r.pendingProps,m=o.revealOrder,g=o.tail;o=o.children;var v=Kt.current,N=(v&2)!==0;if(N?(v=v&1|2,r.flags|=128):v&=1,T(Kt,v),mn(t,r,o,l),o=st?Hl:0,!N&&t!==null&&(t.flags&128)!==0)e:for(t=r.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&y1(t,l,r);else if(t.tag===19)y1(t,l,r);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===r)break e;for(;t.sibling===null;){if(t.return===null||t.return===r)break e;t=t.return}t.sibling.return=t.return,t=t.sibling}switch(m){case"forwards":for(l=r.child,m=null;l!==null;)t=l.alternate,t!==null&&No(t)===null&&(m=l),l=l.sibling;l=m,l===null?(m=r.child,r.child=null):(m=l.sibling,l.sibling=null),Ex(r,!1,m,l,g,o);break;case"backwards":case"unstable_legacy-backwards":for(l=null,m=r.child,r.child=null;m!==null;){if(t=m.alternate,t!==null&&No(t)===null){r.child=m;break}t=m.sibling,m.sibling=l,l=m,m=t}Ex(r,!0,l,null,g,o);break;case"together":Ex(r,!1,null,null,void 0,o);break;default:r.memoizedState=null}return r.child}function Zr(t,r,l){if(t!==null&&(r.dependencies=t.dependencies),_a|=r.lanes,(l&r.childLanes)===0)if(t!==null){if(Qi(t,r,l,!1),(l&r.childLanes)===0)return null}else return null;if(t!==null&&r.child!==t.child)throw Error(i(153));if(r.child!==null){for(t=r.child,l=Gr(t,t.pendingProps),r.child=l,l.return=r;t.sibling!==null;)t=t.sibling,l=l.sibling=Gr(t,t.pendingProps),l.return=r;l.sibling=null}return r.child}function gx(t,r){return(t.lanes&r)!==0?!0:(t=t.dependencies,!!(t!==null&&Ao(t)))}function Y5(t,r,l){switch(r.tag){case 3:Le(r,r.stateNode.containerInfo),va(r,tn,t.memoizedState.cache),ii();break;case 27:case 5:qe(r);break;case 4:Le(r,r.stateNode.containerInfo);break;case 10:va(r,r.type,r.memoizedProps.value);break;case 31:if(r.memoizedState!==null)return r.flags|=128,qc(r),null;break;case 13:var o=r.memoizedState;if(o!==null)return o.dehydrated!==null?(Fa(r),r.flags|=128,null):(l&r.child.childLanes)!==0?g1(t,r,l):(Fa(r),t=Zr(t,r,l),t!==null?t.sibling:null);Fa(r);break;case 19:var m=(t.flags&128)!==0;if(o=(l&r.childLanes)!==0,o||(Qi(t,r,l,!1),o=(l&r.childLanes)!==0),m){if(o)return b1(t,r,l);r.flags|=128}if(m=r.memoizedState,m!==null&&(m.rendering=null,m.tail=null,m.lastEffect=null),T(Kt,Kt.current),o)break;return null;case 22:return r.lanes=0,d1(t,r,l,r.pendingProps);case 24:va(r,tn,t.memoizedState.cache)}return Zr(t,r,l)}function C1(t,r,l){if(t!==null)if(t.memoizedProps!==r.pendingProps)rn=!0;else{if(!gx(t,l)&&(r.flags&128)===0)return rn=!1,Y5(t,r,l);rn=(t.flags&131072)!==0}else rn=!1,st&&(r.flags&1048576)!==0&&Jf(r,Hl,r.index);switch(r.lanes=0,r.tag){case 16:e:{var o=r.pendingProps;if(t=ci(r.elementType),r.type=t,typeof t=="function")vc(t)?(o=fi(t,o),r.tag=1,r=m1(null,r,t,o,l)):(r.tag=0,r=ux(null,r,t,o,l));else{if(t!=null){var m=t.$$typeof;if(m===_){r.tag=11,r=c1(null,r,t,o,l);break e}else if(m===O){r.tag=14,r=x1(null,r,t,o,l);break e}}throw r=Z(t)||t,Error(i(306,r,""))}}return r;case 0:return ux(t,r,r.type,r.pendingProps,l);case 1:return o=r.type,m=fi(o,r.pendingProps),m1(t,r,o,m,l);case 3:e:{if(Le(r,r.stateNode.containerInfo),t===null)throw Error(i(387));o=r.pendingProps;var g=r.memoizedState;m=g.element,Lc(t,r),Xl(r,o,null,l);var v=r.memoizedState;if(o=v.cache,va(r,tn,o),o!==g.cache&&Mc(r,[tn],l,!0),Kl(),o=v.element,g.isDehydrated)if(g={element:o,isDehydrated:!1,cache:v.cache},r.updateQueue.baseState=g,r.memoizedState=g,r.flags&256){r=E1(t,r,o,l);break e}else if(o!==m){m=or(Error(i(424)),r),ql(m),r=E1(t,r,o,l);break e}else for(t=r.stateNode.containerInfo,t.nodeType===9?t=t.body:t=t.nodeName==="HTML"?t.ownerDocument.body:t,Tt=fr(t.firstChild),hn=r,st=!0,Ca=null,ur=!0,l=dh(r,null,o,l),r.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling;else{if(ii(),o===m){r=Zr(t,r,l);break e}mn(t,r,o,l)}r=r.child}return r;case 26:return Io(t,r),t===null?(l=Mp(r.type,null,r.pendingProps,null))?r.memoizedState=l:st||(l=r.type,t=r.pendingProps,o=a0(fe.current).createElement(l),o[Qt]=r,o[bn]=t,En(o,l,t),Jt(o),r.stateNode=o):r.memoizedState=Mp(r.type,t.memoizedProps,r.pendingProps,t.memoizedState),null;case 27:return qe(r),t===null&&st&&(o=r.stateNode=Sp(r.type,r.pendingProps,fe.current),hn=r,ur=!0,m=Tt,Oa(r.type)?(Zx=m,Tt=fr(o.firstChild)):Tt=m),mn(t,r,r.pendingProps.children,l),Io(t,r),t===null&&(r.flags|=4194304),r.child;case 5:return t===null&&st&&((m=o=Tt)&&(o=B6(o,r.type,r.pendingProps,ur),o!==null?(r.stateNode=o,hn=r,Tt=fr(o.firstChild),ur=!1,m=!0):m=!1),m||Aa(r)),qe(r),m=r.type,g=r.pendingProps,v=t!==null?t.memoizedProps:null,o=g.children,Vx(m,g)?o=null:v!==null&&Vx(m,v)&&(r.flags|=32),r.memoizedState!==null&&(m=Gc(t,r,P5,null,null,l),ms._currentValue=m),Io(t,r),mn(t,r,o,l),r.child;case 6:return t===null&&st&&((t=l=Tt)&&(l=k6(l,r.pendingProps,ur),l!==null?(r.stateNode=l,hn=r,Tt=null,t=!0):t=!1),t||Aa(r)),null;case 13:return g1(t,r,l);case 4:return Le(r,r.stateNode.containerInfo),o=r.pendingProps,t===null?r.child=ui(r,null,o,l):mn(t,r,o,l),r.child;case 11:return c1(t,r,r.type,r.pendingProps,l);case 7:return mn(t,r,r.pendingProps,l),r.child;case 8:return mn(t,r,r.pendingProps.children,l),r.child;case 12:return mn(t,r,r.pendingProps.children,l),r.child;case 10:return o=r.pendingProps,va(r,r.type,o.value),mn(t,r,o.children,l),r.child;case 9:return m=r.type._context,o=r.pendingProps.children,si(r),m=pn(m),o=o(m),r.flags|=1,mn(t,r,o,l),r.child;case 14:return x1(t,r,r.type,r.pendingProps,l);case 15:return u1(t,r,r.type,r.pendingProps,l);case 19:return b1(t,r,l);case 31:return Q5(t,r,l);case 22:return d1(t,r,l,r.pendingProps);case 24:return si(r),o=pn(tn),t===null?(m=Rc(),m===null&&(m=kt,g=Tc(),m.pooledCache=g,g.refCount++,g!==null&&(m.pooledCacheLanes|=l),m=g),r.memoizedState={parent:o,cache:m},zc(r),va(r,tn,m)):((t.lanes&l)!==0&&(Lc(t,r),Xl(r,null,null,l),Kl()),m=t.memoizedState,g=r.memoizedState,m.parent!==o?(m={parent:o,cache:o},r.memoizedState=m,r.lanes===0&&(r.memoizedState=r.updateQueue.baseState=m),va(r,tn,o)):(o=g.cache,va(r,tn,o),o!==m.cache&&Mc(r,[tn],l,!0))),mn(t,r,r.pendingProps.children,l),r.child;case 29:throw r.pendingProps}throw Error(i(156,r.tag))}function Wr(t){t.flags|=4}function yx(t,r,l,o,m){if((r=(t.mode&32)!==0)&&(r=!1),r){if(t.flags|=16777216,(m&335544128)===m)if(t.stateNode.complete)t.flags|=8192;else if(Y1())t.flags|=8192;else throw xi=Do,Oc}else t.flags&=-16777217}function A1(t,r){if(r.type!=="stylesheet"||(r.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!zp(r))if(Y1())t.flags|=8192;else throw xi=Do,Oc}function qo(t,r){r!==null&&(t.flags|=4),t.flags&16384&&(r=t.tag!==22?$e():536870912,t.lanes|=r,il|=r)}function ns(t,r){if(!st)switch(t.tailMode){case"hidden":r=t.tail;for(var l=null;r!==null;)r.alternate!==null&&(l=r),r=r.sibling;l===null?t.tail=null:l.sibling=null;break;case"collapsed":l=t.tail;for(var o=null;l!==null;)l.alternate!==null&&(o=l),l=l.sibling;o===null?r||t.tail===null?t.tail=null:t.tail.sibling=null:o.sibling=null}}function jt(t){var r=t.alternate!==null&&t.alternate.child===t.child,l=0,o=0;if(r)for(var m=t.child;m!==null;)l|=m.lanes|m.childLanes,o|=m.subtreeFlags&65011712,o|=m.flags&65011712,m.return=t,m=m.sibling;else for(m=t.child;m!==null;)l|=m.lanes|m.childLanes,o|=m.subtreeFlags,o|=m.flags,m.return=t,m=m.sibling;return t.subtreeFlags|=o,t.childLanes=l,r}function K5(t,r,l){var o=r.pendingProps;switch(Fc(r),r.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return jt(r),null;case 1:return jt(r),null;case 3:return l=r.stateNode,o=null,t!==null&&(o=t.memoizedState.cache),r.memoizedState.cache!==o&&(r.flags|=2048),Yr(tn),ke(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(t===null||t.child===null)&&(Vi(r)?Wr(r):t===null||t.memoizedState.isDehydrated&&(r.flags&256)===0||(r.flags|=1024,Sc())),jt(r),null;case 26:var m=r.type,g=r.memoizedState;return t===null?(Wr(r),g!==null?(jt(r),A1(r,g)):(jt(r),yx(r,m,null,o,l))):g?g!==t.memoizedState?(Wr(r),jt(r),A1(r,g)):(jt(r),r.flags&=-16777217):(t=t.memoizedProps,t!==o&&Wr(r),jt(r),yx(r,m,t,o,l)),null;case 27:if(Ze(r),l=fe.current,m=r.type,t!==null&&r.stateNode!=null)t.memoizedProps!==o&&Wr(r);else{if(!o){if(r.stateNode===null)throw Error(i(166));return jt(r),null}t=le.current,Vi(r)?th(r):(t=Sp(m,o,l),r.stateNode=t,Wr(r))}return jt(r),null;case 5:if(Ze(r),m=r.type,t!==null&&r.stateNode!=null)t.memoizedProps!==o&&Wr(r);else{if(!o){if(r.stateNode===null)throw Error(i(166));return jt(r),null}if(g=le.current,Vi(r))th(r);else{var v=a0(fe.current);switch(g){case 1:g=v.createElementNS("http://www.w3.org/2000/svg",m);break;case 2:g=v.createElementNS("http://www.w3.org/1998/Math/MathML",m);break;default:switch(m){case"svg":g=v.createElementNS("http://www.w3.org/2000/svg",m);break;case"math":g=v.createElementNS("http://www.w3.org/1998/Math/MathML",m);break;case"script":g=v.createElement("div"),g.innerHTML="<script><\/script>",g=g.removeChild(g.firstChild);break;case"select":g=typeof o.is=="string"?v.createElement("select",{is:o.is}):v.createElement("select"),o.multiple?g.multiple=!0:o.size&&(g.size=o.size);break;default:g=typeof o.is=="string"?v.createElement(m,{is:o.is}):v.createElement(m)}}g[Qt]=r,g[bn]=o;e:for(v=r.child;v!==null;){if(v.tag===5||v.tag===6)g.appendChild(v.stateNode);else if(v.tag!==4&&v.tag!==27&&v.child!==null){v.child.return=v,v=v.child;continue}if(v===r)break e;for(;v.sibling===null;){if(v.return===null||v.return===r)break e;v=v.return}v.sibling.return=v.return,v=v.sibling}r.stateNode=g;e:switch(En(g,m,o),m){case"button":case"input":case"select":case"textarea":o=!!o.autoFocus;break e;case"img":o=!0;break e;default:o=!1}o&&Wr(r)}}return jt(r),yx(r,r.type,t===null?null:t.memoizedProps,r.pendingProps,l),null;case 6:if(t&&r.stateNode!=null)t.memoizedProps!==o&&Wr(r);else{if(typeof o!="string"&&r.stateNode===null)throw Error(i(166));if(t=fe.current,Vi(r)){if(t=r.stateNode,l=r.memoizedProps,o=null,m=hn,m!==null)switch(m.tag){case 27:case 5:o=m.memoizedProps}t[Qt]=r,t=!!(t.nodeValue===l||o!==null&&o.suppressHydrationWarning===!0||gp(t.nodeValue,l)),t||Aa(r,!0)}else t=a0(t).createTextNode(o),t[Qt]=r,r.stateNode=t}return jt(r),null;case 31:if(l=r.memoizedState,t===null||t.memoizedState!==null){if(o=Vi(r),l!==null){if(t===null){if(!o)throw Error(i(318));if(t=r.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(i(557));t[Qt]=r}else ii(),(r.flags&128)===0&&(r.memoizedState=null),r.flags|=4;jt(r),t=!1}else l=Sc(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=l),t=!0;if(!t)return r.flags&256?(Zn(r),r):(Zn(r),null);if((r.flags&128)!==0)throw Error(i(558))}return jt(r),null;case 13:if(o=r.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(m=Vi(r),o!==null&&o.dehydrated!==null){if(t===null){if(!m)throw Error(i(318));if(m=r.memoizedState,m=m!==null?m.dehydrated:null,!m)throw Error(i(317));m[Qt]=r}else ii(),(r.flags&128)===0&&(r.memoizedState=null),r.flags|=4;jt(r),m=!1}else m=Sc(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=m),m=!0;if(!m)return r.flags&256?(Zn(r),r):(Zn(r),null)}return Zn(r),(r.flags&128)!==0?(r.lanes=l,r):(l=o!==null,t=t!==null&&t.memoizedState!==null,l&&(o=r.child,m=null,o.alternate!==null&&o.alternate.memoizedState!==null&&o.alternate.memoizedState.cachePool!==null&&(m=o.alternate.memoizedState.cachePool.pool),g=null,o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(g=o.memoizedState.cachePool.pool),g!==m&&(o.flags|=2048)),l!==t&&l&&(r.child.flags|=8192),qo(r,r.updateQueue),jt(r),null);case 4:return ke(),t===null&&Ix(r.stateNode.containerInfo),jt(r),null;case 10:return Yr(r.type),jt(r),null;case 19:if(V(Kt),o=r.memoizedState,o===null)return jt(r),null;if(m=(r.flags&128)!==0,g=o.rendering,g===null)if(m)ns(o,!1);else{if($t!==0||t!==null&&(t.flags&128)!==0)for(t=r.child;t!==null;){if(g=No(t),g!==null){for(r.flags|=128,ns(o,!1),t=g.updateQueue,r.updateQueue=t,qo(r,t),r.subtreeFlags=0,t=l,l=r.child;l!==null;)Xf(l,t),l=l.sibling;return T(Kt,Kt.current&1|2),st&&Vr(r,o.treeForkCount),r.child}t=t.sibling}o.tail!==null&&Je()>Yo&&(r.flags|=128,m=!0,ns(o,!1),r.lanes=4194304)}else{if(!m)if(t=No(g),t!==null){if(r.flags|=128,m=!0,t=t.updateQueue,r.updateQueue=t,qo(r,t),ns(o,!0),o.tail===null&&o.tailMode==="hidden"&&!g.alternate&&!st)return jt(r),null}else 2*Je()-o.renderingStartTime>Yo&&l!==536870912&&(r.flags|=128,m=!0,ns(o,!1),r.lanes=4194304);o.isBackwards?(g.sibling=r.child,r.child=g):(t=o.last,t!==null?t.sibling=g:r.child=g,o.last=g)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=Je(),t.sibling=null,l=Kt.current,T(Kt,m?l&1|2:l&1),st&&Vr(r,o.treeForkCount),t):(jt(r),null);case 22:case 23:return Zn(r),Hc(),o=r.memoizedState!==null,t!==null?t.memoizedState!==null!==o&&(r.flags|=8192):o&&(r.flags|=8192),o?(l&536870912)!==0&&(r.flags&128)===0&&(jt(r),r.subtreeFlags&6&&(r.flags|=8192)):jt(r),l=r.updateQueue,l!==null&&qo(r,l.retryQueue),l=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),o=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(o=r.memoizedState.cachePool.pool),o!==l&&(r.flags|=2048),t!==null&&V(oi),null;case 24:return l=null,t!==null&&(l=t.memoizedState.cache),r.memoizedState.cache!==l&&(r.flags|=2048),Yr(tn),jt(r),null;case 25:return null;case 30:return null}throw Error(i(156,r.tag))}function X5(t,r){switch(Fc(r),r.tag){case 1:return t=r.flags,t&65536?(r.flags=t&-65537|128,r):null;case 3:return Yr(tn),ke(),t=r.flags,(t&65536)!==0&&(t&128)===0?(r.flags=t&-65537|128,r):null;case 26:case 27:case 5:return Ze(r),null;case 31:if(r.memoizedState!==null){if(Zn(r),r.alternate===null)throw Error(i(340));ii()}return t=r.flags,t&65536?(r.flags=t&-65537|128,r):null;case 13:if(Zn(r),t=r.memoizedState,t!==null&&t.dehydrated!==null){if(r.alternate===null)throw Error(i(340));ii()}return t=r.flags,t&65536?(r.flags=t&-65537|128,r):null;case 19:return V(Kt),null;case 4:return ke(),null;case 10:return Yr(r.type),null;case 22:case 23:return Zn(r),Hc(),t!==null&&V(oi),t=r.flags,t&65536?(r.flags=t&-65537|128,r):null;case 24:return Yr(tn),null;case 25:return null;default:return null}}function v1(t,r){switch(Fc(r),r.tag){case 3:Yr(tn),ke();break;case 26:case 27:case 5:Ze(r);break;case 4:ke();break;case 31:r.memoizedState!==null&&Zn(r);break;case 13:Zn(r);break;case 19:V(Kt);break;case 10:Yr(r.type);break;case 22:case 23:Zn(r),Hc(),t!==null&&V(oi);break;case 24:Yr(tn)}}function rs(t,r){try{var l=r.updateQueue,o=l!==null?l.lastEffect:null;if(o!==null){var m=o.next;l=m;do{if((l.tag&t)===t){o=void 0;var g=l.create,v=l.inst;o=g(),v.destroy=o}l=l.next}while(l!==m)}}catch(N){yt(r,r.return,N)}}function Sa(t,r,l){try{var o=r.updateQueue,m=o!==null?o.lastEffect:null;if(m!==null){var g=m.next;o=g;do{if((o.tag&t)===t){var v=o.inst,N=v.destroy;if(N!==void 0){v.destroy=void 0,m=r;var I=l,ee=N;try{ee()}catch(se){yt(m,I,se)}}}o=o.next}while(o!==g)}}catch(se){yt(r,r.return,se)}}function B1(t){var r=t.updateQueue;if(r!==null){var l=t.stateNode;try{hh(r,l)}catch(o){yt(t,t.return,o)}}}function k1(t,r,l){l.props=fi(t.type,t.memoizedProps),l.state=t.memoizedState;try{l.componentWillUnmount()}catch(o){yt(t,r,o)}}function as(t,r){try{var l=t.ref;if(l!==null){switch(t.tag){case 26:case 27:case 5:var o=t.stateNode;break;case 30:o=t.stateNode;break;default:o=t.stateNode}typeof l=="function"?t.refCleanup=l(o):l.current=o}}catch(m){yt(t,r,m)}}function Tr(t,r){var l=t.ref,o=t.refCleanup;if(l!==null)if(typeof o=="function")try{o()}catch(m){yt(t,r,m)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(m){yt(t,r,m)}else l.current=null}function D1(t){var r=t.type,l=t.memoizedProps,o=t.stateNode;try{e:switch(r){case"button":case"input":case"select":case"textarea":l.autoFocus&&o.focus();break e;case"img":l.src?o.src=l.src:l.srcSet&&(o.srcset=l.srcSet)}}catch(m){yt(t,t.return,m)}}function bx(t,r,l){try{var o=t.stateNode;g6(o,t.type,l,r),o[bn]=r}catch(m){yt(t,t.return,m)}}function F1(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&Oa(t.type)||t.tag===4}function Cx(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||F1(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&&Oa(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 Ax(t,r,l){var o=t.tag;if(o===5||o===6)t=t.stateNode,r?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(t,r):(r=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,r.appendChild(t),l=l._reactRootContainer,l!=null||r.onclick!==null||(r.onclick=ge));else if(o!==4&&(o===27&&Oa(t.type)&&(l=t.stateNode,r=null),t=t.child,t!==null))for(Ax(t,r,l),t=t.sibling;t!==null;)Ax(t,r,l),t=t.sibling}function $o(t,r,l){var o=t.tag;if(o===5||o===6)t=t.stateNode,r?l.insertBefore(t,r):l.appendChild(t);else if(o!==4&&(o===27&&Oa(t.type)&&(l=t.stateNode),t=t.child,t!==null))for($o(t,r,l),t=t.sibling;t!==null;)$o(t,r,l),t=t.sibling}function w1(t){var r=t.stateNode,l=t.memoizedProps;try{for(var o=t.type,m=r.attributes;m.length;)r.removeAttributeNode(m[0]);En(r,o,l),r[Qt]=t,r[bn]=l}catch(g){yt(t,t.return,g)}}var Jr=!1,an=!1,vx=!1,S1=typeof WeakSet=="function"?WeakSet:Set,un=null;function Z5(t,r){if(t=t.containerInfo,$x=u0,t=If(t),mc(t)){if("selectionStart"in t)var l={start:t.selectionStart,end:t.selectionEnd};else e:{l=(l=t.ownerDocument)&&l.defaultView||window;var o=l.getSelection&&l.getSelection();if(o&&o.rangeCount!==0){l=o.anchorNode;var m=o.anchorOffset,g=o.focusNode;o=o.focusOffset;try{l.nodeType,g.nodeType}catch{l=null;break e}var v=0,N=-1,I=-1,ee=0,se=0,ue=t,ne=null;t:for(;;){for(var ae;ue!==l||m!==0&&ue.nodeType!==3||(N=v+m),ue!==g||o!==0&&ue.nodeType!==3||(I=v+o),ue.nodeType===3&&(v+=ue.nodeValue.length),(ae=ue.firstChild)!==null;)ne=ue,ue=ae;for(;;){if(ue===t)break t;if(ne===l&&++ee===m&&(N=v),ne===g&&++se===o&&(I=v),(ae=ue.nextSibling)!==null)break;ue=ne,ne=ue.parentNode}ue=ae}l=N===-1||I===-1?null:{start:N,end:I}}else l=null}l=l||{start:0,end:0}}else l=null;for(Gx={focusedElem:t,selectionRange:l},u0=!1,un=r;un!==null;)if(r=un,t=r.child,(r.subtreeFlags&1028)!==0&&t!==null)t.return=r,un=t;else for(;un!==null;){switch(r=un,g=r.alternate,t=r.flags,r.tag){case 0:if((t&4)!==0&&(t=r.updateQueue,t=t!==null?t.events:null,t!==null))for(l=0;l<t.length;l++)m=t[l],m.ref.impl=m.nextImpl;break;case 11:case 15:break;case 1:if((t&1024)!==0&&g!==null){t=void 0,l=r,m=g.memoizedProps,g=g.memoizedState,o=l.stateNode;try{var Se=fi(l.type,m);t=o.getSnapshotBeforeUpdate(Se,g),o.__reactInternalSnapshotBeforeUpdate=t}catch(Pe){yt(l,l.return,Pe)}}break;case 3:if((t&1024)!==0){if(t=r.stateNode.containerInfo,l=t.nodeType,l===9)Yx(t);else if(l===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":Yx(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=r.sibling,t!==null){t.return=r.return,un=t;break}un=r.return}}function N1(t,r,l){var o=l.flags;switch(l.tag){case 0:case 11:case 15:ta(t,l),o&4&&rs(5,l);break;case 1:if(ta(t,l),o&4)if(t=l.stateNode,r===null)try{t.componentDidMount()}catch(v){yt(l,l.return,v)}else{var m=fi(l.type,r.memoizedProps);r=r.memoizedState;try{t.componentDidUpdate(m,r,t.__reactInternalSnapshotBeforeUpdate)}catch(v){yt(l,l.return,v)}}o&64&&B1(l),o&512&&as(l,l.return);break;case 3:if(ta(t,l),o&64&&(t=l.updateQueue,t!==null)){if(r=null,l.child!==null)switch(l.child.tag){case 27:case 5:r=l.child.stateNode;break;case 1:r=l.child.stateNode}try{hh(t,r)}catch(v){yt(l,l.return,v)}}break;case 27:r===null&&o&4&&w1(l);case 26:case 5:ta(t,l),r===null&&o&4&&D1(l),o&512&&as(l,l.return);break;case 12:ta(t,l);break;case 31:ta(t,l),o&4&&T1(t,l);break;case 13:ta(t,l),o&4&&j1(t,l),o&64&&(t=l.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(l=l6.bind(null,l),D6(t,l))));break;case 22:if(o=l.memoizedState!==null||Jr,!o){r=r!==null&&r.memoizedState!==null||an,m=Jr;var g=an;Jr=o,(an=r)&&!g?na(t,l,(l.subtreeFlags&8772)!==0):ta(t,l),Jr=m,an=g}break;case 30:break;default:ta(t,l)}}function _1(t){var r=t.alternate;r!==null&&(t.alternate=null,_1(r)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(r=t.stateNode,r!==null&&wl(r)),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 Pt=null,On=!1;function ea(t,r,l){for(l=l.child;l!==null;)M1(t,r,l),l=l.sibling}function M1(t,r,l){if(_t&&typeof _t.onCommitFiberUnmount=="function")try{_t.onCommitFiberUnmount(dt,l)}catch{}switch(l.tag){case 26:an||Tr(l,r),ea(t,r,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:an||Tr(l,r);var o=Pt,m=On;Oa(l.type)&&(Pt=l.stateNode,On=!1),ea(t,r,l),fs(l.stateNode),Pt=o,On=m;break;case 5:an||Tr(l,r);case 6:if(o=Pt,m=On,Pt=null,ea(t,r,l),Pt=o,On=m,Pt!==null)if(On)try{(Pt.nodeType===9?Pt.body:Pt.nodeName==="HTML"?Pt.ownerDocument.body:Pt).removeChild(l.stateNode)}catch(g){yt(l,r,g)}else try{Pt.removeChild(l.stateNode)}catch(g){yt(l,r,g)}break;case 18:Pt!==null&&(On?(t=Pt,Bp(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,l.stateNode),fl(t)):Bp(Pt,l.stateNode));break;case 4:o=Pt,m=On,Pt=l.stateNode.containerInfo,On=!0,ea(t,r,l),Pt=o,On=m;break;case 0:case 11:case 14:case 15:Sa(2,l,r),an||Sa(4,l,r),ea(t,r,l);break;case 1:an||(Tr(l,r),o=l.stateNode,typeof o.componentWillUnmount=="function"&&k1(l,r,o)),ea(t,r,l);break;case 21:ea(t,r,l);break;case 22:an=(o=an)||l.memoizedState!==null,ea(t,r,l),an=o;break;default:ea(t,r,l)}}function T1(t,r){if(r.memoizedState===null&&(t=r.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{fl(t)}catch(l){yt(r,r.return,l)}}}function j1(t,r){if(r.memoizedState===null&&(t=r.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{fl(t)}catch(l){yt(r,r.return,l)}}function W5(t){switch(t.tag){case 31:case 13:case 19:var r=t.stateNode;return r===null&&(r=t.stateNode=new S1),r;case 22:return t=t.stateNode,r=t._retryCache,r===null&&(r=t._retryCache=new S1),r;default:throw Error(i(435,t.tag))}}function Go(t,r){var l=W5(t);r.forEach(function(o){if(!l.has(o)){l.add(o);var m=s6.bind(null,t,o);o.then(m,m)}})}function zn(t,r){var l=r.deletions;if(l!==null)for(var o=0;o<l.length;o++){var m=l[o],g=t,v=r,N=v;e:for(;N!==null;){switch(N.tag){case 27:if(Oa(N.type)){Pt=N.stateNode,On=!1;break e}break;case 5:Pt=N.stateNode,On=!1;break e;case 3:case 4:Pt=N.stateNode.containerInfo,On=!0;break e}N=N.return}if(Pt===null)throw Error(i(160));M1(g,v,m),Pt=null,On=!1,g=m.alternate,g!==null&&(g.return=null),m.return=null}if(r.subtreeFlags&13886)for(r=r.child;r!==null;)R1(r,t),r=r.sibling}var Br=null;function R1(t,r){var l=t.alternate,o=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:zn(r,t),Ln(t),o&4&&(Sa(3,t,t.return),rs(3,t),Sa(5,t,t.return));break;case 1:zn(r,t),Ln(t),o&512&&(an||l===null||Tr(l,l.return)),o&64&&Jr&&(t=t.updateQueue,t!==null&&(o=t.callbacks,o!==null&&(l=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=l===null?o:l.concat(o))));break;case 26:var m=Br;if(zn(r,t),Ln(t),o&512&&(an||l===null||Tr(l,l.return)),o&4){var g=l!==null?l.memoizedState:null;if(o=t.memoizedState,l===null)if(o===null)if(t.stateNode===null){e:{o=t.type,l=t.memoizedProps,m=m.ownerDocument||m;t:switch(o){case"title":g=m.getElementsByTagName("title")[0],(!g||g[Za]||g[Qt]||g.namespaceURI==="http://www.w3.org/2000/svg"||g.hasAttribute("itemprop"))&&(g=m.createElement(o),m.head.insertBefore(g,m.querySelector("head > title"))),En(g,o,l),g[Qt]=t,Jt(g),o=g;break e;case"link":var v=Rp("link","href",m).get(o+(l.href||""));if(v){for(var N=0;N<v.length;N++)if(g=v[N],g.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&g.getAttribute("rel")===(l.rel==null?null:l.rel)&&g.getAttribute("title")===(l.title==null?null:l.title)&&g.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){v.splice(N,1);break t}}g=m.createElement(o),En(g,o,l),m.head.appendChild(g);break;case"meta":if(v=Rp("meta","content",m).get(o+(l.content||""))){for(N=0;N<v.length;N++)if(g=v[N],g.getAttribute("content")===(l.content==null?null:""+l.content)&&g.getAttribute("name")===(l.name==null?null:l.name)&&g.getAttribute("property")===(l.property==null?null:l.property)&&g.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&g.getAttribute("charset")===(l.charSet==null?null:l.charSet)){v.splice(N,1);break t}}g=m.createElement(o),En(g,o,l),m.head.appendChild(g);break;default:throw Error(i(468,o))}g[Qt]=t,Jt(g),o=g}t.stateNode=o}else Op(m,t.type,t.stateNode);else t.stateNode=jp(m,o,t.memoizedProps);else g!==o?(g===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):g.count--,o===null?Op(m,t.type,t.stateNode):jp(m,o,t.memoizedProps)):o===null&&t.stateNode!==null&&bx(t,t.memoizedProps,l.memoizedProps)}break;case 27:zn(r,t),Ln(t),o&512&&(an||l===null||Tr(l,l.return)),l!==null&&o&4&&bx(t,t.memoizedProps,l.memoizedProps);break;case 5:if(zn(r,t),Ln(t),o&512&&(an||l===null||Tr(l,l.return)),t.flags&32){m=t.stateNode;try{Ie(m,"")}catch(Se){yt(t,t.return,Se)}}o&4&&t.stateNode!=null&&(m=t.memoizedProps,bx(t,m,l!==null?l.memoizedProps:m)),o&1024&&(vx=!0);break;case 6:if(zn(r,t),Ln(t),o&4){if(t.stateNode===null)throw Error(i(162));o=t.memoizedProps,l=t.stateNode;try{l.nodeValue=o}catch(Se){yt(t,t.return,Se)}}break;case 3:if(s0=null,m=Br,Br=i0(r.containerInfo),zn(r,t),Br=m,Ln(t),o&4&&l!==null&&l.memoizedState.isDehydrated)try{fl(r.containerInfo)}catch(Se){yt(t,t.return,Se)}vx&&(vx=!1,O1(t));break;case 4:o=Br,Br=i0(t.stateNode.containerInfo),zn(r,t),Ln(t),Br=o;break;case 12:zn(r,t),Ln(t);break;case 31:zn(r,t),Ln(t),o&4&&(o=t.updateQueue,o!==null&&(t.updateQueue=null,Go(t,o)));break;case 13:zn(r,t),Ln(t),t.child.flags&8192&&t.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(Qo=Je()),o&4&&(o=t.updateQueue,o!==null&&(t.updateQueue=null,Go(t,o)));break;case 22:m=t.memoizedState!==null;var I=l!==null&&l.memoizedState!==null,ee=Jr,se=an;if(Jr=ee||m,an=se||I,zn(r,t),an=se,Jr=ee,Ln(t),o&8192)e:for(r=t.stateNode,r._visibility=m?r._visibility&-2:r._visibility|1,m&&(l===null||I||Jr||an||hi(t)),l=null,r=t;;){if(r.tag===5||r.tag===26){if(l===null){I=l=r;try{if(g=I.stateNode,m)v=g.style,typeof v.setProperty=="function"?v.setProperty("display","none","important"):v.display="none";else{N=I.stateNode;var ue=I.memoizedProps.style,ne=ue!=null&&ue.hasOwnProperty("display")?ue.display:null;N.style.display=ne==null||typeof ne=="boolean"?"":(""+ne).trim()}}catch(Se){yt(I,I.return,Se)}}}else if(r.tag===6){if(l===null){I=r;try{I.stateNode.nodeValue=m?"":I.memoizedProps}catch(Se){yt(I,I.return,Se)}}}else if(r.tag===18){if(l===null){I=r;try{var ae=I.stateNode;m?kp(ae,!0):kp(I.stateNode,!1)}catch(Se){yt(I,I.return,Se)}}}else if((r.tag!==22&&r.tag!==23||r.memoizedState===null||r===t)&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break e;for(;r.sibling===null;){if(r.return===null||r.return===t)break e;l===r&&(l=null),r=r.return}l===r&&(l=null),r.sibling.return=r.return,r=r.sibling}o&4&&(o=t.updateQueue,o!==null&&(l=o.retryQueue,l!==null&&(o.retryQueue=null,Go(t,l))));break;case 19:zn(r,t),Ln(t),o&4&&(o=t.updateQueue,o!==null&&(t.updateQueue=null,Go(t,o)));break;case 30:break;case 21:break;default:zn(r,t),Ln(t)}}function Ln(t){var r=t.flags;if(r&2){try{for(var l,o=t.return;o!==null;){if(F1(o)){l=o;break}o=o.return}if(l==null)throw Error(i(160));switch(l.tag){case 27:var m=l.stateNode,g=Cx(t);$o(t,g,m);break;case 5:var v=l.stateNode;l.flags&32&&(Ie(v,""),l.flags&=-33);var N=Cx(t);$o(t,N,v);break;case 3:case 4:var I=l.stateNode.containerInfo,ee=Cx(t);Ax(t,ee,I);break;default:throw Error(i(161))}}catch(se){yt(t,t.return,se)}t.flags&=-3}r&4096&&(t.flags&=-4097)}function O1(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var r=t;O1(r),r.tag===5&&r.flags&1024&&r.stateNode.reset(),t=t.sibling}}function ta(t,r){if(r.subtreeFlags&8772)for(r=r.child;r!==null;)N1(t,r.alternate,r),r=r.sibling}function hi(t){for(t=t.child;t!==null;){var r=t;switch(r.tag){case 0:case 11:case 14:case 15:Sa(4,r,r.return),hi(r);break;case 1:Tr(r,r.return);var l=r.stateNode;typeof l.componentWillUnmount=="function"&&k1(r,r.return,l),hi(r);break;case 27:fs(r.stateNode);case 26:case 5:Tr(r,r.return),hi(r);break;case 22:r.memoizedState===null&&hi(r);break;case 30:hi(r);break;default:hi(r)}t=t.sibling}}function na(t,r,l){for(l=l&&(r.subtreeFlags&8772)!==0,r=r.child;r!==null;){var o=r.alternate,m=t,g=r,v=g.flags;switch(g.tag){case 0:case 11:case 15:na(m,g,l),rs(4,g);break;case 1:if(na(m,g,l),o=g,m=o.stateNode,typeof m.componentDidMount=="function")try{m.componentDidMount()}catch(ee){yt(o,o.return,ee)}if(o=g,m=o.updateQueue,m!==null){var N=o.stateNode;try{var I=m.shared.hiddenCallbacks;if(I!==null)for(m.shared.hiddenCallbacks=null,m=0;m<I.length;m++)fh(I[m],N)}catch(ee){yt(o,o.return,ee)}}l&&v&64&&B1(g),as(g,g.return);break;case 27:w1(g);case 26:case 5:na(m,g,l),l&&o===null&&v&4&&D1(g),as(g,g.return);break;case 12:na(m,g,l);break;case 31:na(m,g,l),l&&v&4&&T1(m,g);break;case 13:na(m,g,l),l&&v&4&&j1(m,g);break;case 22:g.memoizedState===null&&na(m,g,l),as(g,g.return);break;case 30:break;default:na(m,g,l)}r=r.sibling}}function Bx(t,r){var l=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),t=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(t=r.memoizedState.cachePool.pool),t!==l&&(t!=null&&t.refCount++,l!=null&&$l(l))}function kx(t,r){t=null,r.alternate!==null&&(t=r.alternate.memoizedState.cache),r=r.memoizedState.cache,r!==t&&(r.refCount++,t!=null&&$l(t))}function kr(t,r,l,o){if(r.subtreeFlags&10256)for(r=r.child;r!==null;)z1(t,r,l,o),r=r.sibling}function z1(t,r,l,o){var m=r.flags;switch(r.tag){case 0:case 11:case 15:kr(t,r,l,o),m&2048&&rs(9,r);break;case 1:kr(t,r,l,o);break;case 3:kr(t,r,l,o),m&2048&&(t=null,r.alternate!==null&&(t=r.alternate.memoizedState.cache),r=r.memoizedState.cache,r!==t&&(r.refCount++,t!=null&&$l(t)));break;case 12:if(m&2048){kr(t,r,l,o),t=r.stateNode;try{var g=r.memoizedProps,v=g.id,N=g.onPostCommit;typeof N=="function"&&N(v,r.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(I){yt(r,r.return,I)}}else kr(t,r,l,o);break;case 31:kr(t,r,l,o);break;case 13:kr(t,r,l,o);break;case 23:break;case 22:g=r.stateNode,v=r.alternate,r.memoizedState!==null?g._visibility&2?kr(t,r,l,o):is(t,r):g._visibility&2?kr(t,r,l,o):(g._visibility|=2,nl(t,r,l,o,(r.subtreeFlags&10256)!==0||!1)),m&2048&&Bx(v,r);break;case 24:kr(t,r,l,o),m&2048&&kx(r.alternate,r);break;default:kr(t,r,l,o)}}function nl(t,r,l,o,m){for(m=m&&((r.subtreeFlags&10256)!==0||!1),r=r.child;r!==null;){var g=t,v=r,N=l,I=o,ee=v.flags;switch(v.tag){case 0:case 11:case 15:nl(g,v,N,I,m),rs(8,v);break;case 23:break;case 22:var se=v.stateNode;v.memoizedState!==null?se._visibility&2?nl(g,v,N,I,m):is(g,v):(se._visibility|=2,nl(g,v,N,I,m)),m&&ee&2048&&Bx(v.alternate,v);break;case 24:nl(g,v,N,I,m),m&&ee&2048&&kx(v.alternate,v);break;default:nl(g,v,N,I,m)}r=r.sibling}}function is(t,r){if(r.subtreeFlags&10256)for(r=r.child;r!==null;){var l=t,o=r,m=o.flags;switch(o.tag){case 22:is(l,o),m&2048&&Bx(o.alternate,o);break;case 24:is(l,o),m&2048&&kx(o.alternate,o);break;default:is(l,o)}r=r.sibling}}var ls=8192;function rl(t,r,l){if(t.subtreeFlags&ls)for(t=t.child;t!==null;)L1(t,r,l),t=t.sibling}function L1(t,r,l){switch(t.tag){case 26:rl(t,r,l),t.flags&ls&&t.memoizedState!==null&&L6(l,Br,t.memoizedState,t.memoizedProps);break;case 5:rl(t,r,l);break;case 3:case 4:var o=Br;Br=i0(t.stateNode.containerInfo),rl(t,r,l),Br=o;break;case 22:t.memoizedState===null&&(o=t.alternate,o!==null&&o.memoizedState!==null?(o=ls,ls=16777216,rl(t,r,l),ls=o):rl(t,r,l));break;default:rl(t,r,l)}}function P1(t){var r=t.alternate;if(r!==null&&(t=r.child,t!==null)){r.child=null;do r=t.sibling,t.sibling=null,t=r;while(t!==null)}}function ss(t){var r=t.deletions;if((t.flags&16)!==0){if(r!==null)for(var l=0;l<r.length;l++){var o=r[l];un=o,I1(o,t)}P1(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)U1(t),t=t.sibling}function U1(t){switch(t.tag){case 0:case 11:case 15:ss(t),t.flags&2048&&Sa(9,t,t.return);break;case 3:ss(t);break;case 12:ss(t);break;case 22:var r=t.stateNode;t.memoizedState!==null&&r._visibility&2&&(t.return===null||t.return.tag!==13)?(r._visibility&=-3,Vo(t)):ss(t);break;default:ss(t)}}function Vo(t){var r=t.deletions;if((t.flags&16)!==0){if(r!==null)for(var l=0;l<r.length;l++){var o=r[l];un=o,I1(o,t)}P1(t)}for(t=t.child;t!==null;){switch(r=t,r.tag){case 0:case 11:case 15:Sa(8,r,r.return),Vo(r);break;case 22:l=r.stateNode,l._visibility&2&&(l._visibility&=-3,Vo(r));break;default:Vo(r)}t=t.sibling}}function I1(t,r){for(;un!==null;){var l=un;switch(l.tag){case 0:case 11:case 15:Sa(8,l,r);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var o=l.memoizedState.cachePool.pool;o!=null&&o.refCount++}break;case 24:$l(l.memoizedState.cache)}if(o=l.child,o!==null)o.return=l,un=o;else e:for(l=t;un!==null;){o=un;var m=o.sibling,g=o.return;if(_1(o),o===l){un=null;break e}if(m!==null){m.return=g,un=m;break e}un=g}}}var J5={getCacheForType:function(t){var r=pn(tn),l=r.data.get(t);return l===void 0&&(l=t(),r.data.set(t,l)),l},cacheSignal:function(){return pn(tn).controller.signal}},e6=typeof WeakMap=="function"?WeakMap:Map,ft=0,kt=null,tt=null,it=0,gt=0,Wn=null,Na=!1,al=!1,Dx=!1,ra=0,$t=0,_a=0,pi=0,Fx=0,Jn=0,il=0,os=null,Pn=null,wx=!1,Qo=0,H1=0,Yo=1/0,Ko=null,Ma=null,on=0,Ta=null,ll=null,aa=0,Sx=0,Nx=null,q1=null,cs=0,_x=null;function er(){return(ft&2)!==0&&it!==0?it&-it:U.T!==null?zx():Mi()}function $1(){if(Jn===0)if((it&536870912)===0||st){var t=_i;_i<<=1,(_i&3932160)===0&&(_i=262144),Jn=t}else Jn=536870912;return t=Xn.current,t!==null&&(t.flags|=32),Jn}function Un(t,r,l){(t===kt&&(gt===2||gt===9)||t.cancelPendingCommit!==null)&&(sl(t,0),ja(t,it,Jn,!1)),Bt(t,l),((ft&2)===0||t!==kt)&&(t===kt&&((ft&2)===0&&(pi|=l),$t===4&&ja(t,it,Jn,!1)),jr(t))}function G1(t,r,l){if((ft&6)!==0)throw Error(i(327));var o=!l&&(r&127)===0&&(r&t.expiredLanes)===0||ce(t,r),m=o?r6(t,r):Tx(t,r,!0),g=o;do{if(m===0){al&&!o&&ja(t,r,0,!1);break}else{if(l=t.current.alternate,g&&!t6(l)){m=Tx(t,r,!1),g=!1;continue}if(m===2){if(g=r,t.errorRecoveryDisabledLanes&g)var v=0;else v=t.pendingLanes&-536870913,v=v!==0?v:v&536870912?536870912:0;if(v!==0){r=v;e:{var N=t;m=os;var I=N.current.memoizedState.isDehydrated;if(I&&(sl(N,v).flags|=256),v=Tx(N,v,!1),v!==2){if(Dx&&!I){N.errorRecoveryDisabledLanes|=g,pi|=g,m=4;break e}g=Pn,Pn=m,g!==null&&(Pn===null?Pn=g:Pn.push.apply(Pn,g))}m=v}if(g=!1,m!==2)continue}}if(m===1){sl(t,0),ja(t,r,0,!0);break}e:{switch(o=t,g=m,g){case 0:case 1:throw Error(i(345));case 4:if((r&4194048)!==r)break;case 6:ja(o,r,Jn,!Na);break e;case 2:Pn=null;break;case 3:case 5:break;default:throw Error(i(329))}if((r&62914560)===r&&(m=Qo+300-Je(),10<m)){if(ja(o,r,Jn,!Na),H(o,0,!0)!==0)break e;aa=r,o.timeoutHandle=Ap(V1.bind(null,o,l,Pn,Ko,wx,r,Jn,pi,il,Na,g,"Throttled",-0,0),m);break e}V1(o,l,Pn,Ko,wx,r,Jn,pi,il,Na,g,null,-0,0)}}break}while(!0);jr(t)}function V1(t,r,l,o,m,g,v,N,I,ee,se,ue,ne,ae){if(t.timeoutHandle=-1,ue=r.subtreeFlags,ue&8192||(ue&16785408)===16785408){ue={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:ge},L1(r,g,ue);var Se=(g&62914560)===g?Qo-Je():(g&4194048)===g?H1-Je():0;if(Se=P6(ue,Se),Se!==null){aa=g,t.cancelPendingCommit=Se(ep.bind(null,t,r,g,l,o,m,v,N,I,se,ue,null,ne,ae)),ja(t,g,v,!ee);return}}ep(t,r,g,l,o,m,v,N,I)}function t6(t){for(var r=t;;){var l=r.tag;if((l===0||l===11||l===15)&&r.flags&16384&&(l=r.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var o=0;o<l.length;o++){var m=l[o],g=m.getSnapshot;m=m.value;try{if(!Yn(g(),m))return!1}catch{return!1}}if(l=r.child,r.subtreeFlags&16384&&l!==null)l.return=r,r=l;else{if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return!0;r=r.return}r.sibling.return=r.return,r=r.sibling}}return!0}function ja(t,r,l,o){r&=~Fx,r&=~pi,t.suspendedLanes|=r,t.pingedLanes&=~r,o&&(t.warmLanes|=r),o=t.expirationTimes;for(var m=r;0<m;){var g=31-pt(m),v=1<<g;o[g]=-1,m&=~v}l!==0&&De(t,l,r)}function Xo(){return(ft&6)===0?(xs(0),!1):!0}function Mx(){if(tt!==null){if(gt===0)var t=tt.return;else t=tt,Qr=li=null,Yc(t),Zi=null,Vl=0,t=tt;for(;t!==null;)v1(t.alternate,t),t=t.return;tt=null}}function sl(t,r){var l=t.timeoutHandle;l!==-1&&(t.timeoutHandle=-1,C6(l)),l=t.cancelPendingCommit,l!==null&&(t.cancelPendingCommit=null,l()),aa=0,Mx(),kt=t,tt=l=Gr(t.current,null),it=r,gt=0,Wn=null,Na=!1,al=ce(t,r),Dx=!1,il=Jn=Fx=pi=_a=$t=0,Pn=os=null,wx=!1,(r&8)!==0&&(r|=r&32);var o=t.entangledLanes;if(o!==0)for(t=t.entanglements,o&=r;0<o;){var m=31-pt(o),g=1<<m;r|=t[m],o&=~g}return ra=r,Eo(),l}function Q1(t,r){Ke=null,U.H=es,r===Xi||r===ko?(r=ch(),gt=3):r===Oc?(r=ch(),gt=4):gt=r===xx?8:r!==null&&typeof r=="object"&&typeof r.then=="function"?6:1,Wn=r,tt===null&&($t=1,Po(t,or(r,t.current)))}function Y1(){var t=Xn.current;return t===null?!0:(it&4194048)===it?dr===null:(it&62914560)===it||(it&536870912)!==0?t===dr:!1}function K1(){var t=U.H;return U.H=es,t===null?es:t}function X1(){var t=U.A;return U.A=J5,t}function Zo(){$t=4,Na||(it&4194048)!==it&&Xn.current!==null||(al=!0),(_a&134217727)===0&&(pi&134217727)===0||kt===null||ja(kt,it,Jn,!1)}function Tx(t,r,l){var o=ft;ft|=2;var m=K1(),g=X1();(kt!==t||it!==r)&&(Ko=null,sl(t,r)),r=!1;var v=$t;e:do try{if(gt!==0&&tt!==null){var N=tt,I=Wn;switch(gt){case 8:Mx(),v=6;break e;case 3:case 2:case 9:case 6:Xn.current===null&&(r=!0);var ee=gt;if(gt=0,Wn=null,ol(t,N,I,ee),l&&al){v=0;break e}break;default:ee=gt,gt=0,Wn=null,ol(t,N,I,ee)}}n6(),v=$t;break}catch(se){Q1(t,se)}while(!0);return r&&t.shellSuspendCounter++,Qr=li=null,ft=o,U.H=m,U.A=g,tt===null&&(kt=null,it=0,Eo()),v}function n6(){for(;tt!==null;)Z1(tt)}function r6(t,r){var l=ft;ft|=2;var o=K1(),m=X1();kt!==t||it!==r?(Ko=null,Yo=Je()+500,sl(t,r)):al=ce(t,r);e:do try{if(gt!==0&&tt!==null){r=tt;var g=Wn;t:switch(gt){case 1:gt=0,Wn=null,ol(t,r,g,1);break;case 2:case 9:if(sh(g)){gt=0,Wn=null,W1(r);break}r=function(){gt!==2&>!==9||kt!==t||(gt=7),jr(t)},g.then(r,r);break e;case 3:gt=7;break e;case 4:gt=5;break e;case 7:sh(g)?(gt=0,Wn=null,W1(r)):(gt=0,Wn=null,ol(t,r,g,7));break;case 5:var v=null;switch(tt.tag){case 26:v=tt.memoizedState;case 5:case 27:var N=tt;if(v?zp(v):N.stateNode.complete){gt=0,Wn=null;var I=N.sibling;if(I!==null)tt=I;else{var ee=N.return;ee!==null?(tt=ee,Wo(ee)):tt=null}break t}}gt=0,Wn=null,ol(t,r,g,5);break;case 6:gt=0,Wn=null,ol(t,r,g,6);break;case 8:Mx(),$t=6;break e;default:throw Error(i(462))}}a6();break}catch(se){Q1(t,se)}while(!0);return Qr=li=null,U.H=o,U.A=m,ft=l,tt!==null?0:(kt=null,it=0,Eo(),$t)}function a6(){for(;tt!==null&&!de();)Z1(tt)}function Z1(t){var r=C1(t.alternate,t,ra);t.memoizedProps=t.pendingProps,r===null?Wo(t):tt=r}function W1(t){var r=t,l=r.alternate;switch(r.tag){case 15:case 0:r=p1(l,r,r.pendingProps,r.type,void 0,it);break;case 11:r=p1(l,r,r.pendingProps,r.type.render,r.ref,it);break;case 5:Yc(r);default:v1(l,r),r=tt=Xf(r,ra),r=C1(l,r,ra)}t.memoizedProps=t.pendingProps,r===null?Wo(t):tt=r}function ol(t,r,l,o){Qr=li=null,Yc(r),Zi=null,Vl=0;var m=r.return;try{if(V5(t,m,r,l,it)){$t=1,Po(t,or(l,t.current)),tt=null;return}}catch(g){if(m!==null)throw tt=m,g;$t=1,Po(t,or(l,t.current)),tt=null;return}r.flags&32768?(st||o===1?t=!0:al||(it&536870912)!==0?t=!1:(Na=t=!0,(o===2||o===9||o===3||o===6)&&(o=Xn.current,o!==null&&o.tag===13&&(o.flags|=16384))),J1(r,t)):Wo(r)}function Wo(t){var r=t;do{if((r.flags&32768)!==0){J1(r,Na);return}t=r.return;var l=K5(r.alternate,r,ra);if(l!==null){tt=l;return}if(r=r.sibling,r!==null){tt=r;return}tt=r=t}while(r!==null);$t===0&&($t=5)}function J1(t,r){do{var l=X5(t.alternate,t);if(l!==null){l.flags&=32767,tt=l;return}if(l=t.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!r&&(t=t.sibling,t!==null)){tt=t;return}tt=t=l}while(t!==null);$t=6,tt=null}function ep(t,r,l,o,m,g,v,N,I){t.cancelPendingCommit=null;do Jo();while(on!==0);if((ft&6)!==0)throw Error(i(327));if(r!==null){if(r===t.current)throw Error(i(177));if(g=r.lanes|r.childLanes,g|=Cc,Ne(t,l,g,v,N,I),t===kt&&(tt=kt=null,it=0),ll=r,Ta=t,aa=l,Sx=g,Nx=m,q1=o,(r.subtreeFlags&10256)!==0||(r.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,o6(ve,function(){return ip(),null})):(t.callbackNode=null,t.callbackPriority=0),o=(r.flags&13878)!==0,(r.subtreeFlags&13878)!==0||o){o=U.T,U.T=null,m=P.p,P.p=2,v=ft,ft|=4;try{Z5(t,r,l)}finally{ft=v,P.p=m,U.T=o}}on=1,tp(),np(),rp()}}function tp(){if(on===1){on=0;var t=Ta,r=ll,l=(r.flags&13878)!==0;if((r.subtreeFlags&13878)!==0||l){l=U.T,U.T=null;var o=P.p;P.p=2;var m=ft;ft|=4;try{R1(r,t);var g=Gx,v=If(t.containerInfo),N=g.focusedElem,I=g.selectionRange;if(v!==N&&N&&N.ownerDocument&&Uf(N.ownerDocument.documentElement,N)){if(I!==null&&mc(N)){var ee=I.start,se=I.end;if(se===void 0&&(se=ee),"selectionStart"in N)N.selectionStart=ee,N.selectionEnd=Math.min(se,N.value.length);else{var ue=N.ownerDocument||document,ne=ue&&ue.defaultView||window;if(ne.getSelection){var ae=ne.getSelection(),Se=N.textContent.length,Pe=Math.min(I.start,Se),At=I.end===void 0?Pe:Math.min(I.end,Se);!ae.extend&&Pe>At&&(v=At,At=Pe,Pe=v);var K=Pf(N,Pe),q=Pf(N,At);if(K&&q&&(ae.rangeCount!==1||ae.anchorNode!==K.node||ae.anchorOffset!==K.offset||ae.focusNode!==q.node||ae.focusOffset!==q.offset)){var J=ue.createRange();J.setStart(K.node,K.offset),ae.removeAllRanges(),Pe>At?(ae.addRange(J),ae.extend(q.node,q.offset)):(J.setEnd(q.node,q.offset),ae.addRange(J))}}}}for(ue=[],ae=N;ae=ae.parentNode;)ae.nodeType===1&&ue.push({element:ae,left:ae.scrollLeft,top:ae.scrollTop});for(typeof N.focus=="function"&&N.focus(),N=0;N<ue.length;N++){var xe=ue[N];xe.element.scrollLeft=xe.left,xe.element.scrollTop=xe.top}}u0=!!$x,Gx=$x=null}finally{ft=m,P.p=o,U.T=l}}t.current=r,on=2}}function np(){if(on===2){on=0;var t=Ta,r=ll,l=(r.flags&8772)!==0;if((r.subtreeFlags&8772)!==0||l){l=U.T,U.T=null;var o=P.p;P.p=2;var m=ft;ft|=4;try{N1(t,r.alternate,r)}finally{ft=m,P.p=o,U.T=l}}on=3}}function rp(){if(on===4||on===3){on=0,ht();var t=Ta,r=ll,l=aa,o=q1;(r.subtreeFlags&10256)!==0||(r.flags&10256)!==0?on=5:(on=0,ll=Ta=null,ap(t,t.pendingLanes));var m=t.pendingLanes;if(m===0&&(Ma=null),Ur(l),r=r.stateNode,_t&&typeof _t.onCommitFiberRoot=="function")try{_t.onCommitFiberRoot(dt,r,void 0,(r.current.flags&128)===128)}catch{}if(o!==null){r=U.T,m=P.p,P.p=2,U.T=null;try{for(var g=t.onRecoverableError,v=0;v<o.length;v++){var N=o[v];g(N.value,{componentStack:N.stack})}}finally{U.T=r,P.p=m}}(aa&3)!==0&&Jo(),jr(t),m=t.pendingLanes,(l&261930)!==0&&(m&42)!==0?t===_x?cs++:(cs=0,_x=t):cs=0,xs(0)}}function ap(t,r){(t.pooledCacheLanes&=r)===0&&(r=t.pooledCache,r!=null&&(t.pooledCache=null,$l(r)))}function Jo(){return tp(),np(),rp(),ip()}function ip(){if(on!==5)return!1;var t=Ta,r=Sx;Sx=0;var l=Ur(aa),o=U.T,m=P.p;try{P.p=32>l?32:l,U.T=null,l=Nx,Nx=null;var g=Ta,v=aa;if(on=0,ll=Ta=null,aa=0,(ft&6)!==0)throw Error(i(331));var N=ft;if(ft|=4,U1(g.current),z1(g,g.current,v,l),ft=N,xs(0,!1),_t&&typeof _t.onPostCommitFiberRoot=="function")try{_t.onPostCommitFiberRoot(dt,g)}catch{}return!0}finally{P.p=m,U.T=o,ap(t,r)}}function lp(t,r,l){r=or(l,r),r=cx(t.stateNode,r,2),t=Da(t,r,2),t!==null&&(Bt(t,2),jr(t))}function yt(t,r,l){if(t.tag===3)lp(t,t,l);else for(;r!==null;){if(r.tag===3){lp(r,t,l);break}else if(r.tag===1){var o=r.stateNode;if(typeof r.type.getDerivedStateFromError=="function"||typeof o.componentDidCatch=="function"&&(Ma===null||!Ma.has(o))){t=or(l,t),l=s1(2),o=Da(r,l,2),o!==null&&(o1(l,o,r,t),Bt(o,2),jr(o));break}}r=r.return}}function jx(t,r,l){var o=t.pingCache;if(o===null){o=t.pingCache=new e6;var m=new Set;o.set(r,m)}else m=o.get(r),m===void 0&&(m=new Set,o.set(r,m));m.has(l)||(Dx=!0,m.add(l),t=i6.bind(null,t,r,l),r.then(t,t))}function i6(t,r,l){var o=t.pingCache;o!==null&&o.delete(r),t.pingedLanes|=t.suspendedLanes&l,t.warmLanes&=~l,kt===t&&(it&l)===l&&($t===4||$t===3&&(it&62914560)===it&&300>Je()-Qo?(ft&2)===0&&sl(t,0):Fx|=l,il===it&&(il=0)),jr(t)}function sp(t,r){r===0&&(r=$e()),t=ri(t,r),t!==null&&(Bt(t,r),jr(t))}function l6(t){var r=t.memoizedState,l=0;r!==null&&(l=r.retryLane),sp(t,l)}function s6(t,r){var l=0;switch(t.tag){case 31:case 13:var o=t.stateNode,m=t.memoizedState;m!==null&&(l=m.retryLane);break;case 19:o=t.stateNode;break;case 22:o=t.stateNode._retryCache;break;default:throw Error(i(314))}o!==null&&o.delete(r),sp(t,l)}function o6(t,r){return dn(t,r)}var e0=null,cl=null,Rx=!1,t0=!1,Ox=!1,Ra=0;function jr(t){t!==cl&&t.next===null&&(cl===null?e0=cl=t:cl=cl.next=t),t0=!0,Rx||(Rx=!0,x6())}function xs(t,r){if(!Ox&&t0){Ox=!0;do for(var l=!1,o=e0;o!==null;){if(t!==0){var m=o.pendingLanes;if(m===0)var g=0;else{var v=o.suspendedLanes,N=o.pingedLanes;g=(1<<31-pt(42|t)+1)-1,g&=m&~(v&~N),g=g&201326741?g&201326741|1:g?g|2:0}g!==0&&(l=!0,up(o,g))}else g=it,g=H(o,o===kt?g:0,o.cancelPendingCommit!==null||o.timeoutHandle!==-1),(g&3)===0||ce(o,g)||(l=!0,up(o,g));o=o.next}while(l);Ox=!1}}function c6(){op()}function op(){t0=Rx=!1;var t=0;Ra!==0&&b6()&&(t=Ra);for(var r=Je(),l=null,o=e0;o!==null;){var m=o.next,g=cp(o,r);g===0?(o.next=null,l===null?e0=m:l.next=m,m===null&&(cl=l)):(l=o,(t!==0||(g&3)!==0)&&(t0=!0)),o=m}on!==0&&on!==5||xs(t),Ra!==0&&(Ra=0)}function cp(t,r){for(var l=t.suspendedLanes,o=t.pingedLanes,m=t.expirationTimes,g=t.pendingLanes&-62914561;0<g;){var v=31-pt(g),N=1<<v,I=m[v];I===-1?((N&l)===0||(N&o)!==0)&&(m[v]=be(N,r)):I<=r&&(t.expiredLanes|=N),g&=~N}if(r=kt,l=it,l=H(t,t===r?l:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),o=t.callbackNode,l===0||t===r&&(gt===2||gt===9)||t.cancelPendingCommit!==null)return o!==null&&o!==null&&St(o),t.callbackNode=null,t.callbackPriority=0;if((l&3)===0||ce(t,l)){if(r=l&-l,r===t.callbackPriority)return r;switch(o!==null&&St(o),Ur(l)){case 2:case 8:l=W;break;case 32:l=ve;break;case 268435456:l=Te;break;default:l=ve}return o=xp.bind(null,t),l=dn(l,o),t.callbackPriority=r,t.callbackNode=l,r}return o!==null&&o!==null&&St(o),t.callbackPriority=2,t.callbackNode=null,2}function xp(t,r){if(on!==0&&on!==5)return t.callbackNode=null,t.callbackPriority=0,null;var l=t.callbackNode;if(Jo()&&t.callbackNode!==l)return null;var o=it;return o=H(t,t===kt?o:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),o===0?null:(G1(t,o,r),cp(t,Je()),t.callbackNode!=null&&t.callbackNode===l?xp.bind(null,t):null)}function up(t,r){if(Jo())return null;G1(t,r,!0)}function x6(){A6(function(){(ft&6)!==0?dn(te,c6):op()})}function zx(){if(Ra===0){var t=Yi;t===0&&(t=Ka,Ka<<=1,(Ka&261888)===0&&(Ka=256)),Ra=t}return Ra}function dp(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:ga(""+t)}function fp(t,r){var l=r.ownerDocument.createElement("input");return l.name=r.name,l.value=r.value,t.id&&l.setAttribute("form",t.id),r.parentNode.insertBefore(l,r),t=new FormData(t),l.parentNode.removeChild(l),t}function u6(t,r,l,o,m){if(r==="submit"&&l&&l.stateNode===m){var g=dp((m[bn]||null).action),v=o.submitter;v&&(r=(r=v[bn]||null)?dp(r.formAction):v.getAttribute("formAction"),r!==null&&(g=r,v=null));var N=new fo("action","action",null,o,m);t.push({event:N,listeners:[{instance:null,listener:function(){if(o.defaultPrevented){if(Ra!==0){var I=v?fp(m,v):new FormData(m);rx(l,{pending:!0,data:I,method:m.method,action:g},null,I)}}else typeof g=="function"&&(N.preventDefault(),I=v?fp(m,v):new FormData(m),rx(l,{pending:!0,data:I,method:m.method,action:g},g,I))},currentTarget:m}]})}}for(var Lx=0;Lx<bc.length;Lx++){var Px=bc[Lx],d6=Px.toLowerCase(),f6=Px[0].toUpperCase()+Px.slice(1);vr(d6,"on"+f6)}vr($f,"onAnimationEnd"),vr(Gf,"onAnimationIteration"),vr(Vf,"onAnimationStart"),vr("dblclick","onDoubleClick"),vr("focusin","onFocus"),vr("focusout","onBlur"),vr(S5,"onTransitionRun"),vr(N5,"onTransitionStart"),vr(_5,"onTransitionCancel"),vr(Qf,"onTransitionEnd"),pe("onMouseEnter",["mouseout","mouseover"]),pe("onMouseLeave",["mouseout","mouseover"]),pe("onPointerEnter",["pointerout","pointerover"]),pe("onPointerLeave",["pointerout","pointerover"]),Hr("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Hr("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Hr("onBeforeInput",["compositionend","keypress","textInput","paste"]),Hr("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Hr("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Hr("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var us="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(" "),h6=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(us));function hp(t,r){r=(r&4)!==0;for(var l=0;l<t.length;l++){var o=t[l],m=o.event;o=o.listeners;e:{var g=void 0;if(r)for(var v=o.length-1;0<=v;v--){var N=o[v],I=N.instance,ee=N.currentTarget;if(N=N.listener,I!==g&&m.isPropagationStopped())break e;g=N,m.currentTarget=ee;try{g(m)}catch(se){mo(se)}m.currentTarget=null,g=I}else for(v=0;v<o.length;v++){if(N=o[v],I=N.instance,ee=N.currentTarget,N=N.listener,I!==g&&m.isPropagationStopped())break e;g=N,m.currentTarget=ee;try{g(m)}catch(se){mo(se)}m.currentTarget=null,g=I}}}}function nt(t,r){var l=r[Fl];l===void 0&&(l=r[Fl]=new Set);var o=t+"__bubble";l.has(o)||(pp(r,t,2,!1),l.add(o))}function Ux(t,r,l){var o=0;r&&(o|=4),pp(l,t,o,r)}var n0="_reactListening"+Math.random().toString(36).slice(2);function Ix(t){if(!t[n0]){t[n0]=!0,ao.forEach(function(l){l!=="selectionchange"&&(h6.has(l)||Ux(l,!1,t),Ux(l,!0,t))});var r=t.nodeType===9?t:t.ownerDocument;r===null||r[n0]||(r[n0]=!0,Ux("selectionchange",!1,r))}}function pp(t,r,l,o){switch($p(r)){case 2:var m=H6;break;case 8:m=q6;break;default:m=nu}l=m.bind(null,r,l,t),m=void 0,!sc||r!=="touchstart"&&r!=="touchmove"&&r!=="wheel"||(m=!0),o?m!==void 0?t.addEventListener(r,l,{capture:!0,passive:m}):t.addEventListener(r,l,!0):m!==void 0?t.addEventListener(r,l,{passive:m}):t.addEventListener(r,l,!1)}function Hx(t,r,l,o,m){var g=o;if((r&1)===0&&(r&2)===0&&o!==null)e:for(;;){if(o===null)return;var v=o.tag;if(v===3||v===4){var N=o.stateNode.containerInfo;if(N===m)break;if(v===4)for(v=o.return;v!==null;){var I=v.tag;if((I===3||I===4)&&v.stateNode.containerInfo===m)return;v=v.return}for(;N!==null;){if(v=Sn(N),v===null)return;if(I=v.tag,I===5||I===6||I===26||I===27){o=g=v;continue e}N=N.parentNode}}o=o.return}oo(function(){var ee=g,se=Ye(l),ue=[];e:{var ne=Yf.get(t);if(ne!==void 0){var ae=fo,Se=t;switch(t){case"keypress":if(xo(l)===0)break e;case"keydown":case"keyup":ae=s5;break;case"focusin":Se="focus",ae=uc;break;case"focusout":Se="blur",ae=uc;break;case"beforeblur":case"afterblur":ae=uc;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":ae=vf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":ae=Kg;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ae=x5;break;case $f:case Gf:case Vf:ae=Wg;break;case Qf:ae=d5;break;case"scroll":case"scrollend":ae=Qg;break;case"wheel":ae=h5;break;case"copy":case"cut":case"paste":ae=e5;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":ae=kf;break;case"toggle":case"beforetoggle":ae=m5}var Pe=(r&4)!==0,At=!Pe&&(t==="scroll"||t==="scrollend"),K=Pe?ne!==null?ne+"Capture":null:ne;Pe=[];for(var q=ee,J;q!==null;){var xe=q;if(J=xe.stateNode,xe=xe.tag,xe!==5&&xe!==26&&xe!==27||J===null||K===null||(xe=Tl(q,K),xe!=null&&Pe.push(ds(q,xe,J))),At)break;q=q.return}0<Pe.length&&(ne=new ae(ne,Se,null,l,se),ue.push({event:ne,listeners:Pe}))}}if((r&7)===0){e:{if(ne=t==="mouseover"||t==="pointerover",ae=t==="mouseout"||t==="pointerout",ne&&l!==_e&&(Se=l.relatedTarget||l.fromElement)&&(Sn(Se)||Se[ha]))break e;if((ae||ne)&&(ne=se.window===se?se:(ne=se.ownerDocument)?ne.defaultView||ne.parentWindow:window,ae?(Se=l.relatedTarget||l.toElement,ae=ee,Se=Se?Sn(Se):null,Se!==null&&(At=c(Se),Pe=Se.tag,Se!==At||Pe!==5&&Pe!==27&&Pe!==6)&&(Se=null)):(ae=null,Se=ee),ae!==Se)){if(Pe=vf,xe="onMouseLeave",K="onMouseEnter",q="mouse",(t==="pointerout"||t==="pointerover")&&(Pe=kf,xe="onPointerLeave",K="onPointerEnter",q="pointer"),At=ae==null?ne:pa(ae),J=Se==null?ne:pa(Se),ne=new Pe(xe,q+"leave",ae,l,se),ne.target=At,ne.relatedTarget=J,xe=null,Sn(se)===ee&&(Pe=new Pe(K,q+"enter",Se,l,se),Pe.target=J,Pe.relatedTarget=At,xe=Pe),At=xe,ae&&Se)t:{for(Pe=p6,K=ae,q=Se,J=0,xe=K;xe;xe=Pe(xe))J++;xe=0;for(var Re=q;Re;Re=Pe(Re))xe++;for(;0<J-xe;)K=Pe(K),J--;for(;0<xe-J;)q=Pe(q),xe--;for(;J--;){if(K===q||q!==null&&K===q.alternate){Pe=K;break t}K=Pe(K),q=Pe(q)}Pe=null}else Pe=null;ae!==null&&mp(ue,ne,ae,Pe,!1),Se!==null&&At!==null&&mp(ue,At,Se,Pe,!0)}}e:{if(ne=ee?pa(ee):window,ae=ne.nodeName&&ne.nodeName.toLowerCase(),ae==="select"||ae==="input"&&ne.type==="file")var xt=Tf;else if(_f(ne))if(jf)xt=D5;else{xt=B5;var Me=v5}else ae=ne.nodeName,!ae||ae.toLowerCase()!=="input"||ne.type!=="checkbox"&&ne.type!=="radio"?ee&&Ea(ee.elementType)&&(xt=Tf):xt=k5;if(xt&&(xt=xt(t,ee))){Mf(ue,xt,l,se);break e}Me&&Me(t,ne,ee),t==="focusout"&&ee&&ne.type==="number"&&ee.memoizedProps.value!=null&&zi(ne,"number",ne.value)}switch(Me=ee?pa(ee):window,t){case"focusin":(_f(Me)||Me.contentEditable==="true")&&(Ui=Me,Ec=ee,Il=null);break;case"focusout":Il=Ec=Ui=null;break;case"mousedown":gc=!0;break;case"contextmenu":case"mouseup":case"dragend":gc=!1,Hf(ue,l,se);break;case"selectionchange":if(w5)break;case"keydown":case"keyup":Hf(ue,l,se)}var Xe;if(fc)e:{switch(t){case"compositionstart":var lt="onCompositionStart";break e;case"compositionend":lt="onCompositionEnd";break e;case"compositionupdate":lt="onCompositionUpdate";break e}lt=void 0}else Pi?Sf(t,l)&&(lt="onCompositionEnd"):t==="keydown"&&l.keyCode===229&&(lt="onCompositionStart");lt&&(Df&&l.locale!=="ko"&&(Pi||lt!=="onCompositionStart"?lt==="onCompositionEnd"&&Pi&&(Xe=Cf()):(ya=se,oc="value"in ya?ya.value:ya.textContent,Pi=!0)),Me=r0(ee,lt),0<Me.length&&(lt=new Bf(lt,t,null,l,se),ue.push({event:lt,listeners:Me}),Xe?lt.data=Xe:(Xe=Nf(l),Xe!==null&&(lt.data=Xe)))),(Xe=g5?y5(t,l):b5(t,l))&&(lt=r0(ee,"onBeforeInput"),0<lt.length&&(Me=new Bf("onBeforeInput","beforeinput",null,l,se),ue.push({event:Me,listeners:lt}),Me.data=Xe)),u6(ue,t,ee,l,se)}hp(ue,r)})}function ds(t,r,l){return{instance:t,listener:r,currentTarget:l}}function r0(t,r){for(var l=r+"Capture",o=[];t!==null;){var m=t,g=m.stateNode;if(m=m.tag,m!==5&&m!==26&&m!==27||g===null||(m=Tl(t,l),m!=null&&o.unshift(ds(t,m,g)),m=Tl(t,r),m!=null&&o.push(ds(t,m,g))),t.tag===3)return o;t=t.return}return[]}function p6(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function mp(t,r,l,o,m){for(var g=r._reactName,v=[];l!==null&&l!==o;){var N=l,I=N.alternate,ee=N.stateNode;if(N=N.tag,I!==null&&I===o)break;N!==5&&N!==26&&N!==27||ee===null||(I=ee,m?(ee=Tl(l,g),ee!=null&&v.unshift(ds(l,ee,I))):m||(ee=Tl(l,g),ee!=null&&v.push(ds(l,ee,I)))),l=l.return}v.length!==0&&t.push({event:r,listeners:v})}var m6=/\r\n?/g,E6=/\u0000|\uFFFD/g;function Ep(t){return(typeof t=="string"?t:""+t).replace(m6,`
|
|
9
|
+
`).replace(E6,"")}function gp(t,r){return r=Ep(r),Ep(t)===r}function Ct(t,r,l,o,m,g){switch(l){case"children":typeof o=="string"?r==="body"||r==="textarea"&&o===""||Ie(t,o):(typeof o=="number"||typeof o=="bigint")&&r!=="body"&&Ie(t,""+o);break;case"className":Vn(t,"class",o);break;case"tabIndex":Vn(t,"tabindex",o);break;case"dir":case"role":case"viewBox":case"width":case"height":Vn(t,l,o);break;case"style":Et(t,o,g);break;case"data":if(r!=="object"){Vn(t,"data",o);break}case"src":case"href":if(o===""&&(r!=="a"||l!=="href")){t.removeAttribute(l);break}if(o==null||typeof o=="function"||typeof o=="symbol"||typeof o=="boolean"){t.removeAttribute(l);break}o=ga(""+o),t.setAttribute(l,o);break;case"action":case"formAction":if(typeof o=="function"){t.setAttribute(l,"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 g=="function"&&(l==="formAction"?(r!=="input"&&Ct(t,r,"name",m.name,m,null),Ct(t,r,"formEncType",m.formEncType,m,null),Ct(t,r,"formMethod",m.formMethod,m,null),Ct(t,r,"formTarget",m.formTarget,m,null)):(Ct(t,r,"encType",m.encType,m,null),Ct(t,r,"method",m.method,m,null),Ct(t,r,"target",m.target,m,null)));if(o==null||typeof o=="symbol"||typeof o=="boolean"){t.removeAttribute(l);break}o=ga(""+o),t.setAttribute(l,o);break;case"onClick":o!=null&&(t.onclick=ge);break;case"onScroll":o!=null&&nt("scroll",t);break;case"onScrollEnd":o!=null&&nt("scrollend",t);break;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!="object"||!("__html"in o))throw Error(i(61));if(l=o.__html,l!=null){if(m.children!=null)throw Error(i(60));t.innerHTML=l}}break;case"multiple":t.multiple=o&&typeof o!="function"&&typeof o!="symbol";break;case"muted":t.muted=o&&typeof o!="function"&&typeof o!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(o==null||typeof o=="function"||typeof o=="boolean"||typeof o=="symbol"){t.removeAttribute("xlink:href");break}l=ga(""+o),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":o!=null&&typeof o!="function"&&typeof o!="symbol"?t.setAttribute(l,""+o):t.removeAttribute(l);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":o&&typeof o!="function"&&typeof o!="symbol"?t.setAttribute(l,""):t.removeAttribute(l);break;case"capture":case"download":o===!0?t.setAttribute(l,""):o!==!1&&o!=null&&typeof o!="function"&&typeof o!="symbol"?t.setAttribute(l,o):t.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":o!=null&&typeof o!="function"&&typeof o!="symbol"&&!isNaN(o)&&1<=o?t.setAttribute(l,o):t.removeAttribute(l);break;case"rowSpan":case"start":o==null||typeof o=="function"||typeof o=="symbol"||isNaN(o)?t.removeAttribute(l):t.setAttribute(l,o);break;case"popover":nt("beforetoggle",t),nt("toggle",t),Cn(t,"popover",o);break;case"xlinkActuate":Tn(t,"http://www.w3.org/1999/xlink","xlink:actuate",o);break;case"xlinkArcrole":Tn(t,"http://www.w3.org/1999/xlink","xlink:arcrole",o);break;case"xlinkRole":Tn(t,"http://www.w3.org/1999/xlink","xlink:role",o);break;case"xlinkShow":Tn(t,"http://www.w3.org/1999/xlink","xlink:show",o);break;case"xlinkTitle":Tn(t,"http://www.w3.org/1999/xlink","xlink:title",o);break;case"xlinkType":Tn(t,"http://www.w3.org/1999/xlink","xlink:type",o);break;case"xmlBase":Tn(t,"http://www.w3.org/XML/1998/namespace","xml:base",o);break;case"xmlLang":Tn(t,"http://www.w3.org/XML/1998/namespace","xml:lang",o);break;case"xmlSpace":Tn(t,"http://www.w3.org/XML/1998/namespace","xml:space",o);break;case"is":Cn(t,"is",o);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=qr.get(l)||l,Cn(t,l,o))}}function qx(t,r,l,o,m,g){switch(l){case"style":Et(t,o,g);break;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!="object"||!("__html"in o))throw Error(i(61));if(l=o.__html,l!=null){if(m.children!=null)throw Error(i(60));t.innerHTML=l}}break;case"children":typeof o=="string"?Ie(t,o):(typeof o=="number"||typeof o=="bigint")&&Ie(t,""+o);break;case"onScroll":o!=null&&nt("scroll",t);break;case"onScrollEnd":o!=null&&nt("scrollend",t);break;case"onClick":o!=null&&(t.onclick=ge);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Wa.hasOwnProperty(l))e:{if(l[0]==="o"&&l[1]==="n"&&(m=l.endsWith("Capture"),r=l.slice(2,m?l.length-7:void 0),g=t[bn]||null,g=g!=null?g[l]:null,typeof g=="function"&&t.removeEventListener(r,g,m),typeof o=="function")){typeof g!="function"&&g!==null&&(l in t?t[l]=null:t.hasAttribute(l)&&t.removeAttribute(l)),t.addEventListener(r,o,m);break e}l in t?t[l]=o:o===!0?t.setAttribute(l,""):Cn(t,l,o)}}}function En(t,r,l){switch(r){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":nt("error",t),nt("load",t);var o=!1,m=!1,g;for(g in l)if(l.hasOwnProperty(g)){var v=l[g];if(v!=null)switch(g){case"src":o=!0;break;case"srcSet":m=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(i(137,r));default:Ct(t,r,g,v,l,null)}}m&&Ct(t,r,"srcSet",l.srcSet,l,null),o&&Ct(t,r,"src",l.src,l,null);return;case"input":nt("invalid",t);var N=g=v=m=null,I=null,ee=null;for(o in l)if(l.hasOwnProperty(o)){var se=l[o];if(se!=null)switch(o){case"name":m=se;break;case"type":v=se;break;case"checked":I=se;break;case"defaultChecked":ee=se;break;case"value":g=se;break;case"defaultValue":N=se;break;case"children":case"dangerouslySetInnerHTML":if(se!=null)throw Error(i(137,r));break;default:Ct(t,r,o,se,l,null)}}Ja(t,g,N,I,ee,v,m,!1);return;case"select":nt("invalid",t),o=v=g=null;for(m in l)if(l.hasOwnProperty(m)&&(N=l[m],N!=null))switch(m){case"value":g=N;break;case"defaultValue":v=N;break;case"multiple":o=N;default:Ct(t,r,m,N,l,null)}r=g,l=v,t.multiple=!!o,r!=null?fn(t,!!o,r,!1):l!=null&&fn(t,!!o,l,!0);return;case"textarea":nt("invalid",t),g=m=o=null;for(v in l)if(l.hasOwnProperty(v)&&(N=l[v],N!=null))switch(v){case"value":o=N;break;case"defaultValue":m=N;break;case"children":g=N;break;case"dangerouslySetInnerHTML":if(N!=null)throw Error(i(91));break;default:Ct(t,r,v,N,l,null)}Li(t,o,m,g);return;case"option":for(I in l)l.hasOwnProperty(I)&&(o=l[I],o!=null)&&(I==="selected"?t.selected=o&&typeof o!="function"&&typeof o!="symbol":Ct(t,r,I,o,l,null));return;case"dialog":nt("beforetoggle",t),nt("toggle",t),nt("cancel",t),nt("close",t);break;case"iframe":case"object":nt("load",t);break;case"video":case"audio":for(o=0;o<us.length;o++)nt(us[o],t);break;case"image":nt("error",t),nt("load",t);break;case"details":nt("toggle",t);break;case"embed":case"source":case"link":nt("error",t),nt("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(ee in l)if(l.hasOwnProperty(ee)&&(o=l[ee],o!=null))switch(ee){case"children":case"dangerouslySetInnerHTML":throw Error(i(137,r));default:Ct(t,r,ee,o,l,null)}return;default:if(Ea(r)){for(se in l)l.hasOwnProperty(se)&&(o=l[se],o!==void 0&&qx(t,r,se,o,l,void 0));return}}for(N in l)l.hasOwnProperty(N)&&(o=l[N],o!=null&&Ct(t,r,N,o,l,null))}function g6(t,r,l,o){switch(r){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var m=null,g=null,v=null,N=null,I=null,ee=null,se=null;for(ae in l){var ue=l[ae];if(l.hasOwnProperty(ae)&&ue!=null)switch(ae){case"checked":break;case"value":break;case"defaultValue":I=ue;default:o.hasOwnProperty(ae)||Ct(t,r,ae,null,o,ue)}}for(var ne in o){var ae=o[ne];if(ue=l[ne],o.hasOwnProperty(ne)&&(ae!=null||ue!=null))switch(ne){case"type":g=ae;break;case"name":m=ae;break;case"checked":ee=ae;break;case"defaultChecked":se=ae;break;case"value":v=ae;break;case"defaultValue":N=ae;break;case"children":case"dangerouslySetInnerHTML":if(ae!=null)throw Error(i(137,r));break;default:ae!==ue&&Ct(t,r,ne,ae,o,ue)}}Nl(t,v,N,I,ee,se,g,m);return;case"select":ae=v=N=ne=null;for(g in l)if(I=l[g],l.hasOwnProperty(g)&&I!=null)switch(g){case"value":break;case"multiple":ae=I;default:o.hasOwnProperty(g)||Ct(t,r,g,null,o,I)}for(m in o)if(g=o[m],I=l[m],o.hasOwnProperty(m)&&(g!=null||I!=null))switch(m){case"value":ne=g;break;case"defaultValue":N=g;break;case"multiple":v=g;default:g!==I&&Ct(t,r,m,g,o,I)}r=N,l=v,o=ae,ne!=null?fn(t,!!l,ne,!1):!!o!=!!l&&(r!=null?fn(t,!!l,r,!0):fn(t,!!l,l?[]:"",!1));return;case"textarea":ae=ne=null;for(N in l)if(m=l[N],l.hasOwnProperty(N)&&m!=null&&!o.hasOwnProperty(N))switch(N){case"value":break;case"children":break;default:Ct(t,r,N,null,o,m)}for(v in o)if(m=o[v],g=l[v],o.hasOwnProperty(v)&&(m!=null||g!=null))switch(v){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!==g&&Ct(t,r,v,m,o,g)}lo(t,ne,ae);return;case"option":for(var Se in l)ne=l[Se],l.hasOwnProperty(Se)&&ne!=null&&!o.hasOwnProperty(Se)&&(Se==="selected"?t.selected=!1:Ct(t,r,Se,null,o,ne));for(I in o)ne=o[I],ae=l[I],o.hasOwnProperty(I)&&ne!==ae&&(ne!=null||ae!=null)&&(I==="selected"?t.selected=ne&&typeof ne!="function"&&typeof ne!="symbol":Ct(t,r,I,ne,o,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 Pe in l)ne=l[Pe],l.hasOwnProperty(Pe)&&ne!=null&&!o.hasOwnProperty(Pe)&&Ct(t,r,Pe,null,o,ne);for(ee in o)if(ne=o[ee],ae=l[ee],o.hasOwnProperty(ee)&&ne!==ae&&(ne!=null||ae!=null))switch(ee){case"children":case"dangerouslySetInnerHTML":if(ne!=null)throw Error(i(137,r));break;default:Ct(t,r,ee,ne,o,ae)}return;default:if(Ea(r)){for(var At in l)ne=l[At],l.hasOwnProperty(At)&&ne!==void 0&&!o.hasOwnProperty(At)&&qx(t,r,At,void 0,o,ne);for(se in o)ne=o[se],ae=l[se],!o.hasOwnProperty(se)||ne===ae||ne===void 0&&ae===void 0||qx(t,r,se,ne,o,ae);return}}for(var K in l)ne=l[K],l.hasOwnProperty(K)&&ne!=null&&!o.hasOwnProperty(K)&&Ct(t,r,K,null,o,ne);for(ue in o)ne=o[ue],ae=l[ue],!o.hasOwnProperty(ue)||ne===ae||ne==null&&ae==null||Ct(t,r,ue,ne,o,ae)}function yp(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function y6(){if(typeof performance.getEntriesByType=="function"){for(var t=0,r=0,l=performance.getEntriesByType("resource"),o=0;o<l.length;o++){var m=l[o],g=m.transferSize,v=m.initiatorType,N=m.duration;if(g&&N&&yp(v)){for(v=0,N=m.responseEnd,o+=1;o<l.length;o++){var I=l[o],ee=I.startTime;if(ee>N)break;var se=I.transferSize,ue=I.initiatorType;se&&yp(ue)&&(I=I.responseEnd,v+=se*(I<N?1:(N-ee)/(I-ee)))}if(--o,r+=8*(g+v)/(m.duration/1e3),t++,10<t)break}}if(0<t)return r/t/1e6}return navigator.connection&&(t=navigator.connection.downlink,typeof t=="number")?t:5}var $x=null,Gx=null;function a0(t){return t.nodeType===9?t:t.ownerDocument}function bp(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 Cp(t,r){if(t===0)switch(r){case"svg":return 1;case"math":return 2;default:return 0}return t===1&&r==="foreignObject"?0:t}function Vx(t,r){return t==="textarea"||t==="noscript"||typeof r.children=="string"||typeof r.children=="number"||typeof r.children=="bigint"||typeof r.dangerouslySetInnerHTML=="object"&&r.dangerouslySetInnerHTML!==null&&r.dangerouslySetInnerHTML.__html!=null}var Qx=null;function b6(){var t=window.event;return t&&t.type==="popstate"?t===Qx?!1:(Qx=t,!0):(Qx=null,!1)}var Ap=typeof setTimeout=="function"?setTimeout:void 0,C6=typeof clearTimeout=="function"?clearTimeout:void 0,vp=typeof Promise=="function"?Promise:void 0,A6=typeof queueMicrotask=="function"?queueMicrotask:typeof vp<"u"?function(t){return vp.resolve(null).then(t).catch(v6)}:Ap;function v6(t){setTimeout(function(){throw t})}function Oa(t){return t==="head"}function Bp(t,r){var l=r,o=0;do{var m=l.nextSibling;if(t.removeChild(l),m&&m.nodeType===8)if(l=m.data,l==="/$"||l==="/&"){if(o===0){t.removeChild(m),fl(r);return}o--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")o++;else if(l==="html")fs(t.ownerDocument.documentElement);else if(l==="head"){l=t.ownerDocument.head,fs(l);for(var g=l.firstChild;g;){var v=g.nextSibling,N=g.nodeName;g[Za]||N==="SCRIPT"||N==="STYLE"||N==="LINK"&&g.rel.toLowerCase()==="stylesheet"||l.removeChild(g),g=v}}else l==="body"&&fs(t.ownerDocument.body);l=m}while(l);fl(r)}function kp(t,r){var l=t;t=0;do{var o=l.nextSibling;if(l.nodeType===1?r?(l._stashedDisplay=l.style.display,l.style.display="none"):(l.style.display=l._stashedDisplay||"",l.getAttribute("style")===""&&l.removeAttribute("style")):l.nodeType===3&&(r?(l._stashedText=l.nodeValue,l.nodeValue=""):l.nodeValue=l._stashedText||""),o&&o.nodeType===8)if(l=o.data,l==="/$"){if(t===0)break;t--}else l!=="$"&&l!=="$?"&&l!=="$~"&&l!=="$!"||t++;l=o}while(l)}function Yx(t){var r=t.firstChild;for(r&&r.nodeType===10&&(r=r.nextSibling);r;){var l=r;switch(r=r.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":Yx(l),wl(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}t.removeChild(l)}}function B6(t,r,l,o){for(;t.nodeType===1;){var m=l;if(t.nodeName.toLowerCase()!==r.toLowerCase()){if(!o&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(o){if(!t[Za])switch(r){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(g=t.getAttribute("rel"),g==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(g!==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(g=t.getAttribute("src"),(g!==(m.src==null?null:m.src)||t.getAttribute("type")!==(m.type==null?null:m.type)||t.getAttribute("crossorigin")!==(m.crossOrigin==null?null:m.crossOrigin))&&g&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(r==="input"&&t.type==="hidden"){var g=m.name==null?null:""+m.name;if(m.type==="hidden"&&t.getAttribute("name")===g)return t}else return t;if(t=fr(t.nextSibling),t===null)break}return null}function k6(t,r,l){if(r==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!l||(t=fr(t.nextSibling),t===null))return null;return t}function Dp(t,r){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!r||(t=fr(t.nextSibling),t===null))return null;return t}function Kx(t){return t.data==="$?"||t.data==="$~"}function Xx(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function D6(t,r){var l=t.ownerDocument;if(t.data==="$~")t._reactRetry=r;else if(t.data!=="$?"||l.readyState!=="loading")r();else{var o=function(){r(),l.removeEventListener("DOMContentLoaded",o)};l.addEventListener("DOMContentLoaded",o),t._reactRetry=o}}function fr(t){for(;t!=null;t=t.nextSibling){var r=t.nodeType;if(r===1||r===3)break;if(r===8){if(r=t.data,r==="$"||r==="$!"||r==="$?"||r==="$~"||r==="&"||r==="F!"||r==="F")break;if(r==="/$"||r==="/&")return null}}return t}var Zx=null;function Fp(t){t=t.nextSibling;for(var r=0;t;){if(t.nodeType===8){var l=t.data;if(l==="/$"||l==="/&"){if(r===0)return fr(t.nextSibling);r--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||r++}t=t.nextSibling}return null}function wp(t){t=t.previousSibling;for(var r=0;t;){if(t.nodeType===8){var l=t.data;if(l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"){if(r===0)return t;r--}else l!=="/$"&&l!=="/&"||r++}t=t.previousSibling}return null}function Sp(t,r,l){switch(r=a0(l),t){case"html":if(t=r.documentElement,!t)throw Error(i(452));return t;case"head":if(t=r.head,!t)throw Error(i(453));return t;case"body":if(t=r.body,!t)throw Error(i(454));return t;default:throw Error(i(451))}}function fs(t){for(var r=t.attributes;r.length;)t.removeAttributeNode(r[0]);wl(t)}var hr=new Map,Np=new Set;function i0(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var ia=P.d;P.d={f:F6,r:w6,D:S6,C:N6,L:_6,m:M6,X:j6,S:T6,M:R6};function F6(){var t=ia.f(),r=Xo();return t||r}function w6(t){var r=Ir(t);r!==null&&r.tag===5&&r.type==="form"?Qh(r):ia.r(t)}var xl=typeof document>"u"?null:document;function _p(t,r,l){var o=xl;if(o&&typeof r=="string"&&r){var m=jn(r);m='link[rel="'+t+'"][href="'+m+'"]',typeof l=="string"&&(m+='[crossorigin="'+l+'"]'),Np.has(m)||(Np.add(m),t={rel:t,crossOrigin:l,href:r},o.querySelector(m)===null&&(r=o.createElement("link"),En(r,"link",t),Jt(r),o.head.appendChild(r)))}}function S6(t){ia.D(t),_p("dns-prefetch",t,null)}function N6(t,r){ia.C(t,r),_p("preconnect",t,r)}function _6(t,r,l){ia.L(t,r,l);var o=xl;if(o&&t&&r){var m='link[rel="preload"][as="'+jn(r)+'"]';r==="image"&&l&&l.imageSrcSet?(m+='[imagesrcset="'+jn(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(m+='[imagesizes="'+jn(l.imageSizes)+'"]')):m+='[href="'+jn(t)+'"]';var g=m;switch(r){case"style":g=ul(t);break;case"script":g=dl(t)}hr.has(g)||(t=p({rel:"preload",href:r==="image"&&l&&l.imageSrcSet?void 0:t,as:r},l),hr.set(g,t),o.querySelector(m)!==null||r==="style"&&o.querySelector(hs(g))||r==="script"&&o.querySelector(ps(g))||(r=o.createElement("link"),En(r,"link",t),Jt(r),o.head.appendChild(r)))}}function M6(t,r){ia.m(t,r);var l=xl;if(l&&t){var o=r&&typeof r.as=="string"?r.as:"script",m='link[rel="modulepreload"][as="'+jn(o)+'"][href="'+jn(t)+'"]',g=m;switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":g=dl(t)}if(!hr.has(g)&&(t=p({rel:"modulepreload",href:t},r),hr.set(g,t),l.querySelector(m)===null)){switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(ps(g)))return}o=l.createElement("link"),En(o,"link",t),Jt(o),l.head.appendChild(o)}}}function T6(t,r,l){ia.S(t,r,l);var o=xl;if(o&&t){var m=ma(o).hoistableStyles,g=ul(t);r=r||"default";var v=m.get(g);if(!v){var N={loading:0,preload:null};if(v=o.querySelector(hs(g)))N.loading=5;else{t=p({rel:"stylesheet",href:t,"data-precedence":r},l),(l=hr.get(g))&&Wx(t,l);var I=v=o.createElement("link");Jt(I),En(I,"link",t),I._p=new Promise(function(ee,se){I.onload=ee,I.onerror=se}),I.addEventListener("load",function(){N.loading|=1}),I.addEventListener("error",function(){N.loading|=2}),N.loading|=4,l0(v,r,o)}v={type:"stylesheet",instance:v,count:1,state:N},m.set(g,v)}}}function j6(t,r){ia.X(t,r);var l=xl;if(l&&t){var o=ma(l).hoistableScripts,m=dl(t),g=o.get(m);g||(g=l.querySelector(ps(m)),g||(t=p({src:t,async:!0},r),(r=hr.get(m))&&Jx(t,r),g=l.createElement("script"),Jt(g),En(g,"link",t),l.head.appendChild(g)),g={type:"script",instance:g,count:1,state:null},o.set(m,g))}}function R6(t,r){ia.M(t,r);var l=xl;if(l&&t){var o=ma(l).hoistableScripts,m=dl(t),g=o.get(m);g||(g=l.querySelector(ps(m)),g||(t=p({src:t,async:!0,type:"module"},r),(r=hr.get(m))&&Jx(t,r),g=l.createElement("script"),Jt(g),En(g,"link",t),l.head.appendChild(g)),g={type:"script",instance:g,count:1,state:null},o.set(m,g))}}function Mp(t,r,l,o){var m=(m=fe.current)?i0(m):null;if(!m)throw Error(i(446));switch(t){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(r=ul(l.href),l=ma(m).hoistableStyles,o=l.get(r),o||(o={type:"style",instance:null,count:0,state:null},l.set(r,o)),o):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){t=ul(l.href);var g=ma(m).hoistableStyles,v=g.get(t);if(v||(m=m.ownerDocument||m,v={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},g.set(t,v),(g=m.querySelector(hs(t)))&&!g._p&&(v.instance=g,v.state.loading=5),hr.has(t)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},hr.set(t,l),g||O6(m,t,l,v.state))),r&&o===null)throw Error(i(528,""));return v}if(r&&o!==null)throw Error(i(529,""));return null;case"script":return r=l.async,l=l.src,typeof l=="string"&&r&&typeof r!="function"&&typeof r!="symbol"?(r=dl(l),l=ma(m).hoistableScripts,o=l.get(r),o||(o={type:"script",instance:null,count:0,state:null},l.set(r,o)),o):{type:"void",instance:null,count:0,state:null};default:throw Error(i(444,t))}}function ul(t){return'href="'+jn(t)+'"'}function hs(t){return'link[rel="stylesheet"]['+t+"]"}function Tp(t){return p({},t,{"data-precedence":t.precedence,precedence:null})}function O6(t,r,l,o){t.querySelector('link[rel="preload"][as="style"]['+r+"]")?o.loading=1:(r=t.createElement("link"),o.preload=r,r.addEventListener("load",function(){return o.loading|=1}),r.addEventListener("error",function(){return o.loading|=2}),En(r,"link",l),Jt(r),t.head.appendChild(r))}function dl(t){return'[src="'+jn(t)+'"]'}function ps(t){return"script[async]"+t}function jp(t,r,l){if(r.count++,r.instance===null)switch(r.type){case"style":var o=t.querySelector('style[data-href~="'+jn(l.href)+'"]');if(o)return r.instance=o,Jt(o),o;var m=p({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return o=(t.ownerDocument||t).createElement("style"),Jt(o),En(o,"style",m),l0(o,l.precedence,t),r.instance=o;case"stylesheet":m=ul(l.href);var g=t.querySelector(hs(m));if(g)return r.state.loading|=4,r.instance=g,Jt(g),g;o=Tp(l),(m=hr.get(m))&&Wx(o,m),g=(t.ownerDocument||t).createElement("link"),Jt(g);var v=g;return v._p=new Promise(function(N,I){v.onload=N,v.onerror=I}),En(g,"link",o),r.state.loading|=4,l0(g,l.precedence,t),r.instance=g;case"script":return g=dl(l.src),(m=t.querySelector(ps(g)))?(r.instance=m,Jt(m),m):(o=l,(m=hr.get(g))&&(o=p({},l),Jx(o,m)),t=t.ownerDocument||t,m=t.createElement("script"),Jt(m),En(m,"link",o),t.head.appendChild(m),r.instance=m);case"void":return null;default:throw Error(i(443,r.type))}else r.type==="stylesheet"&&(r.state.loading&4)===0&&(o=r.instance,r.state.loading|=4,l0(o,l.precedence,t));return r.instance}function l0(t,r,l){for(var o=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),m=o.length?o[o.length-1]:null,g=m,v=0;v<o.length;v++){var N=o[v];if(N.dataset.precedence===r)g=N;else if(g!==m)break}g?g.parentNode.insertBefore(t,g.nextSibling):(r=l.nodeType===9?l.head:l,r.insertBefore(t,r.firstChild))}function Wx(t,r){t.crossOrigin==null&&(t.crossOrigin=r.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=r.referrerPolicy),t.title==null&&(t.title=r.title)}function Jx(t,r){t.crossOrigin==null&&(t.crossOrigin=r.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=r.referrerPolicy),t.integrity==null&&(t.integrity=r.integrity)}var s0=null;function Rp(t,r,l){if(s0===null){var o=new Map,m=s0=new Map;m.set(l,o)}else m=s0,o=m.get(l),o||(o=new Map,m.set(l,o));if(o.has(t))return o;for(o.set(t,null),l=l.getElementsByTagName(t),m=0;m<l.length;m++){var g=l[m];if(!(g[Za]||g[Qt]||t==="link"&&g.getAttribute("rel")==="stylesheet")&&g.namespaceURI!=="http://www.w3.org/2000/svg"){var v=g.getAttribute(r)||"";v=t+v;var N=o.get(v);N?N.push(g):o.set(v,[g])}}return o}function Op(t,r,l){t=t.ownerDocument||t,t.head.insertBefore(l,r==="title"?t.querySelector("head > title"):null)}function z6(t,r,l){if(l===1||r.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof r.precedence!="string"||typeof r.href!="string"||r.href==="")break;return!0;case"link":if(typeof r.rel!="string"||typeof r.href!="string"||r.href===""||r.onLoad||r.onError)break;return r.rel==="stylesheet"?(t=r.disabled,typeof r.precedence=="string"&&t==null):!0;case"script":if(r.async&&typeof r.async!="function"&&typeof r.async!="symbol"&&!r.onLoad&&!r.onError&&r.src&&typeof r.src=="string")return!0}return!1}function zp(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function L6(t,r,l,o){if(l.type==="stylesheet"&&(typeof o.media!="string"||matchMedia(o.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var m=ul(o.href),g=r.querySelector(hs(m));if(g){r=g._p,r!==null&&typeof r=="object"&&typeof r.then=="function"&&(t.count++,t=o0.bind(t),r.then(t,t)),l.state.loading|=4,l.instance=g,Jt(g);return}g=r.ownerDocument||r,o=Tp(o),(m=hr.get(m))&&Wx(o,m),g=g.createElement("link"),Jt(g);var v=g;v._p=new Promise(function(N,I){v.onload=N,v.onerror=I}),En(g,"link",o),l.instance=g}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(l,r),(r=l.state.preload)&&(l.state.loading&3)===0&&(t.count++,l=o0.bind(t),r.addEventListener("load",l),r.addEventListener("error",l))}}var eu=0;function P6(t,r){return t.stylesheets&&t.count===0&&x0(t,t.stylesheets),0<t.count||0<t.imgCount?function(l){var o=setTimeout(function(){if(t.stylesheets&&x0(t,t.stylesheets),t.unsuspend){var g=t.unsuspend;t.unsuspend=null,g()}},6e4+r);0<t.imgBytes&&eu===0&&(eu=62500*y6());var m=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&x0(t,t.stylesheets),t.unsuspend)){var g=t.unsuspend;t.unsuspend=null,g()}},(t.imgBytes>eu?50:800)+r);return t.unsuspend=l,function(){t.unsuspend=null,clearTimeout(o),clearTimeout(m)}}:null}function o0(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)x0(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var c0=null;function x0(t,r){t.stylesheets=null,t.unsuspend!==null&&(t.count++,c0=new Map,r.forEach(U6,t),c0=null,o0.call(t))}function U6(t,r){if(!(r.state.loading&4)){var l=c0.get(t);if(l)var o=l.get(null);else{l=new Map,c0.set(t,l);for(var m=t.querySelectorAll("link[data-precedence],style[data-precedence]"),g=0;g<m.length;g++){var v=m[g];(v.nodeName==="LINK"||v.getAttribute("media")!=="not all")&&(l.set(v.dataset.precedence,v),o=v)}o&&l.set(null,o)}m=r.instance,v=m.getAttribute("data-precedence"),g=l.get(v)||o,g===o&&l.set(null,m),l.set(v,m),this.count++,o=o0.bind(this),m.addEventListener("load",o),m.addEventListener("error",o),g?g.parentNode.insertBefore(m,g.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(m,t.firstChild)),r.state.loading|=4}}var ms={$$typeof:F,Provider:null,Consumer:null,_currentValue:re,_currentValue2:re,_threadCount:0};function I6(t,r,l,o,m,g,v,N,I){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=Mt(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Mt(0),this.hiddenUpdates=Mt(null),this.identifierPrefix=o,this.onUncaughtError=m,this.onCaughtError=g,this.onRecoverableError=v,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=I,this.incompleteTransitions=new Map}function Lp(t,r,l,o,m,g,v,N,I,ee,se,ue){return t=new I6(t,r,l,v,I,ee,se,ue,N),r=1,g===!0&&(r|=24),g=Kn(3,null,null,r),t.current=g,g.stateNode=t,r=Tc(),r.refCount++,t.pooledCache=r,r.refCount++,g.memoizedState={element:o,isDehydrated:l,cache:r},zc(g),t}function Pp(t){return t?(t=qi,t):qi}function Up(t,r,l,o,m,g){m=Pp(m),o.context===null?o.context=m:o.pendingContext=m,o=ka(r),o.payload={element:l},g=g===void 0?null:g,g!==null&&(o.callback=g),l=Da(t,o,r),l!==null&&(Un(l,t,r),Yl(l,t,r))}function Ip(t,r){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var l=t.retryLane;t.retryLane=l!==0&&l<r?l:r}}function tu(t,r){Ip(t,r),(t=t.alternate)&&Ip(t,r)}function Hp(t){if(t.tag===13||t.tag===31){var r=ri(t,67108864);r!==null&&Un(r,t,67108864),tu(t,67108864)}}function qp(t){if(t.tag===13||t.tag===31){var r=er();r=Lt(r);var l=ri(t,r);l!==null&&Un(l,t,r),tu(t,r)}}var u0=!0;function H6(t,r,l,o){var m=U.T;U.T=null;var g=P.p;try{P.p=2,nu(t,r,l,o)}finally{P.p=g,U.T=m}}function q6(t,r,l,o){var m=U.T;U.T=null;var g=P.p;try{P.p=8,nu(t,r,l,o)}finally{P.p=g,U.T=m}}function nu(t,r,l,o){if(u0){var m=ru(o);if(m===null)Hx(t,r,o,d0,l),Gp(t,o);else if(G6(m,t,r,l,o))o.stopPropagation();else if(Gp(t,o),r&4&&-1<$6.indexOf(t)){for(;m!==null;){var g=Ir(m);if(g!==null)switch(g.tag){case 3:if(g=g.stateNode,g.current.memoizedState.isDehydrated){var v=Mn(g.pendingLanes);if(v!==0){var N=g;for(N.pendingLanes|=2,N.entangledLanes|=2;v;){var I=1<<31-pt(v);N.entanglements[1]|=I,v&=~I}jr(g),(ft&6)===0&&(Yo=Je()+500,xs(0))}}break;case 31:case 13:N=ri(g,2),N!==null&&Un(N,g,2),Xo(),tu(g,2)}if(g=ru(o),g===null&&Hx(t,r,o,d0,l),g===m)break;m=g}m!==null&&o.stopPropagation()}else Hx(t,r,o,null,l)}}function ru(t){return t=Ye(t),au(t)}var d0=null;function au(t){if(d0=null,t=Sn(t),t!==null){var r=c(t);if(r===null)t=null;else{var l=r.tag;if(l===13){if(t=x(r),t!==null)return t;t=null}else if(l===31){if(t=u(r),t!==null)return t;t=null}else if(l===3){if(r.stateNode.current.memoizedState.isDehydrated)return r.tag===3?r.stateNode.containerInfo:null;t=null}else r!==t&&(t=null)}}return d0=t,null}function $p(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(oe()){case te:return 2;case W:return 8;case ve:case Ue:return 32;case Te:return 268435456;default:return 32}default:return 32}}var iu=!1,za=null,La=null,Pa=null,Es=new Map,gs=new Map,Ua=[],$6="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 Gp(t,r){switch(t){case"focusin":case"focusout":za=null;break;case"dragenter":case"dragleave":La=null;break;case"mouseover":case"mouseout":Pa=null;break;case"pointerover":case"pointerout":Es.delete(r.pointerId);break;case"gotpointercapture":case"lostpointercapture":gs.delete(r.pointerId)}}function ys(t,r,l,o,m,g){return t===null||t.nativeEvent!==g?(t={blockedOn:r,domEventName:l,eventSystemFlags:o,nativeEvent:g,targetContainers:[m]},r!==null&&(r=Ir(r),r!==null&&Hp(r)),t):(t.eventSystemFlags|=o,r=t.targetContainers,m!==null&&r.indexOf(m)===-1&&r.push(m),t)}function G6(t,r,l,o,m){switch(r){case"focusin":return za=ys(za,t,r,l,o,m),!0;case"dragenter":return La=ys(La,t,r,l,o,m),!0;case"mouseover":return Pa=ys(Pa,t,r,l,o,m),!0;case"pointerover":var g=m.pointerId;return Es.set(g,ys(Es.get(g)||null,t,r,l,o,m)),!0;case"gotpointercapture":return g=m.pointerId,gs.set(g,ys(gs.get(g)||null,t,r,l,o,m)),!0}return!1}function Vp(t){var r=Sn(t.target);if(r!==null){var l=c(r);if(l!==null){if(r=l.tag,r===13){if(r=x(l),r!==null){t.blockedOn=r,Ti(t.priority,function(){qp(l)});return}}else if(r===31){if(r=u(l),r!==null){t.blockedOn=r,Ti(t.priority,function(){qp(l)});return}}else if(r===3&&l.stateNode.current.memoizedState.isDehydrated){t.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}t.blockedOn=null}function f0(t){if(t.blockedOn!==null)return!1;for(var r=t.targetContainers;0<r.length;){var l=ru(t.nativeEvent);if(l===null){l=t.nativeEvent;var o=new l.constructor(l.type,l);_e=o,l.target.dispatchEvent(o),_e=null}else return r=Ir(l),r!==null&&Hp(r),t.blockedOn=l,!1;r.shift()}return!0}function Qp(t,r,l){f0(t)&&l.delete(r)}function V6(){iu=!1,za!==null&&f0(za)&&(za=null),La!==null&&f0(La)&&(La=null),Pa!==null&&f0(Pa)&&(Pa=null),Es.forEach(Qp),gs.forEach(Qp)}function h0(t,r){t.blockedOn===r&&(t.blockedOn=null,iu||(iu=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,V6)))}var p0=null;function Yp(t){p0!==t&&(p0=t,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){p0===t&&(p0=null);for(var r=0;r<t.length;r+=3){var l=t[r],o=t[r+1],m=t[r+2];if(typeof o!="function"){if(au(o||l)===null)continue;break}var g=Ir(l);g!==null&&(t.splice(r,3),r-=3,rx(g,{pending:!0,data:m,method:l.method,action:o},o,m))}}))}function fl(t){function r(I){return h0(I,t)}za!==null&&h0(za,t),La!==null&&h0(La,t),Pa!==null&&h0(Pa,t),Es.forEach(r),gs.forEach(r);for(var l=0;l<Ua.length;l++){var o=Ua[l];o.blockedOn===t&&(o.blockedOn=null)}for(;0<Ua.length&&(l=Ua[0],l.blockedOn===null);)Vp(l),l.blockedOn===null&&Ua.shift();if(l=(t.ownerDocument||t).$$reactFormReplay,l!=null)for(o=0;o<l.length;o+=3){var m=l[o],g=l[o+1],v=m[bn]||null;if(typeof g=="function")v||Yp(l);else if(v){var N=null;if(g&&g.hasAttribute("formAction")){if(m=g,v=g[bn]||null)N=v.formAction;else if(au(m)!==null)continue}else N=v.action;typeof N=="function"?l[o+1]=N:(l.splice(o,3),o-=3),Yp(l)}}}function Kp(){function t(g){g.canIntercept&&g.info==="react-transition"&&g.intercept({handler:function(){return new Promise(function(v){return m=v})},focusReset:"manual",scroll:"manual"})}function r(){m!==null&&(m(),m=null),o||setTimeout(l,20)}function l(){if(!o&&!navigation.transition){var g=navigation.currentEntry;g&&g.url!=null&&navigation.navigate(g.url,{state:g.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var o=!1,m=null;return navigation.addEventListener("navigate",t),navigation.addEventListener("navigatesuccess",r),navigation.addEventListener("navigateerror",r),setTimeout(l,100),function(){o=!0,navigation.removeEventListener("navigate",t),navigation.removeEventListener("navigatesuccess",r),navigation.removeEventListener("navigateerror",r),m!==null&&(m(),m=null)}}}function lu(t){this._internalRoot=t}m0.prototype.render=lu.prototype.render=function(t){var r=this._internalRoot;if(r===null)throw Error(i(409));var l=r.current,o=er();Up(l,o,t,r,null,null)},m0.prototype.unmount=lu.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var r=t.containerInfo;Up(t.current,2,null,t,null,null),Xo(),r[ha]=null}};function m0(t){this._internalRoot=t}m0.prototype.unstable_scheduleHydration=function(t){if(t){var r=Mi();t={blockedOn:null,target:t,priority:r};for(var l=0;l<Ua.length&&r!==0&&r<Ua[l].priority;l++);Ua.splice(l,0,t),l===0&&Vp(t)}};var Xp=n.version;if(Xp!=="19.2.7")throw Error(i(527,Xp,"19.2.7"));P.findDOMNode=function(t){var r=t._reactInternals;if(r===void 0)throw typeof t.render=="function"?Error(i(188)):(t=Object.keys(t).join(","),Error(i(268,t)));return t=f(r),t=t!==null?E(t):null,t=t===null?null:t.stateNode,t};var Q6={bundleType:0,version:"19.2.7",rendererPackageName:"react-dom",currentDispatcherRef:U,reconcilerVersion:"19.2.7"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var E0=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!E0.isDisabled&&E0.supportsFiber)try{dt=E0.inject(Q6),_t=E0}catch{}}return Cs.createRoot=function(t,r){if(!s(t))throw Error(i(299));var l=!1,o="",m=r1,g=a1,v=i1;return r!=null&&(r.unstable_strictMode===!0&&(l=!0),r.identifierPrefix!==void 0&&(o=r.identifierPrefix),r.onUncaughtError!==void 0&&(m=r.onUncaughtError),r.onCaughtError!==void 0&&(g=r.onCaughtError),r.onRecoverableError!==void 0&&(v=r.onRecoverableError)),r=Lp(t,1,!1,null,null,l,o,null,m,g,v,Kp),t[ha]=r.current,Ix(t),new lu(r)},Cs.hydrateRoot=function(t,r,l){if(!s(t))throw Error(i(299));var o=!1,m="",g=r1,v=a1,N=i1,I=null;return l!=null&&(l.unstable_strictMode===!0&&(o=!0),l.identifierPrefix!==void 0&&(m=l.identifierPrefix),l.onUncaughtError!==void 0&&(g=l.onUncaughtError),l.onCaughtError!==void 0&&(v=l.onCaughtError),l.onRecoverableError!==void 0&&(N=l.onRecoverableError),l.formState!==void 0&&(I=l.formState)),r=Lp(t,1,!0,r,l??null,o,m,I,g,v,N,Kp),r.context=Pp(null),l=r.current,o=er(),o=Lt(o),m=ka(o),m.callback=null,Da(l,m,o),l=o,r.current.lanes=l,Bt(r,l),jr(r),t[ha]=r.current,Ix(t),new m0(r)},Cs.version="19.2.7",Cs}var mm;function I4(){if(mm)return cu.exports;mm=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(),cu.exports=U4(),cu.exports}var H4=I4();var Fd=/^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i,B8=/^[\\/]{2}/;function q4(e,n){return n+e.replace(/\\/g,"/")}var Em="popstate";function gm(e){return typeof e=="object"&&e!=null&&"pathname"in e&&"search"in e&&"hash"in e&&"state"in e&&"key"in e}function $4(e={}){function n(i,s){let c=s.state?.masked,{pathname:x,search:u,hash:d}=c||i.location;return Xu("",{pathname:x,search:u,hash:d},s.state&&s.state.usr||null,s.state&&s.state.key||"default",c?{pathname:i.location.pathname,search:i.location.search,hash:i.location.hash}:void 0)}function a(i,s){return typeof s=="string"?s:Us(s)}return V4(n,a,null,e)}function Rt(e,n){if(e===!1||e===null||typeof e>"u")throw new Error(n)}function Er(e,n){if(!e){typeof console<"u"&&console.warn(n);try{throw new Error(n)}catch{}}}function G4(){return Math.random().toString(36).substring(2,10)}function ym(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 Xu(e,n,a=null,i,s){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof n=="string"?Al(n):n,state:a,key:n&&n.key||i||G4(),mask:s}}function Us({pathname:e="/",search:n="",hash:a=""}){return n&&n!=="?"&&(e+=n.charAt(0)==="?"?n:"?"+n),a&&a!=="#"&&(e+=a.charAt(0)==="#"?a:"#"+a),e}function Al(e){let n={};if(e){let a=e.indexOf("#");a>=0&&(n.hash=e.substring(a),e=e.substring(0,a));let i=e.indexOf("?");i>=0&&(n.search=e.substring(i),e=e.substring(0,i)),e&&(n.pathname=e)}return n}function V4(e,n,a,i={}){let{window:s=document.defaultView,v5Compat:c=!1}=i,x=s.history,u="POP",d=null,f=E();f==null&&(f=0,x.replaceState({...x.state,idx:f},""));function E(){return(x.state||{idx:null}).idx}function p(){u="POP";let B=E(),k=B==null?null:B-f;f=B,d&&d({action:u,location:A.location,delta:k})}function y(B,k){u="PUSH";let j=gm(B)?B:Xu(A.location,B,k);f=E()+1;let F=ym(j,f),_=A.createHref(j.mask||j);try{x.pushState(F,"",_)}catch(R){if(R instanceof DOMException&&R.name==="DataCloneError")throw R;s.location.assign(_)}c&&d&&d({action:u,location:A.location,delta:1})}function b(B,k){u="REPLACE";let j=gm(B)?B:Xu(A.location,B,k);f=E();let F=ym(j,f),_=A.createHref(j.mask||j);x.replaceState(F,"",_),c&&d&&d({action:u,location:A.location,delta:0})}function C(B){return Q4(s,B)}let A={get action(){return u},get location(){return e(s,x)},listen(B){if(d)throw new Error("A history only accepts one active listener");return s.addEventListener(Em,p),d=B,()=>{s.removeEventListener(Em,p),d=null}},createHref(B){return n(s,B)},createURL:C,encodeLocation(B){let k=C(B);return{pathname:k.pathname,search:k.search,hash:k.hash}},push:y,replace:b,go(B){return x.go(B)}};return A}function Q4(e,n,a=!1){let i="http://localhost";e&&(i=e.location.origin!=="null"?e.location.origin:e.location.href),Rt(i,"No window.location.(origin|href) available to create URL");let s=typeof n=="string"?n:Us(n);return s=s.replace(/ $/,"%20"),!a&&B8.test(s)&&(s=i+s),new URL(s,i)}function k8(e,n,a="/"){return Y4(e,n,a,!1)}function Y4(e,n,a,i,s){let c=typeof n=="string"?Al(n):n,x=ca(c.pathname||"/",a);if(x==null)return null;let u=K4(e),d=null,f=N8(x);for(let E=0;d==null&&E<u.length;++E)d=iy(u[E],f,i);return d}function K4(e){let n=D8(e);return X4(n),n}function D8(e,n=[],a=[],i="",s=!1){let c=(x,u,d=s,f)=>{let E={relativePath:f===void 0?x.path||"":f,caseSensitive:x.caseSensitive===!0,childrenIndex:u,route:x};if(E.relativePath.startsWith("/")){if(!E.relativePath.startsWith(i)&&d)return;Rt(E.relativePath.startsWith(i),`Absolute route path "${E.relativePath}" nested under path "${i}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),E.relativePath=E.relativePath.slice(i.length)}let p=Fr([i,E.relativePath]),y=a.concat(E);x.children&&x.children.length>0&&(Rt(x.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${p}".`),D8(x.children,n,y,p,d)),!(x.path==null&&!x.index)&&n.push({path:p,score:ry(p,x.index),routesMeta:y.map((b,C)=>{let[A,B]=S8(b.relativePath,b.caseSensitive,C===y.length-1);return{...b,matcher:A,compiledParams:B}})})};return e.forEach((x,u)=>{if(x.path===""||!x.path?.includes("?"))c(x,u);else for(let d of F8(x.path))c(x,u,!0,d)}),n}function F8(e){let n=e.split("/");if(n.length===0)return[];let[a,...i]=n,s=a.endsWith("?"),c=a.replace(/\?$/,"");if(i.length===0)return s?[c,""]:[c];let x=F8(i.join("/")),u=[];return u.push(...x.map(d=>d===""?c:[c,d].join("/"))),s&&u.push(...x),u.map(d=>e.startsWith("/")&&d===""?"/":d)}function X4(e){e.sort((n,a)=>n.score!==a.score?a.score-n.score:ay(n.routesMeta.map(i=>i.childrenIndex),a.routesMeta.map(i=>i.childrenIndex)))}var Z4=/^:[\w-]+$/,W4=3,J4=2,ey=1,ty=10,ny=-2,bm=e=>e==="*";function ry(e,n){let a=e.split("/"),i=a.length;return a.some(bm)&&(i+=ny),n&&(i+=J4),a.filter(s=>!bm(s)).reduce((s,c)=>s+(Z4.test(c)?W4:c===""?ey:ty),i)}function ay(e,n){return e.length===n.length&&e.slice(0,-1).every((i,s)=>i===n[s])?e[e.length-1]-n[n.length-1]:0}function iy(e,n,a=!1){let{routesMeta:i}=e,s={},c="/",x=[];for(let u=0;u<i.length;++u){let d=i[u],f=u===i.length-1,E=c==="/"?n:n.slice(c.length)||"/",p={path:d.relativePath,caseSensitive:d.caseSensitive,end:f},y=d.matcher&&d.compiledParams?w8(p,E,d.matcher,d.compiledParams):Is(p,E),b=d.route;if(!y&&f&&a&&!i[i.length-1].route.index&&(y=Is({path:d.relativePath,caseSensitive:d.caseSensitive,end:!1},E)),!y)return null;Object.assign(s,y.params),x.push({params:s,pathname:Fr([c,y.pathname]),pathnameBase:oy(Fr([c,y.pathnameBase])),route:b}),y.pathnameBase!=="/"&&(c=Fr([c,y.pathnameBase]))}return x}function Is(e,n){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[a,i]=S8(e.path,e.caseSensitive,e.end);return w8(e,n,a,i)}function w8(e,n,a,i){let s=n.match(a);if(!s)return null;let c=s[0],x=c.replace(/(.)\/+$/,"$1"),u=s.slice(1);return{params:i.reduce((f,{paramName:E,isOptional:p},y)=>{if(E==="*"){let C=u[y]||"";x=c.slice(0,c.length-C.length).replace(/(.)\/+$/,"$1")}const b=u[y];return p&&!b?f[E]=void 0:f[E]=(b||"").replace(/%2F/g,"/"),f},{}),pathname:c,pathnameBase:x,pattern:e}}function S8(e,n=!1,a=!0){Er(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=[],s="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(x,u,d,f,E)=>{if(i.push({paramName:u,isOptional:d!=null}),d){let p=E.charAt(f+x.length);return p&&p!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(i.push({paramName:"*"}),s+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):a?s+="\\/*$":e!==""&&e!=="/"&&(s+="(?:(?=\\/|$))"),[new RegExp(s,n?void 0:"i"),i]}function N8(e){try{return e.split("/").map(n=>decodeURIComponent(n).replace(/\//g,"%2F")).join("/")}catch(n){return Er(!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 ca(e,n){if(n==="/")return e;if(!e.toLowerCase().startsWith(n.toLowerCase()))return null;let a=n.endsWith("/")?n.length-1:n.length,i=e.charAt(a);return i&&i!=="/"?null:e.slice(a)||"/"}function ly(e,n="/"){let{pathname:a,search:i="",hash:s=""}=typeof e=="string"?Al(e):e,c;return a?(a=_8(a),a.startsWith("/")?c=Cm(a.substring(1),"/"):c=Cm(a,n)):c=n,{pathname:c,search:cy(i),hash:xy(s)}}function Cm(e,n){let a=P0(n).split("/");return e.split("/").forEach(s=>{s===".."?a.length>1&&a.pop():s!=="."&&a.push(s)}),a.length>1?a.join("/"):"/"}function fu(e,n,a,i){return`Cannot include a '${e}' character in a manually specified \`to.${n}\` field [${JSON.stringify(i)}]. Please separate it out to the \`to.${a}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function sy(e){return e.filter((n,a)=>a===0||n.route.path&&n.route.path.length>0)}function wd(e){let n=sy(e);return n.map((a,i)=>i===n.length-1?a.pathname:a.pathnameBase)}function X0(e,n,a,i=!1){let s;typeof e=="string"?s=Al(e):(s={...e},Rt(!s.pathname||!s.pathname.includes("?"),fu("?","pathname","search",s)),Rt(!s.pathname||!s.pathname.includes("#"),fu("#","pathname","hash",s)),Rt(!s.search||!s.search.includes("#"),fu("#","search","hash",s)));let c=e===""||s.pathname==="",x=c?"/":s.pathname,u;if(x==null)u=a;else{let p=n.length-1;if(!i&&x.startsWith("..")){let y=x.split("/");for(;y[0]==="..";)y.shift(),p-=1;s.pathname=y.join("/")}u=p>=0?n[p]:"/"}let d=ly(s,u),f=x&&x!=="/"&&x.endsWith("/"),E=(c||x===".")&&a.endsWith("/");return!d.pathname.endsWith("/")&&(f||E)&&(d.pathname+="/"),d}var _8=e=>e.replace(/[\\/]{2,}/g,"/"),Fr=e=>_8(e.join("/")),P0=e=>e.replace(/\/+$/,""),oy=e=>P0(e).replace(/^\/*/,"/"),cy=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,xy=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,uy=class{constructor(e,n,a,i=!1){this.status=e,this.statusText=n||"",this.internal=i,a instanceof Error?(this.data=a.toString(),this.error=a):this.data=a}};function dy(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function fy(e){let n=e.map(a=>a.route.path).filter(Boolean);return Fr(n)||"/"}var M8=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function T8(e,n){let a=e;if(typeof a!="string"||!Fd.test(a))return{absoluteURL:void 0,isExternal:!1,to:a};let i=a,s=!1;if(M8)try{let c=new URL(window.location.href),x=B8.test(a)?new URL(q4(a,c.protocol)):new URL(a),u=ca(x.pathname,n);x.origin===c.origin&&u!=null?a=u+x.search+x.hash:s=!0}catch{Er(!1,`<Link to="${a}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:i,isExternal:s,to:a}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var j8=["POST","PUT","PATCH","DELETE"];new Set(j8);var hy=["GET",...j8];new Set(hy);var py=["about:","blob:","chrome:","chrome-untrusted:","content:","data:","devtools:","file:","filesystem:","javascript:"];function my(e){try{return py.includes(new URL(e).protocol)}catch{return!1}}var vl=D.createContext(null);vl.displayName="DataRouter";var Z0=D.createContext(null);Z0.displayName="DataRouterState";var R8=D.createContext(!1);function Ey(){return D.useContext(R8)}var O8=D.createContext({isTransitioning:!1});O8.displayName="ViewTransition";var gy=D.createContext(new Map);gy.displayName="Fetchers";var yy=D.createContext(null);yy.displayName="Await";var ir=D.createContext(null);ir.displayName="Navigation";var Ks=D.createContext(null);Ks.displayName="Location";var br=D.createContext({outlet:null,matches:[],isDataRoute:!1});br.displayName="Route";var Sd=D.createContext(null);Sd.displayName="RouteError";var z8="REACT_ROUTER_ERROR",by="REDIRECT",Cy="ROUTE_ERROR_RESPONSE";function Ay(e){if(e.startsWith(`${z8}:${by}:{`))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 vy(e){if(e.startsWith(`${z8}:${Cy}:{`))try{let n=JSON.parse(e.slice(40));if(typeof n=="object"&&n&&typeof n.status=="number"&&typeof n.statusText=="string")return new uy(n.status,n.statusText,n.data)}catch{}}function By(e,{relative:n}={}){Rt(Di(),"useHref() may be used only in the context of a <Router> component.");let{basename:a,navigator:i}=D.useContext(ir),{hash:s,pathname:c,search:x}=Xs(e,{relative:n}),u=c;return a!=="/"&&(u=c==="/"?a:Fr([a,c])),i.createHref({pathname:u,search:x,hash:s})}function Di(){return D.useContext(Ks)!=null}function Cr(){return Rt(Di(),"useLocation() may be used only in the context of a <Router> component."),D.useContext(Ks).location}function ky(e){Rt(Di(),"useMatch() may be used only in the context of a <Router> component.");let{pathname:n}=Cr();return D.useMemo(()=>Is(e,N8(n)),[n,e])}var L8="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function P8(e){D.useContext(ir).static||D.useLayoutEffect(e)}function Fi(){let{isDataRoute:e}=D.useContext(br);return e?Iy():Dy()}function Dy(){Rt(Di(),"useNavigate() may be used only in the context of a <Router> component.");let e=D.useContext(vl),{basename:n,navigator:a}=D.useContext(ir),{matches:i}=D.useContext(br),{pathname:s}=Cr(),c=JSON.stringify(wd(i)),x=D.useRef(!1);return P8(()=>{x.current=!0}),D.useCallback((d,f={})=>{if(Er(x.current,L8),!x.current)return;if(typeof d=="number"){a.go(d);return}let E=X0(d,JSON.parse(c),s,f.relative==="path");e==null&&n!=="/"&&(E.pathname=E.pathname==="/"?n:Fr([n,E.pathname])),(f.replace?a.replace:a.push)(E,f.state,f)},[n,a,c,s,e])}var Fy=D.createContext(null);function wy(e){let n=D.useContext(br).outlet;return D.useMemo(()=>n&&D.createElement(Fy.Provider,{value:e},n),[n,e])}function Sy(){let{matches:e}=D.useContext(br);return e[e.length-1]?.params??{}}function Xs(e,{relative:n}={}){let{matches:a}=D.useContext(br),{pathname:i}=Cr(),s=JSON.stringify(wd(a));return D.useMemo(()=>X0(e,JSON.parse(s),i,n==="path"),[e,s,i,n])}function Ny(e,n){return U8(e,n)}function U8(e,n,a){Rt(Di(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:i}=D.useContext(ir),{matches:s}=D.useContext(br),c=s[s.length-1],x=c?c.params:{},u=c?c.pathname:"/",d=c?c.pathnameBase:"/",f=c&&c.route;{let B=f&&f.path||"";H8(u,!f||B.endsWith("*")||B.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${u}" (under <Route path="${B}">) 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="${B}"> to <Route path="${B==="/"?"*":`${B}/*`}">.`)}let E=Cr(),p;if(n){let B=typeof n=="string"?Al(n):n;Rt(d==="/"||B.pathname?.startsWith(d),`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 "${d}" but pathname "${B.pathname}" was given in the \`location\` prop.`),p=B}else p=E;let y=p.pathname||"/",b=y;if(d!=="/"){let B=d.replace(/^\//,"").split("/");b="/"+y.replace(/^\//,"").split("/").slice(B.length).join("/")}let C=a&&a.state.matches.length?a.state.matches.map(B=>Object.assign(B,{route:a.manifest[B.route.id]||B.route})):k8(e,{pathname:b});Er(f||C!=null,`No routes matched location "${p.pathname}${p.search}${p.hash}" `),Er(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 A=Ry(C&&C.map(B=>Object.assign({},B,{params:Object.assign({},x,B.params),pathname:Fr([d,i.encodeLocation?i.encodeLocation(B.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:B.pathname]),pathnameBase:B.pathnameBase==="/"?d:Fr([d,i.encodeLocation?i.encodeLocation(B.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:B.pathnameBase])})),s,a);return n&&A?D.createElement(Ks.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",mask:void 0,...p},navigationType:"POP"}},A):A}function _y(){let e=Uy(),n=dy(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),a=e instanceof Error?e.stack:null,i="rgba(200,200,200, 0.5)",s={padding:"0.5rem",backgroundColor:i},c={padding:"2px 4px",backgroundColor:i},x=null;return console.error("Error handled by React Router default ErrorBoundary:",e),x=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:c},"ErrorBoundary")," or"," ",D.createElement("code",{style:c},"errorElement")," prop on your route.")),D.createElement(D.Fragment,null,D.createElement("h2",null,"Unexpected Application Error!"),D.createElement("h3",{style:{fontStyle:"italic"}},n),a?D.createElement("pre",{style:s},a):null,x)}var My=D.createElement(_y,null),I8=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 a=vy(e.digest);a&&(e=a)}let n=e!==void 0?D.createElement(br.Provider,{value:this.props.routeContext},D.createElement(Sd.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?D.createElement(Ty,{error:e},n):n}};I8.contextType=R8;var hu=new WeakMap;function Ty({children:e,error:n}){let{basename:a}=D.useContext(ir);if(typeof n=="object"&&n&&"digest"in n&&typeof n.digest=="string"){let i=Ay(n.digest);if(i){let s=hu.get(n);if(s)throw s;let c=T8(i.location,a),x=c.absoluteURL||c.to;if(my(x))throw new Error("Invalid redirect location");if(M8&&!hu.get(n))if(c.isExternal||i.reloadDocument)window.location.href=x;else{const u=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(c.to,{replace:i.replace}));throw hu.set(n,u),u}return D.createElement("meta",{httpEquiv:"refresh",content:`0;url=${x}`})}}return e}function jy({routeContext:e,match:n,children:a}){let i=D.useContext(vl);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),D.createElement(br.Provider,{value:e},a)}function Ry(e,n=[],a){let i=a?.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 s=e,c=i?.errors;if(c!=null){let E=s.findIndex(p=>p.route.id&&c?.[p.route.id]!==void 0);Rt(E>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(c).join(",")}`),s=s.slice(0,Math.min(s.length,E+1))}let x=!1,u=-1;if(a&&i){x=i.renderFallback;for(let E=0;E<s.length;E++){let p=s[E];if((p.route.HydrateFallback||p.route.hydrateFallbackElement)&&(u=E),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){a.isStatic&&(x=!0),u>=0?s=s.slice(0,u+1):s=[s[0]];break}}}}let d=a?.onError,f=i&&d?(E,p)=>{d(E,{location:i.location,params:i.matches?.[0]?.params??{},pattern:fy(i.matches),errorInfo:p})}:void 0;return s.reduceRight((E,p,y)=>{let b,C=!1,A=null,B=null;i&&(b=c&&p.route.id?c[p.route.id]:void 0,A=p.route.errorElement||My,x&&(u<0&&y===0?(H8("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),C=!0,B=null):u===y&&(C=!0,B=p.route.hydrateFallbackElement||null)));let k=n.concat(s.slice(0,y+1)),j=()=>{let F;return b?F=A:C?F=B:p.route.Component?F=D.createElement(p.route.Component,null):p.route.element?F=p.route.element:F=E,D.createElement(jy,{match:p,routeContext:{outlet:E,matches:k,isDataRoute:i!=null},children:F})};return i&&(p.route.ErrorBoundary||p.route.errorElement||y===0)?D.createElement(I8,{location:i.location,revalidation:i.revalidation,component:A,error:b,children:j(),routeContext:{outlet:null,matches:k,isDataRoute:!0},onError:f}):j()},null)}function Nd(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Oy(e){let n=D.useContext(vl);return Rt(n,Nd(e)),n}function zy(e){let n=D.useContext(Z0);return Rt(n,Nd(e)),n}function Ly(e){let n=D.useContext(br);return Rt(n,Nd(e)),n}function _d(e){let n=Ly(e),a=n.matches[n.matches.length-1];return Rt(a.route.id,`${e} can only be used on routes that contain a unique "id"`),a.route.id}function Py(){return _d("useRouteId")}function Uy(){let e=D.useContext(Sd),n=zy("useRouteError"),a=_d("useRouteError");return e!==void 0?e:n.errors?.[a]}function Iy(){let{router:e}=Oy("useNavigate"),n=_d("useNavigate"),a=D.useRef(!1);return P8(()=>{a.current=!0}),D.useCallback(async(s,c={})=>{Er(a.current,L8),a.current&&(typeof s=="number"?await e.navigate(s):await e.navigate(s,{fromRouteId:n,...c}))},[e,n])}var Am={};function H8(e,n,a){!n&&!Am[e]&&(Am[e]=!0,Er(!1,a))}D.memo(Hy);function Hy({routes:e,manifest:n,future:a,state:i,isStatic:s,onError:c}){return U8(e,void 0,{manifest:n,state:i,isStatic:s,onError:c})}function qy({to:e,replace:n,state:a,relative:i}){Rt(Di(),"<Navigate> may be used only in the context of a <Router> component.");let{static:s}=D.useContext(ir);Er(!s,"<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:c}=D.useContext(br),{pathname:x}=Cr(),u=Fi(),d=X0(e,wd(c),x,i==="path"),f=JSON.stringify(d);return D.useEffect(()=>{u(JSON.parse(f),{replace:n,state:a,relative:i})},[u,f,i,n,a]),null}function $y(e){return wy(e.context)}function Ms(e){Rt(!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 Gy({basename:e="/",children:n=null,location:a,navigationType:i="POP",navigator:s,static:c=!1,useTransitions:x}){Rt(!Di(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let u=e.replace(/^\/*/,"/"),d=D.useMemo(()=>({basename:u,navigator:s,static:c,useTransitions:x,future:{}}),[u,s,c,x]);typeof a=="string"&&(a=Al(a));let{pathname:f="/",search:E="",hash:p="",state:y=null,key:b="default",mask:C}=a,A=D.useMemo(()=>{let B=ca(f,u);return B==null?null:{location:{pathname:B,search:E,hash:p,state:y,key:b,mask:C},navigationType:i}},[u,f,E,p,y,b,i,C]);return Er(A!=null,`<Router basename="${u}"> is not able to match the URL "${f}${E}${p}" because it does not start with the basename, so the <Router> won't render anything.`),A==null?null:D.createElement(ir.Provider,{value:d},D.createElement(Ks.Provider,{children:n,value:A}))}function Vy({children:e,location:n}){return Ny(Zu(e),n)}function Zu(e,n=[]){let a=[];return D.Children.forEach(e,(i,s)=>{if(!D.isValidElement(i))return;let c=[...n,s];if(i.type===D.Fragment){a.push.apply(a,Zu(i.props.children,c));return}Rt(i.type===Ms,`[${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>`),Rt(!i.props.index||!i.props.children,"An index route cannot have child routes.");let x={id:i.props.id||c.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&&(x.children=Zu(i.props.children,c)),a.push(x)}),a}var T0="get",j0="application/x-www-form-urlencoded";function W0(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}function Qy(e){return W0(e)&&e.tagName.toLowerCase()==="button"}function Yy(e){return W0(e)&&e.tagName.toLowerCase()==="form"}function Ky(e){return W0(e)&&e.tagName.toLowerCase()==="input"}function Xy(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Zy(e,n){return e.button===0&&(!n||n==="_self")&&!Xy(e)}function Wu(e=""){return new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((n,a)=>{let i=e[a];return n.concat(Array.isArray(i)?i.map(s=>[a,s]):[[a,i]])},[]))}function Wy(e,n){let a=Wu(e);return n&&n.forEach((i,s)=>{a.has(s)||n.getAll(s).forEach(c=>{a.append(s,c)})}),a}var b0=null;function Jy(){if(b0===null)try{new FormData(document.createElement("form"),0),b0=!1}catch{b0=!0}return b0}var e7=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function pu(e){return e!=null&&!e7.has(e)?(Er(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${j0}"`),null):e}function t7(e,n){let a,i,s,c,x;if(Yy(e)){let u=e.getAttribute("action");i=u?ca(u,n):null,a=e.getAttribute("method")||T0,s=pu(e.getAttribute("enctype"))||j0,c=new FormData(e)}else if(Qy(e)||Ky(e)&&(e.type==="submit"||e.type==="image")){let u=e.form;if(u==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let d=e.getAttribute("formaction")||u.getAttribute("action");if(i=d?ca(d,n):null,a=e.getAttribute("formmethod")||u.getAttribute("method")||T0,s=pu(e.getAttribute("formenctype"))||pu(u.getAttribute("enctype"))||j0,c=new FormData(u,e),!Jy()){let{name:f,type:E,value:p}=e;if(E==="image"){let y=f?`${f}.`:"";c.append(`${y}x`,"0"),c.append(`${y}y`,"0")}else f&&c.append(f,p)}}else{if(W0(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');a=T0,i=null,s=j0,x=e}return c&&s==="text/plain"&&(x=c,c=void 0),{action:i,method:a.toLowerCase(),encType:s,formData:c,body:x}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Md(e,n){if(e===!1||e===null||typeof e>"u")throw new Error(n)}function q8(e,n,a,i){let s=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return a?s.pathname.endsWith("/")?s.pathname=`${s.pathname}_.${i}`:s.pathname=`${s.pathname}.${i}`:s.pathname==="/"?s.pathname=`_root.${i}`:n&&ca(s.pathname,n)==="/"?s.pathname=`${P0(n)}/_root.${i}`:s.pathname=`${P0(s.pathname)}.${i}`,s}async function n7(e,n){if(e.id in n)return n[e.id];try{let a=await import(e.module);return n[e.id]=a,a}catch(a){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(a),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function r7(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 a7(e,n,a){let i=await Promise.all(e.map(async s=>{let c=n.routes[s.route.id];if(c){let x=await n7(c,a);return x.links?x.links():[]}return[]}));return o7(i.flat(1).filter(r7).filter(s=>s.rel==="stylesheet"||s.rel==="preload").map(s=>s.rel==="stylesheet"?{...s,rel:"prefetch",as:"style"}:{...s,rel:"prefetch"}))}function vm(e,n,a,i,s,c){let x=(d,f)=>a[f]?d.route.id!==a[f].route.id:!0,u=(d,f)=>a[f].pathname!==d.pathname||a[f].route.path?.endsWith("*")&&a[f].params["*"]!==d.params["*"];return c==="assets"?n.filter((d,f)=>x(d,f)||u(d,f)):c==="data"?n.filter((d,f)=>{let E=i.routes[d.route.id];if(!E||!E.hasLoader)return!1;if(x(d,f)||u(d,f))return!0;if(d.route.shouldRevalidate){let p=d.route.shouldRevalidate({currentUrl:new URL(s.pathname+s.search+s.hash,window.origin),currentParams:a[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:d.params,defaultShouldRevalidate:!0});if(typeof p=="boolean")return p}return!0}):[]}function i7(e,n,{includeHydrateFallback:a}={}){return l7(e.map(i=>{let s=n.routes[i.route.id];if(!s)return[];let c=[s.module];return s.clientActionModule&&(c=c.concat(s.clientActionModule)),s.clientLoaderModule&&(c=c.concat(s.clientLoaderModule)),a&&s.hydrateFallbackModule&&(c=c.concat(s.hydrateFallbackModule)),s.imports&&(c=c.concat(s.imports)),c}).flat(1))}function l7(e){return[...new Set(e)]}function s7(e){let n={},a=Object.keys(e).sort();for(let i of a)n[i]=e[i];return n}function o7(e,n){let a=new Set;return new Set(n),e.reduce((i,s)=>{let c=JSON.stringify(s7(s));return a.has(c)||(a.add(c),i.push({key:c,link:s})),i},[])}function Td(){let e=D.useContext(vl);return Md(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function c7(){let e=D.useContext(Z0);return Md(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var jd=D.createContext(void 0);jd.displayName="FrameworkContext";function J0(){let e=D.useContext(jd);return Md(e,"You must render this element inside a <HydratedRouter> element"),e}function x7(e,n){let a=D.useContext(jd),[i,s]=D.useState(!1),[c,x]=D.useState(!1),{onFocus:u,onBlur:d,onMouseEnter:f,onMouseLeave:E,onTouchStart:p}=n,y=D.useRef(null);D.useEffect(()=>{if(e==="render"&&x(!0),e==="viewport"){let A=k=>{k.forEach(j=>{x(j.isIntersecting)})},B=new IntersectionObserver(A,{threshold:.5});return y.current&&B.observe(y.current),()=>{B.disconnect()}}},[e]),D.useEffect(()=>{if(i){let A=setTimeout(()=>{x(!0)},100);return()=>{clearTimeout(A)}}},[i]);let b=()=>{s(!0)},C=()=>{s(!1),x(!1)};return a?e!=="intent"?[c,y,{}]:[c,y,{onFocus:As(u,b),onBlur:As(d,C),onMouseEnter:As(f,b),onMouseLeave:As(E,C),onTouchStart:As(p,b)}]:[!1,y,{}]}function As(e,n){return a=>{e&&e(a),a.defaultPrevented||n(a)}}function u7({page:e,...n}){let a=Ey(),{nonce:i}=J0(),{router:s}=Td(),c=D.useMemo(()=>k8(s.routes,e,s.basename),[s.routes,e,s.basename]);return c?(n.nonce==null&&i&&(n={...n,nonce:i}),a?D.createElement(f7,{page:e,matches:c,...n}):D.createElement(h7,{page:e,matches:c,...n})):null}function d7(e){let{manifest:n,routeModules:a}=J0(),[i,s]=D.useState([]);return D.useEffect(()=>{let c=!1;return a7(e,n,a).then(x=>{c||s(x)}),()=>{c=!0}},[e,n,a]),i}function f7({page:e,matches:n,...a}){let i=Cr(),{future:s}=J0(),{basename:c}=Td(),x=D.useMemo(()=>{if(e===i.pathname+i.search+i.hash)return[];let u=q8(e,c,s.v8_trailingSlashAwareDataRequests,"rsc"),d=!1,f=[];for(let E of n)typeof E.route.shouldRevalidate=="function"?d=!0:f.push(E.route.id);return d&&f.length>0&&u.searchParams.set("_routes",f.join(",")),[u.pathname+u.search]},[c,s.v8_trailingSlashAwareDataRequests,e,i,n]);return D.createElement(D.Fragment,null,x.map(u=>D.createElement("link",{key:u,rel:"prefetch",as:"fetch",href:u,...a})))}function h7({page:e,matches:n,...a}){let i=Cr(),{future:s,manifest:c,routeModules:x}=J0(),{basename:u}=Td(),{loaderData:d,matches:f}=c7(),E=D.useMemo(()=>vm(e,n,f,c,i,"data"),[e,n,f,c,i]),p=D.useMemo(()=>vm(e,n,f,c,i,"assets"),[e,n,f,c,i]),y=D.useMemo(()=>{if(e===i.pathname+i.search+i.hash)return[];let A=new Set,B=!1;if(n.forEach(j=>{let F=c.routes[j.route.id];!F||!F.hasLoader||(!E.some(_=>_.route.id===j.route.id)&&j.route.id in d&&x[j.route.id]?.shouldRevalidate||F.hasClientLoader?B=!0:A.add(j.route.id))}),A.size===0)return[];let k=q8(e,u,s.v8_trailingSlashAwareDataRequests,"data");return B&&A.size>0&&k.searchParams.set("_routes",n.filter(j=>A.has(j.route.id)).map(j=>j.route.id).join(",")),[k.pathname+k.search]},[u,s.v8_trailingSlashAwareDataRequests,d,i,c,E,n,e,x]),b=D.useMemo(()=>i7(p,c),[p,c]),C=d7(p);return D.createElement(D.Fragment,null,y.map(A=>D.createElement("link",{key:A,rel:"prefetch",as:"fetch",href:A,...a})),b.map(A=>D.createElement("link",{key:A,rel:"modulepreload",href:A,...a})),C.map(({key:A,link:B})=>D.createElement("link",{key:A,nonce:a.nonce,...B,crossOrigin:B.crossOrigin??a.crossOrigin})))}function p7(...e){return n=>{e.forEach(a=>{typeof a=="function"?a(n):a!=null&&(a.current=n)})}}var m7=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{m7&&(window.__reactRouterVersion="7.18.1")}catch{}function E7({basename:e,children:n,useTransitions:a,window:i}){let s=D.useRef();s.current==null&&(s.current=$4({window:i,v5Compat:!0}));let c=s.current,[x,u]=D.useState({action:c.action,location:c.location}),d=D.useCallback(f=>{a===!1?u(f):D.startTransition(()=>u(f))},[a]);return D.useLayoutEffect(()=>c.listen(d),[c,d]),D.createElement(Gy,{basename:e,children:n,location:x.location,navigationType:x.action,navigator:c,useTransitions:a})}var $8=D.forwardRef(function({onClick:n,discover:a="render",prefetch:i="none",relative:s,reloadDocument:c,replace:x,mask:u,state:d,target:f,to:E,preventScrollReset:p,viewTransition:y,defaultShouldRevalidate:b,...C},A){let{basename:B,navigator:k,useTransitions:j}=D.useContext(ir),F=typeof E=="string"&&Fd.test(E),_=T8(E,B);E=_.to;let R=By(E,{relative:s}),S=Cr(),O=null;if(u){let Y=X0(u,[],S.mask?S.mask.pathname:"/",!0);B!=="/"&&(Y.pathname=Y.pathname==="/"?B:Fr([B,Y.pathname])),O=k.createHref(Y)}let[z,G,L]=x7(i,C),X=C7(E,{replace:x,mask:u,state:d,target:f,preventScrollReset:p,relative:s,viewTransition:y,defaultShouldRevalidate:b,useTransitions:j});function Q(Y){n&&n(Y),Y.defaultPrevented||X(Y)}let ie=!(_.isExternal||c),Z=D.createElement("a",{...C,...L,href:(ie?O:void 0)||_.absoluteURL||R,onClick:ie?Q:n,ref:p7(A,G),target:f,"data-discover":!F&&a==="render"?"true":void 0});return z&&!F?D.createElement(D.Fragment,null,Z,D.createElement(u7,{page:R})):Z});$8.displayName="Link";var g7=D.forwardRef(function({"aria-current":n="page",caseSensitive:a=!1,className:i="",end:s=!1,style:c,to:x,viewTransition:u,children:d,...f},E){let p=Xs(x,{relative:f.relative}),y=Cr(),b=D.useContext(Z0),{navigator:C,basename:A}=D.useContext(ir),B=b!=null&&D7(p)&&u===!0,k=C.encodeLocation?C.encodeLocation(p).pathname:p.pathname,j=y.pathname,F=b&&b.navigation&&b.navigation.location?b.navigation.location.pathname:null;a||(j=j.toLowerCase(),F=F?F.toLowerCase():null,k=k.toLowerCase()),F&&A&&(F=ca(F,A)||F);const _=k!=="/"&&k.endsWith("/")?k.length-1:k.length;let R=j===k||!s&&j.startsWith(k)&&j.charAt(_)==="/",S=F!=null&&(F===k||!s&&F.startsWith(k)&&F.charAt(k.length)==="/"),O={isActive:R,isPending:S,isTransitioning:B},z=R?n:void 0,G;typeof i=="function"?G=i(O):G=[i,R?"active":null,S?"pending":null,B?"transitioning":null].filter(Boolean).join(" ");let L=typeof c=="function"?c(O):c;return D.createElement($8,{...f,"aria-current":z,className:G,ref:E,style:L,to:x,viewTransition:u},typeof d=="function"?d(O):d)});g7.displayName="NavLink";var y7=D.forwardRef(({discover:e="render",fetcherKey:n,navigate:a,reloadDocument:i,replace:s,state:c,method:x=T0,action:u,onSubmit:d,relative:f,preventScrollReset:E,viewTransition:p,defaultShouldRevalidate:y,...b},C)=>{let{useTransitions:A}=D.useContext(ir),B=B7(),k=k7(u,{relative:f}),j=x.toLowerCase()==="get"?"get":"post",F=typeof u=="string"&&Fd.test(u),_=R=>{if(d&&d(R),R.defaultPrevented)return;R.preventDefault();let S=R.nativeEvent.submitter,O=S?.getAttribute("formmethod")||x,z=()=>B(S||R.currentTarget,{fetcherKey:n,method:O,navigate:a,replace:s,state:c,relative:f,preventScrollReset:E,viewTransition:p,defaultShouldRevalidate:y});A&&a!==!1?D.startTransition(()=>z()):z()};return D.createElement("form",{ref:C,method:j,action:k,onSubmit:i?d:_,...b,"data-discover":!F&&e==="render"?"true":void 0})});y7.displayName="Form";function b7(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function G8(e){let n=D.useContext(vl);return Rt(n,b7(e)),n}function C7(e,{target:n,replace:a,mask:i,state:s,preventScrollReset:c,relative:x,viewTransition:u,defaultShouldRevalidate:d,useTransitions:f}={}){let E=Fi(),p=Cr(),y=Xs(e,{relative:x});return D.useCallback(b=>{if(Zy(b,n)){b.preventDefault();let C=a!==void 0?a:Us(p)===Us(y),A=()=>E(e,{replace:C,mask:i,state:s,preventScrollReset:c,relative:x,viewTransition:u,defaultShouldRevalidate:d});f?D.startTransition(()=>A()):A()}},[p,E,y,a,i,s,n,e,c,x,u,d,f])}function V8(e){Er(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(Wu(e)),a=D.useRef(!1),i=Cr(),s=D.useMemo(()=>Wy(i.search,a.current?null:n.current),[i.search]),c=Fi(),x=D.useCallback((u,d)=>{const f=Wu(typeof u=="function"?u(new URLSearchParams(s)):u);a.current=!0,c("?"+f,d)},[c,s]);return[s,x]}var A7=0,v7=()=>`__${String(++A7)}__`;function B7(){let{router:e}=G8("useSubmit"),{basename:n}=D.useContext(ir),a=Py(),i=e.fetch,s=e.navigate;return D.useCallback(async(c,x={})=>{let{action:u,method:d,encType:f,formData:E,body:p}=t7(c,n);if(x.navigate===!1){let y=x.fetcherKey||v7();await i(y,a,x.action||u,{defaultShouldRevalidate:x.defaultShouldRevalidate,preventScrollReset:x.preventScrollReset,formData:E,body:p,formMethod:x.method||d,formEncType:x.encType||f,flushSync:x.flushSync})}else await s(x.action||u,{defaultShouldRevalidate:x.defaultShouldRevalidate,preventScrollReset:x.preventScrollReset,formData:E,body:p,formMethod:x.method||d,formEncType:x.encType||f,replace:x.replace,state:x.state,fromRouteId:a,flushSync:x.flushSync,viewTransition:x.viewTransition})},[i,s,n,a])}function k7(e,{relative:n}={}){let{basename:a}=D.useContext(ir),i=D.useContext(br);Rt(i,"useFormAction must be used inside a RouteContext");let[s]=i.matches.slice(-1),c={...Xs(e||".",{relative:n})},x=Cr();if(e==null){c.search=x.search;let u=new URLSearchParams(c.search),d=u.getAll("index");if(d.some(E=>E==="")){u.delete("index"),d.filter(p=>p).forEach(p=>u.append("index",p));let E=u.toString();c.search=E?`?${E}`:""}}return(!e||e===".")&&s.route.index&&(c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index"),a!=="/"&&(c.pathname=c.pathname==="/"?a:Fr([a,c.pathname])),Us(c)}function D7(e,{relative:n}={}){let a=D.useContext(O8);Rt(a!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:i}=G8("useViewTransitionState"),s=Xs(e,{relative:n});if(!a.isTransitioning)return!1;let c=ca(a.currentLocation.pathname,i)||a.currentLocation.pathname,x=ca(a.nextLocation.pathname,i)||a.nextLocation.pathname;return Is(s.pathname,x)!=null||Is(s.pathname,c)!=null}const F7="modulepreload",w7=function(e){return"/"+e},Bm={},S7=function(n,a,i){let s=Promise.resolve();if(a&&a.length>0){let f=function(E){return Promise.all(E.map(p=>Promise.resolve(p).then(y=>({status:"fulfilled",value:y}),y=>({status:"rejected",reason:y}))))};var x=f;document.getElementsByTagName("link");const u=document.querySelector("meta[property=csp-nonce]"),d=u?.nonce||u?.getAttribute("nonce");s=f(a.map(E=>{if(E=w7(E),E in Bm)return;Bm[E]=!0;const p=E.endsWith(".css"),y=p?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${E}"]${y}`))return;const b=document.createElement("link");if(b.rel=p?"stylesheet":F7,p||(b.as="script"),b.crossOrigin="",b.href=E,d&&b.setAttribute("nonce",d),document.head.appendChild(b),p)return new Promise((C,A)=>{b.addEventListener("load",C),b.addEventListener("error",()=>A(new Error(`Unable to preload CSS for ${E}`)))})}))}function c(u){const d=new Event("vite:preloadError",{cancelable:!0});if(d.payload=u,window.dispatchEvent(d),!d.defaultPrevented)throw u}return s.then(u=>{for(const d of u||[])d.status==="rejected"&&c(d.reason);return n().catch(c)})};function N7(e={}){const{immediate:n=!1,onNeedReload:a,onNeedRefresh:i,onOfflineReady:s,onRegistered:c,onRegisteredSW:x,onRegisterError:u}=e;let d,f,E;const p=async(b=!0)=>{await f,E?.()};async function y(){if("serviceWorker"in navigator){if(d=await S7(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=>{u?.(b)}),!d)return;E=()=>{d?.messageSkipWaiting()};{let b=!1;const C=()=>{b=!0,d?.addEventListener("controlling",A=>{A.isUpdate&&(a?a():window.location.reload())}),i?.()};d.addEventListener("installed",A=>{typeof A.isUpdate>"u"?typeof A.isExternal<"u"&&A.isExternal?C():!b&&s?.():A.isUpdate||s?.()}),d.addEventListener("waiting",C)}d.register({immediate:n}).then(b=>{x?x("/sw.js",b):c?.(b)}).catch(b=>{u?.(b)})}}return f=y(),p}function _7(e={}){const{immediate:n=!0,onNeedReload:a,onNeedRefresh:i,onOfflineReady:s,onRegistered:c,onRegisteredSW:x,onRegisterError:u}=e,[d,f]=D.useState(!1),[E,p]=D.useState(!1),[y]=D.useState(()=>N7({immediate:n,onNeedReload:a,onOfflineReady(){p(!0),s?.()},onNeedRefresh(){f(!0),i?.()},onRegistered:c,onRegisteredSW:x,onRegisterError:u}));return{needRefresh:[d,f],offlineReady:[E,p],updateServiceWorker:y}}const Q8=(...e)=>e.filter((n,a,i)=>!!n&&n.trim()!==""&&i.indexOf(n)===a).join(" ").trim();const M7=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const T7=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(n,a,i)=>i?i.toUpperCase():a.toLowerCase());const km=e=>{const n=T7(e);return n.charAt(0).toUpperCase()+n.slice(1)};var j7={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 R7=e=>{for(const n in e)if(n.startsWith("aria-")||n==="role"||n==="title")return!0;return!1};const O7=D.forwardRef(({color:e="currentColor",size:n=24,strokeWidth:a=2,absoluteStrokeWidth:i,className:s="",children:c,iconNode:x,...u},d)=>D.createElement("svg",{ref:d,...j7,width:n,height:n,stroke:e,strokeWidth:i?Number(a)*24/Number(n):a,className:Q8("lucide",s),...!c&&!R7(u)&&{"aria-hidden":"true"},...u},[...x.map(([f,E])=>D.createElement(f,E)),...Array.isArray(c)?c:[c]]));const $=(e,n)=>{const a=D.forwardRef(({className:i,...s},c)=>D.createElement(O7,{ref:c,iconNode:n,className:Q8(`lucide-${M7(km(e))}`,`lucide-${e}`,i),...s}));return a.displayName=km(e),a};const z7=[["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"}]],L7=$("activity",z7);const P7=[["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"}]],U7=$("anchor",P7);const I7=[["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"}]],H7=$("apple",I7);const q7=[["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"}]],$7=$("archive-x",q7);const G7=[["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"}]],Rd=$("archive",G7);const V7=[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]],Q7=$("arrow-up-right",V7);const Y7=[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]],K7=$("arrow-up",Y7);const X7=[["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"}]],Z7=$("atom",X7);const W7=[["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"}]],J7=$("award",W7);const e3=[["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"}]],t3=$("banknote",e3);const n3=[["path",{d:"M 22 14 L 22 10",key:"nqc4tb"}],["rect",{x:"2",y:"6",width:"16",height:"12",rx:"2",key:"13zb55"}]],r3=$("battery",n3);const a3=[["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"}]],i3=$("beer",a3);const l3=[["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=$("bell",l3);const s3=[["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"}]],o3=$("bike",s3);const c3=[["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"}]],x3=$("bird",c3);const u3=[["path",{d:"m7 7 10 10-5 5V2l5 5L7 17",key:"1q5490"}]],d3=$("bluetooth",u3);const f3=[["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"}]],h3=$("book-open",f3);const p3=[["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"}]],m3=$("book",p3);const E3=[["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"}]],g3=$("bookmark",E3);const y3=[["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"}]],K8=$("bot",y3);const b3=[["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"}]],C3=$("box",b3);const A3=[["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"}]],v3=$("brain",A3);const B3=[["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"}]],k3=$("briefcase",B3);const D3=[["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"}]],F3=$("brush",D3);const w3=[["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"}]],S3=$("bug-play",w3);const N3=[["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"}]],_3=$("bug",N3);const M3=[["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"}]],T3=$("building-2",M3);const j3=[["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"}]],R3=$("building",j3);const O3=[["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"}]],z3=$("cake",O3);const L3=[["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"}]],P3=$("calendar",L3);const U3=[["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"}]],I3=$("camera",U3);const H3=[["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"}]],q3=$("car",H3);const $3=[["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"}]],G3=$("carrot",$3);const V3=[["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"}]],Q3=$("cat",V3);const Y3=[["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"}]],K3=$("chart-bar",Y3);const X3=[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"m19 9-5 5-4-4-3 3",key:"2osh9i"}]],Z3=$("chart-line",X3);const W3=[["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"}]],J3=$("chart-pie",W3);const eb=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],xa=$("check",eb);const tb=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],da=$("chevron-down",tb);const nb=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],rb=$("chevron-left",nb);const ab=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],ib=$("chevron-right",ab);const lb=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],sb=$("chevron-up",lb);const ob=[["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"}]],cb=$("circle-x",ob);const xb=[["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"}]],ub=$("clapperboard",xb);const db=[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],fb=$("clock",db);const hb=[["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"}]],pb=$("cloud-off",hb);const mb=[["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"}]],Eb=$("cloud-upload",mb);const gb=[["path",{d:"M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z",key:"p7xjir"}]],yb=$("cloud",gb);const bb=[["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"}]],Cb=$("code-xml",bb);const Ab=[["path",{d:"m16 18 6-6-6-6",key:"eg8j8"}],["path",{d:"m8 6-6 6 6 6",key:"ppft3o"}]],vb=$("code",Ab);const Bb=[["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"}]],kb=$("coffee",Bb);const Db=[["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"}]],Fb=$("cog",Db);const wb=[["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"}]],Sb=$("compass",wb);const Nb=[["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"}]],Od=$("copy",Nb);const _b=[["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"}]],Mb=$("cpu",_b);const Tb=[["rect",{width:"20",height:"14",x:"2",y:"5",rx:"2",key:"ynyp8z"}],["line",{x1:"2",x2:"22",y1:"10",y2:"10",key:"1b3vmo"}]],jb=$("credit-card",Tb);const Rb=[["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"}]],Ob=$("crown",Rb);const zb=[["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"}]],Lb=$("database",zb);const Pb=[["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"}]],Ub=$("dna",Pb);const Ib=[["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"}]],Hb=$("dog",Ib);const qb=[["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"}]],$b=$("dollar-sign",qb);const Gb=[["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"}]],Vb=$("dumbbell",Gb);const Qb=[["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"}]],Yb=$("earth",Qb);const Kb=[["path",{d:"M12 2C8 2 4 8 4 14a8 8 0 0 0 16 0c0-6-4-12-8-12",key:"1le142"}]],Xb=$("egg",Kb);const Zb=[["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"}]],Wb=$("external-link",Zb);const Jb=[["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"}]],eC=$("factory",Jb);const tC=[["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"}]],nC=$("feather",tC);const rC=[["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"}]],aC=$("file-code",rC);const iC=[["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"}]],X8=$("file-diff",iC);const lC=[["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"}]],sC=$("file",lC);const oC=[["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"}]],cC=$("film",oC);const xC=[["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"}]],uC=$("fish",xC);const dC=[["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"}]],fC=$("flag",dC);const hC=[["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"}]],pC=$("flame",hC);const mC=[["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"}]],EC=$("flask-conical",mC);const gC=[["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"}]],yC=$("folder",gC);const bC=[["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"}]],CC=$("funnel",bC);const AC=[["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"}]],vC=$("gamepad-2",AC);const BC=[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]],kC=$("gauge",BC);const DC=[["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"}]],FC=$("gem",DC);const wC=[["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"}]],SC=$("gift",wC);const NC=[["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"}]],_C=$("git-branch-plus",NC);const MC=[["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"}]],TC=$("git-branch",MC);const jC=[["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"}]],Z8=$("git-fork",jC);const RC=[["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"}]],W8=$("git-merge",RC);const OC=[["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"}]],zC=$("github",OC);const LC=[["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"}]],PC=$("glasses",LC);const UC=[["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"}]],IC=$("globe",UC);const HC=[["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"}]],qC=$("graduation-cap",HC);const $C=[["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"}]],GC=$("grid-3x3",$C);const VC=[["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"}]],QC=$("hammer",VC);const YC=[["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"}]],KC=$("headphones",YC);const XC=[["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"}]],ZC=$("heart-pulse",XC);const WC=[["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"}]],JC=$("heart",WC);const eA=[["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"}]],J8=$("hourglass",eA);const tA=[["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"}]],nA=$("house",tA);const rA=[["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"}]],aA=$("image",rA);const iA=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],lA=$("info",iA);const sA=[["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"}]],oA=$("key",sA);const cA=[["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"}]],xA=$("laptop",cA);const uA=[["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"}]],dA=$("layers",uA);const fA=[["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"}]],hA=$("layout-grid",fA);const pA=[["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"}]],mA=$("leaf",pA);const EA=[["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"}]],gA=$("lightbulb",EA);const yA=[["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"}]],bA=$("link",yA);const CA=[["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"}]],e2=$("list",CA);const AA=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],ar=$("loader-circle",AA);const vA=[["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"}]],BA=$("lock",vA);const kA=[["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"}]],DA=$("log-out",kA);const FA=[["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"}]],wA=$("mail",FA);const SA=[["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"}]],NA=$("map-pin",SA);const _A=[["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"}]],t2=$("map",_A);const MA=[["path",{d:"M8 22h8",key:"rmew8v"}],["path",{d:"M12 11v11",key:"ur9y6a"}],["path",{d:"m19 3-7 8-7-8Z",key:"1sgpiw"}]],TA=$("martini",MA);const jA=[["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"}]],RA=$("medal",jA);const OA=[["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"}]],zA=$("message-circle",OA);const LA=[["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"}]],PA=$("message-square",LA);const UA=[["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"}]],IA=$("mic",UA);const HA=[["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"}]],qA=$("microscope",HA);const $A=[["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"}]],GA=$("monitor",$A);const VA=[["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"}]],QA=$("moon",VA);const YA=[["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"}]],KA=$("music",YA);const XA=[["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"}]],ZA=$("orbit",XA);const WA=[["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"}]],JA=$("package",WA);const ev=[["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"}]],tv=$("paintbrush",ev);const nv=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]],rv=$("panel-left",nv);const av=[["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"}]],ec=$("paperclip",av);const iv=[["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"}]],lv=$("paw-print",iv);const sv=[["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"}]],ov=$("pen",sv);const cv=[["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"}]],xv=$("pencil",cv);const uv=[["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"}]],dv=$("phone",uv);const fv=[["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"}]],hv=$("pill",fv);const pv=[["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"}]],mv=$("pipette",pv);const Ev=[["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"}]],gv=$("pizza",Ev);const yv=[["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"}]],bv=$("plane",yv);const Cv=[["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"}]],Dm=$("play",Cv);const Av=[["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"}]],vv=$("plug",Av);const Bv=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],n2=$("plus",Bv);const kv=[["path",{d:"M12 2v10",key:"mnfbl"}],["path",{d:"M18.4 6.6a9 9 0 1 1-12.77.04",key:"obofu9"}]],Dv=$("power",kv);const Fv=[["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"}]],wv=$("puzzle",Fv);const Sv=[["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"}]],r2=$("qr-code",Sv);const Nv=[["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"}]],_v=$("rabbit",Nv);const Mv=[["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"}]],Tv=$("radio",Mv);const jv=[["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"}]],Zs=$("refresh-cw",jv);const Rv=[["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"}]],Ov=$("rocket",Rv);const zv=[["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"}]],Lv=$("rotate-ccw",zv);const Pv=[["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"}]],Uv=$("salad",Pv);const Iv=[["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"}]],Hv=$("ruler",Iv);const qv=[["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"}]],$v=$("satellite",qv);const Gv=[["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"}]],Vv=$("scissors",Gv);const Qv=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],a2=$("search",Qv);const Yv=[["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"}]],Kv=$("server",Yv);const Xv=[["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"}]],Zv=$("settings",Xv);const Wv=[["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"}]],Jv=$("shell",Wv);const eB=[["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"}]],tB=$("shield",eB);const nB=[["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"}]],rB=$("ship",nB);const aB=[["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"}]],iB=$("shopping-bag",aB);const lB=[["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=$("shopping-cart",lB);const oB=[["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"}]],cB=$("sliders-horizontal",oB);const xB=[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12 18h.01",key:"mhygvu"}]],uB=$("smartphone",xB);const dB=[["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"}]],fB=$("snail",dB);const hB=[["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"}]],pB=$("snowflake",hB);const mB=[["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"}]],EB=$("soup",mB);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"}]],yB=$("sparkles",gB);const bB=[["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"}]],CB=$("sprout",bB);const AB=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]],i2=$("square",AB);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"}]],Ju=$("star",vB);const BB=[["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=$("stethoscope",BB);const DB=[["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"}]],FB=$("store",DB);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"}]],SB=$("sun-moon",wB);const NB=[["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"}]],l2=$("sun",NB);const _B=[["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"}]],MB=$("tag",_B);const TB=[["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=$("tags",TB);const RB=[["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"}]],OB=$("target",RB);const zB=[["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"}]],LB=$("telescope",zB);const PB=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],UB=$("terminal",PB);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"}]],HB=$("ticket",IB);const qB=[["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=$("train-front",qB);const GB=[["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"}]],VB=$("tree-pine",GB);const QB=[["path",{d:"M16 7h6v6",key:"box55l"}],["path",{d:"m22 7-8.5 8.5-5-5L2 17",key:"1t1m79"}]],YB=$("trending-up",QB);const KB=[["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"}]],zd=$("triangle-alert",KB);const XB=[["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"}]],ZB=$("trophy",XB);const WB=[["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"}]],JB=$("turtle",WB);const ek=[["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"}]],tk=$("user",ek);const nk=[["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"}]],rk=$("users",nk);const ak=[["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"}]],ik=$("utensils",ak);const lk=[["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"}]],sk=$("video",lk);const ok=[["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"}]],ck=$("wallet",ok);const xk=[["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"}]],Fm=$("wand-sparkles",xk);const uk=[["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"}]],dk=$("warehouse",uk);const fk=[["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"}]],hk=$("waypoints",fk);const pk=[["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"}]],mk=$("wheat",pk);const Ek=[["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"}]],Ld=$("wifi-off",Ek);const gk=[["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"}]],s2=$("wifi",gk);const yk=[["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"}]],bk=$("wine",yk);const Ck=[["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"}]],Ak=$("wrench",Ck);const vk=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],kn=$("x",vk);const Bk=[["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"}]],o2=$("zap",Bk);function wm(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Zt(e,n){return{method:e,pattern:n,path:()=>n}}function vt(e,n){const[a,i]=n.split(/:[a-zA-Z]+/);if(i===void 0)throw new Error(`route ${n} declares no :param`);return{method:e,pattern:n,path:s=>`${a}${encodeURIComponent(s)}${i}`,re:new RegExp(`^${wm(a)}([^/]+)${wm(i)}$`)}}const Ce={state:Zt("GET","/api/state"),search:Zt("GET","/api/search"),repos:Zt("GET","/api/repos"),modelCatalog:Zt("GET","/api/models"),modelDefaults:Zt("GET","/api/models/defaults"),updateModelDefaults:Zt("PATCH","/api/models/defaults"),planUsage:Zt("GET","/api/usage"),repoIcon:vt("GET","/api/repos/:repo/icon"),localImage:vt("GET","/api/local-images/:path"),filePreview:vt("GET","/api/files/:reference"),toolImage:vt("GET","/api/tool-images/:reference"),stageAttachment:Zt("POST","/api/attachments"),discardStagedAttachment:vt("DELETE","/api/attachments/:attachmentId"),logs:Zt("GET","/api/logs"),restartConductor:Zt("POST","/api/conductor/restart"),settings:Zt("GET","/api/settings"),updateSettings:Zt("PATCH","/api/settings"),prefs:Zt("GET","/api/prefs"),updatePrefs:Zt("PATCH","/api/prefs"),armNoSleep:Zt("POST","/api/nosleep"),disarmNoSleep:Zt("DELETE","/api/nosleep"),push:Zt("GET","/api/push"),pushSubscribe:Zt("POST","/api/push/subscribe"),pushUnsubscribe:Zt("POST","/api/push/unsubscribe"),pushTest:Zt("POST","/api/push/test"),createWorkspace:Zt("POST","/api/workspaces"),workspace:vt("GET","/api/workspaces/:workspaceId"),sessions:vt("GET","/api/workspaces/:workspaceId/sessions"),newChat:vt("POST","/api/workspaces/:workspaceId/sessions"),diff:vt("GET","/api/workspaces/:workspaceId/diff"),workspaceFiles:vt("GET","/api/workspaces/:workspaceId/files"),merge:vt("POST","/api/workspaces/:workspaceId/merge"),continueWorkspace:vt("POST","/api/workspaces/:workspaceId/continue"),workspaceStatus:vt("POST","/api/workspaces/:workspaceId/status"),archiveWorkspace:vt("POST","/api/workspaces/:workspaceId/archive"),devServer:vt("GET","/api/workspaces/:workspaceId/dev-server"),startDevServer:vt("POST","/api/workspaces/:workspaceId/dev-server"),stopDevServer:vt("DELETE","/api/workspaces/:workspaceId/dev-server"),dismissFirstPrompt:vt("DELETE","/api/workspaces/:workspaceId/prompt"),messages:vt("GET","/api/sessions/:sessionId/messages"),models:vt("GET","/api/sessions/:sessionId/models"),defaultModel:vt("POST","/api/sessions/:sessionId/default-model"),agent:vt("POST","/api/sessions/:sessionId/agent"),stop:vt("POST","/api/sessions/:sessionId/stop"),closeChat:vt("DELETE","/api/sessions/:sessionId"),sendPrompt:vt("POST","/api/sessions/:sessionId/prompt"),uploadAttachment:vt("POST","/api/sessions/:sessionId/attachments"),splitChat:vt("POST","/api/sessions/:sessionId/split"),dismissParkedPrompt:vt("DELETE","/api/sessions/:sessionId/prompt")};function kk(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 zr(e){return e.workspace_name||e.pr_title||kk(e.branch)||e.directory_name||e.id.slice(0,8)}function Dk(e){return e.toLowerCase().match(/[\p{L}\p{N}_]+/gu)??[]}function qn(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 Pd(e){return e.endsWith(" NEW")?e.slice(0,-4):e}function ed(e){return Pd(e).replace(/^opencode-/i,"")}function Fk(e){const n=Pd(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 a=n.indexOf("/");return a>0?n.slice(0,a):"Other"}function wk(e){const n=new Map;for(const a of e){const i=Pd(a).trim();if(!i)continue;const s=Fk(i),c=n.get(s)??[];c.includes(i)||c.push(i),n.set(s,c)}return[...n].map(([a,i])=>({label:a,models:i.sort((s,c)=>s.localeCompare(c))})).sort((a,i)=>a.label.localeCompare(i.label))}const Sk="",Nk="",Sm=".context/attachments/";function _k(e){const n=[];let a=0;for(;a<e.length;){const i=e.indexOf("@⟦",a);if(i<0)break;const s=e.indexOf("⟧(",i+2);if(s<0||/[\r\n]/.test(e.slice(i,s))){a=i+2;continue}const c=e.slice(i+2,s),x=s+2;let u=x,d=!1;for(;!d&&(u=e.indexOf(")",u),!(u<0));){const f=e.slice(x,u);try{const E=decodeURIComponent(f),p=E.startsWith(Sm)?E.slice(Sm.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===c&&!C.includes("/")){n.push({start:i,end:u+1,name:c,path:E}),a=u+1,d=!0;continue}}catch{}u+=1}d||(a=i+2)}return n}const Mk=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"]),Tk=new Set([".avif",".gif",".jpeg",".jpg",".png",".webp"]);function c2(e){const n=e.slice(e.lastIndexOf("/")+1),a=n.lastIndexOf(".");return a===-1?null:n.slice(a).toLowerCase()}function x2(e){const n=c2(e);return n!==null&&Mk.has(n)}function jk(e){const n=c2(e);return n!==null&&Tk.has(n)}function Nm(e){return e.role==="tool"&&!e.tool&&e.output!==void 0}const Rk="The Mac is locked";function Bi(e){return(e??"").includes(Rk)}const Ok="x-relay-device",Hs="conductor-remote-token";function zk(){const n=new URLSearchParams(location.hash.slice(1)).get("token");return n&&(localStorage.setItem(Hs,n),history.replaceState(null,"",location.pathname+location.search)),localStorage.getItem(Hs)}function Ud(){return localStorage.getItem(Hs)}function Lk(){localStorage.removeItem(Hs)}function Pk(e){localStorage.setItem(Hs,e)}function Uk(e){const n=e.trim();if(!n)return null;const a=n.match(/token=([^&\s]+)/);return a?decodeURIComponent(a[1]):/\s/.test(n)?null:n}class gr extends Error{constructor(n,a){super(n),this.status=a}status}const u2=6e3,vn=45e3,Ik=75e3,Hk=75e3,_m=75e3,qk=75e3;async function Qe(e,n={},a=u2){const i=Ud();let s;try{s=await fetch(e,{...n,signal:AbortSignal.timeout(a),headers:{authorization:`Bearer ${i??""}`,"content-type":"application/json","x-client-timeout-ms":String(a),...n.headers}})}catch(c){throw c instanceof DOMException&&c.name==="TimeoutError"?new gr("Request timed out",0):c}if(!s.ok){const c=await s.json().catch(()=>({}));throw new gr(c.error||`HTTP ${s.status}`,s.status)}return s.json()}async function Mm(e,n){const a=Ud();let i;try{i=await fetch(e,{method:"POST",body:n,signal:AbortSignal.timeout(vn),headers:{authorization:`Bearer ${a??""}`,"content-type":n.type||"application/octet-stream","x-attachment-name":encodeURIComponent(n.name),"x-client-timeout-ms":String(vn)}})}catch(s){throw s instanceof DOMException&&s.name==="TimeoutError"?new gr("Upload timed out",0):s}if(!i.ok){const s=await i.json().catch(()=>({}));throw new gr(s.error||`HTTP ${i.status}`,i.status)}return i.json()}const mu=new Map;async function $k(e){const n=Ud(),a=await fetch(e,{headers:{authorization:`Bearer ${n??""}`},signal:AbortSignal.timeout(u2)});if(!a.ok)throw new gr(`HTTP ${a.status}`,a.status);return URL.createObjectURL(await a.blob())}function Eu(e){let n=mu.get(e);return n||(n=$k(e),n.catch(()=>mu.delete(e)),mu.set(e,n)),n}const Oe={state:()=>Qe(Ce.state.path()),repoIcon:e=>Eu(Ce.repoIcon.path(e)),localImage:e=>Eu(Ce.localImage.path(e)),toolImage:e=>Eu(Ce.toolImage.path(e)),filePreview:e=>Qe(Ce.filePreview.path(e)),stageAttachment:e=>Mm(Ce.stageAttachment.path(),e),discardStagedAttachment:e=>Qe(Ce.discardStagedAttachment.path(e),{method:Ce.discardStagedAttachment.method}),workspace:e=>Qe(Ce.workspace.path(e)),sessions:e=>Qe(Ce.sessions.path(e)),messages:(e,n,a)=>Qe(`${Ce.messages.path(e)}?after=${n}`,{headers:a?{[Ok]:a}:{}}),uploadAttachment:(e,n,a)=>Mm(`${Ce.uploadAttachment.path(e)}?workspaceId=${encodeURIComponent(n)}`,a),diff:e=>Qe(Ce.diff.path(e)),workspaceFiles:e=>Qe(Ce.workspaceFiles.path(e)),sendPrompt:(e,n,a,i,s,c)=>Qe(Ce.sendPrompt.path(e),{method:Ce.sendPrompt.method,body:JSON.stringify({text:n,workspaceId:a,agent:i,clientId:s,queue:c})},Hk),stop:(e,n)=>Qe(Ce.stop.path(e),{method:Ce.stop.method,body:JSON.stringify({workspaceId:n})},vn),closeChat:(e,n,a=!1)=>Qe(Ce.closeChat.path(e),{method:Ce.closeChat.method,body:JSON.stringify({workspaceId:n,closeRunning:a})},vn),newChat:e=>Qe(Ce.newChat.path(e),{method:Ce.newChat.method},vn),splitChat:(e,n,a,i,s,c,x="chat")=>Qe(Ce.splitChat.path(e),{method:Ce.splitChat.method,body:JSON.stringify({workspaceId:n,includeThinking:a,includeTools:i,throughRowid:s,onlyRowid:c,destination:x})},vn),repos:()=>Qe(Ce.repos.path()),modelCatalog:()=>Qe(Ce.modelCatalog.path()),modelDefaults:()=>Qe(Ce.modelDefaults.path()),patchModelDefaults:e=>Qe(Ce.updateModelDefaults.path(),{method:Ce.updateModelDefaults.method,body:JSON.stringify(e)}),planUsage:(e=!1)=>Qe(`${Ce.planUsage.path()}${e?"?refresh=1":""}`,{},15e3),search:(e,n=[],a=!0)=>{const i=new URLSearchParams({q:e});for(const s of n)i.append("repo",s);return a||i.set("archived","0"),Qe(`${Ce.search.path()}?${i}`)},dismissPrompt:e=>Qe(Ce.dismissFirstPrompt.path(e),{method:Ce.dismissFirstPrompt.method}),dismissParked:e=>Qe(Ce.dismissParkedPrompt.path(e),{method:Ce.dismissParkedPrompt.method}),createWorkspace:(e,n,a=!0,i=[],s={})=>Qe(Ce.createWorkspace.path(),{method:Ce.createWorkspace.method,body:JSON.stringify({repo:e,prompt:n,sendImmediately:a,attachmentIds:i,...s})},vn),setAgent:(e,n,a)=>Qe(Ce.agent.path(e),{method:Ce.agent.method,body:JSON.stringify({...n,workspaceId:a})},vn),models:(e,n)=>Qe(`${Ce.models.path(e)}?workspaceId=${encodeURIComponent(n)}`,{},vn),setDefaultModel:(e,n,a)=>Qe(Ce.defaultModel.path(e),{method:Ce.defaultModel.method,body:JSON.stringify({model:n,workspaceId:a})},vn),logs:(e,n=300)=>Qe(`${Ce.logs.path()}?limit=${n}${e?`&file=${encodeURIComponent(e)}`:""}`),push:()=>Qe(Ce.push.path()),pushSubscribe:(e,n)=>Qe(Ce.pushSubscribe.path(),{method:Ce.pushSubscribe.method,body:JSON.stringify({subscription:e,label:n})}),pushUnsubscribe:e=>Qe(Ce.pushUnsubscribe.path(),{method:Ce.pushUnsubscribe.method,body:JSON.stringify({endpoint:e})}),pushTest:e=>Qe(Ce.pushTest.path(),{method:Ce.pushTest.method,body:JSON.stringify({id:e})},vn),merge:e=>Qe(Ce.merge.path(e),{method:Ce.merge.method},vn),continueWorkspace:(e,n)=>Qe(Ce.continueWorkspace.path(e),{method:Ce.continueWorkspace.method,body:JSON.stringify({sessionId:n})},Ik),setStatus:(e,n)=>Qe(Ce.workspaceStatus.path(e),{method:Ce.workspaceStatus.method,body:JSON.stringify({status:n})},vn),archive:(e,n=!1)=>Qe(Ce.archiveWorkspace.path(e),{method:Ce.archiveWorkspace.method,body:JSON.stringify({stopAgents:n})},vn),devServer:e=>Qe(Ce.devServer.path(e)),startDevServer:(e,n)=>Qe(Ce.startDevServer.path(e),{method:Ce.startDevServer.method,body:n?JSON.stringify({runConfigId:n}):void 0},_m),stopDevServer:e=>Qe(Ce.stopDevServer.path(e),{method:Ce.stopDevServer.method},_m),settings:()=>Qe(Ce.settings.path()),patchSettings:e=>Qe(Ce.updateSettings.path(),{method:Ce.updateSettings.method,body:JSON.stringify(e)}),prefs:()=>Qe(Ce.prefs.path()),patchPrefs:(e,n=!1)=>Qe(Ce.updatePrefs.path(),{method:Ce.updatePrefs.method,body:JSON.stringify(e),keepalive:n}),armNoSleep:e=>Qe(Ce.armNoSleep.path(),{method:Ce.armNoSleep.method,body:JSON.stringify({seconds:e})},vn),disarmNoSleep:()=>Qe(Ce.disarmNoSleep.path(),{method:Ce.disarmNoSleep.method},vn),restartConductor:(e=!1)=>Qe(Ce.restartConductor.path(),{method:Ce.restartConductor.method,body:JSON.stringify({stopAgents:e})},qk)},Tm=e=>{let n;const a=new Set,i=(f,E)=>{const p=typeof f=="function"?f(n):f;if(!Object.is(p,n)){const y=n;n=E??(typeof p!="object"||p===null)?p:Object.assign({},n,p),a.forEach(b=>b(n,y))}},s=()=>n,u={setState:i,getState:s,getInitialState:()=>d,subscribe:f=>(a.add(f),()=>a.delete(f))},d=n=e(i,s,u);return u},Gk=(e=>e?Tm(e):Tm),Vk=e=>e;function Qk(e,n=Vk){const a=y0.useSyncExternalStore(e.subscribe,y0.useCallback(()=>n(e.getState()),[e,n]),y0.useCallback(()=>n(e.getInitialState()),[e,n]));return y0.useDebugValue(a),a}const jm=e=>{const n=Gk(e),a=i=>Qk(n,i);return Object.assign(a,n),a},Yk=(e=>e?jm(e):jm),Kk=1e4;function Xk(e,n=Date.now()){return Math.max(0,(e??n)+Kk-n)}const td="conductor-remote-pending",d2=20,Zk=1440*60*1e3;function f2(e,n=[],a=!1){let i=a;const s=new Set;for(const c of e){if(s.add(c.text.trim()),c.status==="error")return"failed";c.status==="sending"&&(i=!0)}for(const c of n)if(!s.has(c.text.trim())){if(c.status==="failed")return"failed";c.status==="waiting"&&(i=!0)}return i?"sending":null}const Rm=e=>e.status==="sending"||!!e.interrupted;function Wk(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.status==="sending"||n.status==="error")}const Jk=e=>e.status==="sending"?{...e,status:"error",interrupted:!0,error:"Never confirmed — the app reloaded"}:e;function eD(){try{const e=JSON.parse(localStorage.getItem(td)??"[]");if(!Array.isArray(e))return[];const n=Date.now()-Zk;return e.filter(Wk).filter(a=>a.createdAt>n).slice(-d2).map(Jk)}catch{return[]}}function tD(e){try{const n=e.slice(-d2);n.length?localStorage.setItem(td,JSON.stringify(n)):localStorage.removeItem(td)}catch{}}const C0="conductor-remote-agent:",A0="conductor-remote-draft:",la="new-workspace",Om="conductor-remote-read",h2=(e,n,a)=>(e[n]??"")<a;function nD(e,n){return(e.unread_sessions??[]).filter(a=>h2(n,a.id,a.at)).length}function rD(e,n){return!!e.unread_count&&h2(n,e.id,e.updated_at)}const zm="conductor-remote-prefs-v1";function pr(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)?e:null}function nd(e){const n=pr(e);if(!n)return{};const a={};return typeof n.model=="string"&&(a.model=n.model),typeof n.effort=="string"&&(a.effort=n.effort),typeof n.plan=="boolean"&&(a.plan=n.plan),typeof n.fast=="boolean"&&(a.fast=n.fast),a}function El(e){return Object.keys(e).length>0}function aD(e){const n=pr(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 p2(e){if(!Array.isArray(e))return[];const n=new Set;return e.flatMap(a=>{const i=aD(a);return!i||n.has(i.path)?[]:(n.add(i.path),[i])})}function Lm(e){const n=pr(e);if(!n)return null;const a=Number(n.updatedAt);return!Number.isSafeInteger(a)||a<0?null:n.deleted===!0?{text:"",agent:{},attachments:[],updatedAt:a,deleted:!0}:typeof n.text!="string"?null:{text:n.text,agent:nd(n.agent),attachments:p2(n.attachments),updatedAt:a,deleted:!1}}function m2(e,n){return e.model===n.model&&e.effort===n.effort&&e.plan===n.plan&&e.fast===n.fast}function iD(e,n){return e.text===n.text&&e.updatedAt===n.updatedAt&&e.deleted===n.deleted&&m2(e.agent,n.agent)&&e.attachments.length===n.attachments.length&&e.attachments.every((a,i)=>{const s=n.attachments[i];return a.name===s?.name&&a.path===s.path&&a.bytes===s.bytes&&a.token===s.token&&a.stageId===s.stageId})}function hl(e,n,a,i){return e||El(n)||a.length?{text:e,agent:{...n},attachments:p2(a),updatedAt:i,deleted:!1}:{text:"",agent:{},attachments:[],updatedAt:i,deleted:!0}}class lD{storage;prefs;clock;generation=0;touched=new Set;listeners=new Set;constructor(n){this.storage=n;const a=this.readRawDrafts(),i=this.readRawAgents(),s=this.readMetadata(),c=s?.drafts??{};if(this.clock=Math.max(Date.now(),...Object.values(c).map(x=>x.updatedAt)),s){const x={...c};for(const u of new Set([...Object.keys(c),...Object.keys(a),...Object.keys(i)])){const d=hl(a[u]??"",i[u]??{},[],c[u]?.updatedAt??0),f=c[u];!(f&&!f.deleted&&f.attachments.length>0&&!f.text&&!El(f.agent)&&d.deleted)&&(!f||f.text!==d.text||f.deleted!==d.deleted||!m2(f.agent,d.agent))&&(x[u]=hl(d.text,d.agent,[],this.tick()),this.touched.add(u))}this.prefs={readMarks:this.readRawMarks(),drafts:x}}else{const x={};for(const u of new Set([...Object.keys(a),...Object.keys(i)]))x[u]=hl(a[u]??"",i[u]??{},[],0);this.prefs={readMarks:this.readRawMarks(),drafts:x}}this.persistAll()}snapshot(){return{readMarks:{...this.prefs.readMarks},drafts:Object.fromEntries(Object.entries(this.prefs.drafts).map(([n,a])=>[n,{...a,agent:{...a.agent},attachments:a.attachments.map(i=>({...i}))}]))}}project(){const n={},a={},i={};for(const[s,c]of Object.entries(this.prefs.drafts))c.deleted||(n[s]=c.text,El(c.agent)&&(a[s]={...c.agent}),c.attachments.length&&(i[s]=c.attachments.map(x=>({...x}))));return{drafts:n,agentDrafts:a,draftAttachments:i,readMarks:{...this.prefs.readMarks}}}currentGeneration(){return this.generation}setDraft(n,a,i){return this.setLocal(n,a,i,this.prefs.drafts[n]?.attachments??[]),this.project()}setAgent(n,a,i){return this.setLocal(n,i,a,this.prefs.drafts[n]?.attachments??[]),this.project()}setAttachments(n,a,i,s){return this.setLocal(n,i,s,a),this.project()}setContent(n,a,i,s){return this.setLocal(n,a,i,s),this.project()}moveDraft(n,a){const i=this.prefs.drafts[n],s=this.prefs.drafts[a];return!i||i.deleted||n===a||s&&!s.deleted?this.project():(this.prefs.drafts[n]=hl("",{},[],this.tick()),this.prefs.drafts[a]=hl(i.text,i.agent,i.attachments,this.tick()),this.touched.add(n),this.touched.add(a),this.changed(),this.project())}markRead(n,a){return(this.prefs.readMarks[n]??"")>=a?this.project():(this.prefs.readMarks[n]=a,this.changed(),this.project())}merge(n,a){const i=pr(pr(n)?.drafts),s=this.cleanPrefs(n);for(const u of Object.values(s.drafts))this.clock=Math.max(this.clock,u.updatedAt);let c=!1,x=!1;for(const[u,d]of Object.entries(s.readMarks))(this.prefs.readMarks[u]??"")>=d||(this.prefs.readMarks[u]=d,c=!0);for(const[u,d]of Object.entries(this.prefs.readMarks))(s.readMarks[u]??"")<d&&(x=!0);for(const u of new Set([...Object.keys(this.prefs.drafts),...Object.keys(s.drafts)])){const d=this.prefs.drafts[u],f=s.drafts[u],E=pr(i?.[u]);if(d&&f&&!f.deleted&&E&&!Object.hasOwn(E,"attachments")&&(f.attachments=d.attachments.map(b=>({...b}))),!d&&f){this.prefs.drafts[u]=f,c=!0;continue}if(d&&!f){x=!0;continue}if(!(d&&f)||iD(d,f))continue;const p=a===u&&(this.touched.has(u)||!d.deleted&&(d.text.length>0||El(d.agent)||d.attachments.length>0)),y=f.updatedAt>d.updatedAt||f.updatedAt===d.updatedAt&&(f.deleted||!d.deleted);if(y&&!p){this.prefs.drafts[u]=f,c=!0;continue}y&&(d.updatedAt=this.tick(f.updatedAt),c=!0),x=!0}return c&&this.persistAll(),{state:this.project(),needsUpload:x}}subscribe(n){return this.listeners.add(n),()=>this.listeners.delete(n)}requestFlush(){for(const n of this.listeners)n(!0)}setLocal(n,a,i,s){this.prefs.drafts[n]=hl(a,nd(i),s,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 a=pr(n),i={};for(const[c,x]of Object.entries(pr(a?.readMarks)??{}))typeof x=="string"&&(i[c]=x);const s={};for(const[c,x]of Object.entries(pr(a?.drafts)??{})){const u=Lm(x);u&&(s[c]=u)}return{readMarks:i,drafts:s}}readMetadata(){try{const n=pr(JSON.parse(this.storage.getItem(zm)??"null"));if(n?.version!==1)return null;const a={};for(const[i,s]of Object.entries(pr(n.drafts)??{})){const c=Lm(s);c&&(a[i]=c)}return{drafts:a}}catch{return null}}readRawDrafts(){const n={};try{for(let a=0;a<this.storage.length;a++){const i=this.storage.key(a);if(!i?.startsWith(A0))continue;const s=this.storage.getItem(i);s&&(n[i.slice(A0.length)]=s)}}catch{}return n}readRawAgents(){const n={};try{for(let a=0;a<this.storage.length;a++){const i=this.storage.key(a);if(!i?.startsWith(C0))continue;const s=this.storage.getItem(i);if(!s)continue;const c=nd(JSON.parse(s));El(c)&&(n[i.slice(C0.length)]=c)}}catch{}return n}readRawMarks(){try{const n=pr(JSON.parse(this.storage.getItem(Om)??"{}"));return n?Object.fromEntries(Object.entries(n).filter(a=>typeof a[1]=="string")):{}}catch{return{}}}persistAll(){try{for(const[n,a]of Object.entries(this.prefs.drafts))!a.deleted&&a.text?this.storage.setItem(A0+n,a.text):this.storage.removeItem(A0+n),!a.deleted&&El(a.agent)?this.storage.setItem(C0+n,JSON.stringify(a.agent)):this.storage.removeItem(C0+n);this.storage.setItem(Om,JSON.stringify(this.prefs.readMarks)),this.storage.setItem(zm,JSON.stringify({version:1,drafts:this.prefs.drafts}))}catch{}}}let gu=null;function Ar(){return gu||(gu=new lD(localStorage)),gu}const sD=()=>Ar().project(),oD=()=>Ar().snapshot(),Pm=()=>Ar().currentGeneration(),cD=(e,n,a)=>Ar().setDraft(e,n,a),Um=(e,n,a)=>Ar().setAgent(e,n,a),Im=(e,n,a,i)=>Ar().setAttachments(e,n,a,i),xD=(e,n,a,i)=>Ar().setContent(e,n,a,i),uD=(e,n)=>Ar().moveDraft(e,n),dD=(e,n)=>Ar().markRead(e,n),fD=(e,n)=>Ar().merge(e,n),hD=e=>Ar().subscribe(e),rd=()=>Ar().requestFlush();let pl=null;const v0=sD(),ad=15e3,E2="conductor-remote-view",g2="conductor-remote-last-new-workspace-repo",Hm={groupBy:"status",repos:[],sortBy:"updated",showDiffs:!0,hideMerged:!1,hideDone:!1,collapsed:[]};function qm(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 pD(){try{const{repo:e,...n}=JSON.parse(localStorage.getItem(E2)??"{}"),a=Array.isArray(n.repos)?n.repos.filter(i=>typeof i=="string"):typeof e=="string"?[e]:[];return{...Hm,...n,repos:a}}catch{return Hm}}function mD(){try{return localStorage.getItem(g2)??""}catch{return""}}const Ae=Yk((e,n)=>{const a=s=>{localStorage.setItem(E2,JSON.stringify(s)),e({view:s})},i=s=>{tD(s),e({pending:s})};return{token:zk(),online:!0,lastSyncAt:null,update:null,workingHints:{},pending:eD(),drafts:v0.drafts,draftAttachments:v0.draftAttachments,agentDrafts:v0.agentDrafts,readMarks:v0.readMarks,focusedDraft:null,push:{deviceId:null,devices:0},sidebarOpen:!location.pathname.startsWith("/w/"),lastNewWorkspaceRepo:mD(),view:pD(),setToken:s=>{s?Pk(s):Lk(),e({token:s})},setOnline:s=>{if(s){pl&&clearTimeout(pl),pl=null,e({online:s,lastSyncAt:Date.now()});return}if(!n().online||pl)return;const c=Xk(n().lastSyncAt);if(c===0){e({online:!1});return}pl=setTimeout(()=>{pl=null,e({online:!1})},c)},setUpdate:s=>e({update:s}),markWorking:s=>e({workingHints:{...n().workingHints,[s]:Date.now()}}),clearWorking:s=>{const{[s]:c,...x}=n().workingHints;e({workingHints:x})},addPending:s=>i([...n().pending.filter(c=>c.id!==s.id),{...s,status:"sending",error:void 0,createdAt:Date.now()}]),failPending:(s,c)=>i(n().pending.map(x=>x.id===s?{...x,status:"error",error:c}:x)),removePending:s=>i(n().pending.filter(c=>c.id!==s)),setDraft:(s,c)=>{const x=cD(s,c,n().agentDrafts[s]??{});e({drafts:x.drafts,agentDrafts:x.agentDrafts,draftAttachments:x.draftAttachments})},addDraftAttachment:(s,c)=>{const x=n().draftAttachments[s]??[];if(x.some(d=>d.path===c.path))return;const u=Im(s,[...x,c],n().drafts[s]??"",n().agentDrafts[s]??{});e({drafts:u.drafts,agentDrafts:u.agentDrafts,draftAttachments:u.draftAttachments})},removeDraftAttachment:(s,c)=>{const x=n().draftAttachments[s]??[],u=x.filter(f=>f.path!==c);if(u.length===x.length)return;const d=Im(s,u,n().drafts[s]??"",n().agentDrafts[s]??{});e({drafts:d.drafts,agentDrafts:d.agentDrafts,draftAttachments:d.draftAttachments})},clearDraftContent:s=>{const c=xD(s,"",n().agentDrafts[s]??{},[]);e({drafts:c.drafts,agentDrafts:c.agentDrafts,draftAttachments:c.draftAttachments})},moveDraft:(s,c)=>{const x=n().drafts,d=x[s]!==void 0||n().agentDrafts[s]!==void 0||n().draftAttachments[s]!==void 0,f=x[c]!==void 0||n().agentDrafts[c]!==void 0||n().draftAttachments[c]!==void 0;if(!d||s===c||f)return;const E=uD(s,c);e({drafts:E.drafts,agentDrafts:E.agentDrafts,draftAttachments:E.draftAttachments})},markRead:(s,c)=>{(n().readMarks[s]??"")>=c||e({readMarks:dD(s,c).readMarks})},stageAgent:(s,c)=>{const x=qm({...n().agentDrafts[s],...c}),u=Um(s,x,n().drafts[s]??"");e({drafts:u.drafts,agentDrafts:u.agentDrafts,draftAttachments:u.draftAttachments})},clearAgentDraft:(s,c)=>{const x=n().agentDrafts[s];if(!x)return;const u=qm({model:x.model===c.model?void 0:x.model,effort:x.effort===c.effort?void 0:x.effort,plan:x.plan===c.plan?void 0:x.plan,fast:x.fast===c.fast?void 0:x.fast}),d=Um(s,u,n().drafts[s]??"");e({drafts:d.drafts,agentDrafts:d.agentDrafts,draftAttachments:d.draftAttachments})},applySyncedPrefs:s=>e({drafts:s.drafts,agentDrafts:s.agentDrafts,draftAttachments:s.draftAttachments,readMarks:s.readMarks}),setFocusedDraft:s=>e({focusedDraft:s}),setPush:s=>e({push:s}),setSidebarOpen:s=>e({sidebarOpen:s}),setLastNewWorkspaceRepo:s=>{try{localStorage.setItem(g2,s)}catch{}e({lastNewWorkspaceRepo:s})},setView:s=>a({...n().view,...s}),toggleGroup:s=>{const{collapsed:c}=n().view;a({...n().view,collapsed:c.includes(s)?c.filter(x=>x!==s):[...c,s]})}}}),$m=6e4,ED=1e4,yu="pwa-update-attempted-at",gD=2500,yD=30*6e4,vs="pwa-update-snoozed-until";async function bD(){try{if("serviceWorker"in navigator){const n=await navigator.serviceWorker.getRegistrations();await Promise.all(n.map(a=>a.unregister()))}if("caches"in window){const n=await caches.keys();await Promise.all(n.map(a=>caches.delete(a)))}}catch{}const e=location.search?"&":"?";location.replace(`${location.pathname}${location.search}${e}_v=${Date.now()}`)}function CD(){const e=Ae(p=>p.token),n=D.useRef(null),a=D.useRef(!1),{needRefresh:[i,s],updateServiceWorker:c}=_7({onRegisteredSW(p,y){y&&(n.current=y,setInterval(()=>{y.update().catch(()=>{})},$m))}}),{data:x}=Dn({queryKey:["state"],queryFn:()=>Oe.state(),enabled:!!e,refetchInterval:!1}),u=x?.version,d=D.useRef(null);if(D.useEffect(()=>{!u||u==="1.96.2"||d.current===u||(d.current=u,n.current?.update().catch(()=>{}))},[u]),D.useEffect(()=>{if(!i)return;const p=Number(sessionStorage.getItem(yu));if(sessionStorage.removeItem(yu),p&&Date.now()-p<ED){s(!1);return}const y=Number(sessionStorage.getItem(vs));y&&Date.now()<y&&s(!1)},[i,s]),D.useEffect(()=>{if(i)return;const p=()=>{const b=Number(sessionStorage.getItem(vs));!b||Date.now()<b||n.current?.waiting&&(sessionStorage.removeItem(vs),s(!0))},y=window.setInterval(p,$m);return document.addEventListener("visibilitychange",p),()=>{window.clearInterval(y),document.removeEventListener("visibilitychange",p)}},[i,s]),!i)return null;const f=()=>{sessionStorage.setItem(vs,String(Date.now()+yD)),s(!1)},E=()=>{sessionStorage.removeItem(vs),sessionStorage.setItem(yu,String(Date.now()));const p=()=>{a.current||(a.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"})):c(!0),window.setTimeout(()=>{a.current||(a.current=!0,bD())},gD)};return h.jsxs("div",{className:"pb-safe fade-in fixed inset-x-0 bottom-0 z-[60] 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:[h.jsx(Zs,{size:15,className:"shrink-0 text-accent"}),h.jsx("span",{className:"flex-1 text-sm",children:"New version ready"}),h.jsx("button",{type:"button",onClick:f,className:"rounded-lg px-2 py-1 text-xs text-muted active:bg-surface-2",children:"Later"}),h.jsx("button",{type:"button",onClick:E,className:"rounded-lg bg-accent px-3 py-1 text-xs font-semibold text-on-solid transition active:scale-95",children:"Update"})]})}function AD(){return/iP(hone|ad|od)/.test(navigator.userAgent)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1}function y2(){return window.matchMedia("(display-mode: standalone)").matches||navigator.standalone===!0}function b2(){return window.isSecureContext?"serviceWorker"in navigator?!("PushManager"in window)||!("Notification"in window)?AD()&&!y2()?"needs-install":"unsupported":"ok":"unsupported":"insecure"}function C2(){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 y2()?n:`${n} (browser)`}function vD(e){const n=e+"=".repeat((4-e.length%4)%4),a=atob(n.replace(/-/g,"+").replace(/_/g,"/")),i=new Uint8Array(a.length);for(let s=0;s<a.length;s++)i[s]=a.charCodeAt(s);return i}function BD(e){let n="";for(const a of new Uint8Array(e))n+=String.fromCharCode(a);return btoa(n).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}async function Id(){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 kD(e){const n=await Id();if(typeof n?.getNotifications=="function")try{for(const a of await n.getNotifications({tag:e}))a.close()}catch{}}async function A2(){return await(await Id())?.pushManager.getSubscription()??null}function DD(e,n){const a=e.options.applicationServerKey;return!!a&&BD(a)===n}async function v2(e){const n=await Id();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:vD(e)})}function B2(e){const n=e.toJSON(),a=n.keys??{};if(!n.endpoint||!a.p256dh||!a.auth)throw new Error("the browser returned an incomplete subscription");return{endpoint:n.endpoint,keys:{p256dh:a.p256dh,auth:a.auth}}}async function FD(e){let n=await A2();if(n&&!DD(n,e)&&(await n.unsubscribe().catch(()=>{}),n=Notification.permission==="granted"?await v2(e):null),!n)return null;const a=await Oe.pushSubscribe(B2(n),C2());return{id:a.id??null,devices:a.devices.length}}function U0(){const e=window.getSelection();return!!e&&!e.isCollapsed&&e.toString().length>0}const B0=28;function wD(e,n){const a=window.getSelection();if(!a||a.isCollapsed||!a.rangeCount)return!1;for(const i of a.getRangeAt(0).getClientRects())if(e>=i.left-B0&&e<=i.right+B0&&n>=i.top-B0&&n<=i.bottom+B0)return!0;return!1}function SD(e,n){const a=n.filter(c=>Nm(c)&&c.toolUseId);if(!a.length)return[...e,...n];const i=[...e,...n.filter(c=>!Nm(c))],s=new Map;i.forEach((c,x)=>{c.tool&&c.toolUseId&&!s.has(c.toolUseId)&&s.set(c.toolUseId,x)});for(const c of a){const x=c.toolUseId?s.get(c.toolUseId):void 0;if(x===void 0){c.error&&i.push(c);continue}const u=i[x];i[x]={...u,output:c.output,diff:c.diff,images:c.images,error:c.error??u.error}}return i}function ND(e,n){if(!n.length)return[...e];const a=new Set(e.map(i=>i.id));return[...e,...n.filter(i=>!a.has(i.id))]}function _D(e){const n=Ae(s=>s.setSidebarOpen),a=Ae(s=>s.sidebarOpen),i=D.useRef(a);i.current=a,D.useEffect(()=>{const s=e.current;s&&(s.style.transition="",s.style.transform="")},[a,e]),D.useEffect(()=>{const x=window.matchMedia("(min-width: 768px)"),u=()=>e.current;let d=!1,f=!1,E=!1,p=!1,y=0,b=0,C=0,A=0;const B=O=>{const z=u();z&&(z.style.transition="none",z.style.transform=`translateX(${O}px)`,A=O)},k=()=>{const O=u();O&&(O.style.transition="",O.style.transform="")},j=O=>{for(let z=O;z;z=z.parentElement)if(z.scrollLeft>0)return!0;return!1},F=()=>{d&&(d=!1,k())},_=O=>{if(F(),x.matches||O.touches.length!==1)return;const z=O.touches[0];if(i.current){const G=u()?.getBoundingClientRect().right??0;if(z.clientX>G)return}else if(z.clientX>44||j(O.target))return;wD(z.clientX,z.clientY)||(d=!0,f=!1,E=!1,p=U0(),y=z.clientX,b=z.clientY,C=u()?.offsetWidth??0)},R=O=>{if(!d||E)return;if(!p&&U0()){E=!0;return}const z=O.touches[0],G=z.clientX-y,L=z.clientY-b;if(!f){if(Math.abs(L)>Math.abs(G)&&Math.abs(L)>8){E=!0;return}if(Math.abs(G)<6)return;f=!0}O.preventDefault();const X=i.current?0:-C;B(Math.max(-C,Math.min(0,X+G)))},S=()=>{if(!d)return;if(d=!1,!f||E)return k();const O=C?(A+C)/C:0;k(),n(O>.4)};return window.addEventListener("touchstart",_,{passive:!0}),window.addEventListener("touchmove",R,{passive:!1}),window.addEventListener("touchend",S),window.addEventListener("touchcancel",S),document.addEventListener("visibilitychange",F),()=>{window.removeEventListener("touchstart",_),window.removeEventListener("touchmove",R),window.removeEventListener("touchend",S),window.removeEventListener("touchcancel",S),document.removeEventListener("visibilitychange",F)}},[e,n])}const Gm='input, textarea, [contenteditable]:not([contenteditable="false"])';function MD(){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 a=0,i;const s=()=>{n.style.removeProperty("--app-height"),n.removeAttribute("data-keyboard")},c=E=>{E&&!i?i=setInterval(x,300):!E&&i&&(clearInterval(i),i=void 0)},x=()=>{const E=document.activeElement,p=E instanceof HTMLElement&&E.matches(Gm),y=e.scale>1.01;!p||y?(!y&&window.innerHeight-e.height<120&&(a=e.height),s()):(a||window.innerHeight)-e.height>40?(n.style.setProperty("--app-height",`${Math.round(e.height+e.offsetTop)}px`),n.setAttribute("data-keyboard","")):s(),c(p||n.hasAttribute("data-keyboard")),window.scrollY!==0&&window.scrollTo(0,0)};let u;const d=()=>{x(),clearTimeout(u),u=setTimeout(x,350)},f=()=>{if(document.visibilityState==="hidden"){const E=document.activeElement;E instanceof HTMLElement&&E.matches(Gm)&&E.blur(),s(),c(!1)}else d()};return x(),e.addEventListener("resize",x),e.addEventListener("scroll",x),window.addEventListener("pageshow",d),document.addEventListener("visibilitychange",f),document.addEventListener("focusin",d),document.addEventListener("focusout",d),()=>{clearTimeout(u),c(!1),e.removeEventListener("resize",x),e.removeEventListener("scroll",x),window.removeEventListener("pageshow",d),document.removeEventListener("visibilitychange",f),document.removeEventListener("focusin",d),document.removeEventListener("focusout",d),s()}},[])}function Bl(){const e=Ae(a=>a.setOnline),n=Ae(a=>a.setToken);return D.useCallback((a,i)=>{e(a),i instanceof gr&&i.status===401&&n(null)},[e,n])}function k2(){const e=Bl(),n=Ae(i=>i.setUpdate),a=Dn({queryKey:["state"],queryFn:()=>Oe.state(),refetchInterval:2500});return D.useEffect(()=>{a.isSuccess&&(e(!0),n(a.data.update??null)),a.isError&&e(!1,a.error)},[a.isSuccess,a.isError,a.error,a.data,e,n]),a}function TD(){const e=Bl();D.useEffect(()=>{let i=!0,s=!1,c=!1,x=!1,u=null;const d=A=>{const B=fD(A,Ae.getState().focusedDraft);Ae.getState().applySyncedPrefs(B.state),B.needsUpload&&E(!1)},f=async(A,B=!1)=>{if(!i)return;if(s){c||=A,x||=B;return}s=!0;const k=Pm();try{const j=A?await Oe.patchPrefs(oD(),B):await Oe.prefs();if(!i)return;e(!0),d(j.prefs),Pm()!==k&&E(!1)}catch(j){if(!i)return;j instanceof gr&&j.status===404||e(!1,j)}finally{if(s=!1,i&&c){const j=x;c=!1,x=!1,f(!0,j)}}};function E(A,B=!1){u&&clearTimeout(u),u=null,A?f(!0,B):u=setTimeout(()=>{f(!0)},700)}const p=hD(A=>E(A)),y=setInterval(()=>{f(!1)},15e3),b=()=>{document.visibilityState==="hidden"?E(!0,!0):f(!1)},C=()=>E(!0);return document.addEventListener("visibilitychange",b),window.addEventListener("online",C),f(!0),()=>{i=!1,u&&clearTimeout(u),clearInterval(y),p(),document.removeEventListener("visibilitychange",b),window.removeEventListener("online",C)}},[e])}function D2(){return Dn({queryKey:["repos"],queryFn:()=>Oe.repos(),staleTime:6e4})}function jD(e,n){const[a,i]=D.useState(e);return D.useEffect(()=>{const s=setTimeout(()=>i(e),n);return()=>clearTimeout(s)},[e,n]),a}function RD(e,n=[],a=!0){const i=e.trim();return Dn({queryKey:["search",i,n,a],queryFn:()=>Oe.search(i,n,a),enabled:i.length>=2,staleTime:3e4,placeholderData:i4})}function OD(e,n){const a=Bl(),i=Dn({queryKey:["workspace",e],queryFn:()=>Oe.workspace(e),enabled:n&&!!e,staleTime:Number.POSITIVE_INFINITY,retry:(s,c)=>!(c instanceof gr&&c.status===404)&&s<1});return D.useEffect(()=>{i.isError&&!(i.error instanceof gr&&i.error.status===404)&&a(!1,i.error)},[i.isError,i.error,a]),i}function F2(e,n=!0){const a=Bl(),i=Dn({queryKey:["sessions",e],queryFn:()=>Oe.sessions(e),enabled:!!e,refetchInterval:n?2e3:!1});return D.useEffect(()=>{i.isError&&a(!1,i.error)},[i.isError,i.error,a]),i}function zD(e,n){return Dn({queryKey:["workspaceFiles",e],queryFn:()=>Oe.workspaceFiles(e),enabled:n&&!!e,staleTime:12e4,retry:!1})}function LD(e){return Dn({queryKey:["dev-server",e],queryFn:()=>Oe.devServer(e),enabled:!!e,refetchInterval:2500})}function PD(e,n){const a=Bl(),i=Dn({queryKey:["diff",e],queryFn:()=>Oe.diff(e),enabled:n&&!!e,refetchInterval:5e3});return D.useEffect(()=>{i.isError&&a(!1,i.error)},[i.isError,i.error,a]),i}function UD(e){return Dn({queryKey:["repoIcon",e],queryFn:()=>Oe.repoIcon(e),enabled:!!e,staleTime:Number.POSITIVE_INFINITY,gcTime:Number.POSITIVE_INFINITY,retry:!1})}function ID(e,n){return Dn({queryKey:["logs",e],queryFn:()=>Oe.logs(e),enabled:n,refetchInterval:3e3,retry:!1})}function Hd(){return Dn({queryKey:["model-catalog"],queryFn:Oe.modelCatalog,staleTime:6e4,gcTime:Number.POSITIVE_INFINITY,retry:!1})}function w2(){return Dn({queryKey:["model-defaults"],queryFn:Oe.modelDefaults,staleTime:0,gcTime:Number.POSITIVE_INFINITY,retry:!1})}function HD(e){return Dn({queryKey:["plan-usage"],queryFn:()=>Oe.planUsage(),enabled:e,staleTime:6e4,gcTime:Number.POSITIVE_INFINITY,retry:!1})}function qD(e,n,a){const i=e?.agent_type??"claude",s=yr();return Dn({queryKey:["models",i],queryFn:async()=>{const c=await Oe.models(e.id,n);if(!c.ok||!c.models?.length)throw new Error(c.error??"could not read the model list");return await s.invalidateQueries({queryKey:["model-catalog"]}),c},enabled:a&&!!e,staleTime:0,gcTime:Number.POSITIVE_INFINITY,retry:!1})}const $D=(e,n)=>e.length===n.length&&e.every((a,i)=>a.id===n[i].id&&a.text===n[i].text);function GD(e,n=!0){const a=Bl(),[i,s]=D.useState({entries:[],queued:[],loading:!0,error:null}),c=D.useRef(0),x=Ae(f=>f.push.deviceId),u=D.useRef(x);return u.current=x,D.useEffect(()=>{if(!e){s({entries:[],queued:[],loading:!1,error:null});return}c.current=0,s({entries:[],queued:[],loading:!0,error:null});let f=!0,E=!1;const p=async()=>{if(!E){E=!0;try{const b=document.visibilityState==="visible"?u.current:null,{entries:C,queued:A=[],cursor:B}=await Oe.messages(e,c.current,b);if(!f)return;a(!0),c.current=B,s(k=>{const j=C.length?SD(k.entries,C):k.entries,F=$D(k.queued,A);return j===k.entries&&F&&!k.loading&&!k.error?k:{entries:j,queued:F?k.queued:A,loading:!1,error:null}})}catch(b){if(!f)return;a(!1,b),s(C=>({...C,loading:!1,error:b instanceof Error?b.message:String(b)}))}finally{E=!1}}};p();const y=n?setInterval(p,1e3):void 0;return()=>{f=!1,y&&clearInterval(y)}},[e,n,a]),{entries:D.useMemo(()=>ND(i.entries,i.queued),[i.entries,i.queued]),loading:i.loading,error:i.error}}function S2(){const e=yr(),n=Ae(x=>x.addPending),a=Ae(x=>x.failPending),i=Ae(x=>x.removePending),s=Ae(x=>x.markWorking),c=Ae(x=>x.clearAgentDraft);return D.useCallback(async x=>{const u=x.text.trim();if(!u)return!1;const d=x.id??crypto.randomUUID(),{sessionId:f,workspaceId:E}=x;n({id:d,sessionId:f,workspaceId:E,text:u,queue:x.queue});try{const p=Ae.getState().agentDrafts[f],y=p&&Object.keys(p).length?p:void 0,b=await Oe.sendPrompt(f,u,E,y,d,x.queue);if(b.ok||b.parked)return y&&(c(f,y),e.invalidateQueries({queryKey:["sessions",E]})),b.ok&&s(f),e.invalidateQueries({queryKey:["state"]}),setTimeout(()=>i(d),4e3),!0;a(d,b.error||"Send failed")}catch(p){a(d,p instanceof Error?p.message:String(p))}return!1},[n,a,i,s,c,e])}function N2(e){return Dn({queryKey:["push"],queryFn:()=>Oe.push(),enabled:e,staleTime:3e4})}function VD(){const[e]=D.useState(b2),n=Ae(s=>s.setPush),{data:a}=N2(e==="ok"),i=a?.publicKey;D.useEffect(()=>{if(e!=="ok"||!i)return;let s=!0;return FD(i).then(c=>{s&&n({deviceId:c?.id??null,devices:c?.devices??0})}).catch(()=>{}),()=>{s=!1}},[e,i,n])}function QD(){const[e]=D.useState(b2),[n,a]=D.useState(()=>"Notification"in window?Notification.permission:"unsupported"),[i,s]=D.useState(!1),[c,x]=D.useState(null),{deviceId:u,devices:d}=Ae(A=>A.push),f=Ae(A=>A.setPush),E=N2(e==="ok"),p=E.data?.publicKey,y=D.useCallback(async()=>{s(!0),x(null);try{const A=await Notification.requestPermission();if(a(A),A!=="granted"){x(A==="denied"?"Notifications are blocked for this app — allow them in your device settings, then try again.":"Notification permission wasn’t granted.");return}const B=p??(await Oe.push()).publicKey,k=await v2(B),j=await Oe.pushSubscribe(B2(k),C2());f({deviceId:j.id??null,devices:j.devices.length})}catch(A){x(A instanceof Error?A.message:String(A))}finally{s(!1)}},[p,f]),b=D.useCallback(async()=>{s(!0),x(null);try{const A=await A2();let B=0;A&&(B=(await Oe.pushUnsubscribe(A.endpoint).catch(()=>null))?.devices.length??0,await A.unsubscribe()),f({deviceId:null,devices:B})}catch(A){x(A instanceof Error?A.message:String(A))}finally{s(!1)}},[f]),C=D.useCallback(async()=>{if(u){s(!0),x(null);try{const A=await Oe.pushTest(u);A.ok||x(A.error??"The push service rejected it.")}catch(A){x(A instanceof Error?A.message:String(A))}finally{s(!1)}}},[u]);return{support:e,permission:n,enabled:!!u,relayDisabled:E.data?.enabled===!1,busy:i,error:c,devices:d,enable:y,disable:b,test:C}}const YD="push-route",Vm="/__push-route",KD=12e4;async function Qm(){if(!("caches"in window))return null;try{const e=await caches.open(YD),n=await e.match(Vm);if(!n)return null;await e.delete(Vm);const{url:a,ts:i}=await n.json();return typeof a!="string"||!a.startsWith("/")||typeof i!="number"||Date.now()-i>KD?null:a}catch{return null}}function XD(){const e=Fi();D.useEffect(()=>{let n=!0;const a=()=>{Qm().then(c=>{n&&c&&e(c)})},i=c=>{const x=c.data;x?.type==="push-navigate"&&typeof x.url=="string"&&x.url.startsWith("/")&&(Qm(),e(x.url))},s=()=>{document.visibilityState==="visible"&&a()};return"serviceWorker"in navigator&&navigator.serviceWorker.addEventListener("message",i),document.addEventListener("visibilitychange",s),a(),()=>{n=!1,"serviceWorker"in navigator&&navigator.serviceWorker.removeEventListener("message",i),document.removeEventListener("visibilitychange",s)}},[e])}function ZD(e,n){D.useEffect(()=>{if(!e)return;const a=()=>{document.visibilityState==="visible"&&kD(e)};return a(),document.addEventListener("visibilitychange",a),()=>document.removeEventListener("visibilitychange",a)},[e,n])}function _2(e){var n,a,i="";if(typeof e=="string"||typeof e=="number")i+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(n=0;n<s;n++)e[n]&&(a=_2(e[n]))&&(i&&(i+=" "),i+=a)}else for(a in e)e[a]&&(i&&(i+=" "),i+=a);return i}function WD(){for(var e,n,a=0,i="",s=arguments.length;a<s;a++)(e=arguments[a])&&(n=_2(e))&&(i&&(i+=" "),i+=n);return i}const JD=(e,n)=>{const a=new Array(e.length+n.length);for(let i=0;i<e.length;i++)a[i]=e[i];for(let i=0;i<n.length;i++)a[e.length+i]=n[i];return a},eF=(e,n)=>({classGroupId:e,validator:n}),M2=(e=new Map,n=null,a)=>({nextPart:e,validators:n,classGroupId:a}),I0="-",Ym=[],tF="arbitrary..",nF=e=>{const n=aF(e),{conflictingClassGroups:a,conflictingClassGroupModifiers:i}=e;return{getClassGroupId:x=>{if(x.startsWith("[")&&x.endsWith("]"))return rF(x);const u=x.split(I0),d=u[0]===""&&u.length>1?1:0;return T2(u,d,n)},getConflictingClassGroupIds:(x,u)=>{if(u){const d=i[x],f=a[x];return d?f?JD(f,d):d:f||Ym}return a[x]||Ym}}},T2=(e,n,a)=>{if(e.length-n===0)return a.classGroupId;const s=e[n],c=a.nextPart.get(s);if(c){const f=T2(e,n+1,c);if(f)return f}const x=a.validators;if(x===null)return;const u=n===0?e.join(I0):e.slice(n).join(I0),d=x.length;for(let f=0;f<d;f++){const E=x[f];if(E.validator(u))return E.classGroupId}},rF=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const n=e.slice(1,-1),a=n.indexOf(":"),i=n.slice(0,a);return i?tF+i:void 0})(),aF=e=>{const{theme:n,classGroups:a}=e;return iF(a,n)},iF=(e,n)=>{const a=M2();for(const i in e){const s=e[i];qd(s,a,i,n)}return a},qd=(e,n,a,i)=>{const s=e.length;for(let c=0;c<s;c++){const x=e[c];lF(x,n,a,i)}},lF=(e,n,a,i)=>{if(typeof e=="string"){sF(e,n,a);return}if(typeof e=="function"){oF(e,n,a,i);return}cF(e,n,a,i)},sF=(e,n,a)=>{const i=e===""?n:j2(n,e);i.classGroupId=a},oF=(e,n,a,i)=>{if(xF(e)){qd(e(i),n,a,i);return}n.validators===null&&(n.validators=[]),n.validators.push(eF(a,e))},cF=(e,n,a,i)=>{const s=Object.entries(e),c=s.length;for(let x=0;x<c;x++){const[u,d]=s[x];qd(d,j2(n,u),a,i)}},j2=(e,n)=>{let a=e;const i=n.split(I0),s=i.length;for(let c=0;c<s;c++){const x=i[c];let u=a.nextPart.get(x);u||(u=M2(),a.nextPart.set(x,u)),a=u}return a},xF=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,uF=e=>{if(e<1)return{get:()=>{},set:()=>{}};let n=0,a=Object.create(null),i=Object.create(null);const s=(c,x)=>{a[c]=x,n++,n>e&&(n=0,i=a,a=Object.create(null))};return{get(c){let x=a[c];if(x!==void 0)return x;if((x=i[c])!==void 0)return s(c,x),x},set(c,x){c in a?a[c]=x:s(c,x)}}},id="!",Km=":",dF=[],Xm=(e,n,a,i,s)=>({modifiers:e,hasImportantModifier:n,baseClassName:a,maybePostfixModifierPosition:i,isExternal:s}),fF=e=>{const{prefix:n,experimentalParseClassName:a}=e;let i=s=>{const c=[];let x=0,u=0,d=0,f;const E=s.length;for(let A=0;A<E;A++){const B=s[A];if(x===0&&u===0){if(B===Km){c.push(s.slice(d,A)),d=A+1;continue}if(B==="/"){f=A;continue}}B==="["?x++:B==="]"?x--:B==="("?u++:B===")"&&u--}const p=c.length===0?s:s.slice(d);let y=p,b=!1;p.endsWith(id)?(y=p.slice(0,-1),b=!0):p.startsWith(id)&&(y=p.slice(1),b=!0);const C=f&&f>d?f-d:void 0;return Xm(c,b,y,C)};if(n){const s=n+Km,c=i;i=x=>x.startsWith(s)?c(x.slice(s.length)):Xm(dF,!1,x,void 0,!0)}if(a){const s=i;i=c=>a({className:c,parseClassName:s})}return i},hF=e=>{const n=new Map;return e.orderSensitiveModifiers.forEach((a,i)=>{n.set(a,1e6+i)}),a=>{const i=[];let s=[];for(let c=0;c<a.length;c++){const x=a[c],u=x[0]==="[",d=n.has(x);u||d?(s.length>0&&(s.sort(),i.push(...s),s=[]),i.push(x)):s.push(x)}return s.length>0&&(s.sort(),i.push(...s)),i}},pF=e=>({cache:uF(e.cacheSize),parseClassName:fF(e),sortModifiers:hF(e),postfixLookupClassGroupIds:mF(e),...nF(e)}),mF=e=>{const n=Object.create(null),a=e.postfixLookupClassGroups;if(a)for(let i=0;i<a.length;i++)n[a[i]]=!0;return n},EF=/\s+/,gF=(e,n)=>{const{parseClassName:a,getClassGroupId:i,getConflictingClassGroupIds:s,sortModifiers:c,postfixLookupClassGroupIds:x}=n,u=[],d=e.trim().split(EF);let f="";for(let E=d.length-1;E>=0;E-=1){const p=d[E],{isExternal:y,modifiers:b,hasImportantModifier:C,baseClassName:A,maybePostfixModifierPosition:B}=a(p);if(y){f=p+(f.length>0?" "+f:f);continue}let k=!!B,j;if(k){const O=A.substring(0,B);j=i(O);const z=j&&x[j]?i(A):void 0;z&&z!==j&&(j=z,k=!1)}else j=i(A);if(!j){if(!k){f=p+(f.length>0?" "+f:f);continue}if(j=i(A),!j){f=p+(f.length>0?" "+f:f);continue}k=!1}const F=b.length===0?"":b.length===1?b[0]:c(b).join(":"),_=C?F+id:F,R=_+j;if(u.indexOf(R)>-1)continue;u.push(R);const S=s(j,k);for(let O=0;O<S.length;++O){const z=S[O];u.push(_+z)}f=p+(f.length>0?" "+f:f)}return f},yF=(...e)=>{let n=0,a,i,s="";for(;n<e.length;)(a=e[n++])&&(i=R2(a))&&(s&&(s+=" "),s+=i);return s},R2=e=>{if(typeof e=="string")return e;let n,a="";for(let i=0;i<e.length;i++)e[i]&&(n=R2(e[i]))&&(a&&(a+=" "),a+=n);return a},bF=(e,...n)=>{let a,i,s,c;const x=d=>{const f=n.reduce((E,p)=>p(E),e());return a=pF(f),i=a.cache.get,s=a.cache.set,c=u,u(d)},u=d=>{const f=i(d);if(f)return f;const E=gF(d,a);return s(d,E),E};return c=x,(...d)=>c(yF(...d))},CF=[],cn=e=>{const n=a=>a[e]||CF;return n.isThemeGetter=!0,n},O2=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,z2=/^\((?:(\w[\w-]*):)?(.+)\)$/i,AF=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,vF=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,BF=/\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$/,kF=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,DF=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,FF=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ha=e=>AF.test(e),We=e=>!!e&&!Number.isNaN(Number(e)),Rr=e=>!!e&&Number.isInteger(Number(e)),bu=e=>e.endsWith("%")&&We(e.slice(0,-1)),sa=e=>vF.test(e),L2=()=>!0,wF=e=>BF.test(e)&&!kF.test(e),$d=()=>!1,SF=e=>DF.test(e),NF=e=>FF.test(e),_F=e=>!Fe(e)&&!we(e),MF=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)),TF=e=>Qa(e,I2,$d),Fe=e=>O2.test(e),mi=e=>Qa(e,H2,wF),Zm=e=>Qa(e,IF,We),jF=e=>Qa(e,$2,L2),RF=e=>Qa(e,q2,$d),Wm=e=>Qa(e,P2,$d),OF=e=>Qa(e,U2,NF),k0=e=>Qa(e,G2,SF),we=e=>z2.test(e),Bs=e=>wi(e,H2),zF=e=>wi(e,q2),Jm=e=>wi(e,P2),LF=e=>wi(e,I2),PF=e=>wi(e,U2),D0=e=>wi(e,G2,!0),UF=e=>wi(e,$2,!0),Qa=(e,n,a)=>{const i=O2.exec(e);return i?i[1]?n(i[1]):a(i[2]):!1},wi=(e,n,a=!1)=>{const i=z2.exec(e);return i?i[1]?n(i[1]):a:!1},P2=e=>e==="position"||e==="percentage",U2=e=>e==="image"||e==="url",I2=e=>e==="length"||e==="size"||e==="bg-size",H2=e=>e==="length",IF=e=>e==="number",q2=e=>e==="family-name",$2=e=>e==="number"||e==="weight",G2=e=>e==="shadow",HF=()=>{const e=cn("color"),n=cn("font"),a=cn("text"),i=cn("font-weight"),s=cn("tracking"),c=cn("leading"),x=cn("breakpoint"),u=cn("container"),d=cn("spacing"),f=cn("radius"),E=cn("shadow"),p=cn("inset-shadow"),y=cn("text-shadow"),b=cn("drop-shadow"),C=cn("blur"),A=cn("perspective"),B=cn("aspect"),k=cn("ease"),j=cn("animate"),F=()=>["auto","avoid","all","avoid-page","page","left","right","column"],_=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],R=()=>[..._(),we,Fe],S=()=>["auto","hidden","clip","visible","scroll"],O=()=>["auto","contain","none"],z=()=>[we,Fe,d],G=()=>[Ha,"full","auto",...z()],L=()=>[Rr,"none","subgrid",we,Fe],X=()=>["auto",{span:["full",Rr,we,Fe]},Rr,we,Fe],Q=()=>[Rr,"auto",we,Fe],ie=()=>["auto","min","max","fr",we,Fe],Z=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],Y=()=>["start","end","center","stretch","center-safe","end-safe"],U=()=>["auto",...z()],P=()=>[Ha,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...z()],re=()=>[Ha,"screen","full","dvw","lvw","svw","min","max","fit",...z()],he=()=>[Ha,"screen","full","lh","dvh","lvh","svh","min","max","fit",...z()],w=()=>[e,we,Fe],M=()=>[..._(),Jm,Wm,{position:[we,Fe]}],V=()=>["no-repeat",{repeat:["","x","y","space","round"]}],T=()=>["auto","cover","contain",LF,TF,{size:[we,Fe]}],le=()=>[bu,Bs,mi],Ee=()=>["","none","full",f,we,Fe],fe=()=>["",We,Bs,mi],Be=()=>["solid","dashed","dotted","double"],Le=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ke=()=>[We,bu,Jm,Wm],qe=()=>["","none",C,we,Fe],Ze=()=>["none",We,we,Fe],Ot=()=>["none",We,we,Fe],zt=()=>[We,we,Fe],ot=()=>[Ha,"full",...z()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[sa],breakpoint:[sa],color:[L2],container:[sa],"drop-shadow":[sa],ease:["in","out","in-out"],font:[_F],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[sa],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[sa],shadow:[sa],spacing:["px",We],text:[sa],"text-shadow":[sa],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Ha,Fe,we,B]}],container:["container"],"container-type":[{"@container":["","normal","size",we,Fe]}],"container-named":[MF],columns:[{columns:[We,Fe,we,u]}],"break-after":[{"break-after":F()}],"break-before":[{"break-before":F()}],"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:R()}],overflow:[{overflow:S()}],"overflow-x":[{"overflow-x":S()}],"overflow-y":[{"overflow-y":S()}],overscroll:[{overscroll:O()}],"overscroll-x":[{"overscroll-x":O()}],"overscroll-y":[{"overscroll-y":O()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:G()}],"inset-x":[{"inset-x":G()}],"inset-y":[{"inset-y":G()}],start:[{"inset-s":G(),start:G()}],end:[{"inset-e":G(),end:G()}],"inset-bs":[{"inset-bs":G()}],"inset-be":[{"inset-be":G()}],top:[{top:G()}],right:[{right:G()}],bottom:[{bottom:G()}],left:[{left:G()}],visibility:["visible","invisible","collapse"],z:[{z:[Rr,"auto",we,Fe]}],basis:[{basis:[Ha,"full","auto",u,...z()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[We,Ha,"auto","initial","none",Fe]}],grow:[{grow:["",We,we,Fe]}],shrink:[{shrink:["",We,we,Fe]}],order:[{order:[Rr,"first","last","none",we,Fe]}],"grid-cols":[{"grid-cols":L()}],"col-start-end":[{col:X()}],"col-start":[{"col-start":Q()}],"col-end":[{"col-end":Q()}],"grid-rows":[{"grid-rows":L()}],"row-start-end":[{row:X()}],"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":ie()}],"auto-rows":[{"auto-rows":ie()}],gap:[{gap:z()}],"gap-x":[{"gap-x":z()}],"gap-y":[{"gap-y":z()}],"justify-content":[{justify:[...Z(),"normal"]}],"justify-items":[{"justify-items":[...Y(),"normal"]}],"justify-self":[{"justify-self":["auto",...Y()]}],"align-content":[{content:["normal",...Z()]}],"align-items":[{items:[...Y(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...Y(),{baseline:["","last"]}]}],"place-content":[{"place-content":Z()}],"place-items":[{"place-items":[...Y(),"baseline"]}],"place-self":[{"place-self":["auto",...Y()]}],p:[{p:z()}],px:[{px:z()}],py:[{py:z()}],ps:[{ps:z()}],pe:[{pe:z()}],pbs:[{pbs:z()}],pbe:[{pbe:z()}],pt:[{pt:z()}],pr:[{pr:z()}],pb:[{pb:z()}],pl:[{pl:z()}],m:[{m:U()}],mx:[{mx:U()}],my:[{my:U()}],ms:[{ms:U()}],me:[{me:U()}],mbs:[{mbs:U()}],mbe:[{mbe:U()}],mt:[{mt:U()}],mr:[{mr:U()}],mb:[{mb:U()}],ml:[{ml:U()}],"space-x":[{"space-x":z()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":z()}],"space-y-reverse":["space-y-reverse"],size:[{size:P()}],"inline-size":[{inline:["auto",...re()]}],"min-inline-size":[{"min-inline":["auto",...re()]}],"max-inline-size":[{"max-inline":["none",...re()]}],"block-size":[{block:["auto",...he()]}],"min-block-size":[{"min-block":["auto",...he()]}],"max-block-size":[{"max-block":["none",...he()]}],w:[{w:[u,"screen",...P()]}],"min-w":[{"min-w":[u,"screen","none",...P()]}],"max-w":[{"max-w":[u,"screen","none","prose",{screen:[x]},...P()]}],h:[{h:["screen","lh",...P()]}],"min-h":[{"min-h":["screen","lh","none",...P()]}],"max-h":[{"max-h":["screen","lh",...P()]}],"font-size":[{text:["base",a,Bs,mi]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[i,UF,jF]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",bu,Fe]}],"font-family":[{font:[zF,RF,n]}],"font-features":[{"font-features":[Fe]}],"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:[s,we,Fe]}],"line-clamp":[{"line-clamp":[We,"none",we,Zm]}],leading:[{leading:[c,...z()]}],"list-image":[{"list-image":["none",we,Fe]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",we,Fe]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:w()}],"text-color":[{text:w()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Be(),"wavy"]}],"text-decoration-thickness":[{decoration:[We,"from-font","auto",we,mi]}],"text-decoration-color":[{decoration:w()}],"underline-offset":[{"underline-offset":[We,"auto",we,Fe]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:z()}],"tab-size":[{tab:[Rr,we,Fe]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",we,Fe]}],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",we,Fe]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:M()}],"bg-repeat":[{bg:V()}],"bg-size":[{bg:T()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Rr,we,Fe],radial:["",we,Fe],conic:[Rr,we,Fe]},PF,OF]}],"bg-color":[{bg:w()}],"gradient-from-pos":[{from:le()}],"gradient-via-pos":[{via:le()}],"gradient-to-pos":[{to:le()}],"gradient-from":[{from:w()}],"gradient-via":[{via:w()}],"gradient-to":[{to:w()}],rounded:[{rounded:Ee()}],"rounded-s":[{"rounded-s":Ee()}],"rounded-e":[{"rounded-e":Ee()}],"rounded-t":[{"rounded-t":Ee()}],"rounded-r":[{"rounded-r":Ee()}],"rounded-b":[{"rounded-b":Ee()}],"rounded-l":[{"rounded-l":Ee()}],"rounded-ss":[{"rounded-ss":Ee()}],"rounded-se":[{"rounded-se":Ee()}],"rounded-ee":[{"rounded-ee":Ee()}],"rounded-es":[{"rounded-es":Ee()}],"rounded-tl":[{"rounded-tl":Ee()}],"rounded-tr":[{"rounded-tr":Ee()}],"rounded-br":[{"rounded-br":Ee()}],"rounded-bl":[{"rounded-bl":Ee()}],"border-w":[{border:fe()}],"border-w-x":[{"border-x":fe()}],"border-w-y":[{"border-y":fe()}],"border-w-s":[{"border-s":fe()}],"border-w-e":[{"border-e":fe()}],"border-w-bs":[{"border-bs":fe()}],"border-w-be":[{"border-be":fe()}],"border-w-t":[{"border-t":fe()}],"border-w-r":[{"border-r":fe()}],"border-w-b":[{"border-b":fe()}],"border-w-l":[{"border-l":fe()}],"divide-x":[{"divide-x":fe()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":fe()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Be(),"hidden","none"]}],"divide-style":[{divide:[...Be(),"hidden","none"]}],"border-color":[{border:w()}],"border-color-x":[{"border-x":w()}],"border-color-y":[{"border-y":w()}],"border-color-s":[{"border-s":w()}],"border-color-e":[{"border-e":w()}],"border-color-bs":[{"border-bs":w()}],"border-color-be":[{"border-be":w()}],"border-color-t":[{"border-t":w()}],"border-color-r":[{"border-r":w()}],"border-color-b":[{"border-b":w()}],"border-color-l":[{"border-l":w()}],"divide-color":[{divide:w()}],"outline-style":[{outline:[...Be(),"none","hidden"]}],"outline-offset":[{"outline-offset":[We,we,Fe]}],"outline-w":[{outline:["",We,Bs,mi]}],"outline-color":[{outline:w()}],shadow:[{shadow:["","none",E,D0,k0]}],"shadow-color":[{shadow:w()}],"inset-shadow":[{"inset-shadow":["none",p,D0,k0]}],"inset-shadow-color":[{"inset-shadow":w()}],"ring-w":[{ring:fe()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:w()}],"ring-offset-w":[{"ring-offset":[We,mi]}],"ring-offset-color":[{"ring-offset":w()}],"inset-ring-w":[{"inset-ring":fe()}],"inset-ring-color":[{"inset-ring":w()}],"text-shadow":[{"text-shadow":["none",y,D0,k0]}],"text-shadow-color":[{"text-shadow":w()}],opacity:[{opacity:[We,we,Fe]}],"mix-blend":[{"mix-blend":[...Le(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Le()}],"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":[We]}],"mask-image-linear-from-pos":[{"mask-linear-from":ke()}],"mask-image-linear-to-pos":[{"mask-linear-to":ke()}],"mask-image-linear-from-color":[{"mask-linear-from":w()}],"mask-image-linear-to-color":[{"mask-linear-to":w()}],"mask-image-t-from-pos":[{"mask-t-from":ke()}],"mask-image-t-to-pos":[{"mask-t-to":ke()}],"mask-image-t-from-color":[{"mask-t-from":w()}],"mask-image-t-to-color":[{"mask-t-to":w()}],"mask-image-r-from-pos":[{"mask-r-from":ke()}],"mask-image-r-to-pos":[{"mask-r-to":ke()}],"mask-image-r-from-color":[{"mask-r-from":w()}],"mask-image-r-to-color":[{"mask-r-to":w()}],"mask-image-b-from-pos":[{"mask-b-from":ke()}],"mask-image-b-to-pos":[{"mask-b-to":ke()}],"mask-image-b-from-color":[{"mask-b-from":w()}],"mask-image-b-to-color":[{"mask-b-to":w()}],"mask-image-l-from-pos":[{"mask-l-from":ke()}],"mask-image-l-to-pos":[{"mask-l-to":ke()}],"mask-image-l-from-color":[{"mask-l-from":w()}],"mask-image-l-to-color":[{"mask-l-to":w()}],"mask-image-x-from-pos":[{"mask-x-from":ke()}],"mask-image-x-to-pos":[{"mask-x-to":ke()}],"mask-image-x-from-color":[{"mask-x-from":w()}],"mask-image-x-to-color":[{"mask-x-to":w()}],"mask-image-y-from-pos":[{"mask-y-from":ke()}],"mask-image-y-to-pos":[{"mask-y-to":ke()}],"mask-image-y-from-color":[{"mask-y-from":w()}],"mask-image-y-to-color":[{"mask-y-to":w()}],"mask-image-radial":[{"mask-radial":[we,Fe]}],"mask-image-radial-from-pos":[{"mask-radial-from":ke()}],"mask-image-radial-to-pos":[{"mask-radial-to":ke()}],"mask-image-radial-from-color":[{"mask-radial-from":w()}],"mask-image-radial-to-color":[{"mask-radial-to":w()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":_()}],"mask-image-conic-pos":[{"mask-conic":[We]}],"mask-image-conic-from-pos":[{"mask-conic-from":ke()}],"mask-image-conic-to-pos":[{"mask-conic-to":ke()}],"mask-image-conic-from-color":[{"mask-conic-from":w()}],"mask-image-conic-to-color":[{"mask-conic-to":w()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:M()}],"mask-repeat":[{mask:V()}],"mask-size":[{mask:T()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",we,Fe]}],filter:[{filter:["","none",we,Fe]}],blur:[{blur:qe()}],brightness:[{brightness:[We,we,Fe]}],contrast:[{contrast:[We,we,Fe]}],"drop-shadow":[{"drop-shadow":["","none",b,D0,k0]}],"drop-shadow-color":[{"drop-shadow":w()}],grayscale:[{grayscale:["",We,we,Fe]}],"hue-rotate":[{"hue-rotate":[We,we,Fe]}],invert:[{invert:["",We,we,Fe]}],saturate:[{saturate:[We,we,Fe]}],sepia:[{sepia:["",We,we,Fe]}],"backdrop-filter":[{"backdrop-filter":["","none",we,Fe]}],"backdrop-blur":[{"backdrop-blur":qe()}],"backdrop-brightness":[{"backdrop-brightness":[We,we,Fe]}],"backdrop-contrast":[{"backdrop-contrast":[We,we,Fe]}],"backdrop-grayscale":[{"backdrop-grayscale":["",We,we,Fe]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[We,we,Fe]}],"backdrop-invert":[{"backdrop-invert":["",We,we,Fe]}],"backdrop-opacity":[{"backdrop-opacity":[We,we,Fe]}],"backdrop-saturate":[{"backdrop-saturate":[We,we,Fe]}],"backdrop-sepia":[{"backdrop-sepia":["",We,we,Fe]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":z()}],"border-spacing-x":[{"border-spacing-x":z()}],"border-spacing-y":[{"border-spacing-y":z()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",we,Fe]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[We,"initial",we,Fe]}],ease:[{ease:["linear","initial",k,we,Fe]}],delay:[{delay:[We,we,Fe]}],animate:[{animate:["none",j,we,Fe]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[A,we,Fe]}],"perspective-origin":[{"perspective-origin":R()}],rotate:[{rotate:Ze()}],"rotate-x":[{"rotate-x":Ze()}],"rotate-y":[{"rotate-y":Ze()}],"rotate-z":[{"rotate-z":Ze()}],scale:[{scale:Ot()}],"scale-x":[{"scale-x":Ot()}],"scale-y":[{"scale-y":Ot()}],"scale-z":[{"scale-z":Ot()}],"scale-3d":["scale-3d"],skew:[{skew:zt()}],"skew-x":[{"skew-x":zt()}],"skew-y":[{"skew-y":zt()}],transform:[{transform:[we,Fe,"","none","gpu","cpu"]}],"transform-origin":[{origin:R()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ot()}],"translate-x":[{"translate-x":ot()}],"translate-y":[{"translate-y":ot()}],"translate-z":[{"translate-z":ot()}],"translate-none":["translate-none"],zoom:[{zoom:[Rr,we,Fe]}],accent:[{accent:w()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:w()}],"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",we,Fe]}],"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":w()}],"scrollbar-track-color":[{"scrollbar-track":w()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":z()}],"scroll-mx":[{"scroll-mx":z()}],"scroll-my":[{"scroll-my":z()}],"scroll-ms":[{"scroll-ms":z()}],"scroll-me":[{"scroll-me":z()}],"scroll-mbs":[{"scroll-mbs":z()}],"scroll-mbe":[{"scroll-mbe":z()}],"scroll-mt":[{"scroll-mt":z()}],"scroll-mr":[{"scroll-mr":z()}],"scroll-mb":[{"scroll-mb":z()}],"scroll-ml":[{"scroll-ml":z()}],"scroll-p":[{"scroll-p":z()}],"scroll-px":[{"scroll-px":z()}],"scroll-py":[{"scroll-py":z()}],"scroll-ps":[{"scroll-ps":z()}],"scroll-pe":[{"scroll-pe":z()}],"scroll-pbs":[{"scroll-pbs":z()}],"scroll-pbe":[{"scroll-pbe":z()}],"scroll-pt":[{"scroll-pt":z()}],"scroll-pr":[{"scroll-pr":z()}],"scroll-pb":[{"scroll-pb":z()}],"scroll-pl":[{"scroll-pl":z()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",we,Fe]}],fill:[{fill:["none",...w()]}],"stroke-w":[{stroke:[We,Bs,mi,Zm]}],stroke:[{stroke:["none",...w()]}],"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"]}},qF=bF(HF);function ye(...e){return qF(WD(e))}const $F=200,GF=1e3;function VF(e,n){if(!e||e.length>GF)return null;let a;try{a=decodeURIComponent(e)}catch{return null}if(!jk(a)||a.includes("\0")||/^[a-z][a-z\d+.-]*:/i.test(a)||a.startsWith("//")||a.split("/").includes(".."))return null;if(a.startsWith("/")||a.startsWith("~/"))return a;const i=a.replace(/^(?:\.\/)+/,"");return i?n?`${n}/${i}`:i:null}function V2(e,n){const a=new Map;for(const i of n??[]){const s=i.slice(i.lastIndexOf("/")+1),c=a.get(s);c?c.push(i):a.set(s,[i])}return i=>{const s=QF(i);if(!s)return null;const{path:c,location:x}=s;if(c.startsWith("/")||c.startsWith("~/"))return c+x;if(!e)return null;const u=YF(a,c);return u?`${e}/${u}${x}`:null}}function QF(e){if(!e||e.length>$F||/\s/.test(e)||e.includes("://"))return null;const n=e.match(/:([1-9]\d*)(?::\d+)?$/),a=n?n[0]:"",i=n?e.slice(0,-a.length):e;return i.startsWith("../")||i.includes("/../")?null:x2(i)?{path:i.startsWith("./")?i.slice(2):i,location:a}:null}function YF(e,n){const a=n.slice(n.lastIndexOf("/")+1),i=e.get(a);if(!i)return null;const s=i.filter(c=>c===n||c.endsWith(`/${n}`));return s.length===1?s[0]:null}const Gd=D.createContext(null),KF=Gd.Provider,XF=V2(null,void 0);function Q2(e){const n=D.useContext(Gd)?.resolveMention??XF;return e===null?null:n(e)}function Y2(e){return VF(e,D.useContext(Gd)?.worktree??null)}function ZF(e){const n=[],a=e.split(Sk);for(let i=0;i<a.length;i++){const s=a[i];if(i===0){s&&n.push({text:s,hit:!1});continue}const c=s.indexOf(Nk);if(c<0){s&&n.push({text:s,hit:!0});continue}const x=s.slice(0,c),u=s.slice(c+1);x&&n.push({text:x,hit:!0}),u&&n.push({text:u,hit:!1})}return n}function K2(e){return e.state==="setting_up"}const WF={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 JF(e){return K2(e)?{color:"var(--color-muted)",spinning:!0}:{color:e.pr_status&&WF[e.pr_status]||"var(--color-done)",spinning:e.session_status==="working"||e.pr_status==="checks_pending"}}function ew(e){return e.pr_status==="merged"}function tw(e){return Vd(e)==="done"}function Vd(e){return K2(e)?"setting-up":e.manual_status||e.derived_status||"in-progress"}const e9=["done","in-review","in-progress","setting-up","backlog","canceled"],nw=["backlog","in-progress","in-review","done","canceled"];function ld(e){return{done:"Done","in-review":"In review","in-progress":"In progress","setting-up":"Setting up",backlog:"Backlog",canceled:"Canceled"}[e]??e}const rw=["today","yesterday","week","month","older"];function aw(e){return{today:"Today",yesterday:"Yesterday",week:"Past week",month:"Past month",older:"Older"}[e]}function t9(e){const n=new Date(e);return n.setHours(0,0,0,0),n.getTime()}function iw(e,n=new Date){const a=new Date(qn(e));if(!Number.isFinite(a.getTime()))return"older";const i=Math.round((t9(n)-t9(a))/864e5);return i<=0?"today":i===1?"yesterday":i<7?"week":i<30?"month":"older"}const Qd={done:"var(--color-pr-merged)","in-review":"var(--color-pr-mergeable)","in-progress":"var(--color-done)","setting-up":"var(--color-muted)"};function X2(e){return e?e.replace(/^claude-/,"").replace(/-\d{8}$/,"").replace(/-latest$/,""):""}const sd=e=>e.toLowerCase().replace(/[^a-z0-9]/g,""),n9=e=>sd(e.replace(/[\s\-_]\d+[mk]$/i,""));function Z2(e,n=[]){const a=X2(e);if(!a)return"";const i=a.split("/").pop()??a,s=i.split(":").pop()??i;return lw(s,n)??sw(s)}function lw(e,n){const a=sd(e);if(!a)return;const i=n.find(c=>sd(c)===a);if(i)return i;const s=n.filter(c=>n9(c)===n9(e));return s.length===1?s[0]:void 0}function sw(e){const n=ow(e.split("-")),a=i=>i?i.toLowerCase()==="1m"?"1M":i[0].toUpperCase()+i.slice(1):"";return n[0]==="gpt"&&n[1]?[n[1],...n.slice(2).map(a)].join(" "):/^(opus|sonnet|haiku|fable)$/.test(n[0]??"")?n.map(a).join(" "):e}function ow(e){const n=[];for(const a of e){const i=n[n.length-1];i!==void 0&&/^\d+$/.test(a)&&/^\d[\d.]*$/.test(i)?n[n.length-1]=`${i}.${a}`:n.push(a)}return n}function H0(e,n=120){const i=(e.split(`
|
|
12
|
+
`).find(s=>s.trim())??"").replace(/^[\s>#*\-+]+/,"").replace(/`/g,"").replace(/\s+/g," ").trim();return i.length>n?`${i.slice(0,n-1)}…`:i}function Yd(e){const n=Math.max(0,Math.floor(e/1e3)),a=n%60,i=Math.floor(n/60)%60,s=Math.floor(n/3600),c=x=>String(x).padStart(2,"0");return s?`${s}h ${c(i)}m ${c(a)}s`:i?`${i}m ${c(a)}s`:`${a}s`}const cw=6e4,xw=60*cw,uw=24*xw,dw=7*uw;function W2(e){return e.toLocaleTimeString(void 0,{hour:"2-digit",minute:"2-digit"})}function J2(e,n){return`${e.toLocaleDateString(void 0,{month:"short",day:"numeric",...e.getFullYear()===n.getFullYear()?{}:{year:"numeric"}})}, ${W2(e)}`}function fw(e){const n=new Date(qn(e));if(!Number.isFinite(n.getTime()))return"";const a=new Date;return n.toDateString()===a.toDateString()?W2(n):J2(n,a)}function hw(e,n=Date.now()){const a=new Date(qn(e)),i=n-a.getTime();return Number.isFinite(i)?i>=dw?J2(a,new Date(n)):tE(e,n):""}function eE(e){const n=qn(e);if(!Number.isFinite(n))return"";const a=Math.round((Date.now()-n)/1e3);if(a<45)return"now";if(a<90)return"1m";const i=Math.round(a/60);if(i<60)return`${i}m`;const s=Math.round(i/60);return s<24?`${s}h`:`${Math.round(s/24)}d`}let Ei;function tE(e,n=Date.now()){const a=qn(e);if(!Number.isFinite(a))return"";const i=Math.round((n-a)/1e3);if(i<45)return"now";if(Ei??=new Intl.RelativeTimeFormat(void 0,{numeric:"auto"}),i<90)return Ei.format(-1,"minute");const s=Math.round(i/60);if(s<60)return Ei.format(-s,"minute");const c=Math.round(s/60);if(c<24)return Ei.format(-c,"hour");const x=Math.round(c/24);if(x<30)return Ei.format(-x,"day");const u=Math.round(x/30.4);return u<12?Ei.format(-u,"month"):Ei.format(-Math.round(x/365),"year")}function pw(){const e=location.hostname;return!e||e==="localhost"||e.startsWith("127.")?null:`vnc://${e}`}async function mw(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 a=document.execCommand("copy");if(n.remove(),!a)throw new Error("Clipboard unavailable")}const Ew={activity:L7,anchor:U7,apple:H7,atom:Z7,award:J7,banknote:t3,battery:r3,beer:i3,bell:Y8,bike:o3,bird:x3,bluetooth:d3,book:m3,"book-open":h3,bookmark:g3,bot:K8,box:C3,brain:v3,briefcase:k3,brush:F3,bug:_3,"bug-play":S3,building:R3,"building-2":T3,cake:z3,calendar:P3,camera:I3,car:q3,carrot:G3,cat:Q3,"chart-bar":K3,"chart-line":Z3,"chart-pie":J3,clapperboard:ub,clock:fb,cloud:yb,code:vb,"code-xml":Cb,coffee:kb,cog:Fb,compass:Sb,cpu:Mb,"credit-card":jb,crown:Ob,database:Lb,dna:Ub,dog:Hb,"dollar-sign":$b,dumbbell:Vb,egg:Xb,factory:eC,feather:nC,file:sC,"file-code":aC,film:cC,fish:uC,flag:fC,flame:pC,"flask-conical":EC,folder:yC,"gamepad-2":vC,gem:FC,gift:SC,"git-branch":TC,github:zC,glasses:PC,globe:IC,"graduation-cap":qC,"grid-3x3":GC,hammer:QC,headphones:KC,heart:JC,"heart-pulse":ZC,house:nA,image:aA,key:oA,laptop:xA,"layout-grid":hA,layers:dA,leaf:mA,lightbulb:gA,link:bA,lock:BA,mail:wA,map:t2,"map-pin":NA,martini:TA,medal:RA,"message-circle":zA,"message-square":PA,mic:IA,microscope:qA,monitor:GA,moon:QA,music:KA,orbit:ZA,package:JA,paintbrush:tv,paperclip:ec,"paw-print":lv,pen:ov,pencil:xv,phone:dv,pill:hv,pipette:mv,pizza:gv,plane:bv,plug:vv,power:Dv,puzzle:wv,rabbit:_v,radio:Tv,rocket:Ov,ruler:Hv,salad:Uv,satellite:$v,scissors:Vv,server:Kv,settings:Zv,shell:Jv,shield:tB,ship:rB,"shopping-bag":iB,"shopping-cart":sB,smartphone:uB,snail:fB,soup:EB,sparkles:yB,sprout:CB,star:Ju,stethoscope:kB,store:FB,sun:l2,tag:MB,tags:jB,target:OB,telescope:LB,terminal:UB,ticket:HB,"train-front":$B,"tree-pine":VB,"trending-up":YB,trophy:ZB,turtle:JB,user:tk,users:rk,utensils:ik,video:sk,wallet:ck,"wand-2":Fm,"wand-sparkles":Fm,warehouse:dk,wheat:mk,wifi:s2,wine:bk,wrench:Ak,zap:o2};function nE({state:e,color:n="var(--color-working)",className:a}){return e==="failed"?h.jsx("span",{className:ye("dot-error",a),role:"img","aria-label":"Send failed","data-prompt-state":"failed",children:h.jsx(kn,{size:8,strokeWidth:3,"aria-hidden":!0})}):h.jsx("span",{className:ye("dot-spinner",a),style:{"--spin-color":n},role:"img","aria-label":"Prompt pending","data-prompt-state":"sending"})}function gw({w:e,promptState:n,className:a}){const{color:i,spinning:s}=JF(e);return n?h.jsx(nE,{state:n,color:i,className:a}):s?h.jsx("span",{className:ye("dot-spinner",a),style:{"--spin-color":i}}):h.jsx("span",{className:ye("dot",a),style:{background:i}})}function yw(e){const n=Math.max(0,Math.round(e/1e3));if(n<90)return`${n}s`;const a=Math.round(n/60);return a<60?`${a}m`:`${Math.round(a/60)}h`}function bw(){const e=Ae(x=>x.online),n=Ae(x=>x.lastSyncAt),a=Ae(x=>x.update),i=a?.mode==="auto"&&a.available,[s,c]=D.useState(()=>Date.now());return D.useEffect(()=>{if(e)return;const x=setInterval(()=>c(Date.now()),1e3);return()=>clearInterval(x)},[e]),i?h.jsxs("div",{className:"fade-in flex items-center gap-1.5 bg-accent/10 px-3 py-1.5 text-xs text-accent",children:[h.jsx(Zs,{size:13,className:"animate-spin"}),h.jsxs("span",{children:["Updating relay to ",a?.latest??"latest","… reconnecting"]})]}):e?null:h.jsxs("div",{className:"fade-in flex items-center gap-1.5 bg-del/10 px-3 py-1.5 text-xs text-del",children:[h.jsx(Ld,{size:13}),h.jsxs("span",{children:["Offline — retrying…",n?` last synced ${yw(s-n)} ago`:""]})]})}function ua({className:e}){const n=pw();return n?h.jsx("a",{href:n,className:ye("font-semibold text-accent underline underline-offset-2",e),children:"Unlock the Mac"}):null}function rE({text:e,label:n,className:a,size:i=14}){const[s,c]=D.useState(!1),x=async()=>{try{await mw(e),c(!0),window.setTimeout(()=>c(!1),1800)}catch{c(!1)}};return h.jsx("button",{type:"button",onClick:()=>{x()},"aria-label":s?`Copied ${n}`:`Copy ${n}`,className:ye("flex items-center justify-center text-muted transition active:bg-surface-2",a),children:s?h.jsx(xa,{size:i,className:"text-accent"}):h.jsx(Od,{size:i})})}function r9({children:e,className:n}){return h.jsx("span",{className:ye("rounded-md bg-surface-2 px-1.5 py-0.5 font-mono text-[11px] text-muted",n),children:e})}function Cw({children:e}){return h.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 Aw({error:e}){const n=typeof navigator<"u"&&navigator.onLine===!1,a=e instanceof Error?e.message:String(e??"request failed"),i=!(e instanceof gr)||e.status===0;return n?h.jsxs(xn,{children:[h.jsx(Ld,{size:20,className:"mx-auto mb-3 text-muted"}),h.jsx("div",{className:"font-medium text-text",children:"This phone is offline"}),h.jsx("div",{className:"mt-1",children:"Check Wi-Fi or cellular. The list comes back on its own."})]}):h.jsxs(xn,{children:[h.jsx(pb,{size:20,className:"mx-auto mb-3 text-del"}),h.jsx("div",{className:"font-medium text-text",children:i?"Can’t reach the relay":"The relay answered with an error"}),h.jsx("div",{className:"mt-1 break-words font-mono text-[11px] text-muted",children:a}),i?h.jsxs("ul",{className:"mt-4 space-y-2 text-left",children:[h.jsx("li",{children:"Is the Mac awake and online?"}),h.jsxs("li",{children:["If the relay is tailnet-only: Tailscale connected on this phone, and"," ",h.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."]}),h.jsx("li",{children:"Otherwise the Funnel may be stale after a network change — re-deploy on the Mac."})]}):null]})}function xn({children:e}){return h.jsx("div",{className:"mx-auto max-w-xs px-6 py-16 text-center text-sm text-muted",children:e})}function Lr({label:e}){return h.jsxs("div",{className:"flex items-center justify-center gap-2 py-16 text-sm text-muted",children:[h.jsx("span",{className:"size-4 animate-spin rounded-full border-2 border-border border-t-accent"}),e]})}const R0="grid size-8 place-items-center overflow-hidden rounded-lg bg-surface-2 font-semibold text-muted";function qs({icon:e,name:n,artwork:a}){const i=h.jsx("div",{className:ye(R0,"text-xs"),children:(n.trim()[0]??"?").toUpperCase()});if(!e)return i;if(e.kind==="emoji")return h.jsx("div",{className:ye(R0,"text-lg leading-none"),children:e.value});if(e.kind==="named"){const s=Ew[e.value];return s?h.jsx("div",{className:R0,children:h.jsx(s,{size:18,className:"text-muted"})}):i}return e.kind==="github"?h.jsx(aE,{src:`https://github.com/${encodeURIComponent(e.owner)}.png?size=64`,fit:"cover",artwork:a,fallback:i}):h.jsx(vw,{repoName:n,artwork:a,fallback:i})}function aE({src:e,fit:n,artwork:a,fallback:i}){const[s,c]=D.useState(!1);return s?h.jsx(h.Fragment,{children:i}):h.jsx("div",{className:ye(R0,a==="inset"&&"p-1.5"),children:h.jsx("img",{src:e,alt:"",loading:"lazy",className:ye("size-full",a==="full-bleed"?"rounded-[inherit]":"rounded-sm",n==="cover"?"object-cover":"object-contain"),onError:()=>c(!0)})})}function vw({repoName:e,artwork:n,fallback:a}){const{data:i,isError:s}=UD(e);return!e||s||!i?h.jsx(h.Fragment,{children:a}):h.jsx(aE,{src:i,fit:"contain",artwork:n,fallback:a})}function q0({title:e,subtitle:n,menu:a,right:i}){const s=Ae(c=>c.setSidebarOpen);return h.jsxs("header",{className:"pt-safe sticky top-0 z-10 border-b border-border-soft bg-bg/80 backdrop-blur-xl",children:[h.jsxs("div",{className:"flex items-center gap-2 px-3 pb-2.5",children:[a?h.jsx("button",{type:"button",onClick:()=>s(!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:h.jsx(rv,{size:20})}):h.jsx("span",{className:"w-1"}),h.jsxs("div",{className:"min-w-0 flex-1",children:[h.jsx("div",{className:"truncate text-[15px] font-semibold leading-tight",children:e}),n?h.jsx("div",{className:"truncate text-xs leading-tight text-muted",children:n}):null]}),i]}),h.jsx(bw,{})]})}function Bw(e){const n=e.regex,a={},i={begin:/\$\{/,end:/\}/,contains:["self",{begin:/:-/,contains:[a]}]};Object.assign(a,{className:"variable",variants:[{begin:n.concat(/\$[\w\d#@][\w\d_]*/,"(?![\\w\\d])(?![$])")},i]});const s={className:"subst",begin:/\$\(/,end:/\)/,contains:[e.BACKSLASH_ESCAPE]},c=e.inherit(e.COMMENT(),{match:[/(^|\s)/,/#.*$/],scope:{2:"comment"}}),x={begin:/<<-?\s*(?=\w+)/,starts:{contains:[e.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,className:"string"})]}},u={className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,a,s]};s.contains.push(u);const d={match:/\\"/},f={className:"string",begin:/'/,end:/'/},E={match:/\\'/},p={begin:/\$?\(\(/,end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:"number"},e.NUMBER_MODE,a]},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},A=["if","then","else","elif","fi","time","for","while","until","in","do","done","case","esac","coproc","function","select"],B=["true","false"],k={match:/(\/[a-z._-]+)+/},j=["break","cd","continue","eval","exec","exit","export","getopts","hash","pwd","readonly","return","shift","test","times","trap","umask","unset"],F=["alias","bind","builtin","caller","command","declare","echo","enable","help","let","local","logout","mapfile","printf","read","readarray","source","sudo","type","typeset","ulimit","unalias"],_=["autoload","bg","bindkey","bye","cap","chdir","clone","comparguments","compcall","compctl","compdescribe","compfiles","compgroups","compquote","comptags","comptry","compvalues","dirs","disable","disown","echotc","echoti","emulate","fc","fg","float","functions","getcap","getln","history","integer","jobs","kill","limit","log","noglob","popd","print","pushd","pushln","rehash","sched","setcap","setopt","stat","suspend","ttyctl","unfunction","unhash","unlimit","unsetopt","vared","wait","whence","where","which","zcompile","zformat","zftp","zle","zmodload","zparseopts","zprof","zpty","zregexparse","zsocket","zstyle","ztcp"],R=["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:A,literal:B,built_in:[...j,...F,"set","shopt",..._,...R]},contains:[b,e.SHEBANG(),C,p,c,x,k,u,d,f,E,a]}}const kw=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_-]*/}}),Dw=["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"],Fw=["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"],ww=[...Dw,...Fw],Sw=["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(),Nw=["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(),_w=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),Mw=["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 Tw(e){const n=e.regex,a=kw(e),i={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},s="and or not only",c=/@-?\w[\w]*(-\w+)*/,x="[a-zA-Z-][a-zA-Z0-9_-]*",u=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE];return{name:"CSS",case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"},classNameAliases:{keyframePosition:"selector-tag"},contains:[a.BLOCK_COMMENT,i,a.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:"selector-class",begin:"\\."+x,relevance:0},a.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+Nw.join("|")+")"},{begin:":(:)?("+_w.join("|")+")"}]},a.CSS_VARIABLE,{className:"attribute",begin:"\\b("+Mw.join("|")+")\\b"},{begin:/:/,end:/[;}{]/,contains:[a.BLOCK_COMMENT,a.HEXCOLOR,a.IMPORTANT,a.CSS_NUMBER_MODE,a.UNICODE_RANGE,...u,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[...u,{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},a.FUNCTION_DISPATCH]},{begin:n.lookahead(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:c},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:s,attribute:Sw.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...u,a.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+ww.join("|")+")\\b"}]}}function jw(e){const n=e.regex,a={className:"number",relevance:0,variants:[{begin:/([+-]+)?[\d]+_[\d_]+/},{begin:e.NUMBER_RE}]},i=e.COMMENT();i.variants=[{begin:/;/,end:/$/},{begin:/#/,end:/$/}];const s={className:"variable",variants:[{begin:/\$[\w\d"][\w\d_]*/},{begin:/\$\{(.*?)\}/}]},c={className:"literal",begin:/\bon|off|true|false|yes|no\b/},x={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:"'''",end:"'''",relevance:10},{begin:'"""',end:'"""',relevance:10},{begin:'"',end:'"'},{begin:"'",end:"'"}]},u={begin:/\[/,end:/\]/,contains:[i,c,s,x,a,"self"],relevance:0},d=/[A-Za-z0-9_-]+/,f=/"(\\"|[^"])*"/,E=/'[^']*'/,p=n.either(d,f,E),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,u,c,s,x,a]}}]}}const a9="[A-Za-z$_][0-9A-Za-z$_]*",Rw=["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"],Ow=["true","false","null","undefined","NaN","Infinity"],iE=["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"],lE=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],sE=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],zw=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],Lw=[].concat(sE,iE,lE);function Pw(e){const n=e.regex,a=(re,{after:he})=>{const w="</"+re[0].slice(1);return re.input.indexOf(w,he)!==-1},i=a9,s={begin:"<>",end:"</>"},c=/<[A-Za-z0-9\\._:-]+\s*\/>/,x={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(re,he)=>{const w=re[0].length+re.index,M=re.input[w];if(M==="<"||M===","){he.ignoreMatch();return}M===">"&&(a(re,{after:w})||he.ignoreMatch());let V;const T=re.input.substring(w);if(V=T.match(/^\s*=/)){he.ignoreMatch();return}if((V=T.match(/^\s+extends\s+/))&&V.index===0){he.ignoreMatch();return}}},u={$pattern:a9,keyword:Rw,literal:Ow,built_in:Lw,"variable.language":zw},d="[0-9](_?[0-9])*",f=`\\.(${d})`,E="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",p={className:"number",variants:[{begin:`(\\b(${E})((${f})|\\.)?|(${f}))[eE][+-]?(${d})\\b`},{begin:`\\b(${E})\\b((${f})\\b|\\.)?|(${f})\\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:u,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"}},A={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,y],subLanguage:"graphql"}},B={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]},F=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,b,C,A,B,{match:/\$\d+/},p];y.contains=F.concat({begin:/\{/,end:/\}/,keywords:u,contains:["self"].concat(F)});const _=[].concat(j,y.contains),R=_.concat([{begin:/(\s*)\(/,end:/\)/,keywords:u,contains:["self"].concat(_)}]),S={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:u,contains:R},O={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"}}]},z={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:{_:[...iE,...lE]}},G={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},L={variants:[{match:[/function/,/\s+/,i,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[S],illegal:/%/},X={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function Q(re){return n.concat("(?!",re.join("|"),")")}const ie={match:n.concat(/\b/,Q([...sE,"super","import","await"].map(re=>`${re}\\s*\\(`)),i,n.lookahead(/\s*\(/)),className:"title.function",relevance:0},Z={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:/\(\)/},S]},U="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+e.UNDERSCORE_IDENT_RE+")\\s*=>",P={match:[/const|var|let/,/\s+/,i,/\s*/,/=\s*/,/(async\s*)?/,n.lookahead(U)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[S]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:u,exports:{PARAMS_CONTAINS:R,CLASS_REFERENCE:z},illegal:/#(?![$_A-Za-z])/,contains:[e.SHEBANG({label:"shebang",binary:"node",relevance:5}),G,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,b,C,A,B,j,{match:/\$\d+/},p,z,{scope:"attr",match:i+n.lookahead(":"),relevance:0},P,{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:U,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:u,contains:R}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:s.begin,end:s.end},{match:c},{begin:x.begin,"on:begin":x.isTrulyOpeningTag,end:x.end}],subLanguage:"xml",contains:[{begin:x.begin,end:x.end,skip:!0,contains:["self"]}]}]},L,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+e.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[S,e.inherit(e.TITLE_MODE,{begin:i,className:"title.function"})]},{match:/\.\.\./,relevance:0},Z,{match:"\\$"+i,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[S]},ie,X,O,Y,{match:/\$[(.]/}]}}const Uw="([-+]?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)|NaN|[-+]?Infinity",Iw={scope:"number",match:Uw,relevance:0};function Hw(e){const n={className:"attr",begin:/(("(\\.|[^\\"\r\n])*")|('(\\.|[^\\'\r\n])*'))(?=\s*:)/,relevance:1.01},a={match:/[{}[\],:]/,className:"punctuation",relevance:0},i=["true","false","null"],s={scope:"literal",beginKeywords:i.join(" ")};return{name:"JSON",aliases:["jsonc","json5"],keywords:{literal:i},contains:[n,a,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,s,Iw,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE],illegal:"\\S"}}function qw(e){const n=e.regex,a={begin:/<\/?[A-Za-z_]/,end:">",subLanguage:"xml",relevance:0},i={begin:"^[-\\*]{3,}",end:"$"},s={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}]},c={className:"bullet",begin:"^[ ]*([*+-]|(\\d+\\.))(?=\\s+)",end:"\\s+",excludeEnd:!0},x={begin:/^\[[^\n]+\]:/,returnBegin:!0,contains:[{className:"symbol",begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0},{className:"link",begin:/:\s*/,end:/$/,excludeBegin:!0}]},u=/[A-Za-z][A-Za-z0-9+.-]*/,d={variants:[{begin:/\[.+?\]\[.*?\]/,relevance:0},{begin:/\[.+?\]\(((data|javascript|mailto):|(?:http|ftp)s?:\/\/).*?\)/,relevance:2},{begin:n.concat(/\[.+?\]\(/,u,/:\/\/.*?\)/),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}]},f={className:"strong",contains:[],variants:[{begin:/_{2}(?!\s)/,end:/_{2}/},{begin:/\*{2}(?!\s)/,end:/\*{2}/}]},E={className:"emphasis",contains:[],variants:[{begin:/\*(?![*\s])/,end:/\*/},{begin:/_(?![_\s])/,end:/_/,relevance:0}]},p=e.inherit(f,{contains:[]}),y=e.inherit(E,{contains:[]});f.contains.push(y),E.contains.push(p);let b=[a,d];return[f,E,p,y].forEach(k=>{k.contains=k.contains.concat(b)}),b=b.concat(f,E),{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}]}]},a,c,f,E,{className:"quote",begin:"^>\\s+",contains:b,end:"$"},s,i,d,x,{scope:"literal",match:/&([a-zA-Z0-9]+|#[0-9]{1,7}|#[Xx][0-9a-fA-F]{1,6});/}]}}function $w(e){const n=e.regex,a=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"],u={$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"]},d={className:"meta",begin:/^(>>>|\.\.\.) /},f={className:"subst",begin:/\{/,end:/\}/,keywords:u,illegal:/#/},E={begin:/\{\{/,relevance:0},p={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,d],relevance:10},{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,d],relevance:10},{begin:/([fF][rR]|[rR][fF]|[fF])'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,d,E,f]},{begin:/([fF][rR]|[rR][fF]|[fF])"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,d,E,f]},{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,E,f]},{begin:/([fF][rR]|[rR][fF]|[fF])"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,E,f]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},y="[0-9](_?[0-9])*",b=`(\\b(${y}))?\\.(${y})|\\b(${y})\\.`,C=`\\b|${i.join("|")}`,A={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})`}]},B={className:"comment",begin:n.lookahead(/# type:/),end:/$/,keywords:u,contains:[{begin:/# type:/},{begin:/#/,end:/\b\B/,endsWithParent:!0}]},k={className:"params",variants:[{className:"",begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:u,contains:["self",d,A,p,e.HASH_COMMENT_MODE]}]};return f.contains=[p,A,d],{name:"Python",aliases:["py","gyp","ipython"],unicodeRegex:!0,keywords:u,illegal:/(<\/|\?)|=>/,contains:[d,A,{scope:"variable.language",match:/\bself\b/},{beginKeywords:"if",relevance:0},{match:/\bor\b/,scope:"keyword"},p,B,e.HASH_COMMENT_MODE,{match:[/\bdef/,/\s+/,a],scope:{1:"keyword",3:"title.function"},contains:[k]},{variants:[{match:[/\bclass/,/\s+/,a,/\s*/,/\(\s*/,a,/\s*\)/]},{match:[/\bclass/,/\s+/,a]}],scope:{1:"keyword",3:"title.class",6:"title.class.inherited"}},{className:"meta",begin:/^[\t ]*@/,end:/(?=#)|$/,contains:[A,k,p]}]}}function Gw(e){const n=e.regex,a=e.COMMENT("--","$"),i={scope:"string",variants:[{begin:/'/,end:/'/,contains:[{match:/''/}]}]},s={begin:/"/,end:/"/,contains:[{match:/""/}]},c=["true","false","unknown"],x=["double precision","large object","with timezone","without timezone"],u=["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"],d=["add","asc","collation","desc","final","first","last","view"],f=["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"],E=["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=E,C=[...f,...d].filter(R=>!E.includes(R)),A={scope:"variable",match:/@[a-z0-9][a-z0-9_]*/},B={scope:"operator",match:/[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,relevance:0},k={match:n.concat(/\b/,n.either(...b),/\s*\(/),relevance:0,keywords:{built_in:b}};function j(R){return n.concat(/\b/,n.either(...R.map(S=>S.replace(/\s+/,"\\s+"))),/\b/)}const F={scope:"keyword",match:j(y),relevance:0};function _(R,{exceptions:S,when:O}={}){const z=O;return S=S||[],R.map(G=>G.match(/\|\d+$/)||S.includes(G)?G:z(G)?`${G}|0`:G)}return{name:"SQL",case_insensitive:!0,illegal:/[{}]|<\//,keywords:{$pattern:/\b[\w\.]+/,keyword:_(C,{when:R=>R.length<3}),literal:c,type:u,built_in:p},contains:[{scope:"type",match:j(x)},F,k,A,i,s,e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,a,B]}}const $0="[A-Za-z$_][0-9A-Za-z$_]*",oE=["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"],cE=["true","false","null","undefined","NaN","Infinity"],xE=["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"],uE=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],dE=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],fE=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],hE=[].concat(dE,xE,uE);function Vw(e){const n=e.regex,a=(re,{after:he})=>{const w="</"+re[0].slice(1);return re.input.indexOf(w,he)!==-1},i=$0,s={begin:"<>",end:"</>"},c=/<[A-Za-z0-9\\._:-]+\s*\/>/,x={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(re,he)=>{const w=re[0].length+re.index,M=re.input[w];if(M==="<"||M===","){he.ignoreMatch();return}M===">"&&(a(re,{after:w})||he.ignoreMatch());let V;const T=re.input.substring(w);if(V=T.match(/^\s*=/)){he.ignoreMatch();return}if((V=T.match(/^\s+extends\s+/))&&V.index===0){he.ignoreMatch();return}}},u={$pattern:$0,keyword:oE,literal:cE,built_in:hE,"variable.language":fE},d="[0-9](_?[0-9])*",f=`\\.(${d})`,E="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",p={className:"number",variants:[{begin:`(\\b(${E})((${f})|\\.)?|(${f}))[eE][+-]?(${d})\\b`},{begin:`\\b(${E})\\b((${f})\\b|\\.)?|(${f})\\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:u,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"}},A={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,y],subLanguage:"graphql"}},B={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]},F=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,b,C,A,B,{match:/\$\d+/},p];y.contains=F.concat({begin:/\{/,end:/\}/,keywords:u,contains:["self"].concat(F)});const _=[].concat(j,y.contains),R=_.concat([{begin:/(\s*)\(/,end:/\)/,keywords:u,contains:["self"].concat(_)}]),S={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:u,contains:R},O={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"}}]},z={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:{_:[...xE,...uE]}},G={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},L={variants:[{match:[/function/,/\s+/,i,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[S],illegal:/%/},X={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function Q(re){return n.concat("(?!",re.join("|"),")")}const ie={match:n.concat(/\b/,Q([...dE,"super","import","await"].map(re=>`${re}\\s*\\(`)),i,n.lookahead(/\s*\(/)),className:"title.function",relevance:0},Z={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:/\(\)/},S]},U="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+e.UNDERSCORE_IDENT_RE+")\\s*=>",P={match:[/const|var|let/,/\s+/,i,/\s*/,/=\s*/,/(async\s*)?/,n.lookahead(U)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[S]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:u,exports:{PARAMS_CONTAINS:R,CLASS_REFERENCE:z},illegal:/#(?![$_A-Za-z])/,contains:[e.SHEBANG({label:"shebang",binary:"node",relevance:5}),G,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,b,C,A,B,j,{match:/\$\d+/},p,z,{scope:"attr",match:i+n.lookahead(":"),relevance:0},P,{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:U,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:u,contains:R}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:s.begin,end:s.end},{match:c},{begin:x.begin,"on:begin":x.isTrulyOpeningTag,end:x.end}],subLanguage:"xml",contains:[{begin:x.begin,end:x.end,skip:!0,contains:["self"]}]}]},L,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+e.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[S,e.inherit(e.TITLE_MODE,{begin:i,className:"title.function"})]},{match:/\.\.\./,relevance:0},Z,{match:"\\$"+i,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[S]},ie,X,O,Y,{match:/\$[(.]/}]}}function Qw(e){const n=e.regex,a=Vw(e),i=$0,s=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],c={begin:[/namespace/,/\s+/,e.IDENT_RE],beginScope:{1:"keyword",3:"title.class"}},x={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:s},contains:[a.exports.CLASS_REFERENCE]},u={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},d=["type","interface","public","private","protected","implements","declare","abstract","readonly","enum","override","satisfies"],f={$pattern:$0,keyword:oE.concat(d),literal:cE,built_in:hE.concat(s),"variable.language":fE},E={className:"meta",begin:"@"+i},p=(A,B,k)=>{const j=A.contains.findIndex(F=>F.label===B);if(j===-1)throw new Error("can not find mode to replace");A.contains.splice(j,1,k)};Object.assign(a.keywords,f),a.exports.PARAMS_CONTAINS.push(E);const y=a.contains.find(A=>A.scope==="attr"),b=Object.assign({},y,{match:n.concat(i,n.lookahead(/\s*\?:/))});a.exports.PARAMS_CONTAINS.push([a.exports.CLASS_REFERENCE,y,b]),a.contains=a.contains.concat([E,c,x,b]),p(a,"shebang",e.SHEBANG()),p(a,"use_strict",u);const C=a.contains.find(A=>A.label==="func.def");return C.relevance=0,Object.assign(a,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),a}function Yw(e){const n=e.regex,a=n.concat(/[\p{L}_]/u,n.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),i=/[\p{L}0-9._:-]+/u,s={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},c={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},x=e.inherit(c,{begin:/\(/,end:/\)/}),u=e.inherit(e.APOS_STRING_MODE,{className:"string"}),d=e.inherit(e.QUOTE_STRING_MODE,{className:"string"}),f={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:[s]},{begin:/'/,end:/'/,contains:[s]},{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:[c,d,u,x,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[c,x,d,u]}]}]},e.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},s,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[d]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[f],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[f],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:n.concat(/</,n.lookahead(n.concat(a,n.either(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:a,relevance:0,starts:f}]},{className:"tag",begin:n.concat(/<\//,n.lookahead(n.concat(a,/>/))),contains:[{className:"name",begin:a,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}function Kw(e){const n="true false yes no null",a="[\\w#;/?:@&=+$,.~*'()[\\]]+",i={className:"attr",variants:[{begin:/[\w*@][\w*@ :()\./-]*:(?=[ \t]|$)/},{begin:/"[\w*@][\w*@ :()\./-]*":(?=[ \t]|$)/},{begin:/'[\w*@][\w*@ :()\./-]*':(?=[ \t]|$)/}]},s={className:"template-variable",variants:[{begin:/\{\{/,end:/\}\}/},{begin:/%\{/,end:/\}/}]},c={className:"string",relevance:0,begin:/'/,end:/'/,contains:[{match:/''/,scope:"char.escape",relevance:0}]},x={className:"string",relevance:0,variants:[{begin:/"/,end:/"/},{begin:/\S+/}],contains:[e.BACKSLASH_ESCAPE,s]},u=e.inherit(x,{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},A={begin:"\\[",end:"\\]",contains:[b],illegal:"\\n",relevance:0},B=[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+!"+a},{className:"type",begin:"!<"+a+">"},{className:"type",begin:"!"+a},{className:"type",begin:"!!"+a},{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,A,c,x],k=[...B];return k.pop(),k.push(u),b.contains=k,{name:"YAML",case_insensitive:!0,aliases:["yml"],contains:B}}var Cu,i9;function Xw(){if(i9)return Cu;i9=1;function e(H){return H instanceof Map?H.clear=H.delete=H.set=function(){throw new Error("map is read-only")}:H instanceof Set&&(H.add=H.clear=H.delete=function(){throw new Error("set is read-only")}),Object.freeze(H),Object.getOwnPropertyNames(H).forEach(ce=>{const be=H[ce],$e=typeof be;($e==="object"||$e==="function")&&!Object.isFrozen(be)&&e(be)}),H}class n{constructor(ce){ce.data===void 0&&(ce.data={}),this.data=ce.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function a(H){return H.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function i(H,...ce){const be=Object.create(null);for(const $e in H)be[$e]=H[$e];return ce.forEach(function($e){for(const Mt in $e)be[Mt]=$e[Mt]}),be}const s="</span>",c=H=>!!H.scope,x=(H,{prefix:ce})=>{if(H.startsWith("language:"))return H.replace("language:","language-");if(H.includes(".")){const be=H.split(".");return[`${ce}${be.shift()}`,...be.map(($e,Mt)=>`${$e}${"_".repeat(Mt+1)}`)].join(" ")}return`${ce}${H}`};class u{constructor(ce,be){this.buffer="",this.classPrefix=be.classPrefix,ce.walk(this)}addText(ce){this.buffer+=a(ce)}openNode(ce){if(!c(ce))return;const be=x(ce.scope,{prefix:this.classPrefix});this.span(be)}closeNode(ce){c(ce)&&(this.buffer+=s)}value(){return this.buffer}span(ce){this.buffer+=`<span class="${ce}">`}}const d=(H={})=>{const ce={children:[]};return Object.assign(ce,H),ce};class f{constructor(){this.rootNode=d(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(ce){this.top.children.push(ce)}openNode(ce){const be=d({scope:ce});this.add(be),this.stack.push(be)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(ce){return this.constructor._walk(ce,this.rootNode)}static _walk(ce,be){return typeof be=="string"?ce.addText(be):be.children&&(ce.openNode(be),be.children.forEach($e=>this._walk(ce,$e)),ce.closeNode(be)),ce}static _collapse(ce){typeof ce!="string"&&ce.children&&(ce.children.every(be=>typeof be=="string")?ce.children=[ce.children.join("")]:ce.children.forEach(be=>{f._collapse(be)}))}}class E extends f{constructor(ce){super(),this.options=ce}addText(ce){ce!==""&&this.add(ce)}startScope(ce){this.openNode(ce)}endScope(){this.closeNode()}__addSublanguage(ce,be){const $e=ce.root;be&&($e.scope=`language:${be}`),this.add($e)}toHTML(){return new u(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function p(H){return H?typeof H=="string"?H:H.source:null}function y(H){return A("(?=",H,")")}function b(H){return A("(?:",H,")*")}function C(H){return A("(?:",H,")?")}function A(...H){return H.map(be=>p(be)).join("")}function B(H){const ce=H[H.length-1];return typeof ce=="object"&&ce.constructor===Object?(H.splice(H.length-1,1),ce):{}}function k(...H){return"("+(B(H).capture?"":"?:")+H.map($e=>p($e)).join("|")+")"}function j(H){return new RegExp(H.toString()+"|").exec("").length-1}function F(H,ce){const be=H&&H.exec(ce);return be&&be.index===0}const _=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function R(H,{joinWith:ce}){let be=0;return H.map($e=>{be+=1;const Mt=be;let Bt=p($e),Ne="";for(;Bt.length>0;){const De=_.exec(Bt);if(!De){Ne+=Bt;break}Ne+=Bt.substring(0,De.index),Bt=Bt.substring(De.index+De[0].length),De[0][0]==="\\"&&De[1]?Ne+="\\"+String(Number(De[1])+Mt):(Ne+=De[0],De[0]==="("&&be++)}return Ne}).map($e=>`(${$e})`).join(ce)}const S=/\b\B/,O="[a-zA-Z]\\w*",z="[a-zA-Z_]\\w*",G="\\b\\d+(\\.\\d+)?",L="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",X="\\b(0b[01]+)",Q="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",ie=(H={})=>{const ce=/^#![ ]*\//;return H.binary&&(H.begin=A(ce,/.*\b/,H.binary,/\b.*/)),i({scope:"meta",begin:ce,end:/$/,relevance:0,"on:begin":(be,$e)=>{be.index!==0&&$e.ignoreMatch()}},H)},Z={begin:"\\\\[\\s\\S]",relevance:0},Y={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[Z]},U={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[Z]},P={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/},re=function(H,ce,be={}){const $e=i({scope:"comment",begin:H,end:ce,contains:[]},be);$e.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 Mt=k("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 $e.contains.push({begin:A(/[ ]+/,"(",Mt,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),$e},he=re("//","$"),w=re("/\\*","\\*/"),M=re("#","$"),V={scope:"number",begin:G,relevance:0},T={scope:"number",begin:L,relevance:0},le={scope:"number",begin:X,relevance:0},Ee={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[Z,{begin:/\[/,end:/\]/,relevance:0,contains:[Z]}]},fe={scope:"title",begin:O,relevance:0},Be={scope:"title",begin:z,relevance:0},Le={begin:"\\.\\s*"+z,relevance:0};var qe=Object.freeze({__proto__:null,APOS_STRING_MODE:Y,BACKSLASH_ESCAPE:Z,BINARY_NUMBER_MODE:le,BINARY_NUMBER_RE:X,COMMENT:re,C_BLOCK_COMMENT_MODE:w,C_LINE_COMMENT_MODE:he,C_NUMBER_MODE:T,C_NUMBER_RE:L,END_SAME_AS_BEGIN:function(H){return Object.assign(H,{"on:begin":(ce,be)=>{be.data._beginMatch=ce[1]},"on:end":(ce,be)=>{be.data._beginMatch!==ce[1]&&be.ignoreMatch()}})},HASH_COMMENT_MODE:M,IDENT_RE:O,MATCH_NOTHING_RE:S,METHOD_GUARD:Le,NUMBER_MODE:V,NUMBER_RE:G,PHRASAL_WORDS_MODE:P,QUOTE_STRING_MODE:U,REGEXP_MODE:Ee,RE_STARTERS_RE:Q,SHEBANG:ie,TITLE_MODE:fe,UNDERSCORE_IDENT_RE:z,UNDERSCORE_TITLE_MODE:Be});function Ze(H,ce){H.input[H.index-1]==="."&&ce.ignoreMatch()}function Ot(H,ce){H.className!==void 0&&(H.scope=H.className,delete H.className)}function zt(H,ce){ce&&H.beginKeywords&&(H.begin="\\b("+H.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",H.__beforeBegin=Ze,H.keywords=H.keywords||H.beginKeywords,delete H.beginKeywords,H.relevance===void 0&&(H.relevance=0))}function ot(H,ce){Array.isArray(H.illegal)&&(H.illegal=k(...H.illegal))}function Ut(H,ce){if(H.match){if(H.begin||H.end)throw new Error("begin & end are not supported with match");H.begin=H.match,delete H.match}}function Wt(H,ce){H.relevance===void 0&&(H.relevance=1)}const Ht=(H,ce)=>{if(!H.beforeMatch)return;if(H.starts)throw new Error("beforeMatch cannot be used with starts");const be=Object.assign({},H);Object.keys(H).forEach($e=>{delete H[$e]}),H.keywords=be.keywords,H.begin=A(be.beforeMatch,y(be.begin)),H.starts={relevance:0,contains:[Object.assign(be,{endsParent:!0})]},H.relevance=0,delete be.beforeMatch},Gt=["of","and","for","in","not","or","if","then","parent","list","value"],wt="keyword";function dn(H,ce,be=wt){const $e=Object.create(null);return typeof H=="string"?Mt(be,H.split(" ")):Array.isArray(H)?Mt(be,H):Object.keys(H).forEach(function(Bt){Object.assign($e,dn(H[Bt],ce,Bt))}),$e;function Mt(Bt,Ne){ce&&(Ne=Ne.map(De=>De.toLowerCase())),Ne.forEach(function(De){const He=De.split("|");$e[He[0]]=[Bt,St(He[0],He[1])]})}}function St(H,ce){return ce?Number(ce):de(H)?0:1}function de(H){return Gt.includes(H.toLowerCase())}const ht={},Je=H=>{console.error(H)},oe=(H,...ce)=>{console.log(`WARN: ${H}`,...ce)},te=(H,ce)=>{ht[`${H}/${ce}`]||(console.log(`Deprecated as of ${H}. ${ce}`),ht[`${H}/${ce}`]=!0)},W=new Error;function ve(H,ce,{key:be}){let $e=0;const Mt=H[be],Bt={},Ne={};for(let De=1;De<=ce.length;De++)Ne[De+$e]=Mt[De],Bt[De+$e]=!0,$e+=j(ce[De-1]);H[be]=Ne,H[be]._emit=Bt,H[be]._multi=!0}function Ue(H){if(Array.isArray(H.begin)){if(H.skip||H.excludeBegin||H.returnBegin)throw Je("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),W;if(typeof H.beginScope!="object"||H.beginScope===null)throw Je("beginScope must be object"),W;ve(H,H.begin,{key:"beginScope"}),H.begin=R(H.begin,{joinWith:""})}}function Te(H){if(Array.isArray(H.end)){if(H.skip||H.excludeEnd||H.returnEnd)throw Je("skip, excludeEnd, returnEnd not compatible with endScope: {}"),W;if(typeof H.endScope!="object"||H.endScope===null)throw Je("endScope must be object"),W;ve(H,H.end,{key:"endScope"}),H.end=R(H.end,{joinWith:""})}}function sn(H){H.scope&&typeof H.scope=="object"&&H.scope!==null&&(H.beginScope=H.scope,delete H.scope)}function Gn(H){sn(H),typeof H.beginScope=="string"&&(H.beginScope={_wrap:H.beginScope}),typeof H.endScope=="string"&&(H.endScope={_wrap:H.endScope}),Ue(H),Te(H)}function dt(H){function ce(Ne,De){return new RegExp(p(Ne),"m"+(H.case_insensitive?"i":"")+(H.unicodeRegex?"u":"")+(De?"g":""))}class be{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(De,He){He.position=this.position++,this.matchIndexes[this.matchAt]=He,this.regexes.push([He,De]),this.matchAt+=j(De)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const De=this.regexes.map(He=>He[1]);this.matcherRe=ce(R(De,{joinWith:"|"}),!0),this.lastIndex=0}exec(De){this.matcherRe.lastIndex=this.lastIndex;const He=this.matcherRe.exec(De);if(!He)return null;const Vt=He.findIndex((Ur,Mi)=>Mi>0&&Ur!==void 0),Lt=this.matchIndexes[Vt];return He.splice(0,Vt),Object.assign(He,Lt)}}class $e{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(De){if(this.multiRegexes[De])return this.multiRegexes[De];const He=new be;return this.rules.slice(De).forEach(([Vt,Lt])=>He.addRule(Vt,Lt)),He.compile(),this.multiRegexes[De]=He,He}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(De,He){this.rules.push([De,He]),He.type==="begin"&&this.count++}exec(De){const He=this.getMatcher(this.regexIndex);He.lastIndex=this.lastIndex;let Vt=He.exec(De);if(this.resumingScanAtSamePosition()&&!(Vt&&Vt.index===this.lastIndex)){const Lt=this.getMatcher(0);Lt.lastIndex=this.lastIndex+1,Vt=Lt.exec(De)}return Vt&&(this.regexIndex+=Vt.position+1,this.regexIndex===this.count&&this.considerAll()),Vt}}function Mt(Ne){const De=new $e;return Ne.contains.forEach(He=>De.addRule(He.begin,{rule:He,type:"begin"})),Ne.terminatorEnd&&De.addRule(Ne.terminatorEnd,{type:"end"}),Ne.illegal&&De.addRule(Ne.illegal,{type:"illegal"}),De}function Bt(Ne,De){const He=Ne;if(Ne.isCompiled)return He;[Ot,Ut,Gn,Ht].forEach(Lt=>Lt(Ne,De)),H.compilerExtensions.forEach(Lt=>Lt(Ne,De)),Ne.__beforeBegin=null,[zt,ot,Wt].forEach(Lt=>Lt(Ne,De)),Ne.isCompiled=!0;let Vt=null;return typeof Ne.keywords=="object"&&Ne.keywords.$pattern&&(Ne.keywords=Object.assign({},Ne.keywords),Vt=Ne.keywords.$pattern,delete Ne.keywords.$pattern),Vt=Vt||/\w+/,Ne.keywords&&(Ne.keywords=dn(Ne.keywords,H.case_insensitive)),He.keywordPatternRe=ce(Vt,!0),De&&(Ne.begin||(Ne.begin=/\B|\b/),He.beginRe=ce(He.begin),!Ne.end&&!Ne.endsWithParent&&(Ne.end=/\B|\b/),Ne.end&&(He.endRe=ce(He.end)),He.terminatorEnd=p(He.end)||"",Ne.endsWithParent&&De.terminatorEnd&&(He.terminatorEnd+=(Ne.end?"|":"")+De.terminatorEnd)),Ne.illegal&&(He.illegalRe=ce(Ne.illegal)),Ne.contains||(Ne.contains=[]),Ne.contains=[].concat(...Ne.contains.map(function(Lt){return yn(Lt==="self"?Ne:Lt)})),Ne.contains.forEach(function(Lt){Bt(Lt,He)}),Ne.starts&&Bt(Ne.starts,De),He.matcher=Mt(He),He}if(H.compilerExtensions||(H.compilerExtensions=[]),H.contains&&H.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return H.classNameAliases=i(H.classNameAliases||{}),Bt(H)}function _t(H){return H?H.endsWithParent||_t(H.starts):!1}function yn(H){return H.variants&&!H.cachedVariants&&(H.cachedVariants=H.variants.map(function(ce){return i(H,{variants:null},ce)})),H.cachedVariants?H.cachedVariants:_t(H)?i(H,{starts:H.starts?i(H.starts):null}):Object.isFrozen(H)?i(H):H}var pt="11.11.2";class Sr extends Error{constructor(ce,be){super(ce),this.name="HTMLInjectionError",this.html=be}}const wn=a,to=i,Ka=Symbol("nomatch"),_i=7,Xa=function(H){const ce=Object.create(null),be=Object.create(null),$e=[];let Mt=!0;const Bt="Could not find the language '{}', did you forget to load/include a language module?",Ne={disableAutodetect:!0,name:"Plain text",contains:[]};let De={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:E};function He(pe){return De.noHighlightRe.test(pe)}function Vt(pe){let je=pe.className+" ";je+=pe.parentNode?pe.parentNode.className:"";const et=De.languageDetectRe.exec(je);if(et){const mt=Sn(et[1]);return mt||(oe(Bt.replace("{}",et[1])),oe("Falling back to no-highlight mode for this block.",pe)),mt?et[1]:"no-highlight"}return je.split(/\s+/).find(mt=>He(mt)||Sn(mt))}function Lt(pe,je,et){let mt="",Yt="";typeof je=="object"?(mt=pe,et=je.ignoreIllegals,Yt=je.language):(te("10.7.0","highlight(lang, code, ...args) has been deprecated."),te("10.7.0",`Please use highlight(code, options) instead.
|
|
13
|
+
https://github.com/highlightjs/highlight.js/issues/2277`),Yt=pe,mt=je),et===void 0&&(et=!0);const Cn={code:mt,language:Yt};Wa("before:highlight",Cn);const Vn=Cn.result?Cn.result:Ur(Cn.language,Cn.code,et);return Vn.code=Cn.code,Wa("after:highlight",Vn),Vn}function Ur(pe,je,et,mt){const Yt=Object.create(null);function Cn(ge,_e){return ge.keywords[_e]}function Vn(){if(!Ie.keywords){en.addText(Et);return}let ge=0;Ie.keywordPatternRe.lastIndex=0;let _e=Ie.keywordPatternRe.exec(Et),Ye="";for(;_e;){Ye+=Et.substring(ge,_e.index);const at=fn.case_insensitive?_e[0].toLowerCase():_e[0],It=Cn(Ie,at);if(It){const[lr,Ml]=It;if(en.addText(Ye),Ye="",Yt[at]=(Yt[at]||0)+1,Yt[at]<=_i&&(Ea+=Ml),lr.startsWith("_"))Ye+=_e[0];else{const oo=fn.classNameAliases[lr]||lr;Qn(_e[0],oo)}}else Ye+=_e[0];ge=Ie.keywordPatternRe.lastIndex,_e=Ie.keywordPatternRe.exec(Et)}Ye+=Et.substring(ge),en.addText(Ye)}function Tn(){if(Et==="")return;let ge=null;if(typeof Ie.subLanguage=="string"){if(!ce[Ie.subLanguage]){en.addText(Et);return}ge=Ur(Ie.subLanguage,Et,!0,so[Ie.subLanguage]),so[Ie.subLanguage]=ge._top}else ge=Ti(Et,Ie.subLanguage.length?Ie.subLanguage:null);Ie.relevance>0&&(Ea+=ge.relevance),en.__addSublanguage(ge._emitter,ge.language)}function Nt(){Ie.subLanguage!=null?Tn():Vn(),Et=""}function Qn(ge,_e){ge!==""&&(en.startScope(_e),en.addText(ge),en.endScope())}function io(ge,_e){let Ye=1;const at=_e.length-1;for(;Ye<=at;){if(!ge._emit[Ye]){Ye++;continue}const It=fn.classNameAliases[ge[Ye]]||ge[Ye],lr=_e[Ye];It?Qn(lr,It):(Et=lr,Vn(),Et=""),Ye++}}function Ri(ge,_e){return ge.scope&&typeof ge.scope=="string"&&en.openNode(fn.classNameAliases[ge.scope]||ge.scope),ge.beginScope&&(ge.beginScope._wrap?(Qn(Et,fn.classNameAliases[ge.beginScope._wrap]||ge.beginScope._wrap),Et=""):ge.beginScope._multi&&(io(ge.beginScope,_e),Et="")),Ie=Object.create(ge,{parent:{value:Ie}}),Ie}function Sl(ge,_e,Ye){let at=F(ge.endRe,Ye);if(at){if(ge["on:end"]){const It=new n(ge);ge["on:end"](_e,It),It.isMatchIgnored&&(at=!1)}if(at){for(;ge.endsParent&&ge.parent;)ge=ge.parent;return ge}}if(ge.endsWithParent)return Sl(ge.parent,_e,Ye)}function Oi(ge){return Ie.matcher.regexIndex===0?(Et+=ge[0],1):(ga=!0,0)}function lc(ge){const _e=ge[0],Ye=ge.rule,at=new n(Ye),It=[Ye.__beforeBegin,Ye["on:begin"]];for(const lr of It)if(lr&&(lr(ge,at),at.isMatchIgnored))return Oi(_e);return Ye.skip?Et+=_e:(Ye.excludeBegin&&(Et+=_e),Nt(),!Ye.returnBegin&&!Ye.excludeBegin&&(Et=_e)),Ri(Ye,ge),Ye.returnBegin?0:_e.length}function jn(ge){const _e=ge[0],Ye=je.substring(ge.index),at=Sl(Ie,ge,Ye);if(!at)return Ka;const It=Ie;Ie.endScope&&Ie.endScope._wrap?(Nt(),Qn(_e,Ie.endScope._wrap)):Ie.endScope&&Ie.endScope._multi?(Nt(),io(Ie.endScope,ge)):It.skip?Et+=_e:(It.returnEnd||It.excludeEnd||(Et+=_e),Nt(),It.excludeEnd&&(Et=_e));do Ie.scope&&en.closeNode(),!Ie.skip&&!Ie.subLanguage&&(Ea+=Ie.relevance),Ie=Ie.parent;while(Ie!==at.parent);return at.starts&&Ri(at.starts,ge),It.returnEnd?0:_e.length}function Nl(){const ge=[];for(let _e=Ie;_e!==fn;_e=_e.parent)_e.scope&&ge.unshift(_e.scope);ge.forEach(_e=>en.openNode(_e))}let Ja={};function zi(ge,_e){const Ye=_e&&_e[0];if(Et+=ge,Ye==null)return Nt(),0;if(Ja.type==="begin"&&_e.type==="end"&&Ja.index===_e.index&&Ye===""){if(Et+=je.slice(_e.index,_e.index+1),!Mt){const at=new Error(`0 width match regex (${pe})`);throw at.languageName=pe,at.badRule=Ja.rule,at}return 1}if(Ja=_e,_e.type==="begin")return lc(_e);if(_e.type==="illegal"&&!et){const at=new Error('Illegal lexeme "'+Ye+'" for mode "'+(Ie.scope||"<unnamed>")+'"');throw at.mode=Ie,at}else if(_e.type==="end"){const at=jn(_e);if(at!==Ka)return at}if(_e.type==="illegal"&&Ye==="")return _e.index===je.length||(Et+=`
|
|
14
|
+
`),1;if(_l>1e5&&_l>_e.index*3)throw new Error("potential infinite loop, way more iterations than matches");return Et+=Ye,Ye.length}const fn=Sn(pe);if(!fn)throw Je(Bt.replace("{}",pe)),new Error('Unknown language: "'+pe+'"');const lo=dt(fn);let Li="",Ie=mt||lo;const so={},en=new De.__emitter(De);Nl();let Et="",Ea=0,qr=0,_l=0,ga=!1;try{if(fn.__emitTokens)fn.__emitTokens(je,en);else{for(Ie.matcher.considerAll();;){_l++,ga?ga=!1:Ie.matcher.considerAll(),Ie.matcher.lastIndex=qr;const ge=Ie.matcher.exec(je);if(!ge)break;const _e=je.substring(qr,ge.index),Ye=zi(_e,ge);qr=ge.index+Ye}zi(je.substring(qr))}return en.finalize(),Li=en.toHTML(),{language:pe,value:Li,relevance:Ea,illegal:!1,_emitter:en,_top:Ie}}catch(ge){if(ge.message&&ge.message.includes("Illegal"))return{language:pe,value:wn(je),illegal:!0,relevance:0,_illegalBy:{message:ge.message,index:qr,context:je.slice(qr-100,qr+100),mode:ge.mode,resultSoFar:Li},_emitter:en};if(Mt)return{language:pe,value:wn(je),illegal:!1,relevance:0,errorRaised:ge,_emitter:en,_top:Ie};throw ge}}function Mi(pe){const je={value:wn(pe),illegal:!1,relevance:0,_top:Ne,_emitter:new De.__emitter(De)};return je._emitter.addText(pe),je}function Ti(pe,je){je=je||De.languages||Object.keys(ce);const et=Mi(pe),mt=je.filter(Sn).filter(pa).map(Nt=>Ur(Nt,pe,!1));mt.unshift(et);const Yt=mt.sort((Nt,Qn)=>{if(Nt.relevance!==Qn.relevance)return Qn.relevance-Nt.relevance;if(Nt.language&&Qn.language){if(Sn(Nt.language).supersetOf===Qn.language)return 1;if(Sn(Qn.language).supersetOf===Nt.language)return-1}return 0}),[Cn,Vn]=Yt,Tn=Cn;return Tn.secondBest=Vn,Tn}function Nr(pe,je,et){const mt=je&&be[je]||et;pe.classList.add("hljs"),pe.classList.add(`language-${mt}`)}function Qt(pe){let je=null;const et=Vt(pe);if(He(et))return;if(Wa("before:highlightElement",{el:pe,language:et}),pe.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",pe);return}if(pe.children.length>0&&(De.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(pe)),De.throwUnescapedHTML))throw new Sr("One of your code blocks includes unescaped HTML.",pe.innerHTML);je=pe;const mt=je.textContent,Yt=et?Lt(mt,{language:et,ignoreIllegals:!0}):Ti(mt);pe.innerHTML=Yt.value,pe.dataset.highlighted="yes",Nr(pe,et,Yt.language),pe.result={language:Yt.language,re:Yt.relevance,relevance:Yt.relevance},Yt.secondBest&&(pe.secondBest={language:Yt.secondBest.language,relevance:Yt.secondBest.relevance}),Wa("after:highlightElement",{el:pe,result:Yt,text:mt})}function bn(pe){De=to(De,pe)}const ha=()=>{ji(),te("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function Fl(){ji(),te("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let no=!1;function ji(){function pe(){ji()}if(document.readyState==="loading"){no||window.addEventListener("DOMContentLoaded",pe,!1),no=!0;return}document.querySelectorAll(De.cssSelector).forEach(Qt)}function ro(pe,je){let et=null;try{et=je(H)}catch(mt){if(Je("Language definition for '{}' could not be registered.".replace("{}",pe)),Mt)Je(mt);else throw mt;et=Ne}et.name||(et.name=pe),ce[pe]=et,et.rawDefinition=je.bind(null,H),et.aliases&&Ir(et.aliases,{languageName:pe})}function Za(pe){delete ce[pe];for(const je of Object.keys(be))be[je]===pe&&delete be[je]}function wl(){return Object.keys(ce)}function Sn(pe){return pe=(pe||"").toLowerCase(),ce[pe]||ce[be[pe]]}function Ir(pe,{languageName:je}){typeof pe=="string"&&(pe=[pe]),pe.forEach(et=>{be[et.toLowerCase()]=je})}function pa(pe){const je=Sn(pe);return je&&!je.disableAutodetect}function ma(pe){pe["before:highlightBlock"]&&!pe["before:highlightElement"]&&(pe["before:highlightElement"]=je=>{pe["before:highlightBlock"](Object.assign({block:je.el},je))}),pe["after:highlightBlock"]&&!pe["after:highlightElement"]&&(pe["after:highlightElement"]=je=>{pe["after:highlightBlock"](Object.assign({block:je.el},je))})}function Jt(pe){ma(pe),$e.push(pe)}function ao(pe){const je=$e.indexOf(pe);je!==-1&&$e.splice(je,1)}function Wa(pe,je){const et=pe;$e.forEach(function(mt){mt[et]&&mt[et](je)})}function Hr(pe){return te("10.7.0","highlightBlock will be removed entirely in v12.0"),te("10.7.0","Please use highlightElement now."),Qt(pe)}Object.assign(H,{highlight:Lt,highlightAuto:Ti,highlightAll:ji,highlightElement:Qt,highlightBlock:Hr,configure:bn,initHighlighting:ha,initHighlightingOnLoad:Fl,registerLanguage:ro,unregisterLanguage:Za,listLanguages:wl,getLanguage:Sn,registerAliases:Ir,autoDetection:pa,inherit:to,addPlugin:Jt,removePlugin:ao}),H.debugMode=function(){Mt=!1},H.safeMode=function(){Mt=!0},H.versionString=pt,H.regex={concat:A,lookahead:y,either:k,optional:C,anyNumberOfTimes:b};for(const pe in qe)typeof qe[pe]=="object"&&e(qe[pe]);return Object.assign(H,qe),H},Mn=Xa({});return Mn.newInstance=()=>Xa({}),Cu=Mn,Mn.HighlightJS=Mn,Mn.default=Mn,Cu}var Zw=Xw();const Ww=Qs(Zw),l9={},Jw="hljs-";function eS(e){const n=Ww.newInstance();return e&&c(e),{highlight:a,highlightAuto:i,listLanguages:s,register:c,registerAlias:x,registered:u};function a(d,f,E){const p=E||l9,y=typeof p.prefix=="string"?p.prefix:Jw;if(!n.getLanguage(d))throw new Error("Unknown language: `"+d+"` is not registered");n.configure({__emitter:tS,classPrefix:y});const b=n.highlight(f,{ignoreIllegals:!0,language:d});if(b.errorRaised)throw new Error("Could not highlight with `Highlight.js`",{cause:b.errorRaised});const C=b._emitter.root,A=C.data;return A.language=b.language,A.relevance=b.relevance,C}function i(d,f){const p=(f||l9).subset||s();let y=-1,b=0,C;for(;++y<p.length;){const A=p[y];if(!n.getLanguage(A))continue;const B=a(A,d,f);B.data&&B.data.relevance!==void 0&&B.data.relevance>b&&(b=B.data.relevance,C=B)}return C||{type:"root",children:[],data:{language:void 0,relevance:b}}}function s(){return n.listLanguages()}function c(d,f){if(typeof d=="string")n.registerLanguage(d,f);else{let E;for(E in d)Object.hasOwn(d,E)&&n.registerLanguage(E,d[E])}}function x(d,f){if(typeof d=="string")n.registerAliases(typeof f=="string"?f:[...f],{languageName:d});else{let E;for(E in d)if(Object.hasOwn(d,E)){const p=d[E];n.registerAliases(typeof p=="string"?p:[...p],{languageName:E})}}}function u(d){return!!n.getLanguage(d)}}class tS{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 a=this.stack[this.stack.length-1],i=a.children[a.children.length-1];i&&i.type==="text"?i.value+=n:a.children.push({type:"text",value:n})}startScope(n){this.openNode(String(n))}endScope(){this.closeNode()}__addSublanguage(n,a){const i=this.stack[this.stack.length-1],s=n.root.children;a?i.children.push({type:"element",tagName:"span",properties:{className:[a]},children:s}):i.children.push(...s)}openNode(n){const a=this,i=n.split(".").map(function(x,u){return u?x+"_".repeat(u):a.options.classPrefix+x}),s=this.stack[this.stack.length-1],c={type:"element",tagName:"span",properties:{className:i},children:[]};s.children.push(c),this.stack.push(c)}closeNode(){this.stack.pop()}finalize(){}toHTML(){return""}}const s9=eS({bash:Bw,css:Tw,ini:jw,javascript:Pw,json:Hw,markdown:qw,python:$w,sql:Gw,typescript:Qw,xml:Yw,yaml:Kw}),pE={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"},nS={...pE,shell:"bash",console:"bash",javascript:"javascript",typescript:"typescript",python:"python",yaml:"yaml",json:"json",sql:"sql"},rS={Bash:"bash"};function aS(e){return(e&&rS[e])??null}function mE(e){const n=e.slice(e.lastIndexOf("/")+1),a=n.lastIndexOf(".");return a<1?null:pE[n.slice(a+1).toLowerCase()]??null}function iS(e,n){return e==="Read"&&n?mE(n):null}function lS(e){const n=e?.match(/(?:^|\s)language-([\w+-]+)/)?.[1];return n?nS[n.toLowerCase()]??null:null}function EE(e,n){return!n||!s9.registered(n)?null:s9.highlight(n,e).children.filter(sS)}function sS(e){return e.type==="element"||e.type==="text"}function oS(e,n){const a=EE(e,n);return a?gE(a):null}function gE(e){const n=[[]];for(const a of e){const i=cS(a);n[n.length-1].push(...i[0]);for(let s=1;s<i.length;s++)n.push(i[s])}return n}function cS(e){if(e.type==="text")return e.value.split(`
|
|
15
|
+
`).map(a=>a?[{type:"text",value:a}]:[]);if(e.type!=="element")return[[e]];const n=e;return gE(n.children).map(a=>a.length?[{...n,children:a}]:[])}function xS(e){for(let n=e.length-1;n>=0;n--){const a=e[n];if(a.role==="assistant")return a;if(a.role==="user")return null}return null}function o9(e){const n=[];let a=null;for(const i of e)i.role==="assistant"?a=i:i.role==="user"&&(a&&n.push(a),a=null);return a&&n.push(a),n}function uS(e,n,a){const i=qn(n.ts);if(a&&qn(a)<i)return a;const s=e.lastIndexOf(n);for(let c=(s<0?e.length:s)-1;c>=0;c--)if(e[c].role==="user")return e[c].ts;return null}function dS(e){const n=new Map;for(const c of e)c.subagentLabel&&c.toolUseId&&!n.has(c.toolUseId)&&n.set(c.toolUseId,c);const a=new Map,i=new Set;for(const c of e){const x=c.parentToolUseId,u=x?n.get(x):void 0;if(!u||u===c)continue;const d=a.get(x)??[];d.push(c),a.set(x,d),i.add(c)}const s=(c,x)=>{const u=c.toolUseId;if(!u||x.has(u))return{e:c,children:[]};const d=new Set(x);return d.add(u),{e:c,children:(a.get(u)??[]).map(f=>s(f,d))}};return e.filter(c=>!i.has(c)).map(c=>s(c,new Set))}function Kd({nodes:e}){return h.jsx(h.Fragment,{children:e.map((n,a)=>{if(n.type==="text")return n.value;if(n.type!=="element")return null;const i=n.properties?.className;return h.jsx("span",{className:Array.isArray(i)?i.join(" "):void 0,children:h.jsx(Kd,{nodes:n.children})},a)})})}const yE=D.memo(function({text:n,language:a}){const i=D.useMemo(()=>EE(n,a),[n,a]);return i?h.jsx(Kd,{nodes:i}):n});var Si=v8();function fS(e,n){const a={};return(e[e.length-1]===""?[...e,""]:e).join((a.padRight?" ":"")+","+(a.padLeft===!1?"":" ")).trim()}const hS=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,pS=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,mS={};function c9(e,n){return(mS.jsx?pS:hS).test(e)}const ES=/[ \t\n\f\r]/g;function gS(e){return typeof e=="object"?e.type==="text"?x9(e.value):!1:x9(e)}function x9(e){return e.replace(ES,"")===""}class Ws{constructor(n,a,i){this.normal=a,this.property=n,i&&(this.space=i)}}Ws.prototype.normal={};Ws.prototype.property={};Ws.prototype.space=void 0;function bE(e,n){const a={},i={};for(const s of e)Object.assign(a,s.property),Object.assign(i,s.normal);return new Ws(a,i,n)}function od(e){return e.toLowerCase()}class $n{constructor(n,a){this.attribute=a,this.property=n}}$n.prototype.attribute="";$n.prototype.booleanish=!1;$n.prototype.boolean=!1;$n.prototype.commaOrSpaceSeparated=!1;$n.prototype.commaSeparated=!1;$n.prototype.defined=!1;$n.prototype.mustUseProperty=!1;$n.prototype.number=!1;$n.prototype.overloadedBoolean=!1;$n.prototype.property="";$n.prototype.spaceSeparated=!1;$n.prototype.space=void 0;let yS=0;const Ge=Ni(),ln=Ni(),cd=Ni(),me=Ni(),Dt=Ni(),Ci=Ni(),tr=Ni();function Ni(){return 2**++yS}const xd=Object.freeze(Object.defineProperty({__proto__:null,boolean:Ge,booleanish:ln,commaOrSpaceSeparated:tr,commaSeparated:Ci,number:me,overloadedBoolean:cd,spaceSeparated:Dt},Symbol.toStringTag,{value:"Module"})),Au=Object.keys(xd);class Xd extends $n{constructor(n,a,i,s){let c=-1;if(super(n,a),u9(this,"space",s),typeof i=="number")for(;++c<Au.length;){const x=Au[c];u9(this,Au[c],(i&xd[x])===xd[x])}}}Xd.prototype.defined=!0;function u9(e,n,a){a&&(e[n]=a)}function kl(e){const n={},a={};for(const[i,s]of Object.entries(e.properties)){const c=new Xd(i,e.transform(e.attributes||{},i),s,e.space);e.mustUseProperty&&e.mustUseProperty.includes(i)&&(c.mustUseProperty=!0),n[i]=c,a[od(i)]=i,a[od(c.attribute)]=i}return new Ws(n,a,e.space)}const CE=kl({properties:{ariaActiveDescendant:null,ariaAtomic:ln,ariaAutoComplete:null,ariaBusy:ln,ariaChecked:ln,ariaColCount:me,ariaColIndex:me,ariaColSpan:me,ariaControls:Dt,ariaCurrent:null,ariaDescribedBy:Dt,ariaDetails:null,ariaDisabled:ln,ariaDropEffect:Dt,ariaErrorMessage:null,ariaExpanded:ln,ariaFlowTo:Dt,ariaGrabbed:ln,ariaHasPopup:null,ariaHidden:ln,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Dt,ariaLevel:me,ariaLive:null,ariaModal:ln,ariaMultiLine:ln,ariaMultiSelectable:ln,ariaOrientation:null,ariaOwns:Dt,ariaPlaceholder:null,ariaPosInSet:me,ariaPressed:ln,ariaReadOnly:ln,ariaRelevant:null,ariaRequired:ln,ariaRoleDescription:Dt,ariaRowCount:me,ariaRowIndex:me,ariaRowSpan:me,ariaSelected:ln,ariaSetSize:me,ariaSort:null,ariaValueMax:me,ariaValueMin:me,ariaValueNow:me,ariaValueText:null,role:null},transform(e,n){return n==="role"?n:"aria-"+n.slice(4).toLowerCase()}});function AE(e,n){return n in e?e[n]:n}function vE(e,n){return AE(e,n.toLowerCase())}const bS=kl({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Ci,acceptCharset:Dt,accessKey:Dt,action:null,allow:null,allowFullScreen:Ge,allowPaymentRequest:Ge,allowUserMedia:Ge,alpha:Ge,alt:null,as:null,async:Ge,autoCapitalize:null,autoComplete:Dt,autoFocus:Ge,autoPlay:Ge,blocking:Dt,capture:null,charSet:null,checked:Ge,cite:null,className:Dt,closedBy:null,colorSpace:null,cols:me,colSpan:me,command:null,commandFor:null,content:null,contentEditable:ln,controls:Ge,controlsList:Dt,coords:me|Ci,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Ge,defer:Ge,dir:null,dirName:null,disabled:Ge,download:cd,draggable:ln,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Ge,formTarget:null,headers:Dt,height:me,hidden:cd,high:me,href:null,hrefLang:null,htmlFor:Dt,httpEquiv:Dt,id:null,imageSizes:null,imageSrcSet:null,inert:Ge,inputMode:null,integrity:null,is:null,isMap:Ge,itemId:null,itemProp:Dt,itemRef:Dt,itemScope:Ge,itemType:Dt,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Ge,low:me,manifest:null,max:null,maxLength:me,media:null,method:null,min:null,minLength:me,multiple:Ge,muted:Ge,name:null,nonce:null,noModule:Ge,noValidate:Ge,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:Ge,optimum:me,pattern:null,ping:Dt,placeholder:null,playsInline:Ge,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Ge,referrerPolicy:null,rel:Dt,required:Ge,reversed:Ge,rows:me,rowSpan:me,sandbox:Dt,scope:null,scoped:Ge,seamless:Ge,selected:Ge,shadowRootClonable:Ge,shadowRootCustomElementRegistry:Ge,shadowRootDelegatesFocus:Ge,shadowRootMode:null,shadowRootSerializable:Ge,shape:null,size:me,sizes:null,slot:null,span:me,spellCheck:ln,src:null,srcDoc:null,srcLang:null,srcSet:null,start:me,step:null,style:null,tabIndex:me,target:null,title:null,translate:null,type:null,typeMustMatch:Ge,useMap:null,value:ln,width:me,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Dt,axis:null,background:null,bgColor:null,border:me,borderColor:null,bottomMargin:me,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Ge,declare:Ge,event:null,face:null,frame:null,frameBorder:null,hSpace:me,leftMargin:me,link:null,longDesc:null,lowSrc:null,marginHeight:me,marginWidth:me,noResize:Ge,noHref:Ge,noShade:Ge,noWrap:Ge,object:null,profile:null,prompt:null,rev:null,rightMargin:me,rules:null,scheme:null,scrolling:ln,standby:null,summary:null,text:null,topMargin:me,valueType:null,version:null,vAlign:null,vLink:null,vSpace:me,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:Ge,disablePictureInPicture:Ge,disableRemotePlayback:Ge,exportParts:Ci,part:Dt,prefix:null,property:null,results:me,security:null,unselectable:null},space:"html",transform:vE}),CS=kl({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:tr,accentHeight:me,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:me,amplitude:me,arabicForm:null,ascent:me,attributeName:null,attributeType:null,azimuth:me,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:me,by:null,calcMode:null,capHeight:me,className:Dt,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:me,diffuseConstant:me,direction:null,display:null,dur:null,divisor:me,dominantBaseline:null,download:Ge,dx:null,dy:null,edgeMode:null,editable:null,elevation:me,enableBackground:null,end:null,event:null,exponent:me,externalResourcesRequired:null,fill:null,fillOpacity:me,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:Ci,g2:Ci,glyphName:Ci,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:me,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:me,horizOriginX:me,horizOriginY:me,id:null,ideographic:me,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:me,k:me,k1:me,k2:me,k3:me,k4:me,kernelMatrix:tr,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:me,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:me,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:me,overlineThickness:me,paintOrder:null,panose1:null,path:null,pathLength:me,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Dt,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:me,pointsAtY:me,pointsAtZ:me,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:tr,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:tr,rev:tr,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:tr,requiredFeatures:tr,requiredFonts:tr,requiredFormats:tr,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:me,specularExponent:me,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:me,strikethroughThickness:me,string:null,stroke:null,strokeDashArray:tr,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:me,strokeOpacity:me,strokeWidth:null,style:null,surfaceScale:me,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:tr,tabIndex:me,tableValues:null,target:null,targetX:me,targetY:me,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:tr,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:me,underlineThickness:me,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:me,values:null,vAlphabetic:me,vMathematical:me,vectorEffect:null,vHanging:me,vIdeographic:me,version:null,vertAdvY:me,vertOriginX:me,vertOriginY:me,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:me,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:AE}),BE=kl({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()}}),kE=kl({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:vE}),DE=kl({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,n){return"xml:"+n.slice(3).toLowerCase()}}),AS={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"},vS=/[A-Z]/g,d9=/-[a-z]/g,BS=/^data[-\w.:]+$/i;function kS(e,n){const a=od(n);let i=n,s=$n;if(a in e.normal)return e.property[e.normal[a]];if(a.length>4&&a.slice(0,4)==="data"&&BS.test(n)){if(n.charAt(4)==="-"){const c=n.slice(5).replace(d9,FS);i="data"+c.charAt(0).toUpperCase()+c.slice(1)}else{const c=n.slice(4);if(!d9.test(c)){let x=c.replace(vS,DS);x.charAt(0)!=="-"&&(x="-"+x),n="data"+x}}s=Xd}return new s(i,n)}function DS(e){return"-"+e.toLowerCase()}function FS(e){return e.charAt(1).toUpperCase()}const wS=bE([CE,bS,BE,kE,DE],"html"),Zd=bE([CE,CS,BE,kE,DE],"svg");function SS(e){return e.join(" ").trim()}var ml={},vu,f9;function NS(){if(f9)return vu;f9=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,a=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,s=/^:\s*/,c=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,x=/^[;\s]*/,u=/^\s+|\s+$/g,d=`
|
|
16
|
+
`,f="/",E="*",p="",y="comment",b="declaration";function C(B,k){if(typeof B!="string")throw new TypeError("First argument must be a string");if(!B)return[];k=k||{};var j=1,F=1;function _(Z){var Y=Z.match(n);Y&&(j+=Y.length);var U=Z.lastIndexOf(d);F=~U?Z.length-U:F+Z.length}function R(){var Z={line:j,column:F};return function(Y){return Y.position=new S(Z),G(),Y}}function S(Z){this.start=Z,this.end={line:j,column:F},this.source=k.source}S.prototype.content=B;function O(Z){var Y=new Error(k.source+":"+j+":"+F+": "+Z);if(Y.reason=Z,Y.filename=k.source,Y.line=j,Y.column=F,Y.source=B,!k.silent)throw Y}function z(Z){var Y=Z.exec(B);if(Y){var U=Y[0];return _(U),B=B.slice(U.length),Y}}function G(){z(a)}function L(Z){var Y;for(Z=Z||[];Y=X();)Y!==!1&&Z.push(Y);return Z}function X(){var Z=R();if(!(f!=B.charAt(0)||E!=B.charAt(1))){for(var Y=2;p!=B.charAt(Y)&&(E!=B.charAt(Y)||f!=B.charAt(Y+1));)++Y;if(Y+=2,p===B.charAt(Y-1))return O("End of comment missing");var U=B.slice(2,Y-2);return F+=2,_(U),B=B.slice(Y),F+=2,Z({type:y,comment:U})}}function Q(){var Z=R(),Y=z(i);if(Y){if(X(),!z(s))return O("property missing ':'");var U=z(c),P=Z({type:b,property:A(Y[0].replace(e,p)),value:U?A(U[0].replace(e,p)):p});return z(x),P}}function ie(){var Z=[];L(Z);for(var Y;Y=Q();)Y!==!1&&(Z.push(Y),L(Z));return Z}return G(),ie()}function A(B){return B?B.replace(u,p):p}return vu=C,vu}var h9;function _S(){if(h9)return ml;h9=1;var e=ml&&ml.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(ml,"__esModule",{value:!0}),ml.default=a;const n=e(NS());function a(i,s){let c=null;if(!i||typeof i!="string")return c;const x=(0,n.default)(i),u=typeof s=="function";return x.forEach(d=>{if(d.type!=="declaration")return;const{property:f,value:E}=d;u?s(f,E,d):E&&(c=c||{},c[f]=E)}),c}return ml}var ks={},p9;function MS(){if(p9)return ks;p9=1,Object.defineProperty(ks,"__esModule",{value:!0}),ks.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,n=/-([a-z])/g,a=/^[^-]+$/,i=/^-(webkit|moz|ms|o|khtml)-/,s=/^-(ms)-/,c=function(f){return!f||a.test(f)||e.test(f)},x=function(f,E){return E.toUpperCase()},u=function(f,E){return"".concat(E,"-")},d=function(f,E){return E===void 0&&(E={}),c(f)?f:(f=f.toLowerCase(),E.reactCompat?f=f.replace(s,u):f=f.replace(i,u),f.replace(n,x))};return ks.camelCase=d,ks}var Ds,m9;function TS(){if(m9)return Ds;m9=1;var e=Ds&&Ds.__importDefault||function(s){return s&&s.__esModule?s:{default:s}},n=e(_S()),a=MS();function i(s,c){var x={};return!s||typeof s!="string"||(0,n.default)(s,function(u,d){u&&d&&(x[(0,a.camelCase)(u,c)]=d)}),x}return i.default=i,Ds=i,Ds}var jS=TS();const RS=Qs(jS),FE=wE("end"),Wd=wE("start");function wE(e){return n;function n(a){const i=a&&a.position&&a.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 OS(e){const n=Wd(e),a=FE(e);if(n&&a)return{start:n,end:a}}function js(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?E9(e.position):"start"in e||"end"in e?E9(e):"line"in e||"column"in e?ud(e):""}function ud(e){return g9(e&&e.line)+":"+g9(e&&e.column)}function E9(e){return ud(e&&e.start)+"-"+ud(e&&e.end)}function g9(e){return e&&typeof e=="number"?e:1}class Fn extends Error{constructor(n,a,i){super(),typeof a=="string"&&(i=a,a=void 0);let s="",c={},x=!1;if(a&&("line"in a&&"column"in a?c={place:a}:"start"in a&&"end"in a?c={place:a}:"type"in a?c={ancestors:[a],place:a.position}:c={...a}),typeof n=="string"?s=n:!c.cause&&n&&(x=!0,s=n.message,c.cause=n),!c.ruleId&&!c.source&&typeof i=="string"){const d=i.indexOf(":");d===-1?c.ruleId=i:(c.source=i.slice(0,d),c.ruleId=i.slice(d+1))}if(!c.place&&c.ancestors&&c.ancestors){const d=c.ancestors[c.ancestors.length-1];d&&(c.place=d.position)}const u=c.place&&"start"in c.place?c.place.start:c.place;this.ancestors=c.ancestors||void 0,this.cause=c.cause||void 0,this.column=u?u.column:void 0,this.fatal=void 0,this.file="",this.message=s,this.line=u?u.line:void 0,this.name=js(c.place)||"1:1",this.place=c.place||void 0,this.reason=this.message,this.ruleId=c.ruleId||void 0,this.source=c.source||void 0,this.stack=x&&c.cause&&typeof c.cause.stack=="string"?c.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}Fn.prototype.file="";Fn.prototype.name="";Fn.prototype.reason="";Fn.prototype.message="";Fn.prototype.stack="";Fn.prototype.column=void 0;Fn.prototype.line=void 0;Fn.prototype.ancestors=void 0;Fn.prototype.cause=void 0;Fn.prototype.fatal=void 0;Fn.prototype.place=void 0;Fn.prototype.ruleId=void 0;Fn.prototype.source=void 0;const Jd={}.hasOwnProperty,zS=new Map,LS=/[A-Z]/g,PS=new Set(["table","tbody","thead","tfoot","tr"]),US=new Set(["td","th"]),SE="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function IS(e,n){if(!n||n.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const a=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=KS(a,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=YS(a,n.jsx,n.jsxs)}const s={Fragment:n.Fragment,ancestors:[],components:n.components||{},create:i,elementAttributeNameCase:n.elementAttributeNameCase||"react",evaluater:n.createEvaluater?n.createEvaluater():void 0,filePath:a,ignoreInvalidStyle:n.ignoreInvalidStyle||!1,passKeys:n.passKeys!==!1,passNode:n.passNode||!1,schema:n.space==="svg"?Zd:wS,stylePropertyNameCase:n.stylePropertyNameCase||"dom",tableCellAlignToStyle:n.tableCellAlignToStyle!==!1},c=NE(s,e,void 0);return c&&typeof c!="string"?c:s.create(e,s.Fragment,{children:c||void 0},void 0)}function NE(e,n,a){if(n.type==="element")return HS(e,n,a);if(n.type==="mdxFlowExpression"||n.type==="mdxTextExpression")return qS(e,n);if(n.type==="mdxJsxFlowElement"||n.type==="mdxJsxTextElement")return GS(e,n,a);if(n.type==="mdxjsEsm")return $S(e,n);if(n.type==="root")return VS(e,n,a);if(n.type==="text")return QS(e,n)}function HS(e,n,a){const i=e.schema;let s=i;n.tagName.toLowerCase()==="svg"&&i.space==="html"&&(s=Zd,e.schema=s),e.ancestors.push(n);const c=ME(e,n.tagName,!1),x=XS(e,n);let u=tf(e,n);return PS.has(n.tagName)&&(u=u.filter(function(d){return typeof d=="string"?!gS(d):!0})),_E(e,x,c,n),ef(x,u),e.ancestors.pop(),e.schema=i,e.create(n,c,x,a)}function qS(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)}$s(e,n.position)}function $S(e,n){if(n.data&&n.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(n.data.estree);$s(e,n.position)}function GS(e,n,a){const i=e.schema;let s=i;n.name==="svg"&&i.space==="html"&&(s=Zd,e.schema=s),e.ancestors.push(n);const c=n.name===null?e.Fragment:ME(e,n.name,!0),x=ZS(e,n),u=tf(e,n);return _E(e,x,c,n),ef(x,u),e.ancestors.pop(),e.schema=i,e.create(n,c,x,a)}function VS(e,n,a){const i={};return ef(i,tf(e,n)),e.create(n,e.Fragment,i,a)}function QS(e,n){return n.value}function _E(e,n,a,i){typeof a!="string"&&a!==e.Fragment&&e.passNode&&(n.node=i)}function ef(e,n){if(n.length>0){const a=n.length>1?n:n[0];a&&(e.children=a)}}function YS(e,n,a){return i;function i(s,c,x,u){const f=Array.isArray(x.children)?a:n;return u?f(c,x,u):f(c,x)}}function KS(e,n){return a;function a(i,s,c,x){const u=Array.isArray(c.children),d=Wd(i);return n(s,c,x,u,{columnNumber:d?d.column-1:void 0,fileName:e,lineNumber:d?d.line:void 0},void 0)}}function XS(e,n){const a={};let i,s;for(s in n.properties)if(s!=="children"&&Jd.call(n.properties,s)){const c=WS(e,s,n.properties[s]);if(c){const[x,u]=c;e.tableCellAlignToStyle&&x==="align"&&typeof u=="string"&&US.has(n.tagName)?i=u:a[x]=u}}if(i){const c=a.style||(a.style={});c[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=i}return a}function ZS(e,n){const a={};for(const i of n.attributes)if(i.type==="mdxJsxExpressionAttribute")if(i.data&&i.data.estree&&e.evaluater){const c=i.data.estree.body[0];c.type;const x=c.expression;x.type;const u=x.properties[0];u.type,Object.assign(a,e.evaluater.evaluateExpression(u.argument))}else $s(e,n.position);else{const s=i.name;let c;if(i.value&&typeof i.value=="object")if(i.value.data&&i.value.data.estree&&e.evaluater){const u=i.value.data.estree.body[0];u.type,c=e.evaluater.evaluateExpression(u.expression)}else $s(e,n.position);else c=i.value===null?!0:i.value;a[s]=c}return a}function tf(e,n){const a=[];let i=-1;const s=e.passKeys?new Map:zS;for(;++i<n.children.length;){const c=n.children[i];let x;if(e.passKeys){const d=c.type==="element"?c.tagName:c.type==="mdxJsxFlowElement"||c.type==="mdxJsxTextElement"?c.name:void 0;if(d){const f=s.get(d)||0;x=d+"-"+f,s.set(d,f+1)}}const u=NE(e,c,x);u!==void 0&&a.push(u)}return a}function WS(e,n,a){const i=kS(e.schema,n);if(!(a==null||typeof a=="number"&&Number.isNaN(a))){if(Array.isArray(a)&&(a=i.commaSeparated?fS(a):SS(a)),i.property==="style"){let s=typeof a=="object"?a:JS(e,String(a));return e.stylePropertyNameCase==="css"&&(s=eN(s)),["style",s]}return[e.elementAttributeNameCase==="react"&&i.space?AS[i.property]||i.property:i.attribute,a]}}function JS(e,n){try{return RS(n,{reactCompat:!0})}catch(a){if(e.ignoreInvalidStyle)return{};const i=a,s=new Fn("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:i,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw s.file=e.filePath||void 0,s.url=SE+"#cannot-parse-style-attribute",s}}function ME(e,n,a){let i;if(!a)i={type:"Literal",value:n};else if(n.includes(".")){const s=n.split(".");let c=-1,x;for(;++c<s.length;){const u=c9(s[c])?{type:"Identifier",name:s[c]}:{type:"Literal",value:s[c]};x=x?{type:"MemberExpression",object:x,property:u,computed:!!(c&&u.type==="Literal"),optional:!1}:u}i=x}else i=c9(n)&&!/^[a-z]/.test(n)?{type:"Identifier",name:n}:{type:"Literal",value:n};if(i.type==="Literal"){const s=i.value;return Jd.call(e.components,s)?e.components[s]:s}if(e.evaluater)return e.evaluater.evaluateExpression(i);$s(e)}function $s(e,n){const a=new Fn("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:n,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw a.file=e.filePath||void 0,a.url=SE+"#cannot-handle-mdx-estrees-without-createevaluater",a}function eN(e){const n={};let a;for(a in e)Jd.call(e,a)&&(n[tN(a)]=e[a]);return n}function tN(e){let n=e.replace(LS,nN);return n.slice(0,3)==="ms-"&&(n="-"+n),n}function nN(e){return"-"+e.toLowerCase()}const Bu={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"]},rN={};function nf(e,n){const a=rN,i=typeof a.includeImageAlt=="boolean"?a.includeImageAlt:!0,s=typeof a.includeHtml=="boolean"?a.includeHtml:!0;return TE(e,i,s)}function TE(e,n,a){if(aN(e)){if("value"in e)return e.type==="html"&&!a?"":e.value;if(n&&"alt"in e&&e.alt)return e.alt;if("children"in e)return y9(e.children,n,a)}return Array.isArray(e)?y9(e,n,a):""}function y9(e,n,a){const i=[];let s=-1;for(;++s<e.length;)i[s]=TE(e[s],n,a);return i.join("")}function aN(e){return!!(e&&typeof e=="object")}const b9=document.createElement("i");function rf(e){const n="&"+e+";";b9.innerHTML=n;const a=b9.textContent;return a.charCodeAt(a.length-1)===59&&e!=="semi"||a===n?!1:a}function rr(e,n,a,i){const s=e.length;let c=0,x;if(n<0?n=-n>s?0:s+n:n=n>s?s:n,a=a>0?a:0,i.length<1e4)x=Array.from(i),x.unshift(n,a),e.splice(...x);else for(a&&e.splice(n,a);c<i.length;)x=i.slice(c,c+1e4),x.unshift(n,0),e.splice(...x),c+=1e4,n+=1e4}function mr(e,n){return e.length>0?(rr(e,e.length,0,n),e):n}const C9={}.hasOwnProperty;function jE(e){const n={};let a=-1;for(;++a<e.length;)iN(n,e[a]);return n}function iN(e,n){let a;for(a in n){const s=(C9.call(e,a)?e[a]:void 0)||(e[a]={}),c=n[a];let x;if(c)for(x in c){C9.call(s,x)||(s[x]=[]);const u=c[x];lN(s[x],Array.isArray(u)?u:u?[u]:[])}}}function lN(e,n){let a=-1;const i=[];for(;++a<n.length;)(n[a].add==="after"?e:i).push(n[a]);rr(e,0,0,i)}function RE(e,n){const a=Number.parseInt(e,n);return a<9||a===11||a>13&&a<32||a>126&&a<160||a>55295&&a<57344||a>64975&&a<65008||(a&65535)===65535||(a&65535)===65534||a>1114111?"�":String.fromCodePoint(a)}function wr(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const _n=Ya(/[A-Za-z]/),Bn=Ya(/[\dA-Za-z]/),sN=Ya(/[#-'*+\--9=?A-Z^-~]/);function G0(e){return e!==null&&(e<32||e===127)}const dd=Ya(/\d/),oN=Ya(/[\dA-Fa-f]/),cN=Ya(/[!-/:-@[-`{-~]/);function ze(e){return e!==null&&e<-2}function Ft(e){return e!==null&&(e<0||e===32)}function rt(e){return e===-2||e===-1||e===32}const tc=Ya(new RegExp("\\p{P}|\\p{S}","u")),ki=Ya(/\s/);function Ya(e){return n;function n(a){return a!==null&&a>-1&&e.test(String.fromCharCode(a))}}function Dl(e){const n=[];let a=-1,i=0,s=0;for(;++a<e.length;){const c=e.charCodeAt(a);let x="";if(c===37&&Bn(e.charCodeAt(a+1))&&Bn(e.charCodeAt(a+2)))s=2;else if(c<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(c))||(x=String.fromCharCode(c));else if(c>55295&&c<57344){const u=e.charCodeAt(a+1);c<56320&&u>56319&&u<57344?(x=String.fromCharCode(c,u),s=1):x="�"}else x=String.fromCharCode(c);x&&(n.push(e.slice(i,a),encodeURIComponent(x)),i=a+s+1,x=""),s&&(a+=s,s=0)}return n.join("")+e.slice(i)}function ct(e,n,a,i){const s=i?i-1:Number.POSITIVE_INFINITY;let c=0;return x;function x(d){return rt(d)?(e.enter(a),u(d)):n(d)}function u(d){return rt(d)&&c++<s?(e.consume(d),u):(e.exit(a),n(d))}}const xN={tokenize:uN};function uN(e){const n=e.attempt(this.parser.constructs.contentInitial,i,s);let a;return n;function i(u){if(u===null){e.consume(u);return}return e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),ct(e,n,"linePrefix")}function s(u){return e.enter("paragraph"),c(u)}function c(u){const d=e.enter("chunkText",{contentType:"text",previous:a});return a&&(a.next=d),a=d,x(u)}function x(u){if(u===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(u);return}return ze(u)?(e.consume(u),e.exit("chunkText"),c):(e.consume(u),x)}}const dN={tokenize:fN},A9={tokenize:hN};function fN(e){const n=this,a=[];let i=0,s,c,x;return u;function u(F){if(i<a.length){const _=a[i];return n.containerState=_[1],e.attempt(_[0].continuation,d,f)(F)}return f(F)}function d(F){if(i++,n.containerState._closeFlow){n.containerState._closeFlow=void 0,s&&j();const _=n.events.length;let R=_,S;for(;R--;)if(n.events[R][0]==="exit"&&n.events[R][1].type==="chunkFlow"){S=n.events[R][1].end;break}k(i);let O=_;for(;O<n.events.length;)n.events[O][1].end={...S},O++;return rr(n.events,R+1,0,n.events.slice(_)),n.events.length=O,f(F)}return u(F)}function f(F){if(i===a.length){if(!s)return y(F);if(s.currentConstruct&&s.currentConstruct.concrete)return C(F);n.interrupt=!!(s.currentConstruct&&!s._gfmTableDynamicInterruptHack)}return n.containerState={},e.check(A9,E,p)(F)}function E(F){return s&&j(),k(i),y(F)}function p(F){return n.parser.lazy[n.now().line]=i!==a.length,x=n.now().offset,C(F)}function y(F){return n.containerState={},e.attempt(A9,b,C)(F)}function b(F){return i++,a.push([n.currentConstruct,n.containerState]),y(F)}function C(F){if(F===null){s&&j(),k(0),e.consume(F);return}return s=s||n.parser.flow(n.now()),e.enter("chunkFlow",{_tokenizer:s,contentType:"flow",previous:c}),A(F)}function A(F){if(F===null){B(e.exit("chunkFlow"),!0),k(0),e.consume(F);return}return ze(F)?(e.consume(F),B(e.exit("chunkFlow")),i=0,n.interrupt=void 0,u):(e.consume(F),A)}function B(F,_){const R=n.sliceStream(F);if(_&&R.push(null),F.previous=c,c&&(c.next=F),c=F,s.defineSkip(F.start),s.write(R),n.parser.lazy[F.start.line]){let S=s.events.length;for(;S--;)if(s.events[S][1].start.offset<x&&(!s.events[S][1].end||s.events[S][1].end.offset>x))return;const O=n.events.length;let z=O,G,L;for(;z--;)if(n.events[z][0]==="exit"&&n.events[z][1].type==="chunkFlow"){if(G){L=n.events[z][1].end;break}G=!0}for(k(i),S=O;S<n.events.length;)n.events[S][1].end={...L},S++;rr(n.events,z+1,0,n.events.slice(O)),n.events.length=S}}function k(F){let _=a.length;for(;_-- >F;){const R=a[_];n.containerState=R[1],R[0].exit.call(n,e)}a.length=F}function j(){s.write([null]),c=void 0,s=void 0,n.containerState._closeFlow=void 0}}function hN(e,n,a){return ct(e,e.attempt(this.parser.constructs.document,n,a),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function bl(e){if(e===null||Ft(e)||ki(e))return 1;if(tc(e))return 2}function nc(e,n,a){const i=[];let s=-1;for(;++s<e.length;){const c=e[s].resolveAll;c&&!i.includes(c)&&(n=c(n,a),i.push(c))}return n}const fd={name:"attention",resolveAll:pN,tokenize:mN};function pN(e,n){let a=-1,i,s,c,x,u,d,f,E;for(;++a<e.length;)if(e[a][0]==="enter"&&e[a][1].type==="attentionSequence"&&e[a][1]._close){for(i=a;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[a][1]).charCodeAt(0)){if((e[i][1]._close||e[a][1]._open)&&(e[a][1].end.offset-e[a][1].start.offset)%3&&!((e[i][1].end.offset-e[i][1].start.offset+e[a][1].end.offset-e[a][1].start.offset)%3))continue;d=e[i][1].end.offset-e[i][1].start.offset>1&&e[a][1].end.offset-e[a][1].start.offset>1?2:1;const p={...e[i][1].end},y={...e[a][1].start};v9(p,-d),v9(y,d),x={type:d>1?"strongSequence":"emphasisSequence",start:p,end:{...e[i][1].end}},u={type:d>1?"strongSequence":"emphasisSequence",start:{...e[a][1].start},end:y},c={type:d>1?"strongText":"emphasisText",start:{...e[i][1].end},end:{...e[a][1].start}},s={type:d>1?"strong":"emphasis",start:{...x.start},end:{...u.end}},e[i][1].end={...x.start},e[a][1].start={...u.end},f=[],e[i][1].end.offset-e[i][1].start.offset&&(f=mr(f,[["enter",e[i][1],n],["exit",e[i][1],n]])),f=mr(f,[["enter",s,n],["enter",x,n],["exit",x,n],["enter",c,n]]),f=mr(f,nc(n.parser.constructs.insideSpan.null,e.slice(i+1,a),n)),f=mr(f,[["exit",c,n],["enter",u,n],["exit",u,n],["exit",s,n]]),e[a][1].end.offset-e[a][1].start.offset?(E=2,f=mr(f,[["enter",e[a][1],n],["exit",e[a][1],n]])):E=0,rr(e,i-1,a-i+3,f),a=i+f.length-E-2;break}}for(a=-1;++a<e.length;)e[a][1].type==="attentionSequence"&&(e[a][1].type="data");return e}function mN(e,n){const a=this.parser.constructs.attentionMarkers.null,i=this.previous,s=bl(i);let c;return x;function x(d){return c=d,e.enter("attentionSequence"),u(d)}function u(d){if(d===c)return e.consume(d),u;const f=e.exit("attentionSequence"),E=bl(d),p=!E||E===2&&s||a.includes(d),y=!s||s===2&&E||a.includes(i);return f._open=!!(c===42?p:p&&(s||!y)),f._close=!!(c===42?y:y&&(E||!p)),n(d)}}function v9(e,n){e.column+=n,e.offset+=n,e._bufferIndex+=n}const EN={name:"autolink",tokenize:gN};function gN(e,n,a){let i=0;return s;function s(b){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(b),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),c}function c(b){return _n(b)?(e.consume(b),x):b===64?a(b):f(b)}function x(b){return b===43||b===45||b===46||Bn(b)?(i=1,u(b)):f(b)}function u(b){return b===58?(e.consume(b),i=0,d):(b===43||b===45||b===46||Bn(b))&&i++<32?(e.consume(b),u):(i=0,f(b))}function d(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||G0(b)?a(b):(e.consume(b),d)}function f(b){return b===64?(e.consume(b),E):sN(b)?(e.consume(b),f):a(b)}function E(b){return Bn(b)?p(b):a(b)}function p(b){return b===46?(e.consume(b),i=0,E):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||Bn(b))&&i++<63){const C=b===45?y:p;return e.consume(b),C}return a(b)}}const Js={partial:!0,tokenize:yN};function yN(e,n,a){return i;function i(c){return rt(c)?ct(e,s,"linePrefix")(c):s(c)}function s(c){return c===null||ze(c)?n(c):a(c)}}const OE={continuation:{tokenize:CN},exit:AN,name:"blockQuote",tokenize:bN};function bN(e,n,a){const i=this;return s;function s(x){if(x===62){const u=i.containerState;return u.open||(e.enter("blockQuote",{_container:!0}),u.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(x),e.exit("blockQuoteMarker"),c}return a(x)}function c(x){return rt(x)?(e.enter("blockQuotePrefixWhitespace"),e.consume(x),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),n):(e.exit("blockQuotePrefix"),n(x))}}function CN(e,n,a){const i=this;return s;function s(x){return rt(x)?ct(e,c,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(x):c(x)}function c(x){return e.attempt(OE,n,a)(x)}}function AN(e){e.exit("blockQuote")}const zE={name:"characterEscape",tokenize:vN};function vN(e,n,a){return i;function i(c){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(c),e.exit("escapeMarker"),s}function s(c){return cN(c)?(e.enter("characterEscapeValue"),e.consume(c),e.exit("characterEscapeValue"),e.exit("characterEscape"),n):a(c)}}const LE={name:"characterReference",tokenize:BN};function BN(e,n,a){const i=this;let s=0,c,x;return u;function u(p){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(p),e.exit("characterReferenceMarker"),d}function d(p){return p===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(p),e.exit("characterReferenceMarkerNumeric"),f):(e.enter("characterReferenceValue"),c=31,x=Bn,E(p))}function f(p){return p===88||p===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(p),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),c=6,x=oN,E):(e.enter("characterReferenceValue"),c=7,x=dd,E(p))}function E(p){if(p===59&&s){const y=e.exit("characterReferenceValue");return x===Bn&&!rf(i.sliceSerialize(y))?a(p):(e.enter("characterReferenceMarker"),e.consume(p),e.exit("characterReferenceMarker"),e.exit("characterReference"),n)}return x(p)&&s++<c?(e.consume(p),E):a(p)}}const B9={partial:!0,tokenize:DN},k9={concrete:!0,name:"codeFenced",tokenize:kN};function kN(e,n,a){const i=this,s={partial:!0,tokenize:R};let c=0,x=0,u;return d;function d(S){return f(S)}function f(S){const O=i.events[i.events.length-1];return c=O&&O[1].type==="linePrefix"?O[2].sliceSerialize(O[1],!0).length:0,u=S,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),E(S)}function E(S){return S===u?(x++,e.consume(S),E):x<3?a(S):(e.exit("codeFencedFenceSequence"),rt(S)?ct(e,p,"whitespace")(S):p(S))}function p(S){return S===null||ze(S)?(e.exit("codeFencedFence"),i.interrupt?n(S):e.check(B9,A,_)(S)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),y(S))}function y(S){return S===null||ze(S)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),p(S)):rt(S)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),ct(e,b,"whitespace")(S)):S===96&&S===u?a(S):(e.consume(S),y)}function b(S){return S===null||ze(S)?p(S):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),C(S))}function C(S){return S===null||ze(S)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),p(S)):S===96&&S===u?a(S):(e.consume(S),C)}function A(S){return e.attempt(s,_,B)(S)}function B(S){return e.enter("lineEnding"),e.consume(S),e.exit("lineEnding"),k}function k(S){return c>0&&rt(S)?ct(e,j,"linePrefix",c+1)(S):j(S)}function j(S){return S===null||ze(S)?e.check(B9,A,_)(S):(e.enter("codeFlowValue"),F(S))}function F(S){return S===null||ze(S)?(e.exit("codeFlowValue"),j(S)):(e.consume(S),F)}function _(S){return e.exit("codeFenced"),n(S)}function R(S,O,z){let G=0;return L;function L(Y){return S.enter("lineEnding"),S.consume(Y),S.exit("lineEnding"),X}function X(Y){return S.enter("codeFencedFence"),rt(Y)?ct(S,Q,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(Y):Q(Y)}function Q(Y){return Y===u?(S.enter("codeFencedFenceSequence"),ie(Y)):z(Y)}function ie(Y){return Y===u?(G++,S.consume(Y),ie):G>=x?(S.exit("codeFencedFenceSequence"),rt(Y)?ct(S,Z,"whitespace")(Y):Z(Y)):z(Y)}function Z(Y){return Y===null||ze(Y)?(S.exit("codeFencedFence"),O(Y)):z(Y)}}}function DN(e,n,a){const i=this;return s;function s(x){return x===null?a(x):(e.enter("lineEnding"),e.consume(x),e.exit("lineEnding"),c)}function c(x){return i.parser.lazy[i.now().line]?a(x):n(x)}}const ku={name:"codeIndented",tokenize:wN},FN={partial:!0,tokenize:SN};function wN(e,n,a){const i=this;return s;function s(f){return e.enter("codeIndented"),ct(e,c,"linePrefix",5)(f)}function c(f){const E=i.events[i.events.length-1];return E&&E[1].type==="linePrefix"&&E[2].sliceSerialize(E[1],!0).length>=4?x(f):a(f)}function x(f){return f===null?d(f):ze(f)?e.attempt(FN,x,d)(f):(e.enter("codeFlowValue"),u(f))}function u(f){return f===null||ze(f)?(e.exit("codeFlowValue"),x(f)):(e.consume(f),u)}function d(f){return e.exit("codeIndented"),n(f)}}function SN(e,n,a){const i=this;return s;function s(x){return i.parser.lazy[i.now().line]?a(x):ze(x)?(e.enter("lineEnding"),e.consume(x),e.exit("lineEnding"),s):ct(e,c,"linePrefix",5)(x)}function c(x){const u=i.events[i.events.length-1];return u&&u[1].type==="linePrefix"&&u[2].sliceSerialize(u[1],!0).length>=4?n(x):ze(x)?s(x):a(x)}}const NN={name:"codeText",previous:MN,resolve:_N,tokenize:TN};function _N(e){let n=e.length-4,a=3,i,s;if((e[a][1].type==="lineEnding"||e[a][1].type==="space")&&(e[n][1].type==="lineEnding"||e[n][1].type==="space")){for(i=a;++i<n;)if(e[i][1].type==="codeTextData"){e[a][1].type="codeTextPadding",e[n][1].type="codeTextPadding",a+=2,n-=2;break}}for(i=a-1,n++;++i<=n;)s===void 0?i!==n&&e[i][1].type!=="lineEnding"&&(s=i):(i===n||e[i][1].type==="lineEnding")&&(e[s][1].type="codeTextData",i!==s+2&&(e[s][1].end=e[i-1][1].end,e.splice(s+2,i-s-2),n-=i-s-2,i=s+2),s=void 0);return e}function MN(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function TN(e,n,a){let i=0,s,c;return x;function x(p){return e.enter("codeText"),e.enter("codeTextSequence"),u(p)}function u(p){return p===96?(e.consume(p),i++,u):(e.exit("codeTextSequence"),d(p))}function d(p){return p===null?a(p):p===32?(e.enter("space"),e.consume(p),e.exit("space"),d):p===96?(c=e.enter("codeTextSequence"),s=0,E(p)):ze(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),d):(e.enter("codeTextData"),f(p))}function f(p){return p===null||p===32||p===96||ze(p)?(e.exit("codeTextData"),d(p)):(e.consume(p),f)}function E(p){return p===96?(e.consume(p),s++,E):s===i?(e.exit("codeTextSequence"),e.exit("codeText"),n(p)):(c.type="codeTextData",f(p))}}class jN{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,a){const i=a??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,a,i){const s=a||0;this.setCursor(Math.trunc(n));const c=this.right.splice(this.right.length-s,Number.POSITIVE_INFINITY);return i&&Fs(this.left,i),c.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),Fs(this.left,n)}unshift(n){this.setCursor(0),this.right.push(n)}unshiftMany(n){this.setCursor(0),Fs(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 a=this.left.splice(n,Number.POSITIVE_INFINITY);Fs(this.right,a.reverse())}else{const a=this.right.splice(this.left.length+this.right.length-n,Number.POSITIVE_INFINITY);Fs(this.left,a.reverse())}}}function Fs(e,n){let a=0;if(n.length<1e4)e.push(...n);else for(;a<n.length;)e.push(...n.slice(a,a+1e4)),a+=1e4}function PE(e){const n={};let a=-1,i,s,c,x,u,d,f;const E=new jN(e);for(;++a<E.length;){for(;a in n;)a=n[a];if(i=E.get(a),a&&i[1].type==="chunkFlow"&&E.get(a-1)[1].type==="listItemPrefix"&&(d=i[1]._tokenizer.events,c=0,c<d.length&&d[c][1].type==="lineEndingBlank"&&(c+=2),c<d.length&&d[c][1].type==="content"))for(;++c<d.length&&d[c][1].type!=="content";)d[c][1].type==="chunkText"&&(d[c][1]._isInFirstContentOfListItem=!0,c++);if(i[0]==="enter")i[1].contentType&&(Object.assign(n,RN(E,a)),a=n[a],f=!0);else if(i[1]._container){for(c=a,s=void 0;c--;)if(x=E.get(c),x[1].type==="lineEnding"||x[1].type==="lineEndingBlank")x[0]==="enter"&&(s&&(E.get(s)[1].type="lineEndingBlank"),x[1].type="lineEnding",s=c);else if(!(x[1].type==="linePrefix"||x[1].type==="listItemIndent"))break;s&&(i[1].end={...E.get(s)[1].start},u=E.slice(s,a),u.unshift(i),E.splice(s,a-s+1,u))}}return rr(e,0,Number.POSITIVE_INFINITY,E.slice(0)),!f}function RN(e,n){const a=e.get(n)[1],i=e.get(n)[2];let s=n-1;const c=[];let x=a._tokenizer;x||(x=i.parser[a.contentType](a.start),a._contentTypeTextTrailing&&(x._contentTypeTextTrailing=!0));const u=x.events,d=[],f={};let E,p,y=-1,b=a,C=0,A=0;const B=[A];for(;b;){for(;e.get(++s)[1]!==b;);c.push(s),b._tokenizer||(E=i.sliceStream(b),b.next||E.push(null),p&&x.defineSkip(b.start),b._isInFirstContentOfListItem&&(x._gfmTasklistFirstContentOfListItem=!0),x.write(E),b._isInFirstContentOfListItem&&(x._gfmTasklistFirstContentOfListItem=void 0)),p=b,b=b.next}for(b=a;++y<u.length;)u[y][0]==="exit"&&u[y-1][0]==="enter"&&u[y][1].type===u[y-1][1].type&&u[y][1].start.line!==u[y][1].end.line&&(A=y+1,B.push(A),b._tokenizer=void 0,b.previous=void 0,b=b.next);for(x.events=[],b?(b._tokenizer=void 0,b.previous=void 0):B.pop(),y=B.length;y--;){const k=u.slice(B[y],B[y+1]),j=c.pop();d.push([j,j+k.length-1]),e.splice(j,2,k)}for(d.reverse(),y=-1;++y<d.length;)f[C+d[y][0]]=C+d[y][1],C+=d[y][1]-d[y][0]-1;return f}const ON={resolve:LN,tokenize:PN},zN={partial:!0,tokenize:UN};function LN(e){return PE(e),e}function PN(e,n){let a;return i;function i(u){return e.enter("content"),a=e.enter("chunkContent",{contentType:"content"}),s(u)}function s(u){return u===null?c(u):ze(u)?e.check(zN,x,c)(u):(e.consume(u),s)}function c(u){return e.exit("chunkContent"),e.exit("content"),n(u)}function x(u){return e.consume(u),e.exit("chunkContent"),a.next=e.enter("chunkContent",{contentType:"content",previous:a}),a=a.next,s}}function UN(e,n,a){const i=this;return s;function s(x){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(x),e.exit("lineEnding"),ct(e,c,"linePrefix")}function c(x){if(x===null||ze(x))return a(x);const u=i.events[i.events.length-1];return!i.parser.constructs.disable.null.includes("codeIndented")&&u&&u[1].type==="linePrefix"&&u[2].sliceSerialize(u[1],!0).length>=4?n(x):e.interrupt(i.parser.constructs.flow,a,n)(x)}}function UE(e,n,a,i,s,c,x,u,d){const f=d||Number.POSITIVE_INFINITY;let E=0;return p;function p(k){return k===60?(e.enter(i),e.enter(s),e.enter(c),e.consume(k),e.exit(c),y):k===null||k===32||k===41||G0(k)?a(k):(e.enter(i),e.enter(x),e.enter(u),e.enter("chunkString",{contentType:"string"}),A(k))}function y(k){return k===62?(e.enter(c),e.consume(k),e.exit(c),e.exit(s),e.exit(i),n):(e.enter(u),e.enter("chunkString",{contentType:"string"}),b(k))}function b(k){return k===62?(e.exit("chunkString"),e.exit(u),y(k)):k===null||k===60||ze(k)?a(k):(e.consume(k),k===92?C:b)}function C(k){return k===60||k===62||k===92?(e.consume(k),b):b(k)}function A(k){return!E&&(k===null||k===41||Ft(k))?(e.exit("chunkString"),e.exit(u),e.exit(x),e.exit(i),n(k)):E<f&&k===40?(e.consume(k),E++,A):k===41?(e.consume(k),E--,A):k===null||k===32||k===40||G0(k)?a(k):(e.consume(k),k===92?B:A)}function B(k){return k===40||k===41||k===92?(e.consume(k),A):A(k)}}function IE(e,n,a,i,s,c){const x=this;let u=0,d;return f;function f(b){return e.enter(i),e.enter(s),e.consume(b),e.exit(s),e.enter(c),E}function E(b){return u>999||b===null||b===91||b===93&&!d||b===94&&!u&&"_hiddenFootnoteSupport"in x.parser.constructs?a(b):b===93?(e.exit(c),e.enter(s),e.consume(b),e.exit(s),e.exit(i),n):ze(b)?(e.enter("lineEnding"),e.consume(b),e.exit("lineEnding"),E):(e.enter("chunkString",{contentType:"string"}),p(b))}function p(b){return b===null||b===91||b===93||ze(b)||u++>999?(e.exit("chunkString"),E(b)):(e.consume(b),d||(d=!rt(b)),b===92?y:p)}function y(b){return b===91||b===92||b===93?(e.consume(b),u++,p):p(b)}}function HE(e,n,a,i,s,c){let x;return u;function u(y){return y===34||y===39||y===40?(e.enter(i),e.enter(s),e.consume(y),e.exit(s),x=y===40?41:y,d):a(y)}function d(y){return y===x?(e.enter(s),e.consume(y),e.exit(s),e.exit(i),n):(e.enter(c),f(y))}function f(y){return y===x?(e.exit(c),d(x)):y===null?a(y):ze(y)?(e.enter("lineEnding"),e.consume(y),e.exit("lineEnding"),ct(e,f,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),E(y))}function E(y){return y===x||y===null||ze(y)?(e.exit("chunkString"),f(y)):(e.consume(y),y===92?p:E)}function p(y){return y===x||y===92?(e.consume(y),E):E(y)}}function Rs(e,n){let a;return i;function i(s){return ze(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),a=!0,i):rt(s)?ct(e,i,a?"linePrefix":"lineSuffix")(s):n(s)}}const IN={name:"definition",tokenize:qN},HN={partial:!0,tokenize:$N};function qN(e,n,a){const i=this;let s;return c;function c(b){return e.enter("definition"),x(b)}function x(b){return IE.call(i,e,u,a,"definitionLabel","definitionLabelMarker","definitionLabelString")(b)}function u(b){return s=wr(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)),b===58?(e.enter("definitionMarker"),e.consume(b),e.exit("definitionMarker"),d):a(b)}function d(b){return Ft(b)?Rs(e,f)(b):f(b)}function f(b){return UE(e,E,a,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(b)}function E(b){return e.attempt(HN,p,p)(b)}function p(b){return rt(b)?ct(e,y,"whitespace")(b):y(b)}function y(b){return b===null||ze(b)?(e.exit("definition"),i.parser.defined.push(s),n(b)):a(b)}}function $N(e,n,a){return i;function i(u){return Ft(u)?Rs(e,s)(u):a(u)}function s(u){return HE(e,c,a,"definitionTitle","definitionTitleMarker","definitionTitleString")(u)}function c(u){return rt(u)?ct(e,x,"whitespace")(u):x(u)}function x(u){return u===null||ze(u)?n(u):a(u)}}const GN={name:"hardBreakEscape",tokenize:VN};function VN(e,n,a){return i;function i(c){return e.enter("hardBreakEscape"),e.consume(c),s}function s(c){return ze(c)?(e.exit("hardBreakEscape"),n(c)):a(c)}}const QN={name:"headingAtx",resolve:YN,tokenize:KN};function YN(e,n){let a=e.length-2,i=3,s,c;return e[i][1].type==="whitespace"&&(i+=2),a-2>i&&e[a][1].type==="whitespace"&&(a-=2),e[a][1].type==="atxHeadingSequence"&&(i===a-1||a-4>i&&e[a-2][1].type==="whitespace")&&(a-=i+1===a?2:4),a>i&&(s={type:"atxHeadingText",start:e[i][1].start,end:e[a][1].end},c={type:"chunkText",start:e[i][1].start,end:e[a][1].end,contentType:"text"},rr(e,i,a-i+1,[["enter",s,n],["enter",c,n],["exit",c,n],["exit",s,n]])),e}function KN(e,n,a){let i=0;return s;function s(E){return e.enter("atxHeading"),c(E)}function c(E){return e.enter("atxHeadingSequence"),x(E)}function x(E){return E===35&&i++<6?(e.consume(E),x):E===null||Ft(E)?(e.exit("atxHeadingSequence"),u(E)):a(E)}function u(E){return E===35?(e.enter("atxHeadingSequence"),d(E)):E===null||ze(E)?(e.exit("atxHeading"),n(E)):rt(E)?ct(e,u,"whitespace")(E):(e.enter("atxHeadingText"),f(E))}function d(E){return E===35?(e.consume(E),d):(e.exit("atxHeadingSequence"),u(E))}function f(E){return E===null||E===35||Ft(E)?(e.exit("atxHeadingText"),u(E)):(e.consume(E),f)}}const XN=["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"],D9=["pre","script","style","textarea"],ZN={concrete:!0,name:"htmlFlow",resolveTo:e_,tokenize:t_},WN={partial:!0,tokenize:r_},JN={partial:!0,tokenize:n_};function e_(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 t_(e,n,a){const i=this;let s,c,x,u,d;return f;function f(T){return E(T)}function E(T){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(T),p}function p(T){return T===33?(e.consume(T),y):T===47?(e.consume(T),c=!0,A):T===63?(e.consume(T),s=3,i.interrupt?n:w):_n(T)?(e.consume(T),x=String.fromCharCode(T),B):a(T)}function y(T){return T===45?(e.consume(T),s=2,b):T===91?(e.consume(T),s=5,u=0,C):_n(T)?(e.consume(T),s=4,i.interrupt?n:w):a(T)}function b(T){return T===45?(e.consume(T),i.interrupt?n:w):a(T)}function C(T){const le="CDATA[";return T===le.charCodeAt(u++)?(e.consume(T),u===le.length?i.interrupt?n:Q:C):a(T)}function A(T){return _n(T)?(e.consume(T),x=String.fromCharCode(T),B):a(T)}function B(T){if(T===null||T===47||T===62||Ft(T)){const le=T===47,Ee=x.toLowerCase();return!le&&!c&&D9.includes(Ee)?(s=1,i.interrupt?n(T):Q(T)):XN.includes(x.toLowerCase())?(s=6,le?(e.consume(T),k):i.interrupt?n(T):Q(T)):(s=7,i.interrupt&&!i.parser.lazy[i.now().line]?a(T):c?j(T):F(T))}return T===45||Bn(T)?(e.consume(T),x+=String.fromCharCode(T),B):a(T)}function k(T){return T===62?(e.consume(T),i.interrupt?n:Q):a(T)}function j(T){return rt(T)?(e.consume(T),j):L(T)}function F(T){return T===47?(e.consume(T),L):T===58||T===95||_n(T)?(e.consume(T),_):rt(T)?(e.consume(T),F):L(T)}function _(T){return T===45||T===46||T===58||T===95||Bn(T)?(e.consume(T),_):R(T)}function R(T){return T===61?(e.consume(T),S):rt(T)?(e.consume(T),R):F(T)}function S(T){return T===null||T===60||T===61||T===62||T===96?a(T):T===34||T===39?(e.consume(T),d=T,O):rt(T)?(e.consume(T),S):z(T)}function O(T){return T===d?(e.consume(T),d=null,G):T===null||ze(T)?a(T):(e.consume(T),O)}function z(T){return T===null||T===34||T===39||T===47||T===60||T===61||T===62||T===96||Ft(T)?R(T):(e.consume(T),z)}function G(T){return T===47||T===62||rt(T)?F(T):a(T)}function L(T){return T===62?(e.consume(T),X):a(T)}function X(T){return T===null||ze(T)?Q(T):rt(T)?(e.consume(T),X):a(T)}function Q(T){return T===45&&s===2?(e.consume(T),U):T===60&&s===1?(e.consume(T),P):T===62&&s===4?(e.consume(T),M):T===63&&s===3?(e.consume(T),w):T===93&&s===5?(e.consume(T),he):ze(T)&&(s===6||s===7)?(e.exit("htmlFlowData"),e.check(WN,V,ie)(T)):T===null||ze(T)?(e.exit("htmlFlowData"),ie(T)):(e.consume(T),Q)}function ie(T){return e.check(JN,Z,V)(T)}function Z(T){return e.enter("lineEnding"),e.consume(T),e.exit("lineEnding"),Y}function Y(T){return T===null||ze(T)?ie(T):(e.enter("htmlFlowData"),Q(T))}function U(T){return T===45?(e.consume(T),w):Q(T)}function P(T){return T===47?(e.consume(T),x="",re):Q(T)}function re(T){if(T===62){const le=x.toLowerCase();return D9.includes(le)?(e.consume(T),M):Q(T)}return _n(T)&&x.length<8?(e.consume(T),x+=String.fromCharCode(T),re):Q(T)}function he(T){return T===93?(e.consume(T),w):Q(T)}function w(T){return T===62?(e.consume(T),M):T===45&&s===2?(e.consume(T),w):Q(T)}function M(T){return T===null||ze(T)?(e.exit("htmlFlowData"),V(T)):(e.consume(T),M)}function V(T){return e.exit("htmlFlow"),n(T)}}function n_(e,n,a){const i=this;return s;function s(x){return ze(x)?(e.enter("lineEnding"),e.consume(x),e.exit("lineEnding"),c):a(x)}function c(x){return i.parser.lazy[i.now().line]?a(x):n(x)}}function r_(e,n,a){return i;function i(s){return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),e.attempt(Js,n,a)}}const a_={name:"htmlText",tokenize:i_};function i_(e,n,a){const i=this;let s,c,x;return u;function u(w){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(w),d}function d(w){return w===33?(e.consume(w),f):w===47?(e.consume(w),R):w===63?(e.consume(w),F):_n(w)?(e.consume(w),z):a(w)}function f(w){return w===45?(e.consume(w),E):w===91?(e.consume(w),c=0,C):_n(w)?(e.consume(w),j):a(w)}function E(w){return w===45?(e.consume(w),b):a(w)}function p(w){return w===null?a(w):w===45?(e.consume(w),y):ze(w)?(x=p,P(w)):(e.consume(w),p)}function y(w){return w===45?(e.consume(w),b):p(w)}function b(w){return w===62?U(w):w===45?y(w):p(w)}function C(w){const M="CDATA[";return w===M.charCodeAt(c++)?(e.consume(w),c===M.length?A:C):a(w)}function A(w){return w===null?a(w):w===93?(e.consume(w),B):ze(w)?(x=A,P(w)):(e.consume(w),A)}function B(w){return w===93?(e.consume(w),k):A(w)}function k(w){return w===62?U(w):w===93?(e.consume(w),k):A(w)}function j(w){return w===null||w===62?U(w):ze(w)?(x=j,P(w)):(e.consume(w),j)}function F(w){return w===null?a(w):w===63?(e.consume(w),_):ze(w)?(x=F,P(w)):(e.consume(w),F)}function _(w){return w===62?U(w):F(w)}function R(w){return _n(w)?(e.consume(w),S):a(w)}function S(w){return w===45||Bn(w)?(e.consume(w),S):O(w)}function O(w){return ze(w)?(x=O,P(w)):rt(w)?(e.consume(w),O):U(w)}function z(w){return w===45||Bn(w)?(e.consume(w),z):w===47||w===62||Ft(w)?G(w):a(w)}function G(w){return w===47?(e.consume(w),U):w===58||w===95||_n(w)?(e.consume(w),L):ze(w)?(x=G,P(w)):rt(w)?(e.consume(w),G):U(w)}function L(w){return w===45||w===46||w===58||w===95||Bn(w)?(e.consume(w),L):X(w)}function X(w){return w===61?(e.consume(w),Q):ze(w)?(x=X,P(w)):rt(w)?(e.consume(w),X):G(w)}function Q(w){return w===null||w===60||w===61||w===62||w===96?a(w):w===34||w===39?(e.consume(w),s=w,ie):ze(w)?(x=Q,P(w)):rt(w)?(e.consume(w),Q):(e.consume(w),Z)}function ie(w){return w===s?(e.consume(w),s=void 0,Y):w===null?a(w):ze(w)?(x=ie,P(w)):(e.consume(w),ie)}function Z(w){return w===null||w===34||w===39||w===60||w===61||w===96?a(w):w===47||w===62||Ft(w)?G(w):(e.consume(w),Z)}function Y(w){return w===47||w===62||Ft(w)?G(w):a(w)}function U(w){return w===62?(e.consume(w),e.exit("htmlTextData"),e.exit("htmlText"),n):a(w)}function P(w){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(w),e.exit("lineEnding"),re}function re(w){return rt(w)?ct(e,he,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(w):he(w)}function he(w){return e.enter("htmlTextData"),x(w)}}const af={name:"labelEnd",resolveAll:c_,resolveTo:x_,tokenize:u_},l_={tokenize:d_},s_={tokenize:f_},o_={tokenize:h_};function c_(e){let n=-1;const a=[];for(;++n<e.length;){const i=e[n][1];if(a.push(e[n]),i.type==="labelImage"||i.type==="labelLink"||i.type==="labelEnd"){const s=i.type==="labelImage"?4:2;i.type="data",n+=s}}return e.length!==a.length&&rr(e,0,e.length,a),e}function x_(e,n){let a=e.length,i=0,s,c,x,u;for(;a--;)if(s=e[a][1],c){if(s.type==="link"||s.type==="labelLink"&&s._inactive)break;e[a][0]==="enter"&&s.type==="labelLink"&&(s._inactive=!0)}else if(x){if(e[a][0]==="enter"&&(s.type==="labelImage"||s.type==="labelLink")&&!s._balanced&&(c=a,s.type!=="labelLink")){i=2;break}}else s.type==="labelEnd"&&(x=a);const d={type:e[c][1].type==="labelLink"?"link":"image",start:{...e[c][1].start},end:{...e[e.length-1][1].end}},f={type:"label",start:{...e[c][1].start},end:{...e[x][1].end}},E={type:"labelText",start:{...e[c+i+2][1].end},end:{...e[x-2][1].start}};return u=[["enter",d,n],["enter",f,n]],u=mr(u,e.slice(c+1,c+i+3)),u=mr(u,[["enter",E,n]]),u=mr(u,nc(n.parser.constructs.insideSpan.null,e.slice(c+i+4,x-3),n)),u=mr(u,[["exit",E,n],e[x-2],e[x-1],["exit",f,n]]),u=mr(u,e.slice(x+1)),u=mr(u,[["exit",d,n]]),rr(e,c,e.length,u),e}function u_(e,n,a){const i=this;let s=i.events.length,c,x;for(;s--;)if((i.events[s][1].type==="labelImage"||i.events[s][1].type==="labelLink")&&!i.events[s][1]._balanced){c=i.events[s][1];break}return u;function u(y){return c?c._inactive?p(y):(x=i.parser.defined.includes(wr(i.sliceSerialize({start:c.end,end:i.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(y),e.exit("labelMarker"),e.exit("labelEnd"),d):a(y)}function d(y){return y===40?e.attempt(l_,E,x?E:p)(y):y===91?e.attempt(s_,E,x?f:p)(y):x?E(y):p(y)}function f(y){return e.attempt(o_,E,p)(y)}function E(y){return n(y)}function p(y){return c._balanced=!0,a(y)}}function d_(e,n,a){return i;function i(p){return e.enter("resource"),e.enter("resourceMarker"),e.consume(p),e.exit("resourceMarker"),s}function s(p){return Ft(p)?Rs(e,c)(p):c(p)}function c(p){return p===41?E(p):UE(e,x,u,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(p)}function x(p){return Ft(p)?Rs(e,d)(p):E(p)}function u(p){return a(p)}function d(p){return p===34||p===39||p===40?HE(e,f,a,"resourceTitle","resourceTitleMarker","resourceTitleString")(p):E(p)}function f(p){return Ft(p)?Rs(e,E)(p):E(p)}function E(p){return p===41?(e.enter("resourceMarker"),e.consume(p),e.exit("resourceMarker"),e.exit("resource"),n):a(p)}}function f_(e,n,a){const i=this;return s;function s(u){return IE.call(i,e,c,x,"reference","referenceMarker","referenceString")(u)}function c(u){return i.parser.defined.includes(wr(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)))?n(u):a(u)}function x(u){return a(u)}}function h_(e,n,a){return i;function i(c){return e.enter("reference"),e.enter("referenceMarker"),e.consume(c),e.exit("referenceMarker"),s}function s(c){return c===93?(e.enter("referenceMarker"),e.consume(c),e.exit("referenceMarker"),e.exit("reference"),n):a(c)}}const p_={name:"labelStartImage",resolveAll:af.resolveAll,tokenize:m_};function m_(e,n,a){const i=this;return s;function s(u){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(u),e.exit("labelImageMarker"),c}function c(u){return u===91?(e.enter("labelMarker"),e.consume(u),e.exit("labelMarker"),e.exit("labelImage"),x):a(u)}function x(u){return u===94&&"_hiddenFootnoteSupport"in i.parser.constructs?a(u):n(u)}}const E_={name:"labelStartLink",resolveAll:af.resolveAll,tokenize:g_};function g_(e,n,a){const i=this;return s;function s(x){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(x),e.exit("labelMarker"),e.exit("labelLink"),c}function c(x){return x===94&&"_hiddenFootnoteSupport"in i.parser.constructs?a(x):n(x)}}const Du={name:"lineEnding",tokenize:y_};function y_(e,n){return a;function a(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),ct(e,n,"linePrefix")}}const O0={name:"thematicBreak",tokenize:b_};function b_(e,n,a){let i=0,s;return c;function c(f){return e.enter("thematicBreak"),x(f)}function x(f){return s=f,u(f)}function u(f){return f===s?(e.enter("thematicBreakSequence"),d(f)):i>=3&&(f===null||ze(f))?(e.exit("thematicBreak"),n(f)):a(f)}function d(f){return f===s?(e.consume(f),i++,d):(e.exit("thematicBreakSequence"),rt(f)?ct(e,u,"whitespace")(f):u(f))}}const In={continuation:{tokenize:B_},exit:D_,name:"list",tokenize:v_},C_={partial:!0,tokenize:F_},A_={partial:!0,tokenize:k_};function v_(e,n,a){const i=this,s=i.events[i.events.length-1];let c=s&&s[1].type==="linePrefix"?s[2].sliceSerialize(s[1],!0).length:0,x=0;return u;function u(b){const C=i.containerState.type||(b===42||b===43||b===45?"listUnordered":"listOrdered");if(C==="listUnordered"?!i.containerState.marker||b===i.containerState.marker:dd(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(O0,a,f)(b):f(b);if(!i.interrupt||b===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),d(b)}return a(b)}function d(b){return dd(b)&&++x<10?(e.consume(b),d):(!i.interrupt||x<2)&&(i.containerState.marker?b===i.containerState.marker:b===41||b===46)?(e.exit("listItemValue"),f(b)):a(b)}function f(b){return e.enter("listItemMarker"),e.consume(b),e.exit("listItemMarker"),i.containerState.marker=i.containerState.marker||b,e.check(Js,i.interrupt?a:E,e.attempt(C_,y,p))}function E(b){return i.containerState.initialBlankLine=!0,c++,y(b)}function p(b){return rt(b)?(e.enter("listItemPrefixWhitespace"),e.consume(b),e.exit("listItemPrefixWhitespace"),y):a(b)}function y(b){return i.containerState.size=c+i.sliceSerialize(e.exit("listItemPrefix"),!0).length,n(b)}}function B_(e,n,a){const i=this;return i.containerState._closeFlow=void 0,e.check(Js,s,c);function s(u){return i.containerState.furtherBlankLines=i.containerState.furtherBlankLines||i.containerState.initialBlankLine,ct(e,n,"listItemIndent",i.containerState.size+1)(u)}function c(u){return i.containerState.furtherBlankLines||!rt(u)?(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,x(u)):(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,e.attempt(A_,n,x)(u))}function x(u){return i.containerState._closeFlow=!0,i.interrupt=void 0,ct(e,e.attempt(In,n,a),"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(u)}}function k_(e,n,a){const i=this;return ct(e,s,"listItemIndent",i.containerState.size+1);function s(c){const x=i.events[i.events.length-1];return x&&x[1].type==="listItemIndent"&&x[2].sliceSerialize(x[1],!0).length===i.containerState.size?n(c):a(c)}}function D_(e){e.exit(this.containerState.type)}function F_(e,n,a){const i=this;return ct(e,s,"listItemPrefixWhitespace",i.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function s(c){const x=i.events[i.events.length-1];return!rt(c)&&x&&x[1].type==="listItemPrefixWhitespace"?n(c):a(c)}}const F9={name:"setextUnderline",resolveTo:w_,tokenize:S_};function w_(e,n){let a=e.length,i,s,c;for(;a--;)if(e[a][0]==="enter"){if(e[a][1].type==="content"){i=a;break}e[a][1].type==="paragraph"&&(s=a)}else e[a][1].type==="content"&&e.splice(a,1),!c&&e[a][1].type==="definition"&&(c=a);const x={type:"setextHeading",start:{...e[i][1].start},end:{...e[e.length-1][1].end}};return e[s][1].type="setextHeadingText",c?(e.splice(s,0,["enter",x,n]),e.splice(c+1,0,["exit",e[i][1],n]),e[i][1].end={...e[c][1].end}):e[i][1]=x,e.push(["exit",x,n]),e}function S_(e,n,a){const i=this;let s;return c;function c(f){let E=i.events.length,p;for(;E--;)if(i.events[E][1].type!=="lineEnding"&&i.events[E][1].type!=="linePrefix"&&i.events[E][1].type!=="content"){p=i.events[E][1].type==="paragraph";break}return!i.parser.lazy[i.now().line]&&(i.interrupt||p)?(e.enter("setextHeadingLine"),s=f,x(f)):a(f)}function x(f){return e.enter("setextHeadingLineSequence"),u(f)}function u(f){return f===s?(e.consume(f),u):(e.exit("setextHeadingLineSequence"),rt(f)?ct(e,d,"lineSuffix")(f):d(f))}function d(f){return f===null||ze(f)?(e.exit("setextHeadingLine"),n(f)):a(f)}}const N_={tokenize:__};function __(e){const n=this,a=e.attempt(Js,i,e.attempt(this.parser.constructs.flowInitial,s,ct(e,e.attempt(this.parser.constructs.flow,s,e.attempt(ON,s)),"linePrefix")));return a;function i(c){if(c===null){e.consume(c);return}return e.enter("lineEndingBlank"),e.consume(c),e.exit("lineEndingBlank"),n.currentConstruct=void 0,a}function s(c){if(c===null){e.consume(c);return}return e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),n.currentConstruct=void 0,a}}const M_={resolveAll:$E()},T_=qE("string"),j_=qE("text");function qE(e){return{resolveAll:$E(e==="text"?R_:void 0),tokenize:n};function n(a){const i=this,s=this.parser.constructs[e],c=a.attempt(s,x,u);return x;function x(E){return f(E)?c(E):u(E)}function u(E){if(E===null){a.consume(E);return}return a.enter("data"),a.consume(E),d}function d(E){return f(E)?(a.exit("data"),c(E)):(a.consume(E),d)}function f(E){if(E===null)return!0;const p=s[E];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 $E(e){return n;function n(a,i){let s=-1,c;for(;++s<=a.length;)c===void 0?a[s]&&a[s][1].type==="data"&&(c=s,s++):(!a[s]||a[s][1].type!=="data")&&(s!==c+2&&(a[c][1].end=a[s-1][1].end,a.splice(c+2,s-c-2),s=c+2),c=void 0);return e?e(a,i):a}}function R_(e,n){let a=0;for(;++a<=e.length;)if((a===e.length||e[a][1].type==="lineEnding")&&e[a-1][1].type==="data"){const i=e[a-1][1],s=n.sliceStream(i);let c=s.length,x=-1,u=0,d;for(;c--;){const f=s[c];if(typeof f=="string"){for(x=f.length;f.charCodeAt(x-1)===32;)u++,x--;if(x)break;x=-1}else if(f===-2)d=!0,u++;else if(f!==-1){c++;break}}if(n._contentTypeTextTrailing&&a===e.length&&(u=0),u){const f={type:a===e.length||d||u<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:c?x:i.start._bufferIndex+x,_index:i.start._index+c,line:i.end.line,column:i.end.column-u,offset:i.end.offset-u},end:{...i.end}};i.end={...f.start},i.start.offset===i.end.offset?Object.assign(i,f):(e.splice(a,0,["enter",f,n],["exit",f,n]),a+=2)}a++}return e}const O_={42:In,43:In,45:In,48:In,49:In,50:In,51:In,52:In,53:In,54:In,55:In,56:In,57:In,62:OE},z_={91:IN},L_={[-2]:ku,[-1]:ku,32:ku},P_={35:QN,42:O0,45:[F9,O0],60:ZN,61:F9,95:O0,96:k9,126:k9},U_={38:LE,92:zE},I_={[-5]:Du,[-4]:Du,[-3]:Du,33:p_,38:LE,42:fd,60:[EN,a_],91:E_,92:[GN,zE],93:af,95:fd,96:NN},H_={null:[fd,M_]},q_={null:[42,95]},$_={null:[]},G_=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:q_,contentInitial:z_,disable:$_,document:O_,flow:P_,flowInitial:L_,insideSpan:H_,string:U_,text:I_},Symbol.toStringTag,{value:"Module"}));function V_(e,n,a){let i={_bufferIndex:-1,_index:0,line:a&&a.line||1,column:a&&a.column||1,offset:a&&a.offset||0};const s={},c=[];let x=[],u=[];const d={attempt:O(R),check:O(S),consume:j,enter:F,exit:_,interrupt:O(S,{interrupt:!0})},f={code:null,containerState:{},defineSkip:A,events:[],now:C,parser:e,previous:null,sliceSerialize:y,sliceStream:b,write:p};let E=n.tokenize.call(f,d);return n.resolveAll&&c.push(n),f;function p(X){return x=mr(x,X),B(),x[x.length-1]!==null?[]:(z(n,0),f.events=nc(c,f.events,f),f.events)}function y(X,Q){return Y_(b(X),Q)}function b(X){return Q_(x,X)}function C(){const{_bufferIndex:X,_index:Q,line:ie,column:Z,offset:Y}=i;return{_bufferIndex:X,_index:Q,line:ie,column:Z,offset:Y}}function A(X){s[X.line]=X.column,L()}function B(){let X;for(;i._index<x.length;){const Q=x[i._index];if(typeof Q=="string")for(X=i._index,i._bufferIndex<0&&(i._bufferIndex=0);i._index===X&&i._bufferIndex<Q.length;)k(Q.charCodeAt(i._bufferIndex));else k(Q)}}function k(X){E=E(X)}function j(X){ze(X)?(i.line++,i.column=1,i.offset+=X===-3?2:1,L()):X!==-1&&(i.column++,i.offset++),i._bufferIndex<0?i._index++:(i._bufferIndex++,i._bufferIndex===x[i._index].length&&(i._bufferIndex=-1,i._index++)),f.previous=X}function F(X,Q){const ie=Q||{};return ie.type=X,ie.start=C(),f.events.push(["enter",ie,f]),u.push(ie),ie}function _(X){const Q=u.pop();return Q.end=C(),f.events.push(["exit",Q,f]),Q}function R(X,Q){z(X,Q.from)}function S(X,Q){Q.restore()}function O(X,Q){return ie;function ie(Z,Y,U){let P,re,he,w;return Array.isArray(Z)?V(Z):"tokenize"in Z?V([Z]):M(Z);function M(fe){return Be;function Be(Le){const ke=Le!==null&&fe[Le],qe=Le!==null&&fe.null,Ze=[...Array.isArray(ke)?ke:ke?[ke]:[],...Array.isArray(qe)?qe:qe?[qe]:[]];return V(Ze)(Le)}}function V(fe){return P=fe,re=0,fe.length===0?U:T(fe[re])}function T(fe){return Be;function Be(Le){return w=G(),he=fe,fe.partial||(f.currentConstruct=fe),fe.name&&f.parser.constructs.disable.null.includes(fe.name)?Ee():fe.tokenize.call(Q?Object.assign(Object.create(f),Q):f,d,le,Ee)(Le)}}function le(fe){return X(he,w),Y}function Ee(fe){return w.restore(),++re<P.length?T(P[re]):U}}}function z(X,Q){X.resolveAll&&!c.includes(X)&&c.push(X),X.resolve&&rr(f.events,Q,f.events.length-Q,X.resolve(f.events.slice(Q),f)),X.resolveTo&&(f.events=X.resolveTo(f.events,f))}function G(){const X=C(),Q=f.previous,ie=f.currentConstruct,Z=f.events.length,Y=Array.from(u);return{from:Z,restore:U};function U(){i=X,f.previous=Q,f.currentConstruct=ie,f.events.length=Z,u=Y,L()}}function L(){i.line in s&&i.column<2&&(i.column=s[i.line],i.offset+=s[i.line]-1)}}function Q_(e,n){const a=n.start._index,i=n.start._bufferIndex,s=n.end._index,c=n.end._bufferIndex;let x;if(a===s)x=[e[a].slice(i,c)];else{if(x=e.slice(a,s),i>-1){const u=x[0];typeof u=="string"?x[0]=u.slice(i):x.shift()}c>0&&x.push(e[s].slice(0,c))}return x}function Y_(e,n){let a=-1;const i=[];let s;for(;++a<e.length;){const c=e[a];let x;if(typeof c=="string")x=c;else switch(c){case-5:{x="\r";break}case-4:{x=`
|
|
17
|
+
`;break}case-3:{x=`\r
|
|
18
|
+
`;break}case-2:{x=n?" ":" ";break}case-1:{if(!n&&s)continue;x=" ";break}default:x=String.fromCharCode(c)}s=c===-2,i.push(x)}return i.join("")}function K_(e){const i={constructs:jE([G_,...(e||{}).extensions||[]]),content:s(xN),defined:[],document:s(dN),flow:s(N_),lazy:{},string:s(T_),text:s(j_)};return i;function s(c){return x;function x(u){return V_(i,c,u)}}}function X_(e){for(;!PE(e););return e}const w9=/[\0\t\n\r]/g;function Z_(){let e=1,n="",a=!0,i;return s;function s(c,x,u){const d=[];let f,E,p,y,b;for(c=n+(typeof c=="string"?c.toString():new TextDecoder(x||void 0).decode(c)),p=0,n="",a&&(c.charCodeAt(0)===65279&&p++,a=void 0);p<c.length;){if(w9.lastIndex=p,f=w9.exec(c),y=f&&f.index!==void 0?f.index:c.length,b=c.charCodeAt(y),!f){n=c.slice(p);break}if(b===10&&p===y&&i)d.push(-3),i=void 0;else switch(i&&(d.push(-5),i=void 0),p<y&&(d.push(c.slice(p,y)),e+=y-p),b){case 0:{d.push(65533),e++;break}case 9:{for(E=Math.ceil(e/4)*4,d.push(-2);e++<E;)d.push(-1);break}case 10:{d.push(-4),e=1;break}default:i=!0,e=1}p=y+1}return u&&(i&&d.push(-5),n&&d.push(n),d.push(null)),d}}const W_=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function J_(e){return e.replace(W_,eM)}function eM(e,n,a){if(n)return n;if(a.charCodeAt(0)===35){const s=a.charCodeAt(1),c=s===120||s===88;return RE(a.slice(c?2:1),c?16:10)}return rf(a)||e}const GE={}.hasOwnProperty;function tM(e,n,a){return n&&typeof n=="object"&&(a=n,n=void 0),nM(a)(X_(K_(a).document().write(Z_()(e,n,!0))))}function nM(e){const n={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:c(wt),autolinkProtocol:G,autolinkEmail:G,atxHeading:c(Ut),blockQuote:c(qe),characterEscape:G,characterReference:G,codeFenced:c(Ze),codeFencedFenceInfo:x,codeFencedFenceMeta:x,codeIndented:c(Ze,x),codeText:c(Ot,x),codeTextData:G,data:G,codeFlowValue:G,definition:c(zt),definitionDestinationString:x,definitionLabelString:x,definitionTitleString:x,emphasis:c(ot),hardBreakEscape:c(Wt),hardBreakTrailing:c(Wt),htmlFlow:c(Ht,x),htmlFlowData:G,htmlText:c(Ht,x),htmlTextData:G,image:c(Gt),label:x,link:c(wt),listItem:c(St),listItemValue:y,listOrdered:c(dn,p),listUnordered:c(dn),paragraph:c(de),reference:T,referenceString:x,resourceDestinationString:x,resourceTitleString:x,setextHeading:c(Ut),strong:c(ht),thematicBreak:c(oe)},exit:{atxHeading:d(),atxHeadingSequence:R,autolink:d(),autolinkEmail:ke,autolinkProtocol:Le,blockQuote:d(),characterEscapeValue:L,characterReferenceMarkerHexadecimal:Ee,characterReferenceMarkerNumeric:Ee,characterReferenceValue:fe,characterReference:Be,codeFenced:d(B),codeFencedFence:A,codeFencedFenceInfo:b,codeFencedFenceMeta:C,codeFlowValue:L,codeIndented:d(k),codeText:d(Y),codeTextData:L,data:L,definition:d(),definitionDestinationString:_,definitionLabelString:j,definitionTitleString:F,emphasis:d(),hardBreakEscape:d(Q),hardBreakTrailing:d(Q),htmlFlow:d(ie),htmlFlowData:L,htmlText:d(Z),htmlTextData:L,image:d(P),label:he,labelText:re,lineEnding:X,link:d(U),listItem:d(),listOrdered:d(),listUnordered:d(),paragraph:d(),referenceString:le,resourceDestinationString:w,resourceTitleString:M,resource:V,setextHeading:d(z),setextHeadingLineSequence:O,setextHeadingText:S,strong:d(),thematicBreak:d()}};VE(n,(e||{}).mdastExtensions||[]);const a={};return i;function i(te){let W={type:"root",children:[]};const ve={stack:[W],tokenStack:[],config:n,enter:u,exit:f,buffer:x,resume:E,data:a},Ue=[];let Te=-1;for(;++Te<te.length;)if(te[Te][1].type==="listOrdered"||te[Te][1].type==="listUnordered")if(te[Te][0]==="enter")Ue.push(Te);else{const sn=Ue.pop();Te=s(te,sn,Te)}for(Te=-1;++Te<te.length;){const sn=n[te[Te][0]];GE.call(sn,te[Te][1].type)&&sn[te[Te][1].type].call(Object.assign({sliceSerialize:te[Te][2].sliceSerialize},ve),te[Te][1])}if(ve.tokenStack.length>0){const sn=ve.tokenStack[ve.tokenStack.length-1];(sn[1]||S9).call(ve,void 0,sn[0])}for(W.position={start:qa(te.length>0?te[0][1].start:{line:1,column:1,offset:0}),end:qa(te.length>0?te[te.length-2][1].end:{line:1,column:1,offset:0})},Te=-1;++Te<n.transforms.length;)W=n.transforms[Te](W)||W;return W}function s(te,W,ve){let Ue=W-1,Te=-1,sn=!1,Gn,dt,_t,yn;for(;++Ue<=ve;){const pt=te[Ue];switch(pt[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{pt[0]==="enter"?Te++:Te--,yn=void 0;break}case"lineEndingBlank":{pt[0]==="enter"&&(Gn&&!yn&&!Te&&!_t&&(_t=Ue),yn=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:yn=void 0}if(!Te&&pt[0]==="enter"&&pt[1].type==="listItemPrefix"||Te===-1&&pt[0]==="exit"&&(pt[1].type==="listUnordered"||pt[1].type==="listOrdered")){if(Gn){let Sr=Ue;for(dt=void 0;Sr--;){const wn=te[Sr];if(wn[1].type==="lineEnding"||wn[1].type==="lineEndingBlank"){if(wn[0]==="exit")continue;dt&&(te[dt][1].type="lineEndingBlank",sn=!0),wn[1].type="lineEnding",dt=Sr}else if(!(wn[1].type==="linePrefix"||wn[1].type==="blockQuotePrefix"||wn[1].type==="blockQuotePrefixWhitespace"||wn[1].type==="blockQuoteMarker"||wn[1].type==="listItemIndent"))break}_t&&(!dt||_t<dt)&&(Gn._spread=!0),Gn.end=Object.assign({},dt?te[dt][1].start:pt[1].end),te.splice(dt||Ue,0,["exit",Gn,pt[2]]),Ue++,ve++}if(pt[1].type==="listItemPrefix"){const Sr={type:"listItem",_spread:!1,start:Object.assign({},pt[1].start),end:void 0};Gn=Sr,te.splice(Ue,0,["enter",Sr,pt[2]]),Ue++,ve++,_t=void 0,yn=!0}}}return te[W][1]._spread=sn,ve}function c(te,W){return ve;function ve(Ue){u.call(this,te(Ue),Ue),W&&W.call(this,Ue)}}function x(){this.stack.push({type:"fragment",children:[]})}function u(te,W,ve){this.stack[this.stack.length-1].children.push(te),this.stack.push(te),this.tokenStack.push([W,ve||void 0]),te.position={start:qa(W.start),end:void 0}}function d(te){return W;function W(ve){te&&te.call(this,ve),f.call(this,ve)}}function f(te,W){const ve=this.stack.pop(),Ue=this.tokenStack.pop();if(Ue)Ue[0].type!==te.type&&(W?W.call(this,te,Ue[0]):(Ue[1]||S9).call(this,te,Ue[0]));else throw new Error("Cannot close `"+te.type+"` ("+js({start:te.start,end:te.end})+"): it’s not open");ve.position.end=qa(te.end)}function E(){return nf(this.stack.pop())}function p(){this.data.expectingFirstListItemValue=!0}function y(te){if(this.data.expectingFirstListItemValue){const W=this.stack[this.stack.length-2];W.start=Number.parseInt(this.sliceSerialize(te),10),this.data.expectingFirstListItemValue=void 0}}function b(){const te=this.resume(),W=this.stack[this.stack.length-1];W.lang=te}function C(){const te=this.resume(),W=this.stack[this.stack.length-1];W.meta=te}function A(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function B(){const te=this.resume(),W=this.stack[this.stack.length-1];W.value=te.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function k(){const te=this.resume(),W=this.stack[this.stack.length-1];W.value=te.replace(/(\r?\n|\r)$/g,"")}function j(te){const W=this.resume(),ve=this.stack[this.stack.length-1];ve.label=W,ve.identifier=wr(this.sliceSerialize(te)).toLowerCase()}function F(){const te=this.resume(),W=this.stack[this.stack.length-1];W.title=te}function _(){const te=this.resume(),W=this.stack[this.stack.length-1];W.url=te}function R(te){const W=this.stack[this.stack.length-1];if(!W.depth){const ve=this.sliceSerialize(te).length;W.depth=ve}}function S(){this.data.setextHeadingSlurpLineEnding=!0}function O(te){const W=this.stack[this.stack.length-1];W.depth=this.sliceSerialize(te).codePointAt(0)===61?1:2}function z(){this.data.setextHeadingSlurpLineEnding=void 0}function G(te){const ve=this.stack[this.stack.length-1].children;let Ue=ve[ve.length-1];(!Ue||Ue.type!=="text")&&(Ue=Je(),Ue.position={start:qa(te.start),end:void 0},ve.push(Ue)),this.stack.push(Ue)}function L(te){const W=this.stack.pop();W.value+=this.sliceSerialize(te),W.position.end=qa(te.end)}function X(te){const W=this.stack[this.stack.length-1];if(this.data.atHardBreak){const ve=W.children[W.children.length-1];ve.position.end=qa(te.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&n.canContainEols.includes(W.type)&&(G.call(this,te),L.call(this,te))}function Q(){this.data.atHardBreak=!0}function ie(){const te=this.resume(),W=this.stack[this.stack.length-1];W.value=te}function Z(){const te=this.resume(),W=this.stack[this.stack.length-1];W.value=te}function Y(){const te=this.resume(),W=this.stack[this.stack.length-1];W.value=te}function U(){const te=this.stack[this.stack.length-1];if(this.data.inReference){const W=this.data.referenceType||"shortcut";te.type+="Reference",te.referenceType=W,delete te.url,delete te.title}else delete te.identifier,delete te.label;this.data.referenceType=void 0}function P(){const te=this.stack[this.stack.length-1];if(this.data.inReference){const W=this.data.referenceType||"shortcut";te.type+="Reference",te.referenceType=W,delete te.url,delete te.title}else delete te.identifier,delete te.label;this.data.referenceType=void 0}function re(te){const W=this.sliceSerialize(te),ve=this.stack[this.stack.length-2];ve.label=J_(W),ve.identifier=wr(W).toLowerCase()}function he(){const te=this.stack[this.stack.length-1],W=this.resume(),ve=this.stack[this.stack.length-1];if(this.data.inReference=!0,ve.type==="link"){const Ue=te.children;ve.children=Ue}else ve.alt=W}function w(){const te=this.resume(),W=this.stack[this.stack.length-1];W.url=te}function M(){const te=this.resume(),W=this.stack[this.stack.length-1];W.title=te}function V(){this.data.inReference=void 0}function T(){this.data.referenceType="collapsed"}function le(te){const W=this.resume(),ve=this.stack[this.stack.length-1];ve.label=W,ve.identifier=wr(this.sliceSerialize(te)).toLowerCase(),this.data.referenceType="full"}function Ee(te){this.data.characterReferenceType=te.type}function fe(te){const W=this.sliceSerialize(te),ve=this.data.characterReferenceType;let Ue;ve?(Ue=RE(W,ve==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Ue=rf(W);const Te=this.stack[this.stack.length-1];Te.value+=Ue}function Be(te){const W=this.stack.pop();W.position.end=qa(te.end)}function Le(te){L.call(this,te);const W=this.stack[this.stack.length-1];W.url=this.sliceSerialize(te)}function ke(te){L.call(this,te);const W=this.stack[this.stack.length-1];W.url="mailto:"+this.sliceSerialize(te)}function qe(){return{type:"blockquote",children:[]}}function Ze(){return{type:"code",lang:null,meta:null,value:""}}function Ot(){return{type:"inlineCode",value:""}}function zt(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function ot(){return{type:"emphasis",children:[]}}function Ut(){return{type:"heading",depth:0,children:[]}}function Wt(){return{type:"break"}}function Ht(){return{type:"html",value:""}}function Gt(){return{type:"image",title:null,url:"",alt:null}}function wt(){return{type:"link",title:null,url:"",children:[]}}function dn(te){return{type:"list",ordered:te.type==="listOrdered",start:null,spread:te._spread,children:[]}}function St(te){return{type:"listItem",spread:te._spread,checked:null,children:[]}}function de(){return{type:"paragraph",children:[]}}function ht(){return{type:"strong",children:[]}}function Je(){return{type:"text",value:""}}function oe(){return{type:"thematicBreak"}}}function qa(e){return{line:e.line,column:e.column,offset:e.offset}}function VE(e,n){let a=-1;for(;++a<n.length;){const i=n[a];Array.isArray(i)?VE(e,i):rM(e,i)}}function rM(e,n){let a;for(a in n)if(GE.call(n,a))switch(a){case"canContainEols":{const i=n[a];i&&e[a].push(...i);break}case"transforms":{const i=n[a];i&&e[a].push(...i);break}case"enter":case"exit":{const i=n[a];i&&Object.assign(e[a],i);break}}}function S9(e,n){throw e?new Error("Cannot close `"+e.type+"` ("+js({start:e.start,end:e.end})+"): a different token (`"+n.type+"`, "+js({start:n.start,end:n.end})+") is open"):new Error("Cannot close document, a token (`"+n.type+"`, "+js({start:n.start,end:n.end})+") is still open")}function aM(e){const n=this;n.parser=a;function a(i){return tM(i,{...n.data("settings"),...e,extensions:n.data("micromarkExtensions")||[],mdastExtensions:n.data("fromMarkdownExtensions")||[]})}}function iM(e,n){const a={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(n),!0)};return e.patch(n,a),e.applyData(n,a)}function lM(e,n){const a={type:"element",tagName:"br",properties:{},children:[]};return e.patch(n,a),[e.applyData(n,a),{type:"text",value:`
|
|
19
|
+
`}]}function sM(e,n){const a=n.value?n.value+`
|
|
20
|
+
`:"",i={},s=n.lang?n.lang.split(/\s+/):[];s.length>0&&(i.className=["language-"+s[0]]);let c={type:"element",tagName:"code",properties:i,children:[{type:"text",value:a}]};return n.meta&&(c.data={meta:n.meta}),e.patch(n,c),c=e.applyData(n,c),c={type:"element",tagName:"pre",properties:{},children:[c]},e.patch(n,c),c}function oM(e,n){const a={type:"element",tagName:"del",properties:{},children:e.all(n)};return e.patch(n,a),e.applyData(n,a)}function cM(e,n){const a={type:"element",tagName:"em",properties:{},children:e.all(n)};return e.patch(n,a),e.applyData(n,a)}function xM(e,n){const a=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",i=String(n.identifier).toUpperCase(),s=Dl(i.toLowerCase()),c=e.footnoteOrder.indexOf(i);let x,u=e.footnoteCounts.get(i);u===void 0?(u=0,e.footnoteOrder.push(i),x=e.footnoteOrder.length):x=c+1,u+=1,e.footnoteCounts.set(i,u);const d={type:"element",tagName:"a",properties:{href:"#"+a+"fn-"+s,id:a+"fnref-"+s+(u>1?"-"+u:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(x)}]};e.patch(n,d);const f={type:"element",tagName:"sup",properties:{},children:[d]};return e.patch(n,f),e.applyData(n,f)}function uM(e,n){const a={type:"element",tagName:"h"+n.depth,properties:{},children:e.all(n)};return e.patch(n,a),e.applyData(n,a)}function dM(e,n){if(e.options.allowDangerousHtml){const a={type:"raw",value:n.value};return e.patch(n,a),e.applyData(n,a)}}function QE(e,n){const a=n.referenceType;let i="]";if(a==="collapsed"?i+="[]":a==="full"&&(i+="["+(n.label||n.identifier)+"]"),n.type==="imageReference")return[{type:"text",value:"!["+n.alt+i}];const s=e.all(n),c=s[0];c&&c.type==="text"?c.value="["+c.value:s.unshift({type:"text",value:"["});const x=s[s.length-1];return x&&x.type==="text"?x.value+=i:s.push({type:"text",value:i}),s}function fM(e,n){const a=String(n.identifier).toUpperCase(),i=e.definitionById.get(a);if(!i)return QE(e,n);const s={src:Dl(i.url||""),alt:n.alt};i.title!==null&&i.title!==void 0&&(s.title=i.title);const c={type:"element",tagName:"img",properties:s,children:[]};return e.patch(n,c),e.applyData(n,c)}function hM(e,n){const a={src:Dl(n.url)};n.alt!==null&&n.alt!==void 0&&(a.alt=n.alt),n.title!==null&&n.title!==void 0&&(a.title=n.title);const i={type:"element",tagName:"img",properties:a,children:[]};return e.patch(n,i),e.applyData(n,i)}function pM(e,n){const a={type:"text",value:n.value.replace(/\r?\n|\r/g," ")};e.patch(n,a);const i={type:"element",tagName:"code",properties:{},children:[a]};return e.patch(n,i),e.applyData(n,i)}function mM(e,n){const a=String(n.identifier).toUpperCase(),i=e.definitionById.get(a);if(!i)return QE(e,n);const s={href:Dl(i.url||"")};i.title!==null&&i.title!==void 0&&(s.title=i.title);const c={type:"element",tagName:"a",properties:s,children:e.all(n)};return e.patch(n,c),e.applyData(n,c)}function EM(e,n){const a={href:Dl(n.url)};n.title!==null&&n.title!==void 0&&(a.title=n.title);const i={type:"element",tagName:"a",properties:a,children:e.all(n)};return e.patch(n,i),e.applyData(n,i)}function gM(e,n,a){const i=e.all(n),s=a?yM(a):YE(n),c={},x=[];if(typeof n.checked=="boolean"){const E=i[0];let p;E&&E.type==="element"&&E.tagName==="p"?p=E:(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:[]}),c.className=["task-list-item"]}let u=-1;for(;++u<i.length;){const E=i[u];(s||u!==0||E.type!=="element"||E.tagName!=="p")&&x.push({type:"text",value:`
|
|
21
|
+
`}),E.type==="element"&&E.tagName==="p"&&!s?x.push(...E.children):x.push(E)}const d=i[i.length-1];d&&(s||d.type!=="element"||d.tagName!=="p")&&x.push({type:"text",value:`
|
|
22
|
+
`});const f={type:"element",tagName:"li",properties:c,children:x};return e.patch(n,f),e.applyData(n,f)}function yM(e){let n=!1;if(e.type==="list"){n=e.spread||!1;const a=e.children;let i=-1;for(;!n&&++i<a.length;)n=YE(a[i])}return n}function YE(e){const n=e.spread;return n??e.children.length>1}function bM(e,n){const a={},i=e.all(n);let s=-1;for(typeof n.start=="number"&&n.start!==1&&(a.start=n.start);++s<i.length;){const x=i[s];if(x.type==="element"&&x.tagName==="li"&&x.properties&&Array.isArray(x.properties.className)&&x.properties.className.includes("task-list-item")){a.className=["contains-task-list"];break}}const c={type:"element",tagName:n.ordered?"ol":"ul",properties:a,children:e.wrap(i,!0)};return e.patch(n,c),e.applyData(n,c)}function CM(e,n){const a={type:"element",tagName:"p",properties:{},children:e.all(n)};return e.patch(n,a),e.applyData(n,a)}function AM(e,n){const a={type:"root",children:e.wrap(e.all(n))};return e.patch(n,a),e.applyData(n,a)}function vM(e,n){const a={type:"element",tagName:"strong",properties:{},children:e.all(n)};return e.patch(n,a),e.applyData(n,a)}function BM(e,n){const a=e.all(n),i=a.shift(),s=[];if(i){const x={type:"element",tagName:"thead",properties:{},children:e.wrap([i],!0)};e.patch(n.children[0],x),s.push(x)}if(a.length>0){const x={type:"element",tagName:"tbody",properties:{},children:e.wrap(a,!0)},u=Wd(n.children[1]),d=FE(n.children[n.children.length-1]);u&&d&&(x.position={start:u,end:d}),s.push(x)}const c={type:"element",tagName:"table",properties:{},children:e.wrap(s,!0)};return e.patch(n,c),e.applyData(n,c)}function kM(e,n,a){const i=a?a.children:void 0,c=(i?i.indexOf(n):1)===0?"th":"td",x=a&&a.type==="table"?a.align:void 0,u=x?x.length:n.children.length;let d=-1;const f=[];for(;++d<u;){const p=n.children[d],y={},b=x?x[d]:void 0;b&&(y.align=b);let C={type:"element",tagName:c,properties:y,children:[]};p&&(C.children=e.all(p),e.patch(p,C),C=e.applyData(p,C)),f.push(C)}const E={type:"element",tagName:"tr",properties:{},children:e.wrap(f,!0)};return e.patch(n,E),e.applyData(n,E)}function DM(e,n){const a={type:"element",tagName:"td",properties:{},children:e.all(n)};return e.patch(n,a),e.applyData(n,a)}const N9=9,_9=32;function FM(e){const n=String(e),a=/\r?\n|\r/g;let i=a.exec(n),s=0;const c=[];for(;i;)c.push(M9(n.slice(s,i.index),s>0,!0),i[0]),s=i.index+i[0].length,i=a.exec(n);return c.push(M9(n.slice(s),s>0,!1)),c.join("")}function M9(e,n,a){let i=0,s=e.length;if(n){let c=e.codePointAt(i);for(;c===N9||c===_9;)i++,c=e.codePointAt(i)}if(a){let c=e.codePointAt(s-1);for(;c===N9||c===_9;)s--,c=e.codePointAt(s-1)}return s>i?e.slice(i,s):""}function wM(e,n){const a={type:"text",value:FM(String(n.value))};return e.patch(n,a),e.applyData(n,a)}function SM(e,n){const a={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(n,a),e.applyData(n,a)}const NM={blockquote:iM,break:lM,code:sM,delete:oM,emphasis:cM,footnoteReference:xM,heading:uM,html:dM,imageReference:fM,image:hM,inlineCode:pM,linkReference:mM,link:EM,listItem:gM,list:bM,paragraph:CM,root:AM,strong:vM,table:BM,tableCell:DM,tableRow:kM,text:wM,thematicBreak:SM,toml:F0,yaml:F0,definition:F0,footnoteDefinition:F0};function F0(){}const KE=-1,rc=0,Os=1,V0=2,lf=3,sf=4,of=5,cf=6,XE=7,ZE=8,WE=typeof self=="object"?self:globalThis,T9=(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 WE[e](n)},_M=(e,n)=>{const a=(s,c)=>(e.set(c,s),s),i=s=>{if(e.has(s))return e.get(s);const[c,x]=n[s];switch(c){case rc:case KE:return a(x,s);case Os:{const u=a([],s);for(const d of x)u.push(i(d));return u}case V0:{const u=a({},s);for(const[d,f]of x)u[i(d)]=i(f);return u}case lf:return a(new Date(x),s);case sf:{const{source:u,flags:d}=x;return a(new RegExp(u,d),s)}case of:{const u=a(new Map,s);for(const[d,f]of x)u.set(i(d),i(f));return u}case cf:{const u=a(new Set,s);for(const d of x)u.add(i(d));return u}case XE:{const{name:u,message:d}=x;return a(typeof WE[u]=="function"?T9(u,d):new Error(d),s)}case ZE:return a(BigInt(x),s);case"BigInt":return a(Object(BigInt(x)),s);case"ArrayBuffer":return a(new Uint8Array(x).buffer,x);case"DataView":{const{buffer:u}=new Uint8Array(x);return a(new DataView(u),x)}}return a(T9(c,x),s)};return i},j9=e=>_M(new Map,e)(0),yi="",{toString:MM}={},{keys:TM}=Object,ws=e=>{const n=typeof e;if(n!=="object"||!e)return[rc,n];const a=MM.call(e).slice(8,-1);switch(a){case"Array":return[Os,yi];case"Object":return[V0,yi];case"Date":return[lf,yi];case"RegExp":return[sf,yi];case"Map":return[of,yi];case"Set":return[cf,yi];case"DataView":return[Os,a]}return a.includes("Array")?[Os,a]:e instanceof Error?[XE,e.name||"Error"]:[V0,a]},w0=([e,n])=>e===rc&&(n==="function"||n==="symbol"),jM=(e,n,a,i)=>{const s=(x,u)=>{const d=i.push(x)-1;return a.set(u,d),d},c=x=>{if(a.has(x))return a.get(x);let[u,d]=ws(x);switch(u){case rc:{let E=x;switch(d){case"bigint":u=ZE,E=x.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+d);E=null;break;case"undefined":return s([KE],x)}return s([u,E],x)}case Os:{if(d){let y=x;return d==="DataView"?y=new Uint8Array(x.buffer):d==="ArrayBuffer"&&(y=new Uint8Array(x)),s([d,[...y]],x)}const E=[],p=s([u,E],x);for(const y of x)E.push(c(y));return p}case V0:{if(d)switch(d){case"BigInt":return s([d,x.toString()],x);case"Boolean":case"Number":case"String":return s([d,x.valueOf()],x)}if(n&&"toJSON"in x)return c(x.toJSON());const E=[],p=s([u,E],x);for(const y of TM(x))(e||!w0(ws(x[y])))&&E.push([c(y),c(x[y])]);return p}case lf:return s([u,isNaN(x.getTime())?yi:x.toISOString()],x);case sf:{const{source:E,flags:p}=x;return s([u,{source:E,flags:p}],x)}case of:{const E=[],p=s([u,E],x);for(const[y,b]of x)(e||!(w0(ws(y))||w0(ws(b))))&&E.push([c(y),c(b)]);return p}case cf:{const E=[],p=s([u,E],x);for(const y of x)(e||!w0(ws(y)))&&E.push(c(y));return p}}const{message:f}=x;return s([u,{name:d,message:f}],x)};return c},R9=(e,{json:n,lossy:a}={})=>{const i=[];return jM(!(n||a),!!n,new Map,i)(e),i},Q0=typeof structuredClone=="function"?(e,n)=>n&&("json"in n||"lossy"in n)?j9(R9(e,n)):structuredClone(e):(e,n)=>j9(R9(e,n));function RM(e,n){const a=[{type:"text",value:"↩"}];return n>1&&a.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(n)}]}),a}function OM(e,n){return"Back to reference "+(e+1)+(n>1?"-"+n:"")}function zM(e){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",a=e.options.footnoteBackContent||RM,i=e.options.footnoteBackLabel||OM,s=e.options.footnoteLabel||"Footnotes",c=e.options.footnoteLabelTagName||"h2",x=e.options.footnoteLabelProperties||{className:["sr-only"]},u=[];let d=-1;for(;++d<e.footnoteOrder.length;){const f=e.footnoteById.get(e.footnoteOrder[d]);if(!f)continue;const E=e.all(f),p=String(f.identifier).toUpperCase(),y=Dl(p.toLowerCase());let b=0;const C=[],A=e.footnoteCounts.get(p);for(;A!==void 0&&++b<=A;){C.length>0&&C.push({type:"text",value:" "});let j=typeof a=="string"?a:a(d,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(d,b),className:["data-footnote-backref"]},children:Array.isArray(j)?j:[j]})}const B=E[E.length-1];if(B&&B.type==="element"&&B.tagName==="p"){const j=B.children[B.children.length-1];j&&j.type==="text"?j.value+=" ":B.children.push({type:"text",value:" "}),B.children.push(...C)}else E.push(...C);const k={type:"element",tagName:"li",properties:{id:n+"fn-"+y},children:e.wrap(E,!0)};e.patch(f,k),u.push(k)}if(u.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:c,properties:{...Q0(x),id:"footnote-label"},children:[{type:"text",value:s}]},{type:"text",value:`
|
|
23
|
+
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(u,!0)},{type:"text",value:`
|
|
24
|
+
`}]}}const ac=(function(e){if(e==null)return IM;if(typeof e=="function")return ic(e);if(typeof e=="object")return Array.isArray(e)?LM(e):PM(e);if(typeof e=="string")return UM(e);throw new Error("Expected function, string, or object as test")});function LM(e){const n=[];let a=-1;for(;++a<e.length;)n[a]=ac(e[a]);return ic(i);function i(...s){let c=-1;for(;++c<n.length;)if(n[c].apply(this,s))return!0;return!1}}function PM(e){const n=e;return ic(a);function a(i){const s=i;let c;for(c in e)if(s[c]!==n[c])return!1;return!0}}function UM(e){return ic(n);function n(a){return a&&a.type===e}}function ic(e){return n;function n(a,i,s){return!!(HM(a)&&e.call(this,a,typeof i=="number"?i:void 0,s||void 0))}}function IM(){return!0}function HM(e){return e!==null&&typeof e=="object"&&"type"in e}const JE=[],qM=!0,hd=!1,$M="skip";function eg(e,n,a,i){let s;typeof n=="function"&&typeof a!="function"?(i=a,a=n):s=n;const c=ac(s),x=i?-1:1;u(e,void 0,[])();function u(d,f,E){const p=d&&typeof d=="object"?d:{};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 ("+(d.type+(b?"<"+b+">":""))+")"})}return y;function y(){let b=JE,C,A,B;if((!n||c(d,f,E[E.length-1]||void 0))&&(b=GM(a(d,E)),b[0]===hd))return b;if("children"in d&&d.children){const k=d;if(k.children&&b[0]!==$M)for(A=(i?k.children.length:-1)+x,B=E.concat(k);A>-1&&A<k.children.length;){const j=k.children[A];if(C=u(j,A,B)(),C[0]===hd)return C;A=typeof C[1]=="number"?C[1]:A+x}}return b}}}function GM(e){return Array.isArray(e)?e:typeof e=="number"?[qM,e]:e==null?JE:[e]}function xf(e,n,a,i){let s,c,x;typeof n=="function"&&typeof a!="function"?(c=void 0,x=n,s=a):(c=n,x=a,s=i),eg(e,c,u,s);function u(d,f){const E=f[f.length-1],p=E?E.children.indexOf(d):void 0;return x(d,p,E)}}const pd={}.hasOwnProperty,VM={};function QM(e,n){const a=n||VM,i=new Map,s=new Map,c=new Map,x={...NM,...a.handlers},u={all:f,applyData:KM,definitionById:i,footnoteById:s,footnoteCounts:c,footnoteOrder:[],handlers:x,one:d,options:a,patch:YM,wrap:ZM};return xf(e,function(E){if(E.type==="definition"||E.type==="footnoteDefinition"){const p=E.type==="definition"?i:s,y=String(E.identifier).toUpperCase();p.has(y)||p.set(y,E)}}),u;function d(E,p){const y=E.type,b=u.handlers[y];if(pd.call(u.handlers,y)&&b)return b(u,E,p);if(u.options.passThrough&&u.options.passThrough.includes(y)){if("children"in E){const{children:A,...B}=E,k=Q0(B);return k.children=u.all(E),k}return Q0(E)}return(u.options.unknownHandler||XM)(u,E,p)}function f(E){const p=[];if("children"in E){const y=E.children;let b=-1;for(;++b<y.length;){const C=u.one(y[b],E);if(C){if(b&&y[b-1].type==="break"&&(!Array.isArray(C)&&C.type==="text"&&(C.value=O9(C.value)),!Array.isArray(C)&&C.type==="element")){const A=C.children[0];A&&A.type==="text"&&(A.value=O9(A.value))}Array.isArray(C)?p.push(...C):p.push(C)}}}return p}}function YM(e,n){e.position&&(n.position=OS(e))}function KM(e,n){let a=n;if(e&&e.data){const i=e.data.hName,s=e.data.hChildren,c=e.data.hProperties;if(typeof i=="string")if(a.type==="element")a.tagName=i;else{const x="children"in a?a.children:[a];a={type:"element",tagName:i,properties:{},children:x}}a.type==="element"&&c&&Object.assign(a.properties,Q0(c)),"children"in a&&a.children&&s!==null&&s!==void 0&&(a.children=s)}return a}function XM(e,n){const a=n.data||{},i="value"in n&&!(pd.call(a,"hProperties")||pd.call(a,"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 ZM(e,n){const a=[];let i=-1;for(n&&a.push({type:"text",value:`
|
|
25
|
+
`});++i<e.length;)i&&a.push({type:"text",value:`
|
|
26
|
+
`}),a.push(e[i]);return n&&e.length>0&&a.push({type:"text",value:`
|
|
27
|
+
`}),a}function O9(e){let n=0,a=e.charCodeAt(n);for(;a===9||a===32;)n++,a=e.charCodeAt(n);return e.slice(n)}function z9(e,n){const a=QM(e,n),i=a.one(e,void 0),s=zM(a),c=Array.isArray(i)?{type:"root",children:i}:i||{type:"root",children:[]};return s&&c.children.push({type:"text",value:`
|
|
28
|
+
`},s),c}function WM(e,n){return e&&"run"in e?async function(a,i){const s=z9(a,{file:i,...n});await e.run(s,i)}:function(a,i){return z9(a,{file:i,...e||n})}}function L9(e){if(e)throw e}var Fu,P9;function JM(){if(P9)return Fu;P9=1;var e=Object.prototype.hasOwnProperty,n=Object.prototype.toString,a=Object.defineProperty,i=Object.getOwnPropertyDescriptor,s=function(f){return typeof Array.isArray=="function"?Array.isArray(f):n.call(f)==="[object Array]"},c=function(f){if(!f||n.call(f)!=="[object Object]")return!1;var E=e.call(f,"constructor"),p=f.constructor&&f.constructor.prototype&&e.call(f.constructor.prototype,"isPrototypeOf");if(f.constructor&&!E&&!p)return!1;var y;for(y in f);return typeof y>"u"||e.call(f,y)},x=function(f,E){a&&E.name==="__proto__"?a(f,E.name,{enumerable:!0,configurable:!0,value:E.newValue,writable:!0}):f[E.name]=E.newValue},u=function(f,E){if(E==="__proto__")if(e.call(f,E)){if(i)return i(f,E).value}else return;return f[E]};return Fu=function d(){var f,E,p,y,b,C,A=arguments[0],B=1,k=arguments.length,j=!1;for(typeof A=="boolean"&&(j=A,A=arguments[1]||{},B=2),(A==null||typeof A!="object"&&typeof A!="function")&&(A={});B<k;++B)if(f=arguments[B],f!=null)for(E in f)p=u(A,E),y=u(f,E),A!==y&&(j&&y&&(c(y)||(b=s(y)))?(b?(b=!1,C=p&&s(p)?p:[]):C=p&&c(p)?p:{},x(A,{name:E,newValue:d(j,C,y)})):typeof y<"u"&&x(A,{name:E,newValue:y}));return A},Fu}var eT=JM();const wu=Qs(eT);function md(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 tT(){const e=[],n={run:a,use:i};return n;function a(...s){let c=-1;const x=s.pop();if(typeof x!="function")throw new TypeError("Expected function as last argument, not "+x);u(null,...s);function u(d,...f){const E=e[++c];let p=-1;if(d){x(d);return}for(;++p<s.length;)(f[p]===null||f[p]===void 0)&&(f[p]=s[p]);s=f,E?nT(E,u)(...f):x(null,...f)}}function i(s){if(typeof s!="function")throw new TypeError("Expected `middelware` to be a function, not "+s);return e.push(s),n}}function nT(e,n){let a;return i;function i(...x){const u=e.length>x.length;let d;u&&x.push(s);try{d=e.apply(this,x)}catch(f){const E=f;if(u&&a)throw E;return s(E)}u||(d&&d.then&&typeof d.then=="function"?d.then(c,s):d instanceof Error?s(d):c(d))}function s(x,...u){a||(a=!0,n(x,...u))}function c(x){s(null,x)}}const Or={basename:rT,dirname:aT,extname:iT,join:lT,sep:"/"};function rT(e,n){if(n!==void 0&&typeof n!="string")throw new TypeError('"ext" argument must be a string');eo(e);let a=0,i=-1,s=e.length,c;if(n===void 0||n.length===0||n.length>e.length){for(;s--;)if(e.codePointAt(s)===47){if(c){a=s+1;break}}else i<0&&(c=!0,i=s+1);return i<0?"":e.slice(a,i)}if(n===e)return"";let x=-1,u=n.length-1;for(;s--;)if(e.codePointAt(s)===47){if(c){a=s+1;break}}else x<0&&(c=!0,x=s+1),u>-1&&(e.codePointAt(s)===n.codePointAt(u--)?u<0&&(i=s):(u=-1,i=x));return a===i?i=x:i<0&&(i=e.length),e.slice(a,i)}function aT(e){if(eo(e),e.length===0)return".";let n=-1,a=e.length,i;for(;--a;)if(e.codePointAt(a)===47){if(i){n=a;break}}else i||(i=!0);return n<0?e.codePointAt(0)===47?"/":".":n===1&&e.codePointAt(0)===47?"//":e.slice(0,n)}function iT(e){eo(e);let n=e.length,a=-1,i=0,s=-1,c=0,x;for(;n--;){const u=e.codePointAt(n);if(u===47){if(x){i=n+1;break}continue}a<0&&(x=!0,a=n+1),u===46?s<0?s=n:c!==1&&(c=1):s>-1&&(c=-1)}return s<0||a<0||c===0||c===1&&s===a-1&&s===i+1?"":e.slice(s,a)}function lT(...e){let n=-1,a;for(;++n<e.length;)eo(e[n]),e[n]&&(a=a===void 0?e[n]:a+"/"+e[n]);return a===void 0?".":sT(a)}function sT(e){eo(e);const n=e.codePointAt(0)===47;let a=oT(e,!n);return a.length===0&&!n&&(a="."),a.length>0&&e.codePointAt(e.length-1)===47&&(a+="/"),n?"/"+a:a}function oT(e,n){let a="",i=0,s=-1,c=0,x=-1,u,d;for(;++x<=e.length;){if(x<e.length)u=e.codePointAt(x);else{if(u===47)break;u=47}if(u===47){if(!(s===x-1||c===1))if(s!==x-1&&c===2){if(a.length<2||i!==2||a.codePointAt(a.length-1)!==46||a.codePointAt(a.length-2)!==46){if(a.length>2){if(d=a.lastIndexOf("/"),d!==a.length-1){d<0?(a="",i=0):(a=a.slice(0,d),i=a.length-1-a.lastIndexOf("/")),s=x,c=0;continue}}else if(a.length>0){a="",i=0,s=x,c=0;continue}}n&&(a=a.length>0?a+"/..":"..",i=2)}else a.length>0?a+="/"+e.slice(s+1,x):a=e.slice(s+1,x),i=x-s-1;s=x,c=0}else u===46&&c>-1?c++:c=-1}return a}function eo(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const cT={cwd:xT};function xT(){return"/"}function Ed(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function uT(e){if(typeof e=="string")e=new URL(e);else if(!Ed(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 dT(e)}function dT(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 a=-1;for(;++a<n.length;)if(n.codePointAt(a)===37&&n.codePointAt(a+1)===50){const i=n.codePointAt(a+2);if(i===70||i===102){const s=new TypeError("File URL path must not include encoded / characters");throw s.code="ERR_INVALID_FILE_URL_PATH",s}}return decodeURIComponent(n)}const Su=["history","path","basename","stem","extname","dirname"];class tg{constructor(n){let a;n?Ed(n)?a={path:n}:typeof n=="string"||fT(n)?a={value:n}:a=n:a={},this.cwd="cwd"in a?"":cT.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let i=-1;for(;++i<Su.length;){const c=Su[i];c in a&&a[c]!==void 0&&a[c]!==null&&(this[c]=c==="history"?[...a[c]]:a[c])}let s;for(s in a)Su.includes(s)||(this[s]=a[s])}get basename(){return typeof this.path=="string"?Or.basename(this.path):void 0}set basename(n){_u(n,"basename"),Nu(n,"basename"),this.path=Or.join(this.dirname||"",n)}get dirname(){return typeof this.path=="string"?Or.dirname(this.path):void 0}set dirname(n){U9(this.basename,"dirname"),this.path=Or.join(n||"",this.basename)}get extname(){return typeof this.path=="string"?Or.extname(this.path):void 0}set extname(n){if(Nu(n,"extname"),U9(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=Or.join(this.dirname,this.stem+(n||""))}get path(){return this.history[this.history.length-1]}set path(n){Ed(n)&&(n=uT(n)),_u(n,"path"),this.path!==n&&this.history.push(n)}get stem(){return typeof this.path=="string"?Or.basename(this.path,this.extname):void 0}set stem(n){_u(n,"stem"),Nu(n,"stem"),this.path=Or.join(this.dirname||"",n+(this.extname||""))}fail(n,a,i){const s=this.message(n,a,i);throw s.fatal=!0,s}info(n,a,i){const s=this.message(n,a,i);return s.fatal=void 0,s}message(n,a,i){const s=new Fn(n,a,i);return this.path&&(s.name=this.path+":"+s.name,s.file=this.path),s.fatal=!1,this.messages.push(s),s}toString(n){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(n||void 0).decode(this.value)}}function Nu(e,n){if(e&&e.includes(Or.sep))throw new Error("`"+n+"` cannot be a path: did not expect `"+Or.sep+"`")}function _u(e,n){if(!e)throw new Error("`"+n+"` cannot be empty")}function U9(e,n){if(!e)throw new Error("Setting `"+n+"` requires `path` to be set too")}function fT(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const hT=(function(e){const i=this.constructor.prototype,s=i[e],c=function(){return s.apply(c,arguments)};return Object.setPrototypeOf(c,i),c}),pT={}.hasOwnProperty;class uf extends hT{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=tT()}copy(){const n=new uf;let a=-1;for(;++a<this.attachers.length;){const i=this.attachers[a];n.use(...i)}return n.data(wu(!0,{},this.namespace)),n}data(n,a){return typeof n=="string"?arguments.length===2?(ju("data",this.frozen),this.namespace[n]=a,this):pT.call(this.namespace,n)&&this.namespace[n]||void 0:n?(ju("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[a,...i]=this.attachers[this.freezeIndex];if(i[0]===!1)continue;i[0]===!0&&(i[0]=void 0);const s=a.call(n,...i);typeof s=="function"&&this.transformers.use(s)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(n){this.freeze();const a=S0(n),i=this.parser||this.Parser;return Mu("parse",i),i(String(a),a)}process(n,a){const i=this;return this.freeze(),Mu("process",this.parser||this.Parser),Tu("process",this.compiler||this.Compiler),a?s(void 0,a):new Promise(s);function s(c,x){const u=S0(n),d=i.parse(u);i.run(d,u,function(E,p,y){if(E||!p||!y)return f(E);const b=p,C=i.stringify(b,y);gT(C)?y.value=C:y.result=C,f(E,y)});function f(E,p){E||!p?x(E):c?c(p):a(void 0,p)}}}processSync(n){let a=!1,i;return this.freeze(),Mu("processSync",this.parser||this.Parser),Tu("processSync",this.compiler||this.Compiler),this.process(n,s),H9("processSync","process",a),i;function s(c,x){a=!0,L9(c),i=x}}run(n,a,i){I9(n),this.freeze();const s=this.transformers;return!i&&typeof a=="function"&&(i=a,a=void 0),i?c(void 0,i):new Promise(c);function c(x,u){const d=S0(a);s.run(n,d,f);function f(E,p,y){const b=p||n;E?u(E):x?x(b):i(void 0,b,y)}}}runSync(n,a){let i=!1,s;return this.run(n,a,c),H9("runSync","run",i),s;function c(x,u){L9(x),s=u,i=!0}}stringify(n,a){this.freeze();const i=S0(a),s=this.compiler||this.Compiler;return Tu("stringify",s),I9(n),s(n,i)}use(n,...a){const i=this.attachers,s=this.namespace;if(ju("use",this.frozen),n!=null)if(typeof n=="function")d(n,a);else if(typeof n=="object")Array.isArray(n)?u(n):x(n);else throw new TypeError("Expected usable value, not `"+n+"`");return this;function c(f){if(typeof f=="function")d(f,[]);else if(typeof f=="object")if(Array.isArray(f)){const[E,...p]=f;d(E,p)}else x(f);else throw new TypeError("Expected usable value, not `"+f+"`")}function x(f){if(!("plugins"in f)&&!("settings"in f))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");u(f.plugins),f.settings&&(s.settings=wu(!0,s.settings,f.settings))}function u(f){let E=-1;if(f!=null)if(Array.isArray(f))for(;++E<f.length;){const p=f[E];c(p)}else throw new TypeError("Expected a list of plugins, not `"+f+"`")}function d(f,E){let p=-1,y=-1;for(;++p<i.length;)if(i[p][0]===f){y=p;break}if(y===-1)i.push([f,...E]);else if(E.length>0){let[b,...C]=E;const A=i[y][1];md(A)&&md(b)&&(b=wu(!0,A,b)),i[y]=[f,b,...C]}}}}const mT=new uf().freeze();function Mu(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function Tu(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function ju(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 I9(e){if(!md(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function H9(e,n,a){if(!a)throw new Error("`"+e+"` finished async. Use `"+n+"` instead")}function S0(e){return ET(e)?e:new tg(e)}function ET(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function gT(e){return typeof e=="string"||yT(e)}function yT(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const bT="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",q9=[],$9={allowDangerousHtml:!0},CT=/^(https?|ircs?|mailto|xmpp)$/i,AT=[{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 vT(e){const n=BT(e),a=kT(e);return DT(n.runSync(n.parse(a),a),e)}function BT(e){const n=e.rehypePlugins||q9,a=e.remarkPlugins||q9,i=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...$9}:$9;return mT().use(aM).use(a).use(WM,i).use(n)}function kT(e){const n=e.children||"",a=new tg;return typeof n=="string"&&(a.value=n),a}function DT(e,n){const a=n.allowedElements,i=n.allowElement,s=n.components,c=n.disallowedElements,x=n.skipHtml,u=n.unwrapDisallowed,d=n.urlTransform||FT;for(const E of AT)Object.hasOwn(n,E.from)&&(""+E.from+(E.to?"use `"+E.to+"` instead":"remove it")+bT+E.id,void 0);return xf(e,f),IS(e,{Fragment:h.Fragment,components:s,ignoreInvalidStyle:!0,jsx:h.jsx,jsxs:h.jsxs,passKeys:!0,passNode:!0});function f(E,p,y){if(E.type==="raw"&&y&&typeof p=="number")return x?y.children.splice(p,1):y.children[p]={type:"text",value:E.value},p;if(E.type==="element"){let b;for(b in Bu)if(Object.hasOwn(Bu,b)&&Object.hasOwn(E.properties,b)){const C=E.properties[b],A=Bu[b];(A===null||A.includes(E.tagName))&&(E.properties[b]=d(String(C||""),b,E))}}if(E.type==="element"){let b=a?!a.includes(E.tagName):c?c.includes(E.tagName):!1;if(!b&&i&&typeof p=="number"&&(b=!i(E,p,y)),b&&y&&typeof p=="number")return u&&E.children?y.children.splice(p,1,...E.children):y.children.splice(p,1),p}}}function FT(e){const n=e.indexOf(":"),a=e.indexOf("?"),i=e.indexOf("#"),s=e.indexOf("/");return n===-1||s!==-1&&n>s||a!==-1&&n>a||i!==-1&&n>i||CT.test(e.slice(0,n))?e:""}function wT(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function ng(e,n,a){const s=ac((a||{}).ignore||[]),c=ST(n);let x=-1;for(;++x<c.length;)eg(e,"text",u);function u(f,E){let p=-1,y;for(;++p<E.length;){const b=E[p],C=y?y.children:void 0;if(s(b,C?C.indexOf(b):void 0,y))return;y=b}if(y)return d(f,E)}function d(f,E){const p=E[E.length-1],y=c[x][0],b=c[x][1];let C=0;const B=p.children.indexOf(f);let k=!1,j=[];y.lastIndex=0;let F=y.exec(f.value);for(;F;){const _=F.index,R={index:F.index,input:F.input,stack:[...E,f]};let S=b(...F,R);if(typeof S=="string"&&(S=S.length>0?{type:"text",value:S}:void 0),S===!1?y.lastIndex=_+1:(C!==_&&j.push({type:"text",value:f.value.slice(C,_)}),Array.isArray(S)?j.push(...S):S&&j.push(S),C=_+F[0].length,k=!0),!y.global)break;F=y.exec(f.value)}return k?(C<f.value.length&&j.push({type:"text",value:f.value.slice(C)}),p.children.splice(B,1,...j)):j=[f],B+j.length}}function ST(e){const n=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const a=!e[0]||Array.isArray(e[0])?e:[e];let i=-1;for(;++i<a.length;){const s=a[i];n.push([NT(s[0]),_T(s[1])])}return n}function NT(e){return typeof e=="string"?new RegExp(wT(e),"g"):e}function _T(e){return typeof e=="function"?e:function(){return e}}function MT(e){ng(e,[/\r?\n|\r/g,TT])}function TT(){return{type:"break"}}function jT(){return function(e){MT(e)}}function G9(e,n){const a=String(e);if(typeof n!="string")throw new TypeError("Expected character");let i=0,s=a.indexOf(n);for(;s!==-1;)i++,s=a.indexOf(n,s+n.length);return i}const Ru="phrasing",Ou=["autolink","link","image","label"];function RT(){return{transforms:[HT],enter:{literalAutolink:zT,literalAutolinkEmail:zu,literalAutolinkHttp:zu,literalAutolinkWww:zu},exit:{literalAutolink:IT,literalAutolinkEmail:UT,literalAutolinkHttp:LT,literalAutolinkWww:PT}}}function OT(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Ru,notInConstruct:Ou},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Ru,notInConstruct:Ou},{character:":",before:"[ps]",after:"\\/",inConstruct:Ru,notInConstruct:Ou}]}}function zT(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function zu(e){this.config.enter.autolinkProtocol.call(this,e)}function LT(e){this.config.exit.autolinkProtocol.call(this,e)}function PT(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 UT(e){this.config.exit.autolinkEmail.call(this,e)}function IT(e){this.exit(e)}function HT(e){ng(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,qT],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),$T]],{ignore:["link","linkReference"]})}function qT(e,n,a,i,s){let c="";if(!rg(s)||(/^w/i.test(n)&&(a=n+a,n="",c="http://"),!GT(a)))return!1;const x=VT(a+i);if(!x[0])return!1;const u={type:"link",title:null,url:c+n+x[0],children:[{type:"text",value:n+x[0]}]};return x[1]?[u,{type:"text",value:x[1]}]:u}function $T(e,n,a,i){return!rg(i,!0)||/[-\d_]$/.test(a)?!1:{type:"link",title:null,url:"mailto:"+n+"@"+a,children:[{type:"text",value:n+"@"+a}]}}function GT(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 VT(e){const n=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!n)return[e,void 0];e=e.slice(0,n.index);let a=n[0],i=a.indexOf(")");const s=G9(e,"(");let c=G9(e,")");for(;i!==-1&&s>c;)e+=a.slice(0,i+1),a=a.slice(i+1),i=a.indexOf(")"),c++;return[e,a]}function rg(e,n){const a=e.input.charCodeAt(e.index-1);return(e.index===0||ki(a)||tc(a))&&(!n||a!==47)}ag.peek=tj;function QT(){this.buffer()}function YT(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function KT(){this.buffer()}function XT(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function ZT(e){const n=this.resume(),a=this.stack[this.stack.length-1];a.type,a.identifier=wr(this.sliceSerialize(e)).toLowerCase(),a.label=n}function WT(e){this.exit(e)}function JT(e){const n=this.resume(),a=this.stack[this.stack.length-1];a.type,a.identifier=wr(this.sliceSerialize(e)).toLowerCase(),a.label=n}function ej(e){this.exit(e)}function tj(){return"["}function ag(e,n,a,i){const s=a.createTracker(i);let c=s.move("[^");const x=a.enter("footnoteReference"),u=a.enter("reference");return c+=s.move(a.safe(a.associationId(e),{after:"]",before:c})),u(),x(),c+=s.move("]"),c}function nj(){return{enter:{gfmFootnoteCallString:QT,gfmFootnoteCall:YT,gfmFootnoteDefinitionLabelString:KT,gfmFootnoteDefinition:XT},exit:{gfmFootnoteCallString:ZT,gfmFootnoteCall:WT,gfmFootnoteDefinitionLabelString:JT,gfmFootnoteDefinition:ej}}}function rj(e){let n=!1;return e&&e.firstLineBlank&&(n=!0),{handlers:{footnoteDefinition:a,footnoteReference:ag},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function a(i,s,c,x){const u=c.createTracker(x);let d=u.move("[^");const f=c.enter("footnoteDefinition"),E=c.enter("label");return d+=u.move(c.safe(c.associationId(i),{before:d,after:"]"})),E(),d+=u.move("]:"),i.children&&i.children.length>0&&(u.shift(4),d+=u.move((n?`
|
|
29
|
+
`:" ")+c.indentLines(c.containerFlow(i,u.current()),n?ig:aj))),f(),d}}function aj(e,n,a){return n===0?e:ig(e,n,a)}function ig(e,n,a){return(a?"":" ")+e}const ij=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];lg.peek=xj;function lj(){return{canContainEols:["delete"],enter:{strikethrough:oj},exit:{strikethrough:cj}}}function sj(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:ij}],handlers:{delete:lg}}}function oj(e){this.enter({type:"delete",children:[]},e)}function cj(e){this.exit(e)}function lg(e,n,a,i){const s=a.createTracker(i),c=a.enter("strikethrough");let x=s.move("~~");return x+=a.containerPhrasing(e,{...s.current(),before:x,after:"~"}),x+=s.move("~~"),c(),x}function xj(){return"~"}function uj(e){return e.length}function dj(e,n){const a=n||{},i=(a.align||[]).concat(),s=a.stringLength||uj,c=[],x=[],u=[],d=[];let f=0,E=-1;for(;++E<e.length;){const A=[],B=[];let k=-1;for(e[E].length>f&&(f=e[E].length);++k<e[E].length;){const j=fj(e[E][k]);if(a.alignDelimiters!==!1){const F=s(j);B[k]=F,(d[k]===void 0||F>d[k])&&(d[k]=F)}A.push(j)}x[E]=A,u[E]=B}let p=-1;if(typeof i=="object"&&"length"in i)for(;++p<f;)c[p]=V9(i[p]);else{const A=V9(i);for(;++p<f;)c[p]=A}p=-1;const y=[],b=[];for(;++p<f;){const A=c[p];let B="",k="";A===99?(B=":",k=":"):A===108?B=":":A===114&&(k=":");let j=a.alignDelimiters===!1?1:Math.max(1,d[p]-B.length-k.length);const F=B+"-".repeat(j)+k;a.alignDelimiters!==!1&&(j=B.length+j+k.length,j>d[p]&&(d[p]=j),b[p]=j),y[p]=F}x.splice(1,0,y),u.splice(1,0,b),E=-1;const C=[];for(;++E<x.length;){const A=x[E],B=u[E];p=-1;const k=[];for(;++p<f;){const j=A[p]||"";let F="",_="";if(a.alignDelimiters!==!1){const R=d[p]-(B[p]||0),S=c[p];S===114?F=" ".repeat(R):S===99?R%2?(F=" ".repeat(R/2+.5),_=" ".repeat(R/2-.5)):(F=" ".repeat(R/2),_=F):_=" ".repeat(R)}a.delimiterStart!==!1&&!p&&k.push("|"),a.padding!==!1&&!(a.alignDelimiters===!1&&j==="")&&(a.delimiterStart!==!1||p)&&k.push(" "),a.alignDelimiters!==!1&&k.push(F),k.push(j),a.alignDelimiters!==!1&&k.push(_),a.padding!==!1&&k.push(" "),(a.delimiterEnd!==!1||p!==f-1)&&k.push("|")}C.push(a.delimiterEnd===!1?k.join("").replace(/ +$/,""):k.join(""))}return C.join(`
|
|
30
|
+
`)}function fj(e){return e==null?"":String(e)}function V9(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 hj(e,n,a,i){const s=a.enter("blockquote"),c=a.createTracker(i);c.move("> "),c.shift(2);const x=a.indentLines(a.containerFlow(e,c.current()),pj);return s(),x}function pj(e,n,a){return">"+(a?"":" ")+e}function mj(e,n){return Q9(e,n.inConstruct,!0)&&!Q9(e,n.notInConstruct,!1)}function Q9(e,n,a){if(typeof n=="string"&&(n=[n]),!n||n.length===0)return a;let i=-1;for(;++i<n.length;)if(e.includes(n[i]))return!0;return!1}function Y9(e,n,a,i){let s=-1;for(;++s<a.unsafe.length;)if(a.unsafe[s].character===`
|
|
31
|
+
`&&mj(a.stack,a.unsafe[s]))return/[ \t]/.test(i.before)?"":" ";return`\\
|
|
32
|
+
`}function Ej(e,n){const a=String(e);let i=a.indexOf(n),s=i,c=0,x=0;if(typeof n!="string")throw new TypeError("Expected substring");for(;i!==-1;)i===s?++c>x&&(x=c):c=1,s=i+n.length,i=a.indexOf(n,s);return x}function gj(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 yj(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 bj(e,n,a,i){const s=yj(a),c=e.value||"",x=s==="`"?"GraveAccent":"Tilde";if(gj(e,a)){const p=a.enter("codeIndented"),y=a.indentLines(c,Cj);return p(),y}const u=a.createTracker(i),d=s.repeat(Math.max(Ej(c,s)+1,3)),f=a.enter("codeFenced");let E=u.move(d);if(e.lang){const p=a.enter(`codeFencedLang${x}`);E+=u.move(a.safe(e.lang,{before:E,after:" ",encode:["`"],...u.current()})),p()}if(e.lang&&e.meta){const p=a.enter(`codeFencedMeta${x}`);E+=u.move(" "),E+=u.move(a.safe(e.meta,{before:E,after:`
|
|
33
|
+
`,encode:["`"],...u.current()})),p()}return E+=u.move(`
|
|
34
|
+
`),c&&(E+=u.move(c+`
|
|
35
|
+
`)),E+=u.move(d),f(),E}function Cj(e,n,a){return(a?"":" ")+e}function df(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 Aj(e,n,a,i){const s=df(a),c=s==='"'?"Quote":"Apostrophe",x=a.enter("definition");let u=a.enter("label");const d=a.createTracker(i);let f=d.move("[");return f+=d.move(a.safe(a.associationId(e),{before:f,after:"]",...d.current()})),f+=d.move("]: "),u(),!e.url||/[\0- \u007F]/.test(e.url)?(u=a.enter("destinationLiteral"),f+=d.move("<"),f+=d.move(a.safe(e.url,{before:f,after:">",...d.current()})),f+=d.move(">")):(u=a.enter("destinationRaw"),f+=d.move(a.safe(e.url,{before:f,after:e.title?" ":`
|
|
36
|
+
`,...d.current()}))),u(),e.title&&(u=a.enter(`title${c}`),f+=d.move(" "+s),f+=d.move(a.safe(e.title,{before:f,after:s,...d.current()})),f+=d.move(s),u()),x(),f}function vj(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 Gs(e){return"&#x"+e.toString(16).toUpperCase()+";"}function Y0(e,n,a){const i=bl(e),s=bl(n);return i===void 0?s===void 0?a==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:s===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:i===1?s===void 0?{inside:!1,outside:!1}:s===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:s===void 0?{inside:!1,outside:!1}:s===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}sg.peek=Bj;function sg(e,n,a,i){const s=vj(a),c=a.enter("emphasis"),x=a.createTracker(i),u=x.move(s);let d=x.move(a.containerPhrasing(e,{after:s,before:u,...x.current()}));const f=d.charCodeAt(0),E=Y0(i.before.charCodeAt(i.before.length-1),f,s);E.inside&&(d=Gs(f)+d.slice(1));const p=d.charCodeAt(d.length-1),y=Y0(i.after.charCodeAt(0),p,s);y.inside&&(d=d.slice(0,-1)+Gs(p));const b=x.move(s);return c(),a.attentionEncodeSurroundingInfo={after:y.outside,before:E.outside},u+d+b}function Bj(e,n,a){return a.options.emphasis||"*"}function kj(e,n){let a=!1;return xf(e,function(i){if("value"in i&&/\r?\n|\r/.test(i.value)||i.type==="break")return a=!0,hd}),!!((!e.depth||e.depth<3)&&nf(e)&&(n.options.setext||a))}function Dj(e,n,a,i){const s=Math.max(Math.min(6,e.depth||1),1),c=a.createTracker(i);if(kj(e,a)){const E=a.enter("headingSetext"),p=a.enter("phrasing"),y=a.containerPhrasing(e,{...c.current(),before:`
|
|
37
|
+
`,after:`
|
|
38
|
+
`});return p(),E(),y+`
|
|
39
|
+
`+(s===1?"=":"-").repeat(y.length-(Math.max(y.lastIndexOf("\r"),y.lastIndexOf(`
|
|
40
|
+
`))+1))}const x="#".repeat(s),u=a.enter("headingAtx"),d=a.enter("phrasing");c.move(x+" ");let f=a.containerPhrasing(e,{before:"# ",after:`
|
|
41
|
+
`,...c.current()});return/^[\t ]/.test(f)&&(f=Gs(f.charCodeAt(0))+f.slice(1)),f=f?x+" "+f:x,a.options.closeAtx&&(f+=" "+x),d(),u(),f}og.peek=Fj;function og(e){return e.value||""}function Fj(){return"<"}cg.peek=wj;function cg(e,n,a,i){const s=df(a),c=s==='"'?"Quote":"Apostrophe",x=a.enter("image");let u=a.enter("label");const d=a.createTracker(i);let f=d.move("![");return f+=d.move(a.safe(e.alt,{before:f,after:"]",...d.current()})),f+=d.move("]("),u(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(u=a.enter("destinationLiteral"),f+=d.move("<"),f+=d.move(a.safe(e.url,{before:f,after:">",...d.current()})),f+=d.move(">")):(u=a.enter("destinationRaw"),f+=d.move(a.safe(e.url,{before:f,after:e.title?" ":")",...d.current()}))),u(),e.title&&(u=a.enter(`title${c}`),f+=d.move(" "+s),f+=d.move(a.safe(e.title,{before:f,after:s,...d.current()})),f+=d.move(s),u()),f+=d.move(")"),x(),f}function wj(){return"!"}xg.peek=Sj;function xg(e,n,a,i){const s=e.referenceType,c=a.enter("imageReference");let x=a.enter("label");const u=a.createTracker(i);let d=u.move("![");const f=a.safe(e.alt,{before:d,after:"]",...u.current()});d+=u.move(f+"]["),x();const E=a.stack;a.stack=[],x=a.enter("reference");const p=a.safe(a.associationId(e),{before:d,after:"]",...u.current()});return x(),a.stack=E,c(),s==="full"||!f||f!==p?d+=u.move(p+"]"):s==="shortcut"?d=d.slice(0,-1):d+=u.move("]"),d}function Sj(){return"!"}ug.peek=Nj;function ug(e,n,a){let i=e.value||"",s="`",c=-1;for(;new RegExp("(^|[^`])"+s+"([^`]|$)").test(i);)s+="`";for(/[^ \r\n]/.test(i)&&(/^[ \r\n]/.test(i)&&/[ \r\n]$/.test(i)||/^`|`$/.test(i))&&(i=" "+i+" ");++c<a.unsafe.length;){const x=a.unsafe[c],u=a.compilePattern(x);let d;if(x.atBreak)for(;d=u.exec(i);){let f=d.index;i.charCodeAt(f)===10&&i.charCodeAt(f-1)===13&&f--,i=i.slice(0,f)+" "+i.slice(d.index+1)}}return s+i+s}function Nj(){return"`"}function dg(e,n){const a=nf(e);return!!(!n.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(a===e.url||"mailto:"+a===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}fg.peek=_j;function fg(e,n,a,i){const s=df(a),c=s==='"'?"Quote":"Apostrophe",x=a.createTracker(i);let u,d;if(dg(e,a)){const E=a.stack;a.stack=[],u=a.enter("autolink");let p=x.move("<");return p+=x.move(a.containerPhrasing(e,{before:p,after:">",...x.current()})),p+=x.move(">"),u(),a.stack=E,p}u=a.enter("link"),d=a.enter("label");let f=x.move("[");return f+=x.move(a.containerPhrasing(e,{before:f,after:"](",...x.current()})),f+=x.move("]("),d(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(d=a.enter("destinationLiteral"),f+=x.move("<"),f+=x.move(a.safe(e.url,{before:f,after:">",...x.current()})),f+=x.move(">")):(d=a.enter("destinationRaw"),f+=x.move(a.safe(e.url,{before:f,after:e.title?" ":")",...x.current()}))),d(),e.title&&(d=a.enter(`title${c}`),f+=x.move(" "+s),f+=x.move(a.safe(e.title,{before:f,after:s,...x.current()})),f+=x.move(s),d()),f+=x.move(")"),u(),f}function _j(e,n,a){return dg(e,a)?"<":"["}hg.peek=Mj;function hg(e,n,a,i){const s=e.referenceType,c=a.enter("linkReference");let x=a.enter("label");const u=a.createTracker(i);let d=u.move("[");const f=a.containerPhrasing(e,{before:d,after:"]",...u.current()});d+=u.move(f+"]["),x();const E=a.stack;a.stack=[],x=a.enter("reference");const p=a.safe(a.associationId(e),{before:d,after:"]",...u.current()});return x(),a.stack=E,c(),s==="full"||!f||f!==p?d+=u.move(p+"]"):s==="shortcut"?d=d.slice(0,-1):d+=u.move("]"),d}function Mj(){return"["}function ff(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 Tj(e){const n=ff(e),a=e.options.bulletOther;if(!a)return n==="*"?"-":"*";if(a!=="*"&&a!=="+"&&a!=="-")throw new Error("Cannot serialize items with `"+a+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(a===n)throw new Error("Expected `bullet` (`"+n+"`) and `bulletOther` (`"+a+"`) to be different");return a}function jj(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 pg(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 Rj(e,n,a,i){const s=a.enter("list"),c=a.bulletCurrent;let x=e.ordered?jj(a):ff(a);const u=e.ordered?x==="."?")":".":Tj(a);let d=n&&a.bulletLastUsed?x===a.bulletLastUsed:!1;if(!e.ordered){const E=e.children?e.children[0]:void 0;if((x==="*"||x==="-")&&E&&(!E.children||!E.children[0])&&a.stack[a.stack.length-1]==="list"&&a.stack[a.stack.length-2]==="listItem"&&a.stack[a.stack.length-3]==="list"&&a.stack[a.stack.length-4]==="listItem"&&a.indexStack[a.indexStack.length-1]===0&&a.indexStack[a.indexStack.length-2]===0&&a.indexStack[a.indexStack.length-3]===0&&(d=!0),pg(a)===x&&E){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"){d=!0;break}}}}d&&(x=u),a.bulletCurrent=x;const f=a.containerFlow(e,i);return a.bulletLastUsed=x,a.bulletCurrent=c,s(),f}function Oj(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 zj(e,n,a,i){const s=Oj(a);let c=a.bulletCurrent||ff(a);n&&n.type==="list"&&n.ordered&&(c=(typeof n.start=="number"&&n.start>-1?n.start:1)+(a.options.incrementListMarker===!1?0:n.children.indexOf(e))+c);let x=c.length+1;(s==="tab"||s==="mixed"&&(n&&n.type==="list"&&n.spread||e.spread))&&(x=Math.ceil(x/4)*4);const u=a.createTracker(i);u.move(c+" ".repeat(x-c.length)),u.shift(x);const d=a.enter("listItem"),f=a.indentLines(a.containerFlow(e,u.current()),E);return d(),f;function E(p,y,b){return y?(b?"":" ".repeat(x))+p:(b?c:c+" ".repeat(x-c.length))+p}}function Lj(e,n,a,i){const s=a.enter("paragraph"),c=a.enter("phrasing"),x=a.containerPhrasing(e,i);return c(),s(),x}const Pj=ac(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function Uj(e,n,a,i){return(e.children.some(function(x){return Pj(x)})?a.containerPhrasing:a.containerFlow).call(a,e,i)}function Ij(e){const n=e.options.strong||"*";if(n!=="*"&&n!=="_")throw new Error("Cannot serialize strong with `"+n+"` for `options.strong`, expected `*`, or `_`");return n}mg.peek=Hj;function mg(e,n,a,i){const s=Ij(a),c=a.enter("strong"),x=a.createTracker(i),u=x.move(s+s);let d=x.move(a.containerPhrasing(e,{after:s,before:u,...x.current()}));const f=d.charCodeAt(0),E=Y0(i.before.charCodeAt(i.before.length-1),f,s);E.inside&&(d=Gs(f)+d.slice(1));const p=d.charCodeAt(d.length-1),y=Y0(i.after.charCodeAt(0),p,s);y.inside&&(d=d.slice(0,-1)+Gs(p));const b=x.move(s+s);return c(),a.attentionEncodeSurroundingInfo={after:y.outside,before:E.outside},u+d+b}function Hj(e,n,a){return a.options.strong||"*"}function qj(e,n,a,i){return a.safe(e.value,i)}function $j(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 Gj(e,n,a){const i=(pg(a)+(a.options.ruleSpaces?" ":"")).repeat($j(a));return a.options.ruleSpaces?i.slice(0,-1):i}const Eg={blockquote:hj,break:Y9,code:bj,definition:Aj,emphasis:sg,hardBreak:Y9,heading:Dj,html:og,image:cg,imageReference:xg,inlineCode:ug,link:fg,linkReference:hg,list:Rj,listItem:zj,paragraph:Lj,root:Uj,strong:mg,text:qj,thematicBreak:Gj};function Vj(){return{enter:{table:Qj,tableData:K9,tableHeader:K9,tableRow:Kj},exit:{codeText:Xj,table:Yj,tableData:Lu,tableHeader:Lu,tableRow:Lu}}}function Qj(e){const n=e._align;this.enter({type:"table",align:n.map(function(a){return a==="none"?null:a}),children:[]},e),this.data.inTable=!0}function Yj(e){this.exit(e),this.data.inTable=void 0}function Kj(e){this.enter({type:"tableRow",children:[]},e)}function Lu(e){this.exit(e)}function K9(e){this.enter({type:"tableCell",children:[]},e)}function Xj(e){let n=this.resume();this.data.inTable&&(n=n.replace(/\\([\\|])/g,Zj));const a=this.stack[this.stack.length-1];a.type,a.value=n,this.exit(e)}function Zj(e,n){return n==="|"?n:e}function Wj(e){const n=e||{},a=n.tableCellPadding,i=n.tablePipeAlign,s=n.stringLength,c=a?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
|
|
42
|
+
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:y,table:x,tableCell:d,tableRow:u}};function x(b,C,A,B){return f(E(b,A,B),b.align)}function u(b,C,A,B){const k=p(b,A,B),j=f([k]);return j.slice(0,j.indexOf(`
|
|
43
|
+
`))}function d(b,C,A,B){const k=A.enter("tableCell"),j=A.enter("phrasing"),F=A.containerPhrasing(b,{...B,before:c,after:c});return j(),k(),F}function f(b,C){return dj(b,{align:C,alignDelimiters:i,padding:a,stringLength:s})}function E(b,C,A){const B=b.children;let k=-1;const j=[],F=C.enter("table");for(;++k<B.length;)j[k]=p(B[k],C,A);return F(),j}function p(b,C,A){const B=b.children;let k=-1;const j=[],F=C.enter("tableRow");for(;++k<B.length;)j[k]=d(B[k],b,C,A);return F(),j}function y(b,C,A){let B=Eg.inlineCode(b,C,A);return A.stack.includes("tableCell")&&(B=B.replace(/\|/g,"\\$&")),B}}function Jj(){return{exit:{taskListCheckValueChecked:X9,taskListCheckValueUnchecked:X9,paragraph:tR}}}function eR(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:nR}}}function X9(e){const n=this.stack[this.stack.length-2];n.type,n.checked=e.type==="taskListCheckValueChecked"}function tR(e){const n=this.stack[this.stack.length-2];if(n&&n.type==="listItem"&&typeof n.checked=="boolean"){const a=this.stack[this.stack.length-1];a.type;const i=a.children[0];if(i&&i.type==="text"){const s=n.children;let c=-1,x;for(;++c<s.length;){const u=s[c];if(u.type==="paragraph"){x=u;break}}x===a&&(i.value=i.value.slice(1),i.value.length===0?a.children.shift():a.position&&i.position&&typeof i.position.start.offset=="number"&&(i.position.start.column++,i.position.start.offset++,a.position.start=Object.assign({},i.position.start)))}}this.exit(e)}function nR(e,n,a,i){const s=e.children[0],c=typeof e.checked=="boolean"&&s&&s.type==="paragraph",x="["+(e.checked?"x":" ")+"] ",u=a.createTracker(i);c&&u.move(x);let d=Eg.listItem(e,n,a,{...i,...u.current()});return c&&(d=d.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,f)),d;function f(E){return E+x}}function rR(){return[RT(),nj(),lj(),Vj(),Jj()]}function aR(e){return{extensions:[OT(),rj(e),sj(),Wj(e),eR()]}}const iR={tokenize:uR,partial:!0},gg={tokenize:dR,partial:!0},yg={tokenize:fR,partial:!0},bg={tokenize:hR,partial:!0},lR={tokenize:pR,partial:!0},Cg={name:"wwwAutolink",tokenize:cR,previous:vg},Ag={name:"protocolAutolink",tokenize:xR,previous:Bg},fa={name:"emailAutolink",tokenize:oR,previous:kg},Pr={};function sR(){return{text:Pr}}let gi=48;for(;gi<123;)Pr[gi]=fa,gi++,gi===58?gi=65:gi===91&&(gi=97);Pr[43]=fa;Pr[45]=fa;Pr[46]=fa;Pr[95]=fa;Pr[72]=[fa,Ag];Pr[104]=[fa,Ag];Pr[87]=[fa,Cg];Pr[119]=[fa,Cg];function oR(e,n,a){const i=this;let s,c;return x;function x(p){return!gd(p)||!kg.call(i,i.previous)||hf(i.events)?a(p):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),u(p))}function u(p){return gd(p)?(e.consume(p),u):p===64?(e.consume(p),d):a(p)}function d(p){return p===46?e.check(lR,E,f)(p):p===45||p===95||Bn(p)?(c=!0,e.consume(p),d):E(p)}function f(p){return e.consume(p),s=!0,d}function E(p){return c&&s&&_n(i.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),n(p)):a(p)}}function cR(e,n,a){const i=this;return s;function s(x){return x!==87&&x!==119||!vg.call(i,i.previous)||hf(i.events)?a(x):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(iR,e.attempt(gg,e.attempt(yg,c),a),a)(x))}function c(x){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),n(x)}}function xR(e,n,a){const i=this;let s="",c=!1;return x;function x(p){return(p===72||p===104)&&Bg.call(i,i.previous)&&!hf(i.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),s+=String.fromCodePoint(p),e.consume(p),u):a(p)}function u(p){if(_n(p)&&s.length<5)return s+=String.fromCodePoint(p),e.consume(p),u;if(p===58){const y=s.toLowerCase();if(y==="http"||y==="https")return e.consume(p),d}return a(p)}function d(p){return p===47?(e.consume(p),c?f:(c=!0,d)):a(p)}function f(p){return p===null||G0(p)||Ft(p)||ki(p)||tc(p)?a(p):e.attempt(gg,e.attempt(yg,E),a)(p)}function E(p){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),n(p)}}function uR(e,n,a){let i=0;return s;function s(x){return(x===87||x===119)&&i<3?(i++,e.consume(x),s):x===46&&i===3?(e.consume(x),c):a(x)}function c(x){return x===null?a(x):n(x)}}function dR(e,n,a){let i,s,c;return x;function x(f){return f===46||f===95?e.check(bg,d,u)(f):f===null||Ft(f)||ki(f)||f!==45&&tc(f)?d(f):(c=!0,e.consume(f),x)}function u(f){return f===95?i=!0:(s=i,i=void 0),e.consume(f),x}function d(f){return s||i||!c?a(f):n(f)}}function fR(e,n){let a=0,i=0;return s;function s(x){return x===40?(a++,e.consume(x),s):x===41&&i<a?c(x):x===33||x===34||x===38||x===39||x===41||x===42||x===44||x===46||x===58||x===59||x===60||x===63||x===93||x===95||x===126?e.check(bg,n,c)(x):x===null||Ft(x)||ki(x)?n(x):(e.consume(x),s)}function c(x){return x===41&&i++,e.consume(x),s}}function hR(e,n,a){return i;function i(u){return u===33||u===34||u===39||u===41||u===42||u===44||u===46||u===58||u===59||u===63||u===95||u===126?(e.consume(u),i):u===38?(e.consume(u),c):u===93?(e.consume(u),s):u===60||u===null||Ft(u)||ki(u)?n(u):a(u)}function s(u){return u===null||u===40||u===91||Ft(u)||ki(u)?n(u):i(u)}function c(u){return _n(u)?x(u):a(u)}function x(u){return u===59?(e.consume(u),i):_n(u)?(e.consume(u),x):a(u)}}function pR(e,n,a){return i;function i(c){return e.consume(c),s}function s(c){return Bn(c)?a(c):n(c)}}function vg(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||Ft(e)}function Bg(e){return!_n(e)}function kg(e){return!(e===47||gd(e))}function gd(e){return e===43||e===45||e===46||e===95||Bn(e)}function hf(e){let n=e.length,a=!1;for(;n--;){const i=e[n][1];if((i.type==="labelLink"||i.type==="labelImage")&&!i._balanced){a=!0;break}if(i._gfmAutolinkLiteralWalkedInto){a=!1;break}}return e.length>0&&!a&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),a}const mR={tokenize:BR,partial:!0};function ER(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:CR,continuation:{tokenize:AR},exit:vR}},text:{91:{name:"gfmFootnoteCall",tokenize:bR},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:gR,resolveTo:yR}}}}function gR(e,n,a){const i=this;let s=i.events.length;const c=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let x;for(;s--;){const d=i.events[s][1];if(d.type==="labelImage"){x=d;break}if(d.type==="gfmFootnoteCall"||d.type==="labelLink"||d.type==="label"||d.type==="image"||d.type==="link")break}return u;function u(d){if(!x||!x._balanced)return a(d);const f=wr(i.sliceSerialize({start:x.end,end:i.now()}));return f.codePointAt(0)!==94||!c.includes(f.slice(1))?a(d):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),n(d))}}function yR(e,n){let a=e.length;for(;a--;)if(e[a][1].type==="labelImage"&&e[a][0]==="enter"){e[a][1];break}e[a+1][1].type="data",e[a+3][1].type="gfmFootnoteCallLabelMarker";const i={type:"gfmFootnoteCall",start:Object.assign({},e[a+3][1].start),end:Object.assign({},e[e.length-1][1].end)},s={type:"gfmFootnoteCallMarker",start:Object.assign({},e[a+3][1].end),end:Object.assign({},e[a+3][1].end)};s.end.column++,s.end.offset++,s.end._bufferIndex++;const c={type:"gfmFootnoteCallString",start:Object.assign({},s.end),end:Object.assign({},e[e.length-1][1].start)},x={type:"chunkString",contentType:"string",start:Object.assign({},c.start),end:Object.assign({},c.end)},u=[e[a+1],e[a+2],["enter",i,n],e[a+3],e[a+4],["enter",s,n],["exit",s,n],["enter",c,n],["enter",x,n],["exit",x,n],["exit",c,n],e[e.length-2],e[e.length-1],["exit",i,n]];return e.splice(a,e.length-a+1,...u),e}function bR(e,n,a){const i=this,s=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let c=0,x;return u;function u(p){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(p),e.exit("gfmFootnoteCallLabelMarker"),d}function d(p){return p!==94?a(p):(e.enter("gfmFootnoteCallMarker"),e.consume(p),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",f)}function f(p){if(c>999||p===93&&!x||p===null||p===91||Ft(p))return a(p);if(p===93){e.exit("chunkString");const y=e.exit("gfmFootnoteCallString");return s.includes(wr(i.sliceSerialize(y)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(p),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),n):a(p)}return Ft(p)||(x=!0),c++,e.consume(p),p===92?E:f}function E(p){return p===91||p===92||p===93?(e.consume(p),c++,f):f(p)}}function CR(e,n,a){const i=this,s=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let c,x=0,u;return d;function d(C){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(C),e.exit("gfmFootnoteDefinitionLabelMarker"),f}function f(C){return C===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(C),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",E):a(C)}function E(C){if(x>999||C===93&&!u||C===null||C===91||Ft(C))return a(C);if(C===93){e.exit("chunkString");const A=e.exit("gfmFootnoteDefinitionLabelString");return c=wr(i.sliceSerialize(A)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(C),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),y}return Ft(C)||(u=!0),x++,e.consume(C),C===92?p:E}function p(C){return C===91||C===92||C===93?(e.consume(C),x++,E):E(C)}function y(C){return C===58?(e.enter("definitionMarker"),e.consume(C),e.exit("definitionMarker"),s.includes(c)||s.push(c),ct(e,b,"gfmFootnoteDefinitionWhitespace")):a(C)}function b(C){return n(C)}}function AR(e,n,a){return e.check(Js,n,e.attempt(mR,n,a))}function vR(e){e.exit("gfmFootnoteDefinition")}function BR(e,n,a){const i=this;return ct(e,s,"gfmFootnoteDefinitionIndent",5);function s(c){const x=i.events[i.events.length-1];return x&&x[1].type==="gfmFootnoteDefinitionIndent"&&x[2].sliceSerialize(x[1],!0).length===4?n(c):a(c)}}function kR(e){let a=(e||{}).singleTilde;const i={name:"strikethrough",tokenize:c,resolveAll:s};return a==null&&(a=!0),{text:{126:i},insideSpan:{null:[i]},attentionMarkers:{null:[126]}};function s(x,u){let d=-1;for(;++d<x.length;)if(x[d][0]==="enter"&&x[d][1].type==="strikethroughSequenceTemporary"&&x[d][1]._close){let f=d;for(;f--;)if(x[f][0]==="exit"&&x[f][1].type==="strikethroughSequenceTemporary"&&x[f][1]._open&&x[d][1].end.offset-x[d][1].start.offset===x[f][1].end.offset-x[f][1].start.offset){x[d][1].type="strikethroughSequence",x[f][1].type="strikethroughSequence";const E={type:"strikethrough",start:Object.assign({},x[f][1].start),end:Object.assign({},x[d][1].end)},p={type:"strikethroughText",start:Object.assign({},x[f][1].end),end:Object.assign({},x[d][1].start)},y=[["enter",E,u],["enter",x[f][1],u],["exit",x[f][1],u],["enter",p,u]],b=u.parser.constructs.insideSpan.null;b&&rr(y,y.length,0,nc(b,x.slice(f+1,d),u)),rr(y,y.length,0,[["exit",p,u],["enter",x[d][1],u],["exit",x[d][1],u],["exit",E,u]]),rr(x,f-1,d-f+3,y),d=f+y.length-2;break}}for(d=-1;++d<x.length;)x[d][1].type==="strikethroughSequenceTemporary"&&(x[d][1].type="data");return x}function c(x,u,d){const f=this.previous,E=this.events;let p=0;return y;function y(C){return f===126&&E[E.length-1][1].type!=="characterEscape"?d(C):(x.enter("strikethroughSequenceTemporary"),b(C))}function b(C){const A=bl(f);if(C===126)return p>1?d(C):(x.consume(C),p++,b);if(p<2&&!a)return d(C);const B=x.exit("strikethroughSequenceTemporary"),k=bl(C);return B._open=!k||k===2&&!!A,B._close=!A||A===2&&!!k,u(C)}}}class DR{constructor(){this.map=[]}add(n,a,i){FR(this,n,a,i)}consume(n){if(this.map.sort(function(c,x){return c[0]-x[0]}),this.map.length===0)return;let a=this.map.length;const i=[];for(;a>0;)a-=1,i.push(n.slice(this.map[a][0]+this.map[a][1]),this.map[a][2]),n.length=this.map[a][0];i.push(n.slice()),n.length=0;let s=i.pop();for(;s;){for(const c of s)n.push(c);s=i.pop()}this.map.length=0}}function FR(e,n,a,i){let s=0;if(!(a===0&&i.length===0)){for(;s<e.map.length;){if(e.map[s][0]===n){e.map[s][1]+=a,e.map[s][2].push(...i);return}s+=1}e.map.push([n,a,i])}}function wR(e,n){let a=!1;const i=[];for(;n<e.length;){const s=e[n];if(a){if(s[0]==="enter")s[1].type==="tableContent"&&i.push(e[n+1][1].type==="tableDelimiterMarker"?"left":"none");else if(s[1].type==="tableContent"){if(e[n-1][1].type==="tableDelimiterMarker"){const c=i.length-1;i[c]=i[c]==="left"?"center":"right"}}else if(s[1].type==="tableDelimiterRow")break}else s[0]==="enter"&&s[1].type==="tableDelimiterRow"&&(a=!0);n+=1}return i}function SR(){return{flow:{null:{name:"table",tokenize:NR,resolveAll:_R}}}}function NR(e,n,a){const i=this;let s=0,c=0,x;return u;function u(L){let X=i.events.length-1;for(;X>-1;){const Z=i.events[X][1].type;if(Z==="lineEnding"||Z==="linePrefix")X--;else break}const Q=X>-1?i.events[X][1].type:null,ie=Q==="tableHead"||Q==="tableRow"?S:d;return ie===S&&i.parser.lazy[i.now().line]?a(L):ie(L)}function d(L){return e.enter("tableHead"),e.enter("tableRow"),f(L)}function f(L){return L===124||(x=!0,c+=1),E(L)}function E(L){return L===null?a(L):ze(L)?c>1?(c=0,i.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(L),e.exit("lineEnding"),b):a(L):rt(L)?ct(e,E,"whitespace")(L):(c+=1,x&&(x=!1,s+=1),L===124?(e.enter("tableCellDivider"),e.consume(L),e.exit("tableCellDivider"),x=!0,E):(e.enter("data"),p(L)))}function p(L){return L===null||L===124||Ft(L)?(e.exit("data"),E(L)):(e.consume(L),L===92?y:p)}function y(L){return L===92||L===124?(e.consume(L),p):p(L)}function b(L){return i.interrupt=!1,i.parser.lazy[i.now().line]?a(L):(e.enter("tableDelimiterRow"),x=!1,rt(L)?ct(e,C,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(L):C(L))}function C(L){return L===45||L===58?B(L):L===124?(x=!0,e.enter("tableCellDivider"),e.consume(L),e.exit("tableCellDivider"),A):R(L)}function A(L){return rt(L)?ct(e,B,"whitespace")(L):B(L)}function B(L){return L===58?(c+=1,x=!0,e.enter("tableDelimiterMarker"),e.consume(L),e.exit("tableDelimiterMarker"),k):L===45?(c+=1,k(L)):L===null||ze(L)?_(L):R(L)}function k(L){return L===45?(e.enter("tableDelimiterFiller"),j(L)):R(L)}function j(L){return L===45?(e.consume(L),j):L===58?(x=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(L),e.exit("tableDelimiterMarker"),F):(e.exit("tableDelimiterFiller"),F(L))}function F(L){return rt(L)?ct(e,_,"whitespace")(L):_(L)}function _(L){return L===124?C(L):L===null||ze(L)?!x||s!==c?R(L):(e.exit("tableDelimiterRow"),e.exit("tableHead"),n(L)):R(L)}function R(L){return a(L)}function S(L){return e.enter("tableRow"),O(L)}function O(L){return L===124?(e.enter("tableCellDivider"),e.consume(L),e.exit("tableCellDivider"),O):L===null||ze(L)?(e.exit("tableRow"),n(L)):rt(L)?ct(e,O,"whitespace")(L):(e.enter("data"),z(L))}function z(L){return L===null||L===124||Ft(L)?(e.exit("data"),O(L)):(e.consume(L),L===92?G:z)}function G(L){return L===92||L===124?(e.consume(L),z):z(L)}}function _R(e,n){let a=-1,i=!0,s=0,c=[0,0,0,0],x=[0,0,0,0],u=!1,d=0,f,E,p;const y=new DR;for(;++a<e.length;){const b=e[a],C=b[1];b[0]==="enter"?C.type==="tableHead"?(u=!1,d!==0&&(Z9(y,n,d,f,E),E=void 0,d=0),f={type:"table",start:Object.assign({},C.start),end:Object.assign({},C.end)},y.add(a,0,[["enter",f,n]])):C.type==="tableRow"||C.type==="tableDelimiterRow"?(i=!0,p=void 0,c=[0,0,0,0],x=[0,a+1,0,0],u&&(u=!1,E={type:"tableBody",start:Object.assign({},C.start),end:Object.assign({},C.end)},y.add(a,0,[["enter",E,n]])),s=C.type==="tableDelimiterRow"?2:E?3:1):s&&(C.type==="data"||C.type==="tableDelimiterMarker"||C.type==="tableDelimiterFiller")?(i=!1,x[2]===0&&(c[1]!==0&&(x[0]=x[1],p=N0(y,n,c,s,void 0,p),c=[0,0,0,0]),x[2]=a)):C.type==="tableCellDivider"&&(i?i=!1:(c[1]!==0&&(x[0]=x[1],p=N0(y,n,c,s,void 0,p)),c=x,x=[c[1],a,0,0])):C.type==="tableHead"?(u=!0,d=a):C.type==="tableRow"||C.type==="tableDelimiterRow"?(d=a,c[1]!==0?(x[0]=x[1],p=N0(y,n,c,s,a,p)):x[1]!==0&&(p=N0(y,n,x,s,a,p)),s=0):s&&(C.type==="data"||C.type==="tableDelimiterMarker"||C.type==="tableDelimiterFiller")&&(x[3]=a)}for(d!==0&&Z9(y,n,d,f,E),y.consume(n.events),a=-1;++a<n.events.length;){const b=n.events[a];b[0]==="enter"&&b[1].type==="table"&&(b[1]._align=wR(n.events,a))}return e}function N0(e,n,a,i,s,c){const x=i===1?"tableHeader":i===2?"tableDelimiter":"tableData",u="tableContent";a[0]!==0&&(c.end=Object.assign({},gl(n.events,a[0])),e.add(a[0],0,[["exit",c,n]]));const d=gl(n.events,a[1]);if(c={type:x,start:Object.assign({},d),end:Object.assign({},d)},e.add(a[1],0,[["enter",c,n]]),a[2]!==0){const f=gl(n.events,a[2]),E=gl(n.events,a[3]),p={type:u,start:Object.assign({},f),end:Object.assign({},E)};if(e.add(a[2],0,[["enter",p,n]]),i!==2){const y=n.events[a[2]],b=n.events[a[3]];if(y[1].end=Object.assign({},b[1].end),y[1].type="chunkText",y[1].contentType="text",a[3]>a[2]+1){const C=a[2]+1,A=a[3]-a[2]-1;e.add(C,A,[])}}e.add(a[3]+1,0,[["exit",p,n]])}return s!==void 0&&(c.end=Object.assign({},gl(n.events,s)),e.add(s,0,[["exit",c,n]]),c=void 0),c}function Z9(e,n,a,i,s){const c=[],x=gl(n.events,a);s&&(s.end=Object.assign({},x),c.push(["exit",s,n])),i.end=Object.assign({},x),c.push(["exit",i,n]),e.add(a+1,0,c)}function gl(e,n){const a=e[n],i=a[0]==="enter"?"start":"end";return a[1][i]}const MR={name:"tasklistCheck",tokenize:jR};function TR(){return{text:{91:MR}}}function jR(e,n,a){const i=this;return s;function s(d){return i.previous!==null||!i._gfmTasklistFirstContentOfListItem?a(d):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(d),e.exit("taskListCheckMarker"),c)}function c(d){return Ft(d)?(e.enter("taskListCheckValueUnchecked"),e.consume(d),e.exit("taskListCheckValueUnchecked"),x):d===88||d===120?(e.enter("taskListCheckValueChecked"),e.consume(d),e.exit("taskListCheckValueChecked"),x):a(d)}function x(d){return d===93?(e.enter("taskListCheckMarker"),e.consume(d),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),u):a(d)}function u(d){return ze(d)?n(d):rt(d)?e.check({tokenize:RR},n,a)(d):a(d)}}function RR(e,n,a){return ct(e,i,"whitespace");function i(s){return s===null?a(s):n(s)}}function OR(e){return jE([sR(),ER(),kR(e),SR(),TR()])}const zR={};function LR(e){const n=this,a=e||zR,i=n.data(),s=i.micromarkExtensions||(i.micromarkExtensions=[]),c=i.fromMarkdownExtensions||(i.fromMarkdownExtensions=[]),x=i.toMarkdownExtensions||(i.toMarkdownExtensions=[]);s.push(OR(a)),c.push(rR()),x.push(aR(a))}function pf({title:e,subtitle:n,actions:a,onClose:i,closeLabel:s}){return h.jsxs("header",{className:"flex shrink-0 items-center gap-3 border-b border-border-soft bg-bg px-4 py-3",children:[h.jsxs("div",{className:"min-w-0 flex-1",children:[h.jsx("h2",{className:"text-base font-semibold",children:e}),n?h.jsx("p",{className:"truncate font-mono text-xs text-muted",children:n}):null]}),a,h.jsx("button",{type:"button",onClick:i,"aria-label":s,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:h.jsx(kn,{size:18})})]})}const PR=[LR,jT],Dg="conductor-attachment.invalid";function UR(e){const n=_k(e);if(!n.length)return e;let a="",i=0;for(const s of n){const c=s.name.replace(/[\\`*_[\]<>]/g,"\\$&");a+=`${e.slice(i,s.start)}[${c}](https://${Dg}/?path=${encodeURIComponent(s.path)})`,i=s.end}return a+e.slice(i)}function IR(e){if(!e)return null;try{const n=new URL(e);return n.hostname===Dg?n.searchParams.get("path"):null}catch{return null}}function Fg(e){const[n,a]=D.useState(null),[i,s]=D.useState(null);return D.useEffect(()=>{if(a(null),s(null),!e)return;let c=!1;return Oe.localImage(e).then(x=>{c||a(x)},x=>{c||s(x instanceof Error?x.message:"Image unavailable")}),()=>{c=!0}},[e]),{objectUrl:n,error:i}}function HR({src:e,alt:n,...a}){const i=Y2(typeof e=="string"?e:null),{objectUrl:s,error:c}=Fg(i);return i?c?h.jsxs("span",{className:"my-2 block rounded-lg border border-del/30 px-3 py-2 text-xs text-del",children:[n||"Image"," unavailable: ",c]}):s?h.jsx("img",{src:s,alt:n??"",...a}):null:h.jsx("img",{src:e,alt:n??"",...a})}function wg(e){if(!e?.startsWith("/"))return null;const n=e.match(/:([1-9]\d*)(?::\d+)?$/);return x2(n?e.slice(0,-n[0].length):e)?e:null}function yd({href:e,children:n,onClick:a,...i}){const s=IR(e),c=Y2(e??null),x=Q2(e??null),u=wg(e)??x,d=c??u,[f,E]=D.useState(!1);return e?s?h.jsxs("span",{title:s,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",children:[h.jsx(ec,{size:12,className:"shrink-0"}),h.jsx("span",{className:"truncate",children:n})]}):h.jsxs(h.Fragment,{children:[h.jsx("a",{href:e,...i,title:c?`Open image ${c}`:i.title,onClick:p=>{a?.(p),!(!d||p.defaultPrevented||p.button!==0||p.metaKey||p.ctrlKey||p.shiftKey||p.altKey)&&(p.preventDefault(),E(!0))},children:n}),c&&f?h.jsx(qR,{reference:c,onClose:()=>E(!1)}):u&&f?h.jsx(Sg,{reference:u,onClose:()=>E(!1)}):null]}):h.jsx("span",{title:i.title,children:n})}function qR({reference:e,onClose:n}){const{objectUrl:a,error:i}=Fg(e);return D.useEffect(()=>{const s=c=>{c.key==="Escape"&&n()};return window.addEventListener("keydown",s),()=>window.removeEventListener("keydown",s)},[n]),Si.createPortal(h.jsxs(h.Fragment,{children:[h.jsx("div",{className:"fixed inset-0 z-[60] bg-black/60",onClick:n,"aria-hidden":!0}),h.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:[h.jsx(pf,{title:"Image",subtitle:e,onClose:n,closeLabel:"Close image preview"}),h.jsxs("div",{className:"flex min-h-0 flex-1 items-center justify-center overflow-auto bg-black/15 p-3",children:[!a&&!i?h.jsx(Lr,{label:"Loading image…"}):null,i?h.jsxs("p",{className:"max-w-xs text-center text-sm text-muted",children:["Image unavailable: ",i]}):null,a?h.jsx("img",{src:a,alt:"",className:"max-h-full max-w-full rounded-lg object-contain shadow-2xl"}):null]})]})]}),document.body)}function Sg({reference:e,onClose:n}){const[a,i]=D.useState(null),[s,c]=D.useState(null),x=D.useRef(null);return D.useEffect(()=>{let u=!1;return i(null),c(null),Oe.filePreview(e).then(d=>{u||i(d)},d=>{u||c(d instanceof Error?d.message:"Could not read source file")}),()=>{u=!0}},[e]),D.useEffect(()=>{a?.line&&x.current?.scrollIntoView({block:"center"})},[a?.line]),D.useEffect(()=>{const u=d=>{d.key==="Escape"&&n()};return window.addEventListener("keydown",u),()=>window.removeEventListener("keydown",u)},[n]),Si.createPortal(h.jsxs(h.Fragment,{children:[h.jsx("div",{className:"fixed inset-0 z-[60] bg-black/60",onClick:n,"aria-hidden":!0}),h.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:[h.jsx(pf,{title:"Source",subtitle:a?.path??e,onClose:n,closeLabel:"Close source preview"}),h.jsxs("div",{className:"min-h-0 flex-1 overflow-auto",children:[!a&&!s?h.jsx(Lr,{label:"Reading source…"}):null,s?h.jsx("p",{className:"mx-auto max-w-xs px-6 py-16 text-center text-sm text-muted",children:s}):null,a?$R(a.path)?h.jsx(GR,{preview:a}):h.jsx(VR,{preview:a,lineRef:x}):null]})]})]}),document.body)}function $R(e){return e.toLowerCase().endsWith(".md")}function GR({preview:e}){return h.jsxs("div",{className:"p-4 text-sm leading-6 text-text",children:[h.jsx(Va,{children:e.content}),h.jsx(Ng,{preview:e})]})}function VR({preview:e,lineRef:n}){const a=mE(e.path),{text:i,tokens:s}=D.useMemo(()=>{const c=e.content.split(`
|
|
44
|
+
`),x=oS(e.content,a);return{text:c,tokens:x?.length===c.length?x:null}},[e.content,a]);return h.jsxs(h.Fragment,{children:[h.jsx("pre",{className:"min-w-max p-3 font-mono text-[11.5px] leading-[1.5] text-muted",children:i.map((c,x)=>{const u=e.lineStart+x,d=u===e.line,f=s?.[x];return h.jsxs("div",{ref:d?n:void 0,className:ye("grid grid-cols-[auto_1fr] gap-3 whitespace-pre",d&&"rounded bg-accent-soft text-text"),children:[h.jsx("span",{className:"select-none text-right text-faint",children:u}),h.jsx("code",{children:f?.length?h.jsx(Kd,{nodes:f}):c||" "})]},u)})}),h.jsx(Ng,{preview:e})]})}function Ng({preview:e}){return e.truncated?h.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 QR({className:e,children:n,node:a,...i}){const s=lS(e),c=KR(n),x=Q2(e?null:c);return x?h.jsx(YR,{reference:x,...i,children:n}):h.jsx("code",{className:e,...i,children:s&&c!==null?h.jsx(yE,{text:c,language:s}):n})}function YR({reference:e,children:n,...a}){const[i,s]=D.useState(!1);return h.jsxs(h.Fragment,{children:[h.jsx("button",{type:"button",title:`Open ${e}`,onClick:()=>s(!0),className:"max-w-full align-baseline text-left",children:h.jsx("code",{...a,className:"text-accent underline decoration-dotted underline-offset-2",children:n})}),i?h.jsx(Sg,{reference:e,onClose:()=>s(!1)}):null]})}function KR(e){return typeof e=="string"?e:Array.isArray(e)&&e.every(n=>typeof n=="string")?e.join(""):null}function XR({node:e,children:n,...a}){const i=e?ZR(e):"";return h.jsxs("div",{className:"relative",children:[h.jsx("pre",{...a,children:n}),i?h.jsx(rE,{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 ZR(e){let n="";const a=i=>{for(const s of i)s.type==="text"?n+=s.value:s.type==="element"&&a(s.children)};return a(e.children),n.replace(/\n$/,"")}const WR={a:yd,code:QR,img:HR,pre:XR},Va=D.memo(function({children:n}){return h.jsx("div",{className:"md",children:h.jsx(vT,{remarkPlugins:PR,components:WR,children:UR(n)})})}),JR=1500,eO=400,_g=12,tO=2,nO=_g+8,rO=2,aO=1.1,iO=200,lO=420,sO=.6,Mg=()=>window.matchMedia("(prefers-reduced-motion: reduce)").matches,Pu=(e,n,a)=>Math.min(a,Math.max(n,e)),oO=e=>e.scrollHeight-e.clientHeight-e.scrollTop<=rO?e.scrollTop+e.clientHeight:e.scrollTop+nO,cO=(e,n)=>e.length===n.length&&e.every((a,i)=>a.top===n[i].top&&a.preview===n[i].preview);function xO(e,n,a){const i=Pu(n,0,e.scrollHeight-e.clientHeight);if(Mg())return e.scrollTop=i,a(),()=>{};const s=e.clientHeight*aO;Math.abs(i-e.scrollTop)>s&&(e.scrollTop=Pu(i+Math.sign(e.scrollTop-i)*s,0,e.scrollHeight-e.clientHeight));const c=e.scrollTop,x=i-c;if(!x)return a(),()=>{};const u=Pu(Math.abs(x)*sO,iO,lO),d=performance.now();let f=0,E=!1;const p=()=>{E||(E=!0,cancelAnimationFrame(f),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-d)/u);if(e.scrollTop=c+x*(1-(1-C)**5),C<1){f=requestAnimationFrame(y);return}p(),a()};return f=requestAnimationFrame(y),p}function uO({scroller:e}){const[n,a]=D.useState([]),[i,s]=D.useState(0),[c,x]=D.useState(!1),[u,d]=D.useState(!1),f=D.useRef([]),E=D.useRef(!1),p=D.useRef(!1),y=D.useRef(0),b=D.useRef(0),C=D.useRef(0),A=D.useRef(()=>{}),B=D.useCallback(()=>{p.current||(clearTimeout(y.current),E.current=!1,x(!1))},[]),k=D.useCallback(()=>{E.current=!0,x(!0),clearTimeout(y.current),y.current=window.setTimeout(B,JR)},[B]),j=D.useCallback(()=>{const L=e.current;if(!L)return;const X=L.getBoundingClientRect().top-L.scrollTop,Q=Array.from(L.querySelectorAll("[data-user-msg]"),ie=>({top:ie.getBoundingClientRect().top-X,preview:ie.dataset.userMsg??"",ts:ie.dataset.msgTs??null,state:ie.dataset.msgState??null,node:ie}));f.current=cO(f.current,Q)?f.current:Q,a(f.current),s(oO(L))},[e]),F=D.useCallback(()=>{C.current||(C.current=requestAnimationFrame(()=>{C.current=0,j()}))},[j]);D.useEffect(()=>{const L=e.current;if(!L)return;const X=()=>{b.current=performance.now()},Q=()=>{!E.current&&performance.now()-b.current>eO||U0()||(k(),F())},ie=()=>{U0()&&B()};L.addEventListener("touchmove",X,{passive:!0}),L.addEventListener("wheel",X,{passive:!0}),L.addEventListener("scroll",Q,{passive:!0}),document.addEventListener("selectionchange",ie);const Z=()=>{E.current&&F()},Y=new ResizeObserver(Z);Y.observe(L);const U=new MutationObserver(Z);return U.observe(L,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["open"]}),()=>{L.removeEventListener("touchmove",X),L.removeEventListener("wheel",X),L.removeEventListener("scroll",Q),document.removeEventListener("selectionchange",ie),Y.disconnect(),U.disconnect(),A.current(),C.current&&cancelAnimationFrame(C.current),clearTimeout(y.current)}},[e,k,B,F]);const _=L=>{const X=e.current,Q=f.current[L];X&&Q&&(A.current(),A.current=xO(X,Q.top-_g,()=>{Mg()||Q.node.firstElementChild?.animate([{boxShadow:"0 0 0 2px var(--color-accent)"},{boxShadow:"0 0 0 2px transparent"}],{duration:700,easing:"ease-out"})}),k())},R=D.useCallback(()=>{p.current=!1,d(!1),k()},[k]);if(n.length<tO)return null;let S=-1;for(let L=0;L<n.length;L++)n[L].top<=i&&(S=L);const O=S>0?S-1:null,z=S+1<n.length?S+1:null,G=c||u;return h.jsxs(h.Fragment,{children:[h.jsx("div",{className:ye("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",G?"translate-y-0 opacity-100":"translate-y-3 opacity-0"),children:h.jsxs("nav",{"aria-label":"Jump to your messages",onFocus:k,className:ye("flex h-12 items-stretch overflow-hidden rounded-full border border-border bg-surface-2 shadow-lg shadow-black/60",G?"pointer-events-auto":"pointer-events-none"),children:[h.jsx(W9,{dir:"up",onClick:()=>O!==null&&_(O),disabled:O===null}),h.jsxs("button",{type:"button",onClick:()=>{j(),p.current=!0,d(!0),k()},"aria-haspopup":"dialog","aria-expanded":u,"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:[h.jsx(e2,{size:16,className:"shrink-0"}),h.jsxs("span",{className:"font-mono text-[13px] tabular-nums",children:[h.jsx("span",{className:"text-text",children:S+1||"–"}),h.jsxs("span",{className:"text-muted",children:["/",n.length]})]})]}),h.jsx(W9,{dir:"down",onClick:()=>z!==null&&_(z),disabled:z===null})]})}),u?h.jsx(fO,{marks:n,current:S,onPick:L=>{R(),_(L)},onClose:R}):null]})}function dO({mark:e}){if(e.state==="failed")return h.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&&eE(e.ts);return n?h.jsx("span",{className:"shrink-0 text-[11px] text-muted tabular-nums",children:n}):null}function W9({dir:e,onClick:n,disabled:a}){const i=e==="up"?sb:da;return h.jsx("button",{type:"button",onClick:n,disabled:a,"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:h.jsx(i,{size:19})})}function fO({marks:e,current:n,onPick:a,onClose:i}){const s=D.useRef(null),c=D.useRef(null);return D.useEffect(()=>{s.current?.focus({preventScroll:!0}),c.current?.scrollIntoView({block:"center"})},[]),h.jsxs(h.Fragment,{children:[h.jsx("div",{className:"fixed inset-0 z-50 bg-black/60",onClick:i,"aria-hidden":!0}),h.jsxs("div",{ref:s,role:"dialog","aria-modal":"true","aria-label":"Your messages",tabIndex:-1,onKeyDown:x=>x.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:[h.jsxs("header",{className:"flex shrink-0 items-center gap-2 border-b border-border-soft px-4 py-2.5",children:[h.jsx("h2",{className:"flex-1 text-[15px] font-semibold",children:"Your messages"}),h.jsx("span",{className:"font-mono text-[12px] text-faint tabular-nums",children:e.length}),h.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:h.jsx(kn,{size:19})})]}),h.jsx("div",{className:"min-h-0 flex-1 overflow-y-auto overscroll-contain py-1",children:e.map((x,u)=>h.jsxs("button",{ref:u===n?c:void 0,type:"button",onClick:()=>a(u),"aria-current":u===n?"true":void 0,className:ye("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",u===n&&"bg-surface-2/60"),children:[h.jsx("span",{className:ye("w-5 shrink-0 text-right font-mono text-[11px] tabular-nums",u===n?"text-accent":"text-muted"),children:u+1}),h.jsx("span",{className:"line-clamp-2 min-w-0 flex-1 text-[13.5px] leading-snug text-text [overflow-wrap:anywhere]",children:x.preview||"Empty message"}),h.jsx(dO,{mark:x})]},x.top))})]})]})}function Tg({patch:e,truncated:n,className:a}){const i=D.useMemo(()=>e.split(`
|
|
45
|
+
`),[e]);return h.jsxs("pre",{className:ye("overflow-x-auto font-mono text-[11.5px] leading-[1.5]",a),children:[i.map((s,c)=>h.jsx("div",{className:ye("whitespace-pre",hO(s)),children:s||" "},c)),n?h.jsx("div",{className:"mt-2 text-faint",children:"… diff truncated …"}):null]})}function hO(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 jg({sessionId:e,workspaceId:n,working:a,workingSince:i,turnStartedAt:s,queued:c,waiting:x,poll:u,onFork:d}){const{entries:f,loading:E,error:p}=GD(e,u??!0),y=Ae(P=>P.pending),b=Ae(P=>P.removePending),C=S2(),A=yr(),B=D.useRef(null),k=D.useRef(!0),j=D.useMemo(()=>dS(f),[f]),F=D.useMemo(()=>j.map(P=>P.e),[j]),_=D.useMemo(()=>mO(j),[j]),R=D.useMemo(()=>xS(F),[F]),S=D.useMemo(()=>{const P=o9(F).filter(re=>re!==R);return new Set(P.map(Ai))},[F,R]),O=D.useMemo(()=>new Map(o9(F).map(P=>[P,uS(F,P,s)])),[F,s]),z=async P=>{await(P.sessionId?Oe.dismissParked(P.sessionId):Oe.dismissPrompt(P.workspaceId)).catch(()=>{}),A.invalidateQueries({queryKey:["state"]})},G=new Set(f.filter(P=>P.role==="user").map(P=>P.text.trim())),L=y.filter(P=>P.sessionId===e),X=L.filter(P=>!(Rm(P)&&G.has(P.text.trim()))),Q=c?.text.trim()||null,ie=Q&&!G.has(Q)&&!L.some(P=>P.text.trim()===Q)?c:null;D.useEffect(()=>{const P=new Set(f.filter(re=>re.role==="user").map(re=>re.text.trim()));for(const re of y)re.sessionId===e&&Rm(re)&&P.has(re.text.trim())&&b(re.id)},[f,y,e,b]);const Z=()=>{const P=B.current;P&&(k.current=P.scrollHeight-P.scrollTop-P.clientHeight<120)},Y=x?.length??0;if(D.useLayoutEffect(()=>{const P=B.current;P&&k.current&&(P.scrollTop=P.scrollHeight)},[f,X.length,a,Y]),D.useEffect(()=>{k.current=!0},[e]),D.useEffect(()=>{const P=B.current;if(!P)return;const re=new ResizeObserver(()=>{k.current&&(P.scrollTop=P.scrollHeight)});return re.observe(P),()=>re.disconnect()},[]),!e&&!ie)return h.jsx(xn,{children:"No active session in this workspace."});const U=f.length===0&&X.length===0&&!ie;return h.jsxs("div",{className:"relative flex min-h-0 min-w-0 flex-1",children:[h.jsx("div",{ref:B,onScroll:Z,className:"min-w-0 flex-1 overflow-y-auto overflow-x-hidden px-3 py-3",children:E&&U?h.jsx(Lr,{label:"Loading transcript…"}):p&&U?h.jsx(xn,{children:p}):U&&!a?h.jsx(xn,{children:"No messages yet."}):h.jsxs("div",{className:"flex min-w-0 flex-col gap-2.5",children:[_.map(P=>P.kind==="steps"?h.jsx(EO,{nodes:P.nodes},P.key):h.jsxs(D.Fragment,{children:[h.jsx(mf,{node:P.node}),S.has(Ai(P.node.e))?h.jsx(J9,{text:P.node.e.text,at:P.node.e.ts,startedAt:O.get(P.node.e),rowid:P.node.e.rowid,through:P.node.e.rowid,onFork:d}):null]},P.key)),R?h.jsx(J9,{text:R.text,at:R.ts,startedAt:O.get(R),rowid:R.rowid,working:a,onFork:d}):null,X.map(P=>h.jsx(bO,{p:P,onRetry:()=>C({id:P.id,sessionId:P.sessionId,workspaceId:P.workspaceId,text:P.text,queue:P.queue}),onDismiss:()=>b(P.id)},P.id)),ie?h.jsx(yO,{queued:ie,onRetry:e?()=>C({id:`queued:${ie.sessionId??ie.workspaceId}:${ie.createdAt}`,sessionId:e,workspaceId:n,text:ie.text}):void 0,onDismiss:()=>z(ie)}):null,x?.map(P=>h.jsx(vO,{task:P},P.taskId)),a?h.jsx(AO,{since:i}):null]})}),h.jsx(uO,{scroller:B})]})}const Ai=e=>`${e.rowid}-${e.id}`,pO=(e,n)=>e.nodes.length===n.nodes.length&&e.nodes.every((a,i)=>a.e===n.nodes[i]?.e);function mO(e){const n=[];let a=[];const i=()=>{if(a.length>1)n.push({kind:"steps",key:`steps-${Ai(a[0].e)}`,nodes:a});else for(const s of a)n.push({kind:"entry",key:Ai(s.e),node:s});a=[]};for(const s of e){if(!s.e.subagentLabel&&(s.e.role==="tool"||s.e.role==="thinking")){a.push(s);continue}i(),n.push({kind:"entry",key:Ai(s.e),node:s})}return i(),n}const EO=D.memo(function({nodes:n}){const a=n.filter(c=>c.e.error).length,i=n[n.length-1].e,s=i.role==="thinking"?"Thinking":i.text;return h.jsxs("details",{className:"group/steps min-w-0 overflow-hidden rounded-xl border border-border-soft bg-surface/40",children:[h.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:[h.jsx("span",{className:"shrink-0 font-mono text-[11px] text-faint transition-transform group-open/steps:rotate-90",children:"▸"}),h.jsxs("span",{className:"shrink-0 text-[12.5px] text-muted",children:[n.length," steps"]}),h.jsx("span",{className:"min-w-0 flex-1 truncate text-[11px] text-faint group-open/steps:invisible",children:s}),a?h.jsxs("span",{className:"shrink-0 text-[11px] text-del",children:[a," failed"]}):null]}),h.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(c=>h.jsx(mf,{node:c},Ai(c.e)))})]})},pO);function mf({node:e}){return e.e.subagentLabel?h.jsx(gO,{node:e}):h.jsx(CO,{e:e.e})}function gO({node:e}){const{e:n,children:a}=e,i=n.output&&(n.error||n.tool==="Agent"||n.tool==="Task")?n.output:null,s=a.length>0||!!i;return h.jsxs("section",{className:"min-w-0 px-0.5","data-subagent":n.subagentLabel,children:[h.jsxs("div",{className:"flex min-w-0 items-center gap-2 py-1 text-[12.5px]",children:[h.jsx(hk,{size:14,strokeWidth:1.7,className:"shrink-0 text-faint","aria-hidden":!0}),h.jsx("span",{className:"shrink-0 font-medium text-text",children:"Agent"}),h.jsx("span",{className:"min-w-0 flex-1 truncate font-mono text-[11.5px] text-muted",children:n.subagentLabel}),n.error?h.jsx("span",{className:"shrink-0 text-[11px] text-del",children:"failed"}):null]}),s?h.jsx("div",{className:"ml-[7px] min-w-0 border-l border-border pl-4 pb-1 pt-1",children:h.jsxs("div",{className:"flex min-w-0 flex-col gap-2.5",children:[a.map(c=>h.jsx(mf,{node:c},Ai(c.e))),i?h.jsx("div",{className:"flex flex-col items-start","data-subagent-result":!0,children:h.jsx(Cl,{className:ye("max-w-[92%] px-0.5",n.error&&"text-del/80"),children:h.jsx(Va,{children:i})})}):null]})}):null]})}function yO({queued:e,onRetry:n,onDismiss:a}){const i=e.status==="failed",s=!i&&!!e.sessionId;return h.jsxs("div",{className:"flex flex-col items-end gap-1","data-user-msg":H0(e.text),"data-msg-state":"queued",children:[h.jsx(Cl,{className:ye("max-w-[85%] bg-accent-soft text-text opacity-60",i&&"border border-del/40"),children:h.jsx(Va,{children:e.text})}),i?h.jsxs("div",{className:"flex items-center gap-2 pr-1 text-[11px] text-del",children:[h.jsx(zd,{size:11,className:"shrink-0"}),h.jsx("span",{className:"max-w-[55vw] truncate",children:e.error||"Didn’t send"}),n?h.jsx("button",{type:"button",onClick:n,className:"font-semibold underline underline-offset-2",children:"Retry"}):null,h.jsx("button",{type:"button",onClick:a,className:"text-faint underline underline-offset-2",children:"Dismiss"})]}):h.jsxs("span",{className:"flex items-center gap-1 pr-1 text-[11px] text-faint",children:[h.jsx(ar,{size:11,className:"animate-spin"}),e.reason??"The relay is sending this",s?h.jsx(ua,{className:"ml-1"}):null]})]})}function bO({p:e,onRetry:n,onDismiss:a}){return e.status==="error"?h.jsxs("div",{className:"flex flex-col items-end gap-1","data-user-msg":H0(e.text),"data-msg-state":"failed",children:[h.jsx(Cl,{className:"max-w-[85%] border border-del/40 bg-accent-soft text-text",children:h.jsx(Va,{children:e.text})}),h.jsxs("div",{className:"flex items-center gap-2 pr-1 text-[11px] text-del",children:[h.jsx(zd,{size:11,className:"shrink-0"}),h.jsx("span",{className:"max-w-[55vw] truncate",children:e.error||"Didn’t send"}),h.jsx("button",{type:"button",onClick:n,className:"font-semibold underline underline-offset-2",children:"Retry"}),h.jsx("button",{type:"button",onClick:a,className:"text-faint underline underline-offset-2",children:"Dismiss"})]})]}):h.jsxs("div",{className:"flex flex-col items-end gap-1","data-user-msg":H0(e.text),"data-msg-state":"sending",children:[h.jsx(Cl,{className:"max-w-[85%] bg-accent-soft text-text opacity-60",children:h.jsx(Va,{children:e.text})}),h.jsxs("span",{className:"flex items-center gap-1 pr-1 text-[11px] text-faint",children:[h.jsx(ar,{size:11,className:"animate-spin"}),"Sending…"]})]})}const CO=D.memo(function({e:n}){return n.role==="user"?h.jsxs("div",{className:"flex flex-col items-end gap-0.5","data-user-msg":H0(n.text),"data-msg-ts":n.ts,"data-msg-state":n.queued?"queued":void 0,children:[h.jsxs(Cl,{className:ye("max-w-[85%] bg-accent-soft text-text",n.queued&&"opacity-60"),children:[n.queued?h.jsx(bd,{children:"queued"}):null,h.jsx(Va,{children:n.text})]}),h.jsx("span",{className:"pr-1 text-[11px] text-faint",children:fw(n.ts)})]}):n.role==="tool"?h.jsx(BO,{e:n}):n.role==="thinking"?h.jsxs("details",{className:"group/think px-1",children:[h.jsxs("summary",{className:"cursor-pointer select-none list-none text-[11px] font-semibold uppercase tracking-wide text-faint [&::-webkit-details-marker]:hidden",children:[h.jsx("span",{className:"mr-1 inline-block transition-transform group-open/think:rotate-90",children:"▸"}),"Thinking"]}),h.jsx("div",{className:"mt-1 border-l-2 border-border-soft pl-3 text-[13px] italic leading-relaxed text-muted",children:h.jsx(Va,{children:n.text})})]}):n.role==="system"?h.jsx("div",{className:"px-2 text-center text-[11px] text-faint",children:n.text}):h.jsx("div",{className:"flex flex-col items-start",children:h.jsx(Cl,{className:"max-w-[92%] px-0.5",children:h.jsx(Va,{children:n.text})})})});function J9({text:e,at:n,startedAt:a,working:i,rowid:s,through:c,onFork:x}){const[u,d]=D.useState(!1),[f,E]=D.useState(!1),[p,y]=D.useState(null),[b,C]=D.useState("chat"),[A,B]=D.useState(()=>Date.now());D.useEffect(()=>{const _=setInterval(()=>B(Date.now()),6e4);return()=>clearInterval(_)},[]);const k=a?qn(n)-qn(a):Number.NaN,j=[k>0?Yd(k):null,hw(n,A)].filter(Boolean).join(" · "),F=async _=>{if(!(!x||f)){E(!0),y(null),d(!1);try{await x({thinking:_.thinking,tools:_.tools,destination:b,through:_.only?void 0:c,only:_.only?s:void 0})}catch(R){y(R instanceof Error?R.message:"Could not fork this chat")}finally{E(!1)}}};return h.jsxs("div",{className:"flex max-w-full flex-col items-start gap-1",children:[h.jsxs("div",{className:"flex items-center gap-2",children:[!i&&j?h.jsx("span",{className:"text-[11px] tabular-nums text-faint",children:j}):null,h.jsx(rE,{text:e,label:"response",className:"size-7 rounded-lg border border-border-soft bg-surface/70"}),x?h.jsxs("div",{className:"relative",children:[h.jsxs("div",{className:"flex items-center overflow-hidden rounded-lg border border-border-soft bg-surface/70 text-muted",children:[h.jsxs("button",{type:"button",onClick:()=>{F({thinking:!0,tools:!1})},disabled:f,"aria-label":b==="workspace"?"Fork to a new workspace with reasoning":c?"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:[f?h.jsx(ar,{size:13,className:"animate-spin"}):h.jsx(Z8,{size:13}),b==="workspace"?"Fork workspace":"Fork"]}),h.jsx("button",{type:"button",onClick:()=>d(_=>!_),disabled:f,"aria-label":"Choose fork options","aria-haspopup":"menu","aria-expanded":u,className:"flex size-7 items-center justify-center border-l border-border-soft transition active:bg-surface-2 disabled:opacity-50",children:h.jsx(da,{size:14,className:ye("transition-transform",u&&"rotate-180")})})]}),u?h.jsxs(h.Fragment,{children:[h.jsx("div",{className:"fixed inset-0 z-20",onClick:()=>d(!1),"aria-hidden":!0}),h.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:[h.jsxs("button",{type:"button",role:"menuitemcheckbox","aria-checked":b==="workspace",onClick:()=>C(_=>_==="chat"?"workspace":"chat"),className:"flex w-full items-center gap-3 border-b border-border-soft px-3 py-2 text-left active:bg-surface-2",children:[h.jsxs("span",{className:"min-w-0 flex-1",children:[h.jsx("span",{className:"block text-[12px] font-medium text-text",children:"To new workspace"}),h.jsx("span",{className:"block text-[11px] text-faint",children:"Carry the current code into its own worktree"})]}),h.jsx("span",{"aria-hidden":!0,className:ye("relative h-6 w-11 shrink-0 rounded-full transition-colors",b==="workspace"?"bg-accent":"border border-border bg-surface-2"),children:h.jsx("span",{className:ye("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")})})]}),h.jsx(_0,{label:"Last message only",detail:"This response, without history",onClick:()=>{F({thinking:!1,tools:!1,only:!0})}}),h.jsx(_0,{label:"Concise",detail:"Messages only",onClick:()=>{F({thinking:!1,tools:!1})}}),h.jsx(_0,{label:"With reasoning",detail:"Messages and reasoning",onClick:()=>{F({thinking:!0,tools:!1})}}),h.jsx(_0,{label:"Full transcript",detail:"Messages, reasoning, and tools",onClick:()=>{F({thinking:!0,tools:!0})}})]})]}):null]}):null]}),p?h.jsxs("span",{className:"max-w-[85vw] text-[11px] text-del",children:[p,Bi(p)?h.jsx(ua,{className:"ml-1"}):null]}):null]})}function _0({label:e,detail:n,onClick:a}){return h.jsxs("button",{type:"button",role:"menuitem",onClick:a,className:"flex w-full flex-col px-3 py-2 text-left active:bg-surface-2",children:[h.jsx("span",{className:"text-[12px] font-medium text-text",children:e}),h.jsx("span",{className:"text-[11px] text-faint",children:n})]})}function AO({since:e}){const[n,a]=D.useState(()=>Date.now());return D.useEffect(()=>{if(!e)return;a(Date.now());const i=setInterval(()=>a(Date.now()),1e3);return()=>clearInterval(i)},[e]),h.jsxs("div",{className:"fade-in flex items-center justify-start gap-2",children:[h.jsxs("div",{className:"flex items-center gap-1 px-0.5 py-3",children:[h.jsx("span",{className:"typing-dot"}),h.jsx("span",{className:"typing-dot"}),h.jsx("span",{className:"typing-dot"})]}),e?h.jsx("span",{className:"text-[11px] tabular-nums text-faint",children:Yd(n-e)}):null]})}function vO({task:e}){const n=qn(e.since),[a,i]=D.useState(()=>Date.now());return D.useEffect(()=>{i(Date.now());const s=setInterval(()=>i(Date.now()),1e3);return()=>clearInterval(s)},[]),h.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:[h.jsx(J8,{size:13,className:"shrink-0 text-faint"}),h.jsx("span",{className:"shrink-0 text-faint",children:"Waiting for task"}),h.jsx("span",{className:"min-w-0 flex-1 truncate",children:e.description}),Number.isNaN(n)?null:h.jsx("span",{className:"shrink-0 text-[11px] tabular-nums text-faint",children:Yd(a-n)})]})}const BO=D.memo(function({e:n}){const[a,i]=D.useState(!1);if(n.error&&!n.tool)return h.jsx("div",{className:"overflow-hidden rounded-xl border border-del/30 bg-del/5 px-3 py-2",children:h.jsx(Uu,{text:n.text,className:"line-clamp-4 text-del/80"})});const s=wg(n.detail),c=n.images??[];return!n.detail&&!n.output&&!c.length?h.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:[h.jsx("span",{className:"shrink-0 font-mono text-[11px] text-faint",children:"·"}),h.jsx("span",{className:"max-w-full truncate text-[12.5px] text-muted",children:n.text})]}):h.jsxs("details",{open:a,onToggle:x=>i(x.currentTarget.open),className:ye("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:[h.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:[h.jsx("span",{className:"shrink-0 font-mono text-[11px] text-faint transition-transform group-open/tool:rotate-90",children:"▸"}),h.jsx("span",{className:"max-w-full truncate text-[12.5px] text-muted",children:n.text}),n.detail?s?h.jsx(yd,{href:s,title:`Open ${n.detail}`,onClick:x=>x.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}):h.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?h.jsx("span",{className:"ml-auto shrink-0 text-[11px] text-del",children:"failed"}):null]}),h.jsxs("div",{className:"flex min-w-0 flex-col gap-2 border-t border-border-soft px-3 py-2",children:[n.detail?s?h.jsx(yd,{href:s,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}):h.jsx(Uu,{text:n.detail,className:"text-muted",language:aS(n.tool)}):null,n.output?h.jsxs("div",{className:ye("min-w-0",n.detail&&"border-t border-border-soft pt-2"),children:[h.jsx(bd,{children:n.error?"error":n.diff?"changes":"output"}),n.diff?h.jsx(Tg,{patch:n.output}):h.jsx(Uu,{text:n.output,className:n.error?"text-del/80":"text-muted",language:n.error?null:iS(n.tool,n.detail)})]}):null,a&&c.length?h.jsxs("div",{className:ye("flex min-w-0 flex-col gap-2",(n.detail||n.output)&&"border-t border-border-soft pt-2"),children:[h.jsx(bd,{children:FO(c.length,"image")}),c.map(x=>h.jsx(DO,{reference:x},x))]}):null]})]})}),kO="whitespace-pre-wrap font-mono text-[11.5px] leading-relaxed [overflow-wrap:anywhere]";function Uu({text:e,className:n,language:a}){return h.jsx("pre",{className:ye(kO,n),children:a?h.jsx(yE,{text:e,language:a}):e})}function DO({reference:e}){const[n,a]=D.useState(null),[i,s]=D.useState(!1);return D.useEffect(()=>{let c=!1;return Oe.toolImage(e).then(x=>!c&&a(x)).catch(()=>!c&&s(!0)),()=>{c=!0}},[e]),i?h.jsx("span",{className:"text-[11px] text-faint",children:"Image unavailable."}):n?h.jsx("img",{src:n,alt:"Tool output",className:"max-w-full rounded-lg border border-border-soft"}):h.jsx(Lr,{label:"Loading image…"})}const FO=(e,n)=>`${e} ${n}${e===1?"":"s"}`;function Cl({children:e,className:n}){return h.jsx("div",{className:ye("min-w-0 rounded-2xl px-3.5 py-2.5 text-[14px] leading-relaxed [overflow-wrap:anywhere]",n),children:e})}function bd({children:e}){return h.jsx("div",{className:"mb-1 text-[10px] font-semibold uppercase tracking-wide text-faint",children:e})}function wO({workspace:e}){const[n,a]=V8(),i=n.get("session"),{data:s,isLoading:c}=F2(e.id,!1),x=s?.sessions??[],u=(i&&x.some(f=>f.id===i)?i:null)??x[0]?.id??null,d=[e.repo_name,e.branch].filter(Boolean).join(" · ");return h.jsxs("div",{className:"flex h-full min-w-0 flex-col overflow-hidden",children:[h.jsx(q0,{title:zr(e),subtitle:d,menu:!0,right:h.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:[h.jsx(Rd,{size:12}),"Archived"]})}),x.length>1?h.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:x.map(f=>h.jsx("button",{type:"button",onClick:()=>a({session:f.id},{replace:!0}),className:ye("pill shrink-0",f.id===u&&"pill-active"),children:h.jsx("span",{className:"max-w-36 truncate",children:f.title||"Untitled"})},f.id))}):null,!c&&!u?h.jsx(xn,{children:"This workspace was archived with no chat in it."}):h.jsx(jg,{sessionId:u,workspaceId:e.id,turnStartedAt:x.find(f=>f.id===u)?.turn_started_at,poll:!1}),h.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 SO=()=>typeof window<"u"&&window.matchMedia("(pointer: coarse)").matches;function Rg(e,n=SO()){return e.key!=="Enter"||e.nativeEvent.isComposing||e.shiftKey?!1:e.metaKey||e.ctrlKey?!0:!n}const Dr=6e4,NO=e=>/(?:^|[:/])(claude|fable|haiku|opus|sonnet)|^(claude|fable|haiku|opus|sonnet)/.test(e),e8=e=>/(?:^|[:/])(openai|gpt|o[1-9])|^(openai|gpt|o[1-9]|\d)/.test(e);function _O(e){const n=e.agent_type?.trim().toLowerCase()??"",a=e.model?.trim().toLowerCase()??"";return(n==="claude"||n==="anthropic")&&e.prompt_cache_ttl_ms&&e.prompt_cache_ttl_ms>0?oa(e.prompt_cache_ttl_ms,!0):n==="claude"||n==="anthropic"?oa(60*Dr,!1):n==="codex"||n==="openai"?oa(30*Dr,!1):n==="cursor"?NO(a)?oa(5*Dr,!1):(e8(a),oa(30*Dr,!1)):(n==="acp"||n==="opencode")&&e8(a)?oa(30*Dr,!1):oa(5*Dr,!1)}function MO(e,n=Date.now()){if(!e.last_user_message_at)return null;const a=qn(e.updated_at);if(!Number.isFinite(a))return null;const i=_O(e);return n-a>=i.ttlMs?i:null}function oa(e,n){return{ttlMs:e,ttlLabel:e>=60*Dr?`${e/(60*Dr)}h`:`${e/Dr}m`,observed:n}}const K0={low:"Low",medium:"Medium",high:"High",xhigh:"Extra high",max:"Max",ultracode:"Ultracode"},vi=Object.keys(K0);function Og(e){return vi[(vi.indexOf(e??"")+1)%vi.length]}function Ef(e,n){const a=n?.toLowerCase()??"";if(/^(?:anthropic\/|claude|fable|haiku|opus|sonnet)/.test(a))return"claude";if(/^(?:openai\/|gpt|o[1-9]|\d)/.test(a))return"openai";if(/^(?:cursor\/|composer|grok)/.test(a))return"cursor";if(/^opencode(?:-go)?\//.test(a))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 gf(e,n){return Ef(e,n)==="claude"}function TO(e,n){const a=Ef(null,e),i=a==="claude"?n?.claude:a==="openai"?n?.codex:void 0;return i&&vi.includes(i)?i:void 0}function jO(e,n){const a=Og(e);if(!(a===n||!n&&e===vi.at(-1)))return a}const RO="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",OO="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",zO="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",LO="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",PO={claude:RO,cursor:OO,openai:zO,opencode:LO},UO={claude:"#D97757",openai:"var(--color-provider-openai)"};function yf({agentType:e,model:n,className:a}){const i=Ef(e,n);if(!i)return h.jsx(K8,{"aria-hidden":"true",className:a});const s=PO[i];return h.jsx("span",{"aria-hidden":"true",className:ye("inline-block shrink-0 bg-current",a),style:{color:UO[i],WebkitMaskImage:`url("${s}")`,maskImage:`url("${s}")`,WebkitMaskPosition:"center",maskPosition:"center",WebkitMaskRepeat:"no-repeat",maskRepeat:"no-repeat",WebkitMaskSize:"contain",maskSize:"contain"}})}const IO=[5,7,9,11,13,15],HO={low:1,medium:2,high:3,xhigh:4,max:5,ultracode:6};function qO({effort:e,className:n}){const a=HO[e]??0;return h.jsx("span",{"aria-hidden":"true",className:ye("flex h-[15px] shrink-0 items-end gap-[1.5px]",n),children:IO.map((i,s)=>h.jsx("span",{className:ye("w-0.5 rounded-full bg-current transition-opacity",s<a?"opacity-100":"opacity-20"),style:{height:i}},i))})}function $O({value:e,models:n,onSelect:a,defaultModel:i,onSetDefault:s,settingDefault:c,open:x,onOpenChange:u,isFetching:d=!1,isError:f=!1,empty:E="No models are cached yet. Open a model picker in a chat first.",className:p,beforeOptions:y,renderTrigger:b}){const[C,A]=D.useState(!1),B=x??C,k=F=>{const _=typeof F=="function"?F(B):F;x===void 0&&A(_),u?.(_)},j=wk(n);return h.jsxs("div",{className:"relative",children:[b?b({picking:B,toggle:()=>k(F=>!F)}):h.jsxs("button",{type:"button",onClick:()=>k(F=>!F),"aria-haspopup":"menu","aria-expanded":B,className:ye("ctl flex max-w-40 items-center gap-1",e&&"ctl-staged",p),children:[h.jsx("span",{className:"truncate",children:e?ed(e):"Model"}),h.jsx(da,{size:13,className:"shrink-0"})]}),B?h.jsxs(h.Fragment,{children:[h.jsx("button",{type:"button","aria-label":"Close model picker",onClick:()=>k(!1),className:"fixed inset-0 z-30 cursor-default"}),h.jsxs("div",{className:"absolute bottom-full left-0 z-40 mb-2 max-h-64 w-64 overflow-y-auto rounded-xl border border-border bg-surface-2 py-1 shadow-xl shadow-black/40",children:[y,d?h.jsx(Zs,{size:10,className:"mx-3 my-1.5 animate-spin text-faint"}):null,j.length?j.map(F=>h.jsxs("fieldset",{className:"m-0 min-w-0 border-0 p-0",children:[h.jsx("legend",{className:"px-3 pb-0.5 pt-1.5 text-[11px] font-medium text-faint",children:F.label}),F.models.map(_=>{const R=i===_;return h.jsxs("div",{className:"flex items-stretch active:bg-surface",children:[h.jsxs("button",{type:"button",onClick:()=>{k(!1),a(_)},className:"flex min-w-0 flex-1 items-center gap-2 py-2 pl-3 pr-1 text-left text-sm",children:[h.jsx("span",{className:"min-w-0 flex-1 truncate",children:ed(_)}),h.jsx(xa,{size:13,className:ye("shrink-0 text-accent",e!==_&&"invisible")})]}),s?h.jsx("button",{type:"button",disabled:R||c!==void 0,onClick:()=>{k(!1),s(_)},"aria-label":R?`${_} is the default model`:`Set ${_} as default and select`,"aria-pressed":R,className:ye("flex w-9 shrink-0 items-center justify-center text-faint disabled:opacity-60",R&&"text-accent"),children:c===_?h.jsx(ar,{size:14,className:"animate-spin"}):h.jsx(Ju,{size:14,fill:R?"currentColor":"none"})}):R?h.jsx(Ju,{size:14,fill:"currentColor","aria-label":`${_} is the default model`,className:"mx-3 self-center text-accent"}):null]},_)})]},F.label)):h.jsx("div",{className:"px-3 py-2 text-sm text-muted",children:d?"Reading Conductor’s model list…":E}),f?h.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 zg({model:e,providerModel:n,agentType:a,models:i,modelPickerOpen:s,onModelPickerOpenChange:c,modelsFetching:x=!1,modelsError:u=!1,defaultModel:d,onSetDefaultModel:f,settingDefaultModel:E,fast:p,effort:y,plan:b,showEmptyEffort:C=!1,modelStaged:A=!1,fastStaged:B=!1,effortStaged:k=!1,planStaged:j=!1,onModelChange:F,onFastChange:_,onEffortChange:R,onPlanChange:S,status:O}){const z=gf(a,n);return h.jsxs("div",{className:"min-w-0 flex-1",children:[h.jsxs("div",{className:"flex min-w-0 items-center gap-0.5",children:[h.jsx("div",{className:"min-w-0",children:h.jsx($O,{value:e,models:i,open:s,onOpenChange:c,isFetching:x,isError:u,defaultModel:d,onSetDefault:f,settingDefault:E,onSelect:F,renderTrigger:({picking:G,toggle:L})=>h.jsxs("button",{type:"button",onClick:L,"aria-label":`Change model, currently ${e}`,"aria-haspopup":"menu","aria-expanded":G,className:ye("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",A&&"text-accent"),children:[h.jsx(yf,{agentType:a,model:n,className:"size-[15px]"}),h.jsx("span",{className:"truncate",children:ed(e)})]})})}),h.jsx("button",{type:"button",onClick:_,"aria-label":`Fast mode ${p===void 0?"default":p?"on":"off"}`,"aria-pressed":p===!0,className:ye("flex size-8 shrink-0 items-center justify-center rounded-md text-muted transition active:bg-surface-2 active:text-text",p&&"text-text",B&&"text-accent"),children:h.jsx(o2,{size:17})}),y||C?h.jsxs("button",{type:"button",onClick:R,"aria-label":`Reasoning effort: ${y?K0[y]:"default"}`,className:ye("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",k&&"text-accent"),children:[h.jsx(qO,{effort:y??""}),h.jsx("span",{className:"max-[340px]:hidden",children:y?K0[y]:"Effort"})]}):null,z?h.jsx("button",{type:"button",onClick:S,"aria-label":`Plan mode ${b===void 0?"default":b?"on":"off"}`,"aria-pressed":b===!0,className:ye("flex size-8 shrink-0 items-center justify-center rounded-md text-muted transition active:bg-surface-2 active:text-text",b&&"text-text",j&&"text-accent"),children:h.jsx(t2,{size:17})}):null]}),O?h.jsx("div",{className:"px-2 pt-0.5 text-[11px] text-faint",children:O}):null]})}const GO=600*1e3,VO={};function M0(e,n){return e===n?void 0:e}function QO({session:e,workspaceId:n}){const[a,i]=D.useState(!1),[s,c]=D.useState(),[x,u]=D.useState(),d=Ae(Z=>Z.agentDrafts[e.id])??VO,f=Ae(Z=>Z.stageAgent),E=yr(),p=Ae(Z=>Z.pending.some(Y=>Y.sessionId===e.id&&Y.status==="sending")),y=Hd(),b=y.data?.groups.find(Z=>Z.agentType===(e.agent_type??"unknown")),C=!!b?.defaultModel&&Date.now()-b.updatedAt<GO,A=qD(e,n,a&&!C),B=A.data?.models??b?.models??[],k=A.data?.defaultModel??y.data?.defaultModel??b?.defaultModel,j=Z=>f(e.id,Z),F=e.claude_effort_level??void 0,_=e.permission_mode==="plan",R=!!e.fast_mode,S=d.effort??F,O=d.plan??_,z=d.fast??R,G=Object.keys(d).length>0,L=d.model??(Z2(e.model,B)||"Model"),X=d.model??e.model,Q=gf(e.agent_type,X);D.useEffect(()=>{!Q&&d.plan!==void 0&&f(e.id,{plan:void 0})},[Q,e.id,d.plan,f]);const ie=async Z=>{if(!s){c(Z),u(void 0);try{const Y=await Oe.setDefaultModel(e.id,Z,n);if(!Y.ok)throw new Error(Y.error??"could not set the default model");f(e.id,{model:void 0}),await Promise.all([E.invalidateQueries({queryKey:["model-catalog"]}),E.invalidateQueries({queryKey:["sessions",n]}),E.invalidateQueries({queryKey:["state"]})])}catch(Y){u(Y instanceof Error?Y.message:"could not set the default model")}finally{c(void 0)}}};return h.jsx(zg,{model:L,providerModel:X,agentType:e.agent_type,models:B,modelPickerOpen:a,onModelPickerOpenChange:i,modelsFetching:A.isFetching||y.isFetching,modelsError:A.isError,defaultModel:k,onSetDefaultModel:Z=>{ie(Z)},settingDefaultModel:s,fast:z,effort:S,plan:O,modelStaged:d.model!==void 0,fastStaged:d.fast!==void 0,effortStaged:d.effort!==void 0,planStaged:d.plan!==void 0,onModelChange:Z=>j({model:M0(Z,d.model)}),onFastChange:()=>j({fast:M0(!z,R)}),onEffortChange:()=>j({effort:M0(Og(S),F)}),onPlanChange:()=>j({plan:M0(!O,_)}),status:x?h.jsxs("span",{className:"text-del",children:[x,Bi(x)?h.jsx(ua,{className:"ml-1"}):null]}):s?"Setting default and selecting…":G?p?"Applying…":"Applies when you send":void 0})}const YO=[];function KO({session:e,sessionId:n,workspaceId:a,working:i,actuator:s,onFork:c,focusDraft:x=!1,onDraftFocused:u}){const d=n??a,f=Ae(de=>de.drafts[d]??""),E=Ae(de=>de.draftAttachments[d]??YO),p=Ae(de=>de.setDraft),y=Ae(de=>de.addDraftAttachment),b=Ae(de=>de.removeDraftAttachment),C=Ae(de=>de.clearDraftContent),A=Ae(de=>de.moveDraft),B=Ae(de=>de.setFocusedDraft),k=Ae(de=>de.online),j=Ae(de=>de.clearWorking),F=S2(),_=yr(),[R,S]=D.useState(!1),[O,z]=D.useState(null),[G,L]=D.useState(!1),[X,Q]=D.useState(null),ie=D.useRef(null),Z=D.useRef(null),Y=D.useRef(new Set),U=D.useRef(0),[P,re]=D.useState([]),[he,w]=D.useState(!1),M=P.filter(de=>de.sessionId===n),V=[...E.map(de=>({...de,id:de.path,status:"ready"})),...M],T=M.some(de=>de.status==="uploading"),le=[...E.map(de=>de.token),f.trim()].filter(Boolean).join(`
|
|
46
|
+
`);D.useEffect(()=>{n&&A(a,n)},[a,n,A]),D.useEffect(()=>(document.activeElement===ie.current&&B(d),()=>{Ae.getState().focusedDraft===d&&B(null)}),[d,B]);const Ee=()=>{const de=ie.current;de&&(de.style.height="auto",de.style.height=`${Math.min(de.scrollHeight,160)}px`)};D.useEffect(Ee,[f]),D.useEffect(()=>{if(!x)return;const de=ie.current;de&&(de.focus({preventScroll:!0}),de.setSelectionRange(de.value.length,de.value.length),u?.())},[x,u]);const fe=(de=!1)=>{!le||T||G||!n||!k||(F({sessionId:n,workspaceId:a,text:le,queue:de}),C(d),re(ht=>ht.filter(Je=>Je.sessionId!==n)))},Be=async()=>{if(!(!(c&&le)||T||G||!k)){L(!0),Q(null);try{await c(le),C(d),re(de=>de.filter(ht=>ht.sessionId!==n))}catch(de){Q(de instanceof Error?de.message:"Could not fork this chat")}finally{L(!1)}}},Le=de=>{if(E.some(ht=>ht.path===de)){b(d,de);return}Y.current.add(de),re(ht=>ht.filter(Je=>Je.id!==de))},ke=async de=>{if(!(!n||!k))for(const ht of Array.from(de)){const Je=crypto.randomUUID();re(oe=>[...oe,{id:Je,sessionId:n,name:ht.name||"attachment",status:"uploading"}]);try{const oe=await Oe.uploadAttachment(n,a,ht);if(Y.current.delete(Je))continue;y(n,oe.attachment),re(te=>te.filter(W=>W.id!==Je))}catch(oe){if(Y.current.delete(Je))continue;re(te=>te.map(W=>W.id===Je?{...W,status:"error",error:oe instanceof Error?oe.message:"Upload failed"}:W))}}},qe=de=>{de?.length&&ke(de)},Ze=de=>Array.from(de.dataTransfer.types).includes("Files"),Ot=de=>{Ze(de)&&(de.preventDefault(),U.current+=1,w(!0))},zt=de=>{Ze(de)&&(U.current-=1,U.current<=0&&(U.current=0,w(!1)))},ot=de=>{Ze(de)&&(de.preventDefault(),de.dataTransfer.dropEffect="copy")},Ut=de=>{Ze(de)&&(de.preventDefault(),U.current=0,w(!1),qe(de.dataTransfer.files))},Wt=async()=>{if(!(!n||R||!k)){S(!0),z(null);try{const de=await Oe.stop(n,a);de.ok?(j(n),await _.invalidateQueries({queryKey:["sessions",a]}),_.invalidateQueries({queryKey:["state"]})):z(de.error||"Stop failed")}catch(de){z(de instanceof Error?de.message:"Stop failed")}finally{S(!1)}}},Ht=!n,Gt=s?.precise&&s.available,wt=i&&!!n,dn=(!!f.trim()||E.length>0)&&!T,St=!i&&dn&&e&&c?MO(e):null;return h.jsxs("div",{className:"pb-safe border-t border-border-soft bg-bg px-3 pt-2",children:[k?!Gt&&h.jsxs("div",{className:"mb-1.5 flex items-center gap-1.5 px-1 text-[11px] text-faint",children:[h.jsx(lA,{size:12}),s?.caveat||"Sends to the focused session"]}):h.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:[h.jsx(Ld,{size:12}),"Offline — drafts are saved, sending resumes when the relay is back"]}),O?h.jsxs("div",{className:"mb-2 rounded-lg border border-del/40 bg-del/10 px-3 py-1.5 text-xs text-del",children:[h.jsx("button",{type:"button",onClick:()=>z(null),className:"block w-full text-left",children:O}),Bi(O)?h.jsx(ua,{className:"mt-1 inline-block"}):null]}):null,St?h.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:[h.jsx(pB,{size:14,className:"shrink-0"}),h.jsxs("div",{className:"min-w-0 flex-1",children:[h.jsx("div",{className:"text-xs font-medium",children:"Prompt cache may be cold"}),h.jsxs("div",{className:"text-[11px] text-muted",children:["Idle past its ",St.ttlLabel," window"]}),X?h.jsxs("div",{className:"mt-0.5 text-[11px] text-del",role:"alert",children:[X,Bi(X)?h.jsx(ua,{className:"ml-1"}):null]}):null]}),h.jsxs("button",{type:"button",onClick:()=>{Be()},disabled:G||!k,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:[G?h.jsx(ar,{size:13,className:"animate-spin"}):h.jsx(Z8,{size:13}),"Fork draft"]})]}):null,h.jsxs("fieldset",{"aria-label":"Message composer",onDragEnter:Ot,onDragLeave:zt,onDragOver:ot,onDrop:Ut,className:`m-0 min-w-0 rounded-2xl border border-border bg-surface p-2 has-[textarea:focus]:border-accent/60 ${he?"border-accent bg-accent-soft":""}`,children:[h.jsx("input",{ref:Z,type:"file",multiple:!0,className:"hidden",onChange:de=>{qe(de.target.files),de.target.value=""}}),V.length?h.jsx("div",{className:"flex flex-wrap gap-1 px-2 pb-1",children:V.map(de=>h.jsxs("div",{title:de.error??de.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:[de.status==="uploading"?h.jsx(ar,{size:12,className:"shrink-0 animate-spin"}):null,h.jsx("span",{className:"truncate",children:de.status==="error"?`${de.name}: ${de.error}`:de.name}),h.jsx("button",{type:"button",onClick:()=>Le(de.id),"aria-label":`Remove ${de.name}`,className:"flex size-5 shrink-0 items-center justify-center rounded active:bg-surface",children:h.jsx(kn,{size:13})})]},de.id))}):null,he?h.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,h.jsx("textarea",{ref:ie,rows:1,value:f,disabled:Ht||G,placeholder:Ht?"No active session":"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:de=>p(d,de.target.value),onFocus:()=>B(d),onBlur:()=>{Ae.getState().focusedDraft===d&&B(null),rd()},onPaste:de=>{const ht=de.clipboardData.files;ht.length&&(de.preventDefault(),qe(ht))},onKeyDown:de=>{Rg(de)&&(de.preventDefault(),fe(de.metaKey||de.ctrlKey))}}),h.jsxs("div",{className:"mt-1 flex items-start gap-1",children:[e?h.jsx(QO,{session:e,workspaceId:a}):h.jsx("span",{className:"flex-1"}),h.jsx("button",{type:"button",onClick:()=>Z.current?.click(),disabled:Ht||G||!k,"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:h.jsx(ec,{size:17})}),wt?h.jsx("button",{type:"button",onClick:Wt,disabled:R||!k,"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?h.jsx("span",{className:"size-4 animate-spin rounded-full border-2 border-border border-t-text"}):h.jsx(i2,{size:14,fill:"currentColor"})}):null,wt&&!dn?null:h.jsx("button",{type:"button",onClick:()=>fe(),disabled:Ht||!dn||G||!k,"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:h.jsx(K7,{size:18})})]})]})]})}function XO(e){document.visibilityState==="visible"&&window.open(e,"_blank","noopener,noreferrer")}const Iu="flex size-9 shrink-0 items-center justify-center rounded-full text-muted transition active:bg-surface-2 disabled:opacity-40";function ZO({workspaceId:e}){const n=LD(e),a=yr(),i=Ae(_=>_.online),[s,c]=D.useState(null),[x,u]=D.useState(null),[d,f]=D.useState(!1),[E,p]=D.useState(!1),y=D.useRef(null),b=D.useRef(null),C=n.data,A=(C?.runConfigs?.length??0)>1,B=C?.forwards?.filter(_=>_.forwarded&&_.url)??(C?.forwarded&&C.url?[{name:C.port?`Port ${C.port}`:"Dev server",port:C.port??0,url:C.url}]:[]);D.useEffect(()=>{if(!d&&!E)return;const _=E?b:y,R=O=>{O.target instanceof Node&&_.current?.contains(O.target)||(f(!1),p(!1))},S=O=>{O.key==="Escape"&&(O.preventDefault(),f(!1),p(!1),_.current?.querySelector("button")?.focus())};return document.addEventListener("pointerdown",R),document.addEventListener("keydown",S),()=>{document.removeEventListener("pointerdown",R),document.removeEventListener("keydown",S)}},[d,E]);const k=async(_,R)=>{if(!s){c(_?"start":"stop"),u(null);try{const S=_?await Oe.startDevServer(e,R):await Oe.stopDevServer(e);a.setQueryData(["dev-server",e],S),S.ok?_&&S.url&&XO(S.url):u(S.error??`Could not ${_?"start":"stop"} the dev server`)}catch(S){u(S instanceof Error?S.message:`Could not ${_?"start":"stop"} the dev server`)}finally{c(null),a.invalidateQueries({queryKey:["dev-server",e]})}}},j=A?"Choose Run config":C?.running?"Forward dev server to tailnet":"Start and forward dev server",F=C&&!C.available;return h.jsxs(h.Fragment,{children:[B.length&&B[0]?.url?h.jsxs("div",{ref:y,className:"relative flex shrink-0 items-center",children:[h.jsx("a",{href:B[0].url,target:"_blank",rel:"noreferrer","aria-label":`Open ${B[0].name} on port ${B[0].port}`,title:B[0].url,className:Iu,children:h.jsx(Wb,{size:18})}),B.length>1?h.jsxs(h.Fragment,{children:[h.jsx("button",{type:"button",onClick:()=>f(_=>!_),"aria-label":"Choose forwarded dev server","aria-haspopup":"menu","aria-expanded":d,className:"flex h-9 w-6 items-center justify-center rounded-full text-muted active:bg-surface-2",children:h.jsx(da,{size:14,className:d?"rotate-180":void 0})}),d?h.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:B.map(_=>h.jsxs("a",{href:_.url??void 0,target:"_blank",rel:"noreferrer",onClick:()=>f(!1),role:"menuitem",className:"flex items-center gap-3 px-3 py-2.5 text-left text-sm active:bg-surface-2",children:[h.jsx("span",{className:"min-w-0 flex-1 truncate",children:_.name}),h.jsxs("span",{className:"font-mono text-xs text-faint",children:[":",_.port]})]},`${_.port}:${_.url}`))}):null]}):null]}):h.jsxs("div",{ref:b,className:"relative shrink-0",children:[h.jsx("button",{type:"button",onClick:()=>{A?p(_=>!_):k(!0)},disabled:!i||!!s||!!F||n.isLoading,"aria-label":j,"aria-haspopup":A?"menu":void 0,"aria-expanded":A?E:void 0,title:F?C.error:j,className:Iu,children:s==="start"||n.isLoading?h.jsx(ar,{size:18,className:"animate-spin"}):C?.running?h.jsx(Yb,{size:18}):h.jsx(Dm,{size:18,fill:"currentColor"})}),E&&A?h.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(_=>h.jsxs("button",{type:"button",role:"menuitem",onClick:()=>{p(!1),k(!0,_.id)},className:"flex w-full items-center gap-3 px-3 py-2.5 text-left text-sm active:bg-surface-2",children:[h.jsx(Dm,{size:14,className:"shrink-0 text-muted"}),h.jsx("span",{className:"min-w-0 flex-1 truncate",children:_.name})]},_.id))}):null]}),C?.running||C?.forwarded?h.jsx("button",{type:"button",onClick:()=>{k(!1)},disabled:!i||!!s,"aria-label":"Stop dev server",className:Iu,children:s==="stop"?h.jsx(ar,{size:18,className:"animate-spin"}):h.jsx(i2,{size:15,fill:"currentColor"})}):null,x?h.jsx("button",{type:"button",onClick:()=>u(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:x}):null]})}function WO(e){if(!e)return[];const n=e.split(`
|
|
47
|
+
`),a=[];for(const[i,s]of n.entries())s.startsWith("diff --git ")&&a.push(i);return a.length?a.map((i,s)=>n.slice(i,a[s+1]??n.length).join(`
|
|
48
|
+
`)):[e]}function JO(e,n,a){const i=n.findIndex(s=>s.path===a);return i<0?null:WO(e)[i]??null}function ez(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 tz={push:{label:"Uncommitted changes",tone:"text-working",icon:h.jsx(Eb,{size:14})},resolve:{label:"Merge conflicts",tone:"text-muted",icon:h.jsx(zd,{size:14})},merge:{label:"Ready to merge",tone:"text-add"},checks:{label:"Checks running",tone:"text-working",icon:h.jsx(ar,{size:14,className:"animate-spin"})},failed:{label:"Checks failed",tone:"text-del",icon:h.jsx(cb,{size:14})},draft:{label:"Draft",tone:"text-muted"},merged:{label:"Merged",tone:"text-pr-merged",icon:h.jsx(W8,{size:14})}},nz={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 rz({ws:e,local:n,sessionId:a}){return h.jsx(az,{ws:e,local:n,sessionId:a},e.id)}function az({ws:e,local:n,sessionId:a}){const i=yr(),[s,c]=D.useState(!1),[x,u]=D.useState(!1),[d,f]=D.useState(null);if(d?.ok&&(d.continued||e.pr_status!=="merged"))return h.jsxs(t8,{children:[h.jsx(xa,{size:15,className:"shrink-0 text-add"}),h.jsx("span",{className:"truncate font-medium text-add",children:d.msg})]});const E=ez(e,n);if(!E)return null;const{label:p,tone:y,icon:b}=tz[E],C=async()=>{u(!0),f(null);try{const k=await Oe.merge(e.id);k.ok?(f({ok:!0,msg:`Merged${k.method?` (${k.method})`:""}`}),i.invalidateQueries({queryKey:["state"]}),i.invalidateQueries({queryKey:["diff",e.id]})):(f({ok:!1,msg:k.error||"Merge failed"}),c(!1))}catch(k){f({ok:!1,msg:k instanceof Error?k.message:String(k)}),c(!1)}finally{u(!1)}},A=async()=>{u(!0),f(null);try{const k=await Oe.continueWorkspace(e.id,a);k.ok?(f({ok:!0,msg:k.workspace?.branch?`Continued on ${k.workspace.branch}`:"Continued on a new branch",continued:!0}),i.invalidateQueries({queryKey:["state"]}),i.invalidateQueries({queryKey:["diff",e.id]})):f({ok:!1,msg:k.error||"Could not continue this workspace"})}catch(k){f({ok:!1,msg:k instanceof Error?k.message:String(k)})}finally{u(!1)}},B=async k=>{if(!e.active_session_id)return f({ok:!1,msg:"No active session to message"});u(!0),f(null);try{const j=await Oe.sendPrompt(e.active_session_id,nz[k],e.id);f(j.ok?{ok:!0,msg:"Asked the agent"}:{ok:!1,msg:j.error||"Send failed"})}catch(j){f({ok:!1,msg:j instanceof Error?j.message:String(j)})}finally{u(!1)}};return h.jsxs(t8,{tint:E==="merge"?"add":E==="merged"?"merged":void 0,children:[e.pr_number?h.jsxs("a",{href:e.pr_url??void 0,target:"_blank",rel:"noreferrer",className:ye("flex shrink-0 items-center gap-0.5 rounded-md px-1.5 py-0.5 font-mono text-[11px] active:bg-surface",E==="merged"?"bg-pr-merged/15 text-pr-merged":"bg-surface-2 text-muted"),children:["#",e.pr_number,h.jsx(Q7,{size:12})]}):null,h.jsxs("span",{className:ye("flex items-center gap-1 truncate font-medium",y),children:[b,p]}),h.jsxs("div",{className:"ml-auto flex shrink-0 items-center gap-2",children:[d&&!d.ok?h.jsxs(h.Fragment,{children:[h.jsx("span",{className:"max-w-36 truncate text-[11px] text-del",children:d.msg}),Bi(d.msg)?h.jsx(ua,{className:"shrink-0 text-[11px]"}):null]}):null,E==="merge"||E==="checks"?s?h.jsxs(h.Fragment,{children:[h.jsx(iz,{onClick:()=>c(!1)}),h.jsx(Ss,{onClick:C,busy:x,className:E==="merge"?"bg-add text-on-solid":"bg-working text-on-solid",children:"Confirm"})]}):h.jsxs(Ss,{onClick:()=>c(!0),className:E==="merge"?"bg-add text-on-solid":"border border-border bg-surface-2 text-text",children:[h.jsx(W8,{size:13}),"Merge"]}):E==="push"?h.jsx(Ss,{onClick:()=>B("push"),busy:x,className:"bg-working text-on-solid",children:"Commit & push"}):E==="resolve"?h.jsx(Ss,{onClick:()=>B("resolve"),busy:x,className:"border border-border bg-surface-2 text-text",children:"Resolve"}):E==="merged"?h.jsxs(Ss,{onClick:A,busy:x,title:"Continue on a new branch with the same chats",className:"border border-pr-merged/30 bg-surface-2 text-pr-merged",children:[h.jsx(_C,{size:13}),"Continue"]}):null]})]})}function Ss({onClick:e,busy:n,title:a,className:i,children:s}){return h.jsxs("button",{type:"button",onClick:e,disabled:n,title:a,className:ye("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?h.jsx(ar,{size:13,className:"animate-spin"}):null,s]})}function iz({onClick:e}){return h.jsx("button",{type:"button",onClick:e,className:"rounded-lg px-2 py-1 text-xs text-muted active:bg-surface-2",children:"Cancel"})}const lz={add:"bg-add/10",merged:"bg-pr-merged/10"};function t8({tint:e,children:n}){return h.jsx("div",{className:ye("sticky top-0 z-10 flex items-center gap-2 border-b border-border-soft px-3 py-2 backdrop-blur",e?lz[e]:"bg-surface/95"),children:n})}function Lg({review:e,sessionId:n,selectedFile:a,onSelectFile:i}){const{workspace:s,query:c}=e,{data:x,isLoading:u,isError:d,error:f}=c,E=x?{dirty:x.dirty,unpushed:x.unpushed}:void 0;return h.jsxs("div",{className:"min-h-0 flex flex-1 flex-col",children:[h.jsx(rz,{ws:s,local:E,sessionId:n}),u&&!x?h.jsx(Lr,{label:"Computing diff…"}):null,d?h.jsx(xn,{children:f?.message}):null,!u&&!d&&!x?h.jsx(xn,{children:"No diff."}):null,x?.files.length===0?h.jsxs(xn,{children:["No changes vs ",h.jsx("span",{className:"font-mono",children:x.base}),"."]}):null,x&&x.files.length>0?h.jsxs(h.Fragment,{children:[h.jsxs("div",{className:"shrink-0 border-b border-border-soft px-3 py-2 text-xs text-muted",children:["vs ",h.jsx("span",{className:"font-mono text-faint",children:x.base})," · ",x.files.length," file",x.files.length===1?"":"s"]}),h.jsx(sz,{files:x.files,selectedFile:a,onSelectFile:i})]}):null]})}function sz({files:e,selectedFile:n,onSelectFile:a}){return h.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 s=i.path===n;return h.jsx("li",{className:"col-span-3 grid grid-cols-subgrid items-center",children:h.jsxs("button",{type:"button",title:i.path,onClick:()=>a(i.path),"aria-pressed":s,className:ye("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",s&&"bg-accent-soft"),children:[h.jsx("span",{className:ye("truncate",s?"text-text":"text-muted"),children:i.path}),h.jsx("span",{className:"text-right text-add",children:i.added?`+${i.added}`:null}),h.jsx("span",{className:"text-right text-del",children:i.removed?`−${i.removed}`:null})]})},i.path)})})}function oz({review:e,filePath:n,onSelectFile:a,onShowFiles:i,onClose:s}){const{query:c}=e,{data:x,isLoading:u,isError:d,error:f}=c,E=x?.files.findIndex(A=>A.path===n)??-1,p=E>=0?x?.files[E]:void 0,y=D.useMemo(()=>x?JO(x.patch,x.files,n):null,[x,n]),b=E>0?x?.files[E-1]:void 0,C=x&&E>=0&&E<x.files.length-1?x.files[E+1]:void 0;return h.jsxs("section",{className:"min-h-0 flex flex-1 flex-col bg-bg","aria-label":`Changes in ${n}`,children:[h.jsx(pf,{title:h.jsxs("span",{className:"flex items-baseline gap-2",children:[h.jsx("span",{children:"Changes"}),p?.added?h.jsxs("span",{className:"text-xs font-normal text-add",children:["+",p.added]}):null,p?.removed?h.jsxs("span",{className:"text-xs font-normal text-del",children:["−",p.removed]}):null]}),subtitle:p?.path??n,actions:h.jsxs("div",{className:"flex shrink-0 items-center gap-0.5 lg:hidden",children:[h.jsx("button",{type:"button",onClick:()=>b&&a(b.path),disabled:!b,"aria-label":"Previous changed file",className:"flex size-8 items-center justify-center rounded-full text-muted transition active:bg-surface-2 disabled:opacity-25",children:h.jsx(rb,{size:17})}),h.jsx("span",{className:"min-w-9 text-center text-[11px] tabular-nums text-faint",children:E>=0&&x?`${E+1}/${x.files.length}`:"—"}),h.jsx("button",{type:"button",onClick:()=>C&&a(C.path),disabled:!C,"aria-label":"Next changed file",className:"flex size-8 items-center justify-center rounded-full text-muted transition active:bg-surface-2 disabled:opacity-25",children:h.jsx(ib,{size:17})}),h.jsx("button",{type:"button",onClick:i,"aria-label":"Show changed files",className:"flex size-8 items-center justify-center rounded-full text-muted transition active:bg-surface-2",children:h.jsx(e2,{size:17})})]}),onClose:s,closeLabel:"Close diff viewer"}),h.jsxs("div",{className:"min-h-0 flex-1 overflow-auto overscroll-contain",children:[u&&!x?h.jsx(Lr,{label:"Loading changes…"}):null,d?h.jsx(xn,{children:f?.message}):null,x&&E<0?h.jsx(xn,{children:"This file is no longer changed."}):null,x&&E>=0&&y===null?h.jsx(xn,{children:x.truncated?"This file falls beyond the workspace diff preview.":"No textual patch is available for this file."}):null,y!==null?h.jsx(Tg,{patch:y,className:"min-w-max p-4"}):null]})]})}function cz({workspace:e,agentsRunning:n}){const[a,i]=D.useState(!1),[s,c]=D.useState(!1),[x,u]=D.useState(null),[d,f]=D.useState(null),E=Ae(j=>j.online),p=yr(),y=Vd(e),b=()=>{i(!1),c(!1)},C=async j=>{if(!x&&(b(),j!==y)){u(j),f(null);try{const F=await Oe.setStatus(e.id,j);F.ok||f(F.error??"status change failed"),await p.invalidateQueries({queryKey:["state"]})}catch(F){f(F instanceof Error?F.message:"status change failed")}finally{u(null)}}},A=async()=>{if(!x){b(),u("archive"),f(null);try{const j=await Oe.archive(e.id,n>0);j.ok||f(j.error??"archiving failed"),await p.invalidateQueries({queryKey:["state"]}),await p.invalidateQueries({queryKey:["workspace",e.id]})}catch(j){f(j instanceof Error?j.message:"archiving failed")}finally{u(null)}}},k=x==="archive"?y:x??y;return h.jsxs(h.Fragment,{children:[h.jsx("button",{type:"button",onClick:()=>a?b():i(!0),disabled:!E||x!==null,"aria-label":`Workspace menu: ${ld(y)}`,"aria-expanded":a,className:ye("flex size-9 shrink-0 items-center justify-center rounded-full text-muted transition active:bg-surface-2 disabled:opacity-40",a&&"bg-surface-2 text-text"),children:x?h.jsx("span",{className:"dot-spinner size-4",style:{"--spin-color":xz(k)}}):h.jsx(n8,{status:k})}),a?h.jsxs(h.Fragment,{children:[h.jsx("button",{type:"button","aria-label":"Close workspace menu",className:"fixed inset-0 z-20 cursor-default",onClick:b}),h.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:s?h.jsxs("div",{className:"p-3",children:[h.jsx("div",{className:"text-sm font-semibold",children:"Archive workspace?"}),h.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."}),h.jsxs("div",{className:"mt-3 flex justify-end gap-2",children:[h.jsx("button",{type:"button",onClick:()=>c(!1),className:"rounded-lg border border-border px-2.5 py-1 text-xs font-semibold active:bg-surface-2",children:"Cancel"}),h.jsx("button",{type:"button",onClick:A,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"})]})]}):h.jsxs(h.Fragment,{children:[nw.map(j=>h.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:[h.jsx(n8,{status:j}),h.jsx("span",{className:"flex-1",children:ld(j)}),j===y?h.jsx(xa,{size:15,className:"text-accent"}):null]},j)),h.jsxs("button",{type:"button",onClick:()=>c(!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:[h.jsx(Rd,{size:15}),h.jsx("span",{className:"flex-1",children:"Archive workspace"})]})]})})]}):null,d?h.jsx("button",{type:"button",onClick:()=>f(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:d}):null]})}function xz(e){return Qd[e]??"var(--color-faint)"}function n8({status:e}){const n=Qd[e];return n?h.jsx("span",{className:"dot size-2.5",style:{background:n}}):h.jsx("span",{className:"dot size-2.5 border border-faint bg-transparent"})}function uz(){const{workspaceId:e}=Sy(),[n,a]=V8(),i=n.get("session"),s=W=>a({session:W},{replace:!0}),[c,x]=D.useState(!1),[u,d]=D.useState(null),[f,E]=D.useState(!1),p=u&&u.workspaceId===e?u.path:null,[y,b]=D.useState(!1),[C,A]=D.useState(null),[B,k]=D.useState(null),[j,F]=D.useState(null),[_,R]=D.useState(null),S=yr(),O=Fi(),{data:z,isLoading:G}=k2(),L=z?.workspaces.find(W=>W.id===e),X=PD(e,c&&!!L),Q=!!z&&!L,{data:ie}=F2(e,!Q),Z=Ae(W=>W.workingHints),Y=Ae(W=>W.pending),U=Ae(W=>W.readMarks),P=Ae(W=>W.markRead),re=Ae(W=>W.setDraft),he=Ae(W=>W.online),w=L,M=z?.actuator,{data:V,isLoading:T}=OD(e,Q),{data:le}=zD(e,!!L?.worktree),Ee=L?.worktree??null,fe=le?.files,Be=D.useMemo(()=>({resolveMention:V2(Ee,fe),worktree:Ee}),[Ee,fe]),Le=ie?.sessions??[],ke=w?.active_session_id&&Le.some(W=>W.id===w.active_session_id)?w.active_session_id:null,qe=(i&&Le.some(W=>W.id===i)?i:null)??ke??Le[0]?.id??null,Ze=Le.find(W=>W.id===qe),Ot=Ze?.updated_at;if(D.useEffect(()=>{w&&qe&&Ot&&document.visibilityState==="visible"&&P(qe,Ot)},[w,qe,Ot,P]),ZD(qe,Ot),!w)return V?h.jsx(wO,{workspace:V.workspace}):h.jsxs("div",{className:"flex h-full flex-col overflow-hidden",children:[h.jsx(q0,{title:"Session",menu:!0}),G||Q&&T?h.jsx(Lr,{}):h.jsx("div",{className:"p-6 text-center text-sm text-muted",children:"Workspace not found."})]});const zt=qe?Z[qe]:void 0,ot=Ze?.status==="working"||zt!==void 0&&Date.now()-zt<ad,Ut=Ze?.turn_started_at?qn(Ze.turn_started_at):null,Wt=(Ze?.status==="working"?Ut??zt:zt??Ut)??null,Ht=Date.now(),Gt=Object.fromEntries(Le.map(W=>{const ve=Z[W.id],Ue=[...W.id===qe&&w.pending_prompt?[w.pending_prompt]:[],...(w.parked_prompts??[]).filter(Te=>Te.sessionId===W.id)];return[W.id,f2(Y.filter(Te=>Te.sessionId===W.id),Ue,ve!==void 0&&Ht-ve<ad)]})),wt=[w.repo_name,w.branch,X2(w.model)].filter(Boolean).join(" · "),dn=async()=>{if(!y){b(!0);try{const W=await Oe.newChat(w.id);W.ok&&(await S.invalidateQueries({queryKey:["sessions",w.id]}),W.sessionId&&s(W.sessionId))}finally{b(!1)}}},St=async(W,ve=!1)=>{if(C||!he)return;const Ue=Le.find(Te=>Te.id===W);if((Ue?.status==="working"||Ue?.background_tasks.length)&&!ve){k(W),F(null);return}A(W),k(null),F(null);try{const Te=await Oe.closeChat(W,w.id,ve);if(!Te.ok)throw new Error(Te.error??"Could not close this chat");qe===W&&(Te.activeSessionId?s(Te.activeSessionId):a({},{replace:!0})),await Promise.all([S.invalidateQueries({queryKey:["sessions",w.id]}),S.invalidateQueries({queryKey:["state"]})])}catch(Te){Te instanceof gr&&Te.status===409&&/still working/i.test(Te.message)?k(W):F(Te instanceof Error?Te.message:"Could not close this chat")}finally{A(null)}},de=async({thinking:W,tools:ve,through:Ue,only:Te,destination:sn="chat"},Gn)=>{if(!qe)return;const dt=await Oe.splitChat(qe,w.id,W,ve,Ue,Te,sn);if(!dt.ok)throw new Error(dt.error??"Could not fork this chat");const _t=dt.sessionId??(sn==="workspace"?dt.workspaceId:null);if(!_t)throw new Error("The new chat opened, but its id was not available");if(re(_t,[dt.text,Gn?.trim()].filter(Boolean).join(`
|
|
49
|
+
`)),dt.sessionId&&R(dt.sessionId),sn==="workspace"){await S.invalidateQueries({queryKey:["state"]}),O(dt.sessionId?`/w/${dt.workspaceId}?session=${encodeURIComponent(dt.sessionId)}`:`/w/${dt.workspaceId}`);return}await S.invalidateQueries({queryKey:["sessions",w.id]}),dt.sessionId&&s(dt.sessionId)},ht=()=>{x(!1),d(null),E(!1)},Je=()=>{c?ht():(x(!0),E(!0))},oe=W=>{d({workspaceId:w.id,path:W}),E(!1)},te={workspace:w,query:X};return h.jsx(KF,{value:Be,children:h.jsxs("div",{className:"flex h-full min-w-0 overflow-hidden",children:[h.jsxs("div",{className:"flex min-w-0 flex-1 flex-col overflow-hidden",children:[h.jsx(q0,{title:zr(w),subtitle:wt,menu:!0,right:h.jsxs(h.Fragment,{children:[h.jsx(ZO,{workspaceId:w.id}),h.jsx(cz,{workspace:w,agentsRunning:Le.filter(W=>W.status==="working").length}),h.jsx(dz,{stats:w.change_stats,open:c,onToggle:Je})]})}),Le.length>0||w.state==="ready"?h.jsx(fz,{sessions:Le,activeId:qe,readMarks:U,promptStates:Gt,onSelect:s,onNewChat:dn,onClose:W=>{St(W)},creating:y,closingId:C,online:he}):null,B?h.jsx(hz,{title:Le.find(W=>W.id===B)?.title??"Untitled",busy:C===B,onCancel:()=>k(null),onConfirm:()=>{St(B,!0)}}):j?h.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:[h.jsx("span",{className:"min-w-0 flex-1",children:j}),Bi(j)?h.jsx(ua,{}):null,h.jsx("button",{type:"button",onClick:()=>F(null),"aria-label":"Dismiss close error",className:"p-1",children:h.jsx(kn,{size:14})})]}):null,h.jsxs("div",{className:"relative min-h-0 flex flex-1 flex-col",children:[p?h.jsx(oz,{review:te,filePath:p,onSelectFile:oe,onShowFiles:()=>E(!0),onClose:ht},p):h.jsx(jg,{sessionId:qe,workspaceId:w.id,working:ot,workingSince:Wt,turnStartedAt:Ze?.turn_started_at,waiting:Ze?.background_tasks,queued:w.parked_prompts?.find(W=>W.sessionId===qe)??w.pending_prompt,onFork:de}),c&&(f||!p)?h.jsx(Ez,{review:te,sessionId:qe,selectedFile:p,onSelectFile:oe,onClose:ht}):null]}),h.jsx(KO,{session:Ze,sessionId:qe,workspaceId:w.id,working:ot,actuator:M,onFork:W=>de({thinking:!0,tools:!1},W),focusDraft:qe===_,onDraftFocused:()=>R(null)},w.id)]}),c?h.jsx(mz,{review:te,sessionId:qe,selectedFile:p,onSelectFile:oe,onClose:ht}):null]})})}function dz({stats:e,open:n,onToggle:a}){const i=!!e&&(e.added>0||e.removed>0);return h.jsxs("button",{type:"button",onClick:a,"aria-label":i?"Toggle diff panel, changes available":"Toggle diff panel","aria-pressed":n,className:ye("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:[h.jsx(X8,{size:19}),i?h.jsx("span",{className:"absolute right-1.5 top-1.5 size-1.5 rounded-full bg-accent","aria-hidden":"true"}):null]})}function fz({sessions:e,activeId:n,readMarks:a,promptStates:i,onSelect:s,onNewChat:c,onClose:x,creating:u,closingId:d,online:f}){const E=D.useRef(null);return D.useLayoutEffect(()=>{n&&E.current?.scrollIntoView({block:"nearest",inline:"nearest"})},[n]),h.jsxs("nav",{className:"flex shrink-0 items-center gap-1 border-b border-border-soft bg-bg px-3 py-2",children:[h.jsx("div",{className:"flex min-w-0 flex-1 items-center gap-1 overflow-x-auto",children:e.map(p=>{const y=i[p.id];return h.jsxs("div",{ref:p.id===n?E:void 0,className:ye("flex shrink-0 items-center rounded-full text-sm font-medium text-muted transition",p.id===n&&"bg-surface-2 text-text"),children:[h.jsxs("button",{type:"button",onClick:()=>s(p.id),className:"flex min-w-0 items-center gap-1.5 py-1.5 pl-3.5 pr-1",children:[y?h.jsx(nE,{state:y,className:"size-3"}):p.status==="working"?h.jsx("span",{className:"dot-spinner size-3"}):p.background_tasks?.length?h.jsx(J8,{size:11,className:"shrink-0 text-faint","aria-label":"Waiting for a background task"}):null,h.jsx("span",{className:"max-w-36 truncate",children:p.title||"Untitled"}),h.jsx(pz,{used:p.context_used_percent}),rD(p,a)?h.jsx("span",{className:"dot size-1.5 bg-accent"}):null]}),h.jsx("button",{type:"button",onClick:()=>x(p.id),disabled:!f||d!==null,"aria-label":`Close ${p.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:d===p.id?h.jsx(ar,{size:12,className:"animate-spin"}):h.jsx(kn,{size:12})})]},p.id)})}),h.jsx("button",{type:"button",onClick:c,disabled:u,"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:h.jsx(n2,{size:18})})]})}function hz({title:e,busy:n,onCancel:a,onConfirm:i}){return h.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:[h.jsxs("span",{className:"min-w-0 flex-1 truncate",children:[h.jsx("span",{className:"font-semibold",children:e})," is still working. Close the tab anyway?"]}),h.jsx("button",{type:"button",onClick:a,disabled:n,className:"rounded-lg px-2 py-1 text-muted active:bg-surface-2",children:"Cancel"}),h.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?h.jsx(ar,{size:12,className:"animate-spin"}):null,"Close anyway"]})]})}function pz({used:e}){return typeof e!="number"||e<=0?null:h.jsxs("span",{className:ye("shrink-0 text-[11px] tabular-nums",e>=80?"text-working":"text-faint"),children:[Math.round(e),"%"]})}function mz({review:e,sessionId:n,selectedFile:a,onSelectFile:i,onClose:s}){return h.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:[h.jsxs("header",{className:"flex items-center gap-2 border-b border-border-soft px-3 py-2.5",children:[h.jsx("span",{className:"flex-1 text-[15px] font-semibold",children:"Changed files"}),h.jsx("button",{type:"button",onClick:s,"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:h.jsx(kn,{size:20})})]}),h.jsx(Lg,{review:e,sessionId:n,selectedFile:a,onSelectFile:i})]})}function Ez({review:e,sessionId:n,selectedFile:a,onSelectFile:i,onClose:s}){return h.jsxs("section",{className:"absolute inset-0 z-20 flex flex-col bg-bg lg:hidden","aria-label":"Changed files",children:[h.jsxs("header",{className:"flex shrink-0 items-center gap-2 border-b border-border-soft px-3 py-2.5",children:[h.jsx("span",{className:"flex-1 text-[15px] font-semibold",children:"Changed files"}),h.jsx("button",{type:"button",onClick:s,"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:h.jsx(kn,{size:20})})]}),h.jsx(Lg,{review:e,sessionId:n,selectedFile:a,onSelectFile:i})]})}var z0={exports:{}},gz=z0.exports,r8;function yz(){return r8||(r8=1,(function(e,n){(function(i,s){e.exports=s()})(typeof self<"u"?self:gz,function(){return(function(a){var i={};function s(c){if(i[c])return i[c].exports;var x=i[c]={i:c,l:!1,exports:{}};return a[c].call(x.exports,x,x.exports,s),x.l=!0,x.exports}return s.m=a,s.c=i,s.d=function(c,x,u){s.o(c,x)||Object.defineProperty(c,x,{configurable:!1,enumerable:!0,get:u})},s.n=function(c){var x=c&&c.__esModule?function(){return c.default}:function(){return c};return s.d(x,"a",x),x},s.o=function(c,x){return Object.prototype.hasOwnProperty.call(c,x)},s.p="",s(s.s=3)})([(function(a,i,s){Object.defineProperty(i,"__esModule",{value:!0});var c=(function(){function x(u,d){this.width=d,this.height=u.length/d,this.data=u}return x.createEmpty=function(u,d){return new x(new Uint8ClampedArray(u*d),u)},x.prototype.get=function(u,d){return u<0||u>=this.width||d<0||d>=this.height?!1:!!this.data[d*this.width+u]},x.prototype.set=function(u,d,f){this.data[d*this.width+u]=f?1:0},x.prototype.setRegion=function(u,d,f,E,p){for(var y=d;y<d+E;y++)for(var b=u;b<u+f;b++)this.set(b,y,!!p)},x})();i.BitMatrix=c}),(function(a,i,s){Object.defineProperty(i,"__esModule",{value:!0});var c=s(2);function x(d,f){return d^f}i.addOrSubtractGF=x;var u=(function(){function d(f,E,p){this.primitive=f,this.size=E,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 c.default(this,Uint8ClampedArray.from([0])),this.one=new c.default(this,Uint8ClampedArray.from([1]))}return d.prototype.multiply=function(f,E){return f===0||E===0?0:this.expTable[(this.logTable[f]+this.logTable[E])%(this.size-1)]},d.prototype.inverse=function(f){if(f===0)throw new Error("Can't invert 0");return this.expTable[this.size-this.logTable[f]-1]},d.prototype.buildMonomial=function(f,E){if(f<0)throw new Error("Invalid monomial degree less than 0");if(E===0)return this.zero;var p=new Uint8ClampedArray(f+1);return p[0]=E,new c.default(this,p)},d.prototype.log=function(f){if(f===0)throw new Error("Can't take log(0)");return this.logTable[f]},d.prototype.exp=function(f){return this.expTable[f]},d})();i.default=u}),(function(a,i,s){Object.defineProperty(i,"__esModule",{value:!0});var c=s(1),x=(function(){function u(d,f){if(f.length===0)throw new Error("No coefficients.");this.field=d;var E=f.length;if(E>1&&f[0]===0){for(var p=1;p<E&&f[p]===0;)p++;if(p===E)this.coefficients=d.zero.coefficients;else{this.coefficients=new Uint8ClampedArray(E-p);for(var y=0;y<this.coefficients.length;y++)this.coefficients[y]=f[p+y]}}else this.coefficients=f}return u.prototype.degree=function(){return this.coefficients.length-1},u.prototype.isZero=function(){return this.coefficients[0]===0},u.prototype.getCoefficient=function(d){return this.coefficients[this.coefficients.length-1-d]},u.prototype.addOrSubtract=function(d){var f;if(this.isZero())return d;if(d.isZero())return this;var E=this.coefficients,p=d.coefficients;E.length>p.length&&(f=[p,E],E=f[0],p=f[1]);for(var y=new Uint8ClampedArray(p.length),b=p.length-E.length,C=0;C<b;C++)y[C]=p[C];for(var C=b;C<p.length;C++)y[C]=c.addOrSubtractGF(E[C-b],p[C]);return new u(this.field,y)},u.prototype.multiply=function(d){if(d===0)return this.field.zero;if(d===1)return this;for(var f=this.coefficients.length,E=new Uint8ClampedArray(f),p=0;p<f;p++)E[p]=this.field.multiply(this.coefficients[p],d);return new u(this.field,E)},u.prototype.multiplyPoly=function(d){if(this.isZero()||d.isZero())return this.field.zero;for(var f=this.coefficients,E=f.length,p=d.coefficients,y=p.length,b=new Uint8ClampedArray(E+y-1),C=0;C<E;C++)for(var A=f[C],B=0;B<y;B++)b[C+B]=c.addOrSubtractGF(b[C+B],this.field.multiply(A,p[B]));return new u(this.field,b)},u.prototype.multiplyByMonomial=function(d,f){if(d<0)throw new Error("Invalid degree less than 0");if(f===0)return this.field.zero;for(var E=this.coefficients.length,p=new Uint8ClampedArray(E+d),y=0;y<E;y++)p[y]=this.field.multiply(this.coefficients[y],f);return new u(this.field,p)},u.prototype.evaluateAt=function(d){var f=0;if(d===0)return this.getCoefficient(0);var E=this.coefficients.length;if(d===1)return this.coefficients.forEach(function(y){f=c.addOrSubtractGF(f,y)}),f;f=this.coefficients[0];for(var p=1;p<E;p++)f=c.addOrSubtractGF(this.field.multiply(d,f),this.coefficients[p]);return f},u})();i.default=x}),(function(a,i,s){Object.defineProperty(i,"__esModule",{value:!0});var c=s(4),x=s(5),u=s(11),d=s(12);function f(y){var b=d.locate(y);if(!b)return null;for(var C=0,A=b;C<A.length;C++){var B=A[C],k=u.extract(y,B),j=x.decode(k.matrix);if(j)return{binaryData:j.bytes,data:j.text,chunks:j.chunks,version:j.version,location:{topRightCorner:k.mappingFunction(B.dimension,0),topLeftCorner:k.mappingFunction(0,0),bottomRightCorner:k.mappingFunction(B.dimension,B.dimension),bottomLeftCorner:k.mappingFunction(0,B.dimension),topRightFinderPattern:B.topRight,topLeftFinderPattern:B.topLeft,bottomLeftFinderPattern:B.bottomLeft,bottomRightAlignmentPattern:B.alignmentPattern}}}return null}var E={inversionAttempts:"attemptBoth"};function p(y,b,C,A){A===void 0&&(A={});var B=E;Object.keys(B||{}).forEach(function(O){B[O]=A[O]||B[O]});var k=B.inversionAttempts==="attemptBoth"||B.inversionAttempts==="invertFirst",j=B.inversionAttempts==="onlyInvert"||B.inversionAttempts==="invertFirst",F=c.binarize(y,b,C,k),_=F.binarized,R=F.inverted,S=f(j?R:_);return!S&&(B.inversionAttempts==="attemptBoth"||B.inversionAttempts==="invertFirst")&&(S=f(j?_:R)),S}p.default=p,i.default=p}),(function(a,i,s){Object.defineProperty(i,"__esModule",{value:!0});var c=s(0),x=8,u=24;function d(p,y,b){return p<y?y:p>b?b:p}var f=(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 E(p,y,b,C){if(p.length!==y*b*4)throw new Error("Malformed data passed to binarizer.");for(var A=new f(y,b),B=0;B<y;B++)for(var k=0;k<b;k++){var j=p[(k*y+B)*4+0],F=p[(k*y+B)*4+1],_=p[(k*y+B)*4+2];A.set(B,k,.2126*j+.7152*F+.0722*_)}for(var R=Math.ceil(y/x),S=Math.ceil(b/x),O=new f(R,S),z=0;z<S;z++)for(var G=0;G<R;G++){for(var L=0,X=1/0,Q=0,k=0;k<x;k++)for(var B=0;B<x;B++){var ie=A.get(G*x+B,z*x+k);L+=ie,X=Math.min(X,ie),Q=Math.max(Q,ie)}var Z=L/Math.pow(x,2);if(Q-X<=u&&(Z=X/2,z>0&&G>0)){var Y=(O.get(G,z-1)+2*O.get(G-1,z)+O.get(G-1,z-1))/4;X<Y&&(Z=Y)}O.set(G,z,Z)}var U=c.BitMatrix.createEmpty(y,b),P=null;C&&(P=c.BitMatrix.createEmpty(y,b));for(var z=0;z<S;z++)for(var G=0;G<R;G++){for(var re=d(G,2,R-3),he=d(z,2,S-3),L=0,w=-2;w<=2;w++)for(var M=-2;M<=2;M++)L+=O.get(re+w,he+M);for(var V=L/25,w=0;w<x;w++)for(var M=0;M<x;M++){var B=G*x+w,k=z*x+M,T=A.get(B,k);U.set(B,k,T<=V),C&&P.set(B,k,!(T<=V))}}return C?{binarized:U,inverted:P}:{binarized:U}}i.binarize=E}),(function(a,i,s){Object.defineProperty(i,"__esModule",{value:!0});var c=s(0),x=s(6),u=s(9),d=s(10);function f(_,R){for(var S=_^R,O=0;S;)O++,S&=S-1;return O}function E(_,R){return R<<1|_}var p=[{bits:21522,formatInfo:{errorCorrectionLevel:1,dataMask:0}},{bits:20773,formatInfo:{errorCorrectionLevel:1,dataMask:1}},{bits:24188,formatInfo:{errorCorrectionLevel:1,dataMask:2}},{bits:23371,formatInfo:{errorCorrectionLevel:1,dataMask:3}},{bits:17913,formatInfo:{errorCorrectionLevel:1,dataMask:4}},{bits:16590,formatInfo:{errorCorrectionLevel:1,dataMask:5}},{bits:20375,formatInfo:{errorCorrectionLevel:1,dataMask:6}},{bits:19104,formatInfo:{errorCorrectionLevel:1,dataMask:7}},{bits:30660,formatInfo:{errorCorrectionLevel:0,dataMask:0}},{bits:29427,formatInfo:{errorCorrectionLevel:0,dataMask:1}},{bits:32170,formatInfo:{errorCorrectionLevel:0,dataMask:2}},{bits:30877,formatInfo:{errorCorrectionLevel:0,dataMask:3}},{bits:26159,formatInfo:{errorCorrectionLevel:0,dataMask:4}},{bits:25368,formatInfo:{errorCorrectionLevel:0,dataMask:5}},{bits:27713,formatInfo:{errorCorrectionLevel:0,dataMask:6}},{bits:26998,formatInfo:{errorCorrectionLevel:0,dataMask:7}},{bits:5769,formatInfo:{errorCorrectionLevel:3,dataMask:0}},{bits:5054,formatInfo:{errorCorrectionLevel:3,dataMask:1}},{bits:7399,formatInfo:{errorCorrectionLevel:3,dataMask:2}},{bits:6608,formatInfo:{errorCorrectionLevel:3,dataMask:3}},{bits:1890,formatInfo:{errorCorrectionLevel:3,dataMask:4}},{bits:597,formatInfo:{errorCorrectionLevel:3,dataMask:5}},{bits:3340,formatInfo:{errorCorrectionLevel:3,dataMask:6}},{bits:2107,formatInfo:{errorCorrectionLevel:3,dataMask:7}},{bits:13663,formatInfo:{errorCorrectionLevel:2,dataMask:0}},{bits:12392,formatInfo:{errorCorrectionLevel:2,dataMask:1}},{bits:16177,formatInfo:{errorCorrectionLevel:2,dataMask:2}},{bits:14854,formatInfo:{errorCorrectionLevel:2,dataMask:3}},{bits:9396,formatInfo:{errorCorrectionLevel:2,dataMask:4}},{bits:8579,formatInfo:{errorCorrectionLevel:2,dataMask:5}},{bits:11994,formatInfo:{errorCorrectionLevel:2,dataMask:6}},{bits:11245,formatInfo:{errorCorrectionLevel:2,dataMask:7}}],y=[function(_){return(_.y+_.x)%2===0},function(_){return _.y%2===0},function(_){return _.x%3===0},function(_){return(_.y+_.x)%3===0},function(_){return(Math.floor(_.y/2)+Math.floor(_.x/3))%2===0},function(_){return _.x*_.y%2+_.x*_.y%3===0},function(_){return(_.y*_.x%2+_.y*_.x%3)%2===0},function(_){return((_.y+_.x)%2+_.y*_.x%3)%2===0}];function b(_){var R=17+4*_.versionNumber,S=c.BitMatrix.createEmpty(R,R);S.setRegion(0,0,9,9,!0),S.setRegion(R-8,0,8,9,!0),S.setRegion(0,R-8,9,8,!0);for(var O=0,z=_.alignmentPatternCenters;O<z.length;O++)for(var G=z[O],L=0,X=_.alignmentPatternCenters;L<X.length;L++){var Q=X[L];G===6&&Q===6||G===6&&Q===R-7||G===R-7&&Q===6||S.setRegion(G-2,Q-2,5,5,!0)}return S.setRegion(6,9,1,R-17,!0),S.setRegion(9,6,R-17,1,!0),_.versionNumber>6&&(S.setRegion(R-11,0,3,6,!0),S.setRegion(0,R-11,6,3,!0)),S}function C(_,R,S){for(var O=y[S.dataMask],z=_.height,G=b(R),L=[],X=0,Q=0,ie=!0,Z=z-1;Z>0;Z-=2){Z===6&&Z--;for(var Y=0;Y<z;Y++)for(var U=ie?z-1-Y:Y,P=0;P<2;P++){var re=Z-P;if(!G.get(re,U)){Q++;var he=_.get(re,U);O({y:U,x:re})&&(he=!he),X=E(he,X),Q===8&&(L.push(X),Q=0,X=0)}}ie=!ie}return L}function A(_){var R=_.height,S=Math.floor((R-17)/4);if(S<=6)return d.VERSIONS[S-1];for(var O=0,z=5;z>=0;z--)for(var G=R-9;G>=R-11;G--)O=E(_.get(G,z),O);for(var L=0,G=5;G>=0;G--)for(var z=R-9;z>=R-11;z--)L=E(_.get(G,z),L);for(var X=1/0,Q,ie=0,Z=d.VERSIONS;ie<Z.length;ie++){var Y=Z[ie];if(Y.infoBits===O||Y.infoBits===L)return Y;var U=f(O,Y.infoBits);U<X&&(Q=Y,X=U),U=f(L,Y.infoBits),U<X&&(Q=Y,X=U)}if(X<=3)return Q}function B(_){for(var R=0,S=0;S<=8;S++)S!==6&&(R=E(_.get(S,8),R));for(var O=7;O>=0;O--)O!==6&&(R=E(_.get(8,O),R));for(var z=_.height,G=0,O=z-1;O>=z-7;O--)G=E(_.get(8,O),G);for(var S=z-8;S<z;S++)G=E(_.get(S,8),G);for(var L=1/0,X=null,Q=0,ie=p;Q<ie.length;Q++){var Z=ie[Q],Y=Z.bits,U=Z.formatInfo;if(Y===R||Y===G)return U;var P=f(R,Y);P<L&&(X=U,L=P),R!==G&&(P=f(G,Y),P<L&&(X=U,L=P))}return L<=3?X:null}function k(_,R,S){var O=R.errorCorrectionLevels[S],z=[],G=0;if(O.ecBlocks.forEach(function(he){for(var w=0;w<he.numBlocks;w++)z.push({numDataCodewords:he.dataCodewordsPerBlock,codewords:[]}),G+=he.dataCodewordsPerBlock+O.ecCodewordsPerBlock}),_.length<G)return null;_=_.slice(0,G);for(var L=O.ecBlocks[0].dataCodewordsPerBlock,X=0;X<L;X++)for(var Q=0,ie=z;Q<ie.length;Q++){var Z=ie[Q];Z.codewords.push(_.shift())}if(O.ecBlocks.length>1)for(var Y=O.ecBlocks[0].numBlocks,U=O.ecBlocks[1].numBlocks,X=0;X<U;X++)z[Y+X].codewords.push(_.shift());for(;_.length>0;)for(var P=0,re=z;P<re.length;P++){var Z=re[P];Z.codewords.push(_.shift())}return z}function j(_){var R=A(_);if(!R)return null;var S=B(_);if(!S)return null;var O=C(_,R,S),z=k(O,R,S.errorCorrectionLevel);if(!z)return null;for(var G=z.reduce(function(P,re){return P+re.numDataCodewords},0),L=new Uint8ClampedArray(G),X=0,Q=0,ie=z;Q<ie.length;Q++){var Z=ie[Q],Y=u.decode(Z.codewords,Z.codewords.length-Z.numDataCodewords);if(!Y)return null;for(var U=0;U<Z.numDataCodewords;U++)L[X++]=Y[U]}try{return x.decode(L,R.versionNumber)}catch{return null}}function F(_){if(_==null)return null;var R=j(_);if(R)return R;for(var S=0;S<_.width;S++)for(var O=S+1;O<_.height;O++)_.get(S,O)!==_.get(O,S)&&(_.set(S,O,!_.get(S,O)),_.set(O,S,!_.get(O,S)));return j(_)}i.decode=F}),(function(a,i,s){Object.defineProperty(i,"__esModule",{value:!0});var c=s(7),x=s(8),u;(function(A){A.Numeric="numeric",A.Alphanumeric="alphanumeric",A.Byte="byte",A.Kanji="kanji",A.ECI="eci"})(u=i.Mode||(i.Mode={}));var d;(function(A){A[A.Terminator=0]="Terminator",A[A.Numeric=1]="Numeric",A[A.Alphanumeric=2]="Alphanumeric",A[A.Byte=4]="Byte",A[A.Kanji=8]="Kanji",A[A.ECI=7]="ECI"})(d||(d={}));function f(A,B){for(var k=[],j="",F=[10,12,14][B],_=A.readBits(F);_>=3;){var R=A.readBits(10);if(R>=1e3)throw new Error("Invalid numeric value above 999");var S=Math.floor(R/100),O=Math.floor(R/10)%10,z=R%10;k.push(48+S,48+O,48+z),j+=S.toString()+O.toString()+z.toString(),_-=3}if(_===2){var R=A.readBits(7);if(R>=100)throw new Error("Invalid numeric value above 99");var S=Math.floor(R/10),O=R%10;k.push(48+S,48+O),j+=S.toString()+O.toString()}else if(_===1){var R=A.readBits(4);if(R>=10)throw new Error("Invalid numeric value above 9");k.push(48+R),j+=R.toString()}return{bytes:k,text:j}}var E=["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(A,B){for(var k=[],j="",F=[9,11,13][B],_=A.readBits(F);_>=2;){var R=A.readBits(11),S=Math.floor(R/45),O=R%45;k.push(E[S].charCodeAt(0),E[O].charCodeAt(0)),j+=E[S]+E[O],_-=2}if(_===1){var S=A.readBits(6);k.push(E[S].charCodeAt(0)),j+=E[S]}return{bytes:k,text:j}}function y(A,B){for(var k=[],j="",F=[8,16,16][B],_=A.readBits(F),R=0;R<_;R++){var S=A.readBits(8);k.push(S)}try{j+=decodeURIComponent(k.map(function(O){return"%"+("0"+O.toString(16)).substr(-2)}).join(""))}catch{}return{bytes:k,text:j}}function b(A,B){for(var k=[],j="",F=[8,10,12][B],_=A.readBits(F),R=0;R<_;R++){var S=A.readBits(13),O=Math.floor(S/192)<<8|S%192;O<7936?O+=33088:O+=49472,k.push(O>>8,O&255),j+=String.fromCharCode(x.shiftJISTable[O])}return{bytes:k,text:j}}function C(A,B){for(var k,j,F,_,R=new c.BitStream(A),S=B<=9?0:B<=26?1:2,O={text:"",bytes:[],chunks:[],version:B};R.available()>=4;){var z=R.readBits(4);if(z===d.Terminator)return O;if(z===d.ECI)R.readBits(1)===0?O.chunks.push({type:u.ECI,assignmentNumber:R.readBits(7)}):R.readBits(1)===0?O.chunks.push({type:u.ECI,assignmentNumber:R.readBits(14)}):R.readBits(1)===0?O.chunks.push({type:u.ECI,assignmentNumber:R.readBits(21)}):O.chunks.push({type:u.ECI,assignmentNumber:-1});else if(z===d.Numeric){var G=f(R,S);O.text+=G.text,(k=O.bytes).push.apply(k,G.bytes),O.chunks.push({type:u.Numeric,text:G.text})}else if(z===d.Alphanumeric){var L=p(R,S);O.text+=L.text,(j=O.bytes).push.apply(j,L.bytes),O.chunks.push({type:u.Alphanumeric,text:L.text})}else if(z===d.Byte){var X=y(R,S);O.text+=X.text,(F=O.bytes).push.apply(F,X.bytes),O.chunks.push({type:u.Byte,bytes:X.bytes,text:X.text})}else if(z===d.Kanji){var Q=b(R,S);O.text+=Q.text,(_=O.bytes).push.apply(_,Q.bytes),O.chunks.push({type:u.Kanji,bytes:Q.bytes,text:Q.text})}}if(R.available()===0||R.readBits(R.available())===0)return O}i.decode=C}),(function(a,i,s){Object.defineProperty(i,"__esModule",{value:!0});var c=(function(){function x(u){this.byteOffset=0,this.bitOffset=0,this.bytes=u}return x.prototype.readBits=function(u){if(u<1||u>32||u>this.available())throw new Error("Cannot read "+u.toString()+" bits");var d=0;if(this.bitOffset>0){var f=8-this.bitOffset,E=u<f?u:f,p=f-E,y=255>>8-E<<p;d=(this.bytes[this.byteOffset]&y)>>p,u-=E,this.bitOffset+=E,this.bitOffset===8&&(this.bitOffset=0,this.byteOffset++)}if(u>0){for(;u>=8;)d=d<<8|this.bytes[this.byteOffset]&255,this.byteOffset++,u-=8;if(u>0){var p=8-u,y=255>>p<<p;d=d<<u|(this.bytes[this.byteOffset]&y)>>p,this.bitOffset+=u}}return d},x.prototype.available=function(){return 8*(this.bytes.length-this.byteOffset)-this.bitOffset},x})();i.BitStream=c}),(function(a,i,s){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(a,i,s){Object.defineProperty(i,"__esModule",{value:!0});var c=s(1),x=s(2);function u(p,y,b,C){var A;y.degree()<b.degree()&&(A=[b,y],y=A[0],b=A[1]);for(var B=y,k=b,j=p.zero,F=p.one;k.degree()>=C/2;){var _=B,R=j;if(B=k,j=F,B.isZero())return null;k=_;for(var S=p.zero,O=B.getCoefficient(B.degree()),z=p.inverse(O);k.degree()>=B.degree()&&!k.isZero();){var G=k.degree()-B.degree(),L=p.multiply(k.getCoefficient(k.degree()),z);S=S.addOrSubtract(p.buildMonomial(G,L)),k=k.addOrSubtract(B.multiplyByMonomial(G,L))}if(F=S.multiplyPoly(j).addOrSubtract(R),k.degree()>=B.degree())return null}var X=F.getCoefficient(0);if(X===0)return null;var Q=p.inverse(X);return[F.multiply(Q),k.multiply(Q)]}function d(p,y){var b=y.degree();if(b===1)return[y.getCoefficient(1)];for(var C=new Array(b),A=0,B=1;B<p.size&&A<b;B++)y.evaluateAt(B)===0&&(C[A]=p.inverse(B),A++);return A!==b?null:C}function f(p,y,b){for(var C=b.length,A=new Array(C),B=0;B<C;B++){for(var k=p.inverse(b[B]),j=1,F=0;F<C;F++)B!==F&&(j=p.multiply(j,c.addOrSubtractGF(1,p.multiply(b[F],k))));A[B]=p.multiply(y.evaluateAt(k),p.inverse(j)),p.generatorBase!==0&&(A[B]=p.multiply(A[B],k))}return A}function E(p,y){var b=new Uint8ClampedArray(p.length);b.set(p);for(var C=new c.default(285,256,0),A=new x.default(C,b),B=new Uint8ClampedArray(y),k=!1,j=0;j<y;j++){var F=A.evaluateAt(C.exp(j+C.generatorBase));B[B.length-1-j]=F,F!==0&&(k=!0)}if(!k)return b;var _=new x.default(C,B),R=u(C,C.buildMonomial(y,1),_,y);if(R===null)return null;var S=d(C,R[0]);if(S==null)return null;for(var O=f(C,R[1],S),z=0;z<S.length;z++){var G=b.length-1-C.log(S[z]);if(G<0)return null;b[G]=c.addOrSubtractGF(b[G],O[z])}return b}i.decode=E}),(function(a,i,s){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(a,i,s){Object.defineProperty(i,"__esModule",{value:!0});var c=s(0);function x(E,p,y,b){var C=E.x-p.x+y.x-b.x,A=E.y-p.y+y.y-b.y;if(C===0&&A===0)return{a11:p.x-E.x,a12:p.y-E.y,a13:0,a21:y.x-p.x,a22:y.y-p.y,a23:0,a31:E.x,a32:E.y,a33:1};var B=p.x-y.x,k=b.x-y.x,j=p.y-y.y,F=b.y-y.y,_=B*F-k*j,R=(C*F-k*A)/_,S=(B*A-C*j)/_;return{a11:p.x-E.x+R*p.x,a12:p.y-E.y+R*p.y,a13:R,a21:b.x-E.x+S*b.x,a22:b.y-E.y+S*b.y,a23:S,a31:E.x,a32:E.y,a33:1}}function u(E,p,y,b){var C=x(E,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 d(E,p){return{a11:E.a11*p.a11+E.a21*p.a12+E.a31*p.a13,a12:E.a12*p.a11+E.a22*p.a12+E.a32*p.a13,a13:E.a13*p.a11+E.a23*p.a12+E.a33*p.a13,a21:E.a11*p.a21+E.a21*p.a22+E.a31*p.a23,a22:E.a12*p.a21+E.a22*p.a22+E.a32*p.a23,a23:E.a13*p.a21+E.a23*p.a22+E.a33*p.a23,a31:E.a11*p.a31+E.a21*p.a32+E.a31*p.a33,a32:E.a12*p.a31+E.a22*p.a32+E.a32*p.a33,a33:E.a13*p.a31+E.a23*p.a32+E.a33*p.a33}}function f(E,p){for(var y=u({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=x(p.topLeft,p.topRight,p.alignmentPattern,p.bottomLeft),C=d(b,y),A=c.BitMatrix.createEmpty(p.dimension,p.dimension),B=function(S,O){var z=C.a13*S+C.a23*O+C.a33;return{x:(C.a11*S+C.a21*O+C.a31)/z,y:(C.a12*S+C.a22*O+C.a32)/z}},k=0;k<p.dimension;k++)for(var j=0;j<p.dimension;j++){var F=j+.5,_=k+.5,R=B(F,_);A.set(j,k,E.get(Math.floor(R.x),Math.floor(R.y)))}return{matrix:A,mappingFunction:B}}i.extract=f}),(function(a,i,s){Object.defineProperty(i,"__esModule",{value:!0});var c=4,x=.5,u=1.5,d=function(F,_){return Math.sqrt(Math.pow(_.x-F.x,2)+Math.pow(_.y-F.y,2))};function f(F){return F.reduce(function(_,R){return _+R})}function E(F,_,R){var S,O,z,G,L=d(F,_),X=d(_,R),Q=d(F,R),ie,Z,Y;return X>=L&&X>=Q?(S=[_,F,R],ie=S[0],Z=S[1],Y=S[2]):Q>=X&&Q>=L?(O=[F,_,R],ie=O[0],Z=O[1],Y=O[2]):(z=[F,R,_],ie=z[0],Z=z[1],Y=z[2]),(Y.x-Z.x)*(ie.y-Z.y)-(Y.y-Z.y)*(ie.x-Z.x)<0&&(G=[Y,ie],ie=G[0],Y=G[1]),{bottomLeft:ie,topLeft:Z,topRight:Y}}function p(F,_,R,S){var O=(f(b(F,R,S,5))/7+f(b(F,_,S,5))/7+f(b(R,F,S,5))/7+f(b(_,F,S,5))/7)/4;if(O<1)throw new Error("Invalid module size");var z=Math.round(d(F,_)/O),G=Math.round(d(F,R)/O),L=Math.floor((z+G)/2)+7;switch(L%4){case 0:L++;break;case 2:L--;break}return{dimension:L,moduleSize:O}}function y(F,_,R,S){var O=[{x:Math.floor(F.x),y:Math.floor(F.y)}],z=Math.abs(_.y-F.y)>Math.abs(_.x-F.x),G,L,X,Q;z?(G=Math.floor(F.y),L=Math.floor(F.x),X=Math.floor(_.y),Q=Math.floor(_.x)):(G=Math.floor(F.x),L=Math.floor(F.y),X=Math.floor(_.x),Q=Math.floor(_.y));for(var ie=Math.abs(X-G),Z=Math.abs(Q-L),Y=Math.floor(-ie/2),U=G<X?1:-1,P=L<Q?1:-1,re=!0,he=G,w=L;he!==X+U;he+=U){var M=z?w:he,V=z?he:w;if(R.get(M,V)!==re&&(re=!re,O.push({x:M,y:V}),O.length===S+1))break;if(Y+=Z,Y>0){if(w===Q)break;w+=P,Y-=ie}}for(var T=[],le=0;le<S;le++)O[le]&&O[le+1]?T.push(d(O[le],O[le+1])):T.push(0);return T}function b(F,_,R,S){var O,z=_.y-F.y,G=_.x-F.x,L=y(F,_,R,Math.ceil(S/2)),X=y(F,{x:F.x-G,y:F.y-z},R,Math.ceil(S/2)),Q=L.shift()+X.shift()-1;return(O=X.concat(Q)).concat.apply(O,L)}function C(F,_){var R=f(F)/f(_),S=0;return _.forEach(function(O,z){S+=Math.pow(F[z]-O*R,2)}),{averageSize:R,error:S}}function A(F,_,R){try{var S=b(F,{x:-1,y:F.y},R,_.length),O=b(F,{x:F.x,y:-1},R,_.length),z={x:Math.max(0,F.x-F.y)-1,y:Math.max(0,F.y-F.x)-1},G=b(F,z,R,_.length),L={x:Math.min(R.width,F.x+F.y)+1,y:Math.min(R.height,F.y+F.x)+1},X=b(F,L,R,_.length),Q=C(S,_),ie=C(O,_),Z=C(G,_),Y=C(X,_),U=Math.sqrt(Q.error*Q.error+ie.error*ie.error+Z.error*Z.error+Y.error*Y.error),P=(Q.averageSize+ie.averageSize+Z.averageSize+Y.averageSize)/4,re=(Math.pow(Q.averageSize-P,2)+Math.pow(ie.averageSize-P,2)+Math.pow(Z.averageSize-P,2)+Math.pow(Y.averageSize-P,2))/P;return U+re}catch{return 1/0}}function B(F,_){for(var R=Math.round(_.x);F.get(R,Math.round(_.y));)R--;for(var S=Math.round(_.x);F.get(S,Math.round(_.y));)S++;for(var O=(R+S)/2,z=Math.round(_.y);F.get(Math.round(O),z);)z--;for(var G=Math.round(_.y);F.get(Math.round(O),G);)G++;var L=(z+G)/2;return{x:O,y:L}}function k(F){for(var _=[],R=[],S=[],O=[],z=function(M){for(var V=0,T=!1,le=[0,0,0,0,0],Ee=function(Be){var Le=F.get(Be,M);if(Le===T)V++;else{le=[le[1],le[2],le[3],le[4],V],V=1,T=Le;var ke=f(le)/7,qe=Math.abs(le[0]-ke)<ke&&Math.abs(le[1]-ke)<ke&&Math.abs(le[2]-3*ke)<3*ke&&Math.abs(le[3]-ke)<ke&&Math.abs(le[4]-ke)<ke&&!Le,Ze=f(le.slice(-3))/3,Ot=Math.abs(le[2]-Ze)<Ze&&Math.abs(le[3]-Ze)<Ze&&Math.abs(le[4]-Ze)<Ze&&Le;if(qe){var zt=Be-le[3]-le[4],ot=zt-le[2],Ut={startX:ot,endX:zt,y:M},Wt=R.filter(function(wt){return ot>=wt.bottom.startX&&ot<=wt.bottom.endX||zt>=wt.bottom.startX&&ot<=wt.bottom.endX||ot<=wt.bottom.startX&&zt>=wt.bottom.endX&&le[2]/(wt.bottom.endX-wt.bottom.startX)<u&&le[2]/(wt.bottom.endX-wt.bottom.startX)>x});Wt.length>0?Wt[0].bottom=Ut:R.push({top:Ut,bottom:Ut})}if(Ot){var Ht=Be-le[4],Gt=Ht-le[3],Ut={startX:Gt,y:M,endX:Ht},Wt=O.filter(function(St){return Gt>=St.bottom.startX&&Gt<=St.bottom.endX||Ht>=St.bottom.startX&&Gt<=St.bottom.endX||Gt<=St.bottom.startX&&Ht>=St.bottom.endX&&le[2]/(St.bottom.endX-St.bottom.startX)<u&&le[2]/(St.bottom.endX-St.bottom.startX)>x});Wt.length>0?Wt[0].bottom=Ut:O.push({top:Ut,bottom:Ut})}}},fe=-1;fe<=F.width;fe++)Ee(fe);_.push.apply(_,R.filter(function(Be){return Be.bottom.y!==M&&Be.bottom.y-Be.top.y>=2})),R=R.filter(function(Be){return Be.bottom.y===M}),S.push.apply(S,O.filter(function(Be){return Be.bottom.y!==M})),O=O.filter(function(Be){return Be.bottom.y===M})},G=0;G<=F.height;G++)z(G);_.push.apply(_,R.filter(function(M){return M.bottom.y-M.top.y>=2})),S.push.apply(S,O);var L=_.filter(function(M){return M.bottom.y-M.top.y>=2}).map(function(M){var V=(M.top.startX+M.top.endX+M.bottom.startX+M.bottom.endX)/4,T=(M.top.y+M.bottom.y+1)/2;if(F.get(Math.round(V),Math.round(T))){var le=[M.top.endX-M.top.startX,M.bottom.endX-M.bottom.startX,M.bottom.y-M.top.y+1],Ee=f(le)/le.length,fe=A({x:Math.round(V),y:Math.round(T)},[1,1,3,1,1],F);return{score:fe,x:V,y:T,size:Ee}}}).filter(function(M){return!!M}).sort(function(M,V){return M.score-V.score}).map(function(M,V,T){if(V>c)return null;var le=T.filter(function(fe,Be){return V!==Be}).map(function(fe){return{x:fe.x,y:fe.y,score:fe.score+Math.pow(fe.size-M.size,2)/M.size,size:fe.size}}).sort(function(fe,Be){return fe.score-Be.score});if(le.length<2)return null;var Ee=M.score+le[0].score+le[1].score;return{points:[M].concat(le.slice(0,2)),score:Ee}}).filter(function(M){return!!M}).sort(function(M,V){return M.score-V.score});if(L.length===0)return null;var X=E(L[0].points[0],L[0].points[1],L[0].points[2]),Q=X.topRight,ie=X.topLeft,Z=X.bottomLeft,Y=j(F,S,Q,ie,Z),U=[];Y&&U.push({alignmentPattern:{x:Y.alignmentPattern.x,y:Y.alignmentPattern.y},bottomLeft:{x:Z.x,y:Z.y},dimension:Y.dimension,topLeft:{x:ie.x,y:ie.y},topRight:{x:Q.x,y:Q.y}});var P=B(F,Q),re=B(F,ie),he=B(F,Z),w=j(F,S,P,re,he);return w&&U.push({alignmentPattern:{x:w.alignmentPattern.x,y:w.alignmentPattern.y},bottomLeft:{x:he.x,y:he.y},topLeft:{x:re.x,y:re.y},topRight:{x:P.x,y:P.y},dimension:w.dimension}),U.length===0?null:U}i.locate=k;function j(F,_,R,S,O){var z,G,L;try{z=p(S,R,O,F),G=z.dimension,L=z.moduleSize}catch{return null}var X={x:R.x-S.x+O.x,y:R.y-S.y+O.y},Q=(d(S,O)+d(S,R))/2/L,ie=1-3/Q,Z={x:S.x+ie*(X.x-S.x),y:S.y+ie*(X.y-S.y)},Y=_.map(function(P){var re=(P.top.startX+P.top.endX+P.bottom.startX+P.bottom.endX)/4,he=(P.top.y+P.bottom.y+1)/2;if(F.get(Math.floor(re),Math.floor(he))){var w=[P.top.endX-P.top.startX,P.bottom.endX-P.bottom.startX,P.bottom.y-P.top.y+1];f(w)/w.length;var M=A({x:Math.floor(re),y:Math.floor(he)},[1,1,1],F),V=M+d({x:re,y:he},Z);return{x:re,y:he,score:V}}}).filter(function(P){return!!P}).sort(function(P,re){return P.score-re.score}),U=Q>=15&&Y.length?Y[0]:Z;return{alignmentPattern:U,dimension:G}}})]).default})})(z0)),z0.exports}var bz=yz();const Cz=Qs(bz);function Az({onResult:e,onClose:n}){const a=D.useRef(null),[i,s]=D.useState(null);return D.useEffect(()=>{let c=null,x=0,u=!1;const d=document.createElement("canvas"),f=d.getContext("2d",{willReadFrequently:!0}),E=()=>{const p=a.current;if(!(u||!p||!f)){if(p.readyState>=p.HAVE_ENOUGH_DATA&&p.videoWidth){d.width=p.videoWidth,d.height=p.videoHeight,f.drawImage(p,0,0,d.width,d.height);const{data:y,width:b,height:C}=f.getImageData(0,0,d.width,d.height),A=Cz(y,b,C,{inversionAttempts:"dontInvert"});if(A?.data){u=!0,e(A.data);return}}x=requestAnimationFrame(E)}};return navigator.mediaDevices?.getUserMedia({video:{facingMode:"environment"}}).then(p=>{if(u){for(const b of p.getTracks())b.stop();return}c=p;const y=a.current;y&&(y.srcObject=p,y.play(),x=requestAnimationFrame(E))}).catch(p=>s(vz(p))),()=>{if(u=!0,cancelAnimationFrame(x),c)for(const p of c.getTracks())p.stop()}},[e]),h.jsxs("div",{className:"fixed inset-0 z-[60] bg-black",children:[h.jsx("video",{ref:a,muted:!0,playsInline:!0,className:"h-full w-full object-cover"}),h.jsx("div",{className:"pointer-events-none absolute inset-0 grid place-items-center",children:h.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)]"})}),h.jsxs("div",{className:"pt-safe absolute inset-x-0 top-0 flex items-center justify-between p-4",children:[h.jsx("span",{className:"rounded-full bg-black/50 px-3 py-1 text-sm text-white",children:"Point at the relay QR"}),h.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:h.jsx(kn,{size:20})})]}),i?h.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 vz(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 Bz(){const e=Ae(f=>f.setToken),[n,a]=D.useState(""),[i,s]=D.useState(!1),[c,x]=D.useState(!1),u=f=>{const E=Uk(f);x(!1),E?e(E):s(!0)},d=f=>{f.preventDefault(),u(n)};return c?h.jsx(Az,{onResult:u,onClose:()=>x(!1)}):h.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:[h.jsx("img",{src:"/icon.svg",alt:"",className:"size-20 rounded-3xl"}),h.jsxs("div",{children:[h.jsx("h1",{className:"text-xl font-semibold",children:"Conductor Remote"}),h.jsx("p",{className:"mt-1 text-sm text-muted",children:"Phone control panel for your local agents"})]}),h.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 (",h.jsx("span",{className:"font-mono text-faint",children:"/#token=…"}),"). Then use"," ",h.jsx("b",{className:"text-text",children:"Add to Home Screen"})," to install it."]}),h.jsxs("form",{onSubmit:d,className:"flex w-full max-w-xs flex-col gap-2",children:[h.jsx("input",{type:"text",inputMode:"text",autoCapitalize:"none",autoCorrect:"off",spellCheck:!1,value:n,onChange:f=>{a(f.target.value),s(!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"}),h.jsx("button",{type:"submit",className:"pill pill-active justify-center py-2.5",children:"Connect"}),h.jsxs("button",{type:"button",onClick:()=>{s(!1),x(!0)},className:"pill justify-center gap-2 py-2.5",children:[h.jsx(r2,{size:16}),"Scan QR"]}),i?h.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]}),h.jsxs("p",{className:"max-w-xs text-xs leading-relaxed text-faint",children:["Lost it? Run ",h.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 kz=new Intl.NumberFormat("en",{notation:"compact"});function a8(e){return kz.format(Math.max(0,e)).toLowerCase()}function i8(e,n){return`${e.toLocaleString("en")} ${e===1?"line":"lines"} ${n}`}function Dz({stats:e,className:n}){if(!e||e.added<=0&&e.removed<=0)return null;const a=[e.added>0?i8(e.added,"added"):null,e.removed>0?i8(e.removed,"removed"):null].filter(Boolean).join(", ");return h.jsxs("span",{className:ye("flex shrink-0 items-center gap-1 font-mono text-[10px] font-medium leading-none tabular-nums",n),title:a,children:[h.jsx("span",{className:"sr-only",children:a}),e.added>0?h.jsxs("span",{className:"text-add","aria-hidden":"true",children:["+",a8(e.added)]}):null,e.removed>0?h.jsxs("span",{className:"text-del","aria-hidden":"true",children:["-",a8(e.removed)]}):null]})}const Pg="conductor-remote-theme",Fz={light:"#f5f6f8",dark:"#0a0b0e"};function wz(e){return e==="light"||e==="dark"||e==="system"?e:"system"}function Ug(e){try{return wz((e??localStorage).getItem(Pg))}catch{return"system"}}function Sz(e,n){return e==="system"?n?"dark":"light":e}function Nz(){return typeof window<"u"&&window.matchMedia("(prefers-color-scheme: dark)").matches}function Ig(e,n=Nz()){if(typeof document>"u")return;e==="system"?delete document.documentElement.dataset.theme:document.documentElement.dataset.theme=e;const a=Sz(e,n);document.querySelector('meta[name="theme-color"]')?.setAttribute("content",Fz[a])}function _z(e,n){try{(n??localStorage).setItem(Pg,e)}catch{}Ig(e)}function Mz(){if(typeof window>"u")return()=>{};const e=window.matchMedia("(prefers-color-scheme: dark)"),n=()=>Ig(Ug(),e.matches);return e.addEventListener("change",n),n(),()=>e.removeEventListener("change",n)}const Vs=new Uint8Array(512),Cd=new Uint8Array(256);let Ns=1;for(let e=0;e<255;e++)Vs[e]=Ns,Cd[Ns]=e,Ns<<=1,Ns&256&&(Ns^=285);for(let e=255;e<512;e++)Vs[e]=Vs[e-255];function Hg(e,n){return e===0||n===0?0:Vs[Cd[e]+Cd[n]]}function Tz(e){let n=[1];for(let a=0;a<e;a++){const i=new Array(n.length+1).fill(0);for(let s=0;s<n.length;s++)i[s]^=n[s],i[s+1]^=Hg(n[s],Vs[a]);n=i}return n}function jz(e,n){const a=Tz(n),i=new Array(n).fill(0);for(const s of e){const c=s^i[0];if(i.shift(),i.push(0),c!==0)for(let x=0;x<n;x++)i[x]^=Hg(a[x+1],c)}return i}const bf={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 l8(e){return bf[e].groups.reduce((n,[a,i])=>n+a*i,0)}function s8(e){return e<=9?8:16}function _s(e,n,a){for(let i=a-1;i>=0;i--)e.push(n>>i&1)}function Rz(e){const n=Array.from(new TextEncoder().encode(e));let a=0;for(let C=1;C<=10;C++)if(4+s8(C)+8*n.length<=l8(C)*8){a=C;break}if(a===0)throw new Error(`data too long for a v1–10 QR (${n.length} bytes)`);const i=l8(a)*8,s=[];_s(s,4,4),_s(s,n.length,s8(a));for(const C of n)_s(s,C,8);for(let C=0,A=Math.min(4,i-s.length);C<A;C++)s.push(0);for(;s.length%8!==0;)s.push(0);const c=[236,17];for(let C=0;s.length<i;C++)_s(s,c[C%2],8);const x=[];for(let C=0;C<s.length;C+=8){let A=0;for(let B=0;B<8;B++)A=A<<1|s[C+B];x.push(A)}const{ec:u,groups:d}=bf[a],f=[];let E=0;for(const[C,A]of d)for(let B=0;B<C;B++){const k=x.slice(E,E+A);E+=A,f.push({data:k,ec:jz(k,u)})}const p=[],y=Math.max(...f.map(C=>C.data.length));for(let C=0;C<y;C++)for(const A of f)C<A.data.length&&p.push(A.data[C]);for(let C=0;C<u;C++)for(const A of f)p.push(A.ec[C]);const b=[];for(const C of p)_s(b,C,8);return{version:a,bits:b}}function Oz(e,n){const a=e*4+17,i=Array.from({length:a},()=>new Array(a).fill(!1)),s=Array.from({length:a},()=>new Array(a).fill(!1)),c=(p,y)=>{for(let b=-1;b<=7;b++)for(let C=-1;C<=7;C++){const A=p+b,B=y+C;if(A<0||A>=a||B<0||B>=a)continue;const k=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[A][B]=k||j,s[A][B]=!0}};c(0,0),c(0,a-7),c(a-7,0);for(let p=8;p<a-8;p++){const y=p%2===0;s[6][p]||(i[6][p]=y,s[6][p]=!0),s[p][6]||(i[p][6]=y,s[p][6]=!0)}const x=bf[e].align;for(let p=0;p<x.length;p++)for(let y=0;y<x.length;y++){if(p===0&&y===0||p===0&&y===x.length-1||p===x.length-1&&y===0)continue;const C=x[p],A=x[y];for(let B=-2;B<=2;B++)for(let k=-2;k<=2;k++)i[C+B][A+k]=Math.max(Math.abs(B),Math.abs(k))!==1,s[C+B][A+k]=!0}for(let p=0;p<=8;p++)p!==6&&(s[8][p]=!0,s[p][8]=!0);for(let p=0;p<8;p++)s[8][a-1-p]=!0,s[a-1-p][8]=!0;if(s[a-8][8]=!0,e>=7)for(let p=0;p<18;p++){const y=a-11+p%3,b=Math.floor(p/3);s[b][y]=!0,s[y][b]=!0}let u=0,d=!0;for(let p=a-1;p>0;p-=2){p===6&&p--;for(let y=0;y<a;y++){const b=d?a-1-y:y;for(let C=0;C<2;C++){const A=p-C;s[b][A]||(i[b][A]=u<n.length?n[u]===1:!1,u++)}}d=!d}e>=7&&Pz(i,e,a);let f=null,E=Number.POSITIVE_INFINITY;for(let p=0;p<8;p++){const y=i.map(C=>C.slice());for(let C=0;C<a;C++)for(let A=0;A<a;A++)!s[C][A]&&zz(p,C,A)&&(y[C][A]=!y[C][A]);Lz(y,p,a);const b=Uz(y);b<E&&(E=b,f=y)}return f}function zz(e,n,a){switch(e){case 0:return(n+a)%2===0;case 1:return n%2===0;case 2:return a%3===0;case 3:return(n+a)%3===0;case 4:return(Math.floor(n/2)+Math.floor(a/3))%2===0;case 5:return n*a%2+n*a%3===0;case 6:return(n*a%2+n*a%3)%2===0;default:return((n+a)%2+n*a%3)%2===0}}function Lz(e,n,a){const i=0|n;let s=i;for(let u=0;u<10;u++)s=s<<1^(s>>9&1?1335:0);const c=((i<<10|s&1023)^21522)&32767,x=u=>(c>>u&1)===1;for(let u=0;u<=5;u++)e[u][8]=x(u);e[7][8]=x(6),e[8][8]=x(7),e[8][7]=x(8);for(let u=9;u<15;u++)e[8][14-u]=x(u);for(let u=0;u<8;u++)e[8][a-1-u]=x(u);for(let u=8;u<15;u++)e[a-15+u][8]=x(u);e[a-8][8]=!0}function Pz(e,n,a){let i=n;for(let c=0;c<12;c++)i=i<<1^(i>>11&1?7973:0);const s=n<<12|i&4095;for(let c=0;c<18;c++){const x=(s>>c&1)===1,u=a-11+c%3,d=Math.floor(c/3);e[d][u]=x,e[u][d]=x}}function Uz(e){const n=e.length;let a=0;const i=d=>{let f=d(0),E=1;for(let p=1;p<n;p++)d(p)===f?E++:(E>=5&&(a+=E-2),f=d(p),E=1);E>=5&&(a+=E-2)};for(let d=0;d<n;d++)i(f=>e[d][f]);for(let d=0;d<n;d++)i(f=>e[f][d]);for(let d=0;d<n-1;d++)for(let f=0;f<n-1;f++){const E=e[d][f];E===e[d][f+1]&&E===e[d+1][f]&&E===e[d+1][f+1]&&(a+=3)}const s=[!0,!1,!0,!0,!0,!1,!0,!1,!1,!1,!1],c=[!1,!1,!1,!1,!0,!1,!0,!0,!0,!1,!0],x=(d,f,E)=>{for(let p=0;p<11;p++)if(d(f+p)!==E[p])return!1;return!0};for(let d=0;d<n;d++)for(let f=0;f<=n-11;f++)(x(E=>e[d][E],f,s)||x(E=>e[d][E],f,c))&&(a+=40);for(let d=0;d<n;d++)for(let f=0;f<=n-11;f++)(x(E=>e[E][d],f,s)||x(E=>e[E][d],f,c))&&(a+=40);let u=0;for(let d=0;d<n;d++)for(let f=0;f<n;f++)e[d][f]&&u++;return a+=Math.floor(Math.abs(u/(n*n)*100-50)/5)*10,a}function Iz(e){const{version:n,bits:a}=Rz(e);return Oz(n,a)}function Hz({text:e,size:n=220,className:a}){const i=Iz(e),s=i.length,c=4,x=s+c*2;let u="";for(let d=0;d<s;d++)for(let f=0;f<s;f++)i[d][f]&&(u+=`M${f+c} ${d+c}h1v1h-1z`);return h.jsxs("svg",{width:n,height:n,viewBox:`0 0 ${x} ${x}`,shapeRendering:"crispEdges",className:a,role:"img","aria-label":"QR code",children:[h.jsx("title",{children:"QR code"}),h.jsx("rect",{width:x,height:x,fill:"#fff"}),h.jsx("path",{d:u,fill:"#000"})]})}function qz({version:e,onLogs:n,onClose:a}){const i=Ae(y=>y.token),s=Ae(y=>y.setToken),[c,x]=D.useState(!1),[u,d]=D.useState(!1),f=i?`${location.origin}/#token=${i}`:location.origin,E=!!e&&e!=="1.96.2",p=async()=>{try{await navigator.clipboard.writeText(f),x(!0),setTimeout(()=>x(!1),1500)}catch{}};return Si.createPortal(h.jsxs(h.Fragment,{children:[h.jsx("div",{className:"fixed inset-0 z-50 bg-black/60",onClick:a,"aria-hidden":!0}),h.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:[h.jsxs("div",{className:"flex w-full shrink-0 items-center justify-between",children:[h.jsx("h2",{className:"text-base font-semibold",children:"Connect a device"}),h.jsxs("div",{className:"flex shrink-0 items-center gap-1",children:[h.jsx("button",{type:"button",onClick:()=>d(y=>!y),"aria-label":"Disconnect","aria-expanded":u,title:"Disconnect",className:ye("flex size-8 items-center justify-center rounded-full active:bg-surface-2",u?"bg-del/15 text-del":"text-del/80"),children:h.jsx(DA,{size:17})}),h.jsx("button",{type:"button",onClick:a,"aria-label":"Close",className:"flex size-8 items-center justify-center rounded-full text-muted active:bg-surface-2",children:h.jsx(kn,{size:18})})]})]}),u?h.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:[h.jsx("p",{className:"text-sm font-medium",children:"Disconnect this device?"}),h.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."}),h.jsxs("div",{className:"mt-2.5 flex gap-2",children:[h.jsx("button",{type:"button",onClick:()=>d(!1),className:"flex-1 rounded-lg border border-border bg-surface-2 px-3 py-2 text-sm active:bg-surface",children:"Cancel"}),h.jsx("button",{type:"button",onClick:()=>s(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,h.jsxs("div",{className:"flex w-full min-h-0 flex-1 flex-col items-center gap-4 overflow-y-auto overscroll-contain",children:[h.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."}),h.jsx("div",{className:"shrink-0 rounded-2xl bg-white p-3",children:h.jsx(Hz,{text:f,size:216})}),h.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:[c?h.jsx(xa,{size:16}):h.jsx(Od,{size:16}),c?"Copied":"Copy link"]}),h.jsx(Gz,{}),h.jsx(Vz,{}),h.jsx(Yz,{}),h.jsxs("div",{className:"flex w-full items-center justify-between text-xs text-faint",children:[h.jsxs("span",{className:"font-mono",children:[e?`relay v${e}`:"relay v?"," · ",h.jsxs("span",{className:E?"text-working":void 0,children:["app v","1.96.2"]}),E?" · update pending":""]}),h.jsx("button",{type:"button",onClick:n,className:"shrink-0 text-muted underline-offset-2 hover:underline",children:"Logs"})]})]})]})]}),document.body)}const $z=[["system","System"],["light","Light"],["dark","Dark"]];function Gz(){const[e,n]=D.useState(Ug),a=Ae(c=>c.view.showDiffs),i=Ae(c=>c.setView),s=c=>{n(c),_z(c)};return h.jsxs("div",{className:"w-full shrink-0 rounded-xl border border-border bg-surface-2 px-3 py-2.5",children:[h.jsxs("fieldset",{className:"flex w-full items-center justify-between gap-3 border-0 p-0",children:[h.jsx("legend",{className:"sr-only",children:"Theme"}),h.jsxs("div",{className:"flex min-w-0 items-center gap-2 text-sm",children:[h.jsx(SB,{size:16,className:"shrink-0 text-muted"}),h.jsx("span",{children:"Theme"})]}),h.jsx("div",{className:"flex shrink-0 rounded-lg border border-border bg-surface p-0.5",children:$z.map(([c,x])=>h.jsx("button",{type:"button","aria-pressed":e===c,onClick:()=>s(c),className:ye("rounded-md px-2 py-1 text-xs transition focus-visible:outline-2 focus-visible:outline-accent",e===c?"bg-accent-soft text-accent":"text-muted active:bg-surface-2"),children:x},c))})]}),h.jsxs("div",{className:"mt-2.5 flex items-center justify-between gap-3 border-t border-border pt-2.5",children:[h.jsxs("div",{className:"flex min-w-0 items-center gap-2 text-sm",children:[h.jsx(X8,{size:16,className:"shrink-0 text-muted"}),h.jsx("span",{children:"Sidebar diffs"})]}),h.jsx("button",{type:"button",role:"switch","aria-checked":a,"aria-label":"Show line changes in workspace rows",onClick:()=>i({showDiffs:!a}),className:ye("relative h-6 w-11 shrink-0 rounded-full transition-colors",a?"bg-accent":"border border-border bg-surface"),children:h.jsx("span",{className:ye("absolute left-0.5 top-0.5 size-5 rounded-full bg-white transition-transform",a?"translate-x-5":"translate-x-0")})})]}),h.jsx("p",{className:"mt-1 text-xs text-muted",children:"Show line additions and deletions in workspace rows."})]})}function Vz(){const e=QD(),n=e.permission==="denied",a=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 h.jsxs("div",{className:"w-full shrink-0 rounded-xl border border-border bg-surface-2 px-3 py-2.5",children:[h.jsxs("div",{className:"flex items-center justify-between gap-3",children:[h.jsxs("div",{className:"flex min-w-0 items-center gap-2 text-sm",children:[h.jsx(Y8,{size:16,className:ye("shrink-0",e.enabled?"text-accent":"text-muted")}),h.jsx("span",{children:"Notifications"})]}),h.jsx("button",{type:"button",role:"switch","aria-checked":e.enabled,"aria-label":"Notifications on this device",disabled:a||n||e.busy,onClick:()=>{e.enabled?e.disable():e.enable()},className:ye("relative h-6 w-11 shrink-0 rounded-full transition-colors",e.enabled?"bg-accent":"border border-border bg-surface",(a||n||e.busy)&&"opacity-40"),children:h.jsx("span",{className:ye("absolute left-0.5 top-0.5 size-5 rounded-full bg-white transition-transform",e.enabled?"translate-x-5":"translate-x-0")})})]}),h.jsx("p",{className:"mt-1 text-xs text-muted",children:i}),e.error?h.jsx("p",{className:"mt-1 text-xs text-del",children:e.error}):null,e.enabled?h.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 Qz=[{label:"1h",seconds:3600},{label:"4h",seconds:4*3600,className:"hidden min-[400px]:block"},{label:"8h",seconds:8*3600},{label:"16h",seconds:16*3600}];function Hu(e){if(!e)return"until you turn it off";const n=new Date(e),a=n.toDateString()===new Date().toDateString(),i=n.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"});return a?`until ${i}`:`until ${n.toLocaleDateString([],{weekday:"short"})} ${i}`}function Yz(){const[e,n]=D.useState(null),[a,i]=D.useState(!1),[s,c]=D.useState(null),[x,u]=D.useState(!1),[d,f]=D.useState("idle"),[E,p]=D.useState(null),y=D.useCallback(async()=>{try{n(await Oe.settings()),c(null)}catch(F){c(F instanceof Error?F.message:String(F))}},[]);D.useEffect(()=>{y()},[y]);const b=async F=>{i(!0),c(null);try{await F(),await y()}catch(_){c(_ instanceof Error?_.message:String(_))}finally{i(!1)}},C=async F=>{i(!0),c(null);try{const _=await Oe.restartConductor(F);p(_.ms??0),f("idle"),await y()}catch(_){_ instanceof gr&&_.status===409&&f("agents"),c(_ instanceof Error?_.message:String(_))}finally{i(!1)}},A=e?.nosleep,B=e?.screenLocked===!0,k=e?.wifi.known??[],j=e?.settings.fallbackSsids[0]??"";return h.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:[h.jsxs("div",{className:"flex items-center justify-between gap-3",children:[h.jsxs("div",{className:"flex min-w-0 items-center gap-2 text-sm",children:[h.jsx(l2,{size:16,className:ye("shrink-0",A?.armed?"text-accent":"text-muted")}),h.jsx("span",{children:"Keep the Mac awake"})]}),A?.armed?h.jsx("button",{type:"button",disabled:a,onClick:()=>{b(async()=>{const F=await Oe.disarmNoSleep();u(F.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"}):h.jsx("div",{className:"flex shrink-0 gap-1",children:Qz.map(F=>h.jsx("button",{type:"button",disabled:a||!A?.available,onClick:()=>{b(()=>(u(!1),Oe.armNoSleep(F.seconds)))},className:ye("rounded-lg border border-border px-2.5 py-1 text-xs active:bg-surface disabled:opacity-40",F.className),children:F.label},F.seconds))})]}),h.jsx("p",{className:"text-xs text-muted",children:e?A?.available?A.armed?A.preventsScreenLock?B?`Awake ${Hu(A.until)}, lid closed. It blocks the idle screen lock from starting; it can’t lift one already up.`:`Awake ${Hu(A.until)}, lid closed. The idle screen lock is off; anyone at the Mac can use it.`:`Awake ${Hu(A.until)}, lid closed. Sends park if macOS locks.`:x?"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…"}),B?h.jsxs("p",{className:"text-xs text-del",children:["The Mac is locked right now, so writes park until it’s unlocked. ",h.jsx(ua,{})]}):null,h.jsxs("div",{className:"border-t border-border pt-2.5",children:[h.jsxs("div",{className:"flex items-center justify-between gap-3",children:[h.jsxs("div",{className:"flex min-w-0 items-center gap-2 text-sm",children:[h.jsx(s2,{size:16,className:ye("shrink-0",e?.settings.autoRejoin?"text-accent":"text-muted")}),h.jsx("span",{children:"Fallback network"})]}),j?h.jsx("button",{type:"button",disabled:a,onClick:()=>{b(()=>Oe.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]}),j?h.jsxs("p",{className:"mt-1 text-xs text-muted",children:["Auto-joins ",h.jsx("span",{className:"text-fg",children:j})," when the primary network drops."]}):h.jsx(Kz,{known:k,hotspots:e?.wifi.likelyHotspots??[],busy:a,onPick:F=>{b(()=>Oe.patchSettings({fallbackSsids:[F],autoRejoin:!0}))}}),e?.wifi.autoJoinHotspot==="Never"?h.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]}),h.jsxs("div",{className:"border-t border-border pt-2.5",children:[h.jsxs("div",{className:"flex items-center justify-between gap-3",children:[h.jsxs("div",{className:"flex min-w-0 items-center gap-2 text-sm",children:[h.jsx(Lv,{size:16,className:"shrink-0 text-muted"}),h.jsx("span",{children:"Restart Conductor"})]}),d==="idle"?h.jsx("button",{type:"button",disabled:a,onClick:()=>{p(null),c(null),f("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]}),E!==null?h.jsxs("p",{className:"mt-1 text-xs text-muted",children:["Quit and reopened in ",(E/1e3).toFixed(1),"s. Send a prompt to check an agent answers."]}):null,d!=="idle"?h.jsxs("div",{className:"fade-in mt-2 rounded-xl border border-del/40 bg-del/10 px-3 py-2.5 text-left",children:[h.jsx("p",{className:"text-sm font-medium",children:d==="agents"?"Agents are still working":"Restart Conductor?"}),h.jsx("p",{className:"mt-1 text-xs text-muted",children:d==="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."}),h.jsxs("div",{className:"mt-2.5 flex gap-2",children:[h.jsx("button",{type:"button",onClick:()=>{f("idle"),c(null)},className:"flex-1 rounded-lg border border-border bg-surface-2 px-3 py-2 text-sm active:bg-surface",children:"Cancel"}),h.jsx("button",{type:"button",disabled:a,onClick:()=>{C(d==="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:a?"Restarting…":d==="agents"?"Stop agents and restart":"Restart"})]})]}):null]}),s?h.jsxs("p",{className:"text-xs text-del",children:[s," ",Bi(s)?h.jsx(ua,{}):null]}):null]})}function Kz({known:e,hotspots:n,busy:a,onPick:i}){const[s,c]=D.useState("");if(e.length===0)return h.jsx("p",{className:"mt-1 text-xs text-muted",children:"No saved Wi-Fi networks to offer."});const x=new Set(n),u=s.trim().toLowerCase(),d=e.filter(p=>!u||p.toLowerCase().includes(u)),f=d.find(p=>x.has(p)),E=(f?[f,...d.filter(p=>p!==f)]:d).slice(0,6);return h.jsxs(h.Fragment,{children:[h.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."}),h.jsx("input",{type:"search",value:s,disabled:a,onChange:p=>c(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"}),h.jsxs("div",{className:"mt-1.5 flex flex-col gap-1",children:[E.map(p=>h.jsxs("button",{type:"button",disabled:a,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:[h.jsx("span",{className:"truncate",children:p}),x.has(p)?h.jsx("span",{className:"shrink-0 text-faint",children:"likely hotspot"}):null]},p)),E.length===0?h.jsxs("p",{className:"text-xs text-faint",children:["Nothing matches “",s,"”."]}):null]}),!u&&e.length>E.length?h.jsxs("p",{className:"mt-1 text-xs text-faint",children:["Most recently joined. Search to reach the other ",e.length-E.length,"."]}):null]})}const Xz={info:"text-muted",warn:"text-working",error:"text-del"};function $a(e){return String(e).padStart(2,"0")}function Zz(e){if(e==null)return"·";const n=new Date(e);return`${$a(n.getHours())}:${$a(n.getMinutes())}:${$a(n.getSeconds())}`}function o8(e){if(e==null)return" ";const n=new Date(e);return`${n.getFullYear()}-${$a(n.getMonth()+1)}-${$a(n.getDate())} ${$a(n.getHours())}:${$a(n.getMinutes())}:${$a(n.getSeconds())}`}function Wz(e){return e<1024?`${e} B`:e<1024*1024?`${Math.round(e/1024)} KB`:`${(e/1024/1024).toFixed(1)} MB`}function c8(e){const n=Math.max(0,Math.round(e/1e3));if(n<90)return`${n}s ago`;const a=Math.round(n/60);if(a<60)return`${a}m ago`;const i=Math.round(a/60);return i<48?`${i}h ago`:`${Math.round(i/24)}d ago`}function Jz({onClose:e}){const[n,a]=D.useState(null),[i,s]=D.useState(!1),[c,x]=D.useState(null),{data:u,isLoading:d,isError:f,error:E}=ID(n,!0),p=D.useRef(null),y=D.useRef(!0),b=D.useMemo(()=>(u?.entries??[]).filter(B=>!i||B.level!=="info"),[u,i]);D.useEffect(()=>{const B=p.current;B&&y.current&&b.length&&(B.scrollTop=B.scrollHeight)},[b]);const C=async()=>{const B=`# conductor-remote ${n??"live"} log · app v1.96.2 · copied ${o8(Date.now())}`,k=b.map(j=>`${o8(j.t)} ${j.level==="info"?"":j.level.toUpperCase()} ${j.text}`);try{await navigator.clipboard.writeText([B,...k].join(`
|
|
50
|
+
`)),x("ok")}catch{x("failed")}setTimeout(()=>x(null),2e3)},A=[{key:null,label:"Live",hint:u?`since ${c8(u.now-u.startedAt)}`:void 0},...(u?.files??[]).map(B=>({key:B.name,label:B.name,hint:Wz(B.size)}))];return Si.createPortal(h.jsxs(h.Fragment,{children:[h.jsx("div",{className:"fixed inset-0 z-50 bg-black/60",onClick:e,"aria-hidden":!0}),h.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:[h.jsxs("div",{className:"flex items-center justify-between gap-2 border-b border-border-soft px-4 py-3",children:[h.jsxs("div",{className:"min-w-0",children:[h.jsx("h2",{className:"text-base font-semibold",children:"Relay logs"}),h.jsx("p",{className:"truncate text-xs text-muted",children:u?`${b.length} line${b.length===1?"":"s"} · relay started ${c8(u.now-u.startedAt)}`:"Loading…"})]}),h.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:h.jsx(kn,{size:18})})]}),h.jsx("div",{className:"flex gap-1.5 overflow-x-auto border-b border-border-soft px-3 py-2",children:A.map(B=>h.jsxs("button",{type:"button",onClick:()=>{y.current=!0,a(B.key)},className:ye("pill shrink-0 whitespace-nowrap",B.key===n&&"pill-active"),children:[B.label,B.hint?h.jsx("span",{className:"ml-1.5 text-[11px] text-faint",children:B.hint}):null]},B.key??"live"))}),n&&u&&!u.managed?h.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,h.jsx("div",{ref:p,onScroll:B=>{const k=B.currentTarget;y.current=k.scrollHeight-k.scrollTop-k.clientHeight<40},className:"min-h-0 flex-1 overflow-y-auto px-3 py-2 font-mono text-[11px] leading-relaxed",children:d&&!u?h.jsx(Lr,{label:"Reading logs…"}):f?h.jsx(xn,{children:E?.message}):b.length===0?h.jsx(xn,{children:i?"No warnings or errors logged.":"Nothing logged yet — the relay has been quiet."}):b.map((B,k)=>h.jsxs("div",{className:"flex gap-2 whitespace-pre-wrap break-words py-px",children:[h.jsx("span",{className:"shrink-0 text-faint",children:Zz(B.t)}),h.jsx("span",{className:ye("min-w-0 flex-1",Xz[B.level]),children:B.text})]},k))}),h.jsxs("div",{className:"flex items-center gap-2 border-t border-border-soft px-3 py-2.5",children:[h.jsx("button",{type:"button",onClick:()=>s(B=>!B),className:ye("pill shrink-0",i&&"pill-active"),children:"Problems only"}),h.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:[c==="ok"?h.jsx(xa,{size:16}):h.jsx(Od,{size:16}),c==="ok"?"Copied":c==="failed"?"Copy blocked — select by hand":"Copy"]})]})]})]}),document.body)}const qg="conductor-remote-send-immediately",eL=[];function tL(){try{return localStorage.getItem(qg)!=="off"}catch{return!0}}function nL(e){try{localStorage.setItem(qg,e?"on":"off")}catch{}}function rL(e){e&&Oe.discardStagedAttachment(e).catch(()=>{})}function aL({onClose:e}){const{data:n}=D2(),a=Hd(),i=w2(),s=Ae(oe=>oe.lastNewWorkspaceRepo),c=Ae(oe=>oe.setLastNewWorkspaceRepo),[x,u]=D.useState(s),d=Ae(oe=>oe.drafts[la]??""),f=Ae(oe=>oe.draftAttachments[la]??eL),E=D.useMemo(()=>f.filter(oe=>!!oe.stageId),[f]),p=Ae(oe=>oe.setDraft),y=Ae(oe=>oe.addDraftAttachment),b=Ae(oe=>oe.removeDraftAttachment),C=Ae(oe=>oe.clearDraftContent),A=Ae(oe=>oe.setFocusedDraft),B=oe=>p(la,oe),[k,j]=D.useState({}),[F,_]=D.useState(!1),[R,S]=D.useState(tL),[O,z]=D.useState(!1),[G,L]=D.useState(null),X=D.useRef(null),Q=D.useRef(new Set),ie=D.useRef(0),[Z,Y]=D.useState([]),[U,P]=D.useState(!1),re=Fi(),he=yr(),w=Ae(oe=>oe.online);D.useEffect(()=>()=>{Ae.getState().focusedDraft===la&&A(null),rd()},[A]);const M=n?.repos??[],V=M.find(oe=>oe.name===x);D.useEffect(()=>{M.length&&!M.some(oe=>oe.name===x)&&u(M[0].name)},[x,M]);const T=[...E.map(oe=>({...oe,id:oe.path,status:"ready"})),...Z],le=Z.some(oe=>oe.status==="uploading"),Ee=Z.some(oe=>oe.status==="error"),fe=!!d.trim()||E.length>0,Be=a.data?.groups.flatMap(oe=>oe.models)??[],Le=a.data?.defaultModel,ke=k.model??Le??null,qe=gf(null,ke),Ze=TO(ke,i.data?.defaultEfforts),Ot=k.effort??Ze,zt=Object.keys(k).length>0,ot=D.useCallback(oe=>j(te=>{const W={...te,...oe};return Object.fromEntries(Object.entries(W).filter(([,ve])=>ve!==void 0))}),[]);D.useEffect(()=>{!qe&&k.plan!==void 0&&ot({plan:void 0})},[qe,k.plan,ot]);const Ut=oe=>{const te=E.find(W=>W.path===oe);if(te){b(la,te.path);return}Q.current.add(oe),Y(W=>W.filter(ve=>ve.id!==oe))},Wt=async oe=>{if(w)for(const te of Array.from(oe)){const W=crypto.randomUUID();Y(ve=>[...ve,{id:W,name:te.name||"attachment",status:"uploading"}]);try{const ve=await Oe.stageAttachment(te);if(Q.current.delete(W)){rL(ve.attachment.stageId);continue}y(la,ve.attachment),Y(Ue=>Ue.filter(Te=>Te.id!==W))}catch(ve){if(Q.current.delete(W))continue;Y(Ue=>Ue.map(Te=>Te.id===W?{...Te,status:"error",error:ve instanceof Error?ve.message:"Upload failed"}:Te))}}},Ht=oe=>{oe?.length&&Wt(oe)},Gt=oe=>Array.from(oe.dataTransfer.types).includes("Files"),wt=oe=>{Gt(oe)&&(oe.preventDefault(),ie.current+=1,P(!0))},dn=oe=>{Gt(oe)&&(ie.current-=1,ie.current<=0&&(ie.current=0,P(!1)))},St=oe=>{Gt(oe)&&(oe.preventDefault(),oe.dataTransfer.dropEffect="copy")},de=oe=>{Gt(oe)&&(oe.preventDefault(),ie.current=0,P(!1),Ht(oe.dataTransfer.files))},ht=D.useCallback(()=>{for(const oe of Z)Q.current.add(oe.id);e()},[Z,e]),Je=async()=>{const oe=d.trim();if(!(!x||O||le||Ee||!w)){z(!0),L(null);try{const te=await Oe.createWorkspace(x,oe,R,E.flatMap(W=>W.stageId?[W.stageId]:[]),k);if(!te.ok||!te.workspaceId){L(te.error??"could not create the workspace");return}await he.invalidateQueries({queryKey:["state"]}),C(la),e(),re(`/w/${te.workspaceId}`)}catch(te){L(te instanceof Error?te.message:"could not create the workspace")}finally{z(!1)}}};return D.useEffect(()=>{const oe=te=>{te.key==="Escape"&&(F?_(!1):ht())};return window.addEventListener("keydown",oe),()=>window.removeEventListener("keydown",oe)},[ht,F]),Si.createPortal(h.jsxs("div",{className:"fixed inset-0 z-50 flex flex-col bg-bg",children:[h.jsxs("header",{className:"pt-safe flex items-center gap-2 border-b border-border-soft px-3 pb-2.5",children:[h.jsx("span",{className:"flex-1 text-[15px] font-semibold",children:"New workspace"}),h.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:h.jsx(kn,{size:20})})]}),h.jsxs("div",{className:"flex min-h-0 flex-1 flex-col gap-3 overflow-y-auto p-3",children:[h.jsxs("div",{className:"relative",children:[h.jsxs("button",{type:"button",onClick:()=>_(oe=>!oe),"aria-haspopup":"menu","aria-expanded":F,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:[V?h.jsx(qs,{icon:V.icon,name:V.name,artwork:"inset"}):null,h.jsx("span",{className:"min-w-0 flex-1 truncate text-[15px] font-medium",children:V?.name??"Choose a repo"}),h.jsx(da,{size:18,className:ye("shrink-0 text-muted transition",F&&"rotate-180")})]}),F?h.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:M.map(oe=>h.jsx("li",{children:h.jsxs("button",{type:"button",onClick:()=>{u(oe.name),c(oe.name),_(!1)},className:"flex w-full items-center gap-3 px-3 py-2 text-left active:bg-surface-2",children:[h.jsx(qs,{icon:oe.icon,name:oe.name,artwork:"inset"}),h.jsx("span",{className:"min-w-0 flex-1 truncate text-[15px]",children:oe.name}),oe.name===x?h.jsx(xa,{size:16,className:"shrink-0 text-accent"}):null]})},oe.name))}):null]}),h.jsxs("fieldset",{"aria-label":"First message",onDragEnter:wt,onDragLeave:dn,onDragOver:St,onDrop:de,className:ye("relative m-0 min-w-0 rounded-2xl border border-border bg-surface p-2 has-[textarea:focus]:border-accent/60",U&&"border-accent bg-accent-soft"),children:[h.jsx("input",{ref:X,type:"file",multiple:!0,className:"hidden",onChange:oe=>{Ht(oe.target.files),oe.target.value=""}}),T.length?h.jsx("div",{className:"flex flex-wrap gap-1 px-2 pb-1",children:T.map(oe=>h.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"?h.jsx(ar,{size:12,className:"shrink-0 animate-spin"}):null,h.jsx("span",{className:"truncate",children:oe.status==="error"?`${oe.name}: ${oe.error}`:oe.name}),h.jsx("button",{type:"button",onClick:()=>Ut(oe.id),"aria-label":`Remove ${oe.name}`,className:"flex size-5 shrink-0 items-center justify-center rounded active:bg-surface",children:h.jsx(kn,{size:13})})]},oe.id))}):null,h.jsx("textarea",{value:d,onChange:oe=>B(oe.target.value),onFocus:()=>A(la),onBlur:()=>{Ae.getState().focusedDraft===la&&A(null),rd()},placeholder:"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 te=oe.clipboardData.files;te.length&&(oe.preventDefault(),Ht(te))},onKeyDown:oe=>{Rg(oe)&&(oe.preventDefault(),Je())}}),h.jsxs("div",{className:"mt-1 flex items-start gap-1 px-1",children:[h.jsx(zg,{model:ke??"Model",providerModel:ke,agentType:null,models:Be,modelsFetching:a.isFetching,modelsError:a.isError,defaultModel:Le,fast:k.fast,effort:Ot,plan:k.plan,showEmptyEffort:!0,modelStaged:k.model!==void 0,fastStaged:k.fast!==void 0,effortStaged:k.effort!==void 0,planStaged:k.plan!==void 0,onModelChange:oe=>ot({model:oe===(k.model??Le)?void 0:oe}),onFastChange:()=>ot({fast:k.fast===void 0?!0:k.fast?!1:void 0}),onEffortChange:()=>ot({effort:jO(Ot,Ze)}),onPlanChange:()=>ot({plan:k.plan===void 0?!0:k.plan?!1:void 0}),status:zt?"Applies when the workspace opens":void 0}),h.jsx("button",{type:"button",onClick:()=>X.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:h.jsx(ec,{size:17})})]}),U?h.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]}),h.jsxs("label",{className:ye("flex items-start gap-3 rounded-2xl border border-border bg-surface px-3 py-2.5 transition active:bg-surface-2",!fe&&"opacity-40"),children:[h.jsx("input",{type:"checkbox",checked:R,disabled:!fe,onChange:oe=>{S(oe.target.checked),nL(oe.target.checked)},className:"sr-only"}),h.jsx("span",{className:ye("mt-0.5 flex size-[18px] shrink-0 items-center justify-center rounded-md border transition",R?"border-accent bg-accent text-bg":"border-border"),children:R?h.jsx(xa,{size:13,strokeWidth:3}):null}),h.jsxs("span",{className:"min-w-0 flex-1",children:[h.jsx("span",{className:"block text-[15px] font-medium",children:"Send immediately"}),h.jsx("span",{className:"block text-xs text-muted",children:R?"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."})]})]}),G?h.jsx("div",{className:"text-xs text-del",children:G}):null]}),h.jsx("div",{className:"pb-safe border-t border-border-soft p-3",children:h.jsx("button",{type:"button",onClick:Je,disabled:!x||O||le||Ee||!w,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:O?"Creating…":fe?"Create & start":"Create empty workspace"})})]}),document.body)}function iL(e){return e.replaceAll("_"," ").replace(/\b\w/g,n=>n.toUpperCase())}function lL(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]??iL(e)}function sL(e,n=Date.now()){if(e===null)return"Reset time unavailable";const a=e-n;return a>0&&a<3600*1e3?`Resets in ${Math.max(1,Math.round(a/6e4))}m`:a>0&&a<1440*60*1e3?`Resets in ${Math.max(1,Math.round(a/36e5))}h`:`Resets ${new Date(e).toLocaleString([],{weekday:"short",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"})}`}function oL({window:e}){const n=Math.round(e.usedPercent);return h.jsxs("div",{children:[h.jsxs("div",{className:"mb-1 flex items-baseline gap-2 text-xs",children:[h.jsxs("span",{className:"min-w-0 flex-1 truncate text-muted",children:[e.active?h.jsx("span",{className:"mr-1.5 inline-block size-1.5 rounded-full bg-working"}):null,e.label]}),h.jsxs("span",{className:"font-medium tabular-nums text-text",children:[n,"%"]})]}),h.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:h.jsx("div",{className:ye("h-full rounded-full transition-[width]",n>=95?"bg-del":n>=80?"bg-working":"bg-accent"),style:{width:`${e.usedPercent}%`}})}),h.jsx("div",{className:"mt-1 text-[11px] text-faint",children:sL(e.resetsAt)})]})}const cL=[{provider:"claude",label:"Claude Code"},{provider:"codex",label:"Codex"},{provider:"cursor",label:"Cursor Agent"},{provider:"opencode",label:"OpenCode"}];function $g(e){return e==="claude"||e==="codex"?e:null}function xL({usage:e,defaultEffort:n,defaultsLoading:a=!1,savingDefault:i=!1,onDefaultEffortChange:s}){const c=$g(e.provider),x=n&&!vi.includes(n)?n:null,u=e.buckets.filter(d=>d.label!=="GPT-5.3-Codex-Spark"||d.windows.some(f=>f.usedPercent!==0));return h.jsxs("section",{className:"rounded-2xl border border-border bg-surface-2 p-3.5",children:[h.jsxs("div",{className:ye("flex items-center gap-2",(c||u.length)&&"mb-3"),children:[h.jsx(yf,{agentType:e.provider,model:null,className:"size-5"}),h.jsx("h3",{className:"min-w-0 flex-1 truncate text-sm font-semibold",children:e.label}),e.plan?h.jsx("span",{className:"pill shrink-0 text-[11px]",children:lL(e.plan)}):null]}),c?h.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:[h.jsxs("span",{className:"min-w-0",children:[h.jsx("span",{className:"block text-xs font-medium",children:"Default effort"}),h.jsx("span",{className:"block text-[11px] text-faint",children:"New chats"})]}),h.jsxs("span",{className:"relative shrink-0",children:[h.jsxs("select",{"aria-label":`${e.label} default effort`,value:n??"",disabled:a||i||!s,onChange:d=>s?.(d.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:[h.jsx("option",{value:"",disabled:!0,children:a?"Reading…":"Choose effort"}),x?h.jsx("option",{value:x,children:x}):null,vi.map(d=>h.jsx("option",{value:d,children:K0[d]},d))]}),h.jsx("span",{className:"pointer-events-none absolute inset-y-0 right-2 flex items-center text-faint",children:i?h.jsx(Zs,{size:12,className:"animate-spin"}):h.jsx(da,{size:12})})]})]}):null,u.length?h.jsx("div",{className:"space-y-4",children:u.map(d=>h.jsxs("div",{className:"space-y-3",children:[u.length>1||d.label!==e.label?h.jsx("div",{className:"text-xs font-medium text-muted",children:d.label}):null,d.windows.map(f=>h.jsx(oL,{window:f},f.id))]},d.id))}):e.status==="error"&&c?h.jsx("p",{className:"text-xs text-del",children:e.message??"Could not read plan usage."}):null]})}function uL(e){return new Date(e).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})}function dL({onClose:e}){const n=HD(!0),a=w2(),i=yr(),[s,c]=D.useState(!1),[x,u]=D.useState(),[d,f]=D.useState(),[E,p]=D.useState(),y=cL.map(A=>n.data?.providers.find(B=>B.provider===A.provider)??{...A,status:"unavailable",plan:null,buckets:[]}),b=async()=>{if(!s){c(!0),u(void 0);try{const A=await Oe.planUsage(!0);i.setQueryData(["plan-usage"],A)}catch(A){u(A instanceof Error?A.message:"Could not refresh plan usage.")}finally{c(!1)}}},C=async(A,B)=>{if(d)return;f(A),p(void 0);const k=a.data;k&&i.setQueryData(["model-defaults"],{defaultEfforts:{...k.defaultEfforts,[A]:B}});try{const j=await Oe.patchModelDefaults({[A]:B});i.setQueryData(["model-defaults"],j)}catch(j){k&&i.setQueryData(["model-defaults"],k),p(j instanceof Error?j.message:"Could not save the default effort.")}finally{f(void 0)}};return Si.createPortal(h.jsxs(h.Fragment,{children:[h.jsx("div",{className:"fixed inset-0 z-50 bg-black/60",onClick:e,"aria-hidden":!0}),h.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:[h.jsxs("div",{className:"flex shrink-0 items-center gap-2 border-b border-border-soft px-4 py-3",children:[h.jsxs("div",{className:"min-w-0 flex-1",children:[h.jsx("h2",{className:"text-base font-semibold",children:"Models"}),h.jsx("p",{className:"truncate text-xs text-muted",children:"Defaults and plan usage"})]}),h.jsx("button",{type:"button",onClick:()=>{b()},disabled:s||!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:h.jsx(Zs,{size:17,className:s?"animate-spin":void 0})}),h.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:h.jsx(kn,{size:18})})]}),h.jsxs("div",{className:"min-h-0 flex-1 space-y-3 overflow-y-auto overscroll-contain p-4",children:[y.map(A=>{const B=$g(A.provider);return h.jsx(xL,{usage:A,defaultEffort:B?a.data?.defaultEfforts[B]:void 0,defaultsLoading:a.isLoading||d!==void 0,savingDefault:d===B,onDefaultEffortChange:B?k=>{C(B,k)}:void 0},A.provider)}),n.isLoading&&!n.data?h.jsx("p",{className:"text-center text-xs text-faint",children:"Reading plan usage…"}):n.isError&&!n.data?h.jsx(xn,{children:n.error?.message??"Could not read plan usage."}):null,x?h.jsx("p",{className:"text-xs text-del",children:x}):null,E?h.jsx("p",{className:"text-xs text-del",children:E}):null,a.isError?h.jsx("p",{className:"text-xs text-del",children:a.error?.message??"Could not read model defaults."}):null]}),n.data?h.jsxs("div",{className:"shrink-0 border-t border-border-soft px-4 py-2.5 text-[11px] text-faint",children:["Updated ",uL(n.data.fetchedAt)," · cached for one minute"]}):null]})]}),document.body)}function yl(e){return e.length?e.length===1?e[0]:`${e.length} repos`:"All repos"}function Gg({repos:e,selected:n,onChange:a}){const i=s=>a(n.includes(s)?n.filter(c=>c!==s):[...n,s]);return h.jsxs(h.Fragment,{children:[h.jsx(x8,{checked:n.length===0,label:"All repos",onChange:()=>a([])}),e.map(s=>h.jsx(x8,{checked:n.includes(s.name),label:s.name,icon:h.jsx(qs,{icon:s.icon,name:s.name,artwork:"inset"}),onChange:()=>i(s.name)},s.name))]})}function x8({checked:e,label:n,icon:a,onChange:i}){return h.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:[h.jsx("input",{type:"checkbox",checked:e,onChange:i,className:"peer sr-only"}),a??h.jsx("span",{className:"size-8 shrink-0"}),h.jsx("span",{className:"min-w-0 flex-1 truncate",children:n}),h.jsx("span",{className:ye("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?h.jsx(xa,{size:12,strokeWidth:3}):null})]})}function fL({query:e,repos:n,includeArchived:a,live:i,selectedId:s,onOpen:c}){const x=jD(e.trim(),250),{data:u,isError:d,error:f,isFetching:E}=RD(x,n,a),p=D.useMemo(()=>Dk(e),[e]),y=D.useMemo(()=>{const C=new Map;if(p.length)for(const A of i){if(n.length&&!(A.repo_name&&n.includes(A.repo_name)))continue;const B=[zr(A),A.branch,A.repo_name,A.directory_name,A.session_title].filter(Boolean).join(" ").toLowerCase();p.every(k=>B.includes(k))&&C.set(A.id,{workspace:A,archived:!1,sessionId:null,snippets:[],hits:0})}for(const A of u?.results??[]){if(!a&&A.workspace.archived)continue;const B=C.get(A.workspace.id);if(B){B.sessionId=A.sessionId,B.snippets=A.snippets,B.hits=A.hits;continue}C.set(A.workspace.id,{workspace:A.workspace,archived:A.workspace.archived,sessionId:A.sessionId,snippets:A.snippets,hits:A.hits})}return[...C.values()]},[i,u,p,n,a]),b=u?.index;return h.jsxs(h.Fragment,{children:[b&&!b.ready?h.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?h.jsxs("p",{className:"px-1 pb-2 text-xs text-del",children:["Chat index unavailable (",b.error,") — searching names only."]}):null,d?h.jsxs("p",{className:"px-1 pb-2 text-xs text-del",children:["Chat search unavailable (",f?.message,") — showing name matches only."]}):null,y.length===0?E||x!==e.trim()?h.jsx(Lr,{}):d?null:h.jsxs(xn,{children:["Nothing matches “",e.trim(),"”",n.length?` in ${yl(n)}`:"","."]}):h.jsx("ul",{className:"flex flex-col gap-2 pb-2",children:y.map(C=>h.jsx("li",{className:"fade-in",children:h.jsx(pL,{row:C,tokens:p,selected:C.workspace.id===s,onOpen:c})},C.workspace.id))})]})}const hL="card w-full flex-col items-stretch gap-0";function pL({row:e,tokens:n,selected:a,onOpen:i}){const s=e.workspace,c=s.directory_name?.toLowerCase(),x=`${zr(s)} ${s.branch??""} ${s.repo_name??""}`.toLowerCase(),u=!!c&&n.some(f=>c.includes(f)&&!x.includes(f)),d=h.jsxs(h.Fragment,{children:[h.jsxs("div",{className:"flex items-start gap-3",children:[h.jsx(qs,{icon:s.icon,name:s.repo_name||zr(s),artwork:"inset"}),h.jsxs("div",{className:"min-w-0 flex-1 overflow-hidden",children:[h.jsxs("div",{className:"flex items-center gap-2",children:[h.jsx("span",{className:"min-w-0 flex-1 truncate font-medium text-text",children:zr(s)}),e.archived?h.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]}),h.jsxs("div",{className:"mt-1 flex min-w-0 items-center gap-2 text-xs text-muted",children:[s.repo_name?h.jsx("span",{className:"shrink-0 font-mono text-faint",children:s.repo_name}):null,s.branch?h.jsx(r9,{className:"min-w-0 flex-1 truncate",children:s.branch}):null,u?h.jsxs(r9,{className:"shrink-0 text-faint",children:["dir ",s.directory_name]}):null,h.jsx("span",{className:"ml-auto shrink-0 pl-2 text-[11px] text-faint",children:eE(s.updated_at)})]})]})]}),e.snippets.length?h.jsxs("div",{className:"mt-2 flex flex-col gap-1.5 border-l-2 border-border-soft pl-2.5",children:[e.snippets.map(f=>h.jsx(EL,{snippet:f},`${f.sessionId}:${f.at}:${f.text.slice(0,24)}`)),e.hits>e.snippets.length?h.jsxs("span",{className:"text-[11px] text-faint",children:["+",e.hits-e.snippets.length," more messages"]}):null]}):null]});return h.jsx("button",{type:"button",className:ye(hL,a&&"border-accent/50 bg-surface-2"),onClick:()=>i(s.id,e.sessionId),children:d})}const mL={user:"you",assistant:"agent",thinking:"thought"};function EL({snippet:e}){return h.jsxs("p",{className:"line-clamp-2 text-left text-xs leading-snug text-muted",children:[h.jsx("span",{className:`mr-1.5 text-[10px] uppercase tracking-wide ${e.role==="thinking"?"text-faint italic":"text-faint"}`,children:mL[e.role]}),ZF(e.text).map((n,a)=>n.hit?h.jsx("mark",{className:"rounded bg-accent/25 px-0.5 text-text",children:n.text},a):h.jsx("span",{children:n.text},a))]})}function gL({live:e,selectedId:n,onOpen:a,onClose:i}){const[s,c]=D.useState(""),[x,u]=D.useState([]),[d,f]=D.useState(!0),[E,p]=D.useState(!1),y=D.useRef(null),C=(D2().data?.repos??[]).map(B=>({name:B.name,icon:B.icon}));for(const B of e)B.repo_name&&!C.some(k=>k.name===B.repo_name)&&C.push({name:B.repo_name,icon:B.icon});D.useEffect(()=>y.current?.focus(),[]),D.useEffect(()=>{const B=k=>{k.key==="Escape"&&(E?p(!1):i())};return window.addEventListener("keydown",B),()=>window.removeEventListener("keydown",B)},[i,E]);const A=x.length>0;return Si.createPortal(h.jsxs(h.Fragment,{children:[h.jsx("div",{className:"fixed inset-0 z-50 bg-black/50",onClick:i,"aria-hidden":!0}),h.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:[h.jsxs("div",{className:"relative flex items-center gap-2 border-b border-border-soft px-3 py-2.5",children:[h.jsxs("div",{className:"relative min-w-0 flex-1",children:[h.jsx(a2,{size:15,className:"pointer-events-none absolute left-3 top-1/2 -translate-y-1/2 text-faint"}),h.jsx("input",{ref:y,type:"text",inputMode:"search",enterKeyHint:"search",autoCapitalize:"none",autoCorrect:"off",spellCheck:!1,value:s,onChange:B=>c(B.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"}),s?h.jsx("button",{type:"button",onClick:()=>{c(""),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:h.jsx(kn,{size:15})}):null]}),h.jsx("button",{type:"button",onClick:()=>f(B=>!B),"aria-label":"Include archived workspaces","aria-pressed":d,title:d?"Search archived workspaces":"Archived workspaces excluded",className:ye("flex size-9 shrink-0 items-center justify-center rounded-full active:bg-surface-2",d?"border border-accent/50 bg-accent/10 text-text":"text-muted"),children:d?h.jsx(Rd,{size:18}):h.jsx($7,{size:18})}),h.jsxs("button",{type:"button",onClick:()=>p(B=>!B),"aria-label":A?`Repo filter: ${yl(x)}`:"Filter by repo","aria-haspopup":"menu","aria-expanded":E,className:ye("flex h-9 shrink-0 items-center justify-center gap-1 rounded-full text-sm active:bg-surface-2",A?"max-w-36 border border-accent/50 bg-accent/10 px-2.5 text-text":"size-9 text-muted"),children:[h.jsx(CC,{size:A?14:18,className:"shrink-0"}),A?h.jsxs(h.Fragment,{children:[h.jsx("span",{className:"min-w-0 truncate",children:yl(x)}),h.jsx(da,{size:14,className:ye("shrink-0 text-faint transition-transform",E&&"rotate-180")})]}):null]}),h.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:h.jsx(kn,{size:20})}),E?h.jsxs(h.Fragment,{children:[h.jsx("div",{className:"fixed inset-0 z-10",onClick:()=>p(!1),"aria-hidden":!0}),h.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:h.jsx(Gg,{repos:C,selected:x,onChange:u})})]}):null]}),h.jsx("div",{className:"pb-safe min-h-0 flex-1 overflow-y-auto overflow-x-hidden px-3 py-3",children:s.trim()?h.jsx(fL,{query:s,repos:x,includeArchived:d,live:e,selectedId:n,onOpen:a}):h.jsxs(xn,{children:[A?`Workspaces and chats in ${yl(x)}`:"Every workspace on this Mac",d?", 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 yL(e,n){return[...e].sort((a,i)=>{const s=+!!i.pinned_at-+!!a.pinned_at;if(s)return s;if(n==="name")return zr(a).localeCompare(zr(i));const c=n==="created"?a.created_at:a.updated_at,x=n==="created"?i.created_at:i.updated_at,u=qn(x)-qn(c);return Number.isFinite(u)?u:x.localeCompare(c)})}function bL(e,n){return n==="status"?Vd(e):n==="recent"?iw(e.updated_at):e.repo_name??""}function CL(e,n){if(n==="none")return[{key:"all",label:"",items:e}];const a=new Map;for(const i of e){const s=bL(i,n),c=a.get(s);c?c.push(i):a.set(s,[i])}return n==="status"?[...e9,...[...a.keys()].filter(s=>!e9.includes(s))].filter(s=>a.has(s)).map(s=>({key:`status:${s}`,label:ld(s),status:s,items:a.get(s)??[]})):n==="recent"?rw.filter(i=>a.has(i)).map(i=>({key:`recent:${i}`,label:aw(i),items:a.get(i)??[]})):[...a.keys()].sort((i,s)=>i.localeCompare(s)).map(i=>({key:`repo:${i}`,label:i||"No repo",items:a.get(i)??[]}))}function AL({selectedId:e}){const n=Fi(),a=Ae(M=>M.setSidebarOpen),i=Ae(M=>M.view),s=Ae(M=>M.readMarks),c=Ae(M=>M.pending),x=Ae(M=>M.workingHints),u=Ae(M=>M.toggleGroup),[d,f]=D.useState(!1),[E,p]=D.useState(!1),[y,b]=D.useState(!1),[C,A]=D.useState(!1),[B,k]=D.useState(!1),[j,F]=D.useState(!1),{data:_,isLoading:R,isError:S,error:O}=k2(),z=_?.workspaces??[],G=Hd().data?.groups;D.useEffect(()=>{const M=V=>{(V.metaKey||V.ctrlKey)&&!V.shiftKey&&!V.altKey&&V.key.toLowerCase()==="k"&&(V.preventDefault(),F(T=>!T))};return window.addEventListener("keydown",M),()=>window.removeEventListener("keydown",M)},[]);const L=new Map(z.map(M=>[M.repo_name,M.icon])),X=[...new Set([...z.map(M=>M.repo_name).filter(M=>!!M),...i.repos])].sort().map(M=>({name:M,icon:L.get(M)??null})),Q=i.repos.length?z.filter(M=>!!M.repo_name&&i.repos.includes(M.repo_name)):z,ie=Q.filter(M=>M.id===e||!(i.hideMerged&&ew(M)||i.hideDone&&tw(M))),Z=Q.length-ie.length,Y=CL(yL(ie,i.sortBy),i.groupBy),U=(M,V=null)=>{n(V?`/w/${M}?session=${encodeURIComponent(V)}`:`/w/${M}`),a(!1)},P=i.repos.length>0||i.hideMerged||i.hideDone,re=i.repos.length>0||Z>0,he=yl(i.repos),w=z.length?re?[`${ie.length} of ${z.length}`,i.repos.length?he:null,Z?`${Z} hidden`:null].filter(Boolean).join(" · "):`${z.length} active`:void 0;return h.jsxs("div",{className:"flex h-full min-w-0 flex-col overflow-hidden",children:[h.jsxs("div",{className:"relative",children:[h.jsx(q0,{title:"Workspaces",subtitle:w,right:h.jsxs(h.Fragment,{children:[h.jsx("button",{type:"button",onClick:()=>F(!0),"aria-label":"Search workspaces and chats",title:"Search (⌘K)",className:"flex size-9 shrink-0 items-center justify-center rounded-full text-muted active:bg-surface-2",children:h.jsx(a2,{size:18})}),h.jsx("button",{type:"button",onClick:()=>k(!0),"aria-label":"Models",title:"Models",className:"flex size-9 shrink-0 items-center justify-center rounded-full text-muted active:bg-surface-2",children:h.jsx(kC,{size:18})}),h.jsxs("button",{type:"button",onClick:()=>f(M=>!M),"aria-label":"View options",className:"relative flex size-9 shrink-0 items-center justify-center rounded-full text-muted active:bg-surface-2",children:[h.jsx(cB,{size:18}),P?h.jsx("span",{className:"absolute right-1.5 top-1.5 size-1.5 rounded-full bg-accent"}):null]}),h.jsx("button",{type:"button",onClick:()=>p(!0),"aria-label":"Connect a device",className:"flex size-9 shrink-0 items-center justify-center rounded-full text-muted active:bg-surface-2",children:h.jsx(r2,{size:18})}),h.jsx("button",{type:"button",onClick:()=>b(!0),"aria-label":"New workspace",className:"-mr-1 flex size-9 shrink-0 items-center justify-center rounded-full text-text active:bg-surface-2",children:h.jsx(n2,{size:20})})]})}),d?h.jsx(BL,{repos:X,view:i,onClose:()=>f(!1)}):null]}),h.jsx("nav",{className:"pb-safe min-w-0 flex-1 overflow-y-auto overflow-x-hidden px-3 py-3",children:R&&!_?h.jsx(Lr,{label:"Loading workspaces…"}):S?h.jsx(Aw,{error:O}):z.length===0?h.jsx(xn,{children:"No active workspaces. Start one in Conductor and it’ll appear here."}):ie.length===0?h.jsxs(xn,{children:[i.repos.length?`No workspaces in ${he}`:"No workspaces",Z?` — ${Z} ${Z===1?"one is":"ones are"} hidden.`:"."]}):Y.map(M=>{const V=!!M.label&&i.collapsed.includes(M.key);return h.jsxs("section",{children:[M.label?h.jsxs("button",{type:"button",onClick:()=>u(M.key),className:"flex w-full items-center gap-2 px-1 py-2 text-sm font-semibold",children:[h.jsx(vL,{status:M.status}),h.jsx("span",{className:"truncate",children:M.label}),V?h.jsx("span",{className:"font-normal text-muted text-xs",children:M.items.length}):null,h.jsx(da,{size:14,className:ye("ml-auto shrink-0 text-faint transition-transform",V&&"-rotate-90")})]}):null,V?null:h.jsx("ul",{className:"flex flex-col gap-2 pb-2",children:M.items.map(T=>{const le=nD(T,s),Ee=T.active_session_id?x[T.active_session_id]:void 0,fe=f2(c.filter(Be=>Be.workspaceId===T.id),[...T.pending_prompt?[T.pending_prompt]:[],...T.parked_prompts??[]],Ee!==void 0&&Date.now()-Ee<ad);return h.jsx("li",{className:"fade-in",children:h.jsx("button",{type:"button",className:ye("card w-full px-3 py-2.5",T.id===e?"border-accent/50 bg-surface-2":le&&"border-l-accent"),onClick:()=>U(T.id),children:h.jsx(FL,{w:T,unread:le,selected:T.id===e,modelGroups:G,promptState:fe,showDiffs:i.showDiffs})})},T.id)})})]},M.key)})}),E?h.jsx(qz,{version:_?.version,onLogs:()=>{p(!1),A(!0)},onClose:()=>p(!1)}):null,y?h.jsx(aL,{onClose:()=>b(!1)}):null,j?h.jsx(gL,{live:z,selectedId:e,onOpen:(M,V)=>{F(!1),U(M,V)},onClose:()=>F(!1)}):null,C?h.jsx(Jz,{onClose:()=>A(!1)}):null,B?h.jsx(dL,{onClose:()=>k(!1)}):null]})}function vL({status:e}){if(!e)return null;const n=Qd[e];return n?h.jsx("span",{className:"dot size-2",style:{background:n}}):h.jsx("span",{className:"dot size-2 border border-faint bg-transparent"})}function BL({repos:e,view:n,onClose:a}){const i=Ae(s=>s.setView);return h.jsxs(h.Fragment,{children:[h.jsx("div",{className:"fixed inset-0 z-20",onClick:a,"aria-hidden":!0}),h.jsxs("div",{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:[h.jsx(Ts,{id:"view-group",label:"Group by",children:h.jsx(d8,{id:"view-group",value:n.groupBy,onChange:s=>i({groupBy:s}),options:[["status","Status"],["recent","Recent"],["repo","Repo"],["none","None"]]})}),h.jsx(kL,{repos:e,selected:n.repos,onChange:s=>i({repos:s})}),h.jsx(Ts,{id:"view-sort",label:"Sort by",children:h.jsx(d8,{id:"view-sort",value:n.sortBy,onChange:s=>i({sortBy:s}),options:[["updated","Updated"],["created","Created"],["name","Name"]]})}),h.jsx(Ts,{id:"view-hide-merged",label:"Hide merged",children:h.jsx(u8,{id:"view-hide-merged",checked:n.hideMerged,label:"Hide workspaces whose PR has merged",onChange:s=>i({hideMerged:s})})}),h.jsx(Ts,{id:"view-hide-done",label:"Hide done",children:h.jsx(u8,{id:"view-hide-done",checked:n.hideDone,label:"Hide workspaces marked Done",onChange:s=>i({hideDone:s})})})]})]})}function kL({repos:e,selected:n,onChange:a}){const[i,s]=D.useState(!1);return h.jsxs("div",{className:"flex flex-col gap-1.5",children:[h.jsx(Ts,{id:"view-repo",label:"Repo",children:h.jsxs("button",{id:"view-repo",type:"button",onClick:()=>s(c=>!c),"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:[h.jsx("span",{className:"truncate",children:yl(n)}),h.jsx(da,{size:14,className:ye("shrink-0 text-faint transition-transform",i&&"rotate-180")})]})}),i?h.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:h.jsx(Gg,{repos:e,selected:n,onChange:a})}):null]})}function u8({id:e,checked:n,label:a,onChange:i}){return h.jsx("button",{id:e,type:"button",role:"switch","aria-checked":n,"aria-label":a,onClick:()=>i(!n),className:ye("relative h-6 w-11 shrink-0 rounded-full transition-colors",n?"bg-accent":"border border-border bg-surface-2"),children:h.jsx("span",{className:ye("absolute left-0.5 top-0.5 size-5 rounded-full bg-white transition-transform",n?"translate-x-5":"translate-x-0")})})}function Ts({id:e,label:n,children:a}){return h.jsxs("div",{className:"flex items-center justify-between gap-3 text-sm text-muted",children:[h.jsx("label",{htmlFor:e,children:n}),a]})}function d8({id:e,value:n,options:a,onChange:i}){return h.jsx("select",{id:e,value:n,onChange:s=>i(s.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:a.map(([s,c])=>h.jsx("option",{value:s,children:c},s))})}function DL(e,n){return e?.length?e.find(i=>i.agentType===(n??"unknown"))?.models??[...new Set(e.flatMap(i=>i.models))]:[]}function FL({w:e,unread:n,selected:a,modelGroups:i,promptState:s,showDiffs:c}){const x=Z2(e.model,DL(i,e.agent_type));return h.jsxs(h.Fragment,{children:[h.jsxs("div",{className:"relative shrink-0",children:[h.jsx(qs,{icon:e.icon,name:e.repo_name||zr(e),artwork:"full-bleed"}),h.jsx(gw,{w:e,promptState:s,className:"absolute -right-0.5 -bottom-0.5 bg-surface ring-2 ring-surface"})]}),h.jsxs("div",{className:"min-w-0 flex-1 space-y-1.25 overflow-hidden",children:[h.jsxs("div",{className:"flex min-w-0 items-center justify-between gap-2",children:[h.jsxs("div",{className:"flex min-w-0 items-center gap-1.5",children:[h.jsx("span",{className:ye("min-w-0 truncate text-sm leading-none",n?"font-bold":"font-medium",n||a?"text-text":"text-muted"),children:zr(e)}),e.pinned_at?h.jsx("span",{className:"shrink-0 text-xs text-faint",children:"📌"}):null,n>1?h.jsx(Cw,{children:n}):n?h.jsx("span",{className:"dot size-2 bg-accent"}):null]}),c?h.jsx(Dz,{stats:e.change_stats}):null]}),h.jsxs("div",{className:"flex min-w-0 items-end gap-2 text-xs text-muted",children:[h.jsx("span",{className:"shrink-0 text-[11px] text-faint",children:tE(e.updated_at)}),x?h.jsxs("span",{className:"ml-auto flex min-w-0 items-center gap-1 text-[11px]",children:[h.jsx(yf,{agentType:e.agent_type,model:e.model,className:"size-3"}),h.jsx("span",{className:"truncate",children:x})]}):null]})]})]})}function wL(){MD();const e=Ae(n=>n.token);return h.jsxs(h.Fragment,{children:[h.jsx(CD,{}),e?h.jsxs(Vy,{children:[h.jsxs(Ms,{element:h.jsx(SL,{}),children:[h.jsx(Ms,{index:!0,element:h.jsx(NL,{})}),h.jsx(Ms,{path:"/w/:workspaceId",element:h.jsx(uz,{})})]}),h.jsx(Ms,{path:"*",element:h.jsx(qy,{to:"/",replace:!0})})]}):h.jsx(Bz,{})]})}function SL(){const e=ky("/w/:workspaceId"),n=Ae(s=>s.sidebarOpen),a=Ae(s=>s.setSidebarOpen),i=D.useRef(null);return _D(i),XD(),VD(),TD(),h.jsxs("div",{className:"flex h-full overflow-hidden",children:[n?h.jsx("div",{className:"fixed inset-0 z-40 bg-black/50 md:hidden",onClick:()=>a(!1),"aria-hidden":!0}):null,h.jsx("aside",{ref:i,className:ye("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:h.jsx(AL,{selectedId:e?.params.workspaceId})}),h.jsx("main",{className:"flex min-w-0 flex-1 flex-col",children:h.jsx($y,{})})]})}function NL(){const e=Ae(n=>n.setSidebarOpen);return h.jsxs("div",{className:"grid h-full place-items-center",children:[h.jsx("button",{type:"button",onClick:()=>e(!0),className:"pill pill-active md:hidden",children:"Browse workspaces"}),h.jsx("span",{className:"hidden text-sm text-muted md:block",children:"Select a workspace"})]})}navigator.storage?.persist&&navigator.storage.persist().catch(()=>{});Mz();const _L=new v4({defaultOptions:{queries:{staleTime:1e3,retry:1,refetchOnWindowFocus:!0}}}),Vg=document.getElementById("root");if(!Vg)throw new Error("#root missing");H4.createRoot(Vg).render(h.jsx(D.StrictMode,{children:h.jsx(k4,{client:_L,children:h.jsx(E7,{children:h.jsx(wL,{})})})}));
|