conductor-remote 1.71.0 → 1.72.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +13 -22
- package/dist/apple-touch-icon.png +0 -0
- package/dist/assets/index-BiP5UAB3.js +47 -0
- package/dist/assets/index-CXd-zI4t.css +1 -0
- package/dist/icon-maskable-512.png +0 -0
- package/dist/index.html +2 -2
- package/dist/sw.js +1 -1
- package/package.json +1 -1
- package/dist/assets/index-27cwPLKx.js +0 -47
- package/dist/assets/index-Bk3X-Sz3.css +0 -1
|
@@ -0,0 +1,47 @@
|
|
|
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 Ls(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Zx={exports:{}},os={};var O9;function p6(){if(O9)return os;O9=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 os.Fragment=n,os.jsx=a,os.jsxs=a,os}var j9;function m6(){return j9||(j9=1,Zx.exports=p6()),Zx.exports}var g=m6(),Ps=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(){}},E6=class extends Ps{#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"}},pf=new E6,g6={setTimeout:(e,n)=>setTimeout(e,n),clearTimeout:e=>clearTimeout(e),setInterval:(e,n)=>setInterval(e,n),clearInterval:e=>clearInterval(e)},y6=class{#e=g6;#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)}},xi=new y6;function C6(e){setTimeout(e,0)}var b6=typeof window>"u"||"Deno"in globalThis;function jn(){}function A6(e,n){return typeof e=="function"?e(n):e}function zu(e){return typeof e=="number"&&e>=0&&e!==1/0}function Vm(e,n){return Math.max(e+(n||0)-Date.now(),0)}function Ra(e,n){return typeof e=="function"?e(n):e}function Kn(e,n){return typeof e=="function"?e(n):e}function z9(e,n){const{type:a="all",exact:i,fetchStatus:s,predicate:c,queryKey:x,stale:u}=e;if(x){if(i){if(n.queryHash!==mf(x,n.options))return!1}else if(!ws(n.queryKey,x))return!1}if(a!=="all"){const f=n.isActive();if(a==="active"&&!f||a==="inactive"&&f)return!1}return!(typeof u=="boolean"&&n.isStale()!==u||s&&s!==n.state.fetchStatus||c&&!c(n))}function L9(e,n){const{exact:a,status:i,predicate:s,mutationKey:c}=e;if(c){if(!n.options.mutationKey)return!1;if(a){if(Fs(n.options.mutationKey)!==Fs(c))return!1}else if(!ws(n.options.mutationKey,c))return!1}return!(i&&n.state.status!==i||s&&!s(n))}function mf(e,n){return(n?.queryKeyHashFn||Fs)(e)}function Fs(e){return JSON.stringify(e,(n,a)=>Pu(a)?Object.keys(a).sort().reduce((i,s)=>(i[s]=a[s],i),{}):a)}function ws(e,n){return e===n?!0:typeof e!=typeof n?!1:e&&n&&typeof e=="object"&&typeof n=="object"?Object.keys(n).every(a=>ws(e[a],n[a])):!1}var B6=Object.prototype.hasOwnProperty;function Qm(e,n,a=0){if(e===n)return e;if(a>500)return n;const i=P9(e)&&P9(n);if(!i&&!(Pu(e)&&Pu(n)))return n;const c=(i?e:Object.keys(e)).length,x=i?n:Object.keys(n),u=x.length,f=i?new Array(u):{};let d=0;for(let m=0;m<u;m++){const p=i?m:x[m],y=e[p],C=n[p];if(y===C){f[p]=y,(i?m<c:B6.call(e,p))&&d++;continue}if(y===null||C===null||typeof y!="object"||typeof C!="object"){f[p]=C;continue}const b=Qm(y,C,a+1);f[p]=b,b===y&&d++}return c===u&&d===c?e:f}function Lu(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 P9(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Pu(e){if(!U9(e))return!1;const n=e.constructor;if(n===void 0)return!0;const a=n.prototype;return!(!U9(a)||!a.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function U9(e){return Object.prototype.toString.call(e)==="[object Object]"}function v6(e){return new Promise(n=>{xi.setTimeout(n,e)})}function Uu(e,n,a){return typeof a.structuralSharing=="function"?a.structuralSharing(e,n):a.structuralSharing!==!1?Qm(e,n):n}function k6(e){return e}function D6(e,n,a=0){const i=[...e,n];return a&&i.length>a?i.slice(1):i}function F6(e,n,a=0){const i=[n,...e];return a&&i.length>a?i.slice(0,-1):i}var Ef=Symbol();function Ym(e,n){return!e.queryFn&&n?.initialPromise?()=>n.initialPromise:!e.queryFn||e.queryFn===Ef?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function Km(e,n){return typeof e=="function"?e(...n):!!e}function w6(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 Ss=(()=>{let e=()=>b6;return{isServer(){return e()},setIsServer(n){e=n}}})();function Iu(){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 S6=C6;function _6(){let e=[],n=0,a=u=>{u()},i=u=>{u()},s=S6;const c=u=>{n?e.push(u):s(()=>{a(u)})},x=()=>{const u=e;e=[],u.length&&s(()=>{i(()=>{u.forEach(f=>{a(f)})})})};return{batch:u=>{let f;n++;try{f=u()}finally{n--,n||x()}return f},batchCalls:u=>(...f)=>{c(()=>{u(...f)})},schedule:c,setNotifyFunction:u=>{a=u},setBatchNotifyFunction:u=>{i=u},setScheduler:u=>{s=u}}}var un=_6(),M6=class extends Ps{#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}},w0=new M6;function N6(e){return Math.min(1e3*2**e,3e4)}function Xm(e){return(e??"online")==="online"?w0.isOnline():!0}var Hu=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function Zm(e){let n=!1,a=0,i;const s=Iu(),c=()=>s.status!=="pending",x=B=>{if(!c()){const v=new Hu(B);y(v),e.onCancel?.(v)}},u=()=>{n=!0},f=()=>{n=!1},d=()=>pf.isFocused()&&(e.networkMode==="always"||w0.isOnline())&&e.canRun(),m=()=>Xm(e.networkMode)&&e.canRun(),p=B=>{c()||(i?.(),s.resolve(B))},y=B=>{c()||(i?.(),s.reject(B))},C=()=>new Promise(B=>{i=v=>{(c()||d())&&B(v)},e.onPause?.()}).then(()=>{i=void 0,c()||e.onContinue?.()}),b=()=>{if(c())return;let B;const v=a===0?e.initialPromise:void 0;try{B=v??e.fn()}catch(k){B=Promise.reject(k)}Promise.resolve(B).then(p).catch(k=>{if(c())return;const R=e.retry??(Ss.isServer()?0:3),_=e.retryDelay??N6,N=typeof _=="function"?_(a,k):_,T=R===!0||typeof R=="number"&&a<R||typeof R=="function"&&R(a,k);if(n||!T){y(k);return}a++,e.onFail?.(a,k),v6(N).then(()=>d()?void 0:C()).then(()=>{n?y(k):b()})})};return{promise:s,status:()=>s.status,cancel:x,continue:()=>(i?.(),s),cancelRetry:u,continueRetry:f,canStart:m,start:()=>(m()?b():C().then(b),s)}}var Jm=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),zu(this.gcTime)&&(this.#e=xi.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Ss.isServer()?1/0:300*1e3))}clearGcTimeout(){this.#e!==void 0&&(xi.clearTimeout(this.#e),this.#e=void 0)}};function T6(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:[]},f=0;const d=async()=>{let m=!1;const p=b=>{w6(b,()=>n.signal,()=>m=!0)},y=Ym(n.options,n.fetchOptions),C=async(b,B,v)=>{if(m)return Promise.reject(n.signal.reason);if(B==null&&b.pages.length)return Promise.resolve(b);const R=(()=>{const F={client:n.client,queryKey:n.queryKey,pageParam:B,direction:v?"backward":"forward",meta:n.options.meta};return p(F),F})(),_=await y(R),{maxPages:N}=n.options,T=v?F6:D6;return{pages:T(b.pages,_,N),pageParams:T(b.pageParams,B,N)}};if(s&&c.length){const b=s==="backward",B=b?R6:I9,v={pages:c,pageParams:x},k=B(i,v);u=await C(v,k,b)}else{const b=e??c.length;do{const B=f===0?x[0]??i.initialPageParam:I9(i,u);if(f>0&&B==null)break;u=await C(u,B),f++}while(f<b)}return u};n.options.persister?n.fetchFn=()=>n.options.persister?.(d,{client:n.client,queryKey:n.queryKey,meta:n.options.meta,signal:n.signal},a):n.fetchFn=d}}}function I9(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 R6(e,{pages:n,pageParams:a}){return n.length>0?e.getPreviousPageParam?.(n[0],n,a[0],a):void 0}var O6=class extends Jm{#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=q9(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=q9(this.options);n.data!==void 0&&(this.setState(H9(n.data,n.dataUpdatedAt)),this.#t=n)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#r.remove(this)}setData(e,n){const a=Uu(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(jn).catch(jn):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=>Kn(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Ef||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>Ra(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:!Vm(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 f=this.observers.find(d=>d.options.queryFn);f&&this.setOptions(f.options)}const a=new AbortController,i=f=>{Object.defineProperty(f,"signal",{enumerable:!0,get:()=>(this.#l=!0,a.signal)})},s=()=>{const f=Ym(this.options,n),m=(()=>{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(f,m,this):f(m)},x=(()=>{const f={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:this.#i,state:this.state,fetchFn:s};return i(f),f})();(this.#e==="infinite"?T6(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=Zm({initialPromise:n?.initialPromise,fn:x.fetchFn,onCancel:f=>{f instanceof Hu&&f.revert&&this.setState({...this.#n,fetchStatus:"idle"}),a.abort()},onFail:(f,d)=>{this.#o({type:"failed",failureCount:f,error:d})},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 f=await this.#a.start();if(f===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(f),this.#r.config.onSuccess?.(f,this),this.#r.config.onSettled?.(f,this.state.error,this),f}catch(f){if(f instanceof Hu){if(f.silent)return this.#a.promise;if(f.revert){if(this.state.data===void 0)throw f;return this.state.data}}throw this.#o({type:"error",error:f}),this.#r.config.onError?.(f,this),this.#r.config.onSettled?.(this.state.data,f,this),f}finally{this.scheduleGc()}}#o(e){const n=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,...Wm(a.data,this.options),fetchMeta:e.meta??null};case"success":const i={...a,...H9(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),un.batch(()=>{this.observers.forEach(a=>{a.onQueryUpdate()}),this.#r.notify({query:this,type:"updated",action:e})})}};function Wm(e,n){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Xm(n.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function H9(e,n){return{data:e,dataUpdatedAt:n??Date.now(),error:null,isInvalidated:!1,status:"success"}}function q9(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 j6=class extends Ps{constructor(e,n){super(),this.options=n,this.#e=e,this.#l=null,this.#s=Iu(),this.bindMethods(),this.setOptions(n)}#e;#t=void 0;#n=void 0;#r=void 0;#i;#a;#s;#l;#x;#o;#h;#u;#f;#c;#p=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),$9(this.#t,this.options)?this.#d():this.updateResult(),this.#y())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return qu(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return qu(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#C(),this.#b(),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 Kn(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&&!Lu(this.options,n)&&this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#t,observer:this});const i=this.hasListeners();i&&G9(this.#t,a,this.options,n)&&this.#d(),this.updateResult(),i&&(this.#t!==a||Kn(this.options.enabled,this.#t)!==Kn(n.enabled,this.#t)||Ra(this.options.staleTime,this.#t)!==Ra(n.staleTime,this.#t))&&this.#m();const s=this.#E();i&&(this.#t!==a||Kn(this.options.enabled,this.#t)!==Kn(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 L6(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.#d({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#r))}#d(e){this.#A();let n=this.#t.fetch(this.options,e);return e?.throwOnError||(n=n.catch(jn)),n}#m(){this.#C();const e=Ra(this.options.staleTime,this.#t);if(Ss.isServer()||this.#r.isStale||!zu(e))return;const a=Vm(this.#r.dataUpdatedAt,e)+1;this.#u=xi.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.#b(),this.#c=e,!(Ss.isServer()||Kn(this.options.enabled,this.#t)===!1||!zu(this.#c)||this.#c===0)&&(this.#f=xi.setInterval(()=>{(this.options.refetchIntervalInBackground||pf.isFocused())&&this.#d()},this.#c))}#y(){this.#m(),this.#g(this.#E())}#C(){this.#u!==void 0&&(xi.clearTimeout(this.#u),this.#u=void 0)}#b(){this.#f!==void 0&&(xi.clearInterval(this.#f),this.#f=void 0)}createResult(e,n){const a=this.#t,i=this.options,s=this.#r,c=this.#i,x=this.#a,f=e!==a?e.state:this.#n,{state:d}=e;let m={...d},p=!1,y;if(n._optimisticResults){const L=this.hasListeners(),$=!L&&$9(e,n),z=L&&G9(e,a,n,i);($||z)&&(m={...m,...Wm(d.data,e.options)}),n._optimisticResults==="isRestoring"&&(m.fetchStatus="idle")}let{error:C,errorUpdatedAt:b,status:B}=m;y=m.data;let v=!1;if(n.placeholderData!==void 0&&y===void 0&&B==="pending"){let L;s?.isPlaceholderData&&n.placeholderData===x?.placeholderData?(L=s.data,v=!0):L=typeof n.placeholderData=="function"?n.placeholderData(this.#h?.state.data,this.#h):n.placeholderData,L!==void 0&&(B="success",y=Uu(s?.data,L,n),p=!0)}if(n.select&&y!==void 0&&!v)if(s&&y===c?.data&&n.select===this.#x)y=this.#o;else try{this.#x=n.select,y=n.select(y),y=Uu(s?.data,y,n),this.#o=y,this.#l=null}catch(L){this.#l=L}this.#l&&(C=this.#l,y=this.#o,b=Date.now(),B="error");const k=m.fetchStatus==="fetching",R=B==="pending",_=B==="error",N=R&&k,T=y!==void 0,O={status:B,fetchStatus:m.fetchStatus,isPending:R,isSuccess:B==="success",isError:_,isInitialLoading:N,isLoading:N,data:y,dataUpdatedAt:m.dataUpdatedAt,error:C,errorUpdatedAt:b,failureCount:m.fetchFailureCount,failureReason:m.fetchFailureReason,errorUpdateCount:m.errorUpdateCount,isFetched:e.isFetched(),isFetchedAfterMount:m.dataUpdateCount>f.dataUpdateCount||m.errorUpdateCount>f.errorUpdateCount,isFetching:k,isRefetching:k&&!R,isLoadingError:_&&!T,isPaused:m.fetchStatus==="paused",isPlaceholderData:p,isRefetchError:_&&T,isStale:gf(e,n),refetch:this.refetch,promise:this.#s,isEnabled:Kn(n.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){const L=O.data!==void 0,$=O.status==="error"&&!L,z=V=>{$?V.reject(O.error):L&&V.resolve(O.data)},X=()=>{const V=this.#s=O.promise=Iu();z(V)},K=this.#s;switch(K.status){case"pending":e.queryHash===a.queryHash&&z(K);break;case"fulfilled":($||O.data!==K.value)&&X();break;case"rejected":(!$||O.error!==K.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),Lu(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.#B({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()}#B(e){un.batch(()=>{e.listeners&&this.listeners.forEach(n=>{n(this.#r)}),this.#e.getQueryCache().notify({query:this.#t,type:"observerResultsUpdated"})})}};function z6(e,n){return Kn(n.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&Kn(n.retryOnMount,e)===!1)}function $9(e,n){return z6(e,n)||e.state.data!==void 0&&qu(e,n,n.refetchOnMount)}function qu(e,n,a){if(Kn(n.enabled,e)!==!1&&Ra(n.staleTime,e)!=="static"){const i=typeof a=="function"?a(e):a;return i==="always"||i!==!1&&gf(e,n)}return!1}function G9(e,n,a,i){return(e!==n||Kn(i.enabled,e)===!1)&&(!a.suspense||e.state.status!=="error")&&gf(e,a)}function gf(e,n){return Kn(n.enabled,e)!==!1&&e.isStaleByTime(Ra(n.staleTime,e))}function L6(e,n){return!Lu(e.getCurrentResult(),n)}var P6=class extends Jm{#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||U6(),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=Zm({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),un.batch(()=>{this.#t.forEach(a=>{a.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:"updated",action:e})})}};function U6(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var I6=class extends Ps{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 P6({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=c0(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=c0(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=c0(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=c0(e);return typeof n=="string"?this.#t.get(n)?.find(i=>i!==e&&i.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){un.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=>L9(n,a))}findAll(e={}){return this.getAll().filter(n=>L9(e,n))}notify(e){un.batch(()=>{this.listeners.forEach(n=>{n(e)})})}resumePausedMutations(){const e=this.getAll().filter(n=>n.state.isPaused);return un.batch(()=>Promise.all(e.map(n=>n.continue().catch(jn))))}};function c0(e){return e.options.scope?.id}var H6=class extends Ps{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,n,a){const i=n.queryKey,s=n.queryHash??mf(i,n);let c=this.get(s);return c||(c=new O6({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(){un.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=>z9(n,a))}findAll(e={}){const n=this.getAll();return Object.keys(e).length>0?n.filter(a=>z9(e,a)):n}notify(e){un.batch(()=>{this.listeners.forEach(n=>{n(e)})})}onFocus(){un.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){un.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},q6=class{#e;#t;#n;#r;#i;#a;#s;#l;constructor(e={}){this.#e=e.queryCache||new H6,this.#t=e.mutationCache||new I6,this.#n=e.defaultOptions||{},this.#r=new Map,this.#i=new Map,this.#a=0}mount(){this.#a++,this.#a===1&&(this.#s=pf.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#l=w0.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(Ra(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=A6(n,c);if(x!==void 0)return this.#e.build(this,i).setData(x,{...a,manual:!0})}setQueriesData(e,n,a){return un.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;un.batch(()=>{n.findAll(e).forEach(a=>{n.remove(a)})})}resetQueries(e,n){const a=this.#e;return un.batch(()=>(a.findAll(e).forEach(i=>{i.reset()}),this.refetchQueries({type:"active",...e},n)))}cancelQueries(e,n={}){const a={revert:!0,...n},i=un.batch(()=>this.#e.findAll(e).map(s=>s.cancel(a)));return Promise.all(i).then(jn).catch(jn)}invalidateQueries(e,n={}){return un.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=un.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(jn)),s.state.fetchStatus==="paused"?Promise.resolve():c}));return Promise.all(i).then(jn)}fetchQuery(e){const n=this.defaultQueryOptions(e);n.retry===void 0&&(n.retry=!1);const a=this.#e.build(this,n);return a.isStaleByTime(Ra(n.staleTime,a))?a.fetch(n):Promise.resolve(a.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(jn).catch(jn)}fetchInfiniteQuery(e){return e._type="infinite",this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(jn).catch(jn)}ensureInfiniteQueryData(e){return e._type="infinite",this.ensureQueryData(e)}resumePausedMutations(){return w0.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,n){this.#r.set(Fs(e),{queryKey:e,defaultOptions:n})}getQueryDefaults(e){const n=[...this.#r.values()],a={};return n.forEach(i=>{ws(e,i.queryKey)&&Object.assign(a,i.defaultOptions)}),a}setMutationDefaults(e,n){this.#i.set(Fs(e),{mutationKey:e,defaultOptions:n})}getMutationDefaults(e){const n=[...this.#i.values()],a={};return n.forEach(i=>{ws(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=mf(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===Ef&&(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()}},Jx={exports:{}},qe={};var V9;function $6(){if(V9)return qe;V9=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"),f=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),p=Symbol.for("react.activity"),y=Symbol.iterator;function C(j){return j===null||typeof j!="object"?null:(j=y&&j[y]||j["@@iterator"],typeof j=="function"?j:null)}var b={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},B=Object.assign,v={};function k(j,J,M){this.props=j,this.context=J,this.refs=v,this.updater=M||b}k.prototype.isReactComponent={},k.prototype.setState=function(j,J){if(typeof j!="object"&&typeof j!="function"&&j!=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,j,J,"setState")},k.prototype.forceUpdate=function(j){this.updater.enqueueForceUpdate(this,j,"forceUpdate")};function R(){}R.prototype=k.prototype;function _(j,J,M){this.props=j,this.context=J,this.refs=v,this.updater=M||b}var N=_.prototype=new R;N.constructor=_,B(N,k.prototype),N.isPureReactComponent=!0;var T=Array.isArray;function F(){}var O={H:null,A:null,T:null,S:null},L=Object.prototype.hasOwnProperty;function $(j,J,M){var te=M.ref;return{$$typeof:e,type:j,key:J,ref:te!==void 0?te:null,props:M}}function z(j,J){return $(j.type,J,j.props)}function X(j){return typeof j=="object"&&j!==null&&j.$$typeof===e}function K(j){var J={"=":"=0",":":"=2"};return"$"+j.replace(/[=:]/g,function(M){return J[M]})}var V=/\/+/g;function Z(j,J){return typeof j=="object"&&j!==null&&j.key!=null?K(""+j.key):J.toString(36)}function Q(j){switch(j.status){case"fulfilled":return j.value;case"rejected":throw j.reason;default:switch(typeof j.status=="string"?j.then(F,F):(j.status="pending",j.then(function(J){j.status==="pending"&&(j.status="fulfilled",j.value=J)},function(J){j.status==="pending"&&(j.status="rejected",j.reason=J)})),j.status){case"fulfilled":return j.value;case"rejected":throw j.reason}}throw j}function U(j,J,M,te,ge){var de=typeof j;(de==="undefined"||de==="boolean")&&(j=null);var Ce=!1;if(j===null)Ce=!0;else switch(de){case"bigint":case"string":case"number":Ce=!0;break;case"object":switch(j.$$typeof){case e:case n:Ce=!0;break;case m:return Ce=j._init,U(Ce(j._payload),J,M,te,ge)}}if(Ce)return ge=ge(j),Ce=te===""?"."+Z(j,0):te,T(ge)?(M="",Ce!=null&&(M=Ce.replace(V,"$&/")+"/"),U(ge,J,M,"",function(ue){return ue})):ge!=null&&(X(ge)&&(ge=z(ge,M+(ge.key==null||j&&j.key===ge.key?"":(""+ge.key).replace(V,"$&/")+"/")+Ce)),J.push(ge)),1;Ce=0;var Qe=te===""?".":te+":";if(T(j))for(var ke=0;ke<j.length;ke++)te=j[ke],de=Qe+Z(te,ke),Ce+=U(te,J,M,de,ge);else if(ke=C(j),typeof ke=="function")for(j=ke.call(j),ke=0;!(te=j.next()).done;)te=te.value,de=Qe+Z(te,ke++),Ce+=U(te,J,M,de,ge);else if(de==="object"){if(typeof j.then=="function")return U(Q(j),J,M,te,ge);throw J=String(j),Error("Objects are not valid as a React child (found: "+(J==="[object Object]"?"object with keys {"+Object.keys(j).join(", ")+"}":J)+"). If you meant to render a collection of children, use an array instead.")}return Ce}function H(j,J,M){if(j==null)return j;var te=[],ge=0;return U(j,te,"","",function(de){return J.call(M,de,ge++)}),te}function re(j){if(j._status===-1){var J=j._result;J=J(),J.then(function(M){(j._status===0||j._status===-1)&&(j._status=1,j._result=M)},function(M){(j._status===0||j._status===-1)&&(j._status=2,j._result=M)}),j._status===-1&&(j._status=0,j._result=J)}if(j._status===1)return j._result.default;throw j._result}var fe=typeof reportError=="function"?reportError:function(j){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var J=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof j=="object"&&j!==null&&typeof j.message=="string"?String(j.message):String(j),error:j});if(!window.dispatchEvent(J))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",j);return}console.error(j)},w={map:H,forEach:function(j,J,M){H(j,function(){J.apply(this,arguments)},M)},count:function(j){var J=0;return H(j,function(){J++}),J},toArray:function(j){return H(j,function(J){return J})||[]},only:function(j){if(!X(j))throw Error("React.Children.only expected to receive a single React element child.");return j}};return qe.Activity=p,qe.Children=w,qe.Component=k,qe.Fragment=a,qe.Profiler=s,qe.PureComponent=_,qe.StrictMode=i,qe.Suspense=f,qe.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=O,qe.__COMPILER_RUNTIME={__proto__:null,c:function(j){return O.H.useMemoCache(j)}},qe.cache=function(j){return function(){return j.apply(null,arguments)}},qe.cacheSignal=function(){return null},qe.cloneElement=function(j,J,M){if(j==null)throw Error("The argument must be a React element, but you passed "+j+".");var te=B({},j.props),ge=j.key;if(J!=null)for(de in J.key!==void 0&&(ge=""+J.key),J)!L.call(J,de)||de==="key"||de==="__self"||de==="__source"||de==="ref"&&J.ref===void 0||(te[de]=J[de]);var de=arguments.length-2;if(de===1)te.children=M;else if(1<de){for(var Ce=Array(de),Qe=0;Qe<de;Qe++)Ce[Qe]=arguments[Qe+2];te.children=Ce}return $(j.type,ge,te)},qe.createContext=function(j){return j={$$typeof:x,_currentValue:j,_currentValue2:j,_threadCount:0,Provider:null,Consumer:null},j.Provider=j,j.Consumer={$$typeof:c,_context:j},j},qe.createElement=function(j,J,M){var te,ge={},de=null;if(J!=null)for(te in J.key!==void 0&&(de=""+J.key),J)L.call(J,te)&&te!=="key"&&te!=="__self"&&te!=="__source"&&(ge[te]=J[te]);var Ce=arguments.length-2;if(Ce===1)ge.children=M;else if(1<Ce){for(var Qe=Array(Ce),ke=0;ke<Ce;ke++)Qe[ke]=arguments[ke+2];ge.children=Qe}if(j&&j.defaultProps)for(te in Ce=j.defaultProps,Ce)ge[te]===void 0&&(ge[te]=Ce[te]);return $(j,de,ge)},qe.createRef=function(){return{current:null}},qe.forwardRef=function(j){return{$$typeof:u,render:j}},qe.isValidElement=X,qe.lazy=function(j){return{$$typeof:m,_payload:{_status:-1,_result:j},_init:re}},qe.memo=function(j,J){return{$$typeof:d,type:j,compare:J===void 0?null:J}},qe.startTransition=function(j){var J=O.T,M={};O.T=M;try{var te=j(),ge=O.S;ge!==null&&ge(M,te),typeof te=="object"&&te!==null&&typeof te.then=="function"&&te.then(F,fe)}catch(de){fe(de)}finally{J!==null&&M.types!==null&&(J.types=M.types),O.T=J}},qe.unstable_useCacheRefresh=function(){return O.H.useCacheRefresh()},qe.use=function(j){return O.H.use(j)},qe.useActionState=function(j,J,M){return O.H.useActionState(j,J,M)},qe.useCallback=function(j,J){return O.H.useCallback(j,J)},qe.useContext=function(j){return O.H.useContext(j)},qe.useDebugValue=function(){},qe.useDeferredValue=function(j,J){return O.H.useDeferredValue(j,J)},qe.useEffect=function(j,J){return O.H.useEffect(j,J)},qe.useEffectEvent=function(j){return O.H.useEffectEvent(j)},qe.useId=function(){return O.H.useId()},qe.useImperativeHandle=function(j,J,M){return O.H.useImperativeHandle(j,J,M)},qe.useInsertionEffect=function(j,J){return O.H.useInsertionEffect(j,J)},qe.useLayoutEffect=function(j,J){return O.H.useLayoutEffect(j,J)},qe.useMemo=function(j,J){return O.H.useMemo(j,J)},qe.useOptimistic=function(j,J){return O.H.useOptimistic(j,J)},qe.useReducer=function(j,J,M){return O.H.useReducer(j,J,M)},qe.useRef=function(j){return O.H.useRef(j)},qe.useState=function(j){return O.H.useState(j)},qe.useSyncExternalStore=function(j,J,M){return O.H.useSyncExternalStore(j,J,M)},qe.useTransition=function(){return O.H.useTransition()},qe.version="19.2.7",qe}var Q9;function yf(){return Q9||(Q9=1,Jx.exports=$6()),Jx.exports}var S=yf();const x0=Ls(S);var e8=S.createContext(void 0),wr=e=>{const n=S.useContext(e8);if(!n)throw new Error("No QueryClient set, use QueryClientProvider to set one");return n},G6=({client:e,children:n})=>(S.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),g.jsx(e8.Provider,{value:e,children:n})),t8=S.createContext(!1),V6=()=>S.useContext(t8);t8.Provider;function Q6(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var Y6=S.createContext(Q6()),K6=()=>S.useContext(Y6),X6=(e,n,a)=>{const i=a?.state.error&&typeof e.throwOnError=="function"?Km(e.throwOnError,[a.state.error,a]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||i)&&(n.isReset()||(e.retryOnMount=!1))},Z6=e=>{S.useEffect(()=>{e.clearReset()},[e])},J6=({result:e,errorResetBoundary:n,throwOnError:a,query:i,suspense:s})=>e.isError&&!n.isReset()&&!e.isFetching&&i&&(s&&e.data===void 0||Km(a,[e.error,i])),W6=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))}},e4=(e,n)=>e.isLoading&&e.isFetching&&!n,t4=(e,n)=>e?.suspense&&n.isPending,Y9=(e,n,a)=>n.fetchOptimistic(e).catch(()=>{a.clearReset()});function n4(e,n,a){const i=V6(),s=K6(),c=wr(),x=c.defaultQueryOptions(e);c.getDefaultOptions().queries?._experimental_beforeQuery?.(x);const u=c.getQueryCache().get(x.queryHash),f=e.subscribed!==!1;x._optimisticResults=i?"isRestoring":f?"optimistic":void 0,W6(x),X6(x,s,u),Z6(s);const d=!c.getQueryCache().get(x.queryHash),[m]=S.useState(()=>new n(c,x)),p=m.getOptimisticResult(x),y=!i&&f;if(S.useSyncExternalStore(S.useCallback(C=>{const b=y?m.subscribe(un.batchCalls(C)):jn;return m.updateResult(),b},[m,y]),()=>m.getCurrentResult(),()=>m.getCurrentResult()),S.useEffect(()=>{m.setOptions(x)},[x,m]),t4(x,p))throw Y9(x,m,s);if(J6({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&&!Ss.isServer()&&e4(p,i)&&(d?Y9(x,m,s):u?.promise)?.catch(jn).finally(()=>{m.updateResult()}),x.notifyOnChangeProps?p:m.trackResult(p)}function zn(e,n){return n4(e,j6)}var Wx={exports:{}},cs={},eu={exports:{}},tu={};var K9;function r4(){return K9||(K9=1,(function(e){function n(U,H){var re=U.length;U.push(H);e:for(;0<re;){var fe=re-1>>>1,w=U[fe];if(0<s(w,H))U[fe]=H,U[re]=w,re=fe;else break e}}function a(U){return U.length===0?null:U[0]}function i(U){if(U.length===0)return null;var H=U[0],re=U.pop();if(re!==H){U[0]=re;e:for(var fe=0,w=U.length,j=w>>>1;fe<j;){var J=2*(fe+1)-1,M=U[J],te=J+1,ge=U[te];if(0>s(M,re))te<w&&0>s(ge,M)?(U[fe]=ge,U[te]=re,fe=te):(U[fe]=M,U[J]=re,fe=J);else if(te<w&&0>s(ge,re))U[fe]=ge,U[te]=re,fe=te;else break e}}return H}function s(U,H){var re=U.sortIndex-H.sortIndex;return re!==0?re:U.id-H.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 f=[],d=[],m=1,p=null,y=3,C=!1,b=!1,B=!1,v=!1,k=typeof setTimeout=="function"?setTimeout:null,R=typeof clearTimeout=="function"?clearTimeout:null,_=typeof setImmediate<"u"?setImmediate:null;function N(U){for(var H=a(d);H!==null;){if(H.callback===null)i(d);else if(H.startTime<=U)i(d),H.sortIndex=H.expirationTime,n(f,H);else break;H=a(d)}}function T(U){if(B=!1,N(U),!b)if(a(f)!==null)b=!0,F||(F=!0,K());else{var H=a(d);H!==null&&Q(T,H.startTime-U)}}var F=!1,O=-1,L=5,$=-1;function z(){return v?!0:!(e.unstable_now()-$<L)}function X(){if(v=!1,F){var U=e.unstable_now();$=U;var H=!0;try{e:{b=!1,B&&(B=!1,R(O),O=-1),C=!0;var re=y;try{t:{for(N(U),p=a(f);p!==null&&!(p.expirationTime>U&&z());){var fe=p.callback;if(typeof fe=="function"){p.callback=null,y=p.priorityLevel;var w=fe(p.expirationTime<=U);if(U=e.unstable_now(),typeof w=="function"){p.callback=w,N(U),H=!0;break t}p===a(f)&&i(f),N(U)}else i(f);p=a(f)}if(p!==null)H=!0;else{var j=a(d);j!==null&&Q(T,j.startTime-U),H=!1}}break e}finally{p=null,y=re,C=!1}H=void 0}}finally{H?K():F=!1}}}var K;if(typeof _=="function")K=function(){_(X)};else if(typeof MessageChannel<"u"){var V=new MessageChannel,Z=V.port2;V.port1.onmessage=X,K=function(){Z.postMessage(null)}}else K=function(){k(X,0)};function Q(U,H){O=k(function(){U(e.unstable_now())},H)}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"):L=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 H=3;break;default:H=y}var re=y;y=H;try{return U()}finally{y=re}},e.unstable_requestPaint=function(){v=!0},e.unstable_runWithPriority=function(U,H){switch(U){case 1:case 2:case 3:case 4:case 5:break;default:U=3}var re=y;y=U;try{return H()}finally{y=re}},e.unstable_scheduleCallback=function(U,H,re){var fe=e.unstable_now();switch(typeof re=="object"&&re!==null?(re=re.delay,re=typeof re=="number"&&0<re?fe+re:fe):re=fe,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:m++,callback:H,priorityLevel:U,startTime:re,expirationTime:w,sortIndex:-1},re>fe?(U.sortIndex=re,n(d,U),a(f)===null&&U===a(d)&&(B?(R(O),O=-1):B=!0,Q(T,re-fe))):(U.sortIndex=w,n(f,U),b||C||(b=!0,F||(F=!0,K()))),U},e.unstable_shouldYield=z,e.unstable_wrapCallback=function(U){var H=y;return function(){var re=y;y=H;try{return U.apply(this,arguments)}finally{y=re}}}})(tu)),tu}var X9;function a4(){return X9||(X9=1,eu.exports=r4()),eu.exports}var nu={exports:{}},mn={};var Z9;function i4(){if(Z9)return mn;Z9=1;var e=yf();function n(f){var d="https://react.dev/errors/"+f;if(1<arguments.length){d+="?args[]="+encodeURIComponent(arguments[1]);for(var m=2;m<arguments.length;m++)d+="&args[]="+encodeURIComponent(arguments[m])}return"Minified React error #"+f+"; visit "+d+" 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(f,d,m){var p=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:s,key:p==null?null:""+p,children:f,containerInfo:d,implementation:m}}var x=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function u(f,d){if(f==="font")return"";if(typeof d=="string")return d==="use-credentials"?d:""}return mn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,mn.createPortal=function(f,d){var m=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!d||d.nodeType!==1&&d.nodeType!==9&&d.nodeType!==11)throw Error(n(299));return c(f,d,null,m)},mn.flushSync=function(f){var d=x.T,m=i.p;try{if(x.T=null,i.p=2,f)return f()}finally{x.T=d,i.p=m,i.d.f()}},mn.preconnect=function(f,d){typeof f=="string"&&(d?(d=d.crossOrigin,d=typeof d=="string"?d==="use-credentials"?d:"":void 0):d=null,i.d.C(f,d))},mn.prefetchDNS=function(f){typeof f=="string"&&i.d.D(f)},mn.preinit=function(f,d){if(typeof f=="string"&&d&&typeof d.as=="string"){var m=d.as,p=u(m,d.crossOrigin),y=typeof d.integrity=="string"?d.integrity:void 0,C=typeof d.fetchPriority=="string"?d.fetchPriority:void 0;m==="style"?i.d.S(f,typeof d.precedence=="string"?d.precedence:void 0,{crossOrigin:p,integrity:y,fetchPriority:C}):m==="script"&&i.d.X(f,{crossOrigin:p,integrity:y,fetchPriority:C,nonce:typeof d.nonce=="string"?d.nonce:void 0})}},mn.preinitModule=function(f,d){if(typeof f=="string")if(typeof d=="object"&&d!==null){if(d.as==null||d.as==="script"){var m=u(d.as,d.crossOrigin);i.d.M(f,{crossOrigin:m,integrity:typeof d.integrity=="string"?d.integrity:void 0,nonce:typeof d.nonce=="string"?d.nonce:void 0})}}else d==null&&i.d.M(f)},mn.preload=function(f,d){if(typeof f=="string"&&typeof d=="object"&&d!==null&&typeof d.as=="string"){var m=d.as,p=u(m,d.crossOrigin);i.d.L(f,m,{crossOrigin:p,integrity:typeof d.integrity=="string"?d.integrity:void 0,nonce:typeof d.nonce=="string"?d.nonce:void 0,type:typeof d.type=="string"?d.type:void 0,fetchPriority:typeof d.fetchPriority=="string"?d.fetchPriority:void 0,referrerPolicy:typeof d.referrerPolicy=="string"?d.referrerPolicy:void 0,imageSrcSet:typeof d.imageSrcSet=="string"?d.imageSrcSet:void 0,imageSizes:typeof d.imageSizes=="string"?d.imageSizes:void 0,media:typeof d.media=="string"?d.media:void 0})}},mn.preloadModule=function(f,d){if(typeof f=="string")if(d){var m=u(d.as,d.crossOrigin);i.d.m(f,{as:typeof d.as=="string"&&d.as!=="script"?d.as:void 0,crossOrigin:m,integrity:typeof d.integrity=="string"?d.integrity:void 0})}else i.d.m(f)},mn.requestFormReset=function(f){i.d.r(f)},mn.unstable_batchedUpdates=function(f,d){return f(d)},mn.useFormState=function(f,d,m){return x.H.useFormState(f,d,m)},mn.useFormStatus=function(){return x.H.useHostTransitionStatus()},mn.version="19.2.7",mn}var J9;function n8(){if(J9)return nu.exports;J9=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(),nu.exports=i4(),nu.exports}var W9;function l4(){if(W9)return cs;W9=1;var e=a4(),n=yf(),a=n8();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 f(t){if(c(t)!==t)throw Error(i(188))}function d(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 h=l.return;if(h===null)break;var E=h.alternate;if(E===null){if(o=h.return,o!==null){l=o;continue}break}if(h.child===E.child){for(E=h.child;E;){if(E===l)return f(h),t;if(E===o)return f(h),r;E=E.sibling}throw Error(i(188))}if(l.return!==o.return)l=h,o=E;else{for(var A=!1,D=h.child;D;){if(D===l){A=!0,l=h,o=E;break}if(D===o){A=!0,o=h,l=E;break}D=D.sibling}if(!A){for(D=E.child;D;){if(D===l){A=!0,l=E,o=h;break}if(D===o){A=!0,o=E,l=h;break}D=D.sibling}if(!A)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 m(t){var r=t.tag;if(r===5||r===26||r===27||r===6)return t;for(t=t.child;t!==null;){if(r=m(t),r!==null)return r;t=t.sibling}return null}var p=Object.assign,y=Symbol.for("react.element"),C=Symbol.for("react.transitional.element"),b=Symbol.for("react.portal"),B=Symbol.for("react.fragment"),v=Symbol.for("react.strict_mode"),k=Symbol.for("react.profiler"),R=Symbol.for("react.consumer"),_=Symbol.for("react.context"),N=Symbol.for("react.forward_ref"),T=Symbol.for("react.suspense"),F=Symbol.for("react.suspense_list"),O=Symbol.for("react.memo"),L=Symbol.for("react.lazy"),$=Symbol.for("react.activity"),z=Symbol.for("react.memo_cache_sentinel"),X=Symbol.iterator;function K(t){return t===null||typeof t!="object"?null:(t=X&&t[X]||t["@@iterator"],typeof t=="function"?t:null)}var V=Symbol.for("react.client.reference");function Z(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===V?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case B:return"Fragment";case k:return"Profiler";case v:return"StrictMode";case T:return"Suspense";case F:return"SuspenseList";case $:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case b:return"Portal";case _:return t.displayName||"Context";case R:return(t._context.displayName||"Context")+".Consumer";case N: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 L:r=t._payload,t=t._init;try{return Z(t(r))}catch{}}return null}var Q=Array.isArray,U=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,H=a.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,re={pending:!1,data:null,method:null,action:null},fe=[],w=-1;function j(t){return{current:t}}function J(t){0>w||(t.current=fe[w],fe[w]=null,w--)}function M(t,r){w++,fe[w]=t.current,t.current=r}var te=j(null),ge=j(null),de=j(null),Ce=j(null);function Qe(t,r){switch(M(de,r),M(ge,t),M(te,null),r.nodeType){case 9:case 11:t=(t=r.documentElement)&&(t=t.namespaceURI)?a9(t):0;break;default:if(t=r.tagName,r=r.namespaceURI)r=a9(r),t=i9(r,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}J(te),M(te,t)}function ke(){J(te),J(ge),J(de)}function ue(t){t.memoizedState!==null&&M(Ce,t);var r=te.current,l=i9(r,t.type);r!==l&&(M(ge,t),M(te,l))}function Ze(t){ge.current===t&&(J(te),J(ge)),Ce.current===t&&(J(Ce),as._currentValue=re)}var ut,bt;function ie(t){if(ut===void 0)try{throw Error()}catch(l){var r=l.stack.trim().match(/\n( *(at )?)/);ut=r&&r[1]||"",bt=-1<l.stack.indexOf(`
|
|
2
|
+
at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
3
|
+
`+ut+t+bt}var He=!1;function ft(t,r){if(!t||He)return"";He=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var o={DetermineComponentFrameRoot:function(){try{if(r){var xe=function(){throw Error()};if(Object.defineProperty(xe.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(xe,[])}catch(ae){var ne=ae}Reflect.construct(t,[],xe)}else{try{xe.call()}catch(ae){ne=ae}t.call(xe.prototype)}}else{try{throw Error()}catch(ae){ne=ae}(xe=t())&&typeof xe.catch=="function"&&xe.catch(function(){})}}catch(ae){if(ae&&ne&&typeof ae.stack=="string")return[ae.stack,ne.stack]}return[null,null]}};o.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var h=Object.getOwnPropertyDescriptor(o.DetermineComponentFrameRoot,"name");h&&h.configurable&&Object.defineProperty(o.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var E=o.DetermineComponentFrameRoot(),A=E[0],D=E[1];if(A&&D){var P=A.split(`
|
|
4
|
+
`),ee=D.split(`
|
|
5
|
+
`);for(h=o=0;o<P.length&&!P[o].includes("DetermineComponentFrameRoot");)o++;for(;h<ee.length&&!ee[h].includes("DetermineComponentFrameRoot");)h++;if(o===P.length||h===ee.length)for(o=P.length-1,h=ee.length-1;1<=o&&0<=h&&P[o]!==ee[h];)h--;for(;1<=o&&0<=h;o--,h--)if(P[o]!==ee[h]){if(o!==1||h!==1)do if(o--,h--,0>h||P[o]!==ee[h]){var se=`
|
|
6
|
+
`+P[o].replace(" at new "," at ");return t.displayName&&se.includes("<anonymous>")&&(se=se.replace("<anonymous>",t.displayName)),se}while(1<=o&&0<=h);break}}}finally{He=!1,Error.prepareStackTrace=l}return(l=t?t.displayName||t.name:"")?ie(l):""}function Tt(t,r){switch(t.tag){case 26:case 27:case 5:return ie(t.type);case 16:return ie("Lazy");case 13:return t.child!==r&&r!==null?ie("Suspense Fallback"):ie("Suspense");case 19:return ie("SuspenseList");case 0:case 15:return ft(t.type,!1);case 11:return ft(t.type.render,!1);case 1:return ft(t.type,!0);case 31:return ie("Activity");default:return""}}function fn(t){try{var r="",l=null;do r+=Tt(t,l),l=t,t=t.return;while(t);return r}catch(o){return`
|
|
7
|
+
Error generating stack: `+o.message+`
|
|
8
|
+
`+o.stack}}var At=Object.prototype.hasOwnProperty,Mr=e.unstable_scheduleCallback,tn=e.unstable_cancelCallback,hl=e.unstable_shouldYield,Ei=e.unstable_requestPaint,jt=e.unstable_now,gi=e.unstable_getCurrentPriorityLevel,le=e.unstable_ImmediatePriority,me=e.unstable_UserBlockingPriority,Oe=e.unstable_NormalPriority,Ye=e.unstable_LowPriority,st=e.unstable_IdlePriority,yn=e.log,ur=e.unstable_setDisableYieldValue,rn=null,Lt=null;function dn(t){if(typeof yn=="function"&&ur(t),Lt&&typeof Lt.setStrictMode=="function")try{Lt.setStrictMode(rn,t)}catch{}}var dt=Math.clz32?Math.clz32:Vs,Er=Math.log,Cn=Math.LN2;function Vs(t){return t>>>=0,t===0?32:31-(Er(t)/Cn|0)|0}var Pa=256,yi=262144,Ua=4194304;function kn(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 I(t,r,l){var o=t.pendingLanes;if(o===0)return 0;var h=0,E=t.suspendedLanes,A=t.pingedLanes;t=t.warmLanes;var D=o&134217727;return D!==0?(o=D&~E,o!==0?h=kn(o):(A&=D,A!==0?h=kn(A):l||(l=D&~t,l!==0&&(h=kn(l))))):(D=o&~E,D!==0?h=kn(D):A!==0?h=kn(A):l||(l=o&~t,l!==0&&(h=kn(l)))),h===0?0:r!==0&&r!==h&&(r&E)===0&&(E=h&-h,l=r&-r,E>=l||E===32&&(l&4194048)!==0)?r:h}function oe(t,r){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&r)===0}function ye(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 Pe(){var t=Ua;return Ua<<=1,(Ua&62914560)===0&&(Ua=4194304),t}function wt(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 we(t,r,l,o,h,E){var A=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 D=t.entanglements,P=t.expirationTimes,ee=t.hiddenUpdates;for(l=A&~l;0<l;){var se=31-dt(l),xe=1<<se;D[se]=0,P[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&=~xe}o!==0&&be(t,o,0),E!==0&&h===0&&t.tag!==0&&(t.suspendedLanes|=E&~(A&~r))}function be(t,r,l){t.pendingLanes|=r,t.suspendedLanes&=~r;var o=31-dt(r);t.entangledLanes|=r,t.entanglements[o]=t.entanglements[o]|1073741824|l&261930}function Le(t,r){var l=t.entangledLanes|=r;for(t=t.entanglements;l;){var o=31-dt(l),h=1<<o;h&r|t[o]&r&&(t[o]|=r),l&=~h}}function It(t,r){var l=r&-r;return l=(l&42)!==0?1:Rt(l),(l&(t.suspendedLanes|r))!==0?0:l}function Rt(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 Nr(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function Ci(){var t=H.p;return t!==0?t:(t=window.event,t===void 0?32:w9(t.type))}function bi(t,r){var l=H.p;try{return H.p=t,r()}finally{H.p=l}}var gr=Math.random().toString(36).slice(2),Ht="__reactFiber$"+gr,hn="__reactProps$"+gr,na="__reactContainer$"+gr,pl="__reactEvents$"+gr,Qs="__reactListeners$"+gr,Ai="__reactHandles$"+gr,Ys="__reactResources$"+gr,Ia="__reactMarker$"+gr;function ml(t){delete t[Ht],delete t[hn],delete t[pl],delete t[Qs],delete t[Ai]}function bn(t){var r=t[Ht];if(r)return r;for(var l=t.parentNode;l;){if(r=l[na]||l[Ht]){if(l=r.alternate,r.child!==null||l!==null&&l.child!==null)for(t=f9(t);t!==null;){if(l=t[Ht])return l;t=f9(t)}return r}t=l,l=t.parentNode}return null}function Tr(t){if(t=t[Ht]||t[na]){var r=t.tag;if(r===5||r===6||r===13||r===31||r===26||r===27||r===3)return t}return null}function ra(t){var r=t.tag;if(r===5||r===26||r===27||r===6)return t.stateNode;throw Error(i(33))}function aa(t){var r=t[Ys];return r||(r=t[Ys]={hoistableStyles:new Map,hoistableScripts:new Map}),r}function Vt(t){t[Ia]=!0}var Ks=new Set,Ha={};function Rr(t,r){he(t,r),he(t+"Capture",r)}function he(t,r){for(Ha[t]=r,t=0;t<r.length;t++)Ks.add(r[t])}var Ne=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]*$"),Xe={},ht={};function qt(t){return At.call(ht,t)?!0:At.call(Xe,t)?!1:Ne.test(t)?ht[t]=!0:(Xe[t]=!0,!1)}function pn(t,r,l){if(qt(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 Pn(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 Dn(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 Ft(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function Un(t){var r=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(r==="checkbox"||r==="radio")}function Xs(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 h=o.get,E=o.set;return Object.defineProperty(t,r,{configurable:!0,get:function(){return h.call(this)},set:function(A){l=""+A,E.call(this,A)}}),Object.defineProperty(t,r,{enumerable:o.enumerable}),{getValue:function(){return l},setValue:function(A){l=""+A},stopTracking:function(){t._valueTracker=null,delete t[r]}}}}function Bi(t){if(!t._valueTracker){var r=Un(t)?"checked":"value";t._valueTracker=Xs(t,r,""+t[r])}}function El(t){if(!t)return!1;var r=t._valueTracker;if(!r)return!0;var l=r.getValue(),o="";return t&&(o=Un(t)?t.checked?"true":"false":t.value),t=o,t!==l?(r.setValue(t),!0):!1}function vi(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 X0=/[\n"\\]/g;function Fn(t){return t.replace(X0,function(r){return"\\"+r.charCodeAt(0).toString(16)+" "})}function gl(t,r,l,o,h,E,A,D){t.name="",A!=null&&typeof A!="function"&&typeof A!="symbol"&&typeof A!="boolean"?t.type=A:t.removeAttribute("type"),r!=null?A==="number"?(r===0&&t.value===""||t.value!=r)&&(t.value=""+Ft(r)):t.value!==""+Ft(r)&&(t.value=""+Ft(r)):A!=="submit"&&A!=="reset"||t.removeAttribute("value"),r!=null?ki(t,A,Ft(r)):l!=null?ki(t,A,Ft(l)):o!=null&&t.removeAttribute("value"),h==null&&E!=null&&(t.defaultChecked=!!E),h!=null&&(t.checked=h&&typeof h!="function"&&typeof h!="symbol"),D!=null&&typeof D!="function"&&typeof D!="symbol"&&typeof D!="boolean"?t.name=""+Ft(D):t.removeAttribute("name")}function qa(t,r,l,o,h,E,A,D){if(E!=null&&typeof E!="function"&&typeof E!="symbol"&&typeof E!="boolean"&&(t.type=E),r!=null||l!=null){if(!(E!=="submit"&&E!=="reset"||r!=null)){Bi(t);return}l=l!=null?""+Ft(l):"",r=r!=null?""+Ft(r):l,D||r===t.value||(t.value=r),t.defaultValue=r}o=o??h,o=typeof o!="function"&&typeof o!="symbol"&&!!o,t.checked=D?t.checked:!!o,t.defaultChecked=!!o,A!=null&&typeof A!="function"&&typeof A!="symbol"&&typeof A!="boolean"&&(t.name=A),Bi(t)}function ki(t,r,l){r==="number"&&vi(t.ownerDocument)===t||t.defaultValue===""+l||(t.defaultValue=""+l)}function an(t,r,l,o){if(t=t.options,r){r={};for(var h=0;h<l.length;h++)r["$"+l[h]]=!0;for(l=0;l<t.length;l++)h=r.hasOwnProperty("$"+t[l].value),t[l].selected!==h&&(t[l].selected=h),h&&o&&(t[l].defaultSelected=!0)}else{for(l=""+Ft(l),r=null,h=0;h<t.length;h++){if(t[h].value===l){t[h].selected=!0,o&&(t[h].defaultSelected=!0);return}r!==null||t[h].disabled||(r=t[h])}r!==null&&(r.selected=!0)}}function Zs(t,r,l){if(r!=null&&(r=""+Ft(r),r!==t.value&&(t.value=r),l==null)){t.defaultValue!==r&&(t.defaultValue=r);return}t.defaultValue=l!=null?""+Ft(l):""}function Di(t,r,l,o){if(r==null){if(o!=null){if(l!=null)throw Error(i(92));if(Q(o)){if(1<o.length)throw Error(i(93));o=o[0]}l=o}l==null&&(l=""),r=l}l=Ft(r),t.defaultValue=l,o=t.textContent,o===l&&o!==""&&o!==null&&(t.value=o),Bi(t)}function ze(t,r){if(r){var l=t.firstChild;if(l&&l===t.lastChild&&l.nodeType===3){l.nodeValue=r;return}}t.textContent=r}var Js=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 Qt(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||Js.has(r)?r==="float"?t.cssFloat=l:t[r]=(""+l).trim():t[r]=l+"px"}function pt(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 h in r)o=r[h],r.hasOwnProperty(h)&&l[h]!==o&&Qt(t,h,o)}else for(var E in r)r.hasOwnProperty(E)&&Qt(t,E,r[E])}function ia(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 Or=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"]]),yl=/^[\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 la(t){return yl.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function Ee(){}var Se=null;function $e(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var nt=null,zt=null;function Jn(t){var r=Tr(t);if(r&&(t=r.stateNode)){var l=t[hn]||null;e:switch(t=r.stateNode,r.type){case"input":if(gl(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="'+Fn(""+r)+'"][type="radio"]'),r=0;r<l.length;r++){var o=l[r];if(o!==t&&o.form===t.form){var h=o[hn]||null;if(!h)throw Error(i(90));gl(o,h.value,h.defaultValue,h.defaultValue,h.checked,h.defaultChecked,h.type,h.name)}}for(r=0;r<l.length;r++)o=l[r],o.form===t.form&&El(o)}break e;case"textarea":Zs(t,l.value,l.defaultValue);break e;case"select":r=l.value,r!=null&&an(t,!!l.multiple,r,!1)}}}var Cl=!1;function Ws(t,r,l){if(Cl)return t(r,l);Cl=!0;try{var o=t(r);return o}finally{if(Cl=!1,(nt!==null||zt!==null)&&(Io(),nt&&(r=nt,t=zt,zt=nt=null,Jn(r),t)))for(r=0;r<t.length;r++)Jn(t[r])}}function bl(t,r){var l=t.stateNode;if(l===null)return null;var o=l[hn]||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 jr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Z0=!1;if(jr)try{var Al={};Object.defineProperty(Al,"passive",{get:function(){Z0=!0}}),window.addEventListener("test",Al,Al),window.removeEventListener("test",Al,Al)}catch{Z0=!1}var sa=null,J0=null,eo=null;function id(){if(eo)return eo;var t,r=J0,l=r.length,o,h="value"in sa?sa.value:sa.textContent,E=h.length;for(t=0;t<l&&r[t]===h[t];t++);var A=l-t;for(o=1;o<=A&&r[l-o]===h[E-o];o++);return eo=h.slice(t,1<o?1-o:void 0)}function to(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 no(){return!0}function ld(){return!1}function wn(t){function r(l,o,h,E,A){this._reactName=l,this._targetInst=h,this.type=o,this.nativeEvent=E,this.target=A,this.currentTarget=null;for(var D in t)t.hasOwnProperty(D)&&(l=t[D],this[D]=l?l(E):E[D]);return this.isDefaultPrevented=(E.defaultPrevented!=null?E.defaultPrevented:E.returnValue===!1)?no:ld,this.isPropagationStopped=ld,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=no)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=no)},persist:function(){},isPersistent:no}),r}var $a={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ro=wn($a),Bl=p({},$a,{view:0,detail:0}),d5=wn(Bl),W0,ec,vl,ao=p({},Bl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:nc,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!==vl&&(vl&&t.type==="mousemove"?(W0=t.screenX-vl.screenX,ec=t.screenY-vl.screenY):ec=W0=0,vl=t),W0)},movementY:function(t){return"movementY"in t?t.movementY:ec}}),sd=wn(ao),h5=p({},ao,{dataTransfer:0}),p5=wn(h5),m5=p({},Bl,{relatedTarget:0}),tc=wn(m5),E5=p({},$a,{animationName:0,elapsedTime:0,pseudoElement:0}),g5=wn(E5),y5=p({},$a,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),C5=wn(y5),b5=p({},$a,{data:0}),od=wn(b5),A5={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},B5={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"},v5={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function k5(t){var r=this.nativeEvent;return r.getModifierState?r.getModifierState(t):(t=v5[t])?!!r[t]:!1}function nc(){return k5}var D5=p({},Bl,{key:function(t){if(t.key){var r=A5[t.key]||t.key;if(r!=="Unidentified")return r}return t.type==="keypress"?(t=to(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?B5[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:nc,charCode:function(t){return t.type==="keypress"?to(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?to(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),F5=wn(D5),w5=p({},ao,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),cd=wn(w5),S5=p({},Bl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:nc}),_5=wn(S5),M5=p({},$a,{propertyName:0,elapsedTime:0,pseudoElement:0}),N5=wn(M5),T5=p({},ao,{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}),R5=wn(T5),O5=p({},$a,{newState:0,oldState:0}),j5=wn(O5),z5=[9,13,27,32],rc=jr&&"CompositionEvent"in window,kl=null;jr&&"documentMode"in document&&(kl=document.documentMode);var L5=jr&&"TextEvent"in window&&!kl,xd=jr&&(!rc||kl&&8<kl&&11>=kl),ud=" ",fd=!1;function dd(t,r){switch(t){case"keyup":return z5.indexOf(r.keyCode)!==-1;case"keydown":return r.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function hd(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Fi=!1;function P5(t,r){switch(t){case"compositionend":return hd(r);case"keypress":return r.which!==32?null:(fd=!0,ud);case"textInput":return t=r.data,t===ud&&fd?null:t;default:return null}}function U5(t,r){if(Fi)return t==="compositionend"||!rc&&dd(t,r)?(t=id(),eo=J0=sa=null,Fi=!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 xd&&r.locale!=="ko"?null:r.data;default:return null}}var I5={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 pd(t){var r=t&&t.nodeName&&t.nodeName.toLowerCase();return r==="input"?!!I5[t.type]:r==="textarea"}function md(t,r,l,o){nt?zt?zt.push(o):zt=[o]:nt=o,r=Yo(r,"onChange"),0<r.length&&(l=new ro("onChange","change",null,l,o),t.push({event:l,listeners:r}))}var Dl=null,Fl=null;function H5(t){J1(t,0)}function io(t){var r=ra(t);if(El(r))return t}function Ed(t,r){if(t==="change")return r}var gd=!1;if(jr){var ac;if(jr){var ic="oninput"in document;if(!ic){var yd=document.createElement("div");yd.setAttribute("oninput","return;"),ic=typeof yd.oninput=="function"}ac=ic}else ac=!1;gd=ac&&(!document.documentMode||9<document.documentMode)}function Cd(){Dl&&(Dl.detachEvent("onpropertychange",bd),Fl=Dl=null)}function bd(t){if(t.propertyName==="value"&&io(Fl)){var r=[];md(r,Fl,t,$e(t)),Ws(H5,r)}}function q5(t,r,l){t==="focusin"?(Cd(),Dl=r,Fl=l,Dl.attachEvent("onpropertychange",bd)):t==="focusout"&&Cd()}function $5(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return io(Fl)}function G5(t,r){if(t==="click")return io(r)}function V5(t,r){if(t==="input"||t==="change")return io(r)}function Q5(t,r){return t===r&&(t!==0||1/t===1/r)||t!==t&&r!==r}var In=typeof Object.is=="function"?Object.is:Q5;function wl(t,r){if(In(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 h=l[o];if(!At.call(r,h)||!In(t[h],r[h]))return!1}return!0}function Ad(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function Bd(t,r){var l=Ad(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=Ad(l)}}function vd(t,r){return t&&r?t===r?!0:t&&t.nodeType===3?!1:r&&r.nodeType===3?vd(t,r.parentNode):"contains"in t?t.contains(r):t.compareDocumentPosition?!!(t.compareDocumentPosition(r)&16):!1:!1}function kd(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var r=vi(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=vi(t.document)}return r}function lc(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 Y5=jr&&"documentMode"in document&&11>=document.documentMode,wi=null,sc=null,Sl=null,oc=!1;function Dd(t,r,l){var o=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;oc||wi==null||wi!==vi(o)||(o=wi,"selectionStart"in o&&lc(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}),Sl&&wl(Sl,o)||(Sl=o,o=Yo(sc,"onSelect"),0<o.length&&(r=new ro("onSelect","select",null,r,l),t.push({event:r,listeners:o}),r.target=wi)))}function Ga(t,r){var l={};return l[t.toLowerCase()]=r.toLowerCase(),l["Webkit"+t]="webkit"+r,l["Moz"+t]="moz"+r,l}var Si={animationend:Ga("Animation","AnimationEnd"),animationiteration:Ga("Animation","AnimationIteration"),animationstart:Ga("Animation","AnimationStart"),transitionrun:Ga("Transition","TransitionRun"),transitionstart:Ga("Transition","TransitionStart"),transitioncancel:Ga("Transition","TransitionCancel"),transitionend:Ga("Transition","TransitionEnd")},cc={},Fd={};jr&&(Fd=document.createElement("div").style,"AnimationEvent"in window||(delete Si.animationend.animation,delete Si.animationiteration.animation,delete Si.animationstart.animation),"TransitionEvent"in window||delete Si.transitionend.transition);function Va(t){if(cc[t])return cc[t];if(!Si[t])return t;var r=Si[t],l;for(l in r)if(r.hasOwnProperty(l)&&l in Fd)return cc[t]=r[l];return t}var wd=Va("animationend"),Sd=Va("animationiteration"),_d=Va("animationstart"),K5=Va("transitionrun"),X5=Va("transitionstart"),Z5=Va("transitioncancel"),Md=Va("transitionend"),Nd=new Map,xc="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(" ");xc.push("scrollEnd");function fr(t,r){Nd.set(t,r),Rr(r,[t])}var lo=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)},Wn=[],_i=0,uc=0;function so(){for(var t=_i,r=uc=_i=0;r<t;){var l=Wn[r];Wn[r++]=null;var o=Wn[r];Wn[r++]=null;var h=Wn[r];Wn[r++]=null;var E=Wn[r];if(Wn[r++]=null,o!==null&&h!==null){var A=o.pending;A===null?h.next=h:(h.next=A.next,A.next=h),o.pending=h}E!==0&&Td(l,h,E)}}function oo(t,r,l,o){Wn[_i++]=t,Wn[_i++]=r,Wn[_i++]=l,Wn[_i++]=o,uc|=o,t.lanes|=o,t=t.alternate,t!==null&&(t.lanes|=o)}function fc(t,r,l,o){return oo(t,r,l,o),co(t)}function Qa(t,r){return oo(t,null,null,r),co(t)}function Td(t,r,l){t.lanes|=l;var o=t.alternate;o!==null&&(o.lanes|=l);for(var h=!1,E=t.return;E!==null;)E.childLanes|=l,o=E.alternate,o!==null&&(o.childLanes|=l),E.tag===22&&(t=E.stateNode,t===null||t._visibility&1||(h=!0)),t=E,E=E.return;return t.tag===3?(E=t.stateNode,h&&r!==null&&(h=31-dt(l),t=E.hiddenUpdates,o=t[h],o===null?t[h]=[r]:o.push(r),r.lane=l|536870912),E):null}function co(t){if(50<Zl)throw Zl=0,bx=null,Error(i(185));for(var r=t.return;r!==null;)t=r,r=t.return;return t.tag===3?t.stateNode:null}var Mi={};function J5(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 Hn(t,r,l,o){return new J5(t,r,l,o)}function dc(t){return t=t.prototype,!(!t||!t.isReactComponent)}function zr(t,r){var l=t.alternate;return l===null?(l=Hn(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 Rd(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 xo(t,r,l,o,h,E){var A=0;if(o=t,typeof t=="function")dc(t)&&(A=1);else if(typeof t=="string")A=r6(t,l,te.current)?26:t==="html"||t==="head"||t==="body"?27:5;else e:switch(t){case $:return t=Hn(31,l,r,h),t.elementType=$,t.lanes=E,t;case B:return Ya(l.children,h,E,r);case v:A=8,h|=24;break;case k:return t=Hn(12,l,r,h|2),t.elementType=k,t.lanes=E,t;case T:return t=Hn(13,l,r,h),t.elementType=T,t.lanes=E,t;case F:return t=Hn(19,l,r,h),t.elementType=F,t.lanes=E,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case _:A=10;break e;case R:A=9;break e;case N:A=11;break e;case O:A=14;break e;case L:A=16,o=null;break e}A=29,l=Error(i(130,t===null?"null":typeof t,"")),o=null}return r=Hn(A,l,r,h),r.elementType=t,r.type=o,r.lanes=E,r}function Ya(t,r,l,o){return t=Hn(7,t,o,r),t.lanes=l,t}function hc(t,r,l){return t=Hn(6,t,null,r),t.lanes=l,t}function Od(t){var r=Hn(18,null,null,0);return r.stateNode=t,r}function pc(t,r,l){return r=Hn(4,t.children!==null?t.children:[],t.key,r),r.lanes=l,r.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},r}var jd=new WeakMap;function er(t,r){if(typeof t=="object"&&t!==null){var l=jd.get(t);return l!==void 0?l:(r={value:t,source:r,stack:fn(r)},jd.set(t,r),r)}return{value:t,source:r,stack:fn(r)}}var Ni=[],Ti=0,uo=null,_l=0,tr=[],nr=0,oa=null,yr=1,Cr="";function Lr(t,r){Ni[Ti++]=_l,Ni[Ti++]=uo,uo=t,_l=r}function zd(t,r,l){tr[nr++]=yr,tr[nr++]=Cr,tr[nr++]=oa,oa=t;var o=yr;t=Cr;var h=32-dt(o)-1;o&=~(1<<h),l+=1;var E=32-dt(r)+h;if(30<E){var A=h-h%5;E=(o&(1<<A)-1).toString(32),o>>=A,h-=A,yr=1<<32-dt(r)+h|l<<h|o,Cr=E+t}else yr=1<<E|l<<h|o,Cr=t}function mc(t){t.return!==null&&(Lr(t,1),zd(t,1,0))}function Ec(t){for(;t===uo;)uo=Ni[--Ti],Ni[Ti]=null,_l=Ni[--Ti],Ni[Ti]=null;for(;t===oa;)oa=tr[--nr],tr[nr]=null,Cr=tr[--nr],tr[nr]=null,yr=tr[--nr],tr[nr]=null}function Ld(t,r){tr[nr++]=yr,tr[nr++]=Cr,tr[nr++]=oa,yr=r.id,Cr=r.overflow,oa=t}var ln=null,St=null,it=!1,ca=null,rr=!1,gc=Error(i(519));function xa(t){var r=Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Ml(er(r,t)),gc}function Pd(t){var r=t.stateNode,l=t.type,o=t.memoizedProps;switch(r[Ht]=t,r[hn]=o,l){case"dialog":We("cancel",r),We("close",r);break;case"iframe":case"object":case"embed":We("load",r);break;case"video":case"audio":for(l=0;l<Wl.length;l++)We(Wl[l],r);break;case"source":We("error",r);break;case"img":case"image":case"link":We("error",r),We("load",r);break;case"details":We("toggle",r);break;case"input":We("invalid",r),qa(r,o.value,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name,!0);break;case"select":We("invalid",r);break;case"textarea":We("invalid",r),Di(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||n9(r.textContent,l)?(o.popover!=null&&(We("beforetoggle",r),We("toggle",r)),o.onScroll!=null&&We("scroll",r),o.onScrollEnd!=null&&We("scrollend",r),o.onClick!=null&&(r.onclick=Ee),r=!0):r=!1,r||xa(t,!0)}function Ud(t){for(ln=t.return;ln;)switch(ln.tag){case 5:case 31:case 13:rr=!1;return;case 27:case 3:rr=!0;return;default:ln=ln.return}}function Ri(t){if(t!==ln)return!1;if(!it)return Ud(t),it=!0,!1;var r=t.tag,l;if((l=r!==3&&r!==27)&&((l=r===5)&&(l=t.type,l=!(l!=="form"&&l!=="button")||jx(t.type,t.memoizedProps)),l=!l),l&&St&&xa(t),Ud(t),r===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(i(317));St=u9(t)}else if(r===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(i(317));St=u9(t)}else r===27?(r=St,va(t.type)?(t=Ix,Ix=null,St=t):St=r):St=ln?ir(t.stateNode.nextSibling):null;return!0}function Ka(){St=ln=null,it=!1}function yc(){var t=ca;return t!==null&&(Nn===null?Nn=t:Nn.push.apply(Nn,t),ca=null),t}function Ml(t){ca===null?ca=[t]:ca.push(t)}var Cc=j(null),Xa=null,Pr=null;function ua(t,r,l){M(Cc,r._currentValue),r._currentValue=l}function Ur(t){t._currentValue=Cc.current,J(Cc)}function bc(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 Ac(t,r,l,o){var h=t.child;for(h!==null&&(h.return=t);h!==null;){var E=h.dependencies;if(E!==null){var A=h.child;E=E.firstContext;e:for(;E!==null;){var D=E;E=h;for(var P=0;P<r.length;P++)if(D.context===r[P]){E.lanes|=l,D=E.alternate,D!==null&&(D.lanes|=l),bc(E.return,l,t),o||(A=null);break e}E=D.next}}else if(h.tag===18){if(A=h.return,A===null)throw Error(i(341));A.lanes|=l,E=A.alternate,E!==null&&(E.lanes|=l),bc(A,l,t),A=null}else A=h.child;if(A!==null)A.return=h;else for(A=h;A!==null;){if(A===t){A=null;break}if(h=A.sibling,h!==null){h.return=A.return,A=h;break}A=A.return}h=A}}function Oi(t,r,l,o){t=null;for(var h=r,E=!1;h!==null;){if(!E){if((h.flags&524288)!==0)E=!0;else if((h.flags&262144)!==0)break}if(h.tag===10){var A=h.alternate;if(A===null)throw Error(i(387));if(A=A.memoizedProps,A!==null){var D=h.type;In(h.pendingProps.value,A.value)||(t!==null?t.push(D):t=[D])}}else if(h===Ce.current){if(A=h.alternate,A===null)throw Error(i(387));A.memoizedState.memoizedState!==h.memoizedState.memoizedState&&(t!==null?t.push(as):t=[as])}h=h.return}t!==null&&Ac(r,t,l,o),r.flags|=262144}function fo(t){for(t=t.firstContext;t!==null;){if(!In(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function Za(t){Xa=t,Pr=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function sn(t){return Id(Xa,t)}function ho(t,r){return Xa===null&&Za(t),Id(t,r)}function Id(t,r){var l=r._currentValue;if(r={context:r,memoizedValue:l,next:null},Pr===null){if(t===null)throw Error(i(308));Pr=r,t.dependencies={lanes:0,firstContext:r},t.flags|=524288}else Pr=Pr.next=r;return l}var W5=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()})}},eg=e.unstable_scheduleCallback,tg=e.unstable_NormalPriority,Yt={$$typeof:_,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Bc(){return{controller:new W5,data:new Map,refCount:0}}function Nl(t){t.refCount--,t.refCount===0&&eg(tg,function(){t.controller.abort()})}var Tl=null,vc=0,ji=0,zi=null;function ng(t,r){if(Tl===null){var l=Tl=[];vc=0,ji=Fx(),zi={status:"pending",value:void 0,then:function(o){l.push(o)}}}return vc++,r.then(Hd,Hd),r}function Hd(){if(--vc===0&&Tl!==null){zi!==null&&(zi.status="fulfilled");var t=Tl;Tl=null,ji=0,zi=null;for(var r=0;r<t.length;r++)(0,t[r])()}}function rg(t,r){var l=[],o={status:"pending",value:null,reason:null,then:function(h){l.push(h)}};return t.then(function(){o.status="fulfilled",o.value=r;for(var h=0;h<l.length;h++)(0,l[h])(r)},function(h){for(o.status="rejected",o.reason=h,h=0;h<l.length;h++)(0,l[h])(void 0)}),o}var qd=U.S;U.S=function(t,r){D1=jt(),typeof r=="object"&&r!==null&&typeof r.then=="function"&&ng(t,r),qd!==null&&qd(t,r)};var Ja=j(null);function kc(){var t=Ja.current;return t!==null?t:vt.pooledCache}function po(t,r){r===null?M(Ja,Ja.current):M(Ja,r.pool)}function $d(){var t=kc();return t===null?null:{parent:Yt._currentValue,pool:t}}var Li=Error(i(460)),Dc=Error(i(474)),mo=Error(i(542)),Eo={then:function(){}};function Gd(t){return t=t.status,t==="fulfilled"||t==="rejected"}function Vd(t,r,l){switch(l=t[l],l===void 0?t.push(r):l!==r&&(r.then(Ee,Ee),r=l),r.status){case"fulfilled":return r.value;case"rejected":throw t=r.reason,Yd(t),t;default:if(typeof r.status=="string")r.then(Ee,Ee);else{if(t=vt,t!==null&&100<t.shellSuspendCounter)throw Error(i(482));t=r,t.status="pending",t.then(function(o){if(r.status==="pending"){var h=r;h.status="fulfilled",h.value=o}},function(o){if(r.status==="pending"){var h=r;h.status="rejected",h.reason=o}})}switch(r.status){case"fulfilled":return r.value;case"rejected":throw t=r.reason,Yd(t),t}throw ei=r,Li}}function Wa(t){try{var r=t._init;return r(t._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(ei=l,Li):l}}var ei=null;function Qd(){if(ei===null)throw Error(i(459));var t=ei;return ei=null,t}function Yd(t){if(t===Li||t===mo)throw Error(i(483))}var Pi=null,Rl=0;function go(t){var r=Rl;return Rl+=1,Pi===null&&(Pi=[]),Vd(Pi,t,r)}function Ol(t,r){r=r.props.ref,t.ref=r!==void 0?r:null}function yo(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 Kd(t){function r(Y,q){if(t){var W=Y.deletions;W===null?(Y.deletions=[q],Y.flags|=16):W.push(q)}}function l(Y,q){if(!t)return null;for(;q!==null;)r(Y,q),q=q.sibling;return null}function o(Y){for(var q=new Map;Y!==null;)Y.key!==null?q.set(Y.key,Y):q.set(Y.index,Y),Y=Y.sibling;return q}function h(Y,q){return Y=zr(Y,q),Y.index=0,Y.sibling=null,Y}function E(Y,q,W){return Y.index=W,t?(W=Y.alternate,W!==null?(W=W.index,W<q?(Y.flags|=67108866,q):W):(Y.flags|=67108866,q)):(Y.flags|=1048576,q)}function A(Y){return t&&Y.alternate===null&&(Y.flags|=67108866),Y}function D(Y,q,W,ce){return q===null||q.tag!==6?(q=hc(W,Y.mode,ce),q.return=Y,q):(q=h(q,W),q.return=Y,q)}function P(Y,q,W,ce){var Te=W.type;return Te===B?se(Y,q,W.props.children,ce,W.key):q!==null&&(q.elementType===Te||typeof Te=="object"&&Te!==null&&Te.$$typeof===L&&Wa(Te)===q.type)?(q=h(q,W.props),Ol(q,W),q.return=Y,q):(q=xo(W.type,W.key,W.props,null,Y.mode,ce),Ol(q,W),q.return=Y,q)}function ee(Y,q,W,ce){return q===null||q.tag!==4||q.stateNode.containerInfo!==W.containerInfo||q.stateNode.implementation!==W.implementation?(q=pc(W,Y.mode,ce),q.return=Y,q):(q=h(q,W.children||[]),q.return=Y,q)}function se(Y,q,W,ce,Te){return q===null||q.tag!==7?(q=Ya(W,Y.mode,ce,Te),q.return=Y,q):(q=h(q,W),q.return=Y,q)}function xe(Y,q,W){if(typeof q=="string"&&q!==""||typeof q=="number"||typeof q=="bigint")return q=hc(""+q,Y.mode,W),q.return=Y,q;if(typeof q=="object"&&q!==null){switch(q.$$typeof){case C:return W=xo(q.type,q.key,q.props,null,Y.mode,W),Ol(W,q),W.return=Y,W;case b:return q=pc(q,Y.mode,W),q.return=Y,q;case L:return q=Wa(q),xe(Y,q,W)}if(Q(q)||K(q))return q=Ya(q,Y.mode,W,null),q.return=Y,q;if(typeof q.then=="function")return xe(Y,go(q),W);if(q.$$typeof===_)return xe(Y,ho(Y,q),W);yo(Y,q)}return null}function ne(Y,q,W,ce){var Te=q!==null?q.key:null;if(typeof W=="string"&&W!==""||typeof W=="number"||typeof W=="bigint")return Te!==null?null:D(Y,q,""+W,ce);if(typeof W=="object"&&W!==null){switch(W.$$typeof){case C:return W.key===Te?P(Y,q,W,ce):null;case b:return W.key===Te?ee(Y,q,W,ce):null;case L:return W=Wa(W),ne(Y,q,W,ce)}if(Q(W)||K(W))return Te!==null?null:se(Y,q,W,ce,null);if(typeof W.then=="function")return ne(Y,q,go(W),ce);if(W.$$typeof===_)return ne(Y,q,ho(Y,W),ce);yo(Y,W)}return null}function ae(Y,q,W,ce,Te){if(typeof ce=="string"&&ce!==""||typeof ce=="number"||typeof ce=="bigint")return Y=Y.get(W)||null,D(q,Y,""+ce,Te);if(typeof ce=="object"&&ce!==null){switch(ce.$$typeof){case C:return Y=Y.get(ce.key===null?W:ce.key)||null,P(q,Y,ce,Te);case b:return Y=Y.get(ce.key===null?W:ce.key)||null,ee(q,Y,ce,Te);case L:return ce=Wa(ce),ae(Y,q,W,ce,Te)}if(Q(ce)||K(ce))return Y=Y.get(W)||null,se(q,Y,ce,Te,null);if(typeof ce.then=="function")return ae(Y,q,W,go(ce),Te);if(ce.$$typeof===_)return ae(Y,q,W,ho(q,ce),Te);yo(q,ce)}return null}function ve(Y,q,W,ce){for(var Te=null,ot=null,_e=q,Ve=q=0,at=null;_e!==null&&Ve<W.length;Ve++){_e.index>Ve?(at=_e,_e=null):at=_e.sibling;var ct=ne(Y,_e,W[Ve],ce);if(ct===null){_e===null&&(_e=at);break}t&&_e&&ct.alternate===null&&r(Y,_e),q=E(ct,q,Ve),ot===null?Te=ct:ot.sibling=ct,ot=ct,_e=at}if(Ve===W.length)return l(Y,_e),it&&Lr(Y,Ve),Te;if(_e===null){for(;Ve<W.length;Ve++)_e=xe(Y,W[Ve],ce),_e!==null&&(q=E(_e,q,Ve),ot===null?Te=_e:ot.sibling=_e,ot=_e);return it&&Lr(Y,Ve),Te}for(_e=o(_e);Ve<W.length;Ve++)at=ae(_e,Y,Ve,W[Ve],ce),at!==null&&(t&&at.alternate!==null&&_e.delete(at.key===null?Ve:at.key),q=E(at,q,Ve),ot===null?Te=at:ot.sibling=at,ot=at);return t&&_e.forEach(function(Sa){return r(Y,Sa)}),it&&Lr(Y,Ve),Te}function je(Y,q,W,ce){if(W==null)throw Error(i(151));for(var Te=null,ot=null,_e=q,Ve=q=0,at=null,ct=W.next();_e!==null&&!ct.done;Ve++,ct=W.next()){_e.index>Ve?(at=_e,_e=null):at=_e.sibling;var Sa=ne(Y,_e,ct.value,ce);if(Sa===null){_e===null&&(_e=at);break}t&&_e&&Sa.alternate===null&&r(Y,_e),q=E(Sa,q,Ve),ot===null?Te=Sa:ot.sibling=Sa,ot=Sa,_e=at}if(ct.done)return l(Y,_e),it&&Lr(Y,Ve),Te;if(_e===null){for(;!ct.done;Ve++,ct=W.next())ct=xe(Y,ct.value,ce),ct!==null&&(q=E(ct,q,Ve),ot===null?Te=ct:ot.sibling=ct,ot=ct);return it&&Lr(Y,Ve),Te}for(_e=o(_e);!ct.done;Ve++,ct=W.next())ct=ae(_e,Y,Ve,ct.value,ce),ct!==null&&(t&&ct.alternate!==null&&_e.delete(ct.key===null?Ve:ct.key),q=E(ct,q,Ve),ot===null?Te=ct:ot.sibling=ct,ot=ct);return t&&_e.forEach(function(h6){return r(Y,h6)}),it&&Lr(Y,Ve),Te}function Ct(Y,q,W,ce){if(typeof W=="object"&&W!==null&&W.type===B&&W.key===null&&(W=W.props.children),typeof W=="object"&&W!==null){switch(W.$$typeof){case C:e:{for(var Te=W.key;q!==null;){if(q.key===Te){if(Te=W.type,Te===B){if(q.tag===7){l(Y,q.sibling),ce=h(q,W.props.children),ce.return=Y,Y=ce;break e}}else if(q.elementType===Te||typeof Te=="object"&&Te!==null&&Te.$$typeof===L&&Wa(Te)===q.type){l(Y,q.sibling),ce=h(q,W.props),Ol(ce,W),ce.return=Y,Y=ce;break e}l(Y,q);break}else r(Y,q);q=q.sibling}W.type===B?(ce=Ya(W.props.children,Y.mode,ce,W.key),ce.return=Y,Y=ce):(ce=xo(W.type,W.key,W.props,null,Y.mode,ce),Ol(ce,W),ce.return=Y,Y=ce)}return A(Y);case b:e:{for(Te=W.key;q!==null;){if(q.key===Te)if(q.tag===4&&q.stateNode.containerInfo===W.containerInfo&&q.stateNode.implementation===W.implementation){l(Y,q.sibling),ce=h(q,W.children||[]),ce.return=Y,Y=ce;break e}else{l(Y,q);break}else r(Y,q);q=q.sibling}ce=pc(W,Y.mode,ce),ce.return=Y,Y=ce}return A(Y);case L:return W=Wa(W),Ct(Y,q,W,ce)}if(Q(W))return ve(Y,q,W,ce);if(K(W)){if(Te=K(W),typeof Te!="function")throw Error(i(150));return W=Te.call(W),je(Y,q,W,ce)}if(typeof W.then=="function")return Ct(Y,q,go(W),ce);if(W.$$typeof===_)return Ct(Y,q,ho(Y,W),ce);yo(Y,W)}return typeof W=="string"&&W!==""||typeof W=="number"||typeof W=="bigint"?(W=""+W,q!==null&&q.tag===6?(l(Y,q.sibling),ce=h(q,W),ce.return=Y,Y=ce):(l(Y,q),ce=hc(W,Y.mode,ce),ce.return=Y,Y=ce),A(Y)):l(Y,q)}return function(Y,q,W,ce){try{Rl=0;var Te=Ct(Y,q,W,ce);return Pi=null,Te}catch(_e){if(_e===Li||_e===mo)throw _e;var ot=Hn(29,_e,null,Y.mode);return ot.lanes=ce,ot.return=Y,ot}}}var ti=Kd(!0),Xd=Kd(!1),fa=!1;function Fc(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function wc(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 da(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function ha(t,r,l){var o=t.updateQueue;if(o===null)return null;if(o=o.shared,(xt&2)!==0){var h=o.pending;return h===null?r.next=r:(r.next=h.next,h.next=r),o.pending=r,r=co(t),Td(t,null,l),r}return oo(t,o,r,l),co(t)}function jl(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,Le(t,l)}}function Sc(t,r){var l=t.updateQueue,o=t.alternate;if(o!==null&&(o=o.updateQueue,l===o)){var h=null,E=null;if(l=l.firstBaseUpdate,l!==null){do{var A={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};E===null?h=E=A:E=E.next=A,l=l.next}while(l!==null);E===null?h=E=r:E=E.next=r}else h=E=r;l={baseState:o.baseState,firstBaseUpdate:h,lastBaseUpdate:E,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 _c=!1;function zl(){if(_c){var t=zi;if(t!==null)throw t}}function Ll(t,r,l,o){_c=!1;var h=t.updateQueue;fa=!1;var E=h.firstBaseUpdate,A=h.lastBaseUpdate,D=h.shared.pending;if(D!==null){h.shared.pending=null;var P=D,ee=P.next;P.next=null,A===null?E=ee:A.next=ee,A=P;var se=t.alternate;se!==null&&(se=se.updateQueue,D=se.lastBaseUpdate,D!==A&&(D===null?se.firstBaseUpdate=ee:D.next=ee,se.lastBaseUpdate=P))}if(E!==null){var xe=h.baseState;A=0,se=ee=P=null,D=E;do{var ne=D.lane&-536870913,ae=ne!==D.lane;if(ae?(rt&ne)===ne:(o&ne)===ne){ne!==0&&ne===ji&&(_c=!0),se!==null&&(se=se.next={lane:0,tag:D.tag,payload:D.payload,callback:null,next:null});e:{var ve=t,je=D;ne=r;var Ct=l;switch(je.tag){case 1:if(ve=je.payload,typeof ve=="function"){xe=ve.call(Ct,xe,ne);break e}xe=ve;break e;case 3:ve.flags=ve.flags&-65537|128;case 0:if(ve=je.payload,ne=typeof ve=="function"?ve.call(Ct,xe,ne):ve,ne==null)break e;xe=p({},xe,ne);break e;case 2:fa=!0}}ne=D.callback,ne!==null&&(t.flags|=64,ae&&(t.flags|=8192),ae=h.callbacks,ae===null?h.callbacks=[ne]:ae.push(ne))}else ae={lane:ne,tag:D.tag,payload:D.payload,callback:D.callback,next:null},se===null?(ee=se=ae,P=xe):se=se.next=ae,A|=ne;if(D=D.next,D===null){if(D=h.shared.pending,D===null)break;ae=D,D=ae.next,ae.next=null,h.lastBaseUpdate=ae,h.shared.pending=null}}while(!0);se===null&&(P=xe),h.baseState=P,h.firstBaseUpdate=ee,h.lastBaseUpdate=se,E===null&&(h.shared.lanes=0),ya|=A,t.lanes=A,t.memoizedState=xe}}function Zd(t,r){if(typeof t!="function")throw Error(i(191,t));t.call(r)}function Jd(t,r){var l=t.callbacks;if(l!==null)for(t.callbacks=null,t=0;t<l.length;t++)Zd(l[t],r)}var Ui=j(null),Co=j(0);function Wd(t,r){t=Kr,M(Co,t),M(Ui,r),Kr=t|r.baseLanes}function Mc(){M(Co,Kr),M(Ui,Ui.current)}function Nc(){Kr=Co.current,J(Ui),J(Co)}var qn=j(null),ar=null;function pa(t){var r=t.alternate;M($t,$t.current&1),M(qn,t),ar===null&&(r===null||Ui.current!==null||r.memoizedState!==null)&&(ar=t)}function Tc(t){M($t,$t.current),M(qn,t),ar===null&&(ar=t)}function eh(t){t.tag===22?(M($t,$t.current),M(qn,t),ar===null&&(ar=t)):ma()}function ma(){M($t,$t.current),M(qn,qn.current)}function $n(t){J(qn),ar===t&&(ar=null),J($t)}var $t=j(0);function bo(t){for(var r=t;r!==null;){if(r.tag===13){var l=r.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||Px(l)||Ux(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 Ir=0,Ge=null,gt=null,Kt=null,Ao=!1,Ii=!1,ni=!1,Bo=0,Pl=0,Hi=null,ag=0;function Pt(){throw Error(i(321))}function Rc(t,r){if(r===null)return!1;for(var l=0;l<r.length&&l<t.length;l++)if(!In(t[l],r[l]))return!1;return!0}function Oc(t,r,l,o,h,E){return Ir=E,Ge=r,r.memoizedState=null,r.updateQueue=null,r.lanes=0,U.H=t===null||t.memoizedState===null?zh:Xc,ni=!1,E=l(o,h),ni=!1,Ii&&(E=nh(r,l,o,h)),th(t),E}function th(t){U.H=Hl;var r=gt!==null&>.next!==null;if(Ir=0,Kt=gt=Ge=null,Ao=!1,Pl=0,Hi=null,r)throw Error(i(300));t===null||Xt||(t=t.dependencies,t!==null&&fo(t)&&(Xt=!0))}function nh(t,r,l,o){Ge=t;var h=0;do{if(Ii&&(Hi=null),Pl=0,Ii=!1,25<=h)throw Error(i(301));if(h+=1,Kt=gt=null,t.updateQueue!=null){var E=t.updateQueue;E.lastEffect=null,E.events=null,E.stores=null,E.memoCache!=null&&(E.memoCache.index=0)}U.H=Lh,E=r(l,o)}while(Ii);return E}function ig(){var t=U.H,r=t.useState()[0];return r=typeof r.then=="function"?Ul(r):r,t=t.useState()[0],(gt!==null?gt.memoizedState:null)!==t&&(Ge.flags|=1024),r}function jc(){var t=Bo!==0;return Bo=0,t}function zc(t,r,l){r.updateQueue=t.updateQueue,r.flags&=-2053,t.lanes&=~l}function Lc(t){if(Ao){for(t=t.memoizedState;t!==null;){var r=t.queue;r!==null&&(r.pending=null),t=t.next}Ao=!1}Ir=0,Kt=gt=Ge=null,Ii=!1,Pl=Bo=0,Hi=null}function An(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Kt===null?Ge.memoizedState=Kt=t:Kt=Kt.next=t,Kt}function Gt(){if(gt===null){var t=Ge.alternate;t=t!==null?t.memoizedState:null}else t=gt.next;var r=Kt===null?Ge.memoizedState:Kt.next;if(r!==null)Kt=r,gt=t;else{if(t===null)throw Ge.alternate===null?Error(i(467)):Error(i(310));gt=t,t={memoizedState:gt.memoizedState,baseState:gt.baseState,baseQueue:gt.baseQueue,queue:gt.queue,next:null},Kt===null?Ge.memoizedState=Kt=t:Kt=Kt.next=t}return Kt}function vo(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Ul(t){var r=Pl;return Pl+=1,Hi===null&&(Hi=[]),t=Vd(Hi,t,r),r=Ge,(Kt===null?r.memoizedState:Kt.next)===null&&(r=r.alternate,U.H=r===null||r.memoizedState===null?zh:Xc),t}function ko(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return Ul(t);if(t.$$typeof===_)return sn(t)}throw Error(i(438,String(t)))}function Pc(t){var r=null,l=Ge.updateQueue;if(l!==null&&(r=l.memoCache),r==null){var o=Ge.alternate;o!==null&&(o=o.updateQueue,o!==null&&(o=o.memoCache,o!=null&&(r={data:o.data.map(function(h){return h.slice()}),index:0})))}if(r==null&&(r={data:[],index:0}),l===null&&(l=vo(),Ge.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]=z;return r.index++,l}function Hr(t,r){return typeof r=="function"?r(t):r}function Do(t){var r=Gt();return Uc(r,gt,t)}function Uc(t,r,l){var o=t.queue;if(o===null)throw Error(i(311));o.lastRenderedReducer=l;var h=t.baseQueue,E=o.pending;if(E!==null){if(h!==null){var A=h.next;h.next=E.next,E.next=A}r.baseQueue=h=E,o.pending=null}if(E=t.baseState,h===null)t.memoizedState=E;else{r=h.next;var D=A=null,P=null,ee=r,se=!1;do{var xe=ee.lane&-536870913;if(xe!==ee.lane?(rt&xe)===xe:(Ir&xe)===xe){var ne=ee.revertLane;if(ne===0)P!==null&&(P=P.next={lane:0,revertLane:0,gesture:null,action:ee.action,hasEagerState:ee.hasEagerState,eagerState:ee.eagerState,next:null}),xe===ji&&(se=!0);else if((Ir&ne)===ne){ee=ee.next,ne===ji&&(se=!0);continue}else xe={lane:0,revertLane:ee.revertLane,gesture:null,action:ee.action,hasEagerState:ee.hasEagerState,eagerState:ee.eagerState,next:null},P===null?(D=P=xe,A=E):P=P.next=xe,Ge.lanes|=ne,ya|=ne;xe=ee.action,ni&&l(E,xe),E=ee.hasEagerState?ee.eagerState:l(E,xe)}else ne={lane:xe,revertLane:ee.revertLane,gesture:ee.gesture,action:ee.action,hasEagerState:ee.hasEagerState,eagerState:ee.eagerState,next:null},P===null?(D=P=ne,A=E):P=P.next=ne,Ge.lanes|=xe,ya|=xe;ee=ee.next}while(ee!==null&&ee!==r);if(P===null?A=E:P.next=D,!In(E,t.memoizedState)&&(Xt=!0,se&&(l=zi,l!==null)))throw l;t.memoizedState=E,t.baseState=A,t.baseQueue=P,o.lastRenderedState=E}return h===null&&(o.lanes=0),[t.memoizedState,o.dispatch]}function Ic(t){var r=Gt(),l=r.queue;if(l===null)throw Error(i(311));l.lastRenderedReducer=t;var o=l.dispatch,h=l.pending,E=r.memoizedState;if(h!==null){l.pending=null;var A=h=h.next;do E=t(E,A.action),A=A.next;while(A!==h);In(E,r.memoizedState)||(Xt=!0),r.memoizedState=E,r.baseQueue===null&&(r.baseState=E),l.lastRenderedState=E}return[E,o]}function rh(t,r,l){var o=Ge,h=Gt(),E=it;if(E){if(l===void 0)throw Error(i(407));l=l()}else l=r();var A=!In((gt||h).memoizedState,l);if(A&&(h.memoizedState=l,Xt=!0),h=h.queue,$c(lh.bind(null,o,h,t),[t]),h.getSnapshot!==r||A||Kt!==null&&Kt.memoizedState.tag&1){if(o.flags|=2048,qi(9,{destroy:void 0},ih.bind(null,o,h,l,r),null),vt===null)throw Error(i(349));E||(Ir&127)!==0||ah(o,r,l)}return l}function ah(t,r,l){t.flags|=16384,t={getSnapshot:r,value:l},r=Ge.updateQueue,r===null?(r=vo(),Ge.updateQueue=r,r.stores=[t]):(l=r.stores,l===null?r.stores=[t]:l.push(t))}function ih(t,r,l,o){r.value=l,r.getSnapshot=o,sh(r)&&oh(t)}function lh(t,r,l){return l(function(){sh(r)&&oh(t)})}function sh(t){var r=t.getSnapshot;t=t.value;try{var l=r();return!In(t,l)}catch{return!0}}function oh(t){var r=Qa(t,2);r!==null&&Tn(r,t,2)}function Hc(t){var r=An();if(typeof t=="function"){var l=t;if(t=l(),ni){dn(!0);try{l()}finally{dn(!1)}}}return r.memoizedState=r.baseState=t,r.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Hr,lastRenderedState:t},r}function ch(t,r,l,o){return t.baseState=l,Uc(t,gt,typeof o=="function"?o:Hr)}function lg(t,r,l,o,h){if(So(t))throw Error(i(485));if(t=r.action,t!==null){var E={payload:h,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(A){E.listeners.push(A)}};U.T!==null?l(!0):E.isTransition=!1,o(E),l=r.pending,l===null?(E.next=r.pending=E,xh(r,E)):(E.next=l.next,r.pending=l.next=E)}}function xh(t,r){var l=r.action,o=r.payload,h=t.state;if(r.isTransition){var E=U.T,A={};U.T=A;try{var D=l(h,o),P=U.S;P!==null&&P(A,D),uh(t,r,D)}catch(ee){qc(t,r,ee)}finally{E!==null&&A.types!==null&&(E.types=A.types),U.T=E}}else try{E=l(h,o),uh(t,r,E)}catch(ee){qc(t,r,ee)}}function uh(t,r,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(o){fh(t,r,o)},function(o){return qc(t,r,o)}):fh(t,r,l)}function fh(t,r,l){r.status="fulfilled",r.value=l,dh(r),t.state=l,r=t.pending,r!==null&&(l=r.next,l===r?t.pending=null:(l=l.next,r.next=l,xh(t,l)))}function qc(t,r,l){var o=t.pending;if(t.pending=null,o!==null){o=o.next;do r.status="rejected",r.reason=l,dh(r),r=r.next;while(r!==o)}t.action=null}function dh(t){t=t.listeners;for(var r=0;r<t.length;r++)(0,t[r])()}function hh(t,r){return r}function ph(t,r){if(it){var l=vt.formState;if(l!==null){e:{var o=Ge;if(it){if(St){t:{for(var h=St,E=rr;h.nodeType!==8;){if(!E){h=null;break t}if(h=ir(h.nextSibling),h===null){h=null;break t}}E=h.data,h=E==="F!"||E==="F"?h:null}if(h){St=ir(h.nextSibling),o=h.data==="F!";break e}}xa(o)}o=!1}o&&(r=l[0])}}return l=An(),l.memoizedState=l.baseState=r,o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:hh,lastRenderedState:r},l.queue=o,l=Rh.bind(null,Ge,o),o.dispatch=l,o=Hc(!1),E=Kc.bind(null,Ge,!1,o.queue),o=An(),h={state:r,dispatch:null,action:t,pending:null},o.queue=h,l=lg.bind(null,Ge,h,E,l),h.dispatch=l,o.memoizedState=t,[r,l,!1]}function mh(t){var r=Gt();return Eh(r,gt,t)}function Eh(t,r,l){if(r=Uc(t,r,hh)[0],t=Do(Hr)[0],typeof r=="object"&&r!==null&&typeof r.then=="function")try{var o=Ul(r)}catch(A){throw A===Li?mo:A}else o=r;r=Gt();var h=r.queue,E=h.dispatch;return l!==r.memoizedState&&(Ge.flags|=2048,qi(9,{destroy:void 0},sg.bind(null,h,l),null)),[o,E,t]}function sg(t,r){t.action=r}function gh(t){var r=Gt(),l=gt;if(l!==null)return Eh(r,l,t);Gt(),r=r.memoizedState,l=Gt();var o=l.queue.dispatch;return l.memoizedState=t,[r,o,!1]}function qi(t,r,l,o){return t={tag:t,create:l,deps:o,inst:r,next:null},r=Ge.updateQueue,r===null&&(r=vo(),Ge.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 yh(){return Gt().memoizedState}function Fo(t,r,l,o){var h=An();Ge.flags|=t,h.memoizedState=qi(1|r,{destroy:void 0},l,o===void 0?null:o)}function wo(t,r,l,o){var h=Gt();o=o===void 0?null:o;var E=h.memoizedState.inst;gt!==null&&o!==null&&Rc(o,gt.memoizedState.deps)?h.memoizedState=qi(r,E,l,o):(Ge.flags|=t,h.memoizedState=qi(1|r,E,l,o))}function Ch(t,r){Fo(8390656,8,t,r)}function $c(t,r){wo(2048,8,t,r)}function og(t){Ge.flags|=4;var r=Ge.updateQueue;if(r===null)r=vo(),Ge.updateQueue=r,r.events=[t];else{var l=r.events;l===null?r.events=[t]:l.push(t)}}function bh(t){var r=Gt().memoizedState;return og({ref:r,nextImpl:t}),function(){if((xt&2)!==0)throw Error(i(440));return r.impl.apply(void 0,arguments)}}function Ah(t,r){return wo(4,2,t,r)}function Bh(t,r){return wo(4,4,t,r)}function vh(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 kh(t,r,l){l=l!=null?l.concat([t]):null,wo(4,4,vh.bind(null,r,t),l)}function Gc(){}function Dh(t,r){var l=Gt();r=r===void 0?null:r;var o=l.memoizedState;return r!==null&&Rc(r,o[1])?o[0]:(l.memoizedState=[t,r],t)}function Fh(t,r){var l=Gt();r=r===void 0?null:r;var o=l.memoizedState;if(r!==null&&Rc(r,o[1]))return o[0];if(o=t(),ni){dn(!0);try{t()}finally{dn(!1)}}return l.memoizedState=[o,r],o}function Vc(t,r,l){return l===void 0||(Ir&1073741824)!==0&&(rt&261930)===0?t.memoizedState=r:(t.memoizedState=l,t=w1(),Ge.lanes|=t,ya|=t,l)}function wh(t,r,l,o){return In(l,r)?l:Ui.current!==null?(t=Vc(t,l,o),In(t,r)||(Xt=!0),t):(Ir&42)===0||(Ir&1073741824)!==0&&(rt&261930)===0?(Xt=!0,t.memoizedState=l):(t=w1(),Ge.lanes|=t,ya|=t,r)}function Sh(t,r,l,o,h){var E=H.p;H.p=E!==0&&8>E?E:8;var A=U.T,D={};U.T=D,Kc(t,!1,r,l);try{var P=h(),ee=U.S;if(ee!==null&&ee(D,P),P!==null&&typeof P=="object"&&typeof P.then=="function"){var se=rg(P,o);Il(t,r,se,Qn(t))}else Il(t,r,o,Qn(t))}catch(xe){Il(t,r,{then:function(){},status:"rejected",reason:xe},Qn())}finally{H.p=E,A!==null&&D.types!==null&&(A.types=D.types),U.T=A}}function cg(){}function Qc(t,r,l,o){if(t.tag!==5)throw Error(i(476));var h=_h(t).queue;Sh(t,h,r,re,l===null?cg:function(){return Mh(t),l(o)})}function _h(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:Hr,lastRenderedState:re},next:null};var l={};return r.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Hr,lastRenderedState:l},next:null},t.memoizedState=r,t=t.alternate,t!==null&&(t.memoizedState=r),r}function Mh(t){var r=_h(t);r.next===null&&(r=t.alternate.memoizedState),Il(t,r.next.queue,{},Qn())}function Yc(){return sn(as)}function Nh(){return Gt().memoizedState}function Th(){return Gt().memoizedState}function xg(t){for(var r=t.return;r!==null;){switch(r.tag){case 24:case 3:var l=Qn();t=da(l);var o=ha(r,t,l);o!==null&&(Tn(o,r,l),jl(o,r,l)),r={cache:Bc()},t.payload=r;return}r=r.return}}function ug(t,r,l){var o=Qn();l={lane:o,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},So(t)?Oh(r,l):(l=fc(t,r,l,o),l!==null&&(Tn(l,t,o),jh(l,r,o)))}function Rh(t,r,l){var o=Qn();Il(t,r,l,o)}function Il(t,r,l,o){var h={lane:o,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(So(t))Oh(r,h);else{var E=t.alternate;if(t.lanes===0&&(E===null||E.lanes===0)&&(E=r.lastRenderedReducer,E!==null))try{var A=r.lastRenderedState,D=E(A,l);if(h.hasEagerState=!0,h.eagerState=D,In(D,A))return oo(t,r,h,0),vt===null&&so(),!1}catch{}if(l=fc(t,r,h,o),l!==null)return Tn(l,t,o),jh(l,r,o),!0}return!1}function Kc(t,r,l,o){if(o={lane:2,revertLane:Fx(),gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null},So(t)){if(r)throw Error(i(479))}else r=fc(t,l,o,2),r!==null&&Tn(r,t,2)}function So(t){var r=t.alternate;return t===Ge||r!==null&&r===Ge}function Oh(t,r){Ii=Ao=!0;var l=t.pending;l===null?r.next=r:(r.next=l.next,l.next=r),t.pending=r}function jh(t,r,l){if((l&4194048)!==0){var o=r.lanes;o&=t.pendingLanes,l|=o,r.lanes=l,Le(t,l)}}var Hl={readContext:sn,use:ko,useCallback:Pt,useContext:Pt,useEffect:Pt,useImperativeHandle:Pt,useLayoutEffect:Pt,useInsertionEffect:Pt,useMemo:Pt,useReducer:Pt,useRef:Pt,useState:Pt,useDebugValue:Pt,useDeferredValue:Pt,useTransition:Pt,useSyncExternalStore:Pt,useId:Pt,useHostTransitionStatus:Pt,useFormState:Pt,useActionState:Pt,useOptimistic:Pt,useMemoCache:Pt,useCacheRefresh:Pt};Hl.useEffectEvent=Pt;var zh={readContext:sn,use:ko,useCallback:function(t,r){return An().memoizedState=[t,r===void 0?null:r],t},useContext:sn,useEffect:Ch,useImperativeHandle:function(t,r,l){l=l!=null?l.concat([t]):null,Fo(4194308,4,vh.bind(null,r,t),l)},useLayoutEffect:function(t,r){return Fo(4194308,4,t,r)},useInsertionEffect:function(t,r){Fo(4,2,t,r)},useMemo:function(t,r){var l=An();r=r===void 0?null:r;var o=t();if(ni){dn(!0);try{t()}finally{dn(!1)}}return l.memoizedState=[o,r],o},useReducer:function(t,r,l){var o=An();if(l!==void 0){var h=l(r);if(ni){dn(!0);try{l(r)}finally{dn(!1)}}}else h=r;return o.memoizedState=o.baseState=h,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:h},o.queue=t,t=t.dispatch=ug.bind(null,Ge,t),[o.memoizedState,t]},useRef:function(t){var r=An();return t={current:t},r.memoizedState=t},useState:function(t){t=Hc(t);var r=t.queue,l=Rh.bind(null,Ge,r);return r.dispatch=l,[t.memoizedState,l]},useDebugValue:Gc,useDeferredValue:function(t,r){var l=An();return Vc(l,t,r)},useTransition:function(){var t=Hc(!1);return t=Sh.bind(null,Ge,t.queue,!0,!1),An().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,r,l){var o=Ge,h=An();if(it){if(l===void 0)throw Error(i(407));l=l()}else{if(l=r(),vt===null)throw Error(i(349));(rt&127)!==0||ah(o,r,l)}h.memoizedState=l;var E={value:l,getSnapshot:r};return h.queue=E,Ch(lh.bind(null,o,E,t),[t]),o.flags|=2048,qi(9,{destroy:void 0},ih.bind(null,o,E,l,r),null),l},useId:function(){var t=An(),r=vt.identifierPrefix;if(it){var l=Cr,o=yr;l=(o&~(1<<32-dt(o)-1)).toString(32)+l,r="_"+r+"R_"+l,l=Bo++,0<l&&(r+="H"+l.toString(32)),r+="_"}else l=ag++,r="_"+r+"r_"+l.toString(32)+"_";return t.memoizedState=r},useHostTransitionStatus:Yc,useFormState:ph,useActionState:ph,useOptimistic:function(t){var r=An();r.memoizedState=r.baseState=t;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return r.queue=l,r=Kc.bind(null,Ge,!0,l),l.dispatch=r,[t,r]},useMemoCache:Pc,useCacheRefresh:function(){return An().memoizedState=xg.bind(null,Ge)},useEffectEvent:function(t){var r=An(),l={impl:t};return r.memoizedState=l,function(){if((xt&2)!==0)throw Error(i(440));return l.impl.apply(void 0,arguments)}}},Xc={readContext:sn,use:ko,useCallback:Dh,useContext:sn,useEffect:$c,useImperativeHandle:kh,useInsertionEffect:Ah,useLayoutEffect:Bh,useMemo:Fh,useReducer:Do,useRef:yh,useState:function(){return Do(Hr)},useDebugValue:Gc,useDeferredValue:function(t,r){var l=Gt();return wh(l,gt.memoizedState,t,r)},useTransition:function(){var t=Do(Hr)[0],r=Gt().memoizedState;return[typeof t=="boolean"?t:Ul(t),r]},useSyncExternalStore:rh,useId:Nh,useHostTransitionStatus:Yc,useFormState:mh,useActionState:mh,useOptimistic:function(t,r){var l=Gt();return ch(l,gt,t,r)},useMemoCache:Pc,useCacheRefresh:Th};Xc.useEffectEvent=bh;var Lh={readContext:sn,use:ko,useCallback:Dh,useContext:sn,useEffect:$c,useImperativeHandle:kh,useInsertionEffect:Ah,useLayoutEffect:Bh,useMemo:Fh,useReducer:Ic,useRef:yh,useState:function(){return Ic(Hr)},useDebugValue:Gc,useDeferredValue:function(t,r){var l=Gt();return gt===null?Vc(l,t,r):wh(l,gt.memoizedState,t,r)},useTransition:function(){var t=Ic(Hr)[0],r=Gt().memoizedState;return[typeof t=="boolean"?t:Ul(t),r]},useSyncExternalStore:rh,useId:Nh,useHostTransitionStatus:Yc,useFormState:gh,useActionState:gh,useOptimistic:function(t,r){var l=Gt();return gt!==null?ch(l,gt,t,r):(l.baseState=t,[t,l.queue.dispatch])},useMemoCache:Pc,useCacheRefresh:Th};Lh.useEffectEvent=bh;function Zc(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 Jc={enqueueSetState:function(t,r,l){t=t._reactInternals;var o=Qn(),h=da(o);h.payload=r,l!=null&&(h.callback=l),r=ha(t,h,o),r!==null&&(Tn(r,t,o),jl(r,t,o))},enqueueReplaceState:function(t,r,l){t=t._reactInternals;var o=Qn(),h=da(o);h.tag=1,h.payload=r,l!=null&&(h.callback=l),r=ha(t,h,o),r!==null&&(Tn(r,t,o),jl(r,t,o))},enqueueForceUpdate:function(t,r){t=t._reactInternals;var l=Qn(),o=da(l);o.tag=2,r!=null&&(o.callback=r),r=ha(t,o,l),r!==null&&(Tn(r,t,l),jl(r,t,l))}};function Ph(t,r,l,o,h,E,A){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(o,E,A):r.prototype&&r.prototype.isPureReactComponent?!wl(l,o)||!wl(h,E):!0}function Uh(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&&Jc.enqueueReplaceState(r,r.state,null)}function ri(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 h in t)l[h]===void 0&&(l[h]=t[h])}return l}function Ih(t){lo(t)}function Hh(t){console.error(t)}function qh(t){lo(t)}function _o(t,r){try{var l=t.onUncaughtError;l(r.value,{componentStack:r.stack})}catch(o){setTimeout(function(){throw o})}}function $h(t,r,l){try{var o=t.onCaughtError;o(l.value,{componentStack:l.stack,errorBoundary:r.tag===1?r.stateNode:null})}catch(h){setTimeout(function(){throw h})}}function Wc(t,r,l){return l=da(l),l.tag=3,l.payload={element:null},l.callback=function(){_o(t,r)},l}function Gh(t){return t=da(t),t.tag=3,t}function Vh(t,r,l,o){var h=l.type.getDerivedStateFromError;if(typeof h=="function"){var E=o.value;t.payload=function(){return h(E)},t.callback=function(){$h(r,l,o)}}var A=l.stateNode;A!==null&&typeof A.componentDidCatch=="function"&&(t.callback=function(){$h(r,l,o),typeof h!="function"&&(Ca===null?Ca=new Set([this]):Ca.add(this));var D=o.stack;this.componentDidCatch(o.value,{componentStack:D!==null?D:""})})}function fg(t,r,l,o,h){if(l.flags|=32768,o!==null&&typeof o=="object"&&typeof o.then=="function"){if(r=l.alternate,r!==null&&Oi(r,l,h,!0),l=qn.current,l!==null){switch(l.tag){case 31:case 13:return ar===null?Ho():l.alternate===null&&Ut===0&&(Ut=3),l.flags&=-257,l.flags|=65536,l.lanes=h,o===Eo?l.flags|=16384:(r=l.updateQueue,r===null?l.updateQueue=new Set([o]):r.add(o),vx(t,o,h)),!1;case 22:return l.flags|=65536,o===Eo?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)),vx(t,o,h)),!1}throw Error(i(435,l.tag))}return vx(t,o,h),Ho(),!1}if(it)return r=qn.current,r!==null?((r.flags&65536)===0&&(r.flags|=256),r.flags|=65536,r.lanes=h,o!==gc&&(t=Error(i(422),{cause:o}),Ml(er(t,l)))):(o!==gc&&(r=Error(i(423),{cause:o}),Ml(er(r,l))),t=t.current.alternate,t.flags|=65536,h&=-h,t.lanes|=h,o=er(o,l),h=Wc(t.stateNode,o,h),Sc(t,h),Ut!==4&&(Ut=2)),!1;var E=Error(i(520),{cause:o});if(E=er(E,l),Xl===null?Xl=[E]:Xl.push(E),Ut!==4&&(Ut=2),r===null)return!0;o=er(o,l),l=r;do{switch(l.tag){case 3:return l.flags|=65536,t=h&-h,l.lanes|=t,t=Wc(l.stateNode,o,t),Sc(l,t),!1;case 1:if(r=l.type,E=l.stateNode,(l.flags&128)===0&&(typeof r.getDerivedStateFromError=="function"||E!==null&&typeof E.componentDidCatch=="function"&&(Ca===null||!Ca.has(E))))return l.flags|=65536,h&=-h,l.lanes|=h,h=Gh(h),Vh(h,t,l,o),Sc(l,h),!1}l=l.return}while(l!==null);return!1}var ex=Error(i(461)),Xt=!1;function on(t,r,l,o){r.child=t===null?Xd(r,null,l,o):ti(r,t.child,l,o)}function Qh(t,r,l,o,h){l=l.render;var E=r.ref;if("ref"in o){var A={};for(var D in o)D!=="ref"&&(A[D]=o[D])}else A=o;return Za(r),o=Oc(t,r,l,A,E,h),D=jc(),t!==null&&!Xt?(zc(t,r,h),qr(t,r,h)):(it&&D&&mc(r),r.flags|=1,on(t,r,o,h),r.child)}function Yh(t,r,l,o,h){if(t===null){var E=l.type;return typeof E=="function"&&!dc(E)&&E.defaultProps===void 0&&l.compare===null?(r.tag=15,r.type=E,Kh(t,r,E,o,h)):(t=xo(l.type,null,o,r,r.mode,h),t.ref=r.ref,t.return=r,r.child=t)}if(E=t.child,!ox(t,h)){var A=E.memoizedProps;if(l=l.compare,l=l!==null?l:wl,l(A,o)&&t.ref===r.ref)return qr(t,r,h)}return r.flags|=1,t=zr(E,o),t.ref=r.ref,t.return=r,r.child=t}function Kh(t,r,l,o,h){if(t!==null){var E=t.memoizedProps;if(wl(E,o)&&t.ref===r.ref)if(Xt=!1,r.pendingProps=o=E,ox(t,h))(t.flags&131072)!==0&&(Xt=!0);else return r.lanes=t.lanes,qr(t,r,h)}return tx(t,r,l,o,h)}function Xh(t,r,l,o){var h=o.children,E=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(E=E!==null?E.baseLanes|l:l,t!==null){for(o=r.child=t.child,h=0;o!==null;)h=h|o.lanes|o.childLanes,o=o.sibling;o=h&~E}else o=0,r.child=null;return Zh(t,r,E,l,o)}if((l&536870912)!==0)r.memoizedState={baseLanes:0,cachePool:null},t!==null&&po(r,E!==null?E.cachePool:null),E!==null?Wd(r,E):Mc(),eh(r);else return o=r.lanes=536870912,Zh(t,r,E!==null?E.baseLanes|l:l,l,o)}else E!==null?(po(r,E.cachePool),Wd(r,E),ma(),r.memoizedState=null):(t!==null&&po(r,null),Mc(),ma());return on(t,r,h,l),r.child}function ql(t,r){return t!==null&&t.tag===22||r.stateNode!==null||(r.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.sibling}function Zh(t,r,l,o,h){var E=kc();return E=E===null?null:{parent:Yt._currentValue,pool:E},r.memoizedState={baseLanes:l,cachePool:E},t!==null&&po(r,null),Mc(),eh(r),t!==null&&Oi(t,r,o,!0),r.childLanes=h,null}function Mo(t,r){return r=To({mode:r.mode,children:r.children},t.mode),r.ref=t.ref,t.child=r,r.return=t,r}function Jh(t,r,l){return ti(r,t.child,null,l),t=Mo(r,r.pendingProps),t.flags|=2,$n(r),r.memoizedState=null,t}function dg(t,r,l){var o=r.pendingProps,h=(r.flags&128)!==0;if(r.flags&=-129,t===null){if(it){if(o.mode==="hidden")return t=Mo(r,o),r.lanes=536870912,ql(null,t);if(Tc(r),(t=St)?(t=x9(t,rr),t=t!==null&&t.data==="&"?t:null,t!==null&&(r.memoizedState={dehydrated:t,treeContext:oa!==null?{id:yr,overflow:Cr}:null,retryLane:536870912,hydrationErrors:null},l=Od(t),l.return=r,r.child=l,ln=r,St=null)):t=null,t===null)throw xa(r);return r.lanes=536870912,null}return Mo(r,o)}var E=t.memoizedState;if(E!==null){var A=E.dehydrated;if(Tc(r),h)if(r.flags&256)r.flags&=-257,r=Jh(t,r,l);else if(r.memoizedState!==null)r.child=t.child,r.flags|=128,r=null;else throw Error(i(558));else if(Xt||Oi(t,r,l,!1),h=(l&t.childLanes)!==0,Xt||h){if(o=vt,o!==null&&(A=It(o,l),A!==0&&A!==E.retryLane))throw E.retryLane=A,Qa(t,A),Tn(o,t,A),ex;Ho(),r=Jh(t,r,l)}else t=E.treeContext,St=ir(A.nextSibling),ln=r,it=!0,ca=null,rr=!1,t!==null&&Ld(r,t),r=Mo(r,o),r.flags|=4096;return r}return t=zr(t.child,{mode:o.mode,children:o.children}),t.ref=r.ref,r.child=t,t.return=r,t}function No(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 tx(t,r,l,o,h){return Za(r),l=Oc(t,r,l,o,void 0,h),o=jc(),t!==null&&!Xt?(zc(t,r,h),qr(t,r,h)):(it&&o&&mc(r),r.flags|=1,on(t,r,l,h),r.child)}function Wh(t,r,l,o,h,E){return Za(r),r.updateQueue=null,l=nh(r,o,l,h),th(t),o=jc(),t!==null&&!Xt?(zc(t,r,E),qr(t,r,E)):(it&&o&&mc(r),r.flags|=1,on(t,r,l,E),r.child)}function e1(t,r,l,o,h){if(Za(r),r.stateNode===null){var E=Mi,A=l.contextType;typeof A=="object"&&A!==null&&(E=sn(A)),E=new l(o,E),r.memoizedState=E.state!==null&&E.state!==void 0?E.state:null,E.updater=Jc,r.stateNode=E,E._reactInternals=r,E=r.stateNode,E.props=o,E.state=r.memoizedState,E.refs={},Fc(r),A=l.contextType,E.context=typeof A=="object"&&A!==null?sn(A):Mi,E.state=r.memoizedState,A=l.getDerivedStateFromProps,typeof A=="function"&&(Zc(r,l,A,o),E.state=r.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof E.getSnapshotBeforeUpdate=="function"||typeof E.UNSAFE_componentWillMount!="function"&&typeof E.componentWillMount!="function"||(A=E.state,typeof E.componentWillMount=="function"&&E.componentWillMount(),typeof E.UNSAFE_componentWillMount=="function"&&E.UNSAFE_componentWillMount(),A!==E.state&&Jc.enqueueReplaceState(E,E.state,null),Ll(r,o,E,h),zl(),E.state=r.memoizedState),typeof E.componentDidMount=="function"&&(r.flags|=4194308),o=!0}else if(t===null){E=r.stateNode;var D=r.memoizedProps,P=ri(l,D);E.props=P;var ee=E.context,se=l.contextType;A=Mi,typeof se=="object"&&se!==null&&(A=sn(se));var xe=l.getDerivedStateFromProps;se=typeof xe=="function"||typeof E.getSnapshotBeforeUpdate=="function",D=r.pendingProps!==D,se||typeof E.UNSAFE_componentWillReceiveProps!="function"&&typeof E.componentWillReceiveProps!="function"||(D||ee!==A)&&Uh(r,E,o,A),fa=!1;var ne=r.memoizedState;E.state=ne,Ll(r,o,E,h),zl(),ee=r.memoizedState,D||ne!==ee||fa?(typeof xe=="function"&&(Zc(r,l,xe,o),ee=r.memoizedState),(P=fa||Ph(r,l,P,o,ne,ee,A))?(se||typeof E.UNSAFE_componentWillMount!="function"&&typeof E.componentWillMount!="function"||(typeof E.componentWillMount=="function"&&E.componentWillMount(),typeof E.UNSAFE_componentWillMount=="function"&&E.UNSAFE_componentWillMount()),typeof E.componentDidMount=="function"&&(r.flags|=4194308)):(typeof E.componentDidMount=="function"&&(r.flags|=4194308),r.memoizedProps=o,r.memoizedState=ee),E.props=o,E.state=ee,E.context=A,o=P):(typeof E.componentDidMount=="function"&&(r.flags|=4194308),o=!1)}else{E=r.stateNode,wc(t,r),A=r.memoizedProps,se=ri(l,A),E.props=se,xe=r.pendingProps,ne=E.context,ee=l.contextType,P=Mi,typeof ee=="object"&&ee!==null&&(P=sn(ee)),D=l.getDerivedStateFromProps,(ee=typeof D=="function"||typeof E.getSnapshotBeforeUpdate=="function")||typeof E.UNSAFE_componentWillReceiveProps!="function"&&typeof E.componentWillReceiveProps!="function"||(A!==xe||ne!==P)&&Uh(r,E,o,P),fa=!1,ne=r.memoizedState,E.state=ne,Ll(r,o,E,h),zl();var ae=r.memoizedState;A!==xe||ne!==ae||fa||t!==null&&t.dependencies!==null&&fo(t.dependencies)?(typeof D=="function"&&(Zc(r,l,D,o),ae=r.memoizedState),(se=fa||Ph(r,l,se,o,ne,ae,P)||t!==null&&t.dependencies!==null&&fo(t.dependencies))?(ee||typeof E.UNSAFE_componentWillUpdate!="function"&&typeof E.componentWillUpdate!="function"||(typeof E.componentWillUpdate=="function"&&E.componentWillUpdate(o,ae,P),typeof E.UNSAFE_componentWillUpdate=="function"&&E.UNSAFE_componentWillUpdate(o,ae,P)),typeof E.componentDidUpdate=="function"&&(r.flags|=4),typeof E.getSnapshotBeforeUpdate=="function"&&(r.flags|=1024)):(typeof E.componentDidUpdate!="function"||A===t.memoizedProps&&ne===t.memoizedState||(r.flags|=4),typeof E.getSnapshotBeforeUpdate!="function"||A===t.memoizedProps&&ne===t.memoizedState||(r.flags|=1024),r.memoizedProps=o,r.memoizedState=ae),E.props=o,E.state=ae,E.context=P,o=se):(typeof E.componentDidUpdate!="function"||A===t.memoizedProps&&ne===t.memoizedState||(r.flags|=4),typeof E.getSnapshotBeforeUpdate!="function"||A===t.memoizedProps&&ne===t.memoizedState||(r.flags|=1024),o=!1)}return E=o,No(t,r),o=(r.flags&128)!==0,E||o?(E=r.stateNode,l=o&&typeof l.getDerivedStateFromError!="function"?null:E.render(),r.flags|=1,t!==null&&o?(r.child=ti(r,t.child,null,h),r.child=ti(r,null,l,h)):on(t,r,l,h),r.memoizedState=E.state,t=r.child):t=qr(t,r,h),t}function t1(t,r,l,o){return Ka(),r.flags|=256,on(t,r,l,o),r.child}var nx={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function rx(t){return{baseLanes:t,cachePool:$d()}}function ax(t,r,l){return t=t!==null?t.childLanes&~l:0,r&&(t|=Vn),t}function n1(t,r,l){var o=r.pendingProps,h=!1,E=(r.flags&128)!==0,A;if((A=E)||(A=t!==null&&t.memoizedState===null?!1:($t.current&2)!==0),A&&(h=!0,r.flags&=-129),A=(r.flags&32)!==0,r.flags&=-33,t===null){if(it){if(h?pa(r):ma(),(t=St)?(t=x9(t,rr),t=t!==null&&t.data!=="&"?t:null,t!==null&&(r.memoizedState={dehydrated:t,treeContext:oa!==null?{id:yr,overflow:Cr}:null,retryLane:536870912,hydrationErrors:null},l=Od(t),l.return=r,r.child=l,ln=r,St=null)):t=null,t===null)throw xa(r);return Ux(t)?r.lanes=32:r.lanes=536870912,null}var D=o.children;return o=o.fallback,h?(ma(),h=r.mode,D=To({mode:"hidden",children:D},h),o=Ya(o,h,l,null),D.return=r,o.return=r,D.sibling=o,r.child=D,o=r.child,o.memoizedState=rx(l),o.childLanes=ax(t,A,l),r.memoizedState=nx,ql(null,o)):(pa(r),ix(r,D))}var P=t.memoizedState;if(P!==null&&(D=P.dehydrated,D!==null)){if(E)r.flags&256?(pa(r),r.flags&=-257,r=lx(t,r,l)):r.memoizedState!==null?(ma(),r.child=t.child,r.flags|=128,r=null):(ma(),D=o.fallback,h=r.mode,o=To({mode:"visible",children:o.children},h),D=Ya(D,h,l,null),D.flags|=2,o.return=r,D.return=r,o.sibling=D,r.child=o,ti(r,t.child,null,l),o=r.child,o.memoizedState=rx(l),o.childLanes=ax(t,A,l),r.memoizedState=nx,r=ql(null,o));else if(pa(r),Ux(D)){if(A=D.nextSibling&&D.nextSibling.dataset,A)var ee=A.dgst;A=ee,o=Error(i(419)),o.stack="",o.digest=A,Ml({value:o,source:null,stack:null}),r=lx(t,r,l)}else if(Xt||Oi(t,r,l,!1),A=(l&t.childLanes)!==0,Xt||A){if(A=vt,A!==null&&(o=It(A,l),o!==0&&o!==P.retryLane))throw P.retryLane=o,Qa(t,o),Tn(A,t,o),ex;Px(D)||Ho(),r=lx(t,r,l)}else Px(D)?(r.flags|=192,r.child=t.child,r=null):(t=P.treeContext,St=ir(D.nextSibling),ln=r,it=!0,ca=null,rr=!1,t!==null&&Ld(r,t),r=ix(r,o.children),r.flags|=4096);return r}return h?(ma(),D=o.fallback,h=r.mode,P=t.child,ee=P.sibling,o=zr(P,{mode:"hidden",children:o.children}),o.subtreeFlags=P.subtreeFlags&65011712,ee!==null?D=zr(ee,D):(D=Ya(D,h,l,null),D.flags|=2),D.return=r,o.return=r,o.sibling=D,r.child=o,ql(null,o),o=r.child,D=t.child.memoizedState,D===null?D=rx(l):(h=D.cachePool,h!==null?(P=Yt._currentValue,h=h.parent!==P?{parent:P,pool:P}:h):h=$d(),D={baseLanes:D.baseLanes|l,cachePool:h}),o.memoizedState=D,o.childLanes=ax(t,A,l),r.memoizedState=nx,ql(t.child,o)):(pa(r),l=t.child,t=l.sibling,l=zr(l,{mode:"visible",children:o.children}),l.return=r,l.sibling=null,t!==null&&(A=r.deletions,A===null?(r.deletions=[t],r.flags|=16):A.push(t)),r.child=l,r.memoizedState=null,l)}function ix(t,r){return r=To({mode:"visible",children:r},t.mode),r.return=t,t.child=r}function To(t,r){return t=Hn(22,t,null,r),t.lanes=0,t}function lx(t,r,l){return ti(r,t.child,null,l),t=ix(r,r.pendingProps.children),t.flags|=2,r.memoizedState=null,t}function r1(t,r,l){t.lanes|=r;var o=t.alternate;o!==null&&(o.lanes|=r),bc(t.return,r,l)}function sx(t,r,l,o,h,E){var A=t.memoizedState;A===null?t.memoizedState={isBackwards:r,rendering:null,renderingStartTime:0,last:o,tail:l,tailMode:h,treeForkCount:E}:(A.isBackwards=r,A.rendering=null,A.renderingStartTime=0,A.last=o,A.tail=l,A.tailMode=h,A.treeForkCount=E)}function a1(t,r,l){var o=r.pendingProps,h=o.revealOrder,E=o.tail;o=o.children;var A=$t.current,D=(A&2)!==0;if(D?(A=A&1|2,r.flags|=128):A&=1,M($t,A),on(t,r,o,l),o=it?_l:0,!D&&t!==null&&(t.flags&128)!==0)e:for(t=r.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&r1(t,l,r);else if(t.tag===19)r1(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(h){case"forwards":for(l=r.child,h=null;l!==null;)t=l.alternate,t!==null&&bo(t)===null&&(h=l),l=l.sibling;l=h,l===null?(h=r.child,r.child=null):(h=l.sibling,l.sibling=null),sx(r,!1,h,l,E,o);break;case"backwards":case"unstable_legacy-backwards":for(l=null,h=r.child,r.child=null;h!==null;){if(t=h.alternate,t!==null&&bo(t)===null){r.child=h;break}t=h.sibling,h.sibling=l,l=h,h=t}sx(r,!0,l,null,E,o);break;case"together":sx(r,!1,null,null,void 0,o);break;default:r.memoizedState=null}return r.child}function qr(t,r,l){if(t!==null&&(r.dependencies=t.dependencies),ya|=r.lanes,(l&r.childLanes)===0)if(t!==null){if(Oi(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=zr(t,t.pendingProps),r.child=l,l.return=r;t.sibling!==null;)t=t.sibling,l=l.sibling=zr(t,t.pendingProps),l.return=r;l.sibling=null}return r.child}function ox(t,r){return(t.lanes&r)!==0?!0:(t=t.dependencies,!!(t!==null&&fo(t)))}function hg(t,r,l){switch(r.tag){case 3:Qe(r,r.stateNode.containerInfo),ua(r,Yt,t.memoizedState.cache),Ka();break;case 27:case 5:ue(r);break;case 4:Qe(r,r.stateNode.containerInfo);break;case 10:ua(r,r.type,r.memoizedProps.value);break;case 31:if(r.memoizedState!==null)return r.flags|=128,Tc(r),null;break;case 13:var o=r.memoizedState;if(o!==null)return o.dehydrated!==null?(pa(r),r.flags|=128,null):(l&r.child.childLanes)!==0?n1(t,r,l):(pa(r),t=qr(t,r,l),t!==null?t.sibling:null);pa(r);break;case 19:var h=(t.flags&128)!==0;if(o=(l&r.childLanes)!==0,o||(Oi(t,r,l,!1),o=(l&r.childLanes)!==0),h){if(o)return a1(t,r,l);r.flags|=128}if(h=r.memoizedState,h!==null&&(h.rendering=null,h.tail=null,h.lastEffect=null),M($t,$t.current),o)break;return null;case 22:return r.lanes=0,Xh(t,r,l,r.pendingProps);case 24:ua(r,Yt,t.memoizedState.cache)}return qr(t,r,l)}function i1(t,r,l){if(t!==null)if(t.memoizedProps!==r.pendingProps)Xt=!0;else{if(!ox(t,l)&&(r.flags&128)===0)return Xt=!1,hg(t,r,l);Xt=(t.flags&131072)!==0}else Xt=!1,it&&(r.flags&1048576)!==0&&zd(r,_l,r.index);switch(r.lanes=0,r.tag){case 16:e:{var o=r.pendingProps;if(t=Wa(r.elementType),r.type=t,typeof t=="function")dc(t)?(o=ri(t,o),r.tag=1,r=e1(null,r,t,o,l)):(r.tag=0,r=tx(null,r,t,o,l));else{if(t!=null){var h=t.$$typeof;if(h===N){r.tag=11,r=Qh(null,r,t,o,l);break e}else if(h===O){r.tag=14,r=Yh(null,r,t,o,l);break e}}throw r=Z(t)||t,Error(i(306,r,""))}}return r;case 0:return tx(t,r,r.type,r.pendingProps,l);case 1:return o=r.type,h=ri(o,r.pendingProps),e1(t,r,o,h,l);case 3:e:{if(Qe(r,r.stateNode.containerInfo),t===null)throw Error(i(387));o=r.pendingProps;var E=r.memoizedState;h=E.element,wc(t,r),Ll(r,o,null,l);var A=r.memoizedState;if(o=A.cache,ua(r,Yt,o),o!==E.cache&&Ac(r,[Yt],l,!0),zl(),o=A.element,E.isDehydrated)if(E={element:o,isDehydrated:!1,cache:A.cache},r.updateQueue.baseState=E,r.memoizedState=E,r.flags&256){r=t1(t,r,o,l);break e}else if(o!==h){h=er(Error(i(424)),r),Ml(h),r=t1(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,St=ir(t.firstChild),ln=r,it=!0,ca=null,rr=!0,l=Xd(r,null,o,l),r.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling;else{if(Ka(),o===h){r=qr(t,r,l);break e}on(t,r,o,l)}r=r.child}return r;case 26:return No(t,r),t===null?(l=m9(r.type,null,r.pendingProps,null))?r.memoizedState=l:it||(l=r.type,t=r.pendingProps,o=Ko(de.current).createElement(l),o[Ht]=r,o[hn]=t,cn(o,l,t),Vt(o),r.stateNode=o):r.memoizedState=m9(r.type,t.memoizedProps,r.pendingProps,t.memoizedState),null;case 27:return ue(r),t===null&&it&&(o=r.stateNode=d9(r.type,r.pendingProps,de.current),ln=r,rr=!0,h=St,va(r.type)?(Ix=h,St=ir(o.firstChild)):St=h),on(t,r,r.pendingProps.children,l),No(t,r),t===null&&(r.flags|=4194304),r.child;case 5:return t===null&&it&&((h=o=St)&&(o=$g(o,r.type,r.pendingProps,rr),o!==null?(r.stateNode=o,ln=r,St=ir(o.firstChild),rr=!1,h=!0):h=!1),h||xa(r)),ue(r),h=r.type,E=r.pendingProps,A=t!==null?t.memoizedProps:null,o=E.children,jx(h,E)?o=null:A!==null&&jx(h,A)&&(r.flags|=32),r.memoizedState!==null&&(h=Oc(t,r,ig,null,null,l),as._currentValue=h),No(t,r),on(t,r,o,l),r.child;case 6:return t===null&&it&&((t=l=St)&&(l=Gg(l,r.pendingProps,rr),l!==null?(r.stateNode=l,ln=r,St=null,t=!0):t=!1),t||xa(r)),null;case 13:return n1(t,r,l);case 4:return Qe(r,r.stateNode.containerInfo),o=r.pendingProps,t===null?r.child=ti(r,null,o,l):on(t,r,o,l),r.child;case 11:return Qh(t,r,r.type,r.pendingProps,l);case 7:return on(t,r,r.pendingProps,l),r.child;case 8:return on(t,r,r.pendingProps.children,l),r.child;case 12:return on(t,r,r.pendingProps.children,l),r.child;case 10:return o=r.pendingProps,ua(r,r.type,o.value),on(t,r,o.children,l),r.child;case 9:return h=r.type._context,o=r.pendingProps.children,Za(r),h=sn(h),o=o(h),r.flags|=1,on(t,r,o,l),r.child;case 14:return Yh(t,r,r.type,r.pendingProps,l);case 15:return Kh(t,r,r.type,r.pendingProps,l);case 19:return a1(t,r,l);case 31:return dg(t,r,l);case 22:return Xh(t,r,l,r.pendingProps);case 24:return Za(r),o=sn(Yt),t===null?(h=kc(),h===null&&(h=vt,E=Bc(),h.pooledCache=E,E.refCount++,E!==null&&(h.pooledCacheLanes|=l),h=E),r.memoizedState={parent:o,cache:h},Fc(r),ua(r,Yt,h)):((t.lanes&l)!==0&&(wc(t,r),Ll(r,null,null,l),zl()),h=t.memoizedState,E=r.memoizedState,h.parent!==o?(h={parent:o,cache:o},r.memoizedState=h,r.lanes===0&&(r.memoizedState=r.updateQueue.baseState=h),ua(r,Yt,o)):(o=E.cache,ua(r,Yt,o),o!==h.cache&&Ac(r,[Yt],l,!0))),on(t,r,r.pendingProps.children,l),r.child;case 29:throw r.pendingProps}throw Error(i(156,r.tag))}function $r(t){t.flags|=4}function cx(t,r,l,o,h){if((r=(t.mode&32)!==0)&&(r=!1),r){if(t.flags|=16777216,(h&335544128)===h)if(t.stateNode.complete)t.flags|=8192;else if(N1())t.flags|=8192;else throw ei=Eo,Dc}else t.flags&=-16777217}function l1(t,r){if(r.type!=="stylesheet"||(r.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!b9(r))if(N1())t.flags|=8192;else throw ei=Eo,Dc}function Ro(t,r){r!==null&&(t.flags|=4),t.flags&16384&&(r=t.tag!==22?Pe():536870912,t.lanes|=r,Qi|=r)}function $l(t,r){if(!it)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 _t(t){var r=t.alternate!==null&&t.alternate.child===t.child,l=0,o=0;if(r)for(var h=t.child;h!==null;)l|=h.lanes|h.childLanes,o|=h.subtreeFlags&65011712,o|=h.flags&65011712,h.return=t,h=h.sibling;else for(h=t.child;h!==null;)l|=h.lanes|h.childLanes,o|=h.subtreeFlags,o|=h.flags,h.return=t,h=h.sibling;return t.subtreeFlags|=o,t.childLanes=l,r}function pg(t,r,l){var o=r.pendingProps;switch(Ec(r),r.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return _t(r),null;case 1:return _t(r),null;case 3:return l=r.stateNode,o=null,t!==null&&(o=t.memoizedState.cache),r.memoizedState.cache!==o&&(r.flags|=2048),Ur(Yt),ke(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(t===null||t.child===null)&&(Ri(r)?$r(r):t===null||t.memoizedState.isDehydrated&&(r.flags&256)===0||(r.flags|=1024,yc())),_t(r),null;case 26:var h=r.type,E=r.memoizedState;return t===null?($r(r),E!==null?(_t(r),l1(r,E)):(_t(r),cx(r,h,null,o,l))):E?E!==t.memoizedState?($r(r),_t(r),l1(r,E)):(_t(r),r.flags&=-16777217):(t=t.memoizedProps,t!==o&&$r(r),_t(r),cx(r,h,t,o,l)),null;case 27:if(Ze(r),l=de.current,h=r.type,t!==null&&r.stateNode!=null)t.memoizedProps!==o&&$r(r);else{if(!o){if(r.stateNode===null)throw Error(i(166));return _t(r),null}t=te.current,Ri(r)?Pd(r):(t=d9(h,o,l),r.stateNode=t,$r(r))}return _t(r),null;case 5:if(Ze(r),h=r.type,t!==null&&r.stateNode!=null)t.memoizedProps!==o&&$r(r);else{if(!o){if(r.stateNode===null)throw Error(i(166));return _t(r),null}if(E=te.current,Ri(r))Pd(r);else{var A=Ko(de.current);switch(E){case 1:E=A.createElementNS("http://www.w3.org/2000/svg",h);break;case 2:E=A.createElementNS("http://www.w3.org/1998/Math/MathML",h);break;default:switch(h){case"svg":E=A.createElementNS("http://www.w3.org/2000/svg",h);break;case"math":E=A.createElementNS("http://www.w3.org/1998/Math/MathML",h);break;case"script":E=A.createElement("div"),E.innerHTML="<script><\/script>",E=E.removeChild(E.firstChild);break;case"select":E=typeof o.is=="string"?A.createElement("select",{is:o.is}):A.createElement("select"),o.multiple?E.multiple=!0:o.size&&(E.size=o.size);break;default:E=typeof o.is=="string"?A.createElement(h,{is:o.is}):A.createElement(h)}}E[Ht]=r,E[hn]=o;e:for(A=r.child;A!==null;){if(A.tag===5||A.tag===6)E.appendChild(A.stateNode);else if(A.tag!==4&&A.tag!==27&&A.child!==null){A.child.return=A,A=A.child;continue}if(A===r)break e;for(;A.sibling===null;){if(A.return===null||A.return===r)break e;A=A.return}A.sibling.return=A.return,A=A.sibling}r.stateNode=E;e:switch(cn(E,h,o),h){case"button":case"input":case"select":case"textarea":o=!!o.autoFocus;break e;case"img":o=!0;break e;default:o=!1}o&&$r(r)}}return _t(r),cx(r,r.type,t===null?null:t.memoizedProps,r.pendingProps,l),null;case 6:if(t&&r.stateNode!=null)t.memoizedProps!==o&&$r(r);else{if(typeof o!="string"&&r.stateNode===null)throw Error(i(166));if(t=de.current,Ri(r)){if(t=r.stateNode,l=r.memoizedProps,o=null,h=ln,h!==null)switch(h.tag){case 27:case 5:o=h.memoizedProps}t[Ht]=r,t=!!(t.nodeValue===l||o!==null&&o.suppressHydrationWarning===!0||n9(t.nodeValue,l)),t||xa(r,!0)}else t=Ko(t).createTextNode(o),t[Ht]=r,r.stateNode=t}return _t(r),null;case 31:if(l=r.memoizedState,t===null||t.memoizedState!==null){if(o=Ri(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[Ht]=r}else Ka(),(r.flags&128)===0&&(r.memoizedState=null),r.flags|=4;_t(r),t=!1}else l=yc(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=l),t=!0;if(!t)return r.flags&256?($n(r),r):($n(r),null);if((r.flags&128)!==0)throw Error(i(558))}return _t(r),null;case 13:if(o=r.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(h=Ri(r),o!==null&&o.dehydrated!==null){if(t===null){if(!h)throw Error(i(318));if(h=r.memoizedState,h=h!==null?h.dehydrated:null,!h)throw Error(i(317));h[Ht]=r}else Ka(),(r.flags&128)===0&&(r.memoizedState=null),r.flags|=4;_t(r),h=!1}else h=yc(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=h),h=!0;if(!h)return r.flags&256?($n(r),r):($n(r),null)}return $n(r),(r.flags&128)!==0?(r.lanes=l,r):(l=o!==null,t=t!==null&&t.memoizedState!==null,l&&(o=r.child,h=null,o.alternate!==null&&o.alternate.memoizedState!==null&&o.alternate.memoizedState.cachePool!==null&&(h=o.alternate.memoizedState.cachePool.pool),E=null,o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(E=o.memoizedState.cachePool.pool),E!==h&&(o.flags|=2048)),l!==t&&l&&(r.child.flags|=8192),Ro(r,r.updateQueue),_t(r),null);case 4:return ke(),t===null&&Mx(r.stateNode.containerInfo),_t(r),null;case 10:return Ur(r.type),_t(r),null;case 19:if(J($t),o=r.memoizedState,o===null)return _t(r),null;if(h=(r.flags&128)!==0,E=o.rendering,E===null)if(h)$l(o,!1);else{if(Ut!==0||t!==null&&(t.flags&128)!==0)for(t=r.child;t!==null;){if(E=bo(t),E!==null){for(r.flags|=128,$l(o,!1),t=E.updateQueue,r.updateQueue=t,Ro(r,t),r.subtreeFlags=0,t=l,l=r.child;l!==null;)Rd(l,t),l=l.sibling;return M($t,$t.current&1|2),it&&Lr(r,o.treeForkCount),r.child}t=t.sibling}o.tail!==null&&jt()>Po&&(r.flags|=128,h=!0,$l(o,!1),r.lanes=4194304)}else{if(!h)if(t=bo(E),t!==null){if(r.flags|=128,h=!0,t=t.updateQueue,r.updateQueue=t,Ro(r,t),$l(o,!0),o.tail===null&&o.tailMode==="hidden"&&!E.alternate&&!it)return _t(r),null}else 2*jt()-o.renderingStartTime>Po&&l!==536870912&&(r.flags|=128,h=!0,$l(o,!1),r.lanes=4194304);o.isBackwards?(E.sibling=r.child,r.child=E):(t=o.last,t!==null?t.sibling=E:r.child=E,o.last=E)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=jt(),t.sibling=null,l=$t.current,M($t,h?l&1|2:l&1),it&&Lr(r,o.treeForkCount),t):(_t(r),null);case 22:case 23:return $n(r),Nc(),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&&(_t(r),r.subtreeFlags&6&&(r.flags|=8192)):_t(r),l=r.updateQueue,l!==null&&Ro(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&&J(Ja),null;case 24:return l=null,t!==null&&(l=t.memoizedState.cache),r.memoizedState.cache!==l&&(r.flags|=2048),Ur(Yt),_t(r),null;case 25:return null;case 30:return null}throw Error(i(156,r.tag))}function mg(t,r){switch(Ec(r),r.tag){case 1:return t=r.flags,t&65536?(r.flags=t&-65537|128,r):null;case 3:return Ur(Yt),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($n(r),r.alternate===null)throw Error(i(340));Ka()}return t=r.flags,t&65536?(r.flags=t&-65537|128,r):null;case 13:if($n(r),t=r.memoizedState,t!==null&&t.dehydrated!==null){if(r.alternate===null)throw Error(i(340));Ka()}return t=r.flags,t&65536?(r.flags=t&-65537|128,r):null;case 19:return J($t),null;case 4:return ke(),null;case 10:return Ur(r.type),null;case 22:case 23:return $n(r),Nc(),t!==null&&J(Ja),t=r.flags,t&65536?(r.flags=t&-65537|128,r):null;case 24:return Ur(Yt),null;case 25:return null;default:return null}}function s1(t,r){switch(Ec(r),r.tag){case 3:Ur(Yt),ke();break;case 26:case 27:case 5:Ze(r);break;case 4:ke();break;case 31:r.memoizedState!==null&&$n(r);break;case 13:$n(r);break;case 19:J($t);break;case 10:Ur(r.type);break;case 22:case 23:$n(r),Nc(),t!==null&&J(Ja);break;case 24:Ur(Yt)}}function Gl(t,r){try{var l=r.updateQueue,o=l!==null?l.lastEffect:null;if(o!==null){var h=o.next;l=h;do{if((l.tag&t)===t){o=void 0;var E=l.create,A=l.inst;o=E(),A.destroy=o}l=l.next}while(l!==h)}}catch(D){Et(r,r.return,D)}}function Ea(t,r,l){try{var o=r.updateQueue,h=o!==null?o.lastEffect:null;if(h!==null){var E=h.next;o=E;do{if((o.tag&t)===t){var A=o.inst,D=A.destroy;if(D!==void 0){A.destroy=void 0,h=r;var P=l,ee=D;try{ee()}catch(se){Et(h,P,se)}}}o=o.next}while(o!==E)}}catch(se){Et(r,r.return,se)}}function o1(t){var r=t.updateQueue;if(r!==null){var l=t.stateNode;try{Jd(r,l)}catch(o){Et(t,t.return,o)}}}function c1(t,r,l){l.props=ri(t.type,t.memoizedProps),l.state=t.memoizedState;try{l.componentWillUnmount()}catch(o){Et(t,r,o)}}function Vl(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(h){Et(t,r,h)}}function br(t,r){var l=t.ref,o=t.refCleanup;if(l!==null)if(typeof o=="function")try{o()}catch(h){Et(t,r,h)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(h){Et(t,r,h)}else l.current=null}function x1(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(h){Et(t,t.return,h)}}function xx(t,r,l){try{var o=t.stateNode;Lg(o,t.type,l,r),o[hn]=r}catch(h){Et(t,t.return,h)}}function u1(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&va(t.type)||t.tag===4}function ux(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||u1(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&&va(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 fx(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=Ee));else if(o!==4&&(o===27&&va(t.type)&&(l=t.stateNode,r=null),t=t.child,t!==null))for(fx(t,r,l),t=t.sibling;t!==null;)fx(t,r,l),t=t.sibling}function Oo(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&&va(t.type)&&(l=t.stateNode),t=t.child,t!==null))for(Oo(t,r,l),t=t.sibling;t!==null;)Oo(t,r,l),t=t.sibling}function f1(t){var r=t.stateNode,l=t.memoizedProps;try{for(var o=t.type,h=r.attributes;h.length;)r.removeAttributeNode(h[0]);cn(r,o,l),r[Ht]=t,r[hn]=l}catch(E){Et(t,t.return,E)}}var Gr=!1,Zt=!1,dx=!1,d1=typeof WeakSet=="function"?WeakSet:Set,nn=null;function Eg(t,r){if(t=t.containerInfo,Rx=n0,t=kd(t),lc(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 h=o.anchorOffset,E=o.focusNode;o=o.focusOffset;try{l.nodeType,E.nodeType}catch{l=null;break e}var A=0,D=-1,P=-1,ee=0,se=0,xe=t,ne=null;t:for(;;){for(var ae;xe!==l||h!==0&&xe.nodeType!==3||(D=A+h),xe!==E||o!==0&&xe.nodeType!==3||(P=A+o),xe.nodeType===3&&(A+=xe.nodeValue.length),(ae=xe.firstChild)!==null;)ne=xe,xe=ae;for(;;){if(xe===t)break t;if(ne===l&&++ee===h&&(D=A),ne===E&&++se===o&&(P=A),(ae=xe.nextSibling)!==null)break;xe=ne,ne=xe.parentNode}xe=ae}l=D===-1||P===-1?null:{start:D,end:P}}else l=null}l=l||{start:0,end:0}}else l=null;for(Ox={focusedElem:t,selectionRange:l},n0=!1,nn=r;nn!==null;)if(r=nn,t=r.child,(r.subtreeFlags&1028)!==0&&t!==null)t.return=r,nn=t;else for(;nn!==null;){switch(r=nn,E=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++)h=t[l],h.ref.impl=h.nextImpl;break;case 11:case 15:break;case 1:if((t&1024)!==0&&E!==null){t=void 0,l=r,h=E.memoizedProps,E=E.memoizedState,o=l.stateNode;try{var ve=ri(l.type,h);t=o.getSnapshotBeforeUpdate(ve,E),o.__reactInternalSnapshotBeforeUpdate=t}catch(je){Et(l,l.return,je)}}break;case 3:if((t&1024)!==0){if(t=r.stateNode.containerInfo,l=t.nodeType,l===9)Lx(t);else if(l===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":Lx(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,nn=t;break}nn=r.return}}function h1(t,r,l){var o=l.flags;switch(l.tag){case 0:case 11:case 15:Qr(t,l),o&4&&Gl(5,l);break;case 1:if(Qr(t,l),o&4)if(t=l.stateNode,r===null)try{t.componentDidMount()}catch(A){Et(l,l.return,A)}else{var h=ri(l.type,r.memoizedProps);r=r.memoizedState;try{t.componentDidUpdate(h,r,t.__reactInternalSnapshotBeforeUpdate)}catch(A){Et(l,l.return,A)}}o&64&&o1(l),o&512&&Vl(l,l.return);break;case 3:if(Qr(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{Jd(t,r)}catch(A){Et(l,l.return,A)}}break;case 27:r===null&&o&4&&f1(l);case 26:case 5:Qr(t,l),r===null&&o&4&&x1(l),o&512&&Vl(l,l.return);break;case 12:Qr(t,l);break;case 31:Qr(t,l),o&4&&E1(t,l);break;case 13:Qr(t,l),o&4&&g1(t,l),o&64&&(t=l.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(l=Dg.bind(null,l),Vg(t,l))));break;case 22:if(o=l.memoizedState!==null||Gr,!o){r=r!==null&&r.memoizedState!==null||Zt,h=Gr;var E=Zt;Gr=o,(Zt=r)&&!E?Yr(t,l,(l.subtreeFlags&8772)!==0):Qr(t,l),Gr=h,Zt=E}break;case 30:break;default:Qr(t,l)}}function p1(t){var r=t.alternate;r!==null&&(t.alternate=null,p1(r)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(r=t.stateNode,r!==null&&ml(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 Ot=null,Sn=!1;function Vr(t,r,l){for(l=l.child;l!==null;)m1(t,r,l),l=l.sibling}function m1(t,r,l){if(Lt&&typeof Lt.onCommitFiberUnmount=="function")try{Lt.onCommitFiberUnmount(rn,l)}catch{}switch(l.tag){case 26:Zt||br(l,r),Vr(t,r,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:Zt||br(l,r);var o=Ot,h=Sn;va(l.type)&&(Ot=l.stateNode,Sn=!1),Vr(t,r,l),ts(l.stateNode),Ot=o,Sn=h;break;case 5:Zt||br(l,r);case 6:if(o=Ot,h=Sn,Ot=null,Vr(t,r,l),Ot=o,Sn=h,Ot!==null)if(Sn)try{(Ot.nodeType===9?Ot.body:Ot.nodeName==="HTML"?Ot.ownerDocument.body:Ot).removeChild(l.stateNode)}catch(E){Et(l,r,E)}else try{Ot.removeChild(l.stateNode)}catch(E){Et(l,r,E)}break;case 18:Ot!==null&&(Sn?(t=Ot,o9(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,l.stateNode),tl(t)):o9(Ot,l.stateNode));break;case 4:o=Ot,h=Sn,Ot=l.stateNode.containerInfo,Sn=!0,Vr(t,r,l),Ot=o,Sn=h;break;case 0:case 11:case 14:case 15:Ea(2,l,r),Zt||Ea(4,l,r),Vr(t,r,l);break;case 1:Zt||(br(l,r),o=l.stateNode,typeof o.componentWillUnmount=="function"&&c1(l,r,o)),Vr(t,r,l);break;case 21:Vr(t,r,l);break;case 22:Zt=(o=Zt)||l.memoizedState!==null,Vr(t,r,l),Zt=o;break;default:Vr(t,r,l)}}function E1(t,r){if(r.memoizedState===null&&(t=r.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{tl(t)}catch(l){Et(r,r.return,l)}}}function g1(t,r){if(r.memoizedState===null&&(t=r.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{tl(t)}catch(l){Et(r,r.return,l)}}function gg(t){switch(t.tag){case 31:case 13:case 19:var r=t.stateNode;return r===null&&(r=t.stateNode=new d1),r;case 22:return t=t.stateNode,r=t._retryCache,r===null&&(r=t._retryCache=new d1),r;default:throw Error(i(435,t.tag))}}function jo(t,r){var l=gg(t);r.forEach(function(o){if(!l.has(o)){l.add(o);var h=Fg.bind(null,t,o);o.then(h,h)}})}function _n(t,r){var l=r.deletions;if(l!==null)for(var o=0;o<l.length;o++){var h=l[o],E=t,A=r,D=A;e:for(;D!==null;){switch(D.tag){case 27:if(va(D.type)){Ot=D.stateNode,Sn=!1;break e}break;case 5:Ot=D.stateNode,Sn=!1;break e;case 3:case 4:Ot=D.stateNode.containerInfo,Sn=!0;break e}D=D.return}if(Ot===null)throw Error(i(160));m1(E,A,h),Ot=null,Sn=!1,E=h.alternate,E!==null&&(E.return=null),h.return=null}if(r.subtreeFlags&13886)for(r=r.child;r!==null;)y1(r,t),r=r.sibling}var dr=null;function y1(t,r){var l=t.alternate,o=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:_n(r,t),Mn(t),o&4&&(Ea(3,t,t.return),Gl(3,t),Ea(5,t,t.return));break;case 1:_n(r,t),Mn(t),o&512&&(Zt||l===null||br(l,l.return)),o&64&&Gr&&(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 h=dr;if(_n(r,t),Mn(t),o&512&&(Zt||l===null||br(l,l.return)),o&4){var E=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,h=h.ownerDocument||h;t:switch(o){case"title":E=h.getElementsByTagName("title")[0],(!E||E[Ia]||E[Ht]||E.namespaceURI==="http://www.w3.org/2000/svg"||E.hasAttribute("itemprop"))&&(E=h.createElement(o),h.head.insertBefore(E,h.querySelector("head > title"))),cn(E,o,l),E[Ht]=t,Vt(E),o=E;break e;case"link":var A=y9("link","href",h).get(o+(l.href||""));if(A){for(var D=0;D<A.length;D++)if(E=A[D],E.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&E.getAttribute("rel")===(l.rel==null?null:l.rel)&&E.getAttribute("title")===(l.title==null?null:l.title)&&E.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){A.splice(D,1);break t}}E=h.createElement(o),cn(E,o,l),h.head.appendChild(E);break;case"meta":if(A=y9("meta","content",h).get(o+(l.content||""))){for(D=0;D<A.length;D++)if(E=A[D],E.getAttribute("content")===(l.content==null?null:""+l.content)&&E.getAttribute("name")===(l.name==null?null:l.name)&&E.getAttribute("property")===(l.property==null?null:l.property)&&E.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&E.getAttribute("charset")===(l.charSet==null?null:l.charSet)){A.splice(D,1);break t}}E=h.createElement(o),cn(E,o,l),h.head.appendChild(E);break;default:throw Error(i(468,o))}E[Ht]=t,Vt(E),o=E}t.stateNode=o}else C9(h,t.type,t.stateNode);else t.stateNode=g9(h,o,t.memoizedProps);else E!==o?(E===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):E.count--,o===null?C9(h,t.type,t.stateNode):g9(h,o,t.memoizedProps)):o===null&&t.stateNode!==null&&xx(t,t.memoizedProps,l.memoizedProps)}break;case 27:_n(r,t),Mn(t),o&512&&(Zt||l===null||br(l,l.return)),l!==null&&o&4&&xx(t,t.memoizedProps,l.memoizedProps);break;case 5:if(_n(r,t),Mn(t),o&512&&(Zt||l===null||br(l,l.return)),t.flags&32){h=t.stateNode;try{ze(h,"")}catch(ve){Et(t,t.return,ve)}}o&4&&t.stateNode!=null&&(h=t.memoizedProps,xx(t,h,l!==null?l.memoizedProps:h)),o&1024&&(dx=!0);break;case 6:if(_n(r,t),Mn(t),o&4){if(t.stateNode===null)throw Error(i(162));o=t.memoizedProps,l=t.stateNode;try{l.nodeValue=o}catch(ve){Et(t,t.return,ve)}}break;case 3:if(Jo=null,h=dr,dr=Xo(r.containerInfo),_n(r,t),dr=h,Mn(t),o&4&&l!==null&&l.memoizedState.isDehydrated)try{tl(r.containerInfo)}catch(ve){Et(t,t.return,ve)}dx&&(dx=!1,C1(t));break;case 4:o=dr,dr=Xo(t.stateNode.containerInfo),_n(r,t),Mn(t),dr=o;break;case 12:_n(r,t),Mn(t);break;case 31:_n(r,t),Mn(t),o&4&&(o=t.updateQueue,o!==null&&(t.updateQueue=null,jo(t,o)));break;case 13:_n(r,t),Mn(t),t.child.flags&8192&&t.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(Lo=jt()),o&4&&(o=t.updateQueue,o!==null&&(t.updateQueue=null,jo(t,o)));break;case 22:h=t.memoizedState!==null;var P=l!==null&&l.memoizedState!==null,ee=Gr,se=Zt;if(Gr=ee||h,Zt=se||P,_n(r,t),Zt=se,Gr=ee,Mn(t),o&8192)e:for(r=t.stateNode,r._visibility=h?r._visibility&-2:r._visibility|1,h&&(l===null||P||Gr||Zt||ai(t)),l=null,r=t;;){if(r.tag===5||r.tag===26){if(l===null){P=l=r;try{if(E=P.stateNode,h)A=E.style,typeof A.setProperty=="function"?A.setProperty("display","none","important"):A.display="none";else{D=P.stateNode;var xe=P.memoizedProps.style,ne=xe!=null&&xe.hasOwnProperty("display")?xe.display:null;D.style.display=ne==null||typeof ne=="boolean"?"":(""+ne).trim()}}catch(ve){Et(P,P.return,ve)}}}else if(r.tag===6){if(l===null){P=r;try{P.stateNode.nodeValue=h?"":P.memoizedProps}catch(ve){Et(P,P.return,ve)}}}else if(r.tag===18){if(l===null){P=r;try{var ae=P.stateNode;h?c9(ae,!0):c9(P.stateNode,!1)}catch(ve){Et(P,P.return,ve)}}}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,jo(t,l))));break;case 19:_n(r,t),Mn(t),o&4&&(o=t.updateQueue,o!==null&&(t.updateQueue=null,jo(t,o)));break;case 30:break;case 21:break;default:_n(r,t),Mn(t)}}function Mn(t){var r=t.flags;if(r&2){try{for(var l,o=t.return;o!==null;){if(u1(o)){l=o;break}o=o.return}if(l==null)throw Error(i(160));switch(l.tag){case 27:var h=l.stateNode,E=ux(t);Oo(t,E,h);break;case 5:var A=l.stateNode;l.flags&32&&(ze(A,""),l.flags&=-33);var D=ux(t);Oo(t,D,A);break;case 3:case 4:var P=l.stateNode.containerInfo,ee=ux(t);fx(t,ee,P);break;default:throw Error(i(161))}}catch(se){Et(t,t.return,se)}t.flags&=-3}r&4096&&(t.flags&=-4097)}function C1(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var r=t;C1(r),r.tag===5&&r.flags&1024&&r.stateNode.reset(),t=t.sibling}}function Qr(t,r){if(r.subtreeFlags&8772)for(r=r.child;r!==null;)h1(t,r.alternate,r),r=r.sibling}function ai(t){for(t=t.child;t!==null;){var r=t;switch(r.tag){case 0:case 11:case 14:case 15:Ea(4,r,r.return),ai(r);break;case 1:br(r,r.return);var l=r.stateNode;typeof l.componentWillUnmount=="function"&&c1(r,r.return,l),ai(r);break;case 27:ts(r.stateNode);case 26:case 5:br(r,r.return),ai(r);break;case 22:r.memoizedState===null&&ai(r);break;case 30:ai(r);break;default:ai(r)}t=t.sibling}}function Yr(t,r,l){for(l=l&&(r.subtreeFlags&8772)!==0,r=r.child;r!==null;){var o=r.alternate,h=t,E=r,A=E.flags;switch(E.tag){case 0:case 11:case 15:Yr(h,E,l),Gl(4,E);break;case 1:if(Yr(h,E,l),o=E,h=o.stateNode,typeof h.componentDidMount=="function")try{h.componentDidMount()}catch(ee){Et(o,o.return,ee)}if(o=E,h=o.updateQueue,h!==null){var D=o.stateNode;try{var P=h.shared.hiddenCallbacks;if(P!==null)for(h.shared.hiddenCallbacks=null,h=0;h<P.length;h++)Zd(P[h],D)}catch(ee){Et(o,o.return,ee)}}l&&A&64&&o1(E),Vl(E,E.return);break;case 27:f1(E);case 26:case 5:Yr(h,E,l),l&&o===null&&A&4&&x1(E),Vl(E,E.return);break;case 12:Yr(h,E,l);break;case 31:Yr(h,E,l),l&&A&4&&E1(h,E);break;case 13:Yr(h,E,l),l&&A&4&&g1(h,E);break;case 22:E.memoizedState===null&&Yr(h,E,l),Vl(E,E.return);break;case 30:break;default:Yr(h,E,l)}r=r.sibling}}function hx(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&&Nl(l))}function px(t,r){t=null,r.alternate!==null&&(t=r.alternate.memoizedState.cache),r=r.memoizedState.cache,r!==t&&(r.refCount++,t!=null&&Nl(t))}function hr(t,r,l,o){if(r.subtreeFlags&10256)for(r=r.child;r!==null;)b1(t,r,l,o),r=r.sibling}function b1(t,r,l,o){var h=r.flags;switch(r.tag){case 0:case 11:case 15:hr(t,r,l,o),h&2048&&Gl(9,r);break;case 1:hr(t,r,l,o);break;case 3:hr(t,r,l,o),h&2048&&(t=null,r.alternate!==null&&(t=r.alternate.memoizedState.cache),r=r.memoizedState.cache,r!==t&&(r.refCount++,t!=null&&Nl(t)));break;case 12:if(h&2048){hr(t,r,l,o),t=r.stateNode;try{var E=r.memoizedProps,A=E.id,D=E.onPostCommit;typeof D=="function"&&D(A,r.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(P){Et(r,r.return,P)}}else hr(t,r,l,o);break;case 31:hr(t,r,l,o);break;case 13:hr(t,r,l,o);break;case 23:break;case 22:E=r.stateNode,A=r.alternate,r.memoizedState!==null?E._visibility&2?hr(t,r,l,o):Ql(t,r):E._visibility&2?hr(t,r,l,o):(E._visibility|=2,$i(t,r,l,o,(r.subtreeFlags&10256)!==0||!1)),h&2048&&hx(A,r);break;case 24:hr(t,r,l,o),h&2048&&px(r.alternate,r);break;default:hr(t,r,l,o)}}function $i(t,r,l,o,h){for(h=h&&((r.subtreeFlags&10256)!==0||!1),r=r.child;r!==null;){var E=t,A=r,D=l,P=o,ee=A.flags;switch(A.tag){case 0:case 11:case 15:$i(E,A,D,P,h),Gl(8,A);break;case 23:break;case 22:var se=A.stateNode;A.memoizedState!==null?se._visibility&2?$i(E,A,D,P,h):Ql(E,A):(se._visibility|=2,$i(E,A,D,P,h)),h&&ee&2048&&hx(A.alternate,A);break;case 24:$i(E,A,D,P,h),h&&ee&2048&&px(A.alternate,A);break;default:$i(E,A,D,P,h)}r=r.sibling}}function Ql(t,r){if(r.subtreeFlags&10256)for(r=r.child;r!==null;){var l=t,o=r,h=o.flags;switch(o.tag){case 22:Ql(l,o),h&2048&&hx(o.alternate,o);break;case 24:Ql(l,o),h&2048&&px(o.alternate,o);break;default:Ql(l,o)}r=r.sibling}}var Yl=8192;function Gi(t,r,l){if(t.subtreeFlags&Yl)for(t=t.child;t!==null;)A1(t,r,l),t=t.sibling}function A1(t,r,l){switch(t.tag){case 26:Gi(t,r,l),t.flags&Yl&&t.memoizedState!==null&&a6(l,dr,t.memoizedState,t.memoizedProps);break;case 5:Gi(t,r,l);break;case 3:case 4:var o=dr;dr=Xo(t.stateNode.containerInfo),Gi(t,r,l),dr=o;break;case 22:t.memoizedState===null&&(o=t.alternate,o!==null&&o.memoizedState!==null?(o=Yl,Yl=16777216,Gi(t,r,l),Yl=o):Gi(t,r,l));break;default:Gi(t,r,l)}}function B1(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 Kl(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];nn=o,k1(o,t)}B1(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)v1(t),t=t.sibling}function v1(t){switch(t.tag){case 0:case 11:case 15:Kl(t),t.flags&2048&&Ea(9,t,t.return);break;case 3:Kl(t);break;case 12:Kl(t);break;case 22:var r=t.stateNode;t.memoizedState!==null&&r._visibility&2&&(t.return===null||t.return.tag!==13)?(r._visibility&=-3,zo(t)):Kl(t);break;default:Kl(t)}}function zo(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];nn=o,k1(o,t)}B1(t)}for(t=t.child;t!==null;){switch(r=t,r.tag){case 0:case 11:case 15:Ea(8,r,r.return),zo(r);break;case 22:l=r.stateNode,l._visibility&2&&(l._visibility&=-3,zo(r));break;default:zo(r)}t=t.sibling}}function k1(t,r){for(;nn!==null;){var l=nn;switch(l.tag){case 0:case 11:case 15:Ea(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:Nl(l.memoizedState.cache)}if(o=l.child,o!==null)o.return=l,nn=o;else e:for(l=t;nn!==null;){o=nn;var h=o.sibling,E=o.return;if(p1(o),o===l){nn=null;break e}if(h!==null){h.return=E,nn=h;break e}nn=E}}}var yg={getCacheForType:function(t){var r=sn(Yt),l=r.data.get(t);return l===void 0&&(l=t(),r.data.set(t,l)),l},cacheSignal:function(){return sn(Yt).controller.signal}},Cg=typeof WeakMap=="function"?WeakMap:Map,xt=0,vt=null,Je=null,rt=0,mt=0,Gn=null,ga=!1,Vi=!1,mx=!1,Kr=0,Ut=0,ya=0,ii=0,Ex=0,Vn=0,Qi=0,Xl=null,Nn=null,gx=!1,Lo=0,D1=0,Po=1/0,Uo=null,Ca=null,Wt=0,ba=null,Yi=null,Xr=0,yx=0,Cx=null,F1=null,Zl=0,bx=null;function Qn(){return(xt&2)!==0&&rt!==0?rt&-rt:U.T!==null?Fx():Ci()}function w1(){if(Vn===0)if((rt&536870912)===0||it){var t=yi;yi<<=1,(yi&3932160)===0&&(yi=262144),Vn=t}else Vn=536870912;return t=qn.current,t!==null&&(t.flags|=32),Vn}function Tn(t,r,l){(t===vt&&(mt===2||mt===9)||t.cancelPendingCommit!==null)&&(Ki(t,0),Aa(t,rt,Vn,!1)),Bt(t,l),((xt&2)===0||t!==vt)&&(t===vt&&((xt&2)===0&&(ii|=l),Ut===4&&Aa(t,rt,Vn,!1)),Ar(t))}function S1(t,r,l){if((xt&6)!==0)throw Error(i(327));var o=!l&&(r&127)===0&&(r&t.expiredLanes)===0||oe(t,r),h=o?Bg(t,r):Bx(t,r,!0),E=o;do{if(h===0){Vi&&!o&&Aa(t,r,0,!1);break}else{if(l=t.current.alternate,E&&!bg(l)){h=Bx(t,r,!1),E=!1;continue}if(h===2){if(E=r,t.errorRecoveryDisabledLanes&E)var A=0;else A=t.pendingLanes&-536870913,A=A!==0?A:A&536870912?536870912:0;if(A!==0){r=A;e:{var D=t;h=Xl;var P=D.current.memoizedState.isDehydrated;if(P&&(Ki(D,A).flags|=256),A=Bx(D,A,!1),A!==2){if(mx&&!P){D.errorRecoveryDisabledLanes|=E,ii|=E,h=4;break e}E=Nn,Nn=h,E!==null&&(Nn===null?Nn=E:Nn.push.apply(Nn,E))}h=A}if(E=!1,h!==2)continue}}if(h===1){Ki(t,0),Aa(t,r,0,!0);break}e:{switch(o=t,E=h,E){case 0:case 1:throw Error(i(345));case 4:if((r&4194048)!==r)break;case 6:Aa(o,r,Vn,!ga);break e;case 2:Nn=null;break;case 3:case 5:break;default:throw Error(i(329))}if((r&62914560)===r&&(h=Lo+300-jt(),10<h)){if(Aa(o,r,Vn,!ga),I(o,0,!0)!==0)break e;Xr=r,o.timeoutHandle=l9(_1.bind(null,o,l,Nn,Uo,gx,r,Vn,ii,Qi,ga,E,"Throttled",-0,0),h);break e}_1(o,l,Nn,Uo,gx,r,Vn,ii,Qi,ga,E,null,-0,0)}}break}while(!0);Ar(t)}function _1(t,r,l,o,h,E,A,D,P,ee,se,xe,ne,ae){if(t.timeoutHandle=-1,xe=r.subtreeFlags,xe&8192||(xe&16785408)===16785408){xe={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Ee},A1(r,E,xe);var ve=(E&62914560)===E?Lo-jt():(E&4194048)===E?D1-jt():0;if(ve=i6(xe,ve),ve!==null){Xr=E,t.cancelPendingCommit=ve(L1.bind(null,t,r,E,l,o,h,A,D,P,se,xe,null,ne,ae)),Aa(t,E,A,!ee);return}}L1(t,r,E,l,o,h,A,D,P)}function bg(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 h=l[o],E=h.getSnapshot;h=h.value;try{if(!In(E(),h))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 Aa(t,r,l,o){r&=~Ex,r&=~ii,t.suspendedLanes|=r,t.pingedLanes&=~r,o&&(t.warmLanes|=r),o=t.expirationTimes;for(var h=r;0<h;){var E=31-dt(h),A=1<<E;o[E]=-1,h&=~A}l!==0&&be(t,l,r)}function Io(){return(xt&6)===0?(Jl(0),!1):!0}function Ax(){if(Je!==null){if(mt===0)var t=Je.return;else t=Je,Pr=Xa=null,Lc(t),Pi=null,Rl=0,t=Je;for(;t!==null;)s1(t.alternate,t),t=t.return;Je=null}}function Ki(t,r){var l=t.timeoutHandle;l!==-1&&(t.timeoutHandle=-1,Ig(l)),l=t.cancelPendingCommit,l!==null&&(t.cancelPendingCommit=null,l()),Xr=0,Ax(),vt=t,Je=l=zr(t.current,null),rt=r,mt=0,Gn=null,ga=!1,Vi=oe(t,r),mx=!1,Qi=Vn=Ex=ii=ya=Ut=0,Nn=Xl=null,gx=!1,(r&8)!==0&&(r|=r&32);var o=t.entangledLanes;if(o!==0)for(t=t.entanglements,o&=r;0<o;){var h=31-dt(o),E=1<<h;r|=t[h],o&=~E}return Kr=r,so(),l}function M1(t,r){Ge=null,U.H=Hl,r===Li||r===mo?(r=Qd(),mt=3):r===Dc?(r=Qd(),mt=4):mt=r===ex?8:r!==null&&typeof r=="object"&&typeof r.then=="function"?6:1,Gn=r,Je===null&&(Ut=1,_o(t,er(r,t.current)))}function N1(){var t=qn.current;return t===null?!0:(rt&4194048)===rt?ar===null:(rt&62914560)===rt||(rt&536870912)!==0?t===ar:!1}function T1(){var t=U.H;return U.H=Hl,t===null?Hl:t}function R1(){var t=U.A;return U.A=yg,t}function Ho(){Ut=4,ga||(rt&4194048)!==rt&&qn.current!==null||(Vi=!0),(ya&134217727)===0&&(ii&134217727)===0||vt===null||Aa(vt,rt,Vn,!1)}function Bx(t,r,l){var o=xt;xt|=2;var h=T1(),E=R1();(vt!==t||rt!==r)&&(Uo=null,Ki(t,r)),r=!1;var A=Ut;e:do try{if(mt!==0&&Je!==null){var D=Je,P=Gn;switch(mt){case 8:Ax(),A=6;break e;case 3:case 2:case 9:case 6:qn.current===null&&(r=!0);var ee=mt;if(mt=0,Gn=null,Xi(t,D,P,ee),l&&Vi){A=0;break e}break;default:ee=mt,mt=0,Gn=null,Xi(t,D,P,ee)}}Ag(),A=Ut;break}catch(se){M1(t,se)}while(!0);return r&&t.shellSuspendCounter++,Pr=Xa=null,xt=o,U.H=h,U.A=E,Je===null&&(vt=null,rt=0,so()),A}function Ag(){for(;Je!==null;)O1(Je)}function Bg(t,r){var l=xt;xt|=2;var o=T1(),h=R1();vt!==t||rt!==r?(Uo=null,Po=jt()+500,Ki(t,r)):Vi=oe(t,r);e:do try{if(mt!==0&&Je!==null){r=Je;var E=Gn;t:switch(mt){case 1:mt=0,Gn=null,Xi(t,r,E,1);break;case 2:case 9:if(Gd(E)){mt=0,Gn=null,j1(r);break}r=function(){mt!==2&&mt!==9||vt!==t||(mt=7),Ar(t)},E.then(r,r);break e;case 3:mt=7;break e;case 4:mt=5;break e;case 7:Gd(E)?(mt=0,Gn=null,j1(r)):(mt=0,Gn=null,Xi(t,r,E,7));break;case 5:var A=null;switch(Je.tag){case 26:A=Je.memoizedState;case 5:case 27:var D=Je;if(A?b9(A):D.stateNode.complete){mt=0,Gn=null;var P=D.sibling;if(P!==null)Je=P;else{var ee=D.return;ee!==null?(Je=ee,qo(ee)):Je=null}break t}}mt=0,Gn=null,Xi(t,r,E,5);break;case 6:mt=0,Gn=null,Xi(t,r,E,6);break;case 8:Ax(),Ut=6;break e;default:throw Error(i(462))}}vg();break}catch(se){M1(t,se)}while(!0);return Pr=Xa=null,U.H=o,U.A=h,xt=l,Je!==null?0:(vt=null,rt=0,so(),Ut)}function vg(){for(;Je!==null&&!hl();)O1(Je)}function O1(t){var r=i1(t.alternate,t,Kr);t.memoizedProps=t.pendingProps,r===null?qo(t):Je=r}function j1(t){var r=t,l=r.alternate;switch(r.tag){case 15:case 0:r=Wh(l,r,r.pendingProps,r.type,void 0,rt);break;case 11:r=Wh(l,r,r.pendingProps,r.type.render,r.ref,rt);break;case 5:Lc(r);default:s1(l,r),r=Je=Rd(r,Kr),r=i1(l,r,Kr)}t.memoizedProps=t.pendingProps,r===null?qo(t):Je=r}function Xi(t,r,l,o){Pr=Xa=null,Lc(r),Pi=null,Rl=0;var h=r.return;try{if(fg(t,h,r,l,rt)){Ut=1,_o(t,er(l,t.current)),Je=null;return}}catch(E){if(h!==null)throw Je=h,E;Ut=1,_o(t,er(l,t.current)),Je=null;return}r.flags&32768?(it||o===1?t=!0:Vi||(rt&536870912)!==0?t=!1:(ga=t=!0,(o===2||o===9||o===3||o===6)&&(o=qn.current,o!==null&&o.tag===13&&(o.flags|=16384))),z1(r,t)):qo(r)}function qo(t){var r=t;do{if((r.flags&32768)!==0){z1(r,ga);return}t=r.return;var l=pg(r.alternate,r,Kr);if(l!==null){Je=l;return}if(r=r.sibling,r!==null){Je=r;return}Je=r=t}while(r!==null);Ut===0&&(Ut=5)}function z1(t,r){do{var l=mg(t.alternate,t);if(l!==null){l.flags&=32767,Je=l;return}if(l=t.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!r&&(t=t.sibling,t!==null)){Je=t;return}Je=t=l}while(t!==null);Ut=6,Je=null}function L1(t,r,l,o,h,E,A,D,P){t.cancelPendingCommit=null;do $o();while(Wt!==0);if((xt&6)!==0)throw Error(i(327));if(r!==null){if(r===t.current)throw Error(i(177));if(E=r.lanes|r.childLanes,E|=uc,we(t,l,E,A,D,P),t===vt&&(Je=vt=null,rt=0),Yi=r,ba=t,Xr=l,yx=E,Cx=h,F1=o,(r.subtreeFlags&10256)!==0||(r.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,wg(Oe,function(){return q1(),null})):(t.callbackNode=null,t.callbackPriority=0),o=(r.flags&13878)!==0,(r.subtreeFlags&13878)!==0||o){o=U.T,U.T=null,h=H.p,H.p=2,A=xt,xt|=4;try{Eg(t,r,l)}finally{xt=A,H.p=h,U.T=o}}Wt=1,P1(),U1(),I1()}}function P1(){if(Wt===1){Wt=0;var t=ba,r=Yi,l=(r.flags&13878)!==0;if((r.subtreeFlags&13878)!==0||l){l=U.T,U.T=null;var o=H.p;H.p=2;var h=xt;xt|=4;try{y1(r,t);var E=Ox,A=kd(t.containerInfo),D=E.focusedElem,P=E.selectionRange;if(A!==D&&D&&D.ownerDocument&&vd(D.ownerDocument.documentElement,D)){if(P!==null&&lc(D)){var ee=P.start,se=P.end;if(se===void 0&&(se=ee),"selectionStart"in D)D.selectionStart=ee,D.selectionEnd=Math.min(se,D.value.length);else{var xe=D.ownerDocument||document,ne=xe&&xe.defaultView||window;if(ne.getSelection){var ae=ne.getSelection(),ve=D.textContent.length,je=Math.min(P.start,ve),Ct=P.end===void 0?je:Math.min(P.end,ve);!ae.extend&&je>Ct&&(A=Ct,Ct=je,je=A);var Y=Bd(D,je),q=Bd(D,Ct);if(Y&&q&&(ae.rangeCount!==1||ae.anchorNode!==Y.node||ae.anchorOffset!==Y.offset||ae.focusNode!==q.node||ae.focusOffset!==q.offset)){var W=xe.createRange();W.setStart(Y.node,Y.offset),ae.removeAllRanges(),je>Ct?(ae.addRange(W),ae.extend(q.node,q.offset)):(W.setEnd(q.node,q.offset),ae.addRange(W))}}}}for(xe=[],ae=D;ae=ae.parentNode;)ae.nodeType===1&&xe.push({element:ae,left:ae.scrollLeft,top:ae.scrollTop});for(typeof D.focus=="function"&&D.focus(),D=0;D<xe.length;D++){var ce=xe[D];ce.element.scrollLeft=ce.left,ce.element.scrollTop=ce.top}}n0=!!Rx,Ox=Rx=null}finally{xt=h,H.p=o,U.T=l}}t.current=r,Wt=2}}function U1(){if(Wt===2){Wt=0;var t=ba,r=Yi,l=(r.flags&8772)!==0;if((r.subtreeFlags&8772)!==0||l){l=U.T,U.T=null;var o=H.p;H.p=2;var h=xt;xt|=4;try{h1(t,r.alternate,r)}finally{xt=h,H.p=o,U.T=l}}Wt=3}}function I1(){if(Wt===4||Wt===3){Wt=0,Ei();var t=ba,r=Yi,l=Xr,o=F1;(r.subtreeFlags&10256)!==0||(r.flags&10256)!==0?Wt=5:(Wt=0,Yi=ba=null,H1(t,t.pendingLanes));var h=t.pendingLanes;if(h===0&&(Ca=null),Nr(l),r=r.stateNode,Lt&&typeof Lt.onCommitFiberRoot=="function")try{Lt.onCommitFiberRoot(rn,r,void 0,(r.current.flags&128)===128)}catch{}if(o!==null){r=U.T,h=H.p,H.p=2,U.T=null;try{for(var E=t.onRecoverableError,A=0;A<o.length;A++){var D=o[A];E(D.value,{componentStack:D.stack})}}finally{U.T=r,H.p=h}}(Xr&3)!==0&&$o(),Ar(t),h=t.pendingLanes,(l&261930)!==0&&(h&42)!==0?t===bx?Zl++:(Zl=0,bx=t):Zl=0,Jl(0)}}function H1(t,r){(t.pooledCacheLanes&=r)===0&&(r=t.pooledCache,r!=null&&(t.pooledCache=null,Nl(r)))}function $o(){return P1(),U1(),I1(),q1()}function q1(){if(Wt!==5)return!1;var t=ba,r=yx;yx=0;var l=Nr(Xr),o=U.T,h=H.p;try{H.p=32>l?32:l,U.T=null,l=Cx,Cx=null;var E=ba,A=Xr;if(Wt=0,Yi=ba=null,Xr=0,(xt&6)!==0)throw Error(i(331));var D=xt;if(xt|=4,v1(E.current),b1(E,E.current,A,l),xt=D,Jl(0,!1),Lt&&typeof Lt.onPostCommitFiberRoot=="function")try{Lt.onPostCommitFiberRoot(rn,E)}catch{}return!0}finally{H.p=h,U.T=o,H1(t,r)}}function $1(t,r,l){r=er(l,r),r=Wc(t.stateNode,r,2),t=ha(t,r,2),t!==null&&(Bt(t,2),Ar(t))}function Et(t,r,l){if(t.tag===3)$1(t,t,l);else for(;r!==null;){if(r.tag===3){$1(r,t,l);break}else if(r.tag===1){var o=r.stateNode;if(typeof r.type.getDerivedStateFromError=="function"||typeof o.componentDidCatch=="function"&&(Ca===null||!Ca.has(o))){t=er(l,t),l=Gh(2),o=ha(r,l,2),o!==null&&(Vh(l,o,r,t),Bt(o,2),Ar(o));break}}r=r.return}}function vx(t,r,l){var o=t.pingCache;if(o===null){o=t.pingCache=new Cg;var h=new Set;o.set(r,h)}else h=o.get(r),h===void 0&&(h=new Set,o.set(r,h));h.has(l)||(mx=!0,h.add(l),t=kg.bind(null,t,r,l),r.then(t,t))}function kg(t,r,l){var o=t.pingCache;o!==null&&o.delete(r),t.pingedLanes|=t.suspendedLanes&l,t.warmLanes&=~l,vt===t&&(rt&l)===l&&(Ut===4||Ut===3&&(rt&62914560)===rt&&300>jt()-Lo?(xt&2)===0&&Ki(t,0):Ex|=l,Qi===rt&&(Qi=0)),Ar(t)}function G1(t,r){r===0&&(r=Pe()),t=Qa(t,r),t!==null&&(Bt(t,r),Ar(t))}function Dg(t){var r=t.memoizedState,l=0;r!==null&&(l=r.retryLane),G1(t,l)}function Fg(t,r){var l=0;switch(t.tag){case 31:case 13:var o=t.stateNode,h=t.memoizedState;h!==null&&(l=h.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),G1(t,l)}function wg(t,r){return Mr(t,r)}var Go=null,Zi=null,kx=!1,Vo=!1,Dx=!1,Ba=0;function Ar(t){t!==Zi&&t.next===null&&(Zi===null?Go=Zi=t:Zi=Zi.next=t),Vo=!0,kx||(kx=!0,_g())}function Jl(t,r){if(!Dx&&Vo){Dx=!0;do for(var l=!1,o=Go;o!==null;){if(t!==0){var h=o.pendingLanes;if(h===0)var E=0;else{var A=o.suspendedLanes,D=o.pingedLanes;E=(1<<31-dt(42|t)+1)-1,E&=h&~(A&~D),E=E&201326741?E&201326741|1:E?E|2:0}E!==0&&(l=!0,K1(o,E))}else E=rt,E=I(o,o===vt?E:0,o.cancelPendingCommit!==null||o.timeoutHandle!==-1),(E&3)===0||oe(o,E)||(l=!0,K1(o,E));o=o.next}while(l);Dx=!1}}function Sg(){V1()}function V1(){Vo=kx=!1;var t=0;Ba!==0&&Ug()&&(t=Ba);for(var r=jt(),l=null,o=Go;o!==null;){var h=o.next,E=Q1(o,r);E===0?(o.next=null,l===null?Go=h:l.next=h,h===null&&(Zi=l)):(l=o,(t!==0||(E&3)!==0)&&(Vo=!0)),o=h}Wt!==0&&Wt!==5||Jl(t),Ba!==0&&(Ba=0)}function Q1(t,r){for(var l=t.suspendedLanes,o=t.pingedLanes,h=t.expirationTimes,E=t.pendingLanes&-62914561;0<E;){var A=31-dt(E),D=1<<A,P=h[A];P===-1?((D&l)===0||(D&o)!==0)&&(h[A]=ye(D,r)):P<=r&&(t.expiredLanes|=D),E&=~D}if(r=vt,l=rt,l=I(t,t===r?l:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),o=t.callbackNode,l===0||t===r&&(mt===2||mt===9)||t.cancelPendingCommit!==null)return o!==null&&o!==null&&tn(o),t.callbackNode=null,t.callbackPriority=0;if((l&3)===0||oe(t,l)){if(r=l&-l,r===t.callbackPriority)return r;switch(o!==null&&tn(o),Nr(l)){case 2:case 8:l=me;break;case 32:l=Oe;break;case 268435456:l=st;break;default:l=Oe}return o=Y1.bind(null,t),l=Mr(l,o),t.callbackPriority=r,t.callbackNode=l,r}return o!==null&&o!==null&&tn(o),t.callbackPriority=2,t.callbackNode=null,2}function Y1(t,r){if(Wt!==0&&Wt!==5)return t.callbackNode=null,t.callbackPriority=0,null;var l=t.callbackNode;if($o()&&t.callbackNode!==l)return null;var o=rt;return o=I(t,t===vt?o:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),o===0?null:(S1(t,o,r),Q1(t,jt()),t.callbackNode!=null&&t.callbackNode===l?Y1.bind(null,t):null)}function K1(t,r){if($o())return null;S1(t,r,!0)}function _g(){Hg(function(){(xt&6)!==0?Mr(le,Sg):V1()})}function Fx(){if(Ba===0){var t=ji;t===0&&(t=Pa,Pa<<=1,(Pa&261888)===0&&(Pa=256)),Ba=t}return Ba}function X1(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:la(""+t)}function Z1(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 Mg(t,r,l,o,h){if(r==="submit"&&l&&l.stateNode===h){var E=X1((h[hn]||null).action),A=o.submitter;A&&(r=(r=A[hn]||null)?X1(r.formAction):A.getAttribute("formAction"),r!==null&&(E=r,A=null));var D=new ro("action","action",null,o,h);t.push({event:D,listeners:[{instance:null,listener:function(){if(o.defaultPrevented){if(Ba!==0){var P=A?Z1(h,A):new FormData(h);Qc(l,{pending:!0,data:P,method:h.method,action:E},null,P)}}else typeof E=="function"&&(D.preventDefault(),P=A?Z1(h,A):new FormData(h),Qc(l,{pending:!0,data:P,method:h.method,action:E},E,P))},currentTarget:h}]})}}for(var wx=0;wx<xc.length;wx++){var Sx=xc[wx],Ng=Sx.toLowerCase(),Tg=Sx[0].toUpperCase()+Sx.slice(1);fr(Ng,"on"+Tg)}fr(wd,"onAnimationEnd"),fr(Sd,"onAnimationIteration"),fr(_d,"onAnimationStart"),fr("dblclick","onDoubleClick"),fr("focusin","onFocus"),fr("focusout","onBlur"),fr(K5,"onTransitionRun"),fr(X5,"onTransitionStart"),fr(Z5,"onTransitionCancel"),fr(Md,"onTransitionEnd"),he("onMouseEnter",["mouseout","mouseover"]),he("onMouseLeave",["mouseout","mouseover"]),he("onPointerEnter",["pointerout","pointerover"]),he("onPointerLeave",["pointerout","pointerover"]),Rr("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Rr("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Rr("onBeforeInput",["compositionend","keypress","textInput","paste"]),Rr("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Rr("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Rr("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Wl="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(" "),Rg=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Wl));function J1(t,r){r=(r&4)!==0;for(var l=0;l<t.length;l++){var o=t[l],h=o.event;o=o.listeners;e:{var E=void 0;if(r)for(var A=o.length-1;0<=A;A--){var D=o[A],P=D.instance,ee=D.currentTarget;if(D=D.listener,P!==E&&h.isPropagationStopped())break e;E=D,h.currentTarget=ee;try{E(h)}catch(se){lo(se)}h.currentTarget=null,E=P}else for(A=0;A<o.length;A++){if(D=o[A],P=D.instance,ee=D.currentTarget,D=D.listener,P!==E&&h.isPropagationStopped())break e;E=D,h.currentTarget=ee;try{E(h)}catch(se){lo(se)}h.currentTarget=null,E=P}}}}function We(t,r){var l=r[pl];l===void 0&&(l=r[pl]=new Set);var o=t+"__bubble";l.has(o)||(W1(r,t,2,!1),l.add(o))}function _x(t,r,l){var o=0;r&&(o|=4),W1(l,t,o,r)}var Qo="_reactListening"+Math.random().toString(36).slice(2);function Mx(t){if(!t[Qo]){t[Qo]=!0,Ks.forEach(function(l){l!=="selectionchange"&&(Rg.has(l)||_x(l,!1,t),_x(l,!0,t))});var r=t.nodeType===9?t:t.ownerDocument;r===null||r[Qo]||(r[Qo]=!0,_x("selectionchange",!1,r))}}function W1(t,r,l,o){switch(w9(r)){case 2:var h=o6;break;case 8:h=c6;break;default:h=Vx}l=h.bind(null,r,l,t),h=void 0,!Z0||r!=="touchstart"&&r!=="touchmove"&&r!=="wheel"||(h=!0),o?h!==void 0?t.addEventListener(r,l,{capture:!0,passive:h}):t.addEventListener(r,l,!0):h!==void 0?t.addEventListener(r,l,{passive:h}):t.addEventListener(r,l,!1)}function Nx(t,r,l,o,h){var E=o;if((r&1)===0&&(r&2)===0&&o!==null)e:for(;;){if(o===null)return;var A=o.tag;if(A===3||A===4){var D=o.stateNode.containerInfo;if(D===h)break;if(A===4)for(A=o.return;A!==null;){var P=A.tag;if((P===3||P===4)&&A.stateNode.containerInfo===h)return;A=A.return}for(;D!==null;){if(A=bn(D),A===null)return;if(P=A.tag,P===5||P===6||P===26||P===27){o=E=A;continue e}D=D.parentNode}}o=o.return}Ws(function(){var ee=E,se=$e(l),xe=[];e:{var ne=Nd.get(t);if(ne!==void 0){var ae=ro,ve=t;switch(t){case"keypress":if(to(l)===0)break e;case"keydown":case"keyup":ae=F5;break;case"focusin":ve="focus",ae=tc;break;case"focusout":ve="blur",ae=tc;break;case"beforeblur":case"afterblur":ae=tc;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=sd;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":ae=p5;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ae=_5;break;case wd:case Sd:case _d:ae=g5;break;case Md:ae=N5;break;case"scroll":case"scrollend":ae=d5;break;case"wheel":ae=R5;break;case"copy":case"cut":case"paste":ae=C5;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":ae=cd;break;case"toggle":case"beforetoggle":ae=j5}var je=(r&4)!==0,Ct=!je&&(t==="scroll"||t==="scrollend"),Y=je?ne!==null?ne+"Capture":null:ne;je=[];for(var q=ee,W;q!==null;){var ce=q;if(W=ce.stateNode,ce=ce.tag,ce!==5&&ce!==26&&ce!==27||W===null||Y===null||(ce=bl(q,Y),ce!=null&&je.push(es(q,ce,W))),Ct)break;q=q.return}0<je.length&&(ne=new ae(ne,ve,null,l,se),xe.push({event:ne,listeners:je}))}}if((r&7)===0){e:{if(ne=t==="mouseover"||t==="pointerover",ae=t==="mouseout"||t==="pointerout",ne&&l!==Se&&(ve=l.relatedTarget||l.fromElement)&&(bn(ve)||ve[na]))break e;if((ae||ne)&&(ne=se.window===se?se:(ne=se.ownerDocument)?ne.defaultView||ne.parentWindow:window,ae?(ve=l.relatedTarget||l.toElement,ae=ee,ve=ve?bn(ve):null,ve!==null&&(Ct=c(ve),je=ve.tag,ve!==Ct||je!==5&&je!==27&&je!==6)&&(ve=null)):(ae=null,ve=ee),ae!==ve)){if(je=sd,ce="onMouseLeave",Y="onMouseEnter",q="mouse",(t==="pointerout"||t==="pointerover")&&(je=cd,ce="onPointerLeave",Y="onPointerEnter",q="pointer"),Ct=ae==null?ne:ra(ae),W=ve==null?ne:ra(ve),ne=new je(ce,q+"leave",ae,l,se),ne.target=Ct,ne.relatedTarget=W,ce=null,bn(se)===ee&&(je=new je(Y,q+"enter",ve,l,se),je.target=W,je.relatedTarget=Ct,ce=je),Ct=ce,ae&&ve)t:{for(je=Og,Y=ae,q=ve,W=0,ce=Y;ce;ce=je(ce))W++;ce=0;for(var Te=q;Te;Te=je(Te))ce++;for(;0<W-ce;)Y=je(Y),W--;for(;0<ce-W;)q=je(q),ce--;for(;W--;){if(Y===q||q!==null&&Y===q.alternate){je=Y;break t}Y=je(Y),q=je(q)}je=null}else je=null;ae!==null&&e9(xe,ne,ae,je,!1),ve!==null&&Ct!==null&&e9(xe,Ct,ve,je,!0)}}e:{if(ne=ee?ra(ee):window,ae=ne.nodeName&&ne.nodeName.toLowerCase(),ae==="select"||ae==="input"&&ne.type==="file")var ot=Ed;else if(pd(ne))if(gd)ot=V5;else{ot=$5;var _e=q5}else ae=ne.nodeName,!ae||ae.toLowerCase()!=="input"||ne.type!=="checkbox"&&ne.type!=="radio"?ee&&ia(ee.elementType)&&(ot=Ed):ot=G5;if(ot&&(ot=ot(t,ee))){md(xe,ot,l,se);break e}_e&&_e(t,ne,ee),t==="focusout"&&ee&&ne.type==="number"&&ee.memoizedProps.value!=null&&ki(ne,"number",ne.value)}switch(_e=ee?ra(ee):window,t){case"focusin":(pd(_e)||_e.contentEditable==="true")&&(wi=_e,sc=ee,Sl=null);break;case"focusout":Sl=sc=wi=null;break;case"mousedown":oc=!0;break;case"contextmenu":case"mouseup":case"dragend":oc=!1,Dd(xe,l,se);break;case"selectionchange":if(Y5)break;case"keydown":case"keyup":Dd(xe,l,se)}var Ve;if(rc)e:{switch(t){case"compositionstart":var at="onCompositionStart";break e;case"compositionend":at="onCompositionEnd";break e;case"compositionupdate":at="onCompositionUpdate";break e}at=void 0}else Fi?dd(t,l)&&(at="onCompositionEnd"):t==="keydown"&&l.keyCode===229&&(at="onCompositionStart");at&&(xd&&l.locale!=="ko"&&(Fi||at!=="onCompositionStart"?at==="onCompositionEnd"&&Fi&&(Ve=id()):(sa=se,J0="value"in sa?sa.value:sa.textContent,Fi=!0)),_e=Yo(ee,at),0<_e.length&&(at=new od(at,t,null,l,se),xe.push({event:at,listeners:_e}),Ve?at.data=Ve:(Ve=hd(l),Ve!==null&&(at.data=Ve)))),(Ve=L5?P5(t,l):U5(t,l))&&(at=Yo(ee,"onBeforeInput"),0<at.length&&(_e=new od("onBeforeInput","beforeinput",null,l,se),xe.push({event:_e,listeners:at}),_e.data=Ve)),Mg(xe,t,ee,l,se)}J1(xe,r)})}function es(t,r,l){return{instance:t,listener:r,currentTarget:l}}function Yo(t,r){for(var l=r+"Capture",o=[];t!==null;){var h=t,E=h.stateNode;if(h=h.tag,h!==5&&h!==26&&h!==27||E===null||(h=bl(t,l),h!=null&&o.unshift(es(t,h,E)),h=bl(t,r),h!=null&&o.push(es(t,h,E))),t.tag===3)return o;t=t.return}return[]}function Og(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function e9(t,r,l,o,h){for(var E=r._reactName,A=[];l!==null&&l!==o;){var D=l,P=D.alternate,ee=D.stateNode;if(D=D.tag,P!==null&&P===o)break;D!==5&&D!==26&&D!==27||ee===null||(P=ee,h?(ee=bl(l,E),ee!=null&&A.unshift(es(l,ee,P))):h||(ee=bl(l,E),ee!=null&&A.push(es(l,ee,P)))),l=l.return}A.length!==0&&t.push({event:r,listeners:A})}var jg=/\r\n?/g,zg=/\u0000|\uFFFD/g;function t9(t){return(typeof t=="string"?t:""+t).replace(jg,`
|
|
9
|
+
`).replace(zg,"")}function n9(t,r){return r=t9(r),t9(t)===r}function yt(t,r,l,o,h,E){switch(l){case"children":typeof o=="string"?r==="body"||r==="textarea"&&o===""||ze(t,o):(typeof o=="number"||typeof o=="bigint")&&r!=="body"&&ze(t,""+o);break;case"className":Pn(t,"class",o);break;case"tabIndex":Pn(t,"tabindex",o);break;case"dir":case"role":case"viewBox":case"width":case"height":Pn(t,l,o);break;case"style":pt(t,o,E);break;case"data":if(r!=="object"){Pn(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=la(""+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 E=="function"&&(l==="formAction"?(r!=="input"&&yt(t,r,"name",h.name,h,null),yt(t,r,"formEncType",h.formEncType,h,null),yt(t,r,"formMethod",h.formMethod,h,null),yt(t,r,"formTarget",h.formTarget,h,null)):(yt(t,r,"encType",h.encType,h,null),yt(t,r,"method",h.method,h,null),yt(t,r,"target",h.target,h,null)));if(o==null||typeof o=="symbol"||typeof o=="boolean"){t.removeAttribute(l);break}o=la(""+o),t.setAttribute(l,o);break;case"onClick":o!=null&&(t.onclick=Ee);break;case"onScroll":o!=null&&We("scroll",t);break;case"onScrollEnd":o!=null&&We("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(h.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=la(""+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":We("beforetoggle",t),We("toggle",t),pn(t,"popover",o);break;case"xlinkActuate":Dn(t,"http://www.w3.org/1999/xlink","xlink:actuate",o);break;case"xlinkArcrole":Dn(t,"http://www.w3.org/1999/xlink","xlink:arcrole",o);break;case"xlinkRole":Dn(t,"http://www.w3.org/1999/xlink","xlink:role",o);break;case"xlinkShow":Dn(t,"http://www.w3.org/1999/xlink","xlink:show",o);break;case"xlinkTitle":Dn(t,"http://www.w3.org/1999/xlink","xlink:title",o);break;case"xlinkType":Dn(t,"http://www.w3.org/1999/xlink","xlink:type",o);break;case"xmlBase":Dn(t,"http://www.w3.org/XML/1998/namespace","xml:base",o);break;case"xmlLang":Dn(t,"http://www.w3.org/XML/1998/namespace","xml:lang",o);break;case"xmlSpace":Dn(t,"http://www.w3.org/XML/1998/namespace","xml:space",o);break;case"is":pn(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=Or.get(l)||l,pn(t,l,o))}}function Tx(t,r,l,o,h,E){switch(l){case"style":pt(t,o,E);break;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!="object"||!("__html"in o))throw Error(i(61));if(l=o.__html,l!=null){if(h.children!=null)throw Error(i(60));t.innerHTML=l}}break;case"children":typeof o=="string"?ze(t,o):(typeof o=="number"||typeof o=="bigint")&&ze(t,""+o);break;case"onScroll":o!=null&&We("scroll",t);break;case"onScrollEnd":o!=null&&We("scrollend",t);break;case"onClick":o!=null&&(t.onclick=Ee);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Ha.hasOwnProperty(l))e:{if(l[0]==="o"&&l[1]==="n"&&(h=l.endsWith("Capture"),r=l.slice(2,h?l.length-7:void 0),E=t[hn]||null,E=E!=null?E[l]:null,typeof E=="function"&&t.removeEventListener(r,E,h),typeof o=="function")){typeof E!="function"&&E!==null&&(l in t?t[l]=null:t.hasAttribute(l)&&t.removeAttribute(l)),t.addEventListener(r,o,h);break e}l in t?t[l]=o:o===!0?t.setAttribute(l,""):pn(t,l,o)}}}function cn(t,r,l){switch(r){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":We("error",t),We("load",t);var o=!1,h=!1,E;for(E in l)if(l.hasOwnProperty(E)){var A=l[E];if(A!=null)switch(E){case"src":o=!0;break;case"srcSet":h=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(i(137,r));default:yt(t,r,E,A,l,null)}}h&&yt(t,r,"srcSet",l.srcSet,l,null),o&&yt(t,r,"src",l.src,l,null);return;case"input":We("invalid",t);var D=E=A=h=null,P=null,ee=null;for(o in l)if(l.hasOwnProperty(o)){var se=l[o];if(se!=null)switch(o){case"name":h=se;break;case"type":A=se;break;case"checked":P=se;break;case"defaultChecked":ee=se;break;case"value":E=se;break;case"defaultValue":D=se;break;case"children":case"dangerouslySetInnerHTML":if(se!=null)throw Error(i(137,r));break;default:yt(t,r,o,se,l,null)}}qa(t,E,D,P,ee,A,h,!1);return;case"select":We("invalid",t),o=A=E=null;for(h in l)if(l.hasOwnProperty(h)&&(D=l[h],D!=null))switch(h){case"value":E=D;break;case"defaultValue":A=D;break;case"multiple":o=D;default:yt(t,r,h,D,l,null)}r=E,l=A,t.multiple=!!o,r!=null?an(t,!!o,r,!1):l!=null&&an(t,!!o,l,!0);return;case"textarea":We("invalid",t),E=h=o=null;for(A in l)if(l.hasOwnProperty(A)&&(D=l[A],D!=null))switch(A){case"value":o=D;break;case"defaultValue":h=D;break;case"children":E=D;break;case"dangerouslySetInnerHTML":if(D!=null)throw Error(i(91));break;default:yt(t,r,A,D,l,null)}Di(t,o,h,E);return;case"option":for(P in l)l.hasOwnProperty(P)&&(o=l[P],o!=null)&&(P==="selected"?t.selected=o&&typeof o!="function"&&typeof o!="symbol":yt(t,r,P,o,l,null));return;case"dialog":We("beforetoggle",t),We("toggle",t),We("cancel",t),We("close",t);break;case"iframe":case"object":We("load",t);break;case"video":case"audio":for(o=0;o<Wl.length;o++)We(Wl[o],t);break;case"image":We("error",t),We("load",t);break;case"details":We("toggle",t);break;case"embed":case"source":case"link":We("error",t),We("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:yt(t,r,ee,o,l,null)}return;default:if(ia(r)){for(se in l)l.hasOwnProperty(se)&&(o=l[se],o!==void 0&&Tx(t,r,se,o,l,void 0));return}}for(D in l)l.hasOwnProperty(D)&&(o=l[D],o!=null&&yt(t,r,D,o,l,null))}function Lg(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 h=null,E=null,A=null,D=null,P=null,ee=null,se=null;for(ae in l){var xe=l[ae];if(l.hasOwnProperty(ae)&&xe!=null)switch(ae){case"checked":break;case"value":break;case"defaultValue":P=xe;default:o.hasOwnProperty(ae)||yt(t,r,ae,null,o,xe)}}for(var ne in o){var ae=o[ne];if(xe=l[ne],o.hasOwnProperty(ne)&&(ae!=null||xe!=null))switch(ne){case"type":E=ae;break;case"name":h=ae;break;case"checked":ee=ae;break;case"defaultChecked":se=ae;break;case"value":A=ae;break;case"defaultValue":D=ae;break;case"children":case"dangerouslySetInnerHTML":if(ae!=null)throw Error(i(137,r));break;default:ae!==xe&&yt(t,r,ne,ae,o,xe)}}gl(t,A,D,P,ee,se,E,h);return;case"select":ae=A=D=ne=null;for(E in l)if(P=l[E],l.hasOwnProperty(E)&&P!=null)switch(E){case"value":break;case"multiple":ae=P;default:o.hasOwnProperty(E)||yt(t,r,E,null,o,P)}for(h in o)if(E=o[h],P=l[h],o.hasOwnProperty(h)&&(E!=null||P!=null))switch(h){case"value":ne=E;break;case"defaultValue":D=E;break;case"multiple":A=E;default:E!==P&&yt(t,r,h,E,o,P)}r=D,l=A,o=ae,ne!=null?an(t,!!l,ne,!1):!!o!=!!l&&(r!=null?an(t,!!l,r,!0):an(t,!!l,l?[]:"",!1));return;case"textarea":ae=ne=null;for(D in l)if(h=l[D],l.hasOwnProperty(D)&&h!=null&&!o.hasOwnProperty(D))switch(D){case"value":break;case"children":break;default:yt(t,r,D,null,o,h)}for(A in o)if(h=o[A],E=l[A],o.hasOwnProperty(A)&&(h!=null||E!=null))switch(A){case"value":ne=h;break;case"defaultValue":ae=h;break;case"children":break;case"dangerouslySetInnerHTML":if(h!=null)throw Error(i(91));break;default:h!==E&&yt(t,r,A,h,o,E)}Zs(t,ne,ae);return;case"option":for(var ve in l)ne=l[ve],l.hasOwnProperty(ve)&&ne!=null&&!o.hasOwnProperty(ve)&&(ve==="selected"?t.selected=!1:yt(t,r,ve,null,o,ne));for(P in o)ne=o[P],ae=l[P],o.hasOwnProperty(P)&&ne!==ae&&(ne!=null||ae!=null)&&(P==="selected"?t.selected=ne&&typeof ne!="function"&&typeof ne!="symbol":yt(t,r,P,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 je in l)ne=l[je],l.hasOwnProperty(je)&&ne!=null&&!o.hasOwnProperty(je)&&yt(t,r,je,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:yt(t,r,ee,ne,o,ae)}return;default:if(ia(r)){for(var Ct in l)ne=l[Ct],l.hasOwnProperty(Ct)&&ne!==void 0&&!o.hasOwnProperty(Ct)&&Tx(t,r,Ct,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||Tx(t,r,se,ne,o,ae);return}}for(var Y in l)ne=l[Y],l.hasOwnProperty(Y)&&ne!=null&&!o.hasOwnProperty(Y)&&yt(t,r,Y,null,o,ne);for(xe in o)ne=o[xe],ae=l[xe],!o.hasOwnProperty(xe)||ne===ae||ne==null&&ae==null||yt(t,r,xe,ne,o,ae)}function r9(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Pg(){if(typeof performance.getEntriesByType=="function"){for(var t=0,r=0,l=performance.getEntriesByType("resource"),o=0;o<l.length;o++){var h=l[o],E=h.transferSize,A=h.initiatorType,D=h.duration;if(E&&D&&r9(A)){for(A=0,D=h.responseEnd,o+=1;o<l.length;o++){var P=l[o],ee=P.startTime;if(ee>D)break;var se=P.transferSize,xe=P.initiatorType;se&&r9(xe)&&(P=P.responseEnd,A+=se*(P<D?1:(D-ee)/(P-ee)))}if(--o,r+=8*(E+A)/(h.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 Rx=null,Ox=null;function Ko(t){return t.nodeType===9?t:t.ownerDocument}function a9(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 i9(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 jx(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 zx=null;function Ug(){var t=window.event;return t&&t.type==="popstate"?t===zx?!1:(zx=t,!0):(zx=null,!1)}var l9=typeof setTimeout=="function"?setTimeout:void 0,Ig=typeof clearTimeout=="function"?clearTimeout:void 0,s9=typeof Promise=="function"?Promise:void 0,Hg=typeof queueMicrotask=="function"?queueMicrotask:typeof s9<"u"?function(t){return s9.resolve(null).then(t).catch(qg)}:l9;function qg(t){setTimeout(function(){throw t})}function va(t){return t==="head"}function o9(t,r){var l=r,o=0;do{var h=l.nextSibling;if(t.removeChild(l),h&&h.nodeType===8)if(l=h.data,l==="/$"||l==="/&"){if(o===0){t.removeChild(h),tl(r);return}o--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")o++;else if(l==="html")ts(t.ownerDocument.documentElement);else if(l==="head"){l=t.ownerDocument.head,ts(l);for(var E=l.firstChild;E;){var A=E.nextSibling,D=E.nodeName;E[Ia]||D==="SCRIPT"||D==="STYLE"||D==="LINK"&&E.rel.toLowerCase()==="stylesheet"||l.removeChild(E),E=A}}else l==="body"&&ts(t.ownerDocument.body);l=h}while(l);tl(r)}function c9(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 Lx(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":Lx(l),ml(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}t.removeChild(l)}}function $g(t,r,l,o){for(;t.nodeType===1;){var h=l;if(t.nodeName.toLowerCase()!==r.toLowerCase()){if(!o&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(o){if(!t[Ia])switch(r){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(E=t.getAttribute("rel"),E==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(E!==h.rel||t.getAttribute("href")!==(h.href==null||h.href===""?null:h.href)||t.getAttribute("crossorigin")!==(h.crossOrigin==null?null:h.crossOrigin)||t.getAttribute("title")!==(h.title==null?null:h.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(E=t.getAttribute("src"),(E!==(h.src==null?null:h.src)||t.getAttribute("type")!==(h.type==null?null:h.type)||t.getAttribute("crossorigin")!==(h.crossOrigin==null?null:h.crossOrigin))&&E&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(r==="input"&&t.type==="hidden"){var E=h.name==null?null:""+h.name;if(h.type==="hidden"&&t.getAttribute("name")===E)return t}else return t;if(t=ir(t.nextSibling),t===null)break}return null}function Gg(t,r,l){if(r==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!l||(t=ir(t.nextSibling),t===null))return null;return t}function x9(t,r){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!r||(t=ir(t.nextSibling),t===null))return null;return t}function Px(t){return t.data==="$?"||t.data==="$~"}function Ux(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function Vg(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 ir(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 Ix=null;function u9(t){t=t.nextSibling;for(var r=0;t;){if(t.nodeType===8){var l=t.data;if(l==="/$"||l==="/&"){if(r===0)return ir(t.nextSibling);r--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||r++}t=t.nextSibling}return null}function f9(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 d9(t,r,l){switch(r=Ko(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 ts(t){for(var r=t.attributes;r.length;)t.removeAttributeNode(r[0]);ml(t)}var lr=new Map,h9=new Set;function Xo(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var Zr=H.d;H.d={f:Qg,r:Yg,D:Kg,C:Xg,L:Zg,m:Jg,X:e6,S:Wg,M:t6};function Qg(){var t=Zr.f(),r=Io();return t||r}function Yg(t){var r=Tr(t);r!==null&&r.tag===5&&r.type==="form"?Mh(r):Zr.r(t)}var Ji=typeof document>"u"?null:document;function p9(t,r,l){var o=Ji;if(o&&typeof r=="string"&&r){var h=Fn(r);h='link[rel="'+t+'"][href="'+h+'"]',typeof l=="string"&&(h+='[crossorigin="'+l+'"]'),h9.has(h)||(h9.add(h),t={rel:t,crossOrigin:l,href:r},o.querySelector(h)===null&&(r=o.createElement("link"),cn(r,"link",t),Vt(r),o.head.appendChild(r)))}}function Kg(t){Zr.D(t),p9("dns-prefetch",t,null)}function Xg(t,r){Zr.C(t,r),p9("preconnect",t,r)}function Zg(t,r,l){Zr.L(t,r,l);var o=Ji;if(o&&t&&r){var h='link[rel="preload"][as="'+Fn(r)+'"]';r==="image"&&l&&l.imageSrcSet?(h+='[imagesrcset="'+Fn(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(h+='[imagesizes="'+Fn(l.imageSizes)+'"]')):h+='[href="'+Fn(t)+'"]';var E=h;switch(r){case"style":E=Wi(t);break;case"script":E=el(t)}lr.has(E)||(t=p({rel:"preload",href:r==="image"&&l&&l.imageSrcSet?void 0:t,as:r},l),lr.set(E,t),o.querySelector(h)!==null||r==="style"&&o.querySelector(ns(E))||r==="script"&&o.querySelector(rs(E))||(r=o.createElement("link"),cn(r,"link",t),Vt(r),o.head.appendChild(r)))}}function Jg(t,r){Zr.m(t,r);var l=Ji;if(l&&t){var o=r&&typeof r.as=="string"?r.as:"script",h='link[rel="modulepreload"][as="'+Fn(o)+'"][href="'+Fn(t)+'"]',E=h;switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":E=el(t)}if(!lr.has(E)&&(t=p({rel:"modulepreload",href:t},r),lr.set(E,t),l.querySelector(h)===null)){switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(rs(E)))return}o=l.createElement("link"),cn(o,"link",t),Vt(o),l.head.appendChild(o)}}}function Wg(t,r,l){Zr.S(t,r,l);var o=Ji;if(o&&t){var h=aa(o).hoistableStyles,E=Wi(t);r=r||"default";var A=h.get(E);if(!A){var D={loading:0,preload:null};if(A=o.querySelector(ns(E)))D.loading=5;else{t=p({rel:"stylesheet",href:t,"data-precedence":r},l),(l=lr.get(E))&&Hx(t,l);var P=A=o.createElement("link");Vt(P),cn(P,"link",t),P._p=new Promise(function(ee,se){P.onload=ee,P.onerror=se}),P.addEventListener("load",function(){D.loading|=1}),P.addEventListener("error",function(){D.loading|=2}),D.loading|=4,Zo(A,r,o)}A={type:"stylesheet",instance:A,count:1,state:D},h.set(E,A)}}}function e6(t,r){Zr.X(t,r);var l=Ji;if(l&&t){var o=aa(l).hoistableScripts,h=el(t),E=o.get(h);E||(E=l.querySelector(rs(h)),E||(t=p({src:t,async:!0},r),(r=lr.get(h))&&qx(t,r),E=l.createElement("script"),Vt(E),cn(E,"link",t),l.head.appendChild(E)),E={type:"script",instance:E,count:1,state:null},o.set(h,E))}}function t6(t,r){Zr.M(t,r);var l=Ji;if(l&&t){var o=aa(l).hoistableScripts,h=el(t),E=o.get(h);E||(E=l.querySelector(rs(h)),E||(t=p({src:t,async:!0,type:"module"},r),(r=lr.get(h))&&qx(t,r),E=l.createElement("script"),Vt(E),cn(E,"link",t),l.head.appendChild(E)),E={type:"script",instance:E,count:1,state:null},o.set(h,E))}}function m9(t,r,l,o){var h=(h=de.current)?Xo(h):null;if(!h)throw Error(i(446));switch(t){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(r=Wi(l.href),l=aa(h).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=Wi(l.href);var E=aa(h).hoistableStyles,A=E.get(t);if(A||(h=h.ownerDocument||h,A={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},E.set(t,A),(E=h.querySelector(ns(t)))&&!E._p&&(A.instance=E,A.state.loading=5),lr.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},lr.set(t,l),E||n6(h,t,l,A.state))),r&&o===null)throw Error(i(528,""));return A}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=el(l),l=aa(h).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 Wi(t){return'href="'+Fn(t)+'"'}function ns(t){return'link[rel="stylesheet"]['+t+"]"}function E9(t){return p({},t,{"data-precedence":t.precedence,precedence:null})}function n6(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}),cn(r,"link",l),Vt(r),t.head.appendChild(r))}function el(t){return'[src="'+Fn(t)+'"]'}function rs(t){return"script[async]"+t}function g9(t,r,l){if(r.count++,r.instance===null)switch(r.type){case"style":var o=t.querySelector('style[data-href~="'+Fn(l.href)+'"]');if(o)return r.instance=o,Vt(o),o;var h=p({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return o=(t.ownerDocument||t).createElement("style"),Vt(o),cn(o,"style",h),Zo(o,l.precedence,t),r.instance=o;case"stylesheet":h=Wi(l.href);var E=t.querySelector(ns(h));if(E)return r.state.loading|=4,r.instance=E,Vt(E),E;o=E9(l),(h=lr.get(h))&&Hx(o,h),E=(t.ownerDocument||t).createElement("link"),Vt(E);var A=E;return A._p=new Promise(function(D,P){A.onload=D,A.onerror=P}),cn(E,"link",o),r.state.loading|=4,Zo(E,l.precedence,t),r.instance=E;case"script":return E=el(l.src),(h=t.querySelector(rs(E)))?(r.instance=h,Vt(h),h):(o=l,(h=lr.get(E))&&(o=p({},l),qx(o,h)),t=t.ownerDocument||t,h=t.createElement("script"),Vt(h),cn(h,"link",o),t.head.appendChild(h),r.instance=h);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,Zo(o,l.precedence,t));return r.instance}function Zo(t,r,l){for(var o=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),h=o.length?o[o.length-1]:null,E=h,A=0;A<o.length;A++){var D=o[A];if(D.dataset.precedence===r)E=D;else if(E!==h)break}E?E.parentNode.insertBefore(t,E.nextSibling):(r=l.nodeType===9?l.head:l,r.insertBefore(t,r.firstChild))}function Hx(t,r){t.crossOrigin==null&&(t.crossOrigin=r.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=r.referrerPolicy),t.title==null&&(t.title=r.title)}function qx(t,r){t.crossOrigin==null&&(t.crossOrigin=r.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=r.referrerPolicy),t.integrity==null&&(t.integrity=r.integrity)}var Jo=null;function y9(t,r,l){if(Jo===null){var o=new Map,h=Jo=new Map;h.set(l,o)}else h=Jo,o=h.get(l),o||(o=new Map,h.set(l,o));if(o.has(t))return o;for(o.set(t,null),l=l.getElementsByTagName(t),h=0;h<l.length;h++){var E=l[h];if(!(E[Ia]||E[Ht]||t==="link"&&E.getAttribute("rel")==="stylesheet")&&E.namespaceURI!=="http://www.w3.org/2000/svg"){var A=E.getAttribute(r)||"";A=t+A;var D=o.get(A);D?D.push(E):o.set(A,[E])}}return o}function C9(t,r,l){t=t.ownerDocument||t,t.head.insertBefore(l,r==="title"?t.querySelector("head > title"):null)}function r6(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 b9(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function a6(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 h=Wi(o.href),E=r.querySelector(ns(h));if(E){r=E._p,r!==null&&typeof r=="object"&&typeof r.then=="function"&&(t.count++,t=Wo.bind(t),r.then(t,t)),l.state.loading|=4,l.instance=E,Vt(E);return}E=r.ownerDocument||r,o=E9(o),(h=lr.get(h))&&Hx(o,h),E=E.createElement("link"),Vt(E);var A=E;A._p=new Promise(function(D,P){A.onload=D,A.onerror=P}),cn(E,"link",o),l.instance=E}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(l,r),(r=l.state.preload)&&(l.state.loading&3)===0&&(t.count++,l=Wo.bind(t),r.addEventListener("load",l),r.addEventListener("error",l))}}var $x=0;function i6(t,r){return t.stylesheets&&t.count===0&&t0(t,t.stylesheets),0<t.count||0<t.imgCount?function(l){var o=setTimeout(function(){if(t.stylesheets&&t0(t,t.stylesheets),t.unsuspend){var E=t.unsuspend;t.unsuspend=null,E()}},6e4+r);0<t.imgBytes&&$x===0&&($x=62500*Pg());var h=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&t0(t,t.stylesheets),t.unsuspend)){var E=t.unsuspend;t.unsuspend=null,E()}},(t.imgBytes>$x?50:800)+r);return t.unsuspend=l,function(){t.unsuspend=null,clearTimeout(o),clearTimeout(h)}}:null}function Wo(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)t0(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var e0=null;function t0(t,r){t.stylesheets=null,t.unsuspend!==null&&(t.count++,e0=new Map,r.forEach(l6,t),e0=null,Wo.call(t))}function l6(t,r){if(!(r.state.loading&4)){var l=e0.get(t);if(l)var o=l.get(null);else{l=new Map,e0.set(t,l);for(var h=t.querySelectorAll("link[data-precedence],style[data-precedence]"),E=0;E<h.length;E++){var A=h[E];(A.nodeName==="LINK"||A.getAttribute("media")!=="not all")&&(l.set(A.dataset.precedence,A),o=A)}o&&l.set(null,o)}h=r.instance,A=h.getAttribute("data-precedence"),E=l.get(A)||o,E===o&&l.set(null,h),l.set(A,h),this.count++,o=Wo.bind(this),h.addEventListener("load",o),h.addEventListener("error",o),E?E.parentNode.insertBefore(h,E.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(h,t.firstChild)),r.state.loading|=4}}var as={$$typeof:_,Provider:null,Consumer:null,_currentValue:re,_currentValue2:re,_threadCount:0};function s6(t,r,l,o,h,E,A,D,P){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=wt(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=wt(0),this.hiddenUpdates=wt(null),this.identifierPrefix=o,this.onUncaughtError=h,this.onCaughtError=E,this.onRecoverableError=A,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=P,this.incompleteTransitions=new Map}function A9(t,r,l,o,h,E,A,D,P,ee,se,xe){return t=new s6(t,r,l,A,P,ee,se,xe,D),r=1,E===!0&&(r|=24),E=Hn(3,null,null,r),t.current=E,E.stateNode=t,r=Bc(),r.refCount++,t.pooledCache=r,r.refCount++,E.memoizedState={element:o,isDehydrated:l,cache:r},Fc(E),t}function B9(t){return t?(t=Mi,t):Mi}function v9(t,r,l,o,h,E){h=B9(h),o.context===null?o.context=h:o.pendingContext=h,o=da(r),o.payload={element:l},E=E===void 0?null:E,E!==null&&(o.callback=E),l=ha(t,o,r),l!==null&&(Tn(l,t,r),jl(l,t,r))}function k9(t,r){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var l=t.retryLane;t.retryLane=l!==0&&l<r?l:r}}function Gx(t,r){k9(t,r),(t=t.alternate)&&k9(t,r)}function D9(t){if(t.tag===13||t.tag===31){var r=Qa(t,67108864);r!==null&&Tn(r,t,67108864),Gx(t,67108864)}}function F9(t){if(t.tag===13||t.tag===31){var r=Qn();r=Rt(r);var l=Qa(t,r);l!==null&&Tn(l,t,r),Gx(t,r)}}var n0=!0;function o6(t,r,l,o){var h=U.T;U.T=null;var E=H.p;try{H.p=2,Vx(t,r,l,o)}finally{H.p=E,U.T=h}}function c6(t,r,l,o){var h=U.T;U.T=null;var E=H.p;try{H.p=8,Vx(t,r,l,o)}finally{H.p=E,U.T=h}}function Vx(t,r,l,o){if(n0){var h=Qx(o);if(h===null)Nx(t,r,o,r0,l),S9(t,o);else if(u6(h,t,r,l,o))o.stopPropagation();else if(S9(t,o),r&4&&-1<x6.indexOf(t)){for(;h!==null;){var E=Tr(h);if(E!==null)switch(E.tag){case 3:if(E=E.stateNode,E.current.memoizedState.isDehydrated){var A=kn(E.pendingLanes);if(A!==0){var D=E;for(D.pendingLanes|=2,D.entangledLanes|=2;A;){var P=1<<31-dt(A);D.entanglements[1]|=P,A&=~P}Ar(E),(xt&6)===0&&(Po=jt()+500,Jl(0))}}break;case 31:case 13:D=Qa(E,2),D!==null&&Tn(D,E,2),Io(),Gx(E,2)}if(E=Qx(o),E===null&&Nx(t,r,o,r0,l),E===h)break;h=E}h!==null&&o.stopPropagation()}else Nx(t,r,o,null,l)}}function Qx(t){return t=$e(t),Yx(t)}var r0=null;function Yx(t){if(r0=null,t=bn(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 r0=t,null}function w9(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(gi()){case le:return 2;case me:return 8;case Oe:case Ye:return 32;case st:return 268435456;default:return 32}default:return 32}}var Kx=!1,ka=null,Da=null,Fa=null,is=new Map,ls=new Map,wa=[],x6="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 S9(t,r){switch(t){case"focusin":case"focusout":ka=null;break;case"dragenter":case"dragleave":Da=null;break;case"mouseover":case"mouseout":Fa=null;break;case"pointerover":case"pointerout":is.delete(r.pointerId);break;case"gotpointercapture":case"lostpointercapture":ls.delete(r.pointerId)}}function ss(t,r,l,o,h,E){return t===null||t.nativeEvent!==E?(t={blockedOn:r,domEventName:l,eventSystemFlags:o,nativeEvent:E,targetContainers:[h]},r!==null&&(r=Tr(r),r!==null&&D9(r)),t):(t.eventSystemFlags|=o,r=t.targetContainers,h!==null&&r.indexOf(h)===-1&&r.push(h),t)}function u6(t,r,l,o,h){switch(r){case"focusin":return ka=ss(ka,t,r,l,o,h),!0;case"dragenter":return Da=ss(Da,t,r,l,o,h),!0;case"mouseover":return Fa=ss(Fa,t,r,l,o,h),!0;case"pointerover":var E=h.pointerId;return is.set(E,ss(is.get(E)||null,t,r,l,o,h)),!0;case"gotpointercapture":return E=h.pointerId,ls.set(E,ss(ls.get(E)||null,t,r,l,o,h)),!0}return!1}function _9(t){var r=bn(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,bi(t.priority,function(){F9(l)});return}}else if(r===31){if(r=u(l),r!==null){t.blockedOn=r,bi(t.priority,function(){F9(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 a0(t){if(t.blockedOn!==null)return!1;for(var r=t.targetContainers;0<r.length;){var l=Qx(t.nativeEvent);if(l===null){l=t.nativeEvent;var o=new l.constructor(l.type,l);Se=o,l.target.dispatchEvent(o),Se=null}else return r=Tr(l),r!==null&&D9(r),t.blockedOn=l,!1;r.shift()}return!0}function M9(t,r,l){a0(t)&&l.delete(r)}function f6(){Kx=!1,ka!==null&&a0(ka)&&(ka=null),Da!==null&&a0(Da)&&(Da=null),Fa!==null&&a0(Fa)&&(Fa=null),is.forEach(M9),ls.forEach(M9)}function i0(t,r){t.blockedOn===r&&(t.blockedOn=null,Kx||(Kx=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,f6)))}var l0=null;function N9(t){l0!==t&&(l0=t,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){l0===t&&(l0=null);for(var r=0;r<t.length;r+=3){var l=t[r],o=t[r+1],h=t[r+2];if(typeof o!="function"){if(Yx(o||l)===null)continue;break}var E=Tr(l);E!==null&&(t.splice(r,3),r-=3,Qc(E,{pending:!0,data:h,method:l.method,action:o},o,h))}}))}function tl(t){function r(P){return i0(P,t)}ka!==null&&i0(ka,t),Da!==null&&i0(Da,t),Fa!==null&&i0(Fa,t),is.forEach(r),ls.forEach(r);for(var l=0;l<wa.length;l++){var o=wa[l];o.blockedOn===t&&(o.blockedOn=null)}for(;0<wa.length&&(l=wa[0],l.blockedOn===null);)_9(l),l.blockedOn===null&&wa.shift();if(l=(t.ownerDocument||t).$$reactFormReplay,l!=null)for(o=0;o<l.length;o+=3){var h=l[o],E=l[o+1],A=h[hn]||null;if(typeof E=="function")A||N9(l);else if(A){var D=null;if(E&&E.hasAttribute("formAction")){if(h=E,A=E[hn]||null)D=A.formAction;else if(Yx(h)!==null)continue}else D=A.action;typeof D=="function"?l[o+1]=D:(l.splice(o,3),o-=3),N9(l)}}}function T9(){function t(E){E.canIntercept&&E.info==="react-transition"&&E.intercept({handler:function(){return new Promise(function(A){return h=A})},focusReset:"manual",scroll:"manual"})}function r(){h!==null&&(h(),h=null),o||setTimeout(l,20)}function l(){if(!o&&!navigation.transition){var E=navigation.currentEntry;E&&E.url!=null&&navigation.navigate(E.url,{state:E.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var o=!1,h=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),h!==null&&(h(),h=null)}}}function Xx(t){this._internalRoot=t}s0.prototype.render=Xx.prototype.render=function(t){var r=this._internalRoot;if(r===null)throw Error(i(409));var l=r.current,o=Qn();v9(l,o,t,r,null,null)},s0.prototype.unmount=Xx.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var r=t.containerInfo;v9(t.current,2,null,t,null,null),Io(),r[na]=null}};function s0(t){this._internalRoot=t}s0.prototype.unstable_scheduleHydration=function(t){if(t){var r=Ci();t={blockedOn:null,target:t,priority:r};for(var l=0;l<wa.length&&r!==0&&r<wa[l].priority;l++);wa.splice(l,0,t),l===0&&_9(t)}};var R9=n.version;if(R9!=="19.2.7")throw Error(i(527,R9,"19.2.7"));H.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=d(r),t=t!==null?m(t):null,t=t===null?null:t.stateNode,t};var d6={bundleType:0,version:"19.2.7",rendererPackageName:"react-dom",currentDispatcherRef:U,reconcilerVersion:"19.2.7"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var o0=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!o0.isDisabled&&o0.supportsFiber)try{rn=o0.inject(d6),Lt=o0}catch{}}return cs.createRoot=function(t,r){if(!s(t))throw Error(i(299));var l=!1,o="",h=Ih,E=Hh,A=qh;return r!=null&&(r.unstable_strictMode===!0&&(l=!0),r.identifierPrefix!==void 0&&(o=r.identifierPrefix),r.onUncaughtError!==void 0&&(h=r.onUncaughtError),r.onCaughtError!==void 0&&(E=r.onCaughtError),r.onRecoverableError!==void 0&&(A=r.onRecoverableError)),r=A9(t,1,!1,null,null,l,o,null,h,E,A,T9),t[na]=r.current,Mx(t),new Xx(r)},cs.hydrateRoot=function(t,r,l){if(!s(t))throw Error(i(299));var o=!1,h="",E=Ih,A=Hh,D=qh,P=null;return l!=null&&(l.unstable_strictMode===!0&&(o=!0),l.identifierPrefix!==void 0&&(h=l.identifierPrefix),l.onUncaughtError!==void 0&&(E=l.onUncaughtError),l.onCaughtError!==void 0&&(A=l.onCaughtError),l.onRecoverableError!==void 0&&(D=l.onRecoverableError),l.formState!==void 0&&(P=l.formState)),r=A9(t,1,!0,r,l??null,o,h,P,E,A,D,T9),r.context=B9(null),l=r.current,o=Qn(),o=Rt(o),h=da(o),h.callback=null,ha(l,h,o),l=o,r.current.lanes=l,Bt(r,l),Ar(r),t[na]=r.current,Mx(t),new s0(r)},cs.version="19.2.7",cs}var ep;function s4(){if(ep)return Wx.exports;ep=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(),Wx.exports=l4(),Wx.exports}var o4=s4();var Cf=/^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i,r8=/^[\\/]{2}/;function c4(e,n){return n+e.replace(/\\/g,"/")}var tp="popstate";function np(e){return typeof e=="object"&&e!=null&&"pathname"in e&&"search"in e&&"hash"in e&&"state"in e&&"key"in e}function x4(e={}){function n(i,s){let c=s.state?.masked,{pathname:x,search:u,hash:f}=c||i.location;return $u("",{pathname:x,search:u,hash:f},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:_s(s)}return f4(n,a,null,e)}function Nt(e,n){if(e===!1||e===null||typeof e>"u")throw new Error(n)}function or(e,n){if(!e){typeof console<"u"&&console.warn(n);try{throw new Error(n)}catch{}}}function u4(){return Math.random().toString(36).substring(2,10)}function rp(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 $u(e,n,a=null,i,s){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof n=="string"?sl(n):n,state:a,key:n&&n.key||i||u4(),mask:s}}function _s({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 sl(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 f4(e,n,a,i={}){let{window:s=document.defaultView,v5Compat:c=!1}=i,x=s.history,u="POP",f=null,d=m();d==null&&(d=0,x.replaceState({...x.state,idx:d},""));function m(){return(x.state||{idx:null}).idx}function p(){u="POP";let v=m(),k=v==null?null:v-d;d=v,f&&f({action:u,location:B.location,delta:k})}function y(v,k){u="PUSH";let R=np(v)?v:$u(B.location,v,k);d=m()+1;let _=rp(R,d),N=B.createHref(R.mask||R);try{x.pushState(_,"",N)}catch(T){if(T instanceof DOMException&&T.name==="DataCloneError")throw T;s.location.assign(N)}c&&f&&f({action:u,location:B.location,delta:1})}function C(v,k){u="REPLACE";let R=np(v)?v:$u(B.location,v,k);d=m();let _=rp(R,d),N=B.createHref(R.mask||R);x.replaceState(_,"",N),c&&f&&f({action:u,location:B.location,delta:0})}function b(v){return d4(s,v)}let B={get action(){return u},get location(){return e(s,x)},listen(v){if(f)throw new Error("A history only accepts one active listener");return s.addEventListener(tp,p),f=v,()=>{s.removeEventListener(tp,p),f=null}},createHref(v){return n(s,v)},createURL:b,encodeLocation(v){let k=b(v);return{pathname:k.pathname,search:k.search,hash:k.hash}},push:y,replace:C,go(v){return x.go(v)}};return B}function d4(e,n,a=!1){let i="http://localhost";e&&(i=e.location.origin!=="null"?e.location.origin:e.location.href),Nt(i,"No window.location.(origin|href) available to create URL");let s=typeof n=="string"?n:_s(n);return s=s.replace(/ $/,"%20"),!a&&r8.test(s)&&(s=i+s),new URL(s,i)}function a8(e,n,a="/"){return h4(e,n,a,!1)}function h4(e,n,a,i,s){let c=typeof n=="string"?sl(n):n,x=Wr(c.pathname||"/",a);if(x==null)return null;let u=p4(e),f=null,d=c8(x);for(let m=0;f==null&&m<u.length;++m)f=k4(u[m],d,i);return f}function p4(e){let n=i8(e);return m4(n),n}function i8(e,n=[],a=[],i="",s=!1){let c=(x,u,f=s,d)=>{let m={relativePath:d===void 0?x.path||"":d,caseSensitive:x.caseSensitive===!0,childrenIndex:u,route:x};if(m.relativePath.startsWith("/")){if(!m.relativePath.startsWith(i)&&f)return;Nt(m.relativePath.startsWith(i),`Absolute route path "${m.relativePath}" nested under path "${i}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),m.relativePath=m.relativePath.slice(i.length)}let p=pr([i,m.relativePath]),y=a.concat(m);x.children&&x.children.length>0&&(Nt(x.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${p}".`),i8(x.children,n,y,p,f)),!(x.path==null&&!x.index)&&n.push({path:p,score:B4(p,x.index),routesMeta:y.map((C,b)=>{let[B,v]=o8(C.relativePath,C.caseSensitive,b===y.length-1);return{...C,matcher:B,compiledParams:v}})})};return e.forEach((x,u)=>{if(x.path===""||!x.path?.includes("?"))c(x,u);else for(let f of l8(x.path))c(x,u,!0,f)}),n}function l8(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=l8(i.join("/")),u=[];return u.push(...x.map(f=>f===""?c:[c,f].join("/"))),s&&u.push(...x),u.map(f=>e.startsWith("/")&&f===""?"/":f)}function m4(e){e.sort((n,a)=>n.score!==a.score?a.score-n.score:v4(n.routesMeta.map(i=>i.childrenIndex),a.routesMeta.map(i=>i.childrenIndex)))}var E4=/^:[\w-]+$/,g4=3,y4=2,C4=1,b4=10,A4=-2,ap=e=>e==="*";function B4(e,n){let a=e.split("/"),i=a.length;return a.some(ap)&&(i+=A4),n&&(i+=y4),a.filter(s=>!ap(s)).reduce((s,c)=>s+(E4.test(c)?g4:c===""?C4:b4),i)}function v4(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 k4(e,n,a=!1){let{routesMeta:i}=e,s={},c="/",x=[];for(let u=0;u<i.length;++u){let f=i[u],d=u===i.length-1,m=c==="/"?n:n.slice(c.length)||"/",p={path:f.relativePath,caseSensitive:f.caseSensitive,end:d},y=f.matcher&&f.compiledParams?s8(p,m,f.matcher,f.compiledParams):Ms(p,m),C=f.route;if(!y&&d&&a&&!i[i.length-1].route.index&&(y=Ms({path:f.relativePath,caseSensitive:f.caseSensitive,end:!1},m)),!y)return null;Object.assign(s,y.params),x.push({params:s,pathname:pr([c,y.pathname]),pathnameBase:w4(pr([c,y.pathnameBase])),route:C}),y.pathnameBase!=="/"&&(c=pr([c,y.pathnameBase]))}return x}function Ms(e,n){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[a,i]=o8(e.path,e.caseSensitive,e.end);return s8(e,n,a,i)}function s8(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((d,{paramName:m,isOptional:p},y)=>{if(m==="*"){let b=u[y]||"";x=c.slice(0,c.length-b.length).replace(/(.)\/+$/,"$1")}const C=u[y];return p&&!C?d[m]=void 0:d[m]=(C||"").replace(/%2F/g,"/"),d},{}),pathname:c,pathnameBase:x,pattern:e}}function o8(e,n=!1,a=!0){or(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,f,d,m)=>{if(i.push({paramName:u,isOptional:f!=null}),f){let p=m.charAt(d+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 c8(e){try{return e.split("/").map(n=>decodeURIComponent(n).replace(/\//g,"%2F")).join("/")}catch(n){return or(!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 Wr(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 D4(e,n="/"){let{pathname:a,search:i="",hash:s=""}=typeof e=="string"?sl(e):e,c;return a?(a=x8(a),a.startsWith("/")?c=ip(a.substring(1),"/"):c=ip(a,n)):c=n,{pathname:c,search:S4(i),hash:_4(s)}}function ip(e,n){let a=S0(n).split("/");return e.split("/").forEach(s=>{s===".."?a.length>1&&a.pop():s!=="."&&a.push(s)}),a.length>1?a.join("/"):"/"}function ru(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 F4(e){return e.filter((n,a)=>a===0||n.route.path&&n.route.path.length>0)}function bf(e){let n=F4(e);return n.map((a,i)=>i===n.length-1?a.pathname:a.pathnameBase)}function P0(e,n,a,i=!1){let s;typeof e=="string"?s=sl(e):(s={...e},Nt(!s.pathname||!s.pathname.includes("?"),ru("?","pathname","search",s)),Nt(!s.pathname||!s.pathname.includes("#"),ru("#","pathname","hash",s)),Nt(!s.search||!s.search.includes("#"),ru("#","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 f=D4(s,u),d=x&&x!=="/"&&x.endsWith("/"),m=(c||x===".")&&a.endsWith("/");return!f.pathname.endsWith("/")&&(d||m)&&(f.pathname+="/"),f}var x8=e=>e.replace(/[\\/]{2,}/g,"/"),pr=e=>x8(e.join("/")),S0=e=>e.replace(/\/+$/,""),w4=e=>S0(e).replace(/^\/*/,"/"),S4=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,_4=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,M4=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 N4(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function T4(e){let n=e.map(a=>a.route.path).filter(Boolean);return pr(n)||"/"}var u8=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function f8(e,n){let a=e;if(typeof a!="string"||!Cf.test(a))return{absoluteURL:void 0,isExternal:!1,to:a};let i=a,s=!1;if(u8)try{let c=new URL(window.location.href),x=r8.test(a)?new URL(c4(a,c.protocol)):new URL(a),u=Wr(x.pathname,n);x.origin===c.origin&&u!=null?a=u+x.search+x.hash:s=!0}catch{or(!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 d8=["POST","PUT","PATCH","DELETE"];new Set(d8);var R4=["GET",...d8];new Set(R4);var O4=["about:","blob:","chrome:","chrome-untrusted:","content:","data:","devtools:","file:","filesystem:","javascript:"];function j4(e){try{return O4.includes(new URL(e).protocol)}catch{return!1}}var ol=S.createContext(null);ol.displayName="DataRouter";var U0=S.createContext(null);U0.displayName="DataRouterState";var h8=S.createContext(!1);function z4(){return S.useContext(h8)}var p8=S.createContext({isTransitioning:!1});p8.displayName="ViewTransition";var L4=S.createContext(new Map);L4.displayName="Fetchers";var P4=S.createContext(null);P4.displayName="Await";var Zn=S.createContext(null);Zn.displayName="Navigation";var Us=S.createContext(null);Us.displayName="Location";var cr=S.createContext({outlet:null,matches:[],isDataRoute:!1});cr.displayName="Route";var Af=S.createContext(null);Af.displayName="RouteError";var m8="REACT_ROUTER_ERROR",U4="REDIRECT",I4="ROUTE_ERROR_RESPONSE";function H4(e){if(e.startsWith(`${m8}:${U4}:{`))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 q4(e){if(e.startsWith(`${m8}:${I4}:{`))try{let n=JSON.parse(e.slice(40));if(typeof n=="object"&&n&&typeof n.status=="number"&&typeof n.statusText=="string")return new M4(n.status,n.statusText,n.data)}catch{}}function $4(e,{relative:n}={}){Nt(hi(),"useHref() may be used only in the context of a <Router> component.");let{basename:a,navigator:i}=S.useContext(Zn),{hash:s,pathname:c,search:x}=Is(e,{relative:n}),u=c;return a!=="/"&&(u=c==="/"?a:pr([a,c])),i.createHref({pathname:u,search:x,hash:s})}function hi(){return S.useContext(Us)!=null}function xr(){return Nt(hi(),"useLocation() may be used only in the context of a <Router> component."),S.useContext(Us).location}function G4(e){Nt(hi(),"useMatch() may be used only in the context of a <Router> component.");let{pathname:n}=xr();return S.useMemo(()=>Ms(e,c8(n)),[n,e])}var E8="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function g8(e){S.useContext(Zn).static||S.useLayoutEffect(e)}function cl(){let{isDataRoute:e}=S.useContext(cr);return e?s7():V4()}function V4(){Nt(hi(),"useNavigate() may be used only in the context of a <Router> component.");let e=S.useContext(ol),{basename:n,navigator:a}=S.useContext(Zn),{matches:i}=S.useContext(cr),{pathname:s}=xr(),c=JSON.stringify(bf(i)),x=S.useRef(!1);return g8(()=>{x.current=!0}),S.useCallback((f,d={})=>{if(or(x.current,E8),!x.current)return;if(typeof f=="number"){a.go(f);return}let m=P0(f,JSON.parse(c),s,d.relative==="path");e==null&&n!=="/"&&(m.pathname=m.pathname==="/"?n:pr([n,m.pathname])),(d.replace?a.replace:a.push)(m,d.state,d)},[n,a,c,s,e])}var Q4=S.createContext(null);function Y4(e){let n=S.useContext(cr).outlet;return S.useMemo(()=>n&&S.createElement(Q4.Provider,{value:e},n),[n,e])}function K4(){let{matches:e}=S.useContext(cr);return e[e.length-1]?.params??{}}function Is(e,{relative:n}={}){let{matches:a}=S.useContext(cr),{pathname:i}=xr(),s=JSON.stringify(bf(a));return S.useMemo(()=>P0(e,JSON.parse(s),i,n==="path"),[e,s,i,n])}function X4(e,n){return y8(e,n)}function y8(e,n,a){Nt(hi(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:i}=S.useContext(Zn),{matches:s}=S.useContext(cr),c=s[s.length-1],x=c?c.params:{},u=c?c.pathname:"/",f=c?c.pathnameBase:"/",d=c&&c.route;{let v=d&&d.path||"";b8(u,!d||v.endsWith("*")||v.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${u}" (under <Route path="${v}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
|
|
10
|
+
|
|
11
|
+
Please change the parent <Route path="${v}"> to <Route path="${v==="/"?"*":`${v}/*`}">.`)}let m=xr(),p;if(n){let v=typeof n=="string"?sl(n):n;Nt(f==="/"||v.pathname?.startsWith(f),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${f}" but pathname "${v.pathname}" was given in the \`location\` prop.`),p=v}else p=m;let y=p.pathname||"/",C=y;if(f!=="/"){let v=f.replace(/^\//,"").split("/");C="/"+y.replace(/^\//,"").split("/").slice(v.length).join("/")}let b=a&&a.state.matches.length?a.state.matches.map(v=>Object.assign(v,{route:a.manifest[v.route.id]||v.route})):a8(e,{pathname:C});or(d||b!=null,`No routes matched location "${p.pathname}${p.search}${p.hash}" `),or(b==null||b[b.length-1].route.element!==void 0||b[b.length-1].route.Component!==void 0||b[b.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 B=t7(b&&b.map(v=>Object.assign({},v,{params:Object.assign({},x,v.params),pathname:pr([f,i.encodeLocation?i.encodeLocation(v.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:v.pathname]),pathnameBase:v.pathnameBase==="/"?f:pr([f,i.encodeLocation?i.encodeLocation(v.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:v.pathnameBase])})),s,a);return n&&B?S.createElement(Us.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",mask:void 0,...p},navigationType:"POP"}},B):B}function Z4(){let e=l7(),n=N4(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=S.createElement(S.Fragment,null,S.createElement("p",null,"💿 Hey developer 👋"),S.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",S.createElement("code",{style:c},"ErrorBoundary")," or"," ",S.createElement("code",{style:c},"errorElement")," prop on your route.")),S.createElement(S.Fragment,null,S.createElement("h2",null,"Unexpected Application Error!"),S.createElement("h3",{style:{fontStyle:"italic"}},n),a?S.createElement("pre",{style:s},a):null,x)}var J4=S.createElement(Z4,null),C8=class extends S.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=q4(e.digest);a&&(e=a)}let n=e!==void 0?S.createElement(cr.Provider,{value:this.props.routeContext},S.createElement(Af.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?S.createElement(W4,{error:e},n):n}};C8.contextType=h8;var au=new WeakMap;function W4({children:e,error:n}){let{basename:a}=S.useContext(Zn);if(typeof n=="object"&&n&&"digest"in n&&typeof n.digest=="string"){let i=H4(n.digest);if(i){let s=au.get(n);if(s)throw s;let c=f8(i.location,a),x=c.absoluteURL||c.to;if(j4(x))throw new Error("Invalid redirect location");if(u8&&!au.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 au.set(n,u),u}return S.createElement("meta",{httpEquiv:"refresh",content:`0;url=${x}`})}}return e}function e7({routeContext:e,match:n,children:a}){let i=S.useContext(ol);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),S.createElement(cr.Provider,{value:e},a)}function t7(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 m=s.findIndex(p=>p.route.id&&c?.[p.route.id]!==void 0);Nt(m>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(c).join(",")}`),s=s.slice(0,Math.min(s.length,m+1))}let x=!1,u=-1;if(a&&i){x=i.renderFallback;for(let m=0;m<s.length;m++){let p=s[m];if((p.route.HydrateFallback||p.route.hydrateFallbackElement)&&(u=m),p.route.id){let{loaderData:y,errors:C}=i,b=p.route.loader&&!y.hasOwnProperty(p.route.id)&&(!C||C[p.route.id]===void 0);if(p.route.lazy||b){a.isStatic&&(x=!0),u>=0?s=s.slice(0,u+1):s=[s[0]];break}}}}let f=a?.onError,d=i&&f?(m,p)=>{f(m,{location:i.location,params:i.matches?.[0]?.params??{},pattern:T4(i.matches),errorInfo:p})}:void 0;return s.reduceRight((m,p,y)=>{let C,b=!1,B=null,v=null;i&&(C=c&&p.route.id?c[p.route.id]:void 0,B=p.route.errorElement||J4,x&&(u<0&&y===0?(b8("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),b=!0,v=null):u===y&&(b=!0,v=p.route.hydrateFallbackElement||null)));let k=n.concat(s.slice(0,y+1)),R=()=>{let _;return C?_=B:b?_=v:p.route.Component?_=S.createElement(p.route.Component,null):p.route.element?_=p.route.element:_=m,S.createElement(e7,{match:p,routeContext:{outlet:m,matches:k,isDataRoute:i!=null},children:_})};return i&&(p.route.ErrorBoundary||p.route.errorElement||y===0)?S.createElement(C8,{location:i.location,revalidation:i.revalidation,component:B,error:C,children:R(),routeContext:{outlet:null,matches:k,isDataRoute:!0},onError:d}):R()},null)}function Bf(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function n7(e){let n=S.useContext(ol);return Nt(n,Bf(e)),n}function r7(e){let n=S.useContext(U0);return Nt(n,Bf(e)),n}function a7(e){let n=S.useContext(cr);return Nt(n,Bf(e)),n}function vf(e){let n=a7(e),a=n.matches[n.matches.length-1];return Nt(a.route.id,`${e} can only be used on routes that contain a unique "id"`),a.route.id}function i7(){return vf("useRouteId")}function l7(){let e=S.useContext(Af),n=r7("useRouteError"),a=vf("useRouteError");return e!==void 0?e:n.errors?.[a]}function s7(){let{router:e}=n7("useNavigate"),n=vf("useNavigate"),a=S.useRef(!1);return g8(()=>{a.current=!0}),S.useCallback(async(s,c={})=>{or(a.current,E8),a.current&&(typeof s=="number"?await e.navigate(s):await e.navigate(s,{fromRouteId:n,...c}))},[e,n])}var lp={};function b8(e,n,a){!n&&!lp[e]&&(lp[e]=!0,or(!1,a))}S.memo(o7);function o7({routes:e,manifest:n,future:a,state:i,isStatic:s,onError:c}){return y8(e,void 0,{manifest:n,state:i,isStatic:s,onError:c})}function c7({to:e,replace:n,state:a,relative:i}){Nt(hi(),"<Navigate> may be used only in the context of a <Router> component.");let{static:s}=S.useContext(Zn);or(!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}=S.useContext(cr),{pathname:x}=xr(),u=cl(),f=P0(e,bf(c),x,i==="path"),d=JSON.stringify(f);return S.useEffect(()=>{u(JSON.parse(d),{replace:n,state:a,relative:i})},[u,d,i,n,a]),null}function x7(e){return Y4(e.context)}function Cs(e){Nt(!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 u7({basename:e="/",children:n=null,location:a,navigationType:i="POP",navigator:s,static:c=!1,useTransitions:x}){Nt(!hi(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let u=e.replace(/^\/*/,"/"),f=S.useMemo(()=>({basename:u,navigator:s,static:c,useTransitions:x,future:{}}),[u,s,c,x]);typeof a=="string"&&(a=sl(a));let{pathname:d="/",search:m="",hash:p="",state:y=null,key:C="default",mask:b}=a,B=S.useMemo(()=>{let v=Wr(d,u);return v==null?null:{location:{pathname:v,search:m,hash:p,state:y,key:C,mask:b},navigationType:i}},[u,d,m,p,y,C,i,b]);return or(B!=null,`<Router basename="${u}"> is not able to match the URL "${d}${m}${p}" because it does not start with the basename, so the <Router> won't render anything.`),B==null?null:S.createElement(Zn.Provider,{value:f},S.createElement(Us.Provider,{children:n,value:B}))}function f7({children:e,location:n}){return X4(Gu(e),n)}function Gu(e,n=[]){let a=[];return S.Children.forEach(e,(i,s)=>{if(!S.isValidElement(i))return;let c=[...n,s];if(i.type===S.Fragment){a.push.apply(a,Gu(i.props.children,c));return}Nt(i.type===Cs,`[${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>`),Nt(!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=Gu(i.props.children,c)),a.push(x)}),a}var B0="get",v0="application/x-www-form-urlencoded";function I0(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}function d7(e){return I0(e)&&e.tagName.toLowerCase()==="button"}function h7(e){return I0(e)&&e.tagName.toLowerCase()==="form"}function p7(e){return I0(e)&&e.tagName.toLowerCase()==="input"}function m7(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function E7(e,n){return e.button===0&&(!n||n==="_self")&&!m7(e)}function Vu(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 g7(e,n){let a=Vu(e);return n&&n.forEach((i,s)=>{a.has(s)||n.getAll(s).forEach(c=>{a.append(s,c)})}),a}var u0=null;function y7(){if(u0===null)try{new FormData(document.createElement("form"),0),u0=!1}catch{u0=!0}return u0}var C7=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function iu(e){return e!=null&&!C7.has(e)?(or(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${v0}"`),null):e}function b7(e,n){let a,i,s,c,x;if(h7(e)){let u=e.getAttribute("action");i=u?Wr(u,n):null,a=e.getAttribute("method")||B0,s=iu(e.getAttribute("enctype"))||v0,c=new FormData(e)}else if(d7(e)||p7(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 f=e.getAttribute("formaction")||u.getAttribute("action");if(i=f?Wr(f,n):null,a=e.getAttribute("formmethod")||u.getAttribute("method")||B0,s=iu(e.getAttribute("formenctype"))||iu(u.getAttribute("enctype"))||v0,c=new FormData(u,e),!y7()){let{name:d,type:m,value:p}=e;if(m==="image"){let y=d?`${d}.`:"";c.append(`${y}x`,"0"),c.append(`${y}y`,"0")}else d&&c.append(d,p)}}else{if(I0(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');a=B0,i=null,s=v0,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 kf(e,n){if(e===!1||e===null||typeof e>"u")throw new Error(n)}function A8(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&&Wr(s.pathname,n)==="/"?s.pathname=`${S0(n)}/_root.${i}`:s.pathname=`${S0(s.pathname)}.${i}`,s}async function A7(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 B7(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 v7(e,n,a){let i=await Promise.all(e.map(async s=>{let c=n.routes[s.route.id];if(c){let x=await A7(c,a);return x.links?x.links():[]}return[]}));return w7(i.flat(1).filter(B7).filter(s=>s.rel==="stylesheet"||s.rel==="preload").map(s=>s.rel==="stylesheet"?{...s,rel:"prefetch",as:"style"}:{...s,rel:"prefetch"}))}function sp(e,n,a,i,s,c){let x=(f,d)=>a[d]?f.route.id!==a[d].route.id:!0,u=(f,d)=>a[d].pathname!==f.pathname||a[d].route.path?.endsWith("*")&&a[d].params["*"]!==f.params["*"];return c==="assets"?n.filter((f,d)=>x(f,d)||u(f,d)):c==="data"?n.filter((f,d)=>{let m=i.routes[f.route.id];if(!m||!m.hasLoader)return!1;if(x(f,d)||u(f,d))return!0;if(f.route.shouldRevalidate){let p=f.route.shouldRevalidate({currentUrl:new URL(s.pathname+s.search+s.hash,window.origin),currentParams:a[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:f.params,defaultShouldRevalidate:!0});if(typeof p=="boolean")return p}return!0}):[]}function k7(e,n,{includeHydrateFallback:a}={}){return D7(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 D7(e){return[...new Set(e)]}function F7(e){let n={},a=Object.keys(e).sort();for(let i of a)n[i]=e[i];return n}function w7(e,n){let a=new Set;return new Set(n),e.reduce((i,s)=>{let c=JSON.stringify(F7(s));return a.has(c)||(a.add(c),i.push({key:c,link:s})),i},[])}function Df(){let e=S.useContext(ol);return kf(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function S7(){let e=S.useContext(U0);return kf(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var Ff=S.createContext(void 0);Ff.displayName="FrameworkContext";function H0(){let e=S.useContext(Ff);return kf(e,"You must render this element inside a <HydratedRouter> element"),e}function _7(e,n){let a=S.useContext(Ff),[i,s]=S.useState(!1),[c,x]=S.useState(!1),{onFocus:u,onBlur:f,onMouseEnter:d,onMouseLeave:m,onTouchStart:p}=n,y=S.useRef(null);S.useEffect(()=>{if(e==="render"&&x(!0),e==="viewport"){let B=k=>{k.forEach(R=>{x(R.isIntersecting)})},v=new IntersectionObserver(B,{threshold:.5});return y.current&&v.observe(y.current),()=>{v.disconnect()}}},[e]),S.useEffect(()=>{if(i){let B=setTimeout(()=>{x(!0)},100);return()=>{clearTimeout(B)}}},[i]);let C=()=>{s(!0)},b=()=>{s(!1),x(!1)};return a?e!=="intent"?[c,y,{}]:[c,y,{onFocus:xs(u,C),onBlur:xs(f,b),onMouseEnter:xs(d,C),onMouseLeave:xs(m,b),onTouchStart:xs(p,C)}]:[!1,y,{}]}function xs(e,n){return a=>{e&&e(a),a.defaultPrevented||n(a)}}function M7({page:e,...n}){let a=z4(),{nonce:i}=H0(),{router:s}=Df(),c=S.useMemo(()=>a8(s.routes,e,s.basename),[s.routes,e,s.basename]);return c?(n.nonce==null&&i&&(n={...n,nonce:i}),a?S.createElement(T7,{page:e,matches:c,...n}):S.createElement(R7,{page:e,matches:c,...n})):null}function N7(e){let{manifest:n,routeModules:a}=H0(),[i,s]=S.useState([]);return S.useEffect(()=>{let c=!1;return v7(e,n,a).then(x=>{c||s(x)}),()=>{c=!0}},[e,n,a]),i}function T7({page:e,matches:n,...a}){let i=xr(),{future:s}=H0(),{basename:c}=Df(),x=S.useMemo(()=>{if(e===i.pathname+i.search+i.hash)return[];let u=A8(e,c,s.v8_trailingSlashAwareDataRequests,"rsc"),f=!1,d=[];for(let m of n)typeof m.route.shouldRevalidate=="function"?f=!0:d.push(m.route.id);return f&&d.length>0&&u.searchParams.set("_routes",d.join(",")),[u.pathname+u.search]},[c,s.v8_trailingSlashAwareDataRequests,e,i,n]);return S.createElement(S.Fragment,null,x.map(u=>S.createElement("link",{key:u,rel:"prefetch",as:"fetch",href:u,...a})))}function R7({page:e,matches:n,...a}){let i=xr(),{future:s,manifest:c,routeModules:x}=H0(),{basename:u}=Df(),{loaderData:f,matches:d}=S7(),m=S.useMemo(()=>sp(e,n,d,c,i,"data"),[e,n,d,c,i]),p=S.useMemo(()=>sp(e,n,d,c,i,"assets"),[e,n,d,c,i]),y=S.useMemo(()=>{if(e===i.pathname+i.search+i.hash)return[];let B=new Set,v=!1;if(n.forEach(R=>{let _=c.routes[R.route.id];!_||!_.hasLoader||(!m.some(N=>N.route.id===R.route.id)&&R.route.id in f&&x[R.route.id]?.shouldRevalidate||_.hasClientLoader?v=!0:B.add(R.route.id))}),B.size===0)return[];let k=A8(e,u,s.v8_trailingSlashAwareDataRequests,"data");return v&&B.size>0&&k.searchParams.set("_routes",n.filter(R=>B.has(R.route.id)).map(R=>R.route.id).join(",")),[k.pathname+k.search]},[u,s.v8_trailingSlashAwareDataRequests,f,i,c,m,n,e,x]),C=S.useMemo(()=>k7(p,c),[p,c]),b=N7(p);return S.createElement(S.Fragment,null,y.map(B=>S.createElement("link",{key:B,rel:"prefetch",as:"fetch",href:B,...a})),C.map(B=>S.createElement("link",{key:B,rel:"modulepreload",href:B,...a})),b.map(({key:B,link:v})=>S.createElement("link",{key:B,nonce:a.nonce,...v,crossOrigin:v.crossOrigin??a.crossOrigin})))}function O7(...e){return n=>{e.forEach(a=>{typeof a=="function"?a(n):a!=null&&(a.current=n)})}}var j7=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{j7&&(window.__reactRouterVersion="7.18.1")}catch{}function z7({basename:e,children:n,useTransitions:a,window:i}){let s=S.useRef();s.current==null&&(s.current=x4({window:i,v5Compat:!0}));let c=s.current,[x,u]=S.useState({action:c.action,location:c.location}),f=S.useCallback(d=>{a===!1?u(d):S.startTransition(()=>u(d))},[a]);return S.useLayoutEffect(()=>c.listen(f),[c,f]),S.createElement(u7,{basename:e,children:n,location:x.location,navigationType:x.action,navigator:c,useTransitions:a})}var B8=S.forwardRef(function({onClick:n,discover:a="render",prefetch:i="none",relative:s,reloadDocument:c,replace:x,mask:u,state:f,target:d,to:m,preventScrollReset:p,viewTransition:y,defaultShouldRevalidate:C,...b},B){let{basename:v,navigator:k,useTransitions:R}=S.useContext(Zn),_=typeof m=="string"&&Cf.test(m),N=f8(m,v);m=N.to;let T=$4(m,{relative:s}),F=xr(),O=null;if(u){let Q=P0(u,[],F.mask?F.mask.pathname:"/",!0);v!=="/"&&(Q.pathname=Q.pathname==="/"?v:pr([v,Q.pathname])),O=k.createHref(Q)}let[L,$,z]=_7(i,b),X=I7(m,{replace:x,mask:u,state:f,target:d,preventScrollReset:p,relative:s,viewTransition:y,defaultShouldRevalidate:C,useTransitions:R});function K(Q){n&&n(Q),Q.defaultPrevented||X(Q)}let V=!(N.isExternal||c),Z=S.createElement("a",{...b,...z,href:(V?O:void 0)||N.absoluteURL||T,onClick:V?K:n,ref:O7(B,$),target:d,"data-discover":!_&&a==="render"?"true":void 0});return L&&!_?S.createElement(S.Fragment,null,Z,S.createElement(M7,{page:T})):Z});B8.displayName="Link";var L7=S.forwardRef(function({"aria-current":n="page",caseSensitive:a=!1,className:i="",end:s=!1,style:c,to:x,viewTransition:u,children:f,...d},m){let p=Is(x,{relative:d.relative}),y=xr(),C=S.useContext(U0),{navigator:b,basename:B}=S.useContext(Zn),v=C!=null&&V7(p)&&u===!0,k=b.encodeLocation?b.encodeLocation(p).pathname:p.pathname,R=y.pathname,_=C&&C.navigation&&C.navigation.location?C.navigation.location.pathname:null;a||(R=R.toLowerCase(),_=_?_.toLowerCase():null,k=k.toLowerCase()),_&&B&&(_=Wr(_,B)||_);const N=k!=="/"&&k.endsWith("/")?k.length-1:k.length;let T=R===k||!s&&R.startsWith(k)&&R.charAt(N)==="/",F=_!=null&&(_===k||!s&&_.startsWith(k)&&_.charAt(k.length)==="/"),O={isActive:T,isPending:F,isTransitioning:v},L=T?n:void 0,$;typeof i=="function"?$=i(O):$=[i,T?"active":null,F?"pending":null,v?"transitioning":null].filter(Boolean).join(" ");let z=typeof c=="function"?c(O):c;return S.createElement(B8,{...d,"aria-current":L,className:$,ref:m,style:z,to:x,viewTransition:u},typeof f=="function"?f(O):f)});L7.displayName="NavLink";var P7=S.forwardRef(({discover:e="render",fetcherKey:n,navigate:a,reloadDocument:i,replace:s,state:c,method:x=B0,action:u,onSubmit:f,relative:d,preventScrollReset:m,viewTransition:p,defaultShouldRevalidate:y,...C},b)=>{let{useTransitions:B}=S.useContext(Zn),v=$7(),k=G7(u,{relative:d}),R=x.toLowerCase()==="get"?"get":"post",_=typeof u=="string"&&Cf.test(u),N=T=>{if(f&&f(T),T.defaultPrevented)return;T.preventDefault();let F=T.nativeEvent.submitter,O=F?.getAttribute("formmethod")||x,L=()=>v(F||T.currentTarget,{fetcherKey:n,method:O,navigate:a,replace:s,state:c,relative:d,preventScrollReset:m,viewTransition:p,defaultShouldRevalidate:y});B&&a!==!1?S.startTransition(()=>L()):L()};return S.createElement("form",{ref:b,method:R,action:k,onSubmit:i?f:N,...C,"data-discover":!_&&e==="render"?"true":void 0})});P7.displayName="Form";function U7(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function v8(e){let n=S.useContext(ol);return Nt(n,U7(e)),n}function I7(e,{target:n,replace:a,mask:i,state:s,preventScrollReset:c,relative:x,viewTransition:u,defaultShouldRevalidate:f,useTransitions:d}={}){let m=cl(),p=xr(),y=Is(e,{relative:x});return S.useCallback(C=>{if(E7(C,n)){C.preventDefault();let b=a!==void 0?a:_s(p)===_s(y),B=()=>m(e,{replace:b,mask:i,state:s,preventScrollReset:c,relative:x,viewTransition:u,defaultShouldRevalidate:f});d?S.startTransition(()=>B()):B()}},[p,m,y,a,i,s,n,e,c,x,u,f,d])}function k8(e){or(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=S.useRef(Vu(e)),a=S.useRef(!1),i=xr(),s=S.useMemo(()=>g7(i.search,a.current?null:n.current),[i.search]),c=cl(),x=S.useCallback((u,f)=>{const d=Vu(typeof u=="function"?u(new URLSearchParams(s)):u);a.current=!0,c("?"+d,f)},[c,s]);return[s,x]}var H7=0,q7=()=>`__${String(++H7)}__`;function $7(){let{router:e}=v8("useSubmit"),{basename:n}=S.useContext(Zn),a=i7(),i=e.fetch,s=e.navigate;return S.useCallback(async(c,x={})=>{let{action:u,method:f,encType:d,formData:m,body:p}=b7(c,n);if(x.navigate===!1){let y=x.fetcherKey||q7();await i(y,a,x.action||u,{defaultShouldRevalidate:x.defaultShouldRevalidate,preventScrollReset:x.preventScrollReset,formData:m,body:p,formMethod:x.method||f,formEncType:x.encType||d,flushSync:x.flushSync})}else await s(x.action||u,{defaultShouldRevalidate:x.defaultShouldRevalidate,preventScrollReset:x.preventScrollReset,formData:m,body:p,formMethod:x.method||f,formEncType:x.encType||d,replace:x.replace,state:x.state,fromRouteId:a,flushSync:x.flushSync,viewTransition:x.viewTransition})},[i,s,n,a])}function G7(e,{relative:n}={}){let{basename:a}=S.useContext(Zn),i=S.useContext(cr);Nt(i,"useFormAction must be used inside a RouteContext");let[s]=i.matches.slice(-1),c={...Is(e||".",{relative:n})},x=xr();if(e==null){c.search=x.search;let u=new URLSearchParams(c.search),f=u.getAll("index");if(f.some(m=>m==="")){u.delete("index"),f.filter(p=>p).forEach(p=>u.append("index",p));let m=u.toString();c.search=m?`?${m}`:""}}return(!e||e===".")&&s.route.index&&(c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index"),a!=="/"&&(c.pathname=c.pathname==="/"?a:pr([a,c.pathname])),_s(c)}function V7(e,{relative:n}={}){let a=S.useContext(p8);Nt(a!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:i}=v8("useViewTransitionState"),s=Is(e,{relative:n});if(!a.isTransitioning)return!1;let c=Wr(a.currentLocation.pathname,i)||a.currentLocation.pathname,x=Wr(a.nextLocation.pathname,i)||a.nextLocation.pathname;return Ms(s.pathname,x)!=null||Ms(s.pathname,c)!=null}const Q7="modulepreload",Y7=function(e){return"/"+e},op={},K7=function(n,a,i){let s=Promise.resolve();if(a&&a.length>0){let d=function(m){return Promise.all(m.map(p=>Promise.resolve(p).then(y=>({status:"fulfilled",value:y}),y=>({status:"rejected",reason:y}))))};var x=d;document.getElementsByTagName("link");const u=document.querySelector("meta[property=csp-nonce]"),f=u?.nonce||u?.getAttribute("nonce");s=d(a.map(m=>{if(m=Y7(m),m in op)return;op[m]=!0;const p=m.endsWith(".css"),y=p?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${m}"]${y}`))return;const C=document.createElement("link");if(C.rel=p?"stylesheet":Q7,p||(C.as="script"),C.crossOrigin="",C.href=m,f&&C.setAttribute("nonce",f),document.head.appendChild(C),p)return new Promise((b,B)=>{C.addEventListener("load",b),C.addEventListener("error",()=>B(new Error(`Unable to preload CSS for ${m}`)))})}))}function c(u){const f=new Event("vite:preloadError",{cancelable:!0});if(f.payload=u,window.dispatchEvent(f),!f.defaultPrevented)throw u}return s.then(u=>{for(const f of u||[])f.status==="rejected"&&c(f.reason);return n().catch(c)})};function X7(e={}){const{immediate:n=!1,onNeedReload:a,onNeedRefresh:i,onOfflineReady:s,onRegistered:c,onRegisteredSW:x,onRegisterError:u}=e;let f,d,m;const p=async(C=!0)=>{await d,m?.()};async function y(){if("serviceWorker"in navigator){if(f=await K7(async()=>{const{Workbox:C}=await import("./workbox-window.prod.es5-BBnX5xw4.js");return{Workbox:C}},[]).then(({Workbox:C})=>new C("/sw.js",{scope:"/",type:"classic"})).catch(C=>{u?.(C)}),!f)return;m=()=>{f?.messageSkipWaiting()};{let C=!1;const b=()=>{C=!0,f?.addEventListener("controlling",B=>{B.isUpdate&&(a?a():window.location.reload())}),i?.()};f.addEventListener("installed",B=>{typeof B.isUpdate>"u"?typeof B.isExternal<"u"&&B.isExternal?b():!C&&s?.():B.isUpdate||s?.()}),f.addEventListener("waiting",b)}f.register({immediate:n}).then(C=>{x?x("/sw.js",C):c?.(C)}).catch(C=>{u?.(C)})}}return d=y(),p}function Z7(e={}){const{immediate:n=!0,onNeedReload:a,onNeedRefresh:i,onOfflineReady:s,onRegistered:c,onRegisteredSW:x,onRegisterError:u}=e,[f,d]=S.useState(!1),[m,p]=S.useState(!1),[y]=S.useState(()=>X7({immediate:n,onNeedReload:a,onOfflineReady(){p(!0),s?.()},onNeedRefresh(){d(!0),i?.()},onRegistered:c,onRegisteredSW:x,onRegisterError:u}));return{needRefresh:[f,d],offlineReady:[m,p],updateServiceWorker:y}}const D8=(...e)=>e.filter((n,a,i)=>!!n&&n.trim()!==""&&i.indexOf(n)===a).join(" ").trim();const J7=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const W7=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(n,a,i)=>i?i.toUpperCase():a.toLowerCase());const cp=e=>{const n=W7(e);return n.charAt(0).toUpperCase()+n.slice(1)};var ey={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 ty=e=>{for(const n in e)if(n.startsWith("aria-")||n==="role"||n==="title")return!0;return!1};const ny=S.forwardRef(({color:e="currentColor",size:n=24,strokeWidth:a=2,absoluteStrokeWidth:i,className:s="",children:c,iconNode:x,...u},f)=>S.createElement("svg",{ref:f,...ey,width:n,height:n,stroke:e,strokeWidth:i?Number(a)*24/Number(n):a,className:D8("lucide",s),...!c&&!ty(u)&&{"aria-hidden":"true"},...u},[...x.map(([d,m])=>S.createElement(d,m)),...Array.isArray(c)?c:[c]]));const G=(e,n)=>{const a=S.forwardRef(({className:i,...s},c)=>S.createElement(ny,{ref:c,iconNode:n,className:D8(`lucide-${J7(cp(e))}`,`lucide-${e}`,i),...s}));return a.displayName=cp(e),a};const ry=[["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"}]],ay=G("activity",ry);const iy=[["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"}]],ly=G("anchor",iy);const sy=[["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"}]],oy=G("apple",sy);const cy=[["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"}]],F8=G("archive",cy);const xy=[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]],uy=G("arrow-up-right",xy);const fy=[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]],dy=G("arrow-up",fy);const hy=[["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"}]],py=G("atom",hy);const my=[["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"}]],Ey=G("award",my);const gy=[["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"}]],yy=G("banknote",gy);const Cy=[["path",{d:"M 22 14 L 22 10",key:"nqc4tb"}],["rect",{x:"2",y:"6",width:"16",height:"12",rx:"2",key:"13zb55"}]],by=G("battery",Cy);const Ay=[["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"}]],By=G("beer",Ay);const vy=[["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"}]],w8=G("bell",vy);const ky=[["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"}]],Dy=G("bike",ky);const Fy=[["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"}]],wy=G("bird",Fy);const Sy=[["path",{d:"m7 7 10 10-5 5V2l5 5L7 17",key:"1q5490"}]],_y=G("bluetooth",Sy);const My=[["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"}]],Ny=G("book-open",My);const Ty=[["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"}]],Ry=G("book",Ty);const Oy=[["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"}]],jy=G("bookmark",Oy);const zy=[["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"}]],S8=G("bot",zy);const Ly=[["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"}]],Py=G("box",Ly);const Uy=[["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"}]],Iy=G("brain",Uy);const Hy=[["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"}]],qy=G("briefcase",Hy);const $y=[["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"}]],Gy=G("brush",$y);const Vy=[["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"}]],Qy=G("bug-play",Vy);const Yy=[["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"}]],Ky=G("bug",Yy);const Xy=[["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"}]],Zy=G("building-2",Xy);const Jy=[["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"}]],Wy=G("building",Jy);const e3=[["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"}]],t3=G("cake",e3);const n3=[["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"}]],r3=G("calendar",n3);const a3=[["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=G("camera",a3);const l3=[["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"}]],s3=G("car",l3);const o3=[["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"}]],c3=G("carrot",o3);const x3=[["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"}]],u3=G("cat",x3);const f3=[["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"}]],d3=G("chart-bar",f3);const h3=[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"m19 9-5 5-4-4-3 3",key:"2osh9i"}]],p3=G("chart-line",h3);const m3=[["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"}]],E3=G("chart-pie",m3);const g3=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],ea=G("check",g3);const y3=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],xl=G("chevron-down",y3);const C3=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],b3=G("chevron-up",C3);const A3=[["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"}]],B3=G("clapperboard",A3);const v3=[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],k3=G("clock",v3);const D3=[["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"}]],F3=G("cloud-off",D3);const w3=[["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"}]],S3=G("cloud-upload",w3);const _3=[["path",{d:"M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z",key:"p7xjir"}]],M3=G("cloud",_3);const N3=[["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"}]],T3=G("code-xml",N3);const R3=[["path",{d:"m16 18 6-6-6-6",key:"eg8j8"}],["path",{d:"m8 6-6 6 6 6",key:"ppft3o"}]],O3=G("code",R3);const j3=[["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"}]],z3=G("coffee",j3);const L3=[["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"}]],P3=G("cog",L3);const U3=[["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"}]],I3=G("compass",U3);const H3=[["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"}]],wf=G("copy",H3);const q3=[["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"}]],$3=G("cpu",q3);const G3=[["rect",{width:"20",height:"14",x:"2",y:"5",rx:"2",key:"ynyp8z"}],["line",{x1:"2",x2:"22",y1:"10",y2:"10",key:"1b3vmo"}]],V3=G("credit-card",G3);const Q3=[["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"}]],Y3=G("crown",Q3);const K3=[["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"}]],X3=G("database",K3);const Z3=[["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"}]],J3=G("dna",Z3);const W3=[["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"}]],eC=G("dog",W3);const tC=[["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"}]],nC=G("dollar-sign",tC);const rC=[["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"}]],aC=G("dumbbell",rC);const iC=[["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"}]],lC=G("earth",iC);const sC=[["path",{d:"M12 2C8 2 4 8 4 14a8 8 0 0 0 16 0c0-6-4-12-8-12",key:"1le142"}]],oC=G("egg",sC);const cC=[["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"}]],xC=G("external-link",cC);const uC=[["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"}]],fC=G("factory",uC);const dC=[["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"}]],hC=G("feather",dC);const pC=[["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"}]],mC=G("file-code",pC);const EC=[["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"}]],gC=G("file-diff",EC);const yC=[["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"}]],CC=G("file",yC);const bC=[["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"}]],AC=G("film",bC);const BC=[["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"}]],vC=G("fish",BC);const kC=[["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"}]],DC=G("flag",kC);const FC=[["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"}]],wC=G("flame",FC);const SC=[["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"}]],_C=G("flask-conical",SC);const MC=[["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"}]],NC=G("folder",MC);const TC=[["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"}]],RC=G("gamepad-2",TC);const OC=[["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"}]],jC=G("gem",OC);const zC=[["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"}]],LC=G("gift",zC);const PC=[["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"}]],UC=G("git-branch",PC);const IC=[["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"}]],HC=G("git-fork",IC);const qC=[["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"}]],_8=G("git-merge",qC);const $C=[["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"}]],GC=G("github",$C);const VC=[["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"}]],QC=G("glasses",VC);const YC=[["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"}]],KC=G("globe",YC);const XC=[["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"}]],ZC=G("graduation-cap",XC);const JC=[["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"}]],WC=G("grid-3x3",JC);const eb=[["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"}]],tb=G("hammer",eb);const nb=[["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"}]],rb=G("headphones",nb);const ab=[["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"}]],ib=G("heart-pulse",ab);const lb=[["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"}]],sb=G("heart",lb);const ob=[["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"}]],cb=G("house",ob);const xb=[["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"}]],ub=G("image",xb);const fb=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],db=G("info",fb);const hb=[["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"}]],pb=G("key",hb);const mb=[["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"}]],Eb=G("laptop",mb);const gb=[["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"}]],yb=G("layers",gb);const Cb=[["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"}]],bb=G("layout-grid",Cb);const Ab=[["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"}]],Bb=G("leaf",Ab);const vb=[["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"}]],kb=G("lightbulb",vb);const Db=[["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"}]],Fb=G("link",Db);const wb=[["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"}]],Sb=G("list",wb);const _b=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],Oa=G("loader-circle",_b);const Mb=[["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"}]],Nb=G("lock",Mb);const Tb=[["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"}]],Rb=G("log-out",Tb);const Ob=[["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"}]],jb=G("mail",Ob);const zb=[["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"}]],Lb=G("map-pin",zb);const Pb=[["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"}]],M8=G("map",Pb);const Ub=[["path",{d:"M8 22h8",key:"rmew8v"}],["path",{d:"M12 11v11",key:"ur9y6a"}],["path",{d:"m19 3-7 8-7-8Z",key:"1sgpiw"}]],Ib=G("martini",Ub);const Hb=[["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"}]],qb=G("medal",Hb);const $b=[["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"}]],Gb=G("message-circle",$b);const Vb=[["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"}]],Qb=G("message-square",Vb);const Yb=[["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"}]],Kb=G("mic",Yb);const Xb=[["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"}]],Zb=G("microscope",Xb);const Jb=[["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"}]],Wb=G("monitor",Jb);const eA=[["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"}]],tA=G("moon",eA);const nA=[["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"}]],rA=G("music",nA);const aA=[["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"}]],iA=G("orbit",aA);const lA=[["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"}]],sA=G("package",lA);const oA=[["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"}]],cA=G("paintbrush",oA);const xA=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]],uA=G("panel-left",xA);const fA=[["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"}]],q0=G("paperclip",fA);const dA=[["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"}]],hA=G("paw-print",dA);const pA=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}]],mA=G("pen",pA);const EA=[["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"}]],gA=G("pencil",EA);const yA=[["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"}]],CA=G("phone",yA);const bA=[["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"}]],AA=G("pill",bA);const BA=[["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"}]],vA=G("pipette",BA);const kA=[["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"}]],DA=G("pizza",kA);const FA=[["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"}]],wA=G("plane",FA);const SA=[["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"}]],_A=G("play",SA);const MA=[["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"}]],NA=G("plug",MA);const TA=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],N8=G("plus",TA);const RA=[["path",{d:"M12 2v10",key:"mnfbl"}],["path",{d:"M18.4 6.6a9 9 0 1 1-12.77.04",key:"obofu9"}]],OA=G("power",RA);const jA=[["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"}]],zA=G("puzzle",jA);const LA=[["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"}]],T8=G("qr-code",LA);const PA=[["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"}]],UA=G("rabbit",PA);const IA=[["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"}]],HA=G("radio",IA);const qA=[["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"}]],Sf=G("refresh-cw",qA);const $A=[["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"}]],GA=G("rocket",$A);const VA=[["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"}]],QA=G("salad",VA);const YA=[["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"}]],KA=G("ruler",YA);const XA=[["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"}]],ZA=G("satellite",XA);const JA=[["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"}]],WA=G("scissors",JA);const eB=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],R8=G("search",eB);const tB=[["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"}]],nB=G("server",tB);const rB=[["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"}]],aB=G("settings",rB);const iB=[["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"}]],lB=G("shell",iB);const sB=[["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"}]],oB=G("shield",sB);const cB=[["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"}]],xB=G("ship",cB);const uB=[["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"}]],fB=G("shopping-bag",uB);const dB=[["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"}]],hB=G("shopping-cart",dB);const pB=[["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"}]],mB=G("sliders-horizontal",pB);const EB=[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12 18h.01",key:"mhygvu"}]],gB=G("smartphone",EB);const yB=[["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"}]],CB=G("snail",yB);const bB=[["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"}]],AB=G("soup",bB);const BB=[["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"}]],vB=G("sparkles",BB);const kB=[["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"}]],DB=G("sprout",kB);const FB=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]],O8=G("square",FB);const wB=[["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"}]],SB=G("star",wB);const _B=[["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"}]],MB=G("stethoscope",_B);const NB=[["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"}]],TB=G("store",NB);const RB=[["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"}]],j8=G("sun",RB);const OB=[["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"}]],jB=G("tag",OB);const zB=[["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"}]],LB=G("tags",zB);const PB=[["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"}]],UB=G("target",PB);const IB=[["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"}]],HB=G("telescope",IB);const qB=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],$B=G("terminal",qB);const GB=[["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"}]],VB=G("ticket",GB);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"}]],YB=G("train-front",QB);const KB=[["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"}]],XB=G("tree-pine",KB);const ZB=[["path",{d:"M16 7h6v6",key:"box55l"}],["path",{d:"m22 7-8.5 8.5-5-5L2 17",key:"1t1m79"}]],JB=G("trending-up",ZB);const WB=[["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"}]],_f=G("triangle-alert",WB);const ev=[["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"}]],tv=G("trophy",ev);const nv=[["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"}]],rv=G("turtle",nv);const av=[["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"}]],iv=G("user",av);const lv=[["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"}]],sv=G("users",lv);const ov=[["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"}]],cv=G("utensils",ov);const xv=[["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"}]],uv=G("video",xv);const fv=[["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"}]],dv=G("wallet",fv);const hv=[["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"}]],xp=G("wand-sparkles",hv);const pv=[["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"}]],mv=G("warehouse",pv);const Ev=[["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"}]],gv=G("wheat",Ev);const yv=[["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"}]],Mf=G("wifi-off",yv);const Cv=[["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"}]],z8=G("wifi",Cv);const bv=[["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"}]],Av=G("wine",bv);const Bv=[["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"}]],vv=G("wrench",Bv);const kv=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Dr=G("x",kv);const Dv=[["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"}]],L8=G("zap",Dv);function up(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function xn(e,n){return{method:e,pattern:n,path:()=>n}}function Mt(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(`^${up(a)}([^/]+)${up(i)}$`)}}const Fe={state:xn("GET","/api/state"),search:xn("GET","/api/search"),repos:xn("GET","/api/repos"),modelCatalog:xn("GET","/api/models"),repoIcon:Mt("GET","/api/repos/:repo/icon"),localImage:Mt("GET","/api/local-images/:path"),filePreview:Mt("GET","/api/files/:reference"),toolImage:Mt("GET","/api/tool-images/:reference"),stageAttachment:xn("POST","/api/attachments"),discardStagedAttachment:Mt("DELETE","/api/attachments/:attachmentId"),logs:xn("GET","/api/logs"),settings:xn("GET","/api/settings"),updateSettings:xn("PATCH","/api/settings"),prefs:xn("GET","/api/prefs"),updatePrefs:xn("PATCH","/api/prefs"),armNoSleep:xn("POST","/api/nosleep"),disarmNoSleep:xn("DELETE","/api/nosleep"),push:xn("GET","/api/push"),pushSubscribe:xn("POST","/api/push/subscribe"),pushUnsubscribe:xn("POST","/api/push/unsubscribe"),pushTest:xn("POST","/api/push/test"),createWorkspace:xn("POST","/api/workspaces"),workspace:Mt("GET","/api/workspaces/:workspaceId"),sessions:Mt("GET","/api/workspaces/:workspaceId/sessions"),newChat:Mt("POST","/api/workspaces/:workspaceId/sessions"),diff:Mt("GET","/api/workspaces/:workspaceId/diff"),workspaceFiles:Mt("GET","/api/workspaces/:workspaceId/files"),merge:Mt("POST","/api/workspaces/:workspaceId/merge"),workspaceStatus:Mt("POST","/api/workspaces/:workspaceId/status"),archiveWorkspace:Mt("POST","/api/workspaces/:workspaceId/archive"),devServer:Mt("GET","/api/workspaces/:workspaceId/dev-server"),startDevServer:Mt("POST","/api/workspaces/:workspaceId/dev-server"),stopDevServer:Mt("DELETE","/api/workspaces/:workspaceId/dev-server"),dismissFirstPrompt:Mt("DELETE","/api/workspaces/:workspaceId/prompt"),messages:Mt("GET","/api/sessions/:sessionId/messages"),models:Mt("GET","/api/sessions/:sessionId/models"),agent:Mt("POST","/api/sessions/:sessionId/agent"),stop:Mt("POST","/api/sessions/:sessionId/stop"),sendPrompt:Mt("POST","/api/sessions/:sessionId/prompt"),uploadAttachment:Mt("POST","/api/sessions/:sessionId/attachments"),splitChat:Mt("POST","/api/sessions/:sessionId/split"),dismissParkedPrompt:Mt("DELETE","/api/sessions/:sessionId/prompt")},Ns="conductor-remote-token";function Fv(){const n=new URLSearchParams(location.hash.slice(1)).get("token");return n&&(localStorage.setItem(Ns,n),history.replaceState(null,"",location.pathname+location.search)),localStorage.getItem(Ns)}function Nf(){return localStorage.getItem(Ns)}function wv(){localStorage.removeItem(Ns)}function Sv(e){localStorage.setItem(Ns,e)}function _v(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 Fr extends Error{constructor(n,a){super(n),this.status=a}status}const P8=6e3,On=45e3,Mv=75e3,fp=75e3;async function et(e,n={},a=P8){const i=Nf();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 Fr("Request timed out",0):c}if(!s.ok){const c=await s.json().catch(()=>({}));throw new Fr(c.error||`HTTP ${s.status}`,s.status)}return s.json()}async function dp(e,n){const a=Nf();let i;try{i=await fetch(e,{method:"POST",body:n,signal:AbortSignal.timeout(On),headers:{authorization:`Bearer ${a??""}`,"content-type":n.type||"application/octet-stream","x-attachment-name":encodeURIComponent(n.name),"x-client-timeout-ms":String(On)}})}catch(s){throw s instanceof DOMException&&s.name==="TimeoutError"?new Fr("Upload timed out",0):s}if(!i.ok){const s=await i.json().catch(()=>({}));throw new Fr(s.error||`HTTP ${i.status}`,i.status)}return i.json()}const lu=new Map;async function Nv(e){const n=Nf(),a=await fetch(e,{headers:{authorization:`Bearer ${n??""}`},signal:AbortSignal.timeout(P8)});if(!a.ok)throw new Fr(`HTTP ${a.status}`,a.status);return URL.createObjectURL(await a.blob())}function su(e){let n=lu.get(e);return n||(n=Nv(e),n.catch(()=>lu.delete(e)),lu.set(e,n)),n}const Ue={state:()=>et(Fe.state.path()),repoIcon:e=>su(Fe.repoIcon.path(e)),localImage:e=>su(Fe.localImage.path(e)),toolImage:e=>su(Fe.toolImage.path(e)),filePreview:e=>et(Fe.filePreview.path(e)),stageAttachment:e=>dp(Fe.stageAttachment.path(),e),discardStagedAttachment:e=>et(Fe.discardStagedAttachment.path(e),{method:Fe.discardStagedAttachment.method}),workspace:e=>et(Fe.workspace.path(e)),sessions:e=>et(Fe.sessions.path(e)),messages:(e,n)=>et(`${Fe.messages.path(e)}?after=${n}`),uploadAttachment:(e,n,a)=>dp(`${Fe.uploadAttachment.path(e)}?workspaceId=${encodeURIComponent(n)}`,a),diff:e=>et(Fe.diff.path(e)),workspaceFiles:e=>et(Fe.workspaceFiles.path(e)),sendPrompt:(e,n,a,i,s,c)=>et(Fe.sendPrompt.path(e),{method:Fe.sendPrompt.method,body:JSON.stringify({text:n,workspaceId:a,agent:i,clientId:s,queue:c})},Mv),stop:(e,n)=>et(Fe.stop.path(e),{method:Fe.stop.method,body:JSON.stringify({workspaceId:n})},On),newChat:e=>et(Fe.newChat.path(e),{method:Fe.newChat.method},On),splitChat:(e,n,a,i,s)=>et(Fe.splitChat.path(e),{method:Fe.splitChat.method,body:JSON.stringify({workspaceId:n,includeThinking:a,includeTools:i,throughRowid:s})},On),repos:()=>et(Fe.repos.path()),modelCatalog:()=>et(Fe.modelCatalog.path()),search:e=>et(`${Fe.search.path()}?q=${encodeURIComponent(e)}`),dismissPrompt:e=>et(Fe.dismissFirstPrompt.path(e),{method:Fe.dismissFirstPrompt.method}),dismissParked:e=>et(Fe.dismissParkedPrompt.path(e),{method:Fe.dismissParkedPrompt.method}),createWorkspace:(e,n,a=!0,i=[],s={})=>et(Fe.createWorkspace.path(),{method:Fe.createWorkspace.method,body:JSON.stringify({repo:e,prompt:n,sendImmediately:a,attachmentIds:i,...s})},On),setAgent:(e,n,a)=>et(Fe.agent.path(e),{method:Fe.agent.method,body:JSON.stringify({...n,workspaceId:a})},On),models:(e,n)=>et(`${Fe.models.path(e)}?workspaceId=${encodeURIComponent(n)}`,{},On),logs:(e,n=300)=>et(`${Fe.logs.path()}?limit=${n}${e?`&file=${encodeURIComponent(e)}`:""}`),push:()=>et(Fe.push.path()),pushSubscribe:(e,n)=>et(Fe.pushSubscribe.path(),{method:Fe.pushSubscribe.method,body:JSON.stringify({subscription:e,label:n})}),pushUnsubscribe:e=>et(Fe.pushUnsubscribe.path(),{method:Fe.pushUnsubscribe.method,body:JSON.stringify({endpoint:e})}),pushTest:e=>et(Fe.pushTest.path(),{method:Fe.pushTest.method,body:JSON.stringify({id:e})},On),merge:e=>et(Fe.merge.path(e),{method:Fe.merge.method},On),setStatus:(e,n)=>et(Fe.workspaceStatus.path(e),{method:Fe.workspaceStatus.method,body:JSON.stringify({status:n})},On),archive:(e,n=!1)=>et(Fe.archiveWorkspace.path(e),{method:Fe.archiveWorkspace.method,body:JSON.stringify({stopAgents:n})},On),devServer:e=>et(Fe.devServer.path(e)),startDevServer:e=>et(Fe.startDevServer.path(e),{method:Fe.startDevServer.method},fp),stopDevServer:e=>et(Fe.stopDevServer.path(e),{method:Fe.stopDevServer.method},fp),settings:()=>et(Fe.settings.path()),patchSettings:e=>et(Fe.updateSettings.path(),{method:Fe.updateSettings.method,body:JSON.stringify(e)}),prefs:()=>et(Fe.prefs.path()),patchPrefs:(e,n=!1)=>et(Fe.updatePrefs.path(),{method:Fe.updatePrefs.method,body:JSON.stringify(e),keepalive:n}),armNoSleep:e=>et(Fe.armNoSleep.path(),{method:Fe.armNoSleep.method,body:JSON.stringify({seconds:e})},On),disarmNoSleep:()=>et(Fe.disarmNoSleep.path(),{method:Fe.disarmNoSleep.method},On)},hp=e=>{let n;const a=new Set,i=(d,m)=>{const p=typeof d=="function"?d(n):d;if(!Object.is(p,n)){const y=n;n=m??(typeof p!="object"||p===null)?p:Object.assign({},n,p),a.forEach(C=>C(n,y))}},s=()=>n,u={setState:i,getState:s,getInitialState:()=>f,subscribe:d=>(a.add(d),()=>a.delete(d))},f=n=e(i,s,u);return u},Tv=(e=>e?hp(e):hp),Rv=e=>e;function Ov(e,n=Rv){const a=x0.useSyncExternalStore(e.subscribe,x0.useCallback(()=>n(e.getState()),[e,n]),x0.useCallback(()=>n(e.getInitialState()),[e,n]));return x0.useDebugValue(a),a}const pp=e=>{const n=Tv(e),a=i=>Ov(n,i);return Object.assign(a,n),a},jv=(e=>e?pp(e):pp),zv=1e4;function Lv(e,n=Date.now()){return Math.max(0,(e??n)+zv-n)}const Qu="conductor-remote-pending",U8=20,Pv=1440*60*1e3,mp=e=>e.status==="sending"||!!e.interrupted;function Uv(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 Iv=e=>e.status==="sending"?{...e,status:"error",interrupted:!0,error:"Never confirmed — the app reloaded"}:e;function Hv(){try{const e=JSON.parse(localStorage.getItem(Qu)??"[]");if(!Array.isArray(e))return[];const n=Date.now()-Pv;return e.filter(Uv).filter(a=>a.createdAt>n).slice(-U8).map(Iv)}catch{return[]}}function qv(e){try{const n=e.slice(-U8);n.length?localStorage.setItem(Qu,JSON.stringify(n)):localStorage.removeItem(Qu)}catch{}}const f0="conductor-remote-agent:",d0="conductor-remote-draft:",us="new-workspace",Ep="conductor-remote-read",I8=(e,n,a)=>(e[n]??"")<a;function $v(e,n){return(e.unread_sessions??[]).filter(a=>I8(n,a.id,a.at)).length}function Gv(e,n){return!!e.unread_count&&I8(n,e.id,e.updated_at)}const gp="conductor-remote-prefs-v1";function Na(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)?e:null}function Yu(e){const n=Na(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 bs(e){return Object.keys(e).length>0}function yp(e){const n=Na(e);if(!n)return null;const a=Number(n.updatedAt);return!Number.isSafeInteger(a)||a<0?null:n.deleted===!0?{text:"",agent:{},updatedAt:a,deleted:!0}:typeof n.text!="string"?null:{text:n.text,agent:Yu(n.agent),updatedAt:a,deleted:!1}}function H8(e,n){return e.model===n.model&&e.effort===n.effort&&e.plan===n.plan&&e.fast===n.fast}function Vv(e,n){return e.text===n.text&&e.updatedAt===n.updatedAt&&e.deleted===n.deleted&&H8(e.agent,n.agent)}function nl(e,n,a){return e||bs(n)?{text:e,agent:{...n},updatedAt:a,deleted:!1}:{text:"",agent:{},updatedAt:a,deleted:!0}}class Qv{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 f=nl(a[u]??"",i[u]??{},c[u]?.updatedAt??0),d=c[u];(!d||d.text!==f.text||d.deleted!==f.deleted||!H8(d.agent,f.agent))&&(x[u]=nl(f.text,f.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]=nl(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}}]))}}project(){const n={},a={};for(const[i,s]of Object.entries(this.prefs.drafts))s.deleted||(n[i]=s.text,bs(s.agent)&&(a[i]={...s.agent}));return{drafts:n,agentDrafts:a,readMarks:{...this.prefs.readMarks}}}currentGeneration(){return this.generation}setDraft(n,a,i){return this.setLocal(n,a,i),this.project()}setAgent(n,a,i){return this.setLocal(n,i,a),this.project()}moveDraft(n,a){const i=this.prefs.drafts[n],s=this.prefs.drafts[a];return!i||i.deleted||!i.text||n===a||s&&!s.deleted?this.project():(this.prefs.drafts[n]=nl("",{},this.tick()),this.prefs.drafts[a]=nl(i.text,i.agent,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=this.cleanPrefs(n);for(const x of Object.values(i.drafts))this.clock=Math.max(this.clock,x.updatedAt);let s=!1,c=!1;for(const[x,u]of Object.entries(i.readMarks))(this.prefs.readMarks[x]??"")>=u||(this.prefs.readMarks[x]=u,s=!0);for(const[x,u]of Object.entries(this.prefs.readMarks))(i.readMarks[x]??"")<u&&(c=!0);for(const x of new Set([...Object.keys(this.prefs.drafts),...Object.keys(i.drafts)])){const u=this.prefs.drafts[x],f=i.drafts[x];if(!u&&f){this.prefs.drafts[x]=f,s=!0;continue}if(u&&!f){c=!0;continue}if(!(u&&f)||Vv(u,f))continue;const d=a===x&&(this.touched.has(x)||!u.deleted&&(u.text.length>0||bs(u.agent))),m=f.updatedAt>u.updatedAt||f.updatedAt===u.updatedAt&&(f.deleted||!u.deleted);if(m&&!d){this.prefs.drafts[x]=f,s=!0;continue}m&&(u.updatedAt=this.tick(f.updatedAt),s=!0),c=!0}return s&&this.persistAll(),{state:this.project(),needsUpload:c}}subscribe(n){return this.listeners.add(n),()=>this.listeners.delete(n)}requestFlush(){for(const n of this.listeners)n(!0)}setLocal(n,a,i){this.prefs.drafts[n]=nl(a,Yu(i),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=Na(n),i={};for(const[c,x]of Object.entries(Na(a?.readMarks)??{}))typeof x=="string"&&(i[c]=x);const s={};for(const[c,x]of Object.entries(Na(a?.drafts)??{})){const u=yp(x);u&&(s[c]=u)}return{readMarks:i,drafts:s}}readMetadata(){try{const n=Na(JSON.parse(this.storage.getItem(gp)??"null"));if(n?.version!==1)return null;const a={};for(const[i,s]of Object.entries(Na(n.drafts)??{})){const c=yp(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(d0))continue;const s=this.storage.getItem(i);s&&(n[i.slice(d0.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(f0))continue;const s=this.storage.getItem(i);if(!s)continue;const c=Yu(JSON.parse(s));bs(c)&&(n[i.slice(f0.length)]=c)}}catch{}return n}readRawMarks(){try{const n=Na(JSON.parse(this.storage.getItem(Ep)??"{}"));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(d0+n,a.text):this.storage.removeItem(d0+n),!a.deleted&&bs(a.agent)?this.storage.setItem(f0+n,JSON.stringify(a.agent)):this.storage.removeItem(f0+n);this.storage.setItem(Ep,JSON.stringify(this.prefs.readMarks)),this.storage.setItem(gp,JSON.stringify({version:1,drafts:this.prefs.drafts}))}catch{}}}let ou=null;function Sr(){return ou||(ou=new Qv(localStorage)),ou}const Yv=()=>Sr().project(),Kv=()=>Sr().snapshot(),Cp=()=>Sr().currentGeneration(),Xv=(e,n,a)=>Sr().setDraft(e,n,a),bp=(e,n,a)=>Sr().setAgent(e,n,a),Zv=(e,n)=>Sr().moveDraft(e,n),Jv=(e,n)=>Sr().markRead(e,n),Wv=(e,n)=>Sr().merge(e,n),ek=e=>Sr().subscribe(e),Ku=()=>Sr().requestFlush();let rl=null;const cu=Yv(),q8="conductor-remote-view",$8="conductor-remote-last-new-workspace-repo",Ap={groupBy:"status",repos:[],sortBy:"updated",hideMerged:!1,hideDone:!1,collapsed:[]};function Bp(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 tk(){try{const{repo:e,...n}=JSON.parse(localStorage.getItem(q8)??"{}"),a=Array.isArray(n.repos)?n.repos.filter(i=>typeof i=="string"):typeof e=="string"?[e]:[];return{...Ap,...n,repos:a}}catch{return Ap}}function nk(){try{return localStorage.getItem($8)??""}catch{return""}}const Me=jv((e,n)=>{const a=s=>{localStorage.setItem(q8,JSON.stringify(s)),e({view:s})},i=s=>{qv(s),e({pending:s})};return{token:Fv(),online:!0,lastSyncAt:null,update:null,workingHints:{},pending:Hv(),drafts:cu.drafts,agentDrafts:cu.agentDrafts,readMarks:cu.readMarks,focusedDraft:null,push:{deviceId:null,devices:0},sidebarOpen:!location.pathname.startsWith("/w/"),lastNewWorkspaceRepo:nk(),view:tk(),setToken:s=>{s?Sv(s):wv(),e({token:s})},setOnline:s=>{if(s){rl&&clearTimeout(rl),rl=null,e({online:s,lastSyncAt:Date.now()});return}if(!n().online||rl)return;const c=Lv(n().lastSyncAt);if(c===0){e({online:!1});return}rl=setTimeout(()=>{rl=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=Xv(s,c,n().agentDrafts[s]??{});e({drafts:x.drafts,agentDrafts:x.agentDrafts})},moveDraft:(s,c)=>{const x=n().drafts;if(!x[s]||s===c||x[c]!==void 0)return;const f=Zv(s,c);e({drafts:f.drafts,agentDrafts:f.agentDrafts})},markRead:(s,c)=>{(n().readMarks[s]??"")>=c||e({readMarks:Jv(s,c).readMarks})},stageAgent:(s,c)=>{const x=Bp({...n().agentDrafts[s],...c}),u=bp(s,x,n().drafts[s]??"");e({drafts:u.drafts,agentDrafts:u.agentDrafts})},clearAgentDraft:(s,c)=>{const x=n().agentDrafts[s];if(!x)return;const u=Bp({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}),f=bp(s,u,n().drafts[s]??"");e({drafts:f.drafts,agentDrafts:f.agentDrafts})},applySyncedPrefs:s=>e({drafts:s.drafts,agentDrafts:s.agentDrafts,readMarks:s.readMarks}),setFocusedDraft:s=>e({focusedDraft:s}),setPush:s=>e({push:s}),setSidebarOpen:s=>e({sidebarOpen:s}),setLastNewWorkspaceRepo:s=>{try{localStorage.setItem($8,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]})}}}),vp=6e4,rk=1e4,xu="pwa-update-attempted-at",ak=2500,ik=30*6e4,fs="pwa-update-snoozed-until";async function lk(){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 sk(){const e=Me(p=>p.token),n=S.useRef(null),a=S.useRef(!1),{needRefresh:[i,s],updateServiceWorker:c}=Z7({onRegisteredSW(p,y){y&&(n.current=y,setInterval(()=>{y.update().catch(()=>{})},vp))}}),{data:x}=zn({queryKey:["state"],queryFn:()=>Ue.state(),enabled:!!e,refetchInterval:!1}),u=x?.version,f=S.useRef(null);if(S.useEffect(()=>{!u||u==="1.72.0"||f.current===u||(f.current=u,n.current?.update().catch(()=>{}))},[u]),S.useEffect(()=>{if(!i)return;const p=Number(sessionStorage.getItem(xu));if(sessionStorage.removeItem(xu),p&&Date.now()-p<rk){s(!1);return}const y=Number(sessionStorage.getItem(fs));y&&Date.now()<y&&s(!1)},[i,s]),S.useEffect(()=>{if(i)return;const p=()=>{const C=Number(sessionStorage.getItem(fs));!C||Date.now()<C||n.current?.waiting&&(sessionStorage.removeItem(fs),s(!0))},y=window.setInterval(p,vp);return document.addEventListener("visibilitychange",p),()=>{window.clearInterval(y),document.removeEventListener("visibilitychange",p)}},[i,s]),!i)return null;const d=()=>{sessionStorage.setItem(fs,String(Date.now()+ik)),s(!1)},m=()=>{sessionStorage.removeItem(fs),sessionStorage.setItem(xu,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,lk())},ak)};return g.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:[g.jsx(Sf,{size:15,className:"shrink-0 text-accent"}),g.jsx("span",{className:"flex-1 text-sm",children:"New version ready"}),g.jsx("button",{type:"button",onClick:d,className:"rounded-lg px-2 py-1 text-xs text-muted active:bg-surface-2",children:"Later"}),g.jsx("button",{type:"button",onClick:m,className:"rounded-lg bg-accent px-3 py-1 text-xs font-semibold text-black transition active:scale-95",children:"Update"})]})}function ok(){return/iP(hone|ad|od)/.test(navigator.userAgent)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1}function G8(){return window.matchMedia("(display-mode: standalone)").matches||navigator.standalone===!0}function V8(){return window.isSecureContext?"serviceWorker"in navigator?!("PushManager"in window)||!("Notification"in window)?ok()&&!G8()?"needs-install":"unsupported":"ok":"unsupported":"insecure"}function Q8(){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 G8()?n:`${n} (browser)`}function ck(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 xk(e){let n="";for(const a of new Uint8Array(e))n+=String.fromCharCode(a);return btoa(n).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}async function Y8(){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 K8(){return await(await Y8())?.pushManager.getSubscription()??null}function uk(e,n){const a=e.options.applicationServerKey;return!!a&&xk(a)===n}async function X8(e){const n=await Y8();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:ck(e)})}function Z8(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 fk(e){let n=await K8();if(n&&!uk(n,e)&&(await n.unsubscribe().catch(()=>{}),n=Notification.permission==="granted"?await X8(e):null),!n)return null;const a=await Ue.pushSubscribe(Z8(n),Q8());return{id:a.id??null,devices:a.devices.length}}function _0(){const e=window.getSelection();return!!e&&!e.isCollapsed&&e.toString().length>0}const h0=28;function dk(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-h0&&e<=i.right+h0&&n>=i.top-h0&&n<=i.bottom+h0)return!0;return!1}function hk(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 kr(e){return e.workspace_name||e.pr_title||hk(e.branch)||e.directory_name||e.id.slice(0,8)}function pk(e){return e.toLowerCase().match(/[\p{L}\p{N}_]+/gu)??[]}function J8(e){return e.endsWith(" NEW")?e.slice(0,-4):e}function mk(e){const n=J8(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 Ek(e){const n=new Map;for(const a of e){const i=J8(a).trim();if(!i)continue;const s=mk(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 gk="",yk="",kp=".context/attachments/";function Ck(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,f=!1;for(;!f&&(u=e.indexOf(")",u),!(u<0));){const d=e.slice(x,u);try{const m=decodeURIComponent(d),p=m.startsWith(kp)?m.slice(kp.length):"",y=p.indexOf("/"),C=y<0?"":p.slice(0,y),b=y<0?"":p.slice(y+1);if(/^[A-Za-z0-9]{6}$/.test(C)&&b===c&&!b.includes("/")){n.push({start:i,end:u+1,name:c,path:m}),a=u+1,f=!0;continue}}catch{}u+=1}f||(a=i+2)}return n}const bk=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"]);function W8(e){const n=e.slice(e.lastIndexOf("/")+1),a=n.lastIndexOf(".");return a!==-1&&bk.has(n.slice(a).toLowerCase())}function Dp(e){return e.role==="tool"&&!e.tool&&e.output!==void 0}const Ak="The Mac is locked";function e2(e){return(e??"").includes(Ak)}function Bk(e,n){const a=n.filter(c=>Dp(c)&&c.toolUseId);if(!a.length)return[...e,...n];const i=[...e,...n.filter(c=>!Dp(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 vk(e){const n=Me(s=>s.setSidebarOpen),a=Me(s=>s.sidebarOpen),i=S.useRef(a);i.current=a,S.useEffect(()=>{const s=e.current;s&&(s.style.transition="",s.style.transform="")},[a,e]),S.useEffect(()=>{const x=window.matchMedia("(min-width: 768px)"),u=()=>e.current;let f=!1,d=!1,m=!1,p=!1,y=0,C=0,b=0,B=0;const v=O=>{const L=u();L&&(L.style.transition="none",L.style.transform=`translateX(${O}px)`,B=O)},k=()=>{const O=u();O&&(O.style.transition="",O.style.transform="")},R=O=>{for(let L=O;L;L=L.parentElement)if(L.scrollLeft>0)return!0;return!1},_=()=>{f&&(f=!1,k())},N=O=>{if(_(),x.matches||O.touches.length!==1)return;const L=O.touches[0];if(i.current){const $=u()?.getBoundingClientRect().right??0;if(L.clientX>$)return}else if(L.clientX>44||R(O.target))return;dk(L.clientX,L.clientY)||(f=!0,d=!1,m=!1,p=_0(),y=L.clientX,C=L.clientY,b=u()?.offsetWidth??0)},T=O=>{if(!f||m)return;if(!p&&_0()){m=!0;return}const L=O.touches[0],$=L.clientX-y,z=L.clientY-C;if(!d){if(Math.abs(z)>Math.abs($)&&Math.abs(z)>8){m=!0;return}if(Math.abs($)<6)return;d=!0}O.preventDefault();const X=i.current?0:-b;v(Math.max(-b,Math.min(0,X+$)))},F=()=>{if(!f)return;if(f=!1,!d||m)return k();const O=b?(B+b)/b:0;k(),n(O>.4)};return window.addEventListener("touchstart",N,{passive:!0}),window.addEventListener("touchmove",T,{passive:!1}),window.addEventListener("touchend",F),window.addEventListener("touchcancel",F),document.addEventListener("visibilitychange",_),()=>{window.removeEventListener("touchstart",N),window.removeEventListener("touchmove",T),window.removeEventListener("touchend",F),window.removeEventListener("touchcancel",F),document.removeEventListener("visibilitychange",_)}},[e,n])}const Fp='input, textarea, [contenteditable]:not([contenteditable="false"])';function kk(){S.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=m=>{m&&!i?i=setInterval(x,300):!m&&i&&(clearInterval(i),i=void 0)},x=()=>{const m=document.activeElement,p=m instanceof HTMLElement&&m.matches(Fp),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 f=()=>{x(),clearTimeout(u),u=setTimeout(x,350)},d=()=>{if(document.visibilityState==="hidden"){const m=document.activeElement;m instanceof HTMLElement&&m.matches(Fp)&&m.blur(),s(),c(!1)}else f()};return x(),e.addEventListener("resize",x),e.addEventListener("scroll",x),window.addEventListener("pageshow",f),document.addEventListener("visibilitychange",d),document.addEventListener("focusin",f),document.addEventListener("focusout",f),()=>{clearTimeout(u),c(!1),e.removeEventListener("resize",x),e.removeEventListener("scroll",x),window.removeEventListener("pageshow",f),document.removeEventListener("visibilitychange",d),document.removeEventListener("focusin",f),document.removeEventListener("focusout",f),s()}},[])}function ul(){const e=Me(a=>a.setOnline),n=Me(a=>a.setToken);return S.useCallback((a,i)=>{e(a),i instanceof Fr&&i.status===401&&n(null)},[e,n])}function Tf(){const e=ul(),n=Me(i=>i.setUpdate),a=zn({queryKey:["state"],queryFn:()=>Ue.state(),refetchInterval:2500});return S.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 Dk(){const e=ul();S.useEffect(()=>{let i=!0,s=!1,c=!1,x=!1,u=null;const f=B=>{const v=Wv(B,Me.getState().focusedDraft);Me.getState().applySyncedPrefs(v.state),v.needsUpload&&m(!1)},d=async(B,v=!1)=>{if(!i)return;if(s){c||=B,x||=v;return}s=!0;const k=Cp();try{const R=B?await Ue.patchPrefs(Kv(),v):await Ue.prefs();if(!i)return;e(!0),f(R.prefs),Cp()!==k&&m(!1)}catch(R){if(!i)return;R instanceof Fr&&R.status===404||e(!1,R)}finally{if(s=!1,i&&c){const R=x;c=!1,x=!1,d(!0,R)}}};function m(B,v=!1){u&&clearTimeout(u),u=null,B?d(!0,v):u=setTimeout(()=>{d(!0)},700)}const p=ek(B=>m(B)),y=setInterval(()=>{d(!1)},15e3),C=()=>{document.visibilityState==="hidden"?m(!0,!0):d(!1)},b=()=>m(!0);return document.addEventListener("visibilitychange",C),window.addEventListener("online",b),d(!0),()=>{i=!1,u&&clearTimeout(u),clearInterval(y),p(),document.removeEventListener("visibilitychange",C),window.removeEventListener("online",b)}},[e])}function Fk(){return zn({queryKey:["repos"],queryFn:()=>Ue.repos(),staleTime:6e4})}function wk(e,n){const[a,i]=S.useState(e);return S.useEffect(()=>{const s=setTimeout(()=>i(e),n);return()=>clearTimeout(s)},[e,n]),a}function Sk(e){const n=e.trim();return zn({queryKey:["search",n],queryFn:()=>Ue.search(n),enabled:n.length>=2,staleTime:3e4,placeholderData:k6})}function _k(e,n){const a=ul(),i=zn({queryKey:["workspace",e],queryFn:()=>Ue.workspace(e),enabled:n&&!!e,staleTime:Number.POSITIVE_INFINITY,retry:(s,c)=>!(c instanceof Fr&&c.status===404)&&s<1});return S.useEffect(()=>{i.isError&&!(i.error instanceof Fr&&i.error.status===404)&&a(!1,i.error)},[i.isError,i.error,a]),i}function t2(e,n=!0){const a=ul(),i=zn({queryKey:["sessions",e],queryFn:()=>Ue.sessions(e),enabled:!!e,refetchInterval:n?2e3:!1});return S.useEffect(()=>{i.isError&&a(!1,i.error)},[i.isError,i.error,a]),i}function Mk(e,n){return zn({queryKey:["workspaceFiles",e],queryFn:()=>Ue.workspaceFiles(e),enabled:n&&!!e,staleTime:12e4,retry:!1})}function Nk(e){return zn({queryKey:["dev-server",e],queryFn:()=>Ue.devServer(e),enabled:!!e,refetchInterval:2500})}function n2(e,n){const a=ul(),i=zn({queryKey:["diff",e],queryFn:()=>Ue.diff(e),enabled:!!e,refetchInterval:5e3});return S.useEffect(()=>{i.isError&&a(!1,i.error)},[i.isError,i.error,a]),i}function Tk(e){return zn({queryKey:["repoIcon",e],queryFn:()=>Ue.repoIcon(e),enabled:!!e,staleTime:Number.POSITIVE_INFINITY,gcTime:Number.POSITIVE_INFINITY,retry:!1})}function Rk(e,n){return zn({queryKey:["logs",e],queryFn:()=>Ue.logs(e),enabled:n,refetchInterval:3e3,retry:!1})}function Rf(){return zn({queryKey:["model-catalog"],queryFn:Ue.modelCatalog,staleTime:6e4,gcTime:Number.POSITIVE_INFINITY,retry:!1})}function Ok(e,n,a){const i=e?.agent_type??"claude",s=wr();return zn({queryKey:["models",i],queryFn:async()=>{const c=await Ue.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.models},enabled:a&&!!e,staleTime:0,gcTime:Number.POSITIVE_INFINITY,retry:!1})}function jk(e,n=!0){const a=ul(),[i,s]=S.useState({entries:[],loading:!0,error:null}),c=S.useRef(0);return S.useEffect(()=>{if(!e){s({entries:[],loading:!1,error:null});return}c.current=0,s({entries:[],loading:!0,error:null});let x=!0,u=!1;const f=async()=>{if(!u){u=!0;try{const{entries:m,cursor:p}=await Ue.messages(e,c.current);if(!x)return;a(!0),m.length?(c.current=p,s(y=>({entries:Bk(y.entries,m),loading:!1,error:null}))):s(y=>y.loading?{...y,loading:!1}:y)}catch(m){if(!x)return;a(!1,m),s(p=>({...p,loading:!1,error:m instanceof Error?m.message:String(m)}))}finally{u=!1}}};f();const d=n?setInterval(f,1e3):void 0;return()=>{x=!1,d&&clearInterval(d)}},[e,n,a]),i}function r2(){const e=wr(),n=Me(x=>x.addPending),a=Me(x=>x.failPending),i=Me(x=>x.removePending),s=Me(x=>x.markWorking),c=Me(x=>x.clearAgentDraft);return S.useCallback(async x=>{const u=x.text.trim();if(!u)return!1;const f=x.id??crypto.randomUUID(),{sessionId:d,workspaceId:m}=x;n({id:f,sessionId:d,workspaceId:m,text:u,queue:x.queue});try{const p=Me.getState().agentDrafts[d],y=p&&Object.keys(p).length?p:void 0,C=await Ue.sendPrompt(d,u,m,y,f,x.queue);if(C.ok||C.parked)return y&&(c(d,y),e.invalidateQueries({queryKey:["sessions",m]})),C.ok&&s(d),e.invalidateQueries({queryKey:["state"]}),setTimeout(()=>i(f),4e3),!0;a(f,C.error||"Send failed")}catch(p){a(f,p instanceof Error?p.message:String(p))}return!1},[n,a,i,s,c,e])}function a2(e){return zn({queryKey:["push"],queryFn:()=>Ue.push(),enabled:e,staleTime:3e4})}function zk(){const[e]=S.useState(V8),n=Me(s=>s.setPush),{data:a}=a2(e==="ok"),i=a?.publicKey;S.useEffect(()=>{if(e!=="ok"||!i)return;let s=!0;return fk(i).then(c=>{s&&n({deviceId:c?.id??null,devices:c?.devices??0})}).catch(()=>{}),()=>{s=!1}},[e,i,n])}function Lk(){const[e]=S.useState(V8),[n,a]=S.useState(()=>"Notification"in window?Notification.permission:"unsupported"),[i,s]=S.useState(!1),[c,x]=S.useState(null),{deviceId:u,devices:f}=Me(B=>B.push),d=Me(B=>B.setPush),m=a2(e==="ok"),p=m.data?.publicKey,y=S.useCallback(async()=>{s(!0),x(null);try{const B=await Notification.requestPermission();if(a(B),B!=="granted"){x(B==="denied"?"Notifications are blocked for this app — allow them in your device settings, then try again.":"Notification permission wasn’t granted.");return}const v=p??(await Ue.push()).publicKey,k=await X8(v),R=await Ue.pushSubscribe(Z8(k),Q8());d({deviceId:R.id??null,devices:R.devices.length})}catch(B){x(B instanceof Error?B.message:String(B))}finally{s(!1)}},[p,d]),C=S.useCallback(async()=>{s(!0),x(null);try{const B=await K8();let v=0;B&&(v=(await Ue.pushUnsubscribe(B.endpoint).catch(()=>null))?.devices.length??0,await B.unsubscribe()),d({deviceId:null,devices:v})}catch(B){x(B instanceof Error?B.message:String(B))}finally{s(!1)}},[d]),b=S.useCallback(async()=>{if(u){s(!0),x(null);try{const B=await Ue.pushTest(u);B.ok||x(B.error??"The push service rejected it.")}catch(B){x(B instanceof Error?B.message:String(B))}finally{s(!1)}}},[u]);return{support:e,permission:n,enabled:!!u,relayDisabled:m.data?.enabled===!1,busy:i,error:c,devices:f,enable:y,disable:C,test:b}}const Pk="push-route",wp="/__push-route",Uk=12e4;async function Sp(){if(!("caches"in window))return null;try{const e=await caches.open(Pk),n=await e.match(wp);if(!n)return null;await e.delete(wp);const{url:a,ts:i}=await n.json();return typeof a!="string"||!a.startsWith("/")||typeof i!="number"||Date.now()-i>Uk?null:a}catch{return null}}function Ik(){const e=cl();S.useEffect(()=>{let n=!0;const a=()=>{Sp().then(c=>{n&&c&&e(c)})},i=c=>{const x=c.data;x?.type==="push-navigate"&&typeof x.url=="string"&&x.url.startsWith("/")&&(Sp(),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 i2(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=i2(e[n]))&&(i&&(i+=" "),i+=a)}else for(a in e)e[a]&&(i&&(i+=" "),i+=a);return i}function Hk(){for(var e,n,a=0,i="",s=arguments.length;a<s;a++)(e=arguments[a])&&(n=i2(e))&&(i&&(i+=" "),i+=n);return i}const qk=(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},$k=(e,n)=>({classGroupId:e,validator:n}),l2=(e=new Map,n=null,a)=>({nextPart:e,validators:n,classGroupId:a}),M0="-",_p=[],Gk="arbitrary..",Vk=e=>{const n=Yk(e),{conflictingClassGroups:a,conflictingClassGroupModifiers:i}=e;return{getClassGroupId:x=>{if(x.startsWith("[")&&x.endsWith("]"))return Qk(x);const u=x.split(M0),f=u[0]===""&&u.length>1?1:0;return s2(u,f,n)},getConflictingClassGroupIds:(x,u)=>{if(u){const f=i[x],d=a[x];return f?d?qk(d,f):f:d||_p}return a[x]||_p}}},s2=(e,n,a)=>{if(e.length-n===0)return a.classGroupId;const s=e[n],c=a.nextPart.get(s);if(c){const d=s2(e,n+1,c);if(d)return d}const x=a.validators;if(x===null)return;const u=n===0?e.join(M0):e.slice(n).join(M0),f=x.length;for(let d=0;d<f;d++){const m=x[d];if(m.validator(u))return m.classGroupId}},Qk=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?Gk+i:void 0})(),Yk=e=>{const{theme:n,classGroups:a}=e;return Kk(a,n)},Kk=(e,n)=>{const a=l2();for(const i in e){const s=e[i];Of(s,a,i,n)}return a},Of=(e,n,a,i)=>{const s=e.length;for(let c=0;c<s;c++){const x=e[c];Xk(x,n,a,i)}},Xk=(e,n,a,i)=>{if(typeof e=="string"){Zk(e,n,a);return}if(typeof e=="function"){Jk(e,n,a,i);return}Wk(e,n,a,i)},Zk=(e,n,a)=>{const i=e===""?n:o2(n,e);i.classGroupId=a},Jk=(e,n,a,i)=>{if(eD(e)){Of(e(i),n,a,i);return}n.validators===null&&(n.validators=[]),n.validators.push($k(a,e))},Wk=(e,n,a,i)=>{const s=Object.entries(e),c=s.length;for(let x=0;x<c;x++){const[u,f]=s[x];Of(f,o2(n,u),a,i)}},o2=(e,n)=>{let a=e;const i=n.split(M0),s=i.length;for(let c=0;c<s;c++){const x=i[c];let u=a.nextPart.get(x);u||(u=l2(),a.nextPart.set(x,u)),a=u}return a},eD=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,tD=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)}}},Xu="!",Mp=":",nD=[],Np=(e,n,a,i,s)=>({modifiers:e,hasImportantModifier:n,baseClassName:a,maybePostfixModifierPosition:i,isExternal:s}),rD=e=>{const{prefix:n,experimentalParseClassName:a}=e;let i=s=>{const c=[];let x=0,u=0,f=0,d;const m=s.length;for(let B=0;B<m;B++){const v=s[B];if(x===0&&u===0){if(v===Mp){c.push(s.slice(f,B)),f=B+1;continue}if(v==="/"){d=B;continue}}v==="["?x++:v==="]"?x--:v==="("?u++:v===")"&&u--}const p=c.length===0?s:s.slice(f);let y=p,C=!1;p.endsWith(Xu)?(y=p.slice(0,-1),C=!0):p.startsWith(Xu)&&(y=p.slice(1),C=!0);const b=d&&d>f?d-f:void 0;return Np(c,C,y,b)};if(n){const s=n+Mp,c=i;i=x=>x.startsWith(s)?c(x.slice(s.length)):Np(nD,!1,x,void 0,!0)}if(a){const s=i;i=c=>a({className:c,parseClassName:s})}return i},aD=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]==="[",f=n.has(x);u||f?(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}},iD=e=>({cache:tD(e.cacheSize),parseClassName:rD(e),sortModifiers:aD(e),postfixLookupClassGroupIds:lD(e),...Vk(e)}),lD=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},sD=/\s+/,oD=(e,n)=>{const{parseClassName:a,getClassGroupId:i,getConflictingClassGroupIds:s,sortModifiers:c,postfixLookupClassGroupIds:x}=n,u=[],f=e.trim().split(sD);let d="";for(let m=f.length-1;m>=0;m-=1){const p=f[m],{isExternal:y,modifiers:C,hasImportantModifier:b,baseClassName:B,maybePostfixModifierPosition:v}=a(p);if(y){d=p+(d.length>0?" "+d:d);continue}let k=!!v,R;if(k){const O=B.substring(0,v);R=i(O);const L=R&&x[R]?i(B):void 0;L&&L!==R&&(R=L,k=!1)}else R=i(B);if(!R){if(!k){d=p+(d.length>0?" "+d:d);continue}if(R=i(B),!R){d=p+(d.length>0?" "+d:d);continue}k=!1}const _=C.length===0?"":C.length===1?C[0]:c(C).join(":"),N=b?_+Xu:_,T=N+R;if(u.indexOf(T)>-1)continue;u.push(T);const F=s(R,k);for(let O=0;O<F.length;++O){const L=F[O];u.push(N+L)}d=p+(d.length>0?" "+d:d)}return d},cD=(...e)=>{let n=0,a,i,s="";for(;n<e.length;)(a=e[n++])&&(i=c2(a))&&(s&&(s+=" "),s+=i);return s},c2=e=>{if(typeof e=="string")return e;let n,a="";for(let i=0;i<e.length;i++)e[i]&&(n=c2(e[i]))&&(a&&(a+=" "),a+=n);return a},xD=(e,...n)=>{let a,i,s,c;const x=f=>{const d=n.reduce((m,p)=>p(m),e());return a=iD(d),i=a.cache.get,s=a.cache.set,c=u,u(f)},u=f=>{const d=i(f);if(d)return d;const m=oD(f,a);return s(f,m),m};return c=x,(...f)=>c(cD(...f))},uD=[],en=e=>{const n=a=>a[e]||uD;return n.isThemeGetter=!0,n},x2=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,u2=/^\((?:(\w[\w-]*):)?(.+)\)$/i,fD=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,dD=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,hD=/\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$/,pD=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,mD=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,ED=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,_a=e=>fD.test(e),Ke=e=>!!e&&!Number.isNaN(Number(e)),Br=e=>!!e&&Number.isInteger(Number(e)),uu=e=>e.endsWith("%")&&Ke(e.slice(0,-1)),Jr=e=>dD.test(e),f2=()=>!0,gD=e=>hD.test(e)&&!pD.test(e),jf=()=>!1,yD=e=>mD.test(e),CD=e=>ED.test(e),bD=e=>!Ae(e)&&!Be(e),AD=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)),BD=e=>ja(e,p2,jf),Ae=e=>x2.test(e),li=e=>ja(e,m2,gD),Tp=e=>ja(e,MD,Ke),vD=e=>ja(e,g2,f2),kD=e=>ja(e,E2,jf),Rp=e=>ja(e,d2,jf),DD=e=>ja(e,h2,CD),p0=e=>ja(e,y2,yD),Be=e=>u2.test(e),ds=e=>pi(e,m2),FD=e=>pi(e,E2),Op=e=>pi(e,d2),wD=e=>pi(e,p2),SD=e=>pi(e,h2),m0=e=>pi(e,y2,!0),_D=e=>pi(e,g2,!0),ja=(e,n,a)=>{const i=x2.exec(e);return i?i[1]?n(i[1]):a(i[2]):!1},pi=(e,n,a=!1)=>{const i=u2.exec(e);return i?i[1]?n(i[1]):a:!1},d2=e=>e==="position"||e==="percentage",h2=e=>e==="image"||e==="url",p2=e=>e==="length"||e==="size"||e==="bg-size",m2=e=>e==="length",MD=e=>e==="number",E2=e=>e==="family-name",g2=e=>e==="number"||e==="weight",y2=e=>e==="shadow",ND=()=>{const e=en("color"),n=en("font"),a=en("text"),i=en("font-weight"),s=en("tracking"),c=en("leading"),x=en("breakpoint"),u=en("container"),f=en("spacing"),d=en("radius"),m=en("shadow"),p=en("inset-shadow"),y=en("text-shadow"),C=en("drop-shadow"),b=en("blur"),B=en("perspective"),v=en("aspect"),k=en("ease"),R=en("animate"),_=()=>["auto","avoid","all","avoid-page","page","left","right","column"],N=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],T=()=>[...N(),Be,Ae],F=()=>["auto","hidden","clip","visible","scroll"],O=()=>["auto","contain","none"],L=()=>[Be,Ae,f],$=()=>[_a,"full","auto",...L()],z=()=>[Br,"none","subgrid",Be,Ae],X=()=>["auto",{span:["full",Br,Be,Ae]},Br,Be,Ae],K=()=>[Br,"auto",Be,Ae],V=()=>["auto","min","max","fr",Be,Ae],Z=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],Q=()=>["start","end","center","stretch","center-safe","end-safe"],U=()=>["auto",...L()],H=()=>[_a,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...L()],re=()=>[_a,"screen","full","dvw","lvw","svw","min","max","fit",...L()],fe=()=>[_a,"screen","full","lh","dvh","lvh","svh","min","max","fit",...L()],w=()=>[e,Be,Ae],j=()=>[...N(),Op,Rp,{position:[Be,Ae]}],J=()=>["no-repeat",{repeat:["","x","y","space","round"]}],M=()=>["auto","cover","contain",wD,BD,{size:[Be,Ae]}],te=()=>[uu,ds,li],ge=()=>["","none","full",d,Be,Ae],de=()=>["",Ke,ds,li],Ce=()=>["solid","dashed","dotted","double"],Qe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ke=()=>[Ke,uu,Op,Rp],ue=()=>["","none",b,Be,Ae],Ze=()=>["none",Ke,Be,Ae],ut=()=>["none",Ke,Be,Ae],bt=()=>[Ke,Be,Ae],ie=()=>[_a,"full",...L()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Jr],breakpoint:[Jr],color:[f2],container:[Jr],"drop-shadow":[Jr],ease:["in","out","in-out"],font:[bD],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Jr],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Jr],shadow:[Jr],spacing:["px",Ke],text:[Jr],"text-shadow":[Jr],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",_a,Ae,Be,v]}],container:["container"],"container-type":[{"@container":["","normal","size",Be,Ae]}],"container-named":[AD],columns:[{columns:[Ke,Ae,Be,u]}],"break-after":[{"break-after":_()}],"break-before":[{"break-before":_()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:T()}],overflow:[{overflow:F()}],"overflow-x":[{"overflow-x":F()}],"overflow-y":[{"overflow-y":F()}],overscroll:[{overscroll:O()}],"overscroll-x":[{"overscroll-x":O()}],"overscroll-y":[{"overscroll-y":O()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:$()}],"inset-x":[{"inset-x":$()}],"inset-y":[{"inset-y":$()}],start:[{"inset-s":$(),start:$()}],end:[{"inset-e":$(),end:$()}],"inset-bs":[{"inset-bs":$()}],"inset-be":[{"inset-be":$()}],top:[{top:$()}],right:[{right:$()}],bottom:[{bottom:$()}],left:[{left:$()}],visibility:["visible","invisible","collapse"],z:[{z:[Br,"auto",Be,Ae]}],basis:[{basis:[_a,"full","auto",u,...L()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Ke,_a,"auto","initial","none",Ae]}],grow:[{grow:["",Ke,Be,Ae]}],shrink:[{shrink:["",Ke,Be,Ae]}],order:[{order:[Br,"first","last","none",Be,Ae]}],"grid-cols":[{"grid-cols":z()}],"col-start-end":[{col:X()}],"col-start":[{"col-start":K()}],"col-end":[{"col-end":K()}],"grid-rows":[{"grid-rows":z()}],"row-start-end":[{row:X()}],"row-start":[{"row-start":K()}],"row-end":[{"row-end":K()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":V()}],"auto-rows":[{"auto-rows":V()}],gap:[{gap:L()}],"gap-x":[{"gap-x":L()}],"gap-y":[{"gap-y":L()}],"justify-content":[{justify:[...Z(),"normal"]}],"justify-items":[{"justify-items":[...Q(),"normal"]}],"justify-self":[{"justify-self":["auto",...Q()]}],"align-content":[{content:["normal",...Z()]}],"align-items":[{items:[...Q(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...Q(),{baseline:["","last"]}]}],"place-content":[{"place-content":Z()}],"place-items":[{"place-items":[...Q(),"baseline"]}],"place-self":[{"place-self":["auto",...Q()]}],p:[{p:L()}],px:[{px:L()}],py:[{py:L()}],ps:[{ps:L()}],pe:[{pe:L()}],pbs:[{pbs:L()}],pbe:[{pbe:L()}],pt:[{pt:L()}],pr:[{pr:L()}],pb:[{pb:L()}],pl:[{pl:L()}],m:[{m: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":L()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":L()}],"space-y-reverse":["space-y-reverse"],size:[{size:H()}],"inline-size":[{inline:["auto",...re()]}],"min-inline-size":[{"min-inline":["auto",...re()]}],"max-inline-size":[{"max-inline":["none",...re()]}],"block-size":[{block:["auto",...fe()]}],"min-block-size":[{"min-block":["auto",...fe()]}],"max-block-size":[{"max-block":["none",...fe()]}],w:[{w:[u,"screen",...H()]}],"min-w":[{"min-w":[u,"screen","none",...H()]}],"max-w":[{"max-w":[u,"screen","none","prose",{screen:[x]},...H()]}],h:[{h:["screen","lh",...H()]}],"min-h":[{"min-h":["screen","lh","none",...H()]}],"max-h":[{"max-h":["screen","lh",...H()]}],"font-size":[{text:["base",a,ds,li]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[i,_D,vD]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",uu,Ae]}],"font-family":[{font:[FD,kD,n]}],"font-features":[{"font-features":[Ae]}],"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,Be,Ae]}],"line-clamp":[{"line-clamp":[Ke,"none",Be,Tp]}],leading:[{leading:[c,...L()]}],"list-image":[{"list-image":["none",Be,Ae]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Be,Ae]}],"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:[...Ce(),"wavy"]}],"text-decoration-thickness":[{decoration:[Ke,"from-font","auto",Be,li]}],"text-decoration-color":[{decoration:w()}],"underline-offset":[{"underline-offset":[Ke,"auto",Be,Ae]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:L()}],"tab-size":[{tab:[Br,Be,Ae]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Be,Ae]}],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",Be,Ae]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:j()}],"bg-repeat":[{bg:J()}],"bg-size":[{bg:M()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Br,Be,Ae],radial:["",Be,Ae],conic:[Br,Be,Ae]},SD,DD]}],"bg-color":[{bg:w()}],"gradient-from-pos":[{from:te()}],"gradient-via-pos":[{via:te()}],"gradient-to-pos":[{to:te()}],"gradient-from":[{from:w()}],"gradient-via":[{via:w()}],"gradient-to":[{to:w()}],rounded:[{rounded:ge()}],"rounded-s":[{"rounded-s":ge()}],"rounded-e":[{"rounded-e":ge()}],"rounded-t":[{"rounded-t":ge()}],"rounded-r":[{"rounded-r":ge()}],"rounded-b":[{"rounded-b":ge()}],"rounded-l":[{"rounded-l":ge()}],"rounded-ss":[{"rounded-ss":ge()}],"rounded-se":[{"rounded-se":ge()}],"rounded-ee":[{"rounded-ee":ge()}],"rounded-es":[{"rounded-es":ge()}],"rounded-tl":[{"rounded-tl":ge()}],"rounded-tr":[{"rounded-tr":ge()}],"rounded-br":[{"rounded-br":ge()}],"rounded-bl":[{"rounded-bl":ge()}],"border-w":[{border:de()}],"border-w-x":[{"border-x":de()}],"border-w-y":[{"border-y":de()}],"border-w-s":[{"border-s":de()}],"border-w-e":[{"border-e":de()}],"border-w-bs":[{"border-bs":de()}],"border-w-be":[{"border-be":de()}],"border-w-t":[{"border-t":de()}],"border-w-r":[{"border-r":de()}],"border-w-b":[{"border-b":de()}],"border-w-l":[{"border-l":de()}],"divide-x":[{"divide-x":de()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":de()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Ce(),"hidden","none"]}],"divide-style":[{divide:[...Ce(),"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:[...Ce(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Ke,Be,Ae]}],"outline-w":[{outline:["",Ke,ds,li]}],"outline-color":[{outline:w()}],shadow:[{shadow:["","none",m,m0,p0]}],"shadow-color":[{shadow:w()}],"inset-shadow":[{"inset-shadow":["none",p,m0,p0]}],"inset-shadow-color":[{"inset-shadow":w()}],"ring-w":[{ring:de()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:w()}],"ring-offset-w":[{"ring-offset":[Ke,li]}],"ring-offset-color":[{"ring-offset":w()}],"inset-ring-w":[{"inset-ring":de()}],"inset-ring-color":[{"inset-ring":w()}],"text-shadow":[{"text-shadow":["none",y,m0,p0]}],"text-shadow-color":[{"text-shadow":w()}],opacity:[{opacity:[Ke,Be,Ae]}],"mix-blend":[{"mix-blend":[...Qe(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Qe()}],"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":[Ke]}],"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":[Be,Ae]}],"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":N()}],"mask-image-conic-pos":[{"mask-conic":[Ke]}],"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:j()}],"mask-repeat":[{mask:J()}],"mask-size":[{mask:M()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Be,Ae]}],filter:[{filter:["","none",Be,Ae]}],blur:[{blur:ue()}],brightness:[{brightness:[Ke,Be,Ae]}],contrast:[{contrast:[Ke,Be,Ae]}],"drop-shadow":[{"drop-shadow":["","none",C,m0,p0]}],"drop-shadow-color":[{"drop-shadow":w()}],grayscale:[{grayscale:["",Ke,Be,Ae]}],"hue-rotate":[{"hue-rotate":[Ke,Be,Ae]}],invert:[{invert:["",Ke,Be,Ae]}],saturate:[{saturate:[Ke,Be,Ae]}],sepia:[{sepia:["",Ke,Be,Ae]}],"backdrop-filter":[{"backdrop-filter":["","none",Be,Ae]}],"backdrop-blur":[{"backdrop-blur":ue()}],"backdrop-brightness":[{"backdrop-brightness":[Ke,Be,Ae]}],"backdrop-contrast":[{"backdrop-contrast":[Ke,Be,Ae]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Ke,Be,Ae]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Ke,Be,Ae]}],"backdrop-invert":[{"backdrop-invert":["",Ke,Be,Ae]}],"backdrop-opacity":[{"backdrop-opacity":[Ke,Be,Ae]}],"backdrop-saturate":[{"backdrop-saturate":[Ke,Be,Ae]}],"backdrop-sepia":[{"backdrop-sepia":["",Ke,Be,Ae]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":L()}],"border-spacing-x":[{"border-spacing-x":L()}],"border-spacing-y":[{"border-spacing-y":L()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Be,Ae]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Ke,"initial",Be,Ae]}],ease:[{ease:["linear","initial",k,Be,Ae]}],delay:[{delay:[Ke,Be,Ae]}],animate:[{animate:["none",R,Be,Ae]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[B,Be,Ae]}],"perspective-origin":[{"perspective-origin":T()}],rotate:[{rotate:Ze()}],"rotate-x":[{"rotate-x":Ze()}],"rotate-y":[{"rotate-y":Ze()}],"rotate-z":[{"rotate-z":Ze()}],scale:[{scale:ut()}],"scale-x":[{"scale-x":ut()}],"scale-y":[{"scale-y":ut()}],"scale-z":[{"scale-z":ut()}],"scale-3d":["scale-3d"],skew:[{skew:bt()}],"skew-x":[{"skew-x":bt()}],"skew-y":[{"skew-y":bt()}],transform:[{transform:[Be,Ae,"","none","gpu","cpu"]}],"transform-origin":[{origin:T()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ie()}],"translate-x":[{"translate-x":ie()}],"translate-y":[{"translate-y":ie()}],"translate-z":[{"translate-z":ie()}],"translate-none":["translate-none"],zoom:[{zoom:[Br,Be,Ae]}],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",Be,Ae]}],"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":L()}],"scroll-mx":[{"scroll-mx":L()}],"scroll-my":[{"scroll-my":L()}],"scroll-ms":[{"scroll-ms":L()}],"scroll-me":[{"scroll-me":L()}],"scroll-mbs":[{"scroll-mbs":L()}],"scroll-mbe":[{"scroll-mbe":L()}],"scroll-mt":[{"scroll-mt":L()}],"scroll-mr":[{"scroll-mr":L()}],"scroll-mb":[{"scroll-mb":L()}],"scroll-ml":[{"scroll-ml":L()}],"scroll-p":[{"scroll-p":L()}],"scroll-px":[{"scroll-px":L()}],"scroll-py":[{"scroll-py":L()}],"scroll-ps":[{"scroll-ps":L()}],"scroll-pe":[{"scroll-pe":L()}],"scroll-pbs":[{"scroll-pbs":L()}],"scroll-pbe":[{"scroll-pbe":L()}],"scroll-pt":[{"scroll-pt":L()}],"scroll-pr":[{"scroll-pr":L()}],"scroll-pb":[{"scroll-pb":L()}],"scroll-pl":[{"scroll-pl":L()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Be,Ae]}],fill:[{fill:["none",...w()]}],"stroke-w":[{stroke:[Ke,ds,li,Tp]}],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"]}},TD=xD(ND);function De(...e){return TD(Hk(e))}const RD=200;function C2(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=OD(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=jD(a,c);return u?`${e}/${u}${x}`:null}}function OD(e){if(!e||e.length>RD||/\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:W8(i)?{path:i.startsWith("./")?i.slice(2):i,location:a}:null}function jD(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 b2=S.createContext(null),zD=b2.Provider,LD=C2(null,void 0);function A2(e){const n=S.useContext(b2)??LD;return e===null?null:n(e)}function PD(e){const n=[],a=e.split(gk);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(yk);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 B2(e){return e.state==="setting_up"}const UD={merged:"var(--color-pr-merged)",draft:"var(--color-pr-draft)",conflicts:"var(--color-pr-attention)",checks_failed:"var(--color-pr-attention)",mergeable:"var(--color-pr-mergeable)"};function ID(e){return B2(e)?{color:"var(--color-muted)",working:!0}:{color:e.pr_status&&UD[e.pr_status]||"var(--color-done)",working:e.session_status==="working"}}function HD(e){return e.pr_status==="merged"}function qD(e){return zf(e)==="done"}function zf(e){return B2(e)?"setting-up":e.manual_status||e.derived_status||"in-progress"}const jp=["done","in-review","in-progress","setting-up","backlog","canceled"],$D=["backlog","in-progress","in-review","done","canceled"];function Zu(e){return{done:"Done","in-review":"In review","in-progress":"In progress","setting-up":"Setting up",backlog:"Backlog",canceled:"Canceled"}[e]??e}const GD=["today","yesterday","week","month","older"];function VD(e){return{today:"Today",yesterday:"Yesterday",week:"Past week",month:"Past month",older:"Older"}[e]}function zp(e){const n=new Date(e);return n.setHours(0,0,0,0),n.getTime()}function QD(e,n=new Date){const a=new Date(e);if(!Number.isFinite(a.getTime()))return"older";const i=Math.round((zp(n)-zp(a))/864e5);return i<=0?"today":i===1?"yesterday":i<7?"week":i<30?"month":"older"}const Lf={done:"var(--color-done)","in-review":"var(--color-idle)","in-progress":"var(--color-working)","setting-up":"var(--color-muted)"};function v2(e){return e?e.replace(/^claude-/,"").replace(/-\d{8}$/,"").replace(/-latest$/,""):""}const Ju=e=>e.toLowerCase().replace(/[^a-z0-9]/g,""),Lp=e=>Ju(e.replace(/[\s\-_]\d+[mk]$/i,""));function k2(e,n=[]){const a=v2(e);if(!a)return"";const i=a.split("/").pop()??a,s=i.split(":").pop()??i;return YD(s,n)??KD(s)}function YD(e,n){const a=Ju(e);if(!a)return;const i=n.find(c=>Ju(c)===a);if(i)return i;const s=n.filter(c=>Lp(c)===Lp(e));return s.length===1?s[0]:void 0}function KD(e){const n=XD(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 XD(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 N0(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 D2(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 ZD=6e4,JD=60*ZD,WD=24*JD,eF=7*WD;function F2(e){return e.toLocaleTimeString(void 0,{hour:"2-digit",minute:"2-digit"})}function w2(e,n){return`${e.toLocaleDateString(void 0,{month:"short",day:"numeric",...e.getFullYear()===n.getFullYear()?{}:{year:"numeric"}})}, ${F2(e)}`}function tF(e){const n=new Date(e);if(!Number.isFinite(n.getTime()))return"";const a=new Date;return n.toDateString()===a.toDateString()?F2(n):w2(n,a)}function nF(e,n=Date.now()){const a=new Date(e),i=n-a.getTime();return Number.isFinite(i)?i>=eF?w2(a,new Date(n)):_2(e,n):""}function S2(e){const n=new Date(e).getTime();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 si;function _2(e,n=Date.now()){const a=new Date(e).getTime();if(!Number.isFinite(a))return"";const i=Math.round((n-a)/1e3);if(i<45)return"now";if(si??=new Intl.RelativeTimeFormat(void 0,{numeric:"auto"}),i<90)return si.format(-1,"minute");const s=Math.round(i/60);if(s<60)return si.format(-s,"minute");const c=Math.round(s/60);if(c<24)return si.format(-c,"hour");const x=Math.round(c/24);if(x<30)return si.format(-x,"day");const u=Math.round(x/30.4);return u<12?si.format(-u,"month"):si.format(-Math.round(x/365),"year")}function rF(){const e=location.hostname;return!e||e==="localhost"||e.startsWith("127.")?null:`vnc://${e}`}const aF={activity:ay,anchor:ly,apple:oy,atom:py,award:Ey,banknote:yy,battery:by,beer:By,bell:w8,bike:Dy,bird:wy,bluetooth:_y,book:Ry,"book-open":Ny,bookmark:jy,bot:S8,box:Py,brain:Iy,briefcase:qy,brush:Gy,bug:Ky,"bug-play":Qy,building:Wy,"building-2":Zy,cake:t3,calendar:r3,camera:i3,car:s3,carrot:c3,cat:u3,"chart-bar":d3,"chart-line":p3,"chart-pie":E3,clapperboard:B3,clock:k3,cloud:M3,code:O3,"code-xml":T3,coffee:z3,cog:P3,compass:I3,cpu:$3,"credit-card":V3,crown:Y3,database:X3,dna:J3,dog:eC,"dollar-sign":nC,dumbbell:aC,egg:oC,factory:fC,feather:hC,file:CC,"file-code":mC,film:AC,fish:vC,flag:DC,flame:wC,"flask-conical":_C,folder:NC,"gamepad-2":RC,gem:jC,gift:LC,"git-branch":UC,github:GC,glasses:QC,globe:KC,"graduation-cap":ZC,"grid-3x3":WC,hammer:tb,headphones:rb,heart:sb,"heart-pulse":ib,house:cb,image:ub,key:pb,laptop:Eb,"layout-grid":bb,layers:yb,leaf:Bb,lightbulb:kb,link:Fb,lock:Nb,mail:jb,map:M8,"map-pin":Lb,martini:Ib,medal:qb,"message-circle":Gb,"message-square":Qb,mic:Kb,microscope:Zb,monitor:Wb,moon:tA,music:rA,orbit:iA,package:sA,paintbrush:cA,paperclip:q0,"paw-print":hA,pen:mA,pencil:gA,phone:CA,pill:AA,pipette:vA,pizza:DA,plane:wA,plug:NA,power:OA,puzzle:zA,rabbit:UA,radio:HA,rocket:GA,ruler:KA,salad:QA,satellite:ZA,scissors:WA,server:nB,settings:aB,shell:lB,shield:oB,ship:xB,"shopping-bag":fB,"shopping-cart":hB,smartphone:gB,snail:CB,soup:AB,sparkles:vB,sprout:DB,star:SB,stethoscope:MB,store:TB,sun:j8,tag:jB,tags:LB,target:UB,telescope:HB,terminal:$B,ticket:VB,"train-front":YB,"tree-pine":XB,"trending-up":JB,trophy:tv,turtle:rv,user:iv,users:sv,utensils:cv,video:uv,wallet:dv,"wand-2":xp,"wand-sparkles":xp,warehouse:mv,wheat:gv,wifi:z8,wine:Av,wrench:vv,zap:L8};function iF({w:e,className:n}){const{color:a,working:i}=ID(e);return i?g.jsx("span",{className:De("dot-spinner",n),style:{"--spin-color":a}}):g.jsx("span",{className:De("dot",n),style:{background:a}})}function lF(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 sF(){const e=Me(x=>x.online),n=Me(x=>x.lastSyncAt),a=Me(x=>x.update),i=a?.mode==="auto"&&a.available,[s,c]=S.useState(()=>Date.now());return S.useEffect(()=>{if(e)return;const x=setInterval(()=>c(Date.now()),1e3);return()=>clearInterval(x)},[e]),i?g.jsxs("div",{className:"fade-in flex items-center gap-1.5 bg-accent/10 px-3 py-1.5 text-xs text-accent",children:[g.jsx(Sf,{size:13,className:"animate-spin"}),g.jsxs("span",{children:["Updating relay to ",a?.latest??"latest","… reconnecting"]})]}):e?null:g.jsxs("div",{className:"fade-in flex items-center gap-1.5 bg-del/10 px-3 py-1.5 text-xs text-del",children:[g.jsx(Mf,{size:13}),g.jsxs("span",{children:["Offline — retrying…",n?` last synced ${lF(s-n)} ago`:""]})]})}function $0({className:e}){const n=rF();return n?g.jsx("a",{href:n,className:De("font-semibold text-accent underline underline-offset-2",e),children:"Unlock the Mac"}):null}function Pp({children:e,className:n}){return g.jsx("span",{className:De("rounded-md bg-surface-2 px-1.5 py-0.5 font-mono text-[11px] text-muted",n),children:e})}function oF({children:e}){return g.jsx("span",{className:"grid min-w-5 place-items-center rounded-full bg-accent px-1.5 text-[11px] font-bold text-white",children:e})}function cF({error:e}){const n=typeof navigator<"u"&&navigator.onLine===!1,a=e instanceof Error?e.message:String(e??"request failed"),i=!(e instanceof Fr)||e.status===0;return n?g.jsxs(vn,{children:[g.jsx(Mf,{size:20,className:"mx-auto mb-3 text-muted"}),g.jsx("div",{className:"font-medium text-text",children:"This phone is offline"}),g.jsx("div",{className:"mt-1",children:"Check Wi-Fi or cellular. The list comes back on its own."})]}):g.jsxs(vn,{children:[g.jsx(F3,{size:20,className:"mx-auto mb-3 text-del"}),g.jsx("div",{className:"font-medium text-text",children:i?"Can’t reach the relay":"The relay answered with an error"}),g.jsx("div",{className:"mt-1 break-words font-mono text-[11px] text-muted",children:a}),i?g.jsxs("ul",{className:"mt-4 space-y-2 text-left",children:[g.jsx("li",{children:"Is the Mac awake and online?"}),g.jsxs("li",{children:["If the relay is tailnet-only: Tailscale connected on this phone, and"," ",g.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."]}),g.jsx("li",{children:"Otherwise the Funnel may be stale after a network change — re-deploy on the Mac."})]}):null]})}function vn({children:e}){return g.jsx("div",{className:"mx-auto max-w-xs px-6 py-16 text-center text-sm text-muted",children:e})}function za({label:e}){return g.jsxs("div",{className:"flex items-center justify-center gap-2 py-16 text-sm text-muted",children:[g.jsx("span",{className:"size-4 animate-spin rounded-full border-2 border-border border-t-accent"}),e]})}const k0="grid size-8 place-items-center overflow-hidden rounded-lg bg-surface-2 font-semibold text-muted";function Ts({icon:e,name:n,artwork:a}){const i=g.jsx("div",{className:De(k0,"text-xs"),children:(n.trim()[0]??"?").toUpperCase()});if(!e)return i;if(e.kind==="emoji")return g.jsx("div",{className:De(k0,"text-lg leading-none"),children:e.value});if(e.kind==="named"){const s=aF[e.value];return s?g.jsx("div",{className:k0,children:g.jsx(s,{size:18,className:"text-muted"})}):i}return e.kind==="github"?g.jsx(M2,{src:`https://github.com/${encodeURIComponent(e.owner)}.png?size=64`,fit:"cover",artwork:a,fallback:i}):g.jsx(xF,{repoName:n,artwork:a,fallback:i})}function M2({src:e,fit:n,artwork:a,fallback:i}){const[s,c]=S.useState(!1);return s?g.jsx(g.Fragment,{children:i}):g.jsx("div",{className:De(k0,a==="inset"&&"p-1.5"),children:g.jsx("img",{src:e,alt:"",loading:"lazy",className:De("size-full",a==="full-bleed"?"rounded-[inherit]":"rounded-sm",n==="cover"?"object-cover":"object-contain"),onError:()=>c(!0)})})}function xF({repoName:e,artwork:n,fallback:a}){const{data:i,isError:s}=Tk(e);return!e||s||!i?g.jsx(g.Fragment,{children:a}):g.jsx(M2,{src:i,fit:"contain",artwork:n,fallback:a})}function T0({title:e,subtitle:n,menu:a,right:i}){const s=Me(c=>c.setSidebarOpen);return g.jsxs("header",{className:"pt-safe sticky top-0 z-10 border-b border-border-soft bg-bg/80 backdrop-blur-xl",children:[g.jsxs("div",{className:"flex items-center gap-2 px-3 pb-2.5",children:[a?g.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:g.jsx(uA,{size:20})}):g.jsx("span",{className:"w-1"}),g.jsxs("div",{className:"min-w-0 flex-1",children:[g.jsx("div",{className:"truncate text-[15px] font-semibold leading-tight",children:e}),n?g.jsx("div",{className:"truncate text-xs leading-tight text-muted",children:n}):null]}),i]}),g.jsx(sF,{})]})}function uF(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 f={match:/\\"/},d={className:"string",begin:/'/,end:/'/},m={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"],C=e.SHEBANG({binary:`(${y.join("|")})`,relevance:10}),b={className:"function",begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0,contains:[e.inherit(e.TITLE_MODE,{begin:/\w[\w\d_]*/})],relevance:0},B=["if","then","else","elif","fi","time","for","while","until","in","do","done","case","esac","coproc","function","select"],v=["true","false"],k={match:/(\/[a-z._-]+)+/},R=["break","cd","continue","eval","exec","exit","export","getopts","hash","pwd","readonly","return","shift","test","times","trap","umask","unset"],_=["alias","bind","builtin","caller","command","declare","echo","enable","help","let","local","logout","mapfile","printf","read","readarray","source","sudo","type","typeset","ulimit","unalias"],N=["autoload","bg","bindkey","bye","cap","chdir","clone","comparguments","compcall","compctl","compdescribe","compfiles","compgroups","compquote","comptags","comptry","compvalues","dirs","disable","disown","echotc","echoti","emulate","fc","fg","float","functions","getcap","getln","history","integer","jobs","kill","limit","log","noglob","popd","print","pushd","pushln","rehash","sched","setcap","setopt","stat","suspend","ttyctl","unfunction","unhash","unlimit","unsetopt","vared","wait","whence","where","which","zcompile","zformat","zftp","zle","zmodload","zparseopts","zprof","zpty","zregexparse","zsocket","zstyle","ztcp"],T=["chcon","chgrp","chown","chmod","cp","dd","df","dir","dircolors","ln","ls","mkdir","mkfifo","mknod","mktemp","mv","realpath","rm","rmdir","shred","sync","touch","truncate","vdir","b2sum","base32","base64","cat","cksum","comm","csplit","cut","expand","fmt","fold","head","join","md5sum","nl","numfmt","od","paste","ptx","pr","sha1sum","sha224sum","sha256sum","sha384sum","sha512sum","shuf","sort","split","sum","tac","tail","tr","tsort","unexpand","uniq","wc","arch","basename","chroot","date","dirname","du","echo","env","expr","factor","groups","hostid","id","link","logname","nice","nohup","nproc","pathchk","pinky","printenv","printf","pwd","readlink","runcon","seq","sleep","stat","stdbuf","stty","tee","test","timeout","tty","uname","unlink","uptime","users","who","whoami","yes"];return{name:"Bash",aliases:["sh","zsh"],keywords:{$pattern:/\b[a-z][a-z0-9._-]+\b/,keyword:B,literal:v,built_in:[...R,..._,"set","shopt",...N,...T]},contains:[C,e.SHEBANG(),b,p,c,x,k,u,f,d,m,a]}}const fF=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_-]*/}}),dF=["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"],hF=["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"],pF=[...dF,...hF],mF=["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(),EF=["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(),gF=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),yF=["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 CF(e){const n=e.regex,a=fF(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:":("+EF.join("|")+")"},{begin:":(:)?("+gF.join("|")+")"}]},a.CSS_VARIABLE,{className:"attribute",begin:"\\b("+yF.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:mF.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...u,a.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+pF.join("|")+")\\b"}]}}function bF(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},f=/[A-Za-z0-9_-]+/,d=/"(\\"|[^"])*"/,m=/'[^']*'/,p=n.either(f,d,m),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 Up="[A-Za-z$_][0-9A-Za-z$_]*",AF=["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"],BF=["true","false","null","undefined","NaN","Infinity"],N2=["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"],T2=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],R2=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],vF=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],kF=[].concat(R2,N2,T2);function DF(e){const n=e.regex,a=(re,{after:fe})=>{const w="</"+re[0].slice(1);return re.input.indexOf(w,fe)!==-1},i=Up,s={begin:"<>",end:"</>"},c=/<[A-Za-z0-9\\._:-]+\s*\/>/,x={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(re,fe)=>{const w=re[0].length+re.index,j=re.input[w];if(j==="<"||j===","){fe.ignoreMatch();return}j===">"&&(a(re,{after:w})||fe.ignoreMatch());let J;const M=re.input.substring(w);if(J=M.match(/^\s*=/)){fe.ignoreMatch();return}if((J=M.match(/^\s+extends\s+/))&&J.index===0){fe.ignoreMatch();return}}},u={$pattern:Up,keyword:AF,literal:BF,built_in:kF,"variable.language":vF},f="[0-9](_?[0-9])*",d=`\\.(${f})`,m="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",p={className:"number",variants:[{begin:`(\\b(${m})((${d})|\\.)?|(${d}))[eE][+-]?(${f})\\b`},{begin:`\\b(${m})\\b((${d})\\b|\\.)?|(${d})\\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:[]},C={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,y],subLanguage:"xml"}},b={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,y],subLanguage:"css"}},B={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,y],subLanguage:"graphql"}},v={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,y]},R={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]},_=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,C,b,B,v,{match:/\$\d+/},p];y.contains=_.concat({begin:/\{/,end:/\}/,keywords:u,contains:["self"].concat(_)});const N=[].concat(R,y.contains),T=N.concat([{begin:/(\s*)\(/,end:/\)/,keywords:u,contains:["self"].concat(N)}]),F={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:u,contains:T},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"}}]},L={relevance:0,match:n.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...N2,...T2]}},$={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},z={variants:[{match:[/function/,/\s+/,i,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[F],illegal:/%/},X={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function K(re){return n.concat("(?!",re.join("|"),")")}const V={match:n.concat(/\b/,K([...R2,"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},Q={match:[/get|set/,/\s+/,i,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},F]},U="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+e.UNDERSCORE_IDENT_RE+")\\s*=>",H={match:[/const|var|let/,/\s+/,i,/\s*/,/=\s*/,/(async\s*)?/,n.lookahead(U)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[F]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:u,exports:{PARAMS_CONTAINS:T,CLASS_REFERENCE:L},illegal:/#(?![$_A-Za-z])/,contains:[e.SHEBANG({label:"shebang",binary:"node",relevance:5}),$,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,C,b,B,v,R,{match:/\$\d+/},p,L,{scope:"attr",match:i+n.lookahead(":"),relevance:0},H,{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[R,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:T}]}]},{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"]}]}]},z,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+e.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[F,e.inherit(e.TITLE_MODE,{begin:i,className:"title.function"})]},{match:/\.\.\./,relevance:0},Z,{match:"\\$"+i,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[F]},V,X,O,Q,{match:/\$[(.]/}]}}const FF="([-+]?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)|NaN|[-+]?Infinity",wF={scope:"number",match:FF,relevance:0};function SF(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,wF,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE],illegal:"\\S"}}function _F(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+.-]*/,f={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}]},d={className:"strong",contains:[],variants:[{begin:/_{2}(?!\s)/,end:/_{2}/},{begin:/\*{2}(?!\s)/,end:/\*{2}/}]},m={className:"emphasis",contains:[],variants:[{begin:/\*(?![*\s])/,end:/\*/},{begin:/_(?![_\s])/,end:/_/,relevance:0}]},p=e.inherit(d,{contains:[]}),y=e.inherit(m,{contains:[]});d.contains.push(y),m.contains.push(p);let C=[a,f];return[d,m,p,y].forEach(k=>{k.contains=k.contains.concat(C)}),C=C.concat(d,m),{name:"Markdown",aliases:["md","mkdown","mkd"],contains:[{className:"section",variants:[{begin:"^#{1,6}",end:"$",contains:C},{begin:"(?=^.+?\\n[=-]{2,}$)",contains:[{begin:"^[=-]*$"},{begin:"^",end:"\\n",contains:C}]}]},a,c,d,m,{className:"quote",begin:"^>\\s+",contains:C,end:"$"},s,i,f,x,{scope:"literal",match:/&([a-zA-Z0-9]+|#[0-9]{1,7}|#[Xx][0-9a-fA-F]{1,6});/}]}}function MF(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"]},f={className:"meta",begin:/^(>>>|\.\.\.) /},d={className:"subst",begin:/\{/,end:/\}/,keywords:u,illegal:/#/},m={begin:/\{\{/,relevance:0},p={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,f],relevance:10},{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,f],relevance:10},{begin:/([fF][rR]|[rR][fF]|[fF])'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,f,m,d]},{begin:/([fF][rR]|[rR][fF]|[fF])"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,f,m,d]},{begin:/([uU]|[rR])'/,end:/'/,relevance:10},{begin:/([uU]|[rR])"/,end:/"/,relevance:10},{begin:/([bB]|[bB][rR]|[rR][bB])'/,end:/'/},{begin:/([bB]|[bB][rR]|[rR][bB])"/,end:/"/},{begin:/([fF][rR]|[rR][fF]|[fF])'/,end:/'/,contains:[e.BACKSLASH_ESCAPE,m,d]},{begin:/([fF][rR]|[rR][fF]|[fF])"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,m,d]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},y="[0-9](_?[0-9])*",C=`(\\b(${y}))?\\.(${y})|\\b(${y})\\.`,b=`\\b|${i.join("|")}`,B={className:"number",relevance:0,variants:[{begin:`(\\b(${y})|(${C}))[eE][+-]?(${y})[jJ]?(?=${b})`},{begin:`(${C})[jJ]?`},{begin:`\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?(?=${b})`},{begin:`\\b0[bB](_?[01])+[lL]?(?=${b})`},{begin:`\\b0[oO](_?[0-7])+[lL]?(?=${b})`},{begin:`\\b0[xX](_?[0-9a-fA-F])+[lL]?(?=${b})`},{begin:`\\b(${y})[jJ](?=${b})`}]},v={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",f,B,p,e.HASH_COMMENT_MODE]}]};return d.contains=[p,B,f],{name:"Python",aliases:["py","gyp","ipython"],unicodeRegex:!0,keywords:u,illegal:/(<\/|\?)|=>/,contains:[f,B,{scope:"variable.language",match:/\bself\b/},{beginKeywords:"if",relevance:0},{match:/\bor\b/,scope:"keyword"},p,v,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:[B,k,p]}]}}function NF(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"],f=["add","asc","collation","desc","final","first","last","view"],d=["abs","acos","all","allocate","alter","and","any","are","array","array_agg","array_max_cardinality","as","asensitive","asin","asymmetric","at","atan","atomic","authorization","avg","begin","begin_frame","begin_partition","between","bigint","binary","blob","boolean","both","by","call","called","cardinality","cascaded","case","cast","ceil","ceiling","char","char_length","character","character_length","check","classifier","clob","close","coalesce","collate","collect","column","commit","condition","connect","constraint","contains","convert","copy","corr","corresponding","cos","cosh","count","covar_pop","covar_samp","create","cross","cube","cume_dist","current","current_catalog","current_date","current_default_transform_group","current_path","current_role","current_row","current_schema","current_time","current_timestamp","current_path","current_role","current_transform_group_for_type","current_user","cursor","cycle","date","day","deallocate","dec","decimal","decfloat","declare","default","define","delete","dense_rank","deref","describe","deterministic","disconnect","distinct","double","drop","dynamic","each","element","else","empty","end","end_frame","end_partition","end-exec","equals","escape","every","except","exec","execute","exists","exp","external","extract","false","fetch","filter","first_value","float","floor","for","foreign","frame_row","free","from","full","function","fusion","get","global","grant","group","grouping","groups","having","hold","hour","identity","in","indicator","initial","inner","inout","insensitive","insert","int","integer","intersect","intersection","interval","into","is","join","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","language","large","last_value","lateral","lead","leading","left","like","like_regex","listagg","ln","local","localtime","localtimestamp","log","log10","lower","match","match_number","match_recognize","matches","max","member","merge","method","min","minute","mod","modifies","module","month","multiset","national","natural","nchar","nclob","new","no","none","normalize","not","nth_value","ntile","null","nullif","numeric","octet_length","occurrences_regex","of","offset","old","omit","on","one","only","open","or","order","out","outer","over","overlaps","overlay","parameter","partition","pattern","per","percent","percent_rank","percentile_cont","percentile_disc","period","portion","position","position_regex","power","precedes","precision","prepare","primary","procedure","ptf","range","rank","reads","real","recursive","ref","references","referencing","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","release","result","return","returns","revoke","right","rollback","rollup","row","row_number","rows","running","savepoint","scope","scroll","search","second","seek","select","sensitive","session_user","set","show","similar","sin","sinh","skip","smallint","some","specific","specifictype","sql","sqlexception","sqlstate","sqlwarning","sqrt","start","static","stddev_pop","stddev_samp","submultiset","subset","substring","substring_regex","succeeds","sum","symmetric","system","system_time","system_user","table","tablesample","tan","tanh","then","time","timestamp","timezone_hour","timezone_minute","to","trailing","translate","translate_regex","translation","treat","trigger","trim","trim_array","true","truncate","uescape","union","unique","unknown","unnest","update","upper","user","using","value","values","value_of","var_pop","var_samp","varbinary","varchar","varying","versioning","when","whenever","where","width_bucket","window","with","within","without","year"],m=["abs","acos","array_agg","asin","atan","avg","cast","ceil","ceiling","coalesce","corr","cos","cosh","count","covar_pop","covar_samp","cume_dist","dense_rank","deref","element","exp","extract","first_value","floor","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","last_value","lead","listagg","ln","log","log10","lower","max","min","mod","nth_value","ntile","nullif","percent_rank","percentile_cont","percentile_disc","position","position_regex","power","rank","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","row_number","sin","sinh","sqrt","stddev_pop","stddev_samp","substring","substring_regex","sum","tan","tanh","translate","translate_regex","treat","trim","trim_array","unnest","upper","value_of","var_pop","var_samp","width_bucket"],p=["current_catalog","current_date","current_default_transform_group","current_path","current_role","current_schema","current_transform_group_for_type","current_user","session_user","system_time","system_user","current_time","localtime","current_timestamp","localtimestamp"],y=["create table","insert into","primary key","foreign key","not null","alter table","add constraint","grouping sets","on overflow","character set","respect nulls","ignore nulls","nulls first","nulls last","depth first","breadth first"],C=m,b=[...d,...f].filter(T=>!m.includes(T)),B={scope:"variable",match:/@[a-z0-9][a-z0-9_]*/},v={scope:"operator",match:/[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,relevance:0},k={match:n.concat(/\b/,n.either(...C),/\s*\(/),relevance:0,keywords:{built_in:C}};function R(T){return n.concat(/\b/,n.either(...T.map(F=>F.replace(/\s+/,"\\s+"))),/\b/)}const _={scope:"keyword",match:R(y),relevance:0};function N(T,{exceptions:F,when:O}={}){const L=O;return F=F||[],T.map($=>$.match(/\|\d+$/)||F.includes($)?$:L($)?`${$}|0`:$)}return{name:"SQL",case_insensitive:!0,illegal:/[{}]|<\//,keywords:{$pattern:/\b[\w\.]+/,keyword:N(b,{when:T=>T.length<3}),literal:c,type:u,built_in:p},contains:[{scope:"type",match:R(x)},_,k,B,i,s,e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,a,v]}}const R0="[A-Za-z$_][0-9A-Za-z$_]*",O2=["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"],j2=["true","false","null","undefined","NaN","Infinity"],z2=["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"],L2=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],P2=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],U2=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],I2=[].concat(P2,z2,L2);function TF(e){const n=e.regex,a=(re,{after:fe})=>{const w="</"+re[0].slice(1);return re.input.indexOf(w,fe)!==-1},i=R0,s={begin:"<>",end:"</>"},c=/<[A-Za-z0-9\\._:-]+\s*\/>/,x={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(re,fe)=>{const w=re[0].length+re.index,j=re.input[w];if(j==="<"||j===","){fe.ignoreMatch();return}j===">"&&(a(re,{after:w})||fe.ignoreMatch());let J;const M=re.input.substring(w);if(J=M.match(/^\s*=/)){fe.ignoreMatch();return}if((J=M.match(/^\s+extends\s+/))&&J.index===0){fe.ignoreMatch();return}}},u={$pattern:R0,keyword:O2,literal:j2,built_in:I2,"variable.language":U2},f="[0-9](_?[0-9])*",d=`\\.(${f})`,m="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",p={className:"number",variants:[{begin:`(\\b(${m})((${d})|\\.)?|(${d}))[eE][+-]?(${f})\\b`},{begin:`\\b(${m})\\b((${d})\\b|\\.)?|(${d})\\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:[]},C={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,y],subLanguage:"xml"}},b={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,y],subLanguage:"css"}},B={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,y],subLanguage:"graphql"}},v={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,y]},R={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]},_=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,C,b,B,v,{match:/\$\d+/},p];y.contains=_.concat({begin:/\{/,end:/\}/,keywords:u,contains:["self"].concat(_)});const N=[].concat(R,y.contains),T=N.concat([{begin:/(\s*)\(/,end:/\)/,keywords:u,contains:["self"].concat(N)}]),F={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:u,contains:T},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"}}]},L={relevance:0,match:n.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...z2,...L2]}},$={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},z={variants:[{match:[/function/,/\s+/,i,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[F],illegal:/%/},X={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function K(re){return n.concat("(?!",re.join("|"),")")}const V={match:n.concat(/\b/,K([...P2,"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},Q={match:[/get|set/,/\s+/,i,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},F]},U="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+e.UNDERSCORE_IDENT_RE+")\\s*=>",H={match:[/const|var|let/,/\s+/,i,/\s*/,/=\s*/,/(async\s*)?/,n.lookahead(U)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[F]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:u,exports:{PARAMS_CONTAINS:T,CLASS_REFERENCE:L},illegal:/#(?![$_A-Za-z])/,contains:[e.SHEBANG({label:"shebang",binary:"node",relevance:5}),$,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,C,b,B,v,R,{match:/\$\d+/},p,L,{scope:"attr",match:i+n.lookahead(":"),relevance:0},H,{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[R,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:T}]}]},{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"]}]}]},z,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+e.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[F,e.inherit(e.TITLE_MODE,{begin:i,className:"title.function"})]},{match:/\.\.\./,relevance:0},Z,{match:"\\$"+i,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[F]},V,X,O,Q,{match:/\$[(.]/}]}}function RF(e){const n=e.regex,a=TF(e),i=R0,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['"]/},f=["type","interface","public","private","protected","implements","declare","abstract","readonly","enum","override","satisfies"],d={$pattern:R0,keyword:O2.concat(f),literal:j2,built_in:I2.concat(s),"variable.language":U2},m={className:"meta",begin:"@"+i},p=(B,v,k)=>{const R=B.contains.findIndex(_=>_.label===v);if(R===-1)throw new Error("can not find mode to replace");B.contains.splice(R,1,k)};Object.assign(a.keywords,d),a.exports.PARAMS_CONTAINS.push(m);const y=a.contains.find(B=>B.scope==="attr"),C=Object.assign({},y,{match:n.concat(i,n.lookahead(/\s*\?:/))});a.exports.PARAMS_CONTAINS.push([a.exports.CLASS_REFERENCE,y,C]),a.contains=a.contains.concat([m,c,x,C]),p(a,"shebang",e.SHEBANG()),p(a,"use_strict",u);const b=a.contains.find(B=>B.label==="func.def");return b.relevance=0,Object.assign(a,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),a}function OF(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"}),f=e.inherit(e.QUOTE_STRING_MODE,{className:"string"}),d={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,f,u,x,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[c,x,f,u]}]}]},e.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},s,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[f]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[d],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[d],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:d}]},{className:"tag",begin:n.concat(/<\//,n.lookahead(n.concat(a,/>/))),contains:[{className:"name",begin:a,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}function jF(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"},C={end:",",endsWithParent:!0,excludeEnd:!0,keywords:n,relevance:0},b={begin:/\{/,end:/\}/,contains:[C],illegal:"\\n",relevance:0},B={begin:"\\[",end:"\\]",contains:[C],illegal:"\\n",relevance:0},v=[i,{className:"meta",begin:"^---\\s*$",relevance:10},{className:"string",begin:"[\\|>]([1-9]?[+-])?[ ]*\\n( +)[^ ][^\\n]*\\n(\\2[^\\n]+\\n?)*"},{begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:"!\\w+!"+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},b,B,c,x],k=[...v];return k.pop(),k.push(u),C.contains=k,{name:"YAML",case_insensitive:!0,aliases:["yml"],contains:v}}var fu,Ip;function zF(){if(Ip)return fu;Ip=1;function e(I){return I instanceof Map?I.clear=I.delete=I.set=function(){throw new Error("map is read-only")}:I instanceof Set&&(I.add=I.clear=I.delete=function(){throw new Error("set is read-only")}),Object.freeze(I),Object.getOwnPropertyNames(I).forEach(oe=>{const ye=I[oe],Pe=typeof ye;(Pe==="object"||Pe==="function")&&!Object.isFrozen(ye)&&e(ye)}),I}class n{constructor(oe){oe.data===void 0&&(oe.data={}),this.data=oe.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function a(I){return I.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function i(I,...oe){const ye=Object.create(null);for(const Pe in I)ye[Pe]=I[Pe];return oe.forEach(function(Pe){for(const wt in Pe)ye[wt]=Pe[wt]}),ye}const s="</span>",c=I=>!!I.scope,x=(I,{prefix:oe})=>{if(I.startsWith("language:"))return I.replace("language:","language-");if(I.includes(".")){const ye=I.split(".");return[`${oe}${ye.shift()}`,...ye.map((Pe,wt)=>`${Pe}${"_".repeat(wt+1)}`)].join(" ")}return`${oe}${I}`};class u{constructor(oe,ye){this.buffer="",this.classPrefix=ye.classPrefix,oe.walk(this)}addText(oe){this.buffer+=a(oe)}openNode(oe){if(!c(oe))return;const ye=x(oe.scope,{prefix:this.classPrefix});this.span(ye)}closeNode(oe){c(oe)&&(this.buffer+=s)}value(){return this.buffer}span(oe){this.buffer+=`<span class="${oe}">`}}const f=(I={})=>{const oe={children:[]};return Object.assign(oe,I),oe};class d{constructor(){this.rootNode=f(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(oe){this.top.children.push(oe)}openNode(oe){const ye=f({scope:oe});this.add(ye),this.stack.push(ye)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(oe){return this.constructor._walk(oe,this.rootNode)}static _walk(oe,ye){return typeof ye=="string"?oe.addText(ye):ye.children&&(oe.openNode(ye),ye.children.forEach(Pe=>this._walk(oe,Pe)),oe.closeNode(ye)),oe}static _collapse(oe){typeof oe!="string"&&oe.children&&(oe.children.every(ye=>typeof ye=="string")?oe.children=[oe.children.join("")]:oe.children.forEach(ye=>{d._collapse(ye)}))}}class m extends d{constructor(oe){super(),this.options=oe}addText(oe){oe!==""&&this.add(oe)}startScope(oe){this.openNode(oe)}endScope(){this.closeNode()}__addSublanguage(oe,ye){const Pe=oe.root;ye&&(Pe.scope=`language:${ye}`),this.add(Pe)}toHTML(){return new u(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function p(I){return I?typeof I=="string"?I:I.source:null}function y(I){return B("(?=",I,")")}function C(I){return B("(?:",I,")*")}function b(I){return B("(?:",I,")?")}function B(...I){return I.map(ye=>p(ye)).join("")}function v(I){const oe=I[I.length-1];return typeof oe=="object"&&oe.constructor===Object?(I.splice(I.length-1,1),oe):{}}function k(...I){return"("+(v(I).capture?"":"?:")+I.map(Pe=>p(Pe)).join("|")+")"}function R(I){return new RegExp(I.toString()+"|").exec("").length-1}function _(I,oe){const ye=I&&I.exec(oe);return ye&&ye.index===0}const N=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function T(I,{joinWith:oe}){let ye=0;return I.map(Pe=>{ye+=1;const wt=ye;let Bt=p(Pe),we="";for(;Bt.length>0;){const be=N.exec(Bt);if(!be){we+=Bt;break}we+=Bt.substring(0,be.index),Bt=Bt.substring(be.index+be[0].length),be[0][0]==="\\"&&be[1]?we+="\\"+String(Number(be[1])+wt):(we+=be[0],be[0]==="("&&ye++)}return we}).map(Pe=>`(${Pe})`).join(oe)}const F=/\b\B/,O="[a-zA-Z]\\w*",L="[a-zA-Z_]\\w*",$="\\b\\d+(\\.\\d+)?",z="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",X="\\b(0b[01]+)",K="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",V=(I={})=>{const oe=/^#![ ]*\//;return I.binary&&(I.begin=B(oe,/.*\b/,I.binary,/\b.*/)),i({scope:"meta",begin:oe,end:/$/,relevance:0,"on:begin":(ye,Pe)=>{ye.index!==0&&Pe.ignoreMatch()}},I)},Z={begin:"\\\\[\\s\\S]",relevance:0},Q={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[Z]},U={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[Z]},H={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(I,oe,ye={}){const Pe=i({scope:"comment",begin:I,end:oe,contains:[]},ye);Pe.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 wt=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 Pe.contains.push({begin:B(/[ ]+/,"(",wt,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),Pe},fe=re("//","$"),w=re("/\\*","\\*/"),j=re("#","$"),J={scope:"number",begin:$,relevance:0},M={scope:"number",begin:z,relevance:0},te={scope:"number",begin:X,relevance:0},ge={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[Z,{begin:/\[/,end:/\]/,relevance:0,contains:[Z]}]},de={scope:"title",begin:O,relevance:0},Ce={scope:"title",begin:L,relevance:0},Qe={begin:"\\.\\s*"+L,relevance:0};var ue=Object.freeze({__proto__:null,APOS_STRING_MODE:Q,BACKSLASH_ESCAPE:Z,BINARY_NUMBER_MODE:te,BINARY_NUMBER_RE:X,COMMENT:re,C_BLOCK_COMMENT_MODE:w,C_LINE_COMMENT_MODE:fe,C_NUMBER_MODE:M,C_NUMBER_RE:z,END_SAME_AS_BEGIN:function(I){return Object.assign(I,{"on:begin":(oe,ye)=>{ye.data._beginMatch=oe[1]},"on:end":(oe,ye)=>{ye.data._beginMatch!==oe[1]&&ye.ignoreMatch()}})},HASH_COMMENT_MODE:j,IDENT_RE:O,MATCH_NOTHING_RE:F,METHOD_GUARD:Qe,NUMBER_MODE:J,NUMBER_RE:$,PHRASAL_WORDS_MODE:H,QUOTE_STRING_MODE:U,REGEXP_MODE:ge,RE_STARTERS_RE:K,SHEBANG:V,TITLE_MODE:de,UNDERSCORE_IDENT_RE:L,UNDERSCORE_TITLE_MODE:Ce});function Ze(I,oe){I.input[I.index-1]==="."&&oe.ignoreMatch()}function ut(I,oe){I.className!==void 0&&(I.scope=I.className,delete I.className)}function bt(I,oe){oe&&I.beginKeywords&&(I.begin="\\b("+I.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",I.__beforeBegin=Ze,I.keywords=I.keywords||I.beginKeywords,delete I.beginKeywords,I.relevance===void 0&&(I.relevance=0))}function ie(I,oe){Array.isArray(I.illegal)&&(I.illegal=k(...I.illegal))}function He(I,oe){if(I.match){if(I.begin||I.end)throw new Error("begin & end are not supported with match");I.begin=I.match,delete I.match}}function ft(I,oe){I.relevance===void 0&&(I.relevance=1)}const Tt=(I,oe)=>{if(!I.beforeMatch)return;if(I.starts)throw new Error("beforeMatch cannot be used with starts");const ye=Object.assign({},I);Object.keys(I).forEach(Pe=>{delete I[Pe]}),I.keywords=ye.keywords,I.begin=B(ye.beforeMatch,y(ye.begin)),I.starts={relevance:0,contains:[Object.assign(ye,{endsParent:!0})]},I.relevance=0,delete ye.beforeMatch},fn=["of","and","for","in","not","or","if","then","parent","list","value"],At="keyword";function Mr(I,oe,ye=At){const Pe=Object.create(null);return typeof I=="string"?wt(ye,I.split(" ")):Array.isArray(I)?wt(ye,I):Object.keys(I).forEach(function(Bt){Object.assign(Pe,Mr(I[Bt],oe,Bt))}),Pe;function wt(Bt,we){oe&&(we=we.map(be=>be.toLowerCase())),we.forEach(function(be){const Le=be.split("|");Pe[Le[0]]=[Bt,tn(Le[0],Le[1])]})}}function tn(I,oe){return oe?Number(oe):hl(I)?0:1}function hl(I){return fn.includes(I.toLowerCase())}const Ei={},jt=I=>{console.error(I)},gi=(I,...oe)=>{console.log(`WARN: ${I}`,...oe)},le=(I,oe)=>{Ei[`${I}/${oe}`]||(console.log(`Deprecated as of ${I}. ${oe}`),Ei[`${I}/${oe}`]=!0)},me=new Error;function Oe(I,oe,{key:ye}){let Pe=0;const wt=I[ye],Bt={},we={};for(let be=1;be<=oe.length;be++)we[be+Pe]=wt[be],Bt[be+Pe]=!0,Pe+=R(oe[be-1]);I[ye]=we,I[ye]._emit=Bt,I[ye]._multi=!0}function Ye(I){if(Array.isArray(I.begin)){if(I.skip||I.excludeBegin||I.returnBegin)throw jt("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),me;if(typeof I.beginScope!="object"||I.beginScope===null)throw jt("beginScope must be object"),me;Oe(I,I.begin,{key:"beginScope"}),I.begin=T(I.begin,{joinWith:""})}}function st(I){if(Array.isArray(I.end)){if(I.skip||I.excludeEnd||I.returnEnd)throw jt("skip, excludeEnd, returnEnd not compatible with endScope: {}"),me;if(typeof I.endScope!="object"||I.endScope===null)throw jt("endScope must be object"),me;Oe(I,I.end,{key:"endScope"}),I.end=T(I.end,{joinWith:""})}}function yn(I){I.scope&&typeof I.scope=="object"&&I.scope!==null&&(I.beginScope=I.scope,delete I.scope)}function ur(I){yn(I),typeof I.beginScope=="string"&&(I.beginScope={_wrap:I.beginScope}),typeof I.endScope=="string"&&(I.endScope={_wrap:I.endScope}),Ye(I),st(I)}function rn(I){function oe(we,be){return new RegExp(p(we),"m"+(I.case_insensitive?"i":"")+(I.unicodeRegex?"u":"")+(be?"g":""))}class ye{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(be,Le){Le.position=this.position++,this.matchIndexes[this.matchAt]=Le,this.regexes.push([Le,be]),this.matchAt+=R(be)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const be=this.regexes.map(Le=>Le[1]);this.matcherRe=oe(T(be,{joinWith:"|"}),!0),this.lastIndex=0}exec(be){this.matcherRe.lastIndex=this.lastIndex;const Le=this.matcherRe.exec(be);if(!Le)return null;const It=Le.findIndex((Nr,Ci)=>Ci>0&&Nr!==void 0),Rt=this.matchIndexes[It];return Le.splice(0,It),Object.assign(Le,Rt)}}class Pe{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(be){if(this.multiRegexes[be])return this.multiRegexes[be];const Le=new ye;return this.rules.slice(be).forEach(([It,Rt])=>Le.addRule(It,Rt)),Le.compile(),this.multiRegexes[be]=Le,Le}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(be,Le){this.rules.push([be,Le]),Le.type==="begin"&&this.count++}exec(be){const Le=this.getMatcher(this.regexIndex);Le.lastIndex=this.lastIndex;let It=Le.exec(be);if(this.resumingScanAtSamePosition()&&!(It&&It.index===this.lastIndex)){const Rt=this.getMatcher(0);Rt.lastIndex=this.lastIndex+1,It=Rt.exec(be)}return It&&(this.regexIndex+=It.position+1,this.regexIndex===this.count&&this.considerAll()),It}}function wt(we){const be=new Pe;return we.contains.forEach(Le=>be.addRule(Le.begin,{rule:Le,type:"begin"})),we.terminatorEnd&&be.addRule(we.terminatorEnd,{type:"end"}),we.illegal&&be.addRule(we.illegal,{type:"illegal"}),be}function Bt(we,be){const Le=we;if(we.isCompiled)return Le;[ut,He,ur,Tt].forEach(Rt=>Rt(we,be)),I.compilerExtensions.forEach(Rt=>Rt(we,be)),we.__beforeBegin=null,[bt,ie,ft].forEach(Rt=>Rt(we,be)),we.isCompiled=!0;let It=null;return typeof we.keywords=="object"&&we.keywords.$pattern&&(we.keywords=Object.assign({},we.keywords),It=we.keywords.$pattern,delete we.keywords.$pattern),It=It||/\w+/,we.keywords&&(we.keywords=Mr(we.keywords,I.case_insensitive)),Le.keywordPatternRe=oe(It,!0),be&&(we.begin||(we.begin=/\B|\b/),Le.beginRe=oe(Le.begin),!we.end&&!we.endsWithParent&&(we.end=/\B|\b/),we.end&&(Le.endRe=oe(Le.end)),Le.terminatorEnd=p(Le.end)||"",we.endsWithParent&&be.terminatorEnd&&(Le.terminatorEnd+=(we.end?"|":"")+be.terminatorEnd)),we.illegal&&(Le.illegalRe=oe(we.illegal)),we.contains||(we.contains=[]),we.contains=[].concat(...we.contains.map(function(Rt){return dn(Rt==="self"?we:Rt)})),we.contains.forEach(function(Rt){Bt(Rt,Le)}),we.starts&&Bt(we.starts,be),Le.matcher=wt(Le),Le}if(I.compilerExtensions||(I.compilerExtensions=[]),I.contains&&I.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return I.classNameAliases=i(I.classNameAliases||{}),Bt(I)}function Lt(I){return I?I.endsWithParent||Lt(I.starts):!1}function dn(I){return I.variants&&!I.cachedVariants&&(I.cachedVariants=I.variants.map(function(oe){return i(I,{variants:null},oe)})),I.cachedVariants?I.cachedVariants:Lt(I)?i(I,{starts:I.starts?i(I.starts):null}):Object.isFrozen(I)?i(I):I}var dt="11.11.2";class Er extends Error{constructor(oe,ye){super(oe),this.name="HTMLInjectionError",this.html=ye}}const Cn=a,Vs=i,Pa=Symbol("nomatch"),yi=7,Ua=function(I){const oe=Object.create(null),ye=Object.create(null),Pe=[];let wt=!0;const Bt="Could not find the language '{}', did you forget to load/include a language module?",we={disableAutodetect:!0,name:"Plain text",contains:[]};let be={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:m};function Le(he){return be.noHighlightRe.test(he)}function It(he){let Ne=he.className+" ";Ne+=he.parentNode?he.parentNode.className:"";const Xe=be.languageDetectRe.exec(Ne);if(Xe){const ht=bn(Xe[1]);return ht||(gi(Bt.replace("{}",Xe[1])),gi("Falling back to no-highlight mode for this block.",he)),ht?Xe[1]:"no-highlight"}return Ne.split(/\s+/).find(ht=>Le(ht)||bn(ht))}function Rt(he,Ne,Xe){let ht="",qt="";typeof Ne=="object"?(ht=he,Xe=Ne.ignoreIllegals,qt=Ne.language):(le("10.7.0","highlight(lang, code, ...args) has been deprecated."),le("10.7.0",`Please use highlight(code, options) instead.
|
|
13
|
+
https://github.com/highlightjs/highlight.js/issues/2277`),qt=he,ht=Ne),Xe===void 0&&(Xe=!0);const pn={code:ht,language:qt};Ha("before:highlight",pn);const Pn=pn.result?pn.result:Nr(pn.language,pn.code,Xe);return Pn.code=pn.code,Ha("after:highlight",Pn),Pn}function Nr(he,Ne,Xe,ht){const qt=Object.create(null);function pn(Ee,Se){return Ee.keywords[Se]}function Pn(){if(!ze.keywords){Qt.addText(pt);return}let Ee=0;ze.keywordPatternRe.lastIndex=0;let Se=ze.keywordPatternRe.exec(pt),$e="";for(;Se;){$e+=pt.substring(Ee,Se.index);const nt=an.case_insensitive?Se[0].toLowerCase():Se[0],zt=pn(ze,nt);if(zt){const[Jn,Cl]=zt;if(Qt.addText($e),$e="",qt[nt]=(qt[nt]||0)+1,qt[nt]<=yi&&(ia+=Cl),Jn.startsWith("_"))$e+=Se[0];else{const Ws=an.classNameAliases[Jn]||Jn;Un(Se[0],Ws)}}else $e+=Se[0];Ee=ze.keywordPatternRe.lastIndex,Se=ze.keywordPatternRe.exec(pt)}$e+=pt.substring(Ee),Qt.addText($e)}function Dn(){if(pt==="")return;let Ee=null;if(typeof ze.subLanguage=="string"){if(!oe[ze.subLanguage]){Qt.addText(pt);return}Ee=Nr(ze.subLanguage,pt,!0,Js[ze.subLanguage]),Js[ze.subLanguage]=Ee._top}else Ee=bi(pt,ze.subLanguage.length?ze.subLanguage:null);ze.relevance>0&&(ia+=Ee.relevance),Qt.__addSublanguage(Ee._emitter,Ee.language)}function Ft(){ze.subLanguage!=null?Dn():Pn(),pt=""}function Un(Ee,Se){Ee!==""&&(Qt.startScope(Se),Qt.addText(Ee),Qt.endScope())}function Xs(Ee,Se){let $e=1;const nt=Se.length-1;for(;$e<=nt;){if(!Ee._emit[$e]){$e++;continue}const zt=an.classNameAliases[Ee[$e]]||Ee[$e],Jn=Se[$e];zt?Un(Jn,zt):(pt=Jn,Pn(),pt=""),$e++}}function Bi(Ee,Se){return Ee.scope&&typeof Ee.scope=="string"&&Qt.openNode(an.classNameAliases[Ee.scope]||Ee.scope),Ee.beginScope&&(Ee.beginScope._wrap?(Un(pt,an.classNameAliases[Ee.beginScope._wrap]||Ee.beginScope._wrap),pt=""):Ee.beginScope._multi&&(Xs(Ee.beginScope,Se),pt="")),ze=Object.create(Ee,{parent:{value:ze}}),ze}function El(Ee,Se,$e){let nt=_(Ee.endRe,$e);if(nt){if(Ee["on:end"]){const zt=new n(Ee);Ee["on:end"](Se,zt),zt.isMatchIgnored&&(nt=!1)}if(nt){for(;Ee.endsParent&&Ee.parent;)Ee=Ee.parent;return Ee}}if(Ee.endsWithParent)return El(Ee.parent,Se,$e)}function vi(Ee){return ze.matcher.regexIndex===0?(pt+=Ee[0],1):(la=!0,0)}function X0(Ee){const Se=Ee[0],$e=Ee.rule,nt=new n($e),zt=[$e.__beforeBegin,$e["on:begin"]];for(const Jn of zt)if(Jn&&(Jn(Ee,nt),nt.isMatchIgnored))return vi(Se);return $e.skip?pt+=Se:($e.excludeBegin&&(pt+=Se),Ft(),!$e.returnBegin&&!$e.excludeBegin&&(pt=Se)),Bi($e,Ee),$e.returnBegin?0:Se.length}function Fn(Ee){const Se=Ee[0],$e=Ne.substring(Ee.index),nt=El(ze,Ee,$e);if(!nt)return Pa;const zt=ze;ze.endScope&&ze.endScope._wrap?(Ft(),Un(Se,ze.endScope._wrap)):ze.endScope&&ze.endScope._multi?(Ft(),Xs(ze.endScope,Ee)):zt.skip?pt+=Se:(zt.returnEnd||zt.excludeEnd||(pt+=Se),Ft(),zt.excludeEnd&&(pt=Se));do ze.scope&&Qt.closeNode(),!ze.skip&&!ze.subLanguage&&(ia+=ze.relevance),ze=ze.parent;while(ze!==nt.parent);return nt.starts&&Bi(nt.starts,Ee),zt.returnEnd?0:Se.length}function gl(){const Ee=[];for(let Se=ze;Se!==an;Se=Se.parent)Se.scope&&Ee.unshift(Se.scope);Ee.forEach(Se=>Qt.openNode(Se))}let qa={};function ki(Ee,Se){const $e=Se&&Se[0];if(pt+=Ee,$e==null)return Ft(),0;if(qa.type==="begin"&&Se.type==="end"&&qa.index===Se.index&&$e===""){if(pt+=Ne.slice(Se.index,Se.index+1),!wt){const nt=new Error(`0 width match regex (${he})`);throw nt.languageName=he,nt.badRule=qa.rule,nt}return 1}if(qa=Se,Se.type==="begin")return X0(Se);if(Se.type==="illegal"&&!Xe){const nt=new Error('Illegal lexeme "'+$e+'" for mode "'+(ze.scope||"<unnamed>")+'"');throw nt.mode=ze,nt}else if(Se.type==="end"){const nt=Fn(Se);if(nt!==Pa)return nt}if(Se.type==="illegal"&&$e==="")return Se.index===Ne.length||(pt+=`
|
|
14
|
+
`),1;if(yl>1e5&&yl>Se.index*3)throw new Error("potential infinite loop, way more iterations than matches");return pt+=$e,$e.length}const an=bn(he);if(!an)throw jt(Bt.replace("{}",he)),new Error('Unknown language: "'+he+'"');const Zs=rn(an);let Di="",ze=ht||Zs;const Js={},Qt=new be.__emitter(be);gl();let pt="",ia=0,Or=0,yl=0,la=!1;try{if(an.__emitTokens)an.__emitTokens(Ne,Qt);else{for(ze.matcher.considerAll();;){yl++,la?la=!1:ze.matcher.considerAll(),ze.matcher.lastIndex=Or;const Ee=ze.matcher.exec(Ne);if(!Ee)break;const Se=Ne.substring(Or,Ee.index),$e=ki(Se,Ee);Or=Ee.index+$e}ki(Ne.substring(Or))}return Qt.finalize(),Di=Qt.toHTML(),{language:he,value:Di,relevance:ia,illegal:!1,_emitter:Qt,_top:ze}}catch(Ee){if(Ee.message&&Ee.message.includes("Illegal"))return{language:he,value:Cn(Ne),illegal:!0,relevance:0,_illegalBy:{message:Ee.message,index:Or,context:Ne.slice(Or-100,Or+100),mode:Ee.mode,resultSoFar:Di},_emitter:Qt};if(wt)return{language:he,value:Cn(Ne),illegal:!1,relevance:0,errorRaised:Ee,_emitter:Qt,_top:ze};throw Ee}}function Ci(he){const Ne={value:Cn(he),illegal:!1,relevance:0,_top:we,_emitter:new be.__emitter(be)};return Ne._emitter.addText(he),Ne}function bi(he,Ne){Ne=Ne||be.languages||Object.keys(oe);const Xe=Ci(he),ht=Ne.filter(bn).filter(ra).map(Ft=>Nr(Ft,he,!1));ht.unshift(Xe);const qt=ht.sort((Ft,Un)=>{if(Ft.relevance!==Un.relevance)return Un.relevance-Ft.relevance;if(Ft.language&&Un.language){if(bn(Ft.language).supersetOf===Un.language)return 1;if(bn(Un.language).supersetOf===Ft.language)return-1}return 0}),[pn,Pn]=qt,Dn=pn;return Dn.secondBest=Pn,Dn}function gr(he,Ne,Xe){const ht=Ne&&ye[Ne]||Xe;he.classList.add("hljs"),he.classList.add(`language-${ht}`)}function Ht(he){let Ne=null;const Xe=It(he);if(Le(Xe))return;if(Ha("before:highlightElement",{el:he,language:Xe}),he.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",he);return}if(he.children.length>0&&(be.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(he)),be.throwUnescapedHTML))throw new Er("One of your code blocks includes unescaped HTML.",he.innerHTML);Ne=he;const ht=Ne.textContent,qt=Xe?Rt(ht,{language:Xe,ignoreIllegals:!0}):bi(ht);he.innerHTML=qt.value,he.dataset.highlighted="yes",gr(he,Xe,qt.language),he.result={language:qt.language,re:qt.relevance,relevance:qt.relevance},qt.secondBest&&(he.secondBest={language:qt.secondBest.language,relevance:qt.secondBest.relevance}),Ha("after:highlightElement",{el:he,result:qt,text:ht})}function hn(he){be=Vs(be,he)}const na=()=>{Ai(),le("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function pl(){Ai(),le("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let Qs=!1;function Ai(){function he(){Ai()}if(document.readyState==="loading"){Qs||window.addEventListener("DOMContentLoaded",he,!1),Qs=!0;return}document.querySelectorAll(be.cssSelector).forEach(Ht)}function Ys(he,Ne){let Xe=null;try{Xe=Ne(I)}catch(ht){if(jt("Language definition for '{}' could not be registered.".replace("{}",he)),wt)jt(ht);else throw ht;Xe=we}Xe.name||(Xe.name=he),oe[he]=Xe,Xe.rawDefinition=Ne.bind(null,I),Xe.aliases&&Tr(Xe.aliases,{languageName:he})}function Ia(he){delete oe[he];for(const Ne of Object.keys(ye))ye[Ne]===he&&delete ye[Ne]}function ml(){return Object.keys(oe)}function bn(he){return he=(he||"").toLowerCase(),oe[he]||oe[ye[he]]}function Tr(he,{languageName:Ne}){typeof he=="string"&&(he=[he]),he.forEach(Xe=>{ye[Xe.toLowerCase()]=Ne})}function ra(he){const Ne=bn(he);return Ne&&!Ne.disableAutodetect}function aa(he){he["before:highlightBlock"]&&!he["before:highlightElement"]&&(he["before:highlightElement"]=Ne=>{he["before:highlightBlock"](Object.assign({block:Ne.el},Ne))}),he["after:highlightBlock"]&&!he["after:highlightElement"]&&(he["after:highlightElement"]=Ne=>{he["after:highlightBlock"](Object.assign({block:Ne.el},Ne))})}function Vt(he){aa(he),Pe.push(he)}function Ks(he){const Ne=Pe.indexOf(he);Ne!==-1&&Pe.splice(Ne,1)}function Ha(he,Ne){const Xe=he;Pe.forEach(function(ht){ht[Xe]&&ht[Xe](Ne)})}function Rr(he){return le("10.7.0","highlightBlock will be removed entirely in v12.0"),le("10.7.0","Please use highlightElement now."),Ht(he)}Object.assign(I,{highlight:Rt,highlightAuto:bi,highlightAll:Ai,highlightElement:Ht,highlightBlock:Rr,configure:hn,initHighlighting:na,initHighlightingOnLoad:pl,registerLanguage:Ys,unregisterLanguage:Ia,listLanguages:ml,getLanguage:bn,registerAliases:Tr,autoDetection:ra,inherit:Vs,addPlugin:Vt,removePlugin:Ks}),I.debugMode=function(){wt=!1},I.safeMode=function(){wt=!0},I.versionString=dt,I.regex={concat:B,lookahead:y,either:k,optional:b,anyNumberOfTimes:C};for(const he in ue)typeof ue[he]=="object"&&e(ue[he]);return Object.assign(I,ue),I},kn=Ua({});return kn.newInstance=()=>Ua({}),fu=kn,kn.HighlightJS=kn,kn.default=kn,fu}var LF=zF();const PF=Ls(LF),Hp={},UF="hljs-";function IF(e){const n=PF.newInstance();return e&&c(e),{highlight:a,highlightAuto:i,listLanguages:s,register:c,registerAlias:x,registered:u};function a(f,d,m){const p=m||Hp,y=typeof p.prefix=="string"?p.prefix:UF;if(!n.getLanguage(f))throw new Error("Unknown language: `"+f+"` is not registered");n.configure({__emitter:HF,classPrefix:y});const C=n.highlight(d,{ignoreIllegals:!0,language:f});if(C.errorRaised)throw new Error("Could not highlight with `Highlight.js`",{cause:C.errorRaised});const b=C._emitter.root,B=b.data;return B.language=C.language,B.relevance=C.relevance,b}function i(f,d){const p=(d||Hp).subset||s();let y=-1,C=0,b;for(;++y<p.length;){const B=p[y];if(!n.getLanguage(B))continue;const v=a(B,f,d);v.data&&v.data.relevance!==void 0&&v.data.relevance>C&&(C=v.data.relevance,b=v)}return b||{type:"root",children:[],data:{language:void 0,relevance:C}}}function s(){return n.listLanguages()}function c(f,d){if(typeof f=="string")n.registerLanguage(f,d);else{let m;for(m in f)Object.hasOwn(f,m)&&n.registerLanguage(m,f[m])}}function x(f,d){if(typeof f=="string")n.registerAliases(typeof d=="string"?d:[...d],{languageName:f});else{let m;for(m in f)if(Object.hasOwn(f,m)){const p=f[m];n.registerAliases(typeof p=="string"?p:[...p],{languageName:m})}}}function u(f){return!!n.getLanguage(f)}}class HF{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 qp=IF({bash:uF,css:CF,ini:bF,javascript:DF,json:SF,markdown:_F,python:MF,sql:NF,typescript:RF,xml:OF,yaml:jF}),H2={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"},qF={...H2,shell:"bash",console:"bash",javascript:"javascript",typescript:"typescript",python:"python",yaml:"yaml",json:"json",sql:"sql"},$F={Bash:"bash"};function GF(e){return(e&&$F[e])??null}function VF(e){const n=e.slice(e.lastIndexOf("/")+1),a=n.lastIndexOf(".");return a<1?null:H2[n.slice(a+1).toLowerCase()]??null}function QF(e){const n=e?.match(/(?:^|\s)language-([\w+-]+)/)?.[1];return n?qF[n.toLowerCase()]??null:null}function q2(e,n){return!n||!qp.registered(n)?null:qp.highlight(n,e).children.filter(YF)}function YF(e){return e.type==="element"||e.type==="text"}function KF(e,n){const a=q2(e,n);return a?$2(a):null}function $2(e){const n=[[]];for(const a of e){const i=XF(a);n[n.length-1].push(...i[0]);for(let s=1;s<i.length;s++)n.push(i[s])}return n}function XF(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 $2(n.children).map(a=>a.length?[{...n,children:a}]:[])}function ZF(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 $p(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 JF(e,n,a){const i=Date.parse(n.ts);if(a&&Date.parse(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 Pf({nodes:e}){return g.jsx(g.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 g.jsx("span",{className:Array.isArray(i)?i.join(" "):void 0,children:g.jsx(Pf,{nodes:n.children})},a)})})}const G2=S.memo(function({text:n,language:a}){const i=S.useMemo(()=>q2(n,a),[n,a]);return i?g.jsx(Pf,{nodes:i}):n});var Hs=n8();function WF(e,n){const a={};return(e[e.length-1]===""?[...e,""]:e).join((a.padRight?" ":"")+","+(a.padLeft===!1?"":" ")).trim()}const ew=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,tw=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,nw={};function Gp(e,n){return(nw.jsx?tw:ew).test(e)}const rw=/[ \t\n\f\r]/g;function aw(e){return typeof e=="object"?e.type==="text"?Vp(e.value):!1:Vp(e)}function Vp(e){return e.replace(rw,"")===""}class qs{constructor(n,a,i){this.normal=a,this.property=n,i&&(this.space=i)}}qs.prototype.normal={};qs.prototype.property={};qs.prototype.space=void 0;function V2(e,n){const a={},i={};for(const s of e)Object.assign(a,s.property),Object.assign(i,s.normal);return new qs(a,i,n)}function Wu(e){return e.toLowerCase()}class Ln{constructor(n,a){this.attribute=a,this.property=n}}Ln.prototype.attribute="";Ln.prototype.booleanish=!1;Ln.prototype.boolean=!1;Ln.prototype.commaOrSpaceSeparated=!1;Ln.prototype.commaSeparated=!1;Ln.prototype.defined=!1;Ln.prototype.mustUseProperty=!1;Ln.prototype.number=!1;Ln.prototype.overloadedBoolean=!1;Ln.prototype.property="";Ln.prototype.spaceSeparated=!1;Ln.prototype.space=void 0;let iw=0;const Ie=mi(),Jt=mi(),ef=mi(),pe=mi(),kt=mi(),ui=mi(),Yn=mi();function mi(){return 2**++iw}const tf=Object.freeze(Object.defineProperty({__proto__:null,boolean:Ie,booleanish:Jt,commaOrSpaceSeparated:Yn,commaSeparated:ui,number:pe,overloadedBoolean:ef,spaceSeparated:kt},Symbol.toStringTag,{value:"Module"})),du=Object.keys(tf);class Uf extends Ln{constructor(n,a,i,s){let c=-1;if(super(n,a),Qp(this,"space",s),typeof i=="number")for(;++c<du.length;){const x=du[c];Qp(this,du[c],(i&tf[x])===tf[x])}}}Uf.prototype.defined=!0;function Qp(e,n,a){a&&(e[n]=a)}function fl(e){const n={},a={};for(const[i,s]of Object.entries(e.properties)){const c=new Uf(i,e.transform(e.attributes||{},i),s,e.space);e.mustUseProperty&&e.mustUseProperty.includes(i)&&(c.mustUseProperty=!0),n[i]=c,a[Wu(i)]=i,a[Wu(c.attribute)]=i}return new qs(n,a,e.space)}const Q2=fl({properties:{ariaActiveDescendant:null,ariaAtomic:Jt,ariaAutoComplete:null,ariaBusy:Jt,ariaChecked:Jt,ariaColCount:pe,ariaColIndex:pe,ariaColSpan:pe,ariaControls:kt,ariaCurrent:null,ariaDescribedBy:kt,ariaDetails:null,ariaDisabled:Jt,ariaDropEffect:kt,ariaErrorMessage:null,ariaExpanded:Jt,ariaFlowTo:kt,ariaGrabbed:Jt,ariaHasPopup:null,ariaHidden:Jt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:kt,ariaLevel:pe,ariaLive:null,ariaModal:Jt,ariaMultiLine:Jt,ariaMultiSelectable:Jt,ariaOrientation:null,ariaOwns:kt,ariaPlaceholder:null,ariaPosInSet:pe,ariaPressed:Jt,ariaReadOnly:Jt,ariaRelevant:null,ariaRequired:Jt,ariaRoleDescription:kt,ariaRowCount:pe,ariaRowIndex:pe,ariaRowSpan:pe,ariaSelected:Jt,ariaSetSize:pe,ariaSort:null,ariaValueMax:pe,ariaValueMin:pe,ariaValueNow:pe,ariaValueText:null,role:null},transform(e,n){return n==="role"?n:"aria-"+n.slice(4).toLowerCase()}});function Y2(e,n){return n in e?e[n]:n}function K2(e,n){return Y2(e,n.toLowerCase())}const lw=fl({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:ui,acceptCharset:kt,accessKey:kt,action:null,allow:null,allowFullScreen:Ie,allowPaymentRequest:Ie,allowUserMedia:Ie,alpha:Ie,alt:null,as:null,async:Ie,autoCapitalize:null,autoComplete:kt,autoFocus:Ie,autoPlay:Ie,blocking:kt,capture:null,charSet:null,checked:Ie,cite:null,className:kt,closedBy:null,colorSpace:null,cols:pe,colSpan:pe,command:null,commandFor:null,content:null,contentEditable:Jt,controls:Ie,controlsList:kt,coords:pe|ui,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Ie,defer:Ie,dir:null,dirName:null,disabled:Ie,download:ef,draggable:Jt,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Ie,formTarget:null,headers:kt,height:pe,hidden:ef,high:pe,href:null,hrefLang:null,htmlFor:kt,httpEquiv:kt,id:null,imageSizes:null,imageSrcSet:null,inert:Ie,inputMode:null,integrity:null,is:null,isMap:Ie,itemId:null,itemProp:kt,itemRef:kt,itemScope:Ie,itemType:kt,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Ie,low:pe,manifest:null,max:null,maxLength:pe,media:null,method:null,min:null,minLength:pe,multiple:Ie,muted:Ie,name:null,nonce:null,noModule:Ie,noValidate:Ie,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:Ie,optimum:pe,pattern:null,ping:kt,placeholder:null,playsInline:Ie,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Ie,referrerPolicy:null,rel:kt,required:Ie,reversed:Ie,rows:pe,rowSpan:pe,sandbox:kt,scope:null,scoped:Ie,seamless:Ie,selected:Ie,shadowRootClonable:Ie,shadowRootCustomElementRegistry:Ie,shadowRootDelegatesFocus:Ie,shadowRootMode:null,shadowRootSerializable:Ie,shape:null,size:pe,sizes:null,slot:null,span:pe,spellCheck:Jt,src:null,srcDoc:null,srcLang:null,srcSet:null,start:pe,step:null,style:null,tabIndex:pe,target:null,title:null,translate:null,type:null,typeMustMatch:Ie,useMap:null,value:Jt,width:pe,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:kt,axis:null,background:null,bgColor:null,border:pe,borderColor:null,bottomMargin:pe,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Ie,declare:Ie,event:null,face:null,frame:null,frameBorder:null,hSpace:pe,leftMargin:pe,link:null,longDesc:null,lowSrc:null,marginHeight:pe,marginWidth:pe,noResize:Ie,noHref:Ie,noShade:Ie,noWrap:Ie,object:null,profile:null,prompt:null,rev:null,rightMargin:pe,rules:null,scheme:null,scrolling:Jt,standby:null,summary:null,text:null,topMargin:pe,valueType:null,version:null,vAlign:null,vLink:null,vSpace:pe,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:Ie,disablePictureInPicture:Ie,disableRemotePlayback:Ie,exportParts:ui,part:kt,prefix:null,property:null,results:pe,security:null,unselectable:null},space:"html",transform:K2}),sw=fl({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:Yn,accentHeight:pe,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:pe,amplitude:pe,arabicForm:null,ascent:pe,attributeName:null,attributeType:null,azimuth:pe,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:pe,by:null,calcMode:null,capHeight:pe,className:kt,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:pe,diffuseConstant:pe,direction:null,display:null,dur:null,divisor:pe,dominantBaseline:null,download:Ie,dx:null,dy:null,edgeMode:null,editable:null,elevation:pe,enableBackground:null,end:null,event:null,exponent:pe,externalResourcesRequired:null,fill:null,fillOpacity:pe,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:ui,g2:ui,glyphName:ui,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:pe,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:pe,horizOriginX:pe,horizOriginY:pe,id:null,ideographic:pe,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:pe,k:pe,k1:pe,k2:pe,k3:pe,k4:pe,kernelMatrix:Yn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:pe,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:pe,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:pe,overlineThickness:pe,paintOrder:null,panose1:null,path:null,pathLength:pe,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:kt,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:pe,pointsAtY:pe,pointsAtZ:pe,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Yn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Yn,rev:Yn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Yn,requiredFeatures:Yn,requiredFonts:Yn,requiredFormats:Yn,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:pe,specularExponent:pe,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:pe,strikethroughThickness:pe,string:null,stroke:null,strokeDashArray:Yn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:pe,strokeOpacity:pe,strokeWidth:null,style:null,surfaceScale:pe,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Yn,tabIndex:pe,tableValues:null,target:null,targetX:pe,targetY:pe,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Yn,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:pe,underlineThickness:pe,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:pe,values:null,vAlphabetic:pe,vMathematical:pe,vectorEffect:null,vHanging:pe,vIdeographic:pe,version:null,vertAdvY:pe,vertOriginX:pe,vertOriginY:pe,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:pe,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Y2}),X2=fl({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()}}),Z2=fl({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:K2}),J2=fl({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,n){return"xml:"+n.slice(3).toLowerCase()}}),ow={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"},cw=/[A-Z]/g,Yp=/-[a-z]/g,xw=/^data[-\w.:]+$/i;function uw(e,n){const a=Wu(n);let i=n,s=Ln;if(a in e.normal)return e.property[e.normal[a]];if(a.length>4&&a.slice(0,4)==="data"&&xw.test(n)){if(n.charAt(4)==="-"){const c=n.slice(5).replace(Yp,dw);i="data"+c.charAt(0).toUpperCase()+c.slice(1)}else{const c=n.slice(4);if(!Yp.test(c)){let x=c.replace(cw,fw);x.charAt(0)!=="-"&&(x="-"+x),n="data"+x}}s=Uf}return new s(i,n)}function fw(e){return"-"+e.toLowerCase()}function dw(e){return e.charAt(1).toUpperCase()}const hw=V2([Q2,lw,X2,Z2,J2],"html"),If=V2([Q2,sw,X2,Z2,J2],"svg");function pw(e){return e.join(" ").trim()}var al={},hu,Kp;function mw(){if(Kp)return hu;Kp=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,a=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,s=/^:\s*/,c=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,x=/^[;\s]*/,u=/^\s+|\s+$/g,f=`
|
|
16
|
+
`,d="/",m="*",p="",y="comment",C="declaration";function b(v,k){if(typeof v!="string")throw new TypeError("First argument must be a string");if(!v)return[];k=k||{};var R=1,_=1;function N(Z){var Q=Z.match(n);Q&&(R+=Q.length);var U=Z.lastIndexOf(f);_=~U?Z.length-U:_+Z.length}function T(){var Z={line:R,column:_};return function(Q){return Q.position=new F(Z),$(),Q}}function F(Z){this.start=Z,this.end={line:R,column:_},this.source=k.source}F.prototype.content=v;function O(Z){var Q=new Error(k.source+":"+R+":"+_+": "+Z);if(Q.reason=Z,Q.filename=k.source,Q.line=R,Q.column=_,Q.source=v,!k.silent)throw Q}function L(Z){var Q=Z.exec(v);if(Q){var U=Q[0];return N(U),v=v.slice(U.length),Q}}function $(){L(a)}function z(Z){var Q;for(Z=Z||[];Q=X();)Q!==!1&&Z.push(Q);return Z}function X(){var Z=T();if(!(d!=v.charAt(0)||m!=v.charAt(1))){for(var Q=2;p!=v.charAt(Q)&&(m!=v.charAt(Q)||d!=v.charAt(Q+1));)++Q;if(Q+=2,p===v.charAt(Q-1))return O("End of comment missing");var U=v.slice(2,Q-2);return _+=2,N(U),v=v.slice(Q),_+=2,Z({type:y,comment:U})}}function K(){var Z=T(),Q=L(i);if(Q){if(X(),!L(s))return O("property missing ':'");var U=L(c),H=Z({type:C,property:B(Q[0].replace(e,p)),value:U?B(U[0].replace(e,p)):p});return L(x),H}}function V(){var Z=[];z(Z);for(var Q;Q=K();)Q!==!1&&(Z.push(Q),z(Z));return Z}return $(),V()}function B(v){return v?v.replace(u,p):p}return hu=b,hu}var Xp;function Ew(){if(Xp)return al;Xp=1;var e=al&&al.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(al,"__esModule",{value:!0}),al.default=a;const n=e(mw());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(f=>{if(f.type!=="declaration")return;const{property:d,value:m}=f;u?s(d,m,f):m&&(c=c||{},c[d]=m)}),c}return al}var hs={},Zp;function gw(){if(Zp)return hs;Zp=1,Object.defineProperty(hs,"__esModule",{value:!0}),hs.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,n=/-([a-z])/g,a=/^[^-]+$/,i=/^-(webkit|moz|ms|o|khtml)-/,s=/^-(ms)-/,c=function(d){return!d||a.test(d)||e.test(d)},x=function(d,m){return m.toUpperCase()},u=function(d,m){return"".concat(m,"-")},f=function(d,m){return m===void 0&&(m={}),c(d)?d:(d=d.toLowerCase(),m.reactCompat?d=d.replace(s,u):d=d.replace(i,u),d.replace(n,x))};return hs.camelCase=f,hs}var ps,Jp;function yw(){if(Jp)return ps;Jp=1;var e=ps&&ps.__importDefault||function(s){return s&&s.__esModule?s:{default:s}},n=e(Ew()),a=gw();function i(s,c){var x={};return!s||typeof s!="string"||(0,n.default)(s,function(u,f){u&&f&&(x[(0,a.camelCase)(u,c)]=f)}),x}return i.default=i,ps=i,ps}var Cw=yw();const bw=Ls(Cw),W2=eE("end"),Hf=eE("start");function eE(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 Aw(e){const n=Hf(e),a=W2(e);if(n&&a)return{start:n,end:a}}function Bs(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Wp(e.position):"start"in e||"end"in e?Wp(e):"line"in e||"column"in e?nf(e):""}function nf(e){return em(e&&e.line)+":"+em(e&&e.column)}function Wp(e){return nf(e&&e.start)+"-"+nf(e&&e.end)}function em(e){return e&&typeof e=="number"?e:1}class gn 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 f=i.indexOf(":");f===-1?c.ruleId=i:(c.source=i.slice(0,f),c.ruleId=i.slice(f+1))}if(!c.place&&c.ancestors&&c.ancestors){const f=c.ancestors[c.ancestors.length-1];f&&(c.place=f.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=Bs(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}}gn.prototype.file="";gn.prototype.name="";gn.prototype.reason="";gn.prototype.message="";gn.prototype.stack="";gn.prototype.column=void 0;gn.prototype.line=void 0;gn.prototype.ancestors=void 0;gn.prototype.cause=void 0;gn.prototype.fatal=void 0;gn.prototype.place=void 0;gn.prototype.ruleId=void 0;gn.prototype.source=void 0;const qf={}.hasOwnProperty,Bw=new Map,vw=/[A-Z]/g,kw=new Set(["table","tbody","thead","tfoot","tr"]),Dw=new Set(["td","th"]),tE="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Fw(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=Ow(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=Rw(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"?If:hw,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 ww(e,n,a);if(n.type==="mdxFlowExpression"||n.type==="mdxTextExpression")return Sw(e,n);if(n.type==="mdxJsxFlowElement"||n.type==="mdxJsxTextElement")return Mw(e,n,a);if(n.type==="mdxjsEsm")return _w(e,n);if(n.type==="root")return Nw(e,n,a);if(n.type==="text")return Tw(e,n)}function ww(e,n,a){const i=e.schema;let s=i;n.tagName.toLowerCase()==="svg"&&i.space==="html"&&(s=If,e.schema=s),e.ancestors.push(n);const c=aE(e,n.tagName,!1),x=jw(e,n);let u=Gf(e,n);return kw.has(n.tagName)&&(u=u.filter(function(f){return typeof f=="string"?!aw(f):!0})),rE(e,x,c,n),$f(x,u),e.ancestors.pop(),e.schema=i,e.create(n,c,x,a)}function Sw(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)}Rs(e,n.position)}function _w(e,n){if(n.data&&n.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(n.data.estree);Rs(e,n.position)}function Mw(e,n,a){const i=e.schema;let s=i;n.name==="svg"&&i.space==="html"&&(s=If,e.schema=s),e.ancestors.push(n);const c=n.name===null?e.Fragment:aE(e,n.name,!0),x=zw(e,n),u=Gf(e,n);return rE(e,x,c,n),$f(x,u),e.ancestors.pop(),e.schema=i,e.create(n,c,x,a)}function Nw(e,n,a){const i={};return $f(i,Gf(e,n)),e.create(n,e.Fragment,i,a)}function Tw(e,n){return n.value}function rE(e,n,a,i){typeof a!="string"&&a!==e.Fragment&&e.passNode&&(n.node=i)}function $f(e,n){if(n.length>0){const a=n.length>1?n:n[0];a&&(e.children=a)}}function Rw(e,n,a){return i;function i(s,c,x,u){const d=Array.isArray(x.children)?a:n;return u?d(c,x,u):d(c,x)}}function Ow(e,n){return a;function a(i,s,c,x){const u=Array.isArray(c.children),f=Hf(i);return n(s,c,x,u,{columnNumber:f?f.column-1:void 0,fileName:e,lineNumber:f?f.line:void 0},void 0)}}function jw(e,n){const a={};let i,s;for(s in n.properties)if(s!=="children"&&qf.call(n.properties,s)){const c=Lw(e,s,n.properties[s]);if(c){const[x,u]=c;e.tableCellAlignToStyle&&x==="align"&&typeof u=="string"&&Dw.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 zw(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 Rs(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 Rs(e,n.position);else c=i.value===null?!0:i.value;a[s]=c}return a}function Gf(e,n){const a=[];let i=-1;const s=e.passKeys?new Map:Bw;for(;++i<n.children.length;){const c=n.children[i];let x;if(e.passKeys){const f=c.type==="element"?c.tagName:c.type==="mdxJsxFlowElement"||c.type==="mdxJsxTextElement"?c.name:void 0;if(f){const d=s.get(f)||0;x=f+"-"+d,s.set(f,d+1)}}const u=nE(e,c,x);u!==void 0&&a.push(u)}return a}function Lw(e,n,a){const i=uw(e.schema,n);if(!(a==null||typeof a=="number"&&Number.isNaN(a))){if(Array.isArray(a)&&(a=i.commaSeparated?WF(a):pw(a)),i.property==="style"){let s=typeof a=="object"?a:Pw(e,String(a));return e.stylePropertyNameCase==="css"&&(s=Uw(s)),["style",s]}return[e.elementAttributeNameCase==="react"&&i.space?ow[i.property]||i.property:i.attribute,a]}}function Pw(e,n){try{return bw(n,{reactCompat:!0})}catch(a){if(e.ignoreInvalidStyle)return{};const i=a,s=new gn("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=tE+"#cannot-parse-style-attribute",s}}function aE(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=Gp(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=Gp(n)&&!/^[a-z]/.test(n)?{type:"Identifier",name:n}:{type:"Literal",value:n};if(i.type==="Literal"){const s=i.value;return qf.call(e.components,s)?e.components[s]:s}if(e.evaluater)return e.evaluater.evaluateExpression(i);Rs(e)}function Rs(e,n){const a=new gn("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=tE+"#cannot-handle-mdx-estrees-without-createevaluater",a}function Uw(e){const n={};let a;for(a in e)qf.call(e,a)&&(n[Iw(a)]=e[a]);return n}function Iw(e){let n=e.replace(vw,Hw);return n.slice(0,3)==="ms-"&&(n="-"+n),n}function Hw(e){return"-"+e.toLowerCase()}const pu={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"]},qw={};function Vf(e,n){const a=qw,i=typeof a.includeImageAlt=="boolean"?a.includeImageAlt:!0,s=typeof a.includeHtml=="boolean"?a.includeHtml:!0;return iE(e,i,s)}function iE(e,n,a){if($w(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 tm(e.children,n,a)}return Array.isArray(e)?tm(e,n,a):""}function tm(e,n,a){const i=[];let s=-1;for(;++s<e.length;)i[s]=iE(e[s],n,a);return i.join("")}function $w(e){return!!(e&&typeof e=="object")}const nm=document.createElement("i");function Qf(e){const n="&"+e+";";nm.innerHTML=n;const a=nm.textContent;return a.charCodeAt(a.length-1)===59&&e!=="semi"||a===n?!1:a}function Xn(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 sr(e,n){return e.length>0?(Xn(e,e.length,0,n),e):n}const rm={}.hasOwnProperty;function lE(e){const n={};let a=-1;for(;++a<e.length;)Gw(n,e[a]);return n}function Gw(e,n){let a;for(a in n){const s=(rm.call(e,a)?e[a]:void 0)||(e[a]={}),c=n[a];let x;if(c)for(x in c){rm.call(s,x)||(s[x]=[]);const u=c[x];Vw(s[x],Array.isArray(u)?u:u?[u]:[])}}}function Vw(e,n){let a=-1;const i=[];for(;++a<n.length;)(n[a].add==="after"?e:i).push(n[a]);Xn(e,0,0,i)}function sE(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 mr(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Bn=La(/[A-Za-z]/),En=La(/[\dA-Za-z]/),Qw=La(/[#-'*+\--9=?A-Z^-~]/);function O0(e){return e!==null&&(e<32||e===127)}const rf=La(/\d/),Yw=La(/[\dA-Fa-f]/),Kw=La(/[!-/:-@[-`{-~]/);function Re(e){return e!==null&&e<-2}function Dt(e){return e!==null&&(e<0||e===32)}function tt(e){return e===-2||e===-1||e===32}const G0=La(new RegExp("\\p{P}|\\p{S}","u")),di=La(/\s/);function La(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&&En(e.charCodeAt(a+1))&&En(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 lt(e,n,a,i){const s=i?i-1:Number.POSITIVE_INFINITY;let c=0;return x;function x(f){return tt(f)?(e.enter(a),u(f)):n(f)}function u(f){return tt(f)&&c++<s?(e.consume(f),u):(e.exit(a),n(f))}}const Xw={tokenize:Zw};function Zw(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"),lt(e,n,"linePrefix")}function s(u){return e.enter("paragraph"),c(u)}function c(u){const f=e.enter("chunkText",{contentType:"text",previous:a});return a&&(a.next=f),a=f,x(u)}function x(u){if(u===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(u);return}return Re(u)?(e.consume(u),e.exit("chunkText"),c):(e.consume(u),x)}}const Jw={tokenize:Ww},am={tokenize:eS};function Ww(e){const n=this,a=[];let i=0,s,c,x;return u;function u(_){if(i<a.length){const N=a[i];return n.containerState=N[1],e.attempt(N[0].continuation,f,d)(_)}return d(_)}function f(_){if(i++,n.containerState._closeFlow){n.containerState._closeFlow=void 0,s&&R();const N=n.events.length;let T=N,F;for(;T--;)if(n.events[T][0]==="exit"&&n.events[T][1].type==="chunkFlow"){F=n.events[T][1].end;break}k(i);let O=N;for(;O<n.events.length;)n.events[O][1].end={...F},O++;return Xn(n.events,T+1,0,n.events.slice(N)),n.events.length=O,d(_)}return u(_)}function d(_){if(i===a.length){if(!s)return y(_);if(s.currentConstruct&&s.currentConstruct.concrete)return b(_);n.interrupt=!!(s.currentConstruct&&!s._gfmTableDynamicInterruptHack)}return n.containerState={},e.check(am,m,p)(_)}function m(_){return s&&R(),k(i),y(_)}function p(_){return n.parser.lazy[n.now().line]=i!==a.length,x=n.now().offset,b(_)}function y(_){return n.containerState={},e.attempt(am,C,b)(_)}function C(_){return i++,a.push([n.currentConstruct,n.containerState]),y(_)}function b(_){if(_===null){s&&R(),k(0),e.consume(_);return}return s=s||n.parser.flow(n.now()),e.enter("chunkFlow",{_tokenizer:s,contentType:"flow",previous:c}),B(_)}function B(_){if(_===null){v(e.exit("chunkFlow"),!0),k(0),e.consume(_);return}return Re(_)?(e.consume(_),v(e.exit("chunkFlow")),i=0,n.interrupt=void 0,u):(e.consume(_),B)}function v(_,N){const T=n.sliceStream(_);if(N&&T.push(null),_.previous=c,c&&(c.next=_),c=_,s.defineSkip(_.start),s.write(T),n.parser.lazy[_.start.line]){let F=s.events.length;for(;F--;)if(s.events[F][1].start.offset<x&&(!s.events[F][1].end||s.events[F][1].end.offset>x))return;const O=n.events.length;let L=O,$,z;for(;L--;)if(n.events[L][0]==="exit"&&n.events[L][1].type==="chunkFlow"){if($){z=n.events[L][1].end;break}$=!0}for(k(i),F=O;F<n.events.length;)n.events[F][1].end={...z},F++;Xn(n.events,L+1,0,n.events.slice(O)),n.events.length=F}}function k(_){let N=a.length;for(;N-- >_;){const T=a[N];n.containerState=T[1],T[0].exit.call(n,e)}a.length=_}function R(){s.write([null]),c=void 0,s=void 0,n.containerState._closeFlow=void 0}}function eS(e,n,a){return lt(e,e.attempt(this.parser.constructs.document,n,a),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function ll(e){if(e===null||Dt(e)||di(e))return 1;if(G0(e))return 2}function V0(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 af={name:"attention",resolveAll:tS,tokenize:nS};function tS(e,n){let a=-1,i,s,c,x,u,f,d,m;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;f=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};im(p,-f),im(y,f),x={type:f>1?"strongSequence":"emphasisSequence",start:p,end:{...e[i][1].end}},u={type:f>1?"strongSequence":"emphasisSequence",start:{...e[a][1].start},end:y},c={type:f>1?"strongText":"emphasisText",start:{...e[i][1].end},end:{...e[a][1].start}},s={type:f>1?"strong":"emphasis",start:{...x.start},end:{...u.end}},e[i][1].end={...x.start},e[a][1].start={...u.end},d=[],e[i][1].end.offset-e[i][1].start.offset&&(d=sr(d,[["enter",e[i][1],n],["exit",e[i][1],n]])),d=sr(d,[["enter",s,n],["enter",x,n],["exit",x,n],["enter",c,n]]),d=sr(d,V0(n.parser.constructs.insideSpan.null,e.slice(i+1,a),n)),d=sr(d,[["exit",c,n],["enter",u,n],["exit",u,n],["exit",s,n]]),e[a][1].end.offset-e[a][1].start.offset?(m=2,d=sr(d,[["enter",e[a][1],n],["exit",e[a][1],n]])):m=0,Xn(e,i-1,a-i+3,d),a=i+d.length-m-2;break}}for(a=-1;++a<e.length;)e[a][1].type==="attentionSequence"&&(e[a][1].type="data");return e}function nS(e,n){const a=this.parser.constructs.attentionMarkers.null,i=this.previous,s=ll(i);let c;return x;function x(f){return c=f,e.enter("attentionSequence"),u(f)}function u(f){if(f===c)return e.consume(f),u;const d=e.exit("attentionSequence"),m=ll(f),p=!m||m===2&&s||a.includes(f),y=!s||s===2&&m||a.includes(i);return d._open=!!(c===42?p:p&&(s||!y)),d._close=!!(c===42?y:y&&(m||!p)),n(f)}}function im(e,n){e.column+=n,e.offset+=n,e._bufferIndex+=n}const rS={name:"autolink",tokenize:aS};function aS(e,n,a){let i=0;return s;function s(C){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(C),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),c}function c(C){return Bn(C)?(e.consume(C),x):C===64?a(C):d(C)}function x(C){return C===43||C===45||C===46||En(C)?(i=1,u(C)):d(C)}function u(C){return C===58?(e.consume(C),i=0,f):(C===43||C===45||C===46||En(C))&&i++<32?(e.consume(C),u):(i=0,d(C))}function f(C){return C===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(C),e.exit("autolinkMarker"),e.exit("autolink"),n):C===null||C===32||C===60||O0(C)?a(C):(e.consume(C),f)}function d(C){return C===64?(e.consume(C),m):Qw(C)?(e.consume(C),d):a(C)}function m(C){return En(C)?p(C):a(C)}function p(C){return C===46?(e.consume(C),i=0,m):C===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(C),e.exit("autolinkMarker"),e.exit("autolink"),n):y(C)}function y(C){if((C===45||En(C))&&i++<63){const b=C===45?y:p;return e.consume(C),b}return a(C)}}const $s={partial:!0,tokenize:iS};function iS(e,n,a){return i;function i(c){return tt(c)?lt(e,s,"linePrefix")(c):s(c)}function s(c){return c===null||Re(c)?n(c):a(c)}}const oE={continuation:{tokenize:sS},exit:oS,name:"blockQuote",tokenize:lS};function lS(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 tt(x)?(e.enter("blockQuotePrefixWhitespace"),e.consume(x),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),n):(e.exit("blockQuotePrefix"),n(x))}}function sS(e,n,a){const i=this;return s;function s(x){return tt(x)?lt(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 oS(e){e.exit("blockQuote")}const cE={name:"characterEscape",tokenize:cS};function cS(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 Kw(c)?(e.enter("characterEscapeValue"),e.consume(c),e.exit("characterEscapeValue"),e.exit("characterEscape"),n):a(c)}}const xE={name:"characterReference",tokenize:xS};function xS(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"),f}function f(p){return p===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(p),e.exit("characterReferenceMarkerNumeric"),d):(e.enter("characterReferenceValue"),c=31,x=En,m(p))}function d(p){return p===88||p===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(p),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),c=6,x=Yw,m):(e.enter("characterReferenceValue"),c=7,x=rf,m(p))}function m(p){if(p===59&&s){const y=e.exit("characterReferenceValue");return x===En&&!Qf(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),m):a(p)}}const lm={partial:!0,tokenize:fS},sm={concrete:!0,name:"codeFenced",tokenize:uS};function uS(e,n,a){const i=this,s={partial:!0,tokenize:T};let c=0,x=0,u;return f;function f(F){return d(F)}function d(F){const O=i.events[i.events.length-1];return c=O&&O[1].type==="linePrefix"?O[2].sliceSerialize(O[1],!0).length:0,u=F,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),m(F)}function m(F){return F===u?(x++,e.consume(F),m):x<3?a(F):(e.exit("codeFencedFenceSequence"),tt(F)?lt(e,p,"whitespace")(F):p(F))}function p(F){return F===null||Re(F)?(e.exit("codeFencedFence"),i.interrupt?n(F):e.check(lm,B,N)(F)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),y(F))}function y(F){return F===null||Re(F)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),p(F)):tt(F)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),lt(e,C,"whitespace")(F)):F===96&&F===u?a(F):(e.consume(F),y)}function C(F){return F===null||Re(F)?p(F):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),b(F))}function b(F){return F===null||Re(F)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),p(F)):F===96&&F===u?a(F):(e.consume(F),b)}function B(F){return e.attempt(s,N,v)(F)}function v(F){return e.enter("lineEnding"),e.consume(F),e.exit("lineEnding"),k}function k(F){return c>0&&tt(F)?lt(e,R,"linePrefix",c+1)(F):R(F)}function R(F){return F===null||Re(F)?e.check(lm,B,N)(F):(e.enter("codeFlowValue"),_(F))}function _(F){return F===null||Re(F)?(e.exit("codeFlowValue"),R(F)):(e.consume(F),_)}function N(F){return e.exit("codeFenced"),n(F)}function T(F,O,L){let $=0;return z;function z(Q){return F.enter("lineEnding"),F.consume(Q),F.exit("lineEnding"),X}function X(Q){return F.enter("codeFencedFence"),tt(Q)?lt(F,K,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(Q):K(Q)}function K(Q){return Q===u?(F.enter("codeFencedFenceSequence"),V(Q)):L(Q)}function V(Q){return Q===u?($++,F.consume(Q),V):$>=x?(F.exit("codeFencedFenceSequence"),tt(Q)?lt(F,Z,"whitespace")(Q):Z(Q)):L(Q)}function Z(Q){return Q===null||Re(Q)?(F.exit("codeFencedFence"),O(Q)):L(Q)}}}function fS(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 mu={name:"codeIndented",tokenize:hS},dS={partial:!0,tokenize:pS};function hS(e,n,a){const i=this;return s;function s(d){return e.enter("codeIndented"),lt(e,c,"linePrefix",5)(d)}function c(d){const m=i.events[i.events.length-1];return m&&m[1].type==="linePrefix"&&m[2].sliceSerialize(m[1],!0).length>=4?x(d):a(d)}function x(d){return d===null?f(d):Re(d)?e.attempt(dS,x,f)(d):(e.enter("codeFlowValue"),u(d))}function u(d){return d===null||Re(d)?(e.exit("codeFlowValue"),x(d)):(e.consume(d),u)}function f(d){return e.exit("codeIndented"),n(d)}}function pS(e,n,a){const i=this;return s;function s(x){return i.parser.lazy[i.now().line]?a(x):Re(x)?(e.enter("lineEnding"),e.consume(x),e.exit("lineEnding"),s):lt(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):Re(x)?s(x):a(x)}}const mS={name:"codeText",previous:gS,resolve:ES,tokenize:yS};function ES(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 gS(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function yS(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"),f(p))}function f(p){return p===null?a(p):p===32?(e.enter("space"),e.consume(p),e.exit("space"),f):p===96?(c=e.enter("codeTextSequence"),s=0,m(p)):Re(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),f):(e.enter("codeTextData"),d(p))}function d(p){return p===null||p===32||p===96||Re(p)?(e.exit("codeTextData"),f(p)):(e.consume(p),d)}function m(p){return p===96?(e.consume(p),s++,m):s===i?(e.exit("codeTextSequence"),e.exit("codeText"),n(p)):(c.type="codeTextData",d(p))}}class CS{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&&ms(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),ms(this.left,n)}unshift(n){this.setCursor(0),this.right.push(n)}unshiftMany(n){this.setCursor(0),ms(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);ms(this.right,a.reverse())}else{const a=this.right.splice(this.left.length+this.right.length-n,Number.POSITIVE_INFINITY);ms(this.left,a.reverse())}}}function ms(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 uE(e){const n={};let a=-1,i,s,c,x,u,f,d;const m=new CS(e);for(;++a<m.length;){for(;a in n;)a=n[a];if(i=m.get(a),a&&i[1].type==="chunkFlow"&&m.get(a-1)[1].type==="listItemPrefix"&&(f=i[1]._tokenizer.events,c=0,c<f.length&&f[c][1].type==="lineEndingBlank"&&(c+=2),c<f.length&&f[c][1].type==="content"))for(;++c<f.length&&f[c][1].type!=="content";)f[c][1].type==="chunkText"&&(f[c][1]._isInFirstContentOfListItem=!0,c++);if(i[0]==="enter")i[1].contentType&&(Object.assign(n,bS(m,a)),a=n[a],d=!0);else if(i[1]._container){for(c=a,s=void 0;c--;)if(x=m.get(c),x[1].type==="lineEnding"||x[1].type==="lineEndingBlank")x[0]==="enter"&&(s&&(m.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={...m.get(s)[1].start},u=m.slice(s,a),u.unshift(i),m.splice(s,a-s+1,u))}}return Xn(e,0,Number.POSITIVE_INFINITY,m.slice(0)),!d}function bS(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,f=[],d={};let m,p,y=-1,C=a,b=0,B=0;const v=[B];for(;C;){for(;e.get(++s)[1]!==C;);c.push(s),C._tokenizer||(m=i.sliceStream(C),C.next||m.push(null),p&&x.defineSkip(C.start),C._isInFirstContentOfListItem&&(x._gfmTasklistFirstContentOfListItem=!0),x.write(m),C._isInFirstContentOfListItem&&(x._gfmTasklistFirstContentOfListItem=void 0)),p=C,C=C.next}for(C=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&&(B=y+1,v.push(B),C._tokenizer=void 0,C.previous=void 0,C=C.next);for(x.events=[],C?(C._tokenizer=void 0,C.previous=void 0):v.pop(),y=v.length;y--;){const k=u.slice(v[y],v[y+1]),R=c.pop();f.push([R,R+k.length-1]),e.splice(R,2,k)}for(f.reverse(),y=-1;++y<f.length;)d[b+f[y][0]]=b+f[y][1],b+=f[y][1]-f[y][0]-1;return d}const AS={resolve:vS,tokenize:kS},BS={partial:!0,tokenize:DS};function vS(e){return uE(e),e}function kS(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):Re(u)?e.check(BS,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 DS(e,n,a){const i=this;return s;function s(x){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(x),e.exit("lineEnding"),lt(e,c,"linePrefix")}function c(x){if(x===null||Re(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 fE(e,n,a,i,s,c,x,u,f){const d=f||Number.POSITIVE_INFINITY;let m=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||O0(k)?a(k):(e.enter(i),e.enter(x),e.enter(u),e.enter("chunkString",{contentType:"string"}),B(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"}),C(k))}function C(k){return k===62?(e.exit("chunkString"),e.exit(u),y(k)):k===null||k===60||Re(k)?a(k):(e.consume(k),k===92?b:C)}function b(k){return k===60||k===62||k===92?(e.consume(k),C):C(k)}function B(k){return!m&&(k===null||k===41||Dt(k))?(e.exit("chunkString"),e.exit(u),e.exit(x),e.exit(i),n(k)):m<d&&k===40?(e.consume(k),m++,B):k===41?(e.consume(k),m--,B):k===null||k===32||k===40||O0(k)?a(k):(e.consume(k),k===92?v:B)}function v(k){return k===40||k===41||k===92?(e.consume(k),B):B(k)}}function dE(e,n,a,i,s,c){const x=this;let u=0,f;return d;function d(C){return e.enter(i),e.enter(s),e.consume(C),e.exit(s),e.enter(c),m}function m(C){return u>999||C===null||C===91||C===93&&!f||C===94&&!u&&"_hiddenFootnoteSupport"in x.parser.constructs?a(C):C===93?(e.exit(c),e.enter(s),e.consume(C),e.exit(s),e.exit(i),n):Re(C)?(e.enter("lineEnding"),e.consume(C),e.exit("lineEnding"),m):(e.enter("chunkString",{contentType:"string"}),p(C))}function p(C){return C===null||C===91||C===93||Re(C)||u++>999?(e.exit("chunkString"),m(C)):(e.consume(C),f||(f=!tt(C)),C===92?y:p)}function y(C){return C===91||C===92||C===93?(e.consume(C),u++,p):p(C)}}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,f):a(y)}function f(y){return y===x?(e.enter(s),e.consume(y),e.exit(s),e.exit(i),n):(e.enter(c),d(y))}function d(y){return y===x?(e.exit(c),f(x)):y===null?a(y):Re(y)?(e.enter("lineEnding"),e.consume(y),e.exit("lineEnding"),lt(e,d,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),m(y))}function m(y){return y===x||y===null||Re(y)?(e.exit("chunkString"),d(y)):(e.consume(y),y===92?p:m)}function p(y){return y===x||y===92?(e.consume(y),m):m(y)}}function vs(e,n){let a;return i;function i(s){return Re(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),a=!0,i):tt(s)?lt(e,i,a?"linePrefix":"lineSuffix")(s):n(s)}}const FS={name:"definition",tokenize:SS},wS={partial:!0,tokenize:_S};function SS(e,n,a){const i=this;let s;return c;function c(C){return e.enter("definition"),x(C)}function x(C){return dE.call(i,e,u,a,"definitionLabel","definitionLabelMarker","definitionLabelString")(C)}function u(C){return s=mr(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)),C===58?(e.enter("definitionMarker"),e.consume(C),e.exit("definitionMarker"),f):a(C)}function f(C){return Dt(C)?vs(e,d)(C):d(C)}function d(C){return fE(e,m,a,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(C)}function m(C){return e.attempt(wS,p,p)(C)}function p(C){return tt(C)?lt(e,y,"whitespace")(C):y(C)}function y(C){return C===null||Re(C)?(e.exit("definition"),i.parser.defined.push(s),n(C)):a(C)}}function _S(e,n,a){return i;function i(u){return Dt(u)?vs(e,s)(u):a(u)}function s(u){return hE(e,c,a,"definitionTitle","definitionTitleMarker","definitionTitleString")(u)}function c(u){return tt(u)?lt(e,x,"whitespace")(u):x(u)}function x(u){return u===null||Re(u)?n(u):a(u)}}const MS={name:"hardBreakEscape",tokenize:NS};function NS(e,n,a){return i;function i(c){return e.enter("hardBreakEscape"),e.consume(c),s}function s(c){return Re(c)?(e.exit("hardBreakEscape"),n(c)):a(c)}}const TS={name:"headingAtx",resolve:RS,tokenize:OS};function RS(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"},Xn(e,i,a-i+1,[["enter",s,n],["enter",c,n],["exit",c,n],["exit",s,n]])),e}function OS(e,n,a){let i=0;return s;function s(m){return e.enter("atxHeading"),c(m)}function c(m){return e.enter("atxHeadingSequence"),x(m)}function x(m){return m===35&&i++<6?(e.consume(m),x):m===null||Dt(m)?(e.exit("atxHeadingSequence"),u(m)):a(m)}function u(m){return m===35?(e.enter("atxHeadingSequence"),f(m)):m===null||Re(m)?(e.exit("atxHeading"),n(m)):tt(m)?lt(e,u,"whitespace")(m):(e.enter("atxHeadingText"),d(m))}function f(m){return m===35?(e.consume(m),f):(e.exit("atxHeadingSequence"),u(m))}function d(m){return m===null||m===35||Dt(m)?(e.exit("atxHeadingText"),u(m)):(e.consume(m),d)}}const jS=["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"],om=["pre","script","style","textarea"],zS={concrete:!0,name:"htmlFlow",resolveTo:US,tokenize:IS},LS={partial:!0,tokenize:qS},PS={partial:!0,tokenize:HS};function US(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 IS(e,n,a){const i=this;let s,c,x,u,f;return d;function d(M){return m(M)}function m(M){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(M),p}function p(M){return M===33?(e.consume(M),y):M===47?(e.consume(M),c=!0,B):M===63?(e.consume(M),s=3,i.interrupt?n:w):Bn(M)?(e.consume(M),x=String.fromCharCode(M),v):a(M)}function y(M){return M===45?(e.consume(M),s=2,C):M===91?(e.consume(M),s=5,u=0,b):Bn(M)?(e.consume(M),s=4,i.interrupt?n:w):a(M)}function C(M){return M===45?(e.consume(M),i.interrupt?n:w):a(M)}function b(M){const te="CDATA[";return M===te.charCodeAt(u++)?(e.consume(M),u===te.length?i.interrupt?n:K:b):a(M)}function B(M){return Bn(M)?(e.consume(M),x=String.fromCharCode(M),v):a(M)}function v(M){if(M===null||M===47||M===62||Dt(M)){const te=M===47,ge=x.toLowerCase();return!te&&!c&&om.includes(ge)?(s=1,i.interrupt?n(M):K(M)):jS.includes(x.toLowerCase())?(s=6,te?(e.consume(M),k):i.interrupt?n(M):K(M)):(s=7,i.interrupt&&!i.parser.lazy[i.now().line]?a(M):c?R(M):_(M))}return M===45||En(M)?(e.consume(M),x+=String.fromCharCode(M),v):a(M)}function k(M){return M===62?(e.consume(M),i.interrupt?n:K):a(M)}function R(M){return tt(M)?(e.consume(M),R):z(M)}function _(M){return M===47?(e.consume(M),z):M===58||M===95||Bn(M)?(e.consume(M),N):tt(M)?(e.consume(M),_):z(M)}function N(M){return M===45||M===46||M===58||M===95||En(M)?(e.consume(M),N):T(M)}function T(M){return M===61?(e.consume(M),F):tt(M)?(e.consume(M),T):_(M)}function F(M){return M===null||M===60||M===61||M===62||M===96?a(M):M===34||M===39?(e.consume(M),f=M,O):tt(M)?(e.consume(M),F):L(M)}function O(M){return M===f?(e.consume(M),f=null,$):M===null||Re(M)?a(M):(e.consume(M),O)}function L(M){return M===null||M===34||M===39||M===47||M===60||M===61||M===62||M===96||Dt(M)?T(M):(e.consume(M),L)}function $(M){return M===47||M===62||tt(M)?_(M):a(M)}function z(M){return M===62?(e.consume(M),X):a(M)}function X(M){return M===null||Re(M)?K(M):tt(M)?(e.consume(M),X):a(M)}function K(M){return M===45&&s===2?(e.consume(M),U):M===60&&s===1?(e.consume(M),H):M===62&&s===4?(e.consume(M),j):M===63&&s===3?(e.consume(M),w):M===93&&s===5?(e.consume(M),fe):Re(M)&&(s===6||s===7)?(e.exit("htmlFlowData"),e.check(LS,J,V)(M)):M===null||Re(M)?(e.exit("htmlFlowData"),V(M)):(e.consume(M),K)}function V(M){return e.check(PS,Z,J)(M)}function Z(M){return e.enter("lineEnding"),e.consume(M),e.exit("lineEnding"),Q}function Q(M){return M===null||Re(M)?V(M):(e.enter("htmlFlowData"),K(M))}function U(M){return M===45?(e.consume(M),w):K(M)}function H(M){return M===47?(e.consume(M),x="",re):K(M)}function re(M){if(M===62){const te=x.toLowerCase();return om.includes(te)?(e.consume(M),j):K(M)}return Bn(M)&&x.length<8?(e.consume(M),x+=String.fromCharCode(M),re):K(M)}function fe(M){return M===93?(e.consume(M),w):K(M)}function w(M){return M===62?(e.consume(M),j):M===45&&s===2?(e.consume(M),w):K(M)}function j(M){return M===null||Re(M)?(e.exit("htmlFlowData"),J(M)):(e.consume(M),j)}function J(M){return e.exit("htmlFlow"),n(M)}}function HS(e,n,a){const i=this;return s;function s(x){return Re(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 qS(e,n,a){return i;function i(s){return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),e.attempt($s,n,a)}}const $S={name:"htmlText",tokenize:GS};function GS(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),f}function f(w){return w===33?(e.consume(w),d):w===47?(e.consume(w),T):w===63?(e.consume(w),_):Bn(w)?(e.consume(w),L):a(w)}function d(w){return w===45?(e.consume(w),m):w===91?(e.consume(w),c=0,b):Bn(w)?(e.consume(w),R):a(w)}function m(w){return w===45?(e.consume(w),C):a(w)}function p(w){return w===null?a(w):w===45?(e.consume(w),y):Re(w)?(x=p,H(w)):(e.consume(w),p)}function y(w){return w===45?(e.consume(w),C):p(w)}function C(w){return w===62?U(w):w===45?y(w):p(w)}function b(w){const j="CDATA[";return w===j.charCodeAt(c++)?(e.consume(w),c===j.length?B:b):a(w)}function B(w){return w===null?a(w):w===93?(e.consume(w),v):Re(w)?(x=B,H(w)):(e.consume(w),B)}function v(w){return w===93?(e.consume(w),k):B(w)}function k(w){return w===62?U(w):w===93?(e.consume(w),k):B(w)}function R(w){return w===null||w===62?U(w):Re(w)?(x=R,H(w)):(e.consume(w),R)}function _(w){return w===null?a(w):w===63?(e.consume(w),N):Re(w)?(x=_,H(w)):(e.consume(w),_)}function N(w){return w===62?U(w):_(w)}function T(w){return Bn(w)?(e.consume(w),F):a(w)}function F(w){return w===45||En(w)?(e.consume(w),F):O(w)}function O(w){return Re(w)?(x=O,H(w)):tt(w)?(e.consume(w),O):U(w)}function L(w){return w===45||En(w)?(e.consume(w),L):w===47||w===62||Dt(w)?$(w):a(w)}function $(w){return w===47?(e.consume(w),U):w===58||w===95||Bn(w)?(e.consume(w),z):Re(w)?(x=$,H(w)):tt(w)?(e.consume(w),$):U(w)}function z(w){return w===45||w===46||w===58||w===95||En(w)?(e.consume(w),z):X(w)}function X(w){return w===61?(e.consume(w),K):Re(w)?(x=X,H(w)):tt(w)?(e.consume(w),X):$(w)}function K(w){return w===null||w===60||w===61||w===62||w===96?a(w):w===34||w===39?(e.consume(w),s=w,V):Re(w)?(x=K,H(w)):tt(w)?(e.consume(w),K):(e.consume(w),Z)}function V(w){return w===s?(e.consume(w),s=void 0,Q):w===null?a(w):Re(w)?(x=V,H(w)):(e.consume(w),V)}function Z(w){return w===null||w===34||w===39||w===60||w===61||w===96?a(w):w===47||w===62||Dt(w)?$(w):(e.consume(w),Z)}function Q(w){return w===47||w===62||Dt(w)?$(w):a(w)}function U(w){return w===62?(e.consume(w),e.exit("htmlTextData"),e.exit("htmlText"),n):a(w)}function H(w){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(w),e.exit("lineEnding"),re}function re(w){return tt(w)?lt(e,fe,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(w):fe(w)}function fe(w){return e.enter("htmlTextData"),x(w)}}const Yf={name:"labelEnd",resolveAll:KS,resolveTo:XS,tokenize:ZS},VS={tokenize:JS},QS={tokenize:WS},YS={tokenize:e_};function KS(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&&Xn(e,0,e.length,a),e}function XS(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 f={type:e[c][1].type==="labelLink"?"link":"image",start:{...e[c][1].start},end:{...e[e.length-1][1].end}},d={type:"label",start:{...e[c][1].start},end:{...e[x][1].end}},m={type:"labelText",start:{...e[c+i+2][1].end},end:{...e[x-2][1].start}};return u=[["enter",f,n],["enter",d,n]],u=sr(u,e.slice(c+1,c+i+3)),u=sr(u,[["enter",m,n]]),u=sr(u,V0(n.parser.constructs.insideSpan.null,e.slice(c+i+4,x-3),n)),u=sr(u,[["exit",m,n],e[x-2],e[x-1],["exit",d,n]]),u=sr(u,e.slice(x+1)),u=sr(u,[["exit",f,n]]),Xn(e,c,e.length,u),e}function ZS(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(mr(i.sliceSerialize({start:c.end,end:i.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(y),e.exit("labelMarker"),e.exit("labelEnd"),f):a(y)}function f(y){return y===40?e.attempt(VS,m,x?m:p)(y):y===91?e.attempt(QS,m,x?d:p)(y):x?m(y):p(y)}function d(y){return e.attempt(YS,m,p)(y)}function m(y){return n(y)}function p(y){return c._balanced=!0,a(y)}}function JS(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 Dt(p)?vs(e,c)(p):c(p)}function c(p){return p===41?m(p):fE(e,x,u,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(p)}function x(p){return Dt(p)?vs(e,f)(p):m(p)}function u(p){return a(p)}function f(p){return p===34||p===39||p===40?hE(e,d,a,"resourceTitle","resourceTitleMarker","resourceTitleString")(p):m(p)}function d(p){return Dt(p)?vs(e,m)(p):m(p)}function m(p){return p===41?(e.enter("resourceMarker"),e.consume(p),e.exit("resourceMarker"),e.exit("resource"),n):a(p)}}function WS(e,n,a){const i=this;return s;function s(u){return dE.call(i,e,c,x,"reference","referenceMarker","referenceString")(u)}function c(u){return i.parser.defined.includes(mr(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)))?n(u):a(u)}function x(u){return a(u)}}function e_(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 t_={name:"labelStartImage",resolveAll:Yf.resolveAll,tokenize:n_};function n_(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 r_={name:"labelStartLink",resolveAll:Yf.resolveAll,tokenize:a_};function a_(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 Eu={name:"lineEnding",tokenize:i_};function i_(e,n){return a;function a(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),lt(e,n,"linePrefix")}}const D0={name:"thematicBreak",tokenize:l_};function l_(e,n,a){let i=0,s;return c;function c(d){return e.enter("thematicBreak"),x(d)}function x(d){return s=d,u(d)}function u(d){return d===s?(e.enter("thematicBreakSequence"),f(d)):i>=3&&(d===null||Re(d))?(e.exit("thematicBreak"),n(d)):a(d)}function f(d){return d===s?(e.consume(d),i++,f):(e.exit("thematicBreakSequence"),tt(d)?lt(e,u,"whitespace")(d):u(d))}}const Rn={continuation:{tokenize:x_},exit:f_,name:"list",tokenize:c_},s_={partial:!0,tokenize:d_},o_={partial:!0,tokenize:u_};function c_(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(C){const b=i.containerState.type||(C===42||C===43||C===45?"listUnordered":"listOrdered");if(b==="listUnordered"?!i.containerState.marker||C===i.containerState.marker:rf(C)){if(i.containerState.type||(i.containerState.type=b,e.enter(b,{_container:!0})),b==="listUnordered")return e.enter("listItemPrefix"),C===42||C===45?e.check(D0,a,d)(C):d(C);if(!i.interrupt||C===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),f(C)}return a(C)}function f(C){return rf(C)&&++x<10?(e.consume(C),f):(!i.interrupt||x<2)&&(i.containerState.marker?C===i.containerState.marker:C===41||C===46)?(e.exit("listItemValue"),d(C)):a(C)}function d(C){return e.enter("listItemMarker"),e.consume(C),e.exit("listItemMarker"),i.containerState.marker=i.containerState.marker||C,e.check($s,i.interrupt?a:m,e.attempt(s_,y,p))}function m(C){return i.containerState.initialBlankLine=!0,c++,y(C)}function p(C){return tt(C)?(e.enter("listItemPrefixWhitespace"),e.consume(C),e.exit("listItemPrefixWhitespace"),y):a(C)}function y(C){return i.containerState.size=c+i.sliceSerialize(e.exit("listItemPrefix"),!0).length,n(C)}}function x_(e,n,a){const i=this;return i.containerState._closeFlow=void 0,e.check($s,s,c);function s(u){return i.containerState.furtherBlankLines=i.containerState.furtherBlankLines||i.containerState.initialBlankLine,lt(e,n,"listItemIndent",i.containerState.size+1)(u)}function c(u){return i.containerState.furtherBlankLines||!tt(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(o_,n,x)(u))}function x(u){return i.containerState._closeFlow=!0,i.interrupt=void 0,lt(e,e.attempt(Rn,n,a),"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(u)}}function u_(e,n,a){const i=this;return lt(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 f_(e){e.exit(this.containerState.type)}function d_(e,n,a){const i=this;return lt(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!tt(c)&&x&&x[1].type==="listItemPrefixWhitespace"?n(c):a(c)}}const cm={name:"setextUnderline",resolveTo:h_,tokenize:p_};function h_(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 p_(e,n,a){const i=this;let s;return c;function c(d){let m=i.events.length,p;for(;m--;)if(i.events[m][1].type!=="lineEnding"&&i.events[m][1].type!=="linePrefix"&&i.events[m][1].type!=="content"){p=i.events[m][1].type==="paragraph";break}return!i.parser.lazy[i.now().line]&&(i.interrupt||p)?(e.enter("setextHeadingLine"),s=d,x(d)):a(d)}function x(d){return e.enter("setextHeadingLineSequence"),u(d)}function u(d){return d===s?(e.consume(d),u):(e.exit("setextHeadingLineSequence"),tt(d)?lt(e,f,"lineSuffix")(d):f(d))}function f(d){return d===null||Re(d)?(e.exit("setextHeadingLine"),n(d)):a(d)}}const m_={tokenize:E_};function E_(e){const n=this,a=e.attempt($s,i,e.attempt(this.parser.constructs.flowInitial,s,lt(e,e.attempt(this.parser.constructs.flow,s,e.attempt(AS,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 g_={resolveAll:mE()},y_=pE("string"),C_=pE("text");function pE(e){return{resolveAll:mE(e==="text"?b_: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(m){return d(m)?c(m):u(m)}function u(m){if(m===null){a.consume(m);return}return a.enter("data"),a.consume(m),f}function f(m){return d(m)?(a.exit("data"),c(m)):(a.consume(m),f)}function d(m){if(m===null)return!0;const p=s[m];let y=-1;if(p)for(;++y<p.length;){const C=p[y];if(!C.previous||C.previous.call(i,i.previous))return!0}return!1}}}function mE(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 b_(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,f;for(;c--;){const d=s[c];if(typeof d=="string"){for(x=d.length;d.charCodeAt(x-1)===32;)u++,x--;if(x)break;x=-1}else if(d===-2)f=!0,u++;else if(d!==-1){c++;break}}if(n._contentTypeTextTrailing&&a===e.length&&(u=0),u){const d={type:a===e.length||f||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={...d.start},i.start.offset===i.end.offset?Object.assign(i,d):(e.splice(a,0,["enter",d,n],["exit",d,n]),a+=2)}a++}return e}const A_={42:Rn,43:Rn,45:Rn,48:Rn,49:Rn,50:Rn,51:Rn,52:Rn,53:Rn,54:Rn,55:Rn,56:Rn,57:Rn,62:oE},B_={91:FS},v_={[-2]:mu,[-1]:mu,32:mu},k_={35:TS,42:D0,45:[cm,D0],60:zS,61:cm,95:D0,96:sm,126:sm},D_={38:xE,92:cE},F_={[-5]:Eu,[-4]:Eu,[-3]:Eu,33:t_,38:xE,42:af,60:[rS,$S],91:r_,92:[MS,cE],93:Yf,95:af,96:mS},w_={null:[af,g_]},S_={null:[42,95]},__={null:[]},M_=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:S_,contentInitial:B_,disable:__,document:A_,flow:k_,flowInitial:v_,insideSpan:w_,string:D_,text:F_},Symbol.toStringTag,{value:"Module"}));function N_(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 f={attempt:O(T),check:O(F),consume:R,enter:_,exit:N,interrupt:O(F,{interrupt:!0})},d={code:null,containerState:{},defineSkip:B,events:[],now:b,parser:e,previous:null,sliceSerialize:y,sliceStream:C,write:p};let m=n.tokenize.call(d,f);return n.resolveAll&&c.push(n),d;function p(X){return x=sr(x,X),v(),x[x.length-1]!==null?[]:(L(n,0),d.events=V0(c,d.events,d),d.events)}function y(X,K){return R_(C(X),K)}function C(X){return T_(x,X)}function b(){const{_bufferIndex:X,_index:K,line:V,column:Z,offset:Q}=i;return{_bufferIndex:X,_index:K,line:V,column:Z,offset:Q}}function B(X){s[X.line]=X.column,z()}function v(){let X;for(;i._index<x.length;){const K=x[i._index];if(typeof K=="string")for(X=i._index,i._bufferIndex<0&&(i._bufferIndex=0);i._index===X&&i._bufferIndex<K.length;)k(K.charCodeAt(i._bufferIndex));else k(K)}}function k(X){m=m(X)}function R(X){Re(X)?(i.line++,i.column=1,i.offset+=X===-3?2:1,z()):X!==-1&&(i.column++,i.offset++),i._bufferIndex<0?i._index++:(i._bufferIndex++,i._bufferIndex===x[i._index].length&&(i._bufferIndex=-1,i._index++)),d.previous=X}function _(X,K){const V=K||{};return V.type=X,V.start=b(),d.events.push(["enter",V,d]),u.push(V),V}function N(X){const K=u.pop();return K.end=b(),d.events.push(["exit",K,d]),K}function T(X,K){L(X,K.from)}function F(X,K){K.restore()}function O(X,K){return V;function V(Z,Q,U){let H,re,fe,w;return Array.isArray(Z)?J(Z):"tokenize"in Z?J([Z]):j(Z);function j(de){return Ce;function Ce(Qe){const ke=Qe!==null&&de[Qe],ue=Qe!==null&&de.null,Ze=[...Array.isArray(ke)?ke:ke?[ke]:[],...Array.isArray(ue)?ue:ue?[ue]:[]];return J(Ze)(Qe)}}function J(de){return H=de,re=0,de.length===0?U:M(de[re])}function M(de){return Ce;function Ce(Qe){return w=$(),fe=de,de.partial||(d.currentConstruct=de),de.name&&d.parser.constructs.disable.null.includes(de.name)?ge():de.tokenize.call(K?Object.assign(Object.create(d),K):d,f,te,ge)(Qe)}}function te(de){return X(fe,w),Q}function ge(de){return w.restore(),++re<H.length?M(H[re]):U}}}function L(X,K){X.resolveAll&&!c.includes(X)&&c.push(X),X.resolve&&Xn(d.events,K,d.events.length-K,X.resolve(d.events.slice(K),d)),X.resolveTo&&(d.events=X.resolveTo(d.events,d))}function $(){const X=b(),K=d.previous,V=d.currentConstruct,Z=d.events.length,Q=Array.from(u);return{from:Z,restore:U};function U(){i=X,d.previous=K,d.currentConstruct=V,d.events.length=Z,u=Q,z()}}function z(){i.line in s&&i.column<2&&(i.column=s[i.line],i.offset+=s[i.line]-1)}}function T_(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 R_(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 O_(e){const i={constructs:lE([M_,...(e||{}).extensions||[]]),content:s(Xw),defined:[],document:s(Jw),flow:s(m_),lazy:{},string:s(y_),text:s(C_)};return i;function s(c){return x;function x(u){return N_(i,c,u)}}}function j_(e){for(;!uE(e););return e}const xm=/[\0\t\n\r]/g;function z_(){let e=1,n="",a=!0,i;return s;function s(c,x,u){const f=[];let d,m,p,y,C;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(xm.lastIndex=p,d=xm.exec(c),y=d&&d.index!==void 0?d.index:c.length,C=c.charCodeAt(y),!d){n=c.slice(p);break}if(C===10&&p===y&&i)f.push(-3),i=void 0;else switch(i&&(f.push(-5),i=void 0),p<y&&(f.push(c.slice(p,y)),e+=y-p),C){case 0:{f.push(65533),e++;break}case 9:{for(m=Math.ceil(e/4)*4,f.push(-2);e++<m;)f.push(-1);break}case 10:{f.push(-4),e=1;break}default:i=!0,e=1}p=y+1}return u&&(i&&f.push(-5),n&&f.push(n),f.push(null)),f}}const L_=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function P_(e){return e.replace(L_,U_)}function U_(e,n,a){if(n)return n;if(a.charCodeAt(0)===35){const s=a.charCodeAt(1),c=s===120||s===88;return sE(a.slice(c?2:1),c?16:10)}return Qf(a)||e}const EE={}.hasOwnProperty;function I_(e,n,a){return n&&typeof n=="object"&&(a=n,n=void 0),H_(a)(j_(O_(a).document().write(z_()(e,n,!0))))}function H_(e){const n={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:c(At),autolinkProtocol:$,autolinkEmail:$,atxHeading:c(He),blockQuote:c(ue),characterEscape:$,characterReference:$,codeFenced:c(Ze),codeFencedFenceInfo:x,codeFencedFenceMeta:x,codeIndented:c(Ze,x),codeText:c(ut,x),codeTextData:$,data:$,codeFlowValue:$,definition:c(bt),definitionDestinationString:x,definitionLabelString:x,definitionTitleString:x,emphasis:c(ie),hardBreakEscape:c(ft),hardBreakTrailing:c(ft),htmlFlow:c(Tt,x),htmlFlowData:$,htmlText:c(Tt,x),htmlTextData:$,image:c(fn),label:x,link:c(At),listItem:c(tn),listItemValue:y,listOrdered:c(Mr,p),listUnordered:c(Mr),paragraph:c(hl),reference:M,referenceString:x,resourceDestinationString:x,resourceTitleString:x,setextHeading:c(He),strong:c(Ei),thematicBreak:c(gi)},exit:{atxHeading:f(),atxHeadingSequence:T,autolink:f(),autolinkEmail:ke,autolinkProtocol:Qe,blockQuote:f(),characterEscapeValue:z,characterReferenceMarkerHexadecimal:ge,characterReferenceMarkerNumeric:ge,characterReferenceValue:de,characterReference:Ce,codeFenced:f(v),codeFencedFence:B,codeFencedFenceInfo:C,codeFencedFenceMeta:b,codeFlowValue:z,codeIndented:f(k),codeText:f(Q),codeTextData:z,data:z,definition:f(),definitionDestinationString:N,definitionLabelString:R,definitionTitleString:_,emphasis:f(),hardBreakEscape:f(K),hardBreakTrailing:f(K),htmlFlow:f(V),htmlFlowData:z,htmlText:f(Z),htmlTextData:z,image:f(H),label:fe,labelText:re,lineEnding:X,link:f(U),listItem:f(),listOrdered:f(),listUnordered:f(),paragraph:f(),referenceString:te,resourceDestinationString:w,resourceTitleString:j,resource:J,setextHeading:f(L),setextHeadingLineSequence:O,setextHeadingText:F,strong:f(),thematicBreak:f()}};gE(n,(e||{}).mdastExtensions||[]);const a={};return i;function i(le){let me={type:"root",children:[]};const Oe={stack:[me],tokenStack:[],config:n,enter:u,exit:d,buffer:x,resume:m,data:a},Ye=[];let st=-1;for(;++st<le.length;)if(le[st][1].type==="listOrdered"||le[st][1].type==="listUnordered")if(le[st][0]==="enter")Ye.push(st);else{const yn=Ye.pop();st=s(le,yn,st)}for(st=-1;++st<le.length;){const yn=n[le[st][0]];EE.call(yn,le[st][1].type)&&yn[le[st][1].type].call(Object.assign({sliceSerialize:le[st][2].sliceSerialize},Oe),le[st][1])}if(Oe.tokenStack.length>0){const yn=Oe.tokenStack[Oe.tokenStack.length-1];(yn[1]||um).call(Oe,void 0,yn[0])}for(me.position={start:Ma(le.length>0?le[0][1].start:{line:1,column:1,offset:0}),end:Ma(le.length>0?le[le.length-2][1].end:{line:1,column:1,offset:0})},st=-1;++st<n.transforms.length;)me=n.transforms[st](me)||me;return me}function s(le,me,Oe){let Ye=me-1,st=-1,yn=!1,ur,rn,Lt,dn;for(;++Ye<=Oe;){const dt=le[Ye];switch(dt[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{dt[0]==="enter"?st++:st--,dn=void 0;break}case"lineEndingBlank":{dt[0]==="enter"&&(ur&&!dn&&!st&&!Lt&&(Lt=Ye),dn=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:dn=void 0}if(!st&&dt[0]==="enter"&&dt[1].type==="listItemPrefix"||st===-1&&dt[0]==="exit"&&(dt[1].type==="listUnordered"||dt[1].type==="listOrdered")){if(ur){let Er=Ye;for(rn=void 0;Er--;){const Cn=le[Er];if(Cn[1].type==="lineEnding"||Cn[1].type==="lineEndingBlank"){if(Cn[0]==="exit")continue;rn&&(le[rn][1].type="lineEndingBlank",yn=!0),Cn[1].type="lineEnding",rn=Er}else if(!(Cn[1].type==="linePrefix"||Cn[1].type==="blockQuotePrefix"||Cn[1].type==="blockQuotePrefixWhitespace"||Cn[1].type==="blockQuoteMarker"||Cn[1].type==="listItemIndent"))break}Lt&&(!rn||Lt<rn)&&(ur._spread=!0),ur.end=Object.assign({},rn?le[rn][1].start:dt[1].end),le.splice(rn||Ye,0,["exit",ur,dt[2]]),Ye++,Oe++}if(dt[1].type==="listItemPrefix"){const Er={type:"listItem",_spread:!1,start:Object.assign({},dt[1].start),end:void 0};ur=Er,le.splice(Ye,0,["enter",Er,dt[2]]),Ye++,Oe++,Lt=void 0,dn=!0}}}return le[me][1]._spread=yn,Oe}function c(le,me){return Oe;function Oe(Ye){u.call(this,le(Ye),Ye),me&&me.call(this,Ye)}}function x(){this.stack.push({type:"fragment",children:[]})}function u(le,me,Oe){this.stack[this.stack.length-1].children.push(le),this.stack.push(le),this.tokenStack.push([me,Oe||void 0]),le.position={start:Ma(me.start),end:void 0}}function f(le){return me;function me(Oe){le&&le.call(this,Oe),d.call(this,Oe)}}function d(le,me){const Oe=this.stack.pop(),Ye=this.tokenStack.pop();if(Ye)Ye[0].type!==le.type&&(me?me.call(this,le,Ye[0]):(Ye[1]||um).call(this,le,Ye[0]));else throw new Error("Cannot close `"+le.type+"` ("+Bs({start:le.start,end:le.end})+"): it’s not open");Oe.position.end=Ma(le.end)}function m(){return Vf(this.stack.pop())}function p(){this.data.expectingFirstListItemValue=!0}function y(le){if(this.data.expectingFirstListItemValue){const me=this.stack[this.stack.length-2];me.start=Number.parseInt(this.sliceSerialize(le),10),this.data.expectingFirstListItemValue=void 0}}function C(){const le=this.resume(),me=this.stack[this.stack.length-1];me.lang=le}function b(){const le=this.resume(),me=this.stack[this.stack.length-1];me.meta=le}function B(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function v(){const le=this.resume(),me=this.stack[this.stack.length-1];me.value=le.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function k(){const le=this.resume(),me=this.stack[this.stack.length-1];me.value=le.replace(/(\r?\n|\r)$/g,"")}function R(le){const me=this.resume(),Oe=this.stack[this.stack.length-1];Oe.label=me,Oe.identifier=mr(this.sliceSerialize(le)).toLowerCase()}function _(){const le=this.resume(),me=this.stack[this.stack.length-1];me.title=le}function N(){const le=this.resume(),me=this.stack[this.stack.length-1];me.url=le}function T(le){const me=this.stack[this.stack.length-1];if(!me.depth){const Oe=this.sliceSerialize(le).length;me.depth=Oe}}function F(){this.data.setextHeadingSlurpLineEnding=!0}function O(le){const me=this.stack[this.stack.length-1];me.depth=this.sliceSerialize(le).codePointAt(0)===61?1:2}function L(){this.data.setextHeadingSlurpLineEnding=void 0}function $(le){const Oe=this.stack[this.stack.length-1].children;let Ye=Oe[Oe.length-1];(!Ye||Ye.type!=="text")&&(Ye=jt(),Ye.position={start:Ma(le.start),end:void 0},Oe.push(Ye)),this.stack.push(Ye)}function z(le){const me=this.stack.pop();me.value+=this.sliceSerialize(le),me.position.end=Ma(le.end)}function X(le){const me=this.stack[this.stack.length-1];if(this.data.atHardBreak){const Oe=me.children[me.children.length-1];Oe.position.end=Ma(le.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&n.canContainEols.includes(me.type)&&($.call(this,le),z.call(this,le))}function K(){this.data.atHardBreak=!0}function V(){const le=this.resume(),me=this.stack[this.stack.length-1];me.value=le}function Z(){const le=this.resume(),me=this.stack[this.stack.length-1];me.value=le}function Q(){const le=this.resume(),me=this.stack[this.stack.length-1];me.value=le}function U(){const le=this.stack[this.stack.length-1];if(this.data.inReference){const me=this.data.referenceType||"shortcut";le.type+="Reference",le.referenceType=me,delete le.url,delete le.title}else delete le.identifier,delete le.label;this.data.referenceType=void 0}function H(){const le=this.stack[this.stack.length-1];if(this.data.inReference){const me=this.data.referenceType||"shortcut";le.type+="Reference",le.referenceType=me,delete le.url,delete le.title}else delete le.identifier,delete le.label;this.data.referenceType=void 0}function re(le){const me=this.sliceSerialize(le),Oe=this.stack[this.stack.length-2];Oe.label=P_(me),Oe.identifier=mr(me).toLowerCase()}function fe(){const le=this.stack[this.stack.length-1],me=this.resume(),Oe=this.stack[this.stack.length-1];if(this.data.inReference=!0,Oe.type==="link"){const Ye=le.children;Oe.children=Ye}else Oe.alt=me}function w(){const le=this.resume(),me=this.stack[this.stack.length-1];me.url=le}function j(){const le=this.resume(),me=this.stack[this.stack.length-1];me.title=le}function J(){this.data.inReference=void 0}function M(){this.data.referenceType="collapsed"}function te(le){const me=this.resume(),Oe=this.stack[this.stack.length-1];Oe.label=me,Oe.identifier=mr(this.sliceSerialize(le)).toLowerCase(),this.data.referenceType="full"}function ge(le){this.data.characterReferenceType=le.type}function de(le){const me=this.sliceSerialize(le),Oe=this.data.characterReferenceType;let Ye;Oe?(Ye=sE(me,Oe==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Ye=Qf(me);const st=this.stack[this.stack.length-1];st.value+=Ye}function Ce(le){const me=this.stack.pop();me.position.end=Ma(le.end)}function Qe(le){z.call(this,le);const me=this.stack[this.stack.length-1];me.url=this.sliceSerialize(le)}function ke(le){z.call(this,le);const me=this.stack[this.stack.length-1];me.url="mailto:"+this.sliceSerialize(le)}function ue(){return{type:"blockquote",children:[]}}function Ze(){return{type:"code",lang:null,meta:null,value:""}}function ut(){return{type:"inlineCode",value:""}}function bt(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function ie(){return{type:"emphasis",children:[]}}function He(){return{type:"heading",depth:0,children:[]}}function ft(){return{type:"break"}}function Tt(){return{type:"html",value:""}}function fn(){return{type:"image",title:null,url:"",alt:null}}function At(){return{type:"link",title:null,url:"",children:[]}}function Mr(le){return{type:"list",ordered:le.type==="listOrdered",start:null,spread:le._spread,children:[]}}function tn(le){return{type:"listItem",spread:le._spread,checked:null,children:[]}}function hl(){return{type:"paragraph",children:[]}}function Ei(){return{type:"strong",children:[]}}function jt(){return{type:"text",value:""}}function gi(){return{type:"thematicBreak"}}}function Ma(e){return{line:e.line,column:e.column,offset:e.offset}}function gE(e,n){let a=-1;for(;++a<n.length;){const i=n[a];Array.isArray(i)?gE(e,i):q_(e,i)}}function q_(e,n){let a;for(a in n)if(EE.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 um(e,n){throw e?new Error("Cannot close `"+e.type+"` ("+Bs({start:e.start,end:e.end})+"): a different token (`"+n.type+"`, "+Bs({start:n.start,end:n.end})+") is open"):new Error("Cannot close document, a token (`"+n.type+"`, "+Bs({start:n.start,end:n.end})+") is still open")}function $_(e){const n=this;n.parser=a;function a(i){return I_(i,{...n.data("settings"),...e,extensions:n.data("micromarkExtensions")||[],mdastExtensions:n.data("fromMarkdownExtensions")||[]})}}function G_(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 V_(e,n){const a={type:"element",tagName:"br",properties:{},children:[]};return e.patch(n,a),[e.applyData(n,a),{type:"text",value:`
|
|
19
|
+
`}]}function Q_(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 Y_(e,n){const a={type:"element",tagName:"del",properties:{},children:e.all(n)};return e.patch(n,a),e.applyData(n,a)}function K_(e,n){const a={type:"element",tagName:"em",properties:{},children:e.all(n)};return e.patch(n,a),e.applyData(n,a)}function X_(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 f={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,f);const d={type:"element",tagName:"sup",properties:{},children:[f]};return e.patch(n,d),e.applyData(n,d)}function Z_(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 J_(e,n){if(e.options.allowDangerousHtml){const a={type:"raw",value:n.value};return e.patch(n,a),e.applyData(n,a)}}function yE(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 W_(e,n){const a=String(n.identifier).toUpperCase(),i=e.definitionById.get(a);if(!i)return yE(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 eM(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 tM(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 nM(e,n){const a=String(n.identifier).toUpperCase(),i=e.definitionById.get(a);if(!i)return yE(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 rM(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 aM(e,n,a){const i=e.all(n),s=a?iM(a):CE(n),c={},x=[];if(typeof n.checked=="boolean"){const m=i[0];let p;m&&m.type==="element"&&m.tagName==="p"?p=m:(p={type:"element",tagName:"p",properties:{},children:[]},i.unshift(p)),p.children.length>0&&p.children.unshift({type:"text",value:" "}),p.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:n.checked,disabled:!0},children:[]}),c.className=["task-list-item"]}let u=-1;for(;++u<i.length;){const m=i[u];(s||u!==0||m.type!=="element"||m.tagName!=="p")&&x.push({type:"text",value:`
|
|
21
|
+
`}),m.type==="element"&&m.tagName==="p"&&!s?x.push(...m.children):x.push(m)}const f=i[i.length-1];f&&(s||f.type!=="element"||f.tagName!=="p")&&x.push({type:"text",value:`
|
|
22
|
+
`});const d={type:"element",tagName:"li",properties:c,children:x};return e.patch(n,d),e.applyData(n,d)}function iM(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=CE(a[i])}return n}function CE(e){const n=e.spread;return n??e.children.length>1}function lM(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 sM(e,n){const a={type:"element",tagName:"p",properties:{},children:e.all(n)};return e.patch(n,a),e.applyData(n,a)}function oM(e,n){const a={type:"root",children:e.wrap(e.all(n))};return e.patch(n,a),e.applyData(n,a)}function cM(e,n){const a={type:"element",tagName:"strong",properties:{},children:e.all(n)};return e.patch(n,a),e.applyData(n,a)}function xM(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=Hf(n.children[1]),f=W2(n.children[n.children.length-1]);u&&f&&(x.position={start:u,end:f}),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 uM(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 f=-1;const d=[];for(;++f<u;){const p=n.children[f],y={},C=x?x[f]:void 0;C&&(y.align=C);let b={type:"element",tagName:c,properties:y,children:[]};p&&(b.children=e.all(p),e.patch(p,b),b=e.applyData(p,b)),d.push(b)}const m={type:"element",tagName:"tr",properties:{},children:e.wrap(d,!0)};return e.patch(n,m),e.applyData(n,m)}function fM(e,n){const a={type:"element",tagName:"td",properties:{},children:e.all(n)};return e.patch(n,a),e.applyData(n,a)}const fm=9,dm=32;function dM(e){const n=String(e),a=/\r?\n|\r/g;let i=a.exec(n),s=0;const c=[];for(;i;)c.push(hm(n.slice(s,i.index),s>0,!0),i[0]),s=i.index+i[0].length,i=a.exec(n);return c.push(hm(n.slice(s),s>0,!1)),c.join("")}function hm(e,n,a){let i=0,s=e.length;if(n){let c=e.codePointAt(i);for(;c===fm||c===dm;)i++,c=e.codePointAt(i)}if(a){let c=e.codePointAt(s-1);for(;c===fm||c===dm;)s--,c=e.codePointAt(s-1)}return s>i?e.slice(i,s):""}function hM(e,n){const a={type:"text",value:dM(String(n.value))};return e.patch(n,a),e.applyData(n,a)}function pM(e,n){const a={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(n,a),e.applyData(n,a)}const mM={blockquote:G_,break:V_,code:Q_,delete:Y_,emphasis:K_,footnoteReference:X_,heading:Z_,html:J_,imageReference:W_,image:eM,inlineCode:tM,linkReference:nM,link:rM,listItem:aM,list:lM,paragraph:sM,root:oM,strong:cM,table:xM,tableCell:fM,tableRow:uM,text:hM,thematicBreak:pM,toml:E0,yaml:E0,definition:E0,footnoteDefinition:E0};function E0(){}const bE=-1,Q0=0,ks=1,j0=2,Kf=3,Xf=4,Zf=5,Jf=6,AE=7,BE=8,vE=typeof self=="object"?self:globalThis,pm=(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 vE[e](n)},EM=(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 Q0:case bE:return a(x,s);case ks:{const u=a([],s);for(const f of x)u.push(i(f));return u}case j0:{const u=a({},s);for(const[f,d]of x)u[i(f)]=i(d);return u}case Kf:return a(new Date(x),s);case Xf:{const{source:u,flags:f}=x;return a(new RegExp(u,f),s)}case Zf:{const u=a(new Map,s);for(const[f,d]of x)u.set(i(f),i(d));return u}case Jf:{const u=a(new Set,s);for(const f of x)u.add(i(f));return u}case AE:{const{name:u,message:f}=x;return a(typeof vE[u]=="function"?pm(u,f):new Error(f),s)}case BE: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(pm(c,x),s)};return i},mm=e=>EM(new Map,e)(0),ci="",{toString:gM}={},{keys:yM}=Object,Es=e=>{const n=typeof e;if(n!=="object"||!e)return[Q0,n];const a=gM.call(e).slice(8,-1);switch(a){case"Array":return[ks,ci];case"Object":return[j0,ci];case"Date":return[Kf,ci];case"RegExp":return[Xf,ci];case"Map":return[Zf,ci];case"Set":return[Jf,ci];case"DataView":return[ks,a]}return a.includes("Array")?[ks,a]:e instanceof Error?[AE,e.name||"Error"]:[j0,a]},g0=([e,n])=>e===Q0&&(n==="function"||n==="symbol"),CM=(e,n,a,i)=>{const s=(x,u)=>{const f=i.push(x)-1;return a.set(u,f),f},c=x=>{if(a.has(x))return a.get(x);let[u,f]=Es(x);switch(u){case Q0:{let m=x;switch(f){case"bigint":u=BE,m=x.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+f);m=null;break;case"undefined":return s([bE],x)}return s([u,m],x)}case ks:{if(f){let y=x;return f==="DataView"?y=new Uint8Array(x.buffer):f==="ArrayBuffer"&&(y=new Uint8Array(x)),s([f,[...y]],x)}const m=[],p=s([u,m],x);for(const y of x)m.push(c(y));return p}case j0:{if(f)switch(f){case"BigInt":return s([f,x.toString()],x);case"Boolean":case"Number":case"String":return s([f,x.valueOf()],x)}if(n&&"toJSON"in x)return c(x.toJSON());const m=[],p=s([u,m],x);for(const y of yM(x))(e||!g0(Es(x[y])))&&m.push([c(y),c(x[y])]);return p}case Kf:return s([u,isNaN(x.getTime())?ci:x.toISOString()],x);case Xf:{const{source:m,flags:p}=x;return s([u,{source:m,flags:p}],x)}case Zf:{const m=[],p=s([u,m],x);for(const[y,C]of x)(e||!(g0(Es(y))||g0(Es(C))))&&m.push([c(y),c(C)]);return p}case Jf:{const m=[],p=s([u,m],x);for(const y of x)(e||!g0(Es(y)))&&m.push(c(y));return p}}const{message:d}=x;return s([u,{name:f,message:d}],x)};return c},Em=(e,{json:n,lossy:a}={})=>{const i=[];return CM(!(n||a),!!n,new Map,i)(e),i},z0=typeof structuredClone=="function"?(e,n)=>n&&("json"in n||"lossy"in n)?mm(Em(e,n)):structuredClone(e):(e,n)=>mm(Em(e,n));function bM(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 AM(e,n){return"Back to reference "+(e+1)+(n>1?"-"+n:"")}function BM(e){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",a=e.options.footnoteBackContent||bM,i=e.options.footnoteBackLabel||AM,s=e.options.footnoteLabel||"Footnotes",c=e.options.footnoteLabelTagName||"h2",x=e.options.footnoteLabelProperties||{className:["sr-only"]},u=[];let f=-1;for(;++f<e.footnoteOrder.length;){const d=e.footnoteById.get(e.footnoteOrder[f]);if(!d)continue;const m=e.all(d),p=String(d.identifier).toUpperCase(),y=dl(p.toLowerCase());let C=0;const b=[],B=e.footnoteCounts.get(p);for(;B!==void 0&&++C<=B;){b.length>0&&b.push({type:"text",value:" "});let R=typeof a=="string"?a:a(f,C);typeof R=="string"&&(R={type:"text",value:R}),b.push({type:"element",tagName:"a",properties:{href:"#"+n+"fnref-"+y+(C>1?"-"+C:""),dataFootnoteBackref:"",ariaLabel:typeof i=="string"?i:i(f,C),className:["data-footnote-backref"]},children:Array.isArray(R)?R:[R]})}const v=m[m.length-1];if(v&&v.type==="element"&&v.tagName==="p"){const R=v.children[v.children.length-1];R&&R.type==="text"?R.value+=" ":v.children.push({type:"text",value:" "}),v.children.push(...b)}else m.push(...b);const k={type:"element",tagName:"li",properties:{id:n+"fn-"+y},children:e.wrap(m,!0)};e.patch(d,k),u.push(k)}if(u.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:c,properties:{...z0(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 Y0=(function(e){if(e==null)return FM;if(typeof e=="function")return K0(e);if(typeof e=="object")return Array.isArray(e)?vM(e):kM(e);if(typeof e=="string")return DM(e);throw new Error("Expected function, string, or object as test")});function vM(e){const n=[];let a=-1;for(;++a<e.length;)n[a]=Y0(e[a]);return K0(i);function i(...s){let c=-1;for(;++c<n.length;)if(n[c].apply(this,s))return!0;return!1}}function kM(e){const n=e;return K0(a);function a(i){const s=i;let c;for(c in e)if(s[c]!==n[c])return!1;return!0}}function DM(e){return K0(n);function n(a){return a&&a.type===e}}function K0(e){return n;function n(a,i,s){return!!(wM(a)&&e.call(this,a,typeof i=="number"?i:void 0,s||void 0))}}function FM(){return!0}function wM(e){return e!==null&&typeof e=="object"&&"type"in e}const kE=[],SM=!0,lf=!1,_M="skip";function DE(e,n,a,i){let s;typeof n=="function"&&typeof a!="function"?(i=a,a=n):s=n;const c=Y0(s),x=i?-1:1;u(e,void 0,[])();function u(f,d,m){const p=f&&typeof f=="object"?f:{};if(typeof p.type=="string"){const C=typeof p.tagName=="string"?p.tagName:typeof p.name=="string"?p.name:void 0;Object.defineProperty(y,"name",{value:"node ("+(f.type+(C?"<"+C+">":""))+")"})}return y;function y(){let C=kE,b,B,v;if((!n||c(f,d,m[m.length-1]||void 0))&&(C=MM(a(f,m)),C[0]===lf))return C;if("children"in f&&f.children){const k=f;if(k.children&&C[0]!==_M)for(B=(i?k.children.length:-1)+x,v=m.concat(k);B>-1&&B<k.children.length;){const R=k.children[B];if(b=u(R,B,v)(),b[0]===lf)return b;B=typeof b[1]=="number"?b[1]:B+x}}return C}}}function MM(e){return Array.isArray(e)?e:typeof e=="number"?[SM,e]:e==null?kE:[e]}function Wf(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),DE(e,c,u,s);function u(f,d){const m=d[d.length-1],p=m?m.children.indexOf(f):void 0;return x(f,p,m)}}const sf={}.hasOwnProperty,NM={};function TM(e,n){const a=n||NM,i=new Map,s=new Map,c=new Map,x={...mM,...a.handlers},u={all:d,applyData:OM,definitionById:i,footnoteById:s,footnoteCounts:c,footnoteOrder:[],handlers:x,one:f,options:a,patch:RM,wrap:zM};return Wf(e,function(m){if(m.type==="definition"||m.type==="footnoteDefinition"){const p=m.type==="definition"?i:s,y=String(m.identifier).toUpperCase();p.has(y)||p.set(y,m)}}),u;function f(m,p){const y=m.type,C=u.handlers[y];if(sf.call(u.handlers,y)&&C)return C(u,m,p);if(u.options.passThrough&&u.options.passThrough.includes(y)){if("children"in m){const{children:B,...v}=m,k=z0(v);return k.children=u.all(m),k}return z0(m)}return(u.options.unknownHandler||jM)(u,m,p)}function d(m){const p=[];if("children"in m){const y=m.children;let C=-1;for(;++C<y.length;){const b=u.one(y[C],m);if(b){if(C&&y[C-1].type==="break"&&(!Array.isArray(b)&&b.type==="text"&&(b.value=gm(b.value)),!Array.isArray(b)&&b.type==="element")){const B=b.children[0];B&&B.type==="text"&&(B.value=gm(B.value))}Array.isArray(b)?p.push(...b):p.push(b)}}}return p}}function RM(e,n){e.position&&(n.position=Aw(e))}function OM(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,z0(c)),"children"in a&&a.children&&s!==null&&s!==void 0&&(a.children=s)}return a}function jM(e,n){const a=n.data||{},i="value"in n&&!(sf.call(a,"hProperties")||sf.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 gm(e){let n=0,a=e.charCodeAt(n);for(;a===9||a===32;)n++,a=e.charCodeAt(n);return e.slice(n)}function ym(e,n){const a=TM(e,n),i=a.one(e,void 0),s=BM(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 LM(e,n){return e&&"run"in e?async function(a,i){const s=ym(a,{file:i,...n});await e.run(s,i)}:function(a,i){return ym(a,{file:i,...e||n})}}function Cm(e){if(e)throw e}var gu,bm;function PM(){if(bm)return gu;bm=1;var e=Object.prototype.hasOwnProperty,n=Object.prototype.toString,a=Object.defineProperty,i=Object.getOwnPropertyDescriptor,s=function(d){return typeof Array.isArray=="function"?Array.isArray(d):n.call(d)==="[object Array]"},c=function(d){if(!d||n.call(d)!=="[object Object]")return!1;var m=e.call(d,"constructor"),p=d.constructor&&d.constructor.prototype&&e.call(d.constructor.prototype,"isPrototypeOf");if(d.constructor&&!m&&!p)return!1;var y;for(y in d);return typeof y>"u"||e.call(d,y)},x=function(d,m){a&&m.name==="__proto__"?a(d,m.name,{enumerable:!0,configurable:!0,value:m.newValue,writable:!0}):d[m.name]=m.newValue},u=function(d,m){if(m==="__proto__")if(e.call(d,m)){if(i)return i(d,m).value}else return;return d[m]};return gu=function f(){var d,m,p,y,C,b,B=arguments[0],v=1,k=arguments.length,R=!1;for(typeof B=="boolean"&&(R=B,B=arguments[1]||{},v=2),(B==null||typeof B!="object"&&typeof B!="function")&&(B={});v<k;++v)if(d=arguments[v],d!=null)for(m in d)p=u(B,m),y=u(d,m),B!==y&&(R&&y&&(c(y)||(C=s(y)))?(C?(C=!1,b=p&&s(p)?p:[]):b=p&&c(p)?p:{},x(B,{name:m,newValue:f(R,b,y)})):typeof y<"u"&&x(B,{name:m,newValue:y}));return B},gu}var UM=PM();const yu=Ls(UM);function of(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 IM(){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(f,...d){const m=e[++c];let p=-1;if(f){x(f);return}for(;++p<s.length;)(d[p]===null||d[p]===void 0)&&(d[p]=s[p]);s=d,m?HM(m,u)(...d):x(null,...d)}}function i(s){if(typeof s!="function")throw new TypeError("Expected `middelware` to be a function, not "+s);return e.push(s),n}}function HM(e,n){let a;return i;function i(...x){const u=e.length>x.length;let f;u&&x.push(s);try{f=e.apply(this,x)}catch(d){const m=d;if(u&&a)throw m;return s(m)}u||(f&&f.then&&typeof f.then=="function"?f.then(c,s):f instanceof Error?s(f):c(f))}function s(x,...u){a||(a=!0,n(x,...u))}function c(x){s(null,x)}}const vr={basename:qM,dirname:$M,extname:GM,join:VM,sep:"/"};function qM(e,n){if(n!==void 0&&typeof n!="string")throw new TypeError('"ext" argument must be a string');Gs(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 $M(e){if(Gs(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 GM(e){Gs(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 VM(...e){let n=-1,a;for(;++n<e.length;)Gs(e[n]),e[n]&&(a=a===void 0?e[n]:a+"/"+e[n]);return a===void 0?".":QM(a)}function QM(e){Gs(e);const n=e.codePointAt(0)===47;let a=YM(e,!n);return a.length===0&&!n&&(a="."),a.length>0&&e.codePointAt(e.length-1)===47&&(a+="/"),n?"/"+a:a}function YM(e,n){let a="",i=0,s=-1,c=0,x=-1,u,f;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(f=a.lastIndexOf("/"),f!==a.length-1){f<0?(a="",i=0):(a=a.slice(0,f),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 Gs(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const KM={cwd:XM};function XM(){return"/"}function cf(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function ZM(e){if(typeof e=="string")e=new URL(e);else if(!cf(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 JM(e)}function JM(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 Cu=["history","path","basename","stem","extname","dirname"];class FE{constructor(n){let a;n?cf(n)?a={path:n}:typeof n=="string"||WM(n)?a={value:n}:a=n:a={},this.cwd="cwd"in a?"":KM.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let i=-1;for(;++i<Cu.length;){const c=Cu[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)Cu.includes(s)||(this[s]=a[s])}get basename(){return typeof this.path=="string"?vr.basename(this.path):void 0}set basename(n){Au(n,"basename"),bu(n,"basename"),this.path=vr.join(this.dirname||"",n)}get dirname(){return typeof this.path=="string"?vr.dirname(this.path):void 0}set dirname(n){Am(this.basename,"dirname"),this.path=vr.join(n||"",this.basename)}get extname(){return typeof this.path=="string"?vr.extname(this.path):void 0}set extname(n){if(bu(n,"extname"),Am(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=vr.join(this.dirname,this.stem+(n||""))}get path(){return this.history[this.history.length-1]}set path(n){cf(n)&&(n=ZM(n)),Au(n,"path"),this.path!==n&&this.history.push(n)}get stem(){return typeof this.path=="string"?vr.basename(this.path,this.extname):void 0}set stem(n){Au(n,"stem"),bu(n,"stem"),this.path=vr.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 gn(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 bu(e,n){if(e&&e.includes(vr.sep))throw new Error("`"+n+"` cannot be a path: did not expect `"+vr.sep+"`")}function Au(e,n){if(!e)throw new Error("`"+n+"` cannot be empty")}function Am(e,n){if(!e)throw new Error("Setting `"+n+"` requires `path` to be set too")}function WM(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const eN=(function(e){const i=this.constructor.prototype,s=i[e],c=function(){return s.apply(c,arguments)};return Object.setPrototypeOf(c,i),c}),tN={}.hasOwnProperty;class ed extends eN{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=IM()}copy(){const n=new ed;let a=-1;for(;++a<this.attachers.length;){const i=this.attachers[a];n.use(...i)}return n.data(yu(!0,{},this.namespace)),n}data(n,a){return typeof n=="string"?arguments.length===2?(ku("data",this.frozen),this.namespace[n]=a,this):tN.call(this.namespace,n)&&this.namespace[n]||void 0:n?(ku("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=y0(n),i=this.parser||this.Parser;return Bu("parse",i),i(String(a),a)}process(n,a){const i=this;return this.freeze(),Bu("process",this.parser||this.Parser),vu("process",this.compiler||this.Compiler),a?s(void 0,a):new Promise(s);function s(c,x){const u=y0(n),f=i.parse(u);i.run(f,u,function(m,p,y){if(m||!p||!y)return d(m);const C=p,b=i.stringify(C,y);aN(b)?y.value=b:y.result=b,d(m,y)});function d(m,p){m||!p?x(m):c?c(p):a(void 0,p)}}}processSync(n){let a=!1,i;return this.freeze(),Bu("processSync",this.parser||this.Parser),vu("processSync",this.compiler||this.Compiler),this.process(n,s),vm("processSync","process",a),i;function s(c,x){a=!0,Cm(c),i=x}}run(n,a,i){Bm(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 f=y0(a);s.run(n,f,d);function d(m,p,y){const C=p||n;m?u(m):x?x(C):i(void 0,C,y)}}}runSync(n,a){let i=!1,s;return this.run(n,a,c),vm("runSync","run",i),s;function c(x,u){Cm(x),s=u,i=!0}}stringify(n,a){this.freeze();const i=y0(a),s=this.compiler||this.Compiler;return vu("stringify",s),Bm(n),s(n,i)}use(n,...a){const i=this.attachers,s=this.namespace;if(ku("use",this.frozen),n!=null)if(typeof n=="function")f(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(d){if(typeof d=="function")f(d,[]);else if(typeof d=="object")if(Array.isArray(d)){const[m,...p]=d;f(m,p)}else x(d);else throw new TypeError("Expected usable value, not `"+d+"`")}function x(d){if(!("plugins"in d)&&!("settings"in d))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(d.plugins),d.settings&&(s.settings=yu(!0,s.settings,d.settings))}function u(d){let m=-1;if(d!=null)if(Array.isArray(d))for(;++m<d.length;){const p=d[m];c(p)}else throw new TypeError("Expected a list of plugins, not `"+d+"`")}function f(d,m){let p=-1,y=-1;for(;++p<i.length;)if(i[p][0]===d){y=p;break}if(y===-1)i.push([d,...m]);else if(m.length>0){let[C,...b]=m;const B=i[y][1];of(B)&&of(C)&&(C=yu(!0,B,C)),i[y]=[d,C,...b]}}}}const nN=new ed().freeze();function Bu(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function vu(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function ku(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 Bm(e){if(!of(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function vm(e,n,a){if(!a)throw new Error("`"+e+"` finished async. Use `"+n+"` instead")}function y0(e){return rN(e)?e:new FE(e)}function rN(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function aN(e){return typeof e=="string"||iN(e)}function iN(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const lN="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",km=[],Dm={allowDangerousHtml:!0},sN=/^(https?|ircs?|mailto|xmpp)$/i,oN=[{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 cN(e){const n=xN(e),a=uN(e);return fN(n.runSync(n.parse(a),a),e)}function xN(e){const n=e.rehypePlugins||km,a=e.remarkPlugins||km,i=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Dm}:Dm;return nN().use($_).use(a).use(LM,i).use(n)}function uN(e){const n=e.children||"",a=new FE;return typeof n=="string"&&(a.value=n),a}function fN(e,n){const a=n.allowedElements,i=n.allowElement,s=n.components,c=n.disallowedElements,x=n.skipHtml,u=n.unwrapDisallowed,f=n.urlTransform||dN;for(const m of oN)Object.hasOwn(n,m.from)&&(""+m.from+(m.to?"use `"+m.to+"` instead":"remove it")+lN+m.id,void 0);return Wf(e,d),Fw(e,{Fragment:g.Fragment,components:s,ignoreInvalidStyle:!0,jsx:g.jsx,jsxs:g.jsxs,passKeys:!0,passNode:!0});function d(m,p,y){if(m.type==="raw"&&y&&typeof p=="number")return x?y.children.splice(p,1):y.children[p]={type:"text",value:m.value},p;if(m.type==="element"){let C;for(C in pu)if(Object.hasOwn(pu,C)&&Object.hasOwn(m.properties,C)){const b=m.properties[C],B=pu[C];(B===null||B.includes(m.tagName))&&(m.properties[C]=f(String(b||""),C,m))}}if(m.type==="element"){let C=a?!a.includes(m.tagName):c?c.includes(m.tagName):!1;if(!C&&i&&typeof p=="number"&&(C=!i(m,p,y)),C&&y&&typeof p=="number")return u&&m.children?y.children.splice(p,1,...m.children):y.children.splice(p,1),p}}}function dN(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||sN.test(e.slice(0,n))?e:""}function hN(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function wE(e,n,a){const s=Y0((a||{}).ignore||[]),c=pN(n);let x=-1;for(;++x<c.length;)DE(e,"text",u);function u(d,m){let p=-1,y;for(;++p<m.length;){const C=m[p],b=y?y.children:void 0;if(s(C,b?b.indexOf(C):void 0,y))return;y=C}if(y)return f(d,m)}function f(d,m){const p=m[m.length-1],y=c[x][0],C=c[x][1];let b=0;const v=p.children.indexOf(d);let k=!1,R=[];y.lastIndex=0;let _=y.exec(d.value);for(;_;){const N=_.index,T={index:_.index,input:_.input,stack:[...m,d]};let F=C(..._,T);if(typeof F=="string"&&(F=F.length>0?{type:"text",value:F}:void 0),F===!1?y.lastIndex=N+1:(b!==N&&R.push({type:"text",value:d.value.slice(b,N)}),Array.isArray(F)?R.push(...F):F&&R.push(F),b=N+_[0].length,k=!0),!y.global)break;_=y.exec(d.value)}return k?(b<d.value.length&&R.push({type:"text",value:d.value.slice(b)}),p.children.splice(v,1,...R)):R=[d],v+R.length}}function pN(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([mN(s[0]),EN(s[1])])}return n}function mN(e){return typeof e=="string"?new RegExp(hN(e),"g"):e}function EN(e){return typeof e=="function"?e:function(){return e}}function gN(e){wE(e,[/\r?\n|\r/g,yN])}function yN(){return{type:"break"}}function CN(){return function(e){gN(e)}}function Fm(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 Du="phrasing",Fu=["autolink","link","image","label"];function bN(){return{transforms:[wN],enter:{literalAutolink:BN,literalAutolinkEmail:wu,literalAutolinkHttp:wu,literalAutolinkWww:wu},exit:{literalAutolink:FN,literalAutolinkEmail:DN,literalAutolinkHttp:vN,literalAutolinkWww:kN}}}function AN(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Du,notInConstruct:Fu},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Du,notInConstruct:Fu},{character:":",before:"[ps]",after:"\\/",inConstruct:Du,notInConstruct:Fu}]}}function BN(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function wu(e){this.config.enter.autolinkProtocol.call(this,e)}function vN(e){this.config.exit.autolinkProtocol.call(this,e)}function kN(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 DN(e){this.config.exit.autolinkEmail.call(this,e)}function FN(e){this.exit(e)}function wN(e){wE(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,SN],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),_N]],{ignore:["link","linkReference"]})}function SN(e,n,a,i,s){let c="";if(!SE(s)||(/^w/i.test(n)&&(a=n+a,n="",c="http://"),!MN(a)))return!1;const x=NN(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 _N(e,n,a,i){return!SE(i,!0)||/[-\d_]$/.test(a)?!1:{type:"link",title:null,url:"mailto:"+n+"@"+a,children:[{type:"text",value:n+"@"+a}]}}function MN(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 NN(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=Fm(e,"(");let c=Fm(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 SE(e,n){const a=e.input.charCodeAt(e.index-1);return(e.index===0||di(a)||G0(a))&&(!n||a!==47)}_E.peek=IN;function TN(){this.buffer()}function RN(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function ON(){this.buffer()}function jN(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function zN(e){const n=this.resume(),a=this.stack[this.stack.length-1];a.type,a.identifier=mr(this.sliceSerialize(e)).toLowerCase(),a.label=n}function LN(e){this.exit(e)}function PN(e){const n=this.resume(),a=this.stack[this.stack.length-1];a.type,a.identifier=mr(this.sliceSerialize(e)).toLowerCase(),a.label=n}function UN(e){this.exit(e)}function IN(){return"["}function _E(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 HN(){return{enter:{gfmFootnoteCallString:TN,gfmFootnoteCall:RN,gfmFootnoteDefinitionLabelString:ON,gfmFootnoteDefinition:jN},exit:{gfmFootnoteCallString:zN,gfmFootnoteCall:LN,gfmFootnoteDefinitionLabelString:PN,gfmFootnoteDefinition:UN}}}function qN(e){let n=!1;return e&&e.firstLineBlank&&(n=!0),{handlers:{footnoteDefinition:a,footnoteReference:_E},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function a(i,s,c,x){const u=c.createTracker(x);let f=u.move("[^");const d=c.enter("footnoteDefinition"),m=c.enter("label");return f+=u.move(c.safe(c.associationId(i),{before:f,after:"]"})),m(),f+=u.move("]:"),i.children&&i.children.length>0&&(u.shift(4),f+=u.move((n?`
|
|
29
|
+
`:" ")+c.indentLines(c.containerFlow(i,u.current()),n?ME:$N))),d(),f}}function $N(e,n,a){return n===0?e:ME(e,n,a)}function ME(e,n,a){return(a?"":" ")+e}const GN=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];NE.peek=XN;function VN(){return{canContainEols:["delete"],enter:{strikethrough:YN},exit:{strikethrough:KN}}}function QN(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:GN}],handlers:{delete:NE}}}function YN(e){this.enter({type:"delete",children:[]},e)}function KN(e){this.exit(e)}function NE(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 XN(){return"~"}function ZN(e){return e.length}function JN(e,n){const a=n||{},i=(a.align||[]).concat(),s=a.stringLength||ZN,c=[],x=[],u=[],f=[];let d=0,m=-1;for(;++m<e.length;){const B=[],v=[];let k=-1;for(e[m].length>d&&(d=e[m].length);++k<e[m].length;){const R=WN(e[m][k]);if(a.alignDelimiters!==!1){const _=s(R);v[k]=_,(f[k]===void 0||_>f[k])&&(f[k]=_)}B.push(R)}x[m]=B,u[m]=v}let p=-1;if(typeof i=="object"&&"length"in i)for(;++p<d;)c[p]=wm(i[p]);else{const B=wm(i);for(;++p<d;)c[p]=B}p=-1;const y=[],C=[];for(;++p<d;){const B=c[p];let v="",k="";B===99?(v=":",k=":"):B===108?v=":":B===114&&(k=":");let R=a.alignDelimiters===!1?1:Math.max(1,f[p]-v.length-k.length);const _=v+"-".repeat(R)+k;a.alignDelimiters!==!1&&(R=v.length+R+k.length,R>f[p]&&(f[p]=R),C[p]=R),y[p]=_}x.splice(1,0,y),u.splice(1,0,C),m=-1;const b=[];for(;++m<x.length;){const B=x[m],v=u[m];p=-1;const k=[];for(;++p<d;){const R=B[p]||"";let _="",N="";if(a.alignDelimiters!==!1){const T=f[p]-(v[p]||0),F=c[p];F===114?_=" ".repeat(T):F===99?T%2?(_=" ".repeat(T/2+.5),N=" ".repeat(T/2-.5)):(_=" ".repeat(T/2),N=_):N=" ".repeat(T)}a.delimiterStart!==!1&&!p&&k.push("|"),a.padding!==!1&&!(a.alignDelimiters===!1&&R==="")&&(a.delimiterStart!==!1||p)&&k.push(" "),a.alignDelimiters!==!1&&k.push(_),k.push(R),a.alignDelimiters!==!1&&k.push(N),a.padding!==!1&&k.push(" "),(a.delimiterEnd!==!1||p!==d-1)&&k.push("|")}b.push(a.delimiterEnd===!1?k.join("").replace(/ +$/,""):k.join(""))}return b.join(`
|
|
30
|
+
`)}function WN(e){return e==null?"":String(e)}function wm(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 eT(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()),tT);return s(),x}function tT(e,n,a){return">"+(a?"":" ")+e}function nT(e,n){return Sm(e,n.inConstruct,!0)&&!Sm(e,n.notInConstruct,!1)}function Sm(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 _m(e,n,a,i){let s=-1;for(;++s<a.unsafe.length;)if(a.unsafe[s].character===`
|
|
31
|
+
`&&nT(a.stack,a.unsafe[s]))return/[ \t]/.test(i.before)?"":" ";return`\\
|
|
32
|
+
`}function rT(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 aT(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 iT(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 lT(e,n,a,i){const s=iT(a),c=e.value||"",x=s==="`"?"GraveAccent":"Tilde";if(aT(e,a)){const p=a.enter("codeIndented"),y=a.indentLines(c,sT);return p(),y}const u=a.createTracker(i),f=s.repeat(Math.max(rT(c,s)+1,3)),d=a.enter("codeFenced");let m=u.move(f);if(e.lang){const p=a.enter(`codeFencedLang${x}`);m+=u.move(a.safe(e.lang,{before:m,after:" ",encode:["`"],...u.current()})),p()}if(e.lang&&e.meta){const p=a.enter(`codeFencedMeta${x}`);m+=u.move(" "),m+=u.move(a.safe(e.meta,{before:m,after:`
|
|
33
|
+
`,encode:["`"],...u.current()})),p()}return m+=u.move(`
|
|
34
|
+
`),c&&(m+=u.move(c+`
|
|
35
|
+
`)),m+=u.move(f),d(),m}function sT(e,n,a){return(a?"":" ")+e}function td(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 oT(e,n,a,i){const s=td(a),c=s==='"'?"Quote":"Apostrophe",x=a.enter("definition");let u=a.enter("label");const f=a.createTracker(i);let d=f.move("[");return d+=f.move(a.safe(a.associationId(e),{before:d,after:"]",...f.current()})),d+=f.move("]: "),u(),!e.url||/[\0- \u007F]/.test(e.url)?(u=a.enter("destinationLiteral"),d+=f.move("<"),d+=f.move(a.safe(e.url,{before:d,after:">",...f.current()})),d+=f.move(">")):(u=a.enter("destinationRaw"),d+=f.move(a.safe(e.url,{before:d,after:e.title?" ":`
|
|
36
|
+
`,...f.current()}))),u(),e.title&&(u=a.enter(`title${c}`),d+=f.move(" "+s),d+=f.move(a.safe(e.title,{before:d,after:s,...f.current()})),d+=f.move(s),u()),x(),d}function cT(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 Os(e){return"&#x"+e.toString(16).toUpperCase()+";"}function L0(e,n,a){const i=ll(e),s=ll(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}}TE.peek=xT;function TE(e,n,a,i){const s=cT(a),c=a.enter("emphasis"),x=a.createTracker(i),u=x.move(s);let f=x.move(a.containerPhrasing(e,{after:s,before:u,...x.current()}));const d=f.charCodeAt(0),m=L0(i.before.charCodeAt(i.before.length-1),d,s);m.inside&&(f=Os(d)+f.slice(1));const p=f.charCodeAt(f.length-1),y=L0(i.after.charCodeAt(0),p,s);y.inside&&(f=f.slice(0,-1)+Os(p));const C=x.move(s);return c(),a.attentionEncodeSurroundingInfo={after:y.outside,before:m.outside},u+f+C}function xT(e,n,a){return a.options.emphasis||"*"}function uT(e,n){let a=!1;return Wf(e,function(i){if("value"in i&&/\r?\n|\r/.test(i.value)||i.type==="break")return a=!0,lf}),!!((!e.depth||e.depth<3)&&Vf(e)&&(n.options.setext||a))}function fT(e,n,a,i){const s=Math.max(Math.min(6,e.depth||1),1),c=a.createTracker(i);if(uT(e,a)){const m=a.enter("headingSetext"),p=a.enter("phrasing"),y=a.containerPhrasing(e,{...c.current(),before:`
|
|
37
|
+
`,after:`
|
|
38
|
+
`});return p(),m(),y+`
|
|
39
|
+
`+(s===1?"=":"-").repeat(y.length-(Math.max(y.lastIndexOf("\r"),y.lastIndexOf(`
|
|
40
|
+
`))+1))}const x="#".repeat(s),u=a.enter("headingAtx"),f=a.enter("phrasing");c.move(x+" ");let d=a.containerPhrasing(e,{before:"# ",after:`
|
|
41
|
+
`,...c.current()});return/^[\t ]/.test(d)&&(d=Os(d.charCodeAt(0))+d.slice(1)),d=d?x+" "+d:x,a.options.closeAtx&&(d+=" "+x),f(),u(),d}RE.peek=dT;function RE(e){return e.value||""}function dT(){return"<"}OE.peek=hT;function OE(e,n,a,i){const s=td(a),c=s==='"'?"Quote":"Apostrophe",x=a.enter("image");let u=a.enter("label");const f=a.createTracker(i);let d=f.move("![");return d+=f.move(a.safe(e.alt,{before:d,after:"]",...f.current()})),d+=f.move("]("),u(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(u=a.enter("destinationLiteral"),d+=f.move("<"),d+=f.move(a.safe(e.url,{before:d,after:">",...f.current()})),d+=f.move(">")):(u=a.enter("destinationRaw"),d+=f.move(a.safe(e.url,{before:d,after:e.title?" ":")",...f.current()}))),u(),e.title&&(u=a.enter(`title${c}`),d+=f.move(" "+s),d+=f.move(a.safe(e.title,{before:d,after:s,...f.current()})),d+=f.move(s),u()),d+=f.move(")"),x(),d}function hT(){return"!"}jE.peek=pT;function jE(e,n,a,i){const s=e.referenceType,c=a.enter("imageReference");let x=a.enter("label");const u=a.createTracker(i);let f=u.move("![");const d=a.safe(e.alt,{before:f,after:"]",...u.current()});f+=u.move(d+"]["),x();const m=a.stack;a.stack=[],x=a.enter("reference");const p=a.safe(a.associationId(e),{before:f,after:"]",...u.current()});return x(),a.stack=m,c(),s==="full"||!d||d!==p?f+=u.move(p+"]"):s==="shortcut"?f=f.slice(0,-1):f+=u.move("]"),f}function pT(){return"!"}zE.peek=mT;function zE(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 f;if(x.atBreak)for(;f=u.exec(i);){let d=f.index;i.charCodeAt(d)===10&&i.charCodeAt(d-1)===13&&d--,i=i.slice(0,d)+" "+i.slice(f.index+1)}}return s+i+s}function mT(){return"`"}function LE(e,n){const a=Vf(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))}PE.peek=ET;function PE(e,n,a,i){const s=td(a),c=s==='"'?"Quote":"Apostrophe",x=a.createTracker(i);let u,f;if(LE(e,a)){const m=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=m,p}u=a.enter("link"),f=a.enter("label");let d=x.move("[");return d+=x.move(a.containerPhrasing(e,{before:d,after:"](",...x.current()})),d+=x.move("]("),f(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(f=a.enter("destinationLiteral"),d+=x.move("<"),d+=x.move(a.safe(e.url,{before:d,after:">",...x.current()})),d+=x.move(">")):(f=a.enter("destinationRaw"),d+=x.move(a.safe(e.url,{before:d,after:e.title?" ":")",...x.current()}))),f(),e.title&&(f=a.enter(`title${c}`),d+=x.move(" "+s),d+=x.move(a.safe(e.title,{before:d,after:s,...x.current()})),d+=x.move(s),f()),d+=x.move(")"),u(),d}function ET(e,n,a){return LE(e,a)?"<":"["}UE.peek=gT;function UE(e,n,a,i){const s=e.referenceType,c=a.enter("linkReference");let x=a.enter("label");const u=a.createTracker(i);let f=u.move("[");const d=a.containerPhrasing(e,{before:f,after:"]",...u.current()});f+=u.move(d+"]["),x();const m=a.stack;a.stack=[],x=a.enter("reference");const p=a.safe(a.associationId(e),{before:f,after:"]",...u.current()});return x(),a.stack=m,c(),s==="full"||!d||d!==p?f+=u.move(p+"]"):s==="shortcut"?f=f.slice(0,-1):f+=u.move("]"),f}function gT(){return"["}function nd(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 yT(e){const n=nd(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 CT(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 IE(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 bT(e,n,a,i){const s=a.enter("list"),c=a.bulletCurrent;let x=e.ordered?CT(a):nd(a);const u=e.ordered?x==="."?")":".":yT(a);let f=n&&a.bulletLastUsed?x===a.bulletLastUsed:!1;if(!e.ordered){const m=e.children?e.children[0]:void 0;if((x==="*"||x==="-")&&m&&(!m.children||!m.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&&(f=!0),IE(a)===x&&m){let p=-1;for(;++p<e.children.length;){const y=e.children[p];if(y&&y.type==="listItem"&&y.children&&y.children[0]&&y.children[0].type==="thematicBreak"){f=!0;break}}}}f&&(x=u),a.bulletCurrent=x;const d=a.containerFlow(e,i);return a.bulletLastUsed=x,a.bulletCurrent=c,s(),d}function AT(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 BT(e,n,a,i){const s=AT(a);let c=a.bulletCurrent||nd(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 f=a.enter("listItem"),d=a.indentLines(a.containerFlow(e,u.current()),m);return f(),d;function m(p,y,C){return y?(C?"":" ".repeat(x))+p:(C?c:c+" ".repeat(x-c.length))+p}}function vT(e,n,a,i){const s=a.enter("paragraph"),c=a.enter("phrasing"),x=a.containerPhrasing(e,i);return c(),s(),x}const kT=Y0(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function DT(e,n,a,i){return(e.children.some(function(x){return kT(x)})?a.containerPhrasing:a.containerFlow).call(a,e,i)}function FT(e){const n=e.options.strong||"*";if(n!=="*"&&n!=="_")throw new Error("Cannot serialize strong with `"+n+"` for `options.strong`, expected `*`, or `_`");return n}HE.peek=wT;function HE(e,n,a,i){const s=FT(a),c=a.enter("strong"),x=a.createTracker(i),u=x.move(s+s);let f=x.move(a.containerPhrasing(e,{after:s,before:u,...x.current()}));const d=f.charCodeAt(0),m=L0(i.before.charCodeAt(i.before.length-1),d,s);m.inside&&(f=Os(d)+f.slice(1));const p=f.charCodeAt(f.length-1),y=L0(i.after.charCodeAt(0),p,s);y.inside&&(f=f.slice(0,-1)+Os(p));const C=x.move(s+s);return c(),a.attentionEncodeSurroundingInfo={after:y.outside,before:m.outside},u+f+C}function wT(e,n,a){return a.options.strong||"*"}function ST(e,n,a,i){return a.safe(e.value,i)}function _T(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 MT(e,n,a){const i=(IE(a)+(a.options.ruleSpaces?" ":"")).repeat(_T(a));return a.options.ruleSpaces?i.slice(0,-1):i}const qE={blockquote:eT,break:_m,code:lT,definition:oT,emphasis:TE,hardBreak:_m,heading:fT,html:RE,image:OE,imageReference:jE,inlineCode:zE,link:PE,linkReference:UE,list:bT,listItem:BT,paragraph:vT,root:DT,strong:HE,text:ST,thematicBreak:MT};function NT(){return{enter:{table:TT,tableData:Mm,tableHeader:Mm,tableRow:OT},exit:{codeText:jT,table:RT,tableData:Su,tableHeader:Su,tableRow:Su}}}function TT(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 RT(e){this.exit(e),this.data.inTable=void 0}function OT(e){this.enter({type:"tableRow",children:[]},e)}function Su(e){this.exit(e)}function Mm(e){this.enter({type:"tableCell",children:[]},e)}function jT(e){let n=this.resume();this.data.inTable&&(n=n.replace(/\\([\\|])/g,zT));const a=this.stack[this.stack.length-1];a.type,a.value=n,this.exit(e)}function zT(e,n){return n==="|"?n:e}function LT(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:f,tableRow:u}};function x(C,b,B,v){return d(m(C,B,v),C.align)}function u(C,b,B,v){const k=p(C,B,v),R=d([k]);return R.slice(0,R.indexOf(`
|
|
43
|
+
`))}function f(C,b,B,v){const k=B.enter("tableCell"),R=B.enter("phrasing"),_=B.containerPhrasing(C,{...v,before:c,after:c});return R(),k(),_}function d(C,b){return JN(C,{align:b,alignDelimiters:i,padding:a,stringLength:s})}function m(C,b,B){const v=C.children;let k=-1;const R=[],_=b.enter("table");for(;++k<v.length;)R[k]=p(v[k],b,B);return _(),R}function p(C,b,B){const v=C.children;let k=-1;const R=[],_=b.enter("tableRow");for(;++k<v.length;)R[k]=f(v[k],C,b,B);return _(),R}function y(C,b,B){let v=qE.inlineCode(C,b,B);return B.stack.includes("tableCell")&&(v=v.replace(/\|/g,"\\$&")),v}}function PT(){return{exit:{taskListCheckValueChecked:Nm,taskListCheckValueUnchecked:Nm,paragraph:IT}}}function UT(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:HT}}}function Nm(e){const n=this.stack[this.stack.length-2];n.type,n.checked=e.type==="taskListCheckValueChecked"}function IT(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 HT(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 f=qE.listItem(e,n,a,{...i,...u.current()});return c&&(f=f.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,d)),f;function d(m){return m+x}}function qT(){return[bN(),HN(),VN(),NT(),PT()]}function $T(e){return{extensions:[AN(),qN(e),QN(),LT(e),UT()]}}const GT={tokenize:ZT,partial:!0},$E={tokenize:JT,partial:!0},GE={tokenize:WT,partial:!0},VE={tokenize:eR,partial:!0},VT={tokenize:tR,partial:!0},QE={name:"wwwAutolink",tokenize:KT,previous:KE},YE={name:"protocolAutolink",tokenize:XT,previous:XE},ta={name:"emailAutolink",tokenize:YT,previous:ZE},_r={};function QT(){return{text:_r}}let oi=48;for(;oi<123;)_r[oi]=ta,oi++,oi===58?oi=65:oi===91&&(oi=97);_r[43]=ta;_r[45]=ta;_r[46]=ta;_r[95]=ta;_r[72]=[ta,YE];_r[104]=[ta,YE];_r[87]=[ta,QE];_r[119]=[ta,QE];function YT(e,n,a){const i=this;let s,c;return x;function x(p){return!xf(p)||!ZE.call(i,i.previous)||rd(i.events)?a(p):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),u(p))}function u(p){return xf(p)?(e.consume(p),u):p===64?(e.consume(p),f):a(p)}function f(p){return p===46?e.check(VT,m,d)(p):p===45||p===95||En(p)?(c=!0,e.consume(p),f):m(p)}function d(p){return e.consume(p),s=!0,f}function m(p){return c&&s&&Bn(i.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),n(p)):a(p)}}function KT(e,n,a){const i=this;return s;function s(x){return x!==87&&x!==119||!KE.call(i,i.previous)||rd(i.events)?a(x):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(GT,e.attempt($E,e.attempt(GE,c),a),a)(x))}function c(x){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),n(x)}}function XT(e,n,a){const i=this;let s="",c=!1;return x;function x(p){return(p===72||p===104)&&XE.call(i,i.previous)&&!rd(i.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),s+=String.fromCodePoint(p),e.consume(p),u):a(p)}function u(p){if(Bn(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),f}return a(p)}function f(p){return p===47?(e.consume(p),c?d:(c=!0,f)):a(p)}function d(p){return p===null||O0(p)||Dt(p)||di(p)||G0(p)?a(p):e.attempt($E,e.attempt(GE,m),a)(p)}function m(p){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),n(p)}}function ZT(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 JT(e,n,a){let i,s,c;return x;function x(d){return d===46||d===95?e.check(VE,f,u)(d):d===null||Dt(d)||di(d)||d!==45&&G0(d)?f(d):(c=!0,e.consume(d),x)}function u(d){return d===95?i=!0:(s=i,i=void 0),e.consume(d),x}function f(d){return s||i||!c?a(d):n(d)}}function WT(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(VE,n,c)(x):x===null||Dt(x)||di(x)?n(x):(e.consume(x),s)}function c(x){return x===41&&i++,e.consume(x),s}}function eR(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||Dt(u)||di(u)?n(u):a(u)}function s(u){return u===null||u===40||u===91||Dt(u)||di(u)?n(u):i(u)}function c(u){return Bn(u)?x(u):a(u)}function x(u){return u===59?(e.consume(u),i):Bn(u)?(e.consume(u),x):a(u)}}function tR(e,n,a){return i;function i(c){return e.consume(c),s}function s(c){return En(c)?a(c):n(c)}}function KE(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||Dt(e)}function XE(e){return!Bn(e)}function ZE(e){return!(e===47||xf(e))}function xf(e){return e===43||e===45||e===46||e===95||En(e)}function rd(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 nR={tokenize:xR,partial:!0};function rR(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:sR,continuation:{tokenize:oR},exit:cR}},text:{91:{name:"gfmFootnoteCall",tokenize:lR},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:aR,resolveTo:iR}}}}function aR(e,n,a){const i=this;let s=i.events.length;const c=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let x;for(;s--;){const f=i.events[s][1];if(f.type==="labelImage"){x=f;break}if(f.type==="gfmFootnoteCall"||f.type==="labelLink"||f.type==="label"||f.type==="image"||f.type==="link")break}return u;function u(f){if(!x||!x._balanced)return a(f);const d=mr(i.sliceSerialize({start:x.end,end:i.now()}));return d.codePointAt(0)!==94||!c.includes(d.slice(1))?a(f):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(f),e.exit("gfmFootnoteCallLabelMarker"),n(f))}}function iR(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 lR(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"),f}function f(p){return p!==94?a(p):(e.enter("gfmFootnoteCallMarker"),e.consume(p),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",d)}function d(p){if(c>999||p===93&&!x||p===null||p===91||Dt(p))return a(p);if(p===93){e.exit("chunkString");const y=e.exit("gfmFootnoteCallString");return s.includes(mr(i.sliceSerialize(y)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(p),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),n):a(p)}return Dt(p)||(x=!0),c++,e.consume(p),p===92?m:d}function m(p){return p===91||p===92||p===93?(e.consume(p),c++,d):d(p)}}function sR(e,n,a){const i=this,s=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let c,x=0,u;return f;function f(b){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(b),e.exit("gfmFootnoteDefinitionLabelMarker"),d}function d(b){return b===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(b),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",m):a(b)}function m(b){if(x>999||b===93&&!u||b===null||b===91||Dt(b))return a(b);if(b===93){e.exit("chunkString");const B=e.exit("gfmFootnoteDefinitionLabelString");return c=mr(i.sliceSerialize(B)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(b),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),y}return Dt(b)||(u=!0),x++,e.consume(b),b===92?p:m}function p(b){return b===91||b===92||b===93?(e.consume(b),x++,m):m(b)}function y(b){return b===58?(e.enter("definitionMarker"),e.consume(b),e.exit("definitionMarker"),s.includes(c)||s.push(c),lt(e,C,"gfmFootnoteDefinitionWhitespace")):a(b)}function C(b){return n(b)}}function oR(e,n,a){return e.check($s,n,e.attempt(nR,n,a))}function cR(e){e.exit("gfmFootnoteDefinition")}function xR(e,n,a){const i=this;return lt(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 uR(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 f=-1;for(;++f<x.length;)if(x[f][0]==="enter"&&x[f][1].type==="strikethroughSequenceTemporary"&&x[f][1]._close){let d=f;for(;d--;)if(x[d][0]==="exit"&&x[d][1].type==="strikethroughSequenceTemporary"&&x[d][1]._open&&x[f][1].end.offset-x[f][1].start.offset===x[d][1].end.offset-x[d][1].start.offset){x[f][1].type="strikethroughSequence",x[d][1].type="strikethroughSequence";const m={type:"strikethrough",start:Object.assign({},x[d][1].start),end:Object.assign({},x[f][1].end)},p={type:"strikethroughText",start:Object.assign({},x[d][1].end),end:Object.assign({},x[f][1].start)},y=[["enter",m,u],["enter",x[d][1],u],["exit",x[d][1],u],["enter",p,u]],C=u.parser.constructs.insideSpan.null;C&&Xn(y,y.length,0,V0(C,x.slice(d+1,f),u)),Xn(y,y.length,0,[["exit",p,u],["enter",x[f][1],u],["exit",x[f][1],u],["exit",m,u]]),Xn(x,d-1,f-d+3,y),f=d+y.length-2;break}}for(f=-1;++f<x.length;)x[f][1].type==="strikethroughSequenceTemporary"&&(x[f][1].type="data");return x}function c(x,u,f){const d=this.previous,m=this.events;let p=0;return y;function y(b){return d===126&&m[m.length-1][1].type!=="characterEscape"?f(b):(x.enter("strikethroughSequenceTemporary"),C(b))}function C(b){const B=ll(d);if(b===126)return p>1?f(b):(x.consume(b),p++,C);if(p<2&&!a)return f(b);const v=x.exit("strikethroughSequenceTemporary"),k=ll(b);return v._open=!k||k===2&&!!B,v._close=!B||B===2&&!!k,u(b)}}}class fR{constructor(){this.map=[]}add(n,a,i){dR(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 dR(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 hR(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 pR(){return{flow:{null:{name:"table",tokenize:mR,resolveAll:ER}}}}function mR(e,n,a){const i=this;let s=0,c=0,x;return u;function u(z){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 K=X>-1?i.events[X][1].type:null,V=K==="tableHead"||K==="tableRow"?F:f;return V===F&&i.parser.lazy[i.now().line]?a(z):V(z)}function f(z){return e.enter("tableHead"),e.enter("tableRow"),d(z)}function d(z){return z===124||(x=!0,c+=1),m(z)}function m(z){return z===null?a(z):Re(z)?c>1?(c=0,i.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(z),e.exit("lineEnding"),C):a(z):tt(z)?lt(e,m,"whitespace")(z):(c+=1,x&&(x=!1,s+=1),z===124?(e.enter("tableCellDivider"),e.consume(z),e.exit("tableCellDivider"),x=!0,m):(e.enter("data"),p(z)))}function p(z){return z===null||z===124||Dt(z)?(e.exit("data"),m(z)):(e.consume(z),z===92?y:p)}function y(z){return z===92||z===124?(e.consume(z),p):p(z)}function C(z){return i.interrupt=!1,i.parser.lazy[i.now().line]?a(z):(e.enter("tableDelimiterRow"),x=!1,tt(z)?lt(e,b,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(z):b(z))}function b(z){return z===45||z===58?v(z):z===124?(x=!0,e.enter("tableCellDivider"),e.consume(z),e.exit("tableCellDivider"),B):T(z)}function B(z){return tt(z)?lt(e,v,"whitespace")(z):v(z)}function v(z){return z===58?(c+=1,x=!0,e.enter("tableDelimiterMarker"),e.consume(z),e.exit("tableDelimiterMarker"),k):z===45?(c+=1,k(z)):z===null||Re(z)?N(z):T(z)}function k(z){return z===45?(e.enter("tableDelimiterFiller"),R(z)):T(z)}function R(z){return z===45?(e.consume(z),R):z===58?(x=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(z),e.exit("tableDelimiterMarker"),_):(e.exit("tableDelimiterFiller"),_(z))}function _(z){return tt(z)?lt(e,N,"whitespace")(z):N(z)}function N(z){return z===124?b(z):z===null||Re(z)?!x||s!==c?T(z):(e.exit("tableDelimiterRow"),e.exit("tableHead"),n(z)):T(z)}function T(z){return a(z)}function F(z){return e.enter("tableRow"),O(z)}function O(z){return z===124?(e.enter("tableCellDivider"),e.consume(z),e.exit("tableCellDivider"),O):z===null||Re(z)?(e.exit("tableRow"),n(z)):tt(z)?lt(e,O,"whitespace")(z):(e.enter("data"),L(z))}function L(z){return z===null||z===124||Dt(z)?(e.exit("data"),O(z)):(e.consume(z),z===92?$:L)}function $(z){return z===92||z===124?(e.consume(z),L):L(z)}}function ER(e,n){let a=-1,i=!0,s=0,c=[0,0,0,0],x=[0,0,0,0],u=!1,f=0,d,m,p;const y=new fR;for(;++a<e.length;){const C=e[a],b=C[1];C[0]==="enter"?b.type==="tableHead"?(u=!1,f!==0&&(Tm(y,n,f,d,m),m=void 0,f=0),d={type:"table",start:Object.assign({},b.start),end:Object.assign({},b.end)},y.add(a,0,[["enter",d,n]])):b.type==="tableRow"||b.type==="tableDelimiterRow"?(i=!0,p=void 0,c=[0,0,0,0],x=[0,a+1,0,0],u&&(u=!1,m={type:"tableBody",start:Object.assign({},b.start),end:Object.assign({},b.end)},y.add(a,0,[["enter",m,n]])),s=b.type==="tableDelimiterRow"?2:m?3:1):s&&(b.type==="data"||b.type==="tableDelimiterMarker"||b.type==="tableDelimiterFiller")?(i=!1,x[2]===0&&(c[1]!==0&&(x[0]=x[1],p=C0(y,n,c,s,void 0,p),c=[0,0,0,0]),x[2]=a)):b.type==="tableCellDivider"&&(i?i=!1:(c[1]!==0&&(x[0]=x[1],p=C0(y,n,c,s,void 0,p)),c=x,x=[c[1],a,0,0])):b.type==="tableHead"?(u=!0,f=a):b.type==="tableRow"||b.type==="tableDelimiterRow"?(f=a,c[1]!==0?(x[0]=x[1],p=C0(y,n,c,s,a,p)):x[1]!==0&&(p=C0(y,n,x,s,a,p)),s=0):s&&(b.type==="data"||b.type==="tableDelimiterMarker"||b.type==="tableDelimiterFiller")&&(x[3]=a)}for(f!==0&&Tm(y,n,f,d,m),y.consume(n.events),a=-1;++a<n.events.length;){const C=n.events[a];C[0]==="enter"&&C[1].type==="table"&&(C[1]._align=hR(n.events,a))}return e}function C0(e,n,a,i,s,c){const x=i===1?"tableHeader":i===2?"tableDelimiter":"tableData",u="tableContent";a[0]!==0&&(c.end=Object.assign({},il(n.events,a[0])),e.add(a[0],0,[["exit",c,n]]));const f=il(n.events,a[1]);if(c={type:x,start:Object.assign({},f),end:Object.assign({},f)},e.add(a[1],0,[["enter",c,n]]),a[2]!==0){const d=il(n.events,a[2]),m=il(n.events,a[3]),p={type:u,start:Object.assign({},d),end:Object.assign({},m)};if(e.add(a[2],0,[["enter",p,n]]),i!==2){const y=n.events[a[2]],C=n.events[a[3]];if(y[1].end=Object.assign({},C[1].end),y[1].type="chunkText",y[1].contentType="text",a[3]>a[2]+1){const b=a[2]+1,B=a[3]-a[2]-1;e.add(b,B,[])}}e.add(a[3]+1,0,[["exit",p,n]])}return s!==void 0&&(c.end=Object.assign({},il(n.events,s)),e.add(s,0,[["exit",c,n]]),c=void 0),c}function Tm(e,n,a,i,s){const c=[],x=il(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 il(e,n){const a=e[n],i=a[0]==="enter"?"start":"end";return a[1][i]}const gR={name:"tasklistCheck",tokenize:CR};function yR(){return{text:{91:gR}}}function CR(e,n,a){const i=this;return s;function s(f){return i.previous!==null||!i._gfmTasklistFirstContentOfListItem?a(f):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(f),e.exit("taskListCheckMarker"),c)}function c(f){return Dt(f)?(e.enter("taskListCheckValueUnchecked"),e.consume(f),e.exit("taskListCheckValueUnchecked"),x):f===88||f===120?(e.enter("taskListCheckValueChecked"),e.consume(f),e.exit("taskListCheckValueChecked"),x):a(f)}function x(f){return f===93?(e.enter("taskListCheckMarker"),e.consume(f),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),u):a(f)}function u(f){return Re(f)?n(f):tt(f)?e.check({tokenize:bR},n,a)(f):a(f)}}function bR(e,n,a){return lt(e,i,"whitespace");function i(s){return s===null?a(s):n(s)}}function AR(e){return lE([QT(),rR(),uR(e),pR(),yR()])}const BR={};function vR(e){const n=this,a=e||BR,i=n.data(),s=i.micromarkExtensions||(i.micromarkExtensions=[]),c=i.fromMarkdownExtensions||(i.fromMarkdownExtensions=[]),x=i.toMarkdownExtensions||(i.toMarkdownExtensions=[]);s.push(AR(a)),c.push(qT()),x.push($T(a))}const kR=[vR,CN],DR="/tmp/",JE="conductor-attachment.invalid";function FR(e){const n=Ck(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://${JE}/?path=${encodeURIComponent(s.path)})`,i=s.end}return a+e.slice(i)}function wR(e){if(!e)return null;try{const n=new URL(e);return n.hostname===JE?n.searchParams.get("path"):null}catch{return null}}function SR({src:e,alt:n,...a}){const i=typeof e=="string"&&e.startsWith(DR)?e:null,[s,c]=S.useState(null);return S.useEffect(()=>{if(!i)return;let x=!1;return Ue.localImage(i).then(u=>{x||c(u)}),()=>{x=!0}},[i]),i?s?g.jsx("img",{src:s,alt:n??"",...a}):null:g.jsx("img",{src:e,alt:n??"",...a})}function WE(e){if(!e?.startsWith("/"))return null;const n=e.match(/:([1-9]\d*)(?::\d+)?$/);return W8(n?e.slice(0,-n[0].length):e)?e:null}function uf({href:e,children:n,onClick:a,...i}){const s=wR(e),c=A2(e??null),x=WE(e)??c,[u,f]=S.useState(!1);return s?g.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:[g.jsx(q0,{size:12,className:"shrink-0"}),g.jsx("span",{className:"truncate",children:n})]}):g.jsxs(g.Fragment,{children:[g.jsx("a",{href:e,...i,onClick:d=>{a?.(d),!(!x||d.defaultPrevented||d.button!==0||d.metaKey||d.ctrlKey||d.shiftKey||d.altKey)&&(d.preventDefault(),f(!0))},children:n}),x&&u?g.jsx(e5,{reference:x,onClose:()=>f(!1)}):null]})}function e5({reference:e,onClose:n}){const[a,i]=S.useState(null),[s,c]=S.useState(null),x=S.useRef(null);return S.useEffect(()=>{let u=!1;return i(null),c(null),Ue.filePreview(e).then(f=>{u||i(f)},f=>{u||c(f instanceof Error?f.message:"Could not read source file")}),()=>{u=!0}},[e]),S.useEffect(()=>{a?.line&&x.current?.scrollIntoView({block:"center"})},[a?.line]),S.useEffect(()=>{const u=f=>{f.key==="Escape"&&n()};return window.addEventListener("keydown",u),()=>window.removeEventListener("keydown",u)},[n]),Hs.createPortal(g.jsxs(g.Fragment,{children:[g.jsx("div",{className:"fixed inset-0 z-[60] bg-black/60",onClick:n,"aria-hidden":!0}),g.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:[g.jsxs("header",{className:"flex items-center gap-3 border-b border-border-soft px-4 py-3",children:[g.jsxs("div",{className:"min-w-0 flex-1",children:[g.jsx("h2",{className:"text-base font-semibold",children:"Source"}),g.jsx("p",{className:"truncate font-mono text-xs text-muted",children:a?.path??e})]}),g.jsx("button",{type:"button",onClick:n,"aria-label":"Close source preview",className:"flex size-8 shrink-0 items-center justify-center rounded-full text-muted active:bg-surface-2",children:g.jsx(Dr,{size:18})})]}),g.jsxs("div",{className:"min-h-0 flex-1 overflow-auto",children:[!a&&!s?g.jsx(za,{label:"Reading source…"}):null,s?g.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)?g.jsx(MR,{preview:a}):g.jsx(NR,{preview:a,lineRef:x}):null]})]})]}),document.body)}function _R(e){return e.toLowerCase().endsWith(".md")}function MR({preview:e}){return g.jsxs("div",{className:"p-4 text-sm leading-6 text-text",children:[g.jsx(fi,{children:e.content}),g.jsx(t5,{preview:e})]})}function NR({preview:e,lineRef:n}){const a=VF(e.path),{text:i,tokens:s}=S.useMemo(()=>{const c=e.content.split(`
|
|
44
|
+
`),x=KF(e.content,a);return{text:c,tokens:x?.length===c.length?x:null}},[e.content,a]);return g.jsxs(g.Fragment,{children:[g.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,f=u===e.line,d=s?.[x];return g.jsxs("div",{ref:f?n:void 0,className:De("grid grid-cols-[auto_1fr] gap-3 whitespace-pre",f&&"rounded bg-accent-soft text-text"),children:[g.jsx("span",{className:"select-none text-right text-faint",children:u}),g.jsx("code",{children:d?.length?g.jsx(Pf,{nodes:d}):c||" "})]},u)})}),g.jsx(t5,{preview:e})]})}function t5({preview:e}){return e.truncated?g.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 TR({className:e,children:n,node:a,...i}){const s=QF(e),c=OR(n),x=A2(e?null:c);return x?g.jsx(RR,{reference:x,...i,children:n}):g.jsx("code",{className:e,...i,children:s&&c!==null?g.jsx(G2,{text:c,language:s}):n})}function RR({reference:e,children:n,...a}){const[i,s]=S.useState(!1);return g.jsxs(g.Fragment,{children:[g.jsx("button",{type:"button",title:`Open ${e}`,onClick:()=>s(!0),className:"max-w-full align-baseline text-left",children:g.jsx("code",{...a,className:"text-accent underline decoration-dotted underline-offset-2",children:n})}),i?g.jsx(e5,{reference:e,onClose:()=>s(!1)}):null]})}function OR(e){return typeof e=="string"?e:Array.isArray(e)&&e.every(n=>typeof n=="string")?e.join(""):null}const jR={a:uf,code:TR,img:SR},fi=S.memo(function({children:n}){return g.jsx("div",{className:"md",children:g.jsx(cN,{remarkPlugins:kR,components:jR,children:FR(n)})})}),zR=1500,LR=400,n5=12,PR=2,UR=n5+8,IR=2,HR=1.1,qR=200,$R=420,GR=.6,r5=()=>window.matchMedia("(prefers-reduced-motion: reduce)").matches,_u=(e,n,a)=>Math.min(a,Math.max(n,e)),VR=e=>e.scrollHeight-e.clientHeight-e.scrollTop<=IR?e.scrollTop+e.clientHeight:e.scrollTop+UR,QR=(e,n)=>e.length===n.length&&e.every((a,i)=>a.top===n[i].top&&a.preview===n[i].preview);function YR(e,n,a){const i=_u(n,0,e.scrollHeight-e.clientHeight);if(r5())return e.scrollTop=i,a(),()=>{};const s=e.clientHeight*HR;Math.abs(i-e.scrollTop)>s&&(e.scrollTop=_u(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=_u(Math.abs(x)*GR,qR,$R),f=performance.now();let d=0,m=!1;const p=()=>{m||(m=!0,cancelAnimationFrame(d),e.removeEventListener("touchstart",p),e.removeEventListener("wheel",p))};e.addEventListener("touchstart",p,{passive:!0}),e.addEventListener("wheel",p,{passive:!0});const y=C=>{const b=Math.min(1,(C-f)/u);if(e.scrollTop=c+x*(1-(1-b)**5),b<1){d=requestAnimationFrame(y);return}p(),a()};return d=requestAnimationFrame(y),p}function KR({scroller:e}){const[n,a]=S.useState([]),[i,s]=S.useState(0),[c,x]=S.useState(!1),[u,f]=S.useState(!1),d=S.useRef([]),m=S.useRef(!1),p=S.useRef(!1),y=S.useRef(0),C=S.useRef(0),b=S.useRef(0),B=S.useRef(()=>{}),v=S.useCallback(()=>{p.current||(clearTimeout(y.current),m.current=!1,x(!1))},[]),k=S.useCallback(()=>{m.current=!0,x(!0),clearTimeout(y.current),y.current=window.setTimeout(v,zR)},[v]),R=S.useCallback(()=>{const z=e.current;if(!z)return;const X=z.getBoundingClientRect().top-z.scrollTop,K=Array.from(z.querySelectorAll("[data-user-msg]"),V=>({top:V.getBoundingClientRect().top-X,preview:V.dataset.userMsg??"",ts:V.dataset.msgTs??null,state:V.dataset.msgState??null,node:V}));d.current=QR(d.current,K)?d.current:K,a(d.current),s(VR(z))},[e]),_=S.useCallback(()=>{b.current||(b.current=requestAnimationFrame(()=>{b.current=0,R()}))},[R]);S.useEffect(()=>{const z=e.current;if(!z)return;const X=()=>{C.current=performance.now()},K=()=>{!m.current&&performance.now()-C.current>LR||_0()||(k(),_())},V=()=>{_0()&&v()};z.addEventListener("touchmove",X,{passive:!0}),z.addEventListener("wheel",X,{passive:!0}),z.addEventListener("scroll",K,{passive:!0}),document.addEventListener("selectionchange",V);const Z=()=>{m.current&&_()},Q=new ResizeObserver(Z);Q.observe(z);const U=new MutationObserver(Z);return U.observe(z,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["open"]}),()=>{z.removeEventListener("touchmove",X),z.removeEventListener("wheel",X),z.removeEventListener("scroll",K),document.removeEventListener("selectionchange",V),Q.disconnect(),U.disconnect(),B.current(),b.current&&cancelAnimationFrame(b.current),clearTimeout(y.current)}},[e,k,v,_]);const N=z=>{const X=e.current,K=d.current[z];X&&K&&(B.current(),B.current=YR(X,K.top-n5,()=>{r5()||K.node.firstElementChild?.animate([{boxShadow:"0 0 0 2px var(--color-accent)"},{boxShadow:"0 0 0 2px transparent"}],{duration:700,easing:"ease-out"})}),k())},T=S.useCallback(()=>{p.current=!1,f(!1),k()},[k]);if(n.length<PR)return null;let F=-1;for(let z=0;z<n.length;z++)n[z].top<=i&&(F=z);const O=F>0?F-1:null,L=F+1<n.length?F+1:null,$=c||u;return g.jsxs(g.Fragment,{children:[g.jsx("div",{className:De("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",$?"translate-y-0 opacity-100":"translate-y-3 opacity-0"),children:g.jsxs("nav",{"aria-label":"Jump to your messages",onFocus:k,className:De("flex h-12 items-stretch overflow-hidden rounded-full border border-border bg-surface-2 shadow-lg shadow-black/60",$?"pointer-events-auto":"pointer-events-none"),children:[g.jsx(Rm,{dir:"up",onClick:()=>O!==null&&N(O),disabled:O===null}),g.jsxs("button",{type:"button",onClick:()=>{R(),p.current=!0,f(!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:[g.jsx(Sb,{size:16,className:"shrink-0"}),g.jsxs("span",{className:"font-mono text-[13px] tabular-nums",children:[g.jsx("span",{className:"text-text",children:F+1||"–"}),g.jsxs("span",{className:"text-muted",children:["/",n.length]})]})]}),g.jsx(Rm,{dir:"down",onClick:()=>L!==null&&N(L),disabled:L===null})]})}),u?g.jsx(ZR,{marks:n,current:F,onPick:z=>{T(),N(z)},onClose:T}):null]})}function XR({mark:e}){if(e.state==="failed")return g.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&&S2(e.ts);return n?g.jsx("span",{className:"shrink-0 text-[11px] text-muted tabular-nums",children:n}):null}function Rm({dir:e,onClick:n,disabled:a}){const i=e==="up"?b3:xl;return g.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:g.jsx(i,{size:19})})}function ZR({marks:e,current:n,onPick:a,onClose:i}){const s=S.useRef(null),c=S.useRef(null);return S.useEffect(()=>{s.current?.focus({preventScroll:!0}),c.current?.scrollIntoView({block:"center"})},[]),g.jsxs(g.Fragment,{children:[g.jsx("div",{className:"fixed inset-0 z-50 bg-black/60",onClick:i,"aria-hidden":!0}),g.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:[g.jsxs("header",{className:"flex shrink-0 items-center gap-2 border-b border-border-soft px-4 py-2.5",children:[g.jsx("h2",{className:"flex-1 text-[15px] font-semibold",children:"Your messages"}),g.jsx("span",{className:"font-mono text-[12px] text-faint tabular-nums",children:e.length}),g.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:g.jsx(Dr,{size:19})})]}),g.jsx("div",{className:"min-h-0 flex-1 overflow-y-auto overscroll-contain py-1",children:e.map((x,u)=>g.jsxs("button",{ref:u===n?c:void 0,type:"button",onClick:()=>a(u),"aria-current":u===n?"true":void 0,className:De("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:[g.jsx("span",{className:De("w-5 shrink-0 text-right font-mono text-[11px] tabular-nums",u===n?"text-accent":"text-muted"),children:u+1}),g.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"}),g.jsx(XR,{mark:x})]},x.top))})]})]})}function a5({patch:e,truncated:n,className:a}){const i=S.useMemo(()=>e.split(`
|
|
45
|
+
`),[e]);return g.jsxs("pre",{className:De("overflow-x-auto font-mono text-[11.5px] leading-[1.5]",a),children:[i.map((s,c)=>g.jsx("div",{className:De("whitespace-pre",JR(s)),children:s||" "},c)),n?g.jsx("div",{className:"mt-2 text-faint",children:"… diff truncated …"}):null]})}function JR(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 i5({sessionId:e,workspaceId:n,working:a,workingSince:i,turnStartedAt:s,queued:c,poll:x,onFork:u}){const{entries:f,loading:d,error:m}=jk(e,x??!0),p=Me(V=>V.pending),y=Me(V=>V.removePending),C=r2(),b=wr(),B=S.useRef(null),v=S.useRef(!0),k=S.useMemo(()=>eO(f),[f]),R=S.useMemo(()=>ZF(f),[f]),_=S.useMemo(()=>{const V=$p(f).filter(Z=>Z!==R);return new Set(V.map(Ds))},[f,R]),N=S.useMemo(()=>new Map($p(f).map(V=>[V,JF(f,V,s)])),[f,s]),T=async V=>{await(V.sessionId?Ue.dismissParked(V.sessionId):Ue.dismissPrompt(V.workspaceId)).catch(()=>{}),b.invalidateQueries({queryKey:["state"]})},F=new Set(f.filter(V=>V.role==="user").map(V=>V.text.trim())),O=p.filter(V=>V.sessionId===e),L=O.filter(V=>!(mp(V)&&F.has(V.text.trim()))),$=c?.text.trim()||null,z=$&&!F.has($)&&!O.some(V=>V.text.trim()===$)?c:null;S.useEffect(()=>{const V=new Set(f.filter(Z=>Z.role==="user").map(Z=>Z.text.trim()));for(const Z of p)Z.sessionId===e&&mp(Z)&&V.has(Z.text.trim())&&y(Z.id)},[f,p,e,y]);const X=()=>{const V=B.current;V&&(v.current=V.scrollHeight-V.scrollTop-V.clientHeight<120)};if(S.useLayoutEffect(()=>{const V=B.current;V&&v.current&&(V.scrollTop=V.scrollHeight)},[f,L.length,a]),S.useEffect(()=>{v.current=!0},[e]),S.useEffect(()=>{const V=B.current;if(!V)return;const Z=new ResizeObserver(()=>{v.current&&(V.scrollTop=V.scrollHeight)});return Z.observe(V),()=>Z.disconnect()},[]),!e&&!z)return g.jsx(vn,{children:"No active session in this workspace."});const K=f.length===0&&L.length===0&&!z;return g.jsxs("div",{className:"relative flex min-h-0 min-w-0 flex-1",children:[g.jsx("div",{ref:B,onScroll:X,className:"min-w-0 flex-1 overflow-y-auto overflow-x-hidden px-3 py-3",children:d&&K?g.jsx(za,{label:"Loading transcript…"}):m&&K?g.jsx(vn,{children:m}):K&&!a?g.jsx(vn,{children:"No messages yet."}):g.jsxs("div",{className:"flex min-w-0 flex-col gap-2.5",children:[k.map(V=>V.kind==="steps"?g.jsx(tO,{entries:V.entries},V.key):g.jsxs(S.Fragment,{children:[g.jsx(l5,{e:V.e}),_.has(V.key)?g.jsx(Om,{text:V.e.text,at:V.e.ts,startedAt:N.get(V.e),through:V.e.rowid,onFork:u}):null]},V.key)),R?g.jsx(Om,{text:R.text,at:R.ts,startedAt:N.get(R),working:a,onFork:u}):null,L.map(V=>g.jsx(rO,{p:V,onRetry:()=>C({id:V.id,sessionId:V.sessionId,workspaceId:V.workspaceId,text:V.text,queue:V.queue}),onDismiss:()=>y(V.id)},V.id)),z?g.jsx(nO,{queued:z,onRetry:e?()=>C({id:`queued:${z.sessionId??z.workspaceId}:${z.createdAt}`,sessionId:e,workspaceId:n,text:z.text}):void 0,onDismiss:()=>T(z)}):null,a?g.jsx(iO,{since:i}):null]})}),g.jsx(KR,{scroller:B})]})}const Ds=e=>`${e.rowid}-${e.id}`,WR=(e,n)=>e.entries.length===n.entries.length&&e.entries.every((a,i)=>a===n.entries[i]);function eO(e){const n=[];let a=[];const i=()=>{if(a.length>1)n.push({kind:"steps",key:`steps-${Ds(a[0])}`,entries:a});else for(const s of a)n.push({kind:"entry",key:Ds(s),e:s});a=[]};for(const s of e){if(s.role==="tool"||s.role==="thinking"){a.push(s);continue}i(),n.push({kind:"entry",key:Ds(s),e:s})}return i(),n}const tO=S.memo(function({entries:n}){const a=n.filter(c=>c.error).length,i=n[n.length-1],s=i.role==="thinking"?"Thinking":i.text;return g.jsxs("details",{className:"group/steps min-w-0 overflow-hidden rounded-xl border border-border-soft bg-surface/40",children:[g.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:[g.jsx("span",{className:"shrink-0 font-mono text-[11px] text-faint transition-transform group-open/steps:rotate-90",children:"▸"}),g.jsxs("span",{className:"shrink-0 text-[12.5px] text-muted",children:[n.length," steps"]}),g.jsx("span",{className:"min-w-0 flex-1 truncate text-[11px] text-faint group-open/steps:invisible",children:s}),a?g.jsxs("span",{className:"shrink-0 text-[11px] text-del",children:[a," failed"]}):null]}),g.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=>g.jsx(l5,{e:c},Ds(c)))})]})},WR);function nO({queued:e,onRetry:n,onDismiss:a}){const i=e.status==="failed",s=!i&&!!e.sessionId;return g.jsxs("div",{className:"flex flex-col items-end gap-1","data-user-msg":N0(e.text),"data-msg-state":"queued",children:[g.jsx(js,{className:De("max-w-[85%] bg-accent-soft text-text opacity-60",i&&"border border-del/40"),children:g.jsx(fi,{children:e.text})}),i?g.jsxs("div",{className:"flex items-center gap-2 pr-1 text-[11px] text-del",children:[g.jsx(_f,{size:11,className:"shrink-0"}),g.jsx("span",{className:"max-w-[55vw] truncate",children:e.error||"Didn’t send"}),n?g.jsx("button",{type:"button",onClick:n,className:"font-semibold underline underline-offset-2",children:"Retry"}):null,g.jsx("button",{type:"button",onClick:a,className:"text-faint underline underline-offset-2",children:"Dismiss"})]}):g.jsxs("span",{className:"flex items-center gap-1 pr-1 text-[11px] text-faint",children:[g.jsx(Oa,{size:11,className:"animate-spin"}),e.reason??"The relay is sending this",s?g.jsx($0,{className:"ml-1"}):null]})]})}function rO({p:e,onRetry:n,onDismiss:a}){return e.status==="error"?g.jsxs("div",{className:"flex flex-col items-end gap-1","data-user-msg":N0(e.text),"data-msg-state":"failed",children:[g.jsx(js,{className:"max-w-[85%] border border-del/40 bg-accent-soft text-text",children:g.jsx(fi,{children:e.text})}),g.jsxs("div",{className:"flex items-center gap-2 pr-1 text-[11px] text-del",children:[g.jsx(_f,{size:11,className:"shrink-0"}),g.jsx("span",{className:"max-w-[55vw] truncate",children:e.error||"Didn’t send"}),g.jsx("button",{type:"button",onClick:n,className:"font-semibold underline underline-offset-2",children:"Retry"}),g.jsx("button",{type:"button",onClick:a,className:"text-faint underline underline-offset-2",children:"Dismiss"})]})]}):g.jsxs("div",{className:"flex flex-col items-end gap-1","data-user-msg":N0(e.text),"data-msg-state":"sending",children:[g.jsx(js,{className:"max-w-[85%] bg-accent-soft text-text opacity-60",children:g.jsx(fi,{children:e.text})}),g.jsxs("span",{className:"flex items-center gap-1 pr-1 text-[11px] text-faint",children:[g.jsx(Oa,{size:11,className:"animate-spin"}),"Sending…"]})]})}const l5=S.memo(function({e:n}){return n.role==="user"?g.jsxs("div",{className:"flex flex-col items-end gap-0.5","data-user-msg":N0(n.text),"data-msg-ts":n.ts,children:[g.jsxs(js,{className:De("max-w-[85%] bg-accent-soft text-text",n.queued&&"opacity-60"),children:[n.queued?g.jsx(ff,{children:"queued"}):null,g.jsx(fi,{children:n.text})]}),g.jsx("span",{className:"pr-1 text-[11px] text-faint",children:tF(n.ts)})]}):n.role==="tool"?g.jsx(lO,{e:n}):n.role==="thinking"?g.jsxs("details",{className:"group/think px-1",children:[g.jsxs("summary",{className:"cursor-pointer select-none list-none text-[11px] font-semibold uppercase tracking-wide text-faint [&::-webkit-details-marker]:hidden",children:[g.jsx("span",{className:"mr-1 inline-block transition-transform group-open/think:rotate-90",children:"▸"}),"Thinking"]}),g.jsx("div",{className:"mt-1 border-l-2 border-border-soft pl-3 text-[13px] italic leading-relaxed text-muted",children:g.jsx(fi,{children:n.text})})]}):n.role==="system"?g.jsx("div",{className:"px-2 text-center text-[11px] text-faint",children:n.text}):g.jsx("div",{className:"flex flex-col items-start",children:g.jsx(js,{className:"max-w-[92%] px-0.5",children:g.jsx(fi,{children:n.text})})})});function Om({text:e,at:n,startedAt:a,working:i,through:s,onFork:c}){const[x,u]=S.useState(!1),[f,d]=S.useState(!1),[m,p]=S.useState(!1),[y,C]=S.useState(null),[b,B]=S.useState(()=>Date.now());S.useEffect(()=>{const N=setInterval(()=>B(Date.now()),6e4);return()=>clearInterval(N)},[]);const v=async()=>{try{await aO(e),u(!0),window.setTimeout(()=>u(!1),1800)}catch{u(!1)}},k=a?Date.parse(n)-Date.parse(a):Number.NaN,R=[k>0?D2(k):null,nF(n,b)].filter(Boolean).join(" · "),_=async N=>{if(!(!c||m)){p(!0),C(null),d(!1);try{await c({...N,through:s})}catch(T){C(T instanceof Error?T.message:"Could not fork this chat")}finally{p(!1)}}};return g.jsxs("div",{className:"flex max-w-full flex-col items-start gap-1",children:[g.jsxs("div",{className:"flex items-center gap-2",children:[!i&&R?g.jsx("span",{className:"text-[11px] tabular-nums text-faint",children:R}):null,g.jsx("button",{type:"button",onClick:()=>{v()},"aria-label":x?"Copied response":"Copy response",className:"flex size-7 items-center justify-center rounded-lg border border-border-soft bg-surface/70 text-muted transition active:bg-surface-2",children:x?g.jsx(ea,{size:14,className:"text-accent"}):g.jsx(wf,{size:14})}),c?g.jsxs("div",{className:"relative",children:[g.jsxs("div",{className:"flex items-center overflow-hidden rounded-lg border border-border-soft bg-surface/70 text-muted",children:[g.jsxs("button",{type:"button",onClick:()=>{_({thinking:!0,tools:!1})},disabled:m,"aria-label":s?"Fork chat from this response":"Fork chat with reasoning",className:"flex h-7 items-center gap-1 px-2 text-[11px] font-medium transition active:bg-surface-2 disabled:opacity-50",children:[m?g.jsx(Oa,{size:13,className:"animate-spin"}):g.jsx(HC,{size:13}),"Fork"]}),g.jsx("button",{type:"button",onClick:()=>d(N=>!N),disabled:m,"aria-label":"Choose fork transcript type","aria-haspopup":"menu","aria-expanded":f,className:"flex size-7 items-center justify-center border-l border-border-soft transition active:bg-surface-2 disabled:opacity-50",children:g.jsx(xl,{size:14,className:De("transition-transform",f&&"rotate-180")})})]}),f?g.jsxs(g.Fragment,{children:[g.jsx("div",{className:"fixed inset-0 z-20",onClick:()=>d(!1),"aria-hidden":!0}),g.jsxs("div",{role:"menu","aria-label":"Fork transcript type",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:[g.jsx(Mu,{label:"Concise",detail:"Messages only",onClick:()=>{_({thinking:!1,tools:!1})}}),g.jsx(Mu,{label:"With reasoning",detail:"Messages and reasoning",onClick:()=>{_({thinking:!0,tools:!1})}}),g.jsx(Mu,{label:"Full transcript",detail:"Messages, reasoning, and tools",onClick:()=>{_({thinking:!0,tools:!0})}})]})]}):null]}):null]}),y?g.jsxs("span",{className:"max-w-[85vw] text-[11px] text-del",children:[y,e2(y)?g.jsx($0,{className:"ml-1"}):null]}):null]})}function Mu({label:e,detail:n,onClick:a}){return g.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:[g.jsx("span",{className:"text-[12px] font-medium text-text",children:e}),g.jsx("span",{className:"text-[11px] text-faint",children:n})]})}async function aO(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")}function iO({since:e}){const[n,a]=S.useState(()=>Date.now());return S.useEffect(()=>{if(!e)return;a(Date.now());const i=setInterval(()=>a(Date.now()),1e3);return()=>clearInterval(i)},[e]),g.jsxs("div",{className:"fade-in flex items-center justify-start gap-2",children:[g.jsxs("div",{className:"flex items-center gap-1 px-0.5 py-3",children:[g.jsx("span",{className:"typing-dot"}),g.jsx("span",{className:"typing-dot"}),g.jsx("span",{className:"typing-dot"})]}),e?g.jsx("span",{className:"text-[11px] tabular-nums text-faint",children:D2(n-e)}):null]})}const lO=S.memo(function({e:n}){const[a,i]=S.useState(!1);if(n.error&&!n.tool)return g.jsx("div",{className:"overflow-hidden rounded-xl border border-del/30 bg-del/5 px-3 py-2",children:g.jsx(Nu,{text:n.text,className:"line-clamp-4 text-del/80"})});const s=WE(n.detail),c=n.images??[];return!n.detail&&!n.output&&!c.length?g.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:[g.jsx("span",{className:"shrink-0 font-mono text-[11px] text-faint",children:"·"}),g.jsx("span",{className:"max-w-full truncate text-[12.5px] text-muted",children:n.text})]}):g.jsxs("details",{open:a,onToggle:x=>i(x.currentTarget.open),className:De("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:[g.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:[g.jsx("span",{className:"shrink-0 font-mono text-[11px] text-faint transition-transform group-open/tool:rotate-90",children:"▸"}),g.jsx("span",{className:"max-w-full truncate text-[12.5px] text-muted",children:n.text}),n.detail?s?g.jsx(uf,{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}):g.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?g.jsx("span",{className:"ml-auto shrink-0 text-[11px] text-del",children:"failed"}):null]}),g.jsxs("div",{className:"flex min-w-0 flex-col gap-2 border-t border-border-soft px-3 py-2",children:[n.detail?s?g.jsx(uf,{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}):g.jsx(Nu,{text:n.detail,className:"text-muted",language:GF(n.tool)}):null,n.output?g.jsxs("div",{className:De("min-w-0",n.detail&&"border-t border-border-soft pt-2"),children:[g.jsx(ff,{children:n.error?"error":n.diff?"changes":"output"}),n.diff?g.jsx(a5,{patch:n.output}):g.jsx(Nu,{text:n.output,className:n.error?"text-del/80":"text-muted"})]}):null,a&&c.length?g.jsxs("div",{className:De("flex min-w-0 flex-col gap-2",(n.detail||n.output)&&"border-t border-border-soft pt-2"),children:[g.jsx(ff,{children:cO(c.length,"image")}),c.map(x=>g.jsx(oO,{reference:x},x))]}):null]})]})}),sO="whitespace-pre-wrap font-mono text-[11.5px] leading-relaxed [overflow-wrap:anywhere]";function Nu({text:e,className:n,language:a}){return g.jsx("pre",{className:De(sO,n),children:a?g.jsx(G2,{text:e,language:a}):e})}function oO({reference:e}){const[n,a]=S.useState(null),[i,s]=S.useState(!1);return S.useEffect(()=>{let c=!1;return Ue.toolImage(e).then(x=>!c&&a(x)).catch(()=>!c&&s(!0)),()=>{c=!0}},[e]),i?g.jsx("span",{className:"text-[11px] text-faint",children:"Image unavailable."}):n?g.jsx("img",{src:n,alt:"Tool output",className:"max-w-full rounded-lg border border-border-soft"}):g.jsx(za,{label:"Loading image…"})}const cO=(e,n)=>`${e} ${n}${e===1?"":"s"}`;function js({children:e,className:n}){return g.jsx("div",{className:De("min-w-0 rounded-2xl px-3.5 py-2.5 text-[14px] leading-relaxed [overflow-wrap:anywhere]",n),children:e})}function ff({children:e}){return g.jsx("div",{className:"mb-1 text-[10px] font-semibold uppercase tracking-wide text-faint",children:e})}function xO({workspace:e}){const[n,a]=k8(),i=n.get("session"),{data:s,isLoading:c}=t2(e.id,!1),x=s?.sessions??[],u=(i&&x.some(d=>d.id===i)?i:null)??x[0]?.id??null,f=[e.repo_name,e.branch].filter(Boolean).join(" · ");return g.jsxs("div",{className:"flex h-full min-w-0 flex-col overflow-hidden",children:[g.jsx(T0,{title:kr(e),subtitle:f,menu:!0,right:g.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:[g.jsx(F8,{size:12}),"Archived"]})}),x.length>1?g.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(d=>g.jsx("button",{type:"button",onClick:()=>a({session:d.id},{replace:!0}),className:De("pill shrink-0",d.id===u&&"pill-active"),children:g.jsx("span",{className:"max-w-36 truncate",children:d.title||"Untitled"})},d.id))}):null,!c&&!u?g.jsx(vn,{children:"This workspace was archived with no chat in it."}):g.jsx(i5,{sessionId:u,workspaceId:e.id,turnStartedAt:x.find(d=>d.id===u)?.turn_started_at,poll:!1}),g.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 uO="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",fO="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",dO="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",hO="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:uO,cursor:fO,openai:dO,opencode:hO},mO={claude:"#D97757",openai:"#FFF"};function EO(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 s5({agentType:e,model:n,className:a}){const i=EO(e,n);if(!i)return g.jsx(S8,{"aria-hidden":"true",className:a});const s=pO[i];return g.jsx("span",{"aria-hidden":"true",className:De("inline-block shrink-0 bg-current",a),style:{color:mO[i],WebkitMaskImage:`url("${s}")`,maskImage:`url("${s}")`,WebkitMaskPosition:"center",maskPosition:"center",WebkitMaskRepeat:"no-repeat",maskRepeat:"no-repeat",WebkitMaskSize:"contain",maskSize:"contain"}})}const gO=[5,7,9,11,13,15],yO={low:1,medium:2,high:3,xhigh:4,max:5,ultracode:6};function CO({effort:e,className:n}){const a=yO[e]??0;return g.jsx("span",{"aria-hidden":"true",className:De("flex h-[15px] shrink-0 items-end gap-[1.5px]",n),children:gO.map((i,s)=>g.jsx("span",{className:De("w-0.5 rounded-full bg-current transition-opacity",s<a?"opacity-100":"opacity-20"),style:{height:i}},i))})}function bO({value:e,models:n,onSelect:a,open:i,onOpenChange:s,isFetching:c=!1,isError:x=!1,empty:u="No models are cached yet. Open a model picker in a chat first.",className:f,beforeOptions:d,renderTrigger:m}){const[p,y]=S.useState(!1),C=i??p,b=v=>{const k=typeof v=="function"?v(C):v;i===void 0&&y(k),s?.(k)},B=Ek(n);return g.jsxs("div",{className:"relative",children:[m?m({picking:C,toggle:()=>b(v=>!v)}):g.jsxs("button",{type:"button",onClick:()=>b(v=>!v),"aria-haspopup":"menu","aria-expanded":C,className:De("ctl flex max-w-40 items-center gap-1",e&&"ctl-staged",f),children:[g.jsx("span",{className:"truncate",children:e??"Model"}),g.jsx(xl,{size:13,className:"shrink-0"})]}),C?g.jsxs(g.Fragment,{children:[g.jsx("button",{type:"button","aria-label":"Close model picker",onClick:()=>b(!1),className:"fixed inset-0 z-30 cursor-default"}),g.jsxs("div",{className:"absolute bottom-full left-0 z-40 mb-2 max-h-64 w-56 overflow-y-auto rounded-xl border border-border bg-surface-2 py-1 shadow-xl shadow-black/40",children:[d,c?g.jsx(Sf,{size:10,className:"mx-3 my-1.5 animate-spin text-faint"}):null,B.length?B.map(v=>g.jsxs("fieldset",{className:"m-0 min-w-0 border-0 p-0",children:[g.jsx("legend",{className:"px-3 pb-0.5 pt-1.5 text-[11px] font-medium text-faint",children:v.label}),v.models.map(k=>g.jsxs("button",{type:"button",onClick:()=>{b(!1),a(k)},className:"flex w-full items-center gap-2 px-3 py-2 text-left text-sm active:bg-surface",children:[g.jsx("span",{className:"min-w-0 flex-1 truncate",children:k}),g.jsx(ea,{size:13,className:De("shrink-0 text-accent",e!==k&&"invisible")})]},k))]},v.label)):g.jsx("div",{className:"px-3 py-2 text-sm text-muted",children:c?"Reading Conductor’s model list…":u}),x?g.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]})}const df={low:"Low",medium:"Medium",high:"High",xhigh:"Extra high",max:"Max",ultracode:"Ultracode"},Tu=Object.keys(df);function o5(e){return Tu[(Tu.indexOf(e??"")+1)%Tu.length]}function c5({model:e,providerModel:n,agentType:a,models:i,modelPickerOpen:s,onModelPickerOpenChange:c,modelsFetching:x=!1,modelsError:u=!1,fast:f,effort:d,plan:m,showEmptyEffort:p=!1,modelStaged:y=!1,fastStaged:C=!1,effortStaged:b=!1,planStaged:B=!1,onModelChange:v,onFastChange:k,onEffortChange:R,onPlanChange:_,status:N}){return g.jsxs("div",{className:"min-w-0 flex-1",children:[g.jsxs("div",{className:"flex min-w-0 items-center gap-0.5",children:[g.jsx("div",{className:"min-w-0",children:g.jsx(bO,{value:e,models:i,open:s,onOpenChange:c,isFetching:x,isError:u,onSelect:v,renderTrigger:({picking:T,toggle:F})=>g.jsxs("button",{type:"button",onClick:F,"aria-label":`Change model, currently ${e}`,"aria-haspopup":"menu","aria-expanded":T,className:De("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",y&&"text-accent"),children:[g.jsx(s5,{agentType:a,model:n,className:"size-[15px]"}),g.jsx("span",{className:"truncate",children:e})]})})}),g.jsx("button",{type:"button",onClick:k,"aria-label":`Fast mode ${f===void 0?"default":f?"on":"off"}`,"aria-pressed":f===!0,className:De("flex size-8 shrink-0 items-center justify-center rounded-md text-muted transition active:bg-surface-2 active:text-text",f&&"text-text",C&&"text-accent"),children:g.jsx(L8,{size:17})}),d||p?g.jsxs("button",{type:"button",onClick:R,"aria-label":`Reasoning effort: ${d?df[d]:"default"}`,className:De("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",b&&"text-accent"),children:[g.jsx(CO,{effort:d??""}),g.jsx("span",{className:"max-[340px]:hidden",children:d?df[d]:"Effort"})]}):null,g.jsx("button",{type:"button",onClick:_,"aria-label":`Plan mode ${m===void 0?"default":m?"on":"off"}`,"aria-pressed":m===!0,className:De("flex size-8 shrink-0 items-center justify-center rounded-md text-muted transition active:bg-surface-2 active:text-text",m&&"text-text",B&&"text-accent"),children:g.jsx(M8,{size:17})})]}),N?g.jsx("div",{className:"px-2 pt-0.5 text-[11px] text-faint",children:N}):null]})}const AO=600*1e3,BO={};function b0(e,n){return e===n?void 0:e}function vO({session:e,workspaceId:n}){const[a,i]=S.useState(!1),s=Me(F=>F.agentDrafts[e.id])??BO,c=Me(F=>F.stageAgent),x=Me(F=>F.pending.some(O=>O.sessionId===e.id&&O.status==="sending")),u=Rf(),f=u.data?.groups.find(F=>F.agentType===(e.agent_type??"unknown")),d=!!f&&Date.now()-f.updatedAt<AO,m=Ok(e,n,a&&!d),p=m.data??f?.models??[],y=F=>c(e.id,F),C=e.claude_effort_level??void 0,b=e.permission_mode==="plan",B=!!e.fast_mode,v=s.effort??C,k=s.plan??b,R=s.fast??B,_=Object.keys(s).length>0,N=s.model??(k2(e.model,p)||"Model"),T=s.model??e.model;return g.jsx(c5,{model:N,providerModel:T,agentType:e.agent_type,models:p,modelPickerOpen:a,onModelPickerOpenChange:i,modelsFetching:m.isFetching||u.isFetching,modelsError:m.isError,fast:R,effort:v,plan:k,modelStaged:s.model!==void 0,fastStaged:s.fast!==void 0,effortStaged:s.effort!==void 0,planStaged:s.plan!==void 0,onModelChange:F=>y({model:b0(F,s.model)}),onFastChange:()=>y({fast:b0(!R,B)}),onEffortChange:()=>y({effort:b0(o5(v),C)}),onPlanChange:()=>y({plan:b0(!k,b)}),status:_?x?"Applying…":"Applies when you send":void 0})}function kO({session:e,sessionId:n,workspaceId:a,working:i,actuator:s,focusDraft:c=!1,onDraftFocused:x}){const u=n??a,f=Me(ue=>ue.drafts[u]??""),d=Me(ue=>ue.setDraft),m=Me(ue=>ue.moveDraft),p=Me(ue=>ue.setFocusedDraft),y=Me(ue=>ue.online),C=Me(ue=>ue.clearWorking),b=r2(),B=wr(),[v,k]=S.useState(!1),[R,_]=S.useState(null),N=S.useRef(null),T=S.useRef(null),F=S.useRef(new Set),O=S.useRef(0),[L,$]=S.useState([]),[z,X]=S.useState(!1),K=L.filter(ue=>ue.sessionId===n),V=K.filter(ue=>ue.status==="ready"),Z=K.some(ue=>ue.status==="uploading");S.useEffect(()=>{n&&m(a,n)},[a,n,m]),S.useEffect(()=>(document.activeElement===N.current&&p(u),()=>{Me.getState().focusedDraft===u&&p(null)}),[u,p]);const Q=()=>{const ue=N.current;ue&&(ue.style.height="auto",ue.style.height=`${Math.min(ue.scrollHeight,160)}px`)};S.useEffect(Q,[f]),S.useEffect(()=>{if(!c)return;const ue=N.current;ue&&(ue.focus({preventScroll:!0}),ue.setSelectionRange(ue.value.length,ue.value.length),x?.())},[c,x]);const U=(ue=!1)=>{const Ze=[...V.map(ut=>ut.token),f.trim()].filter(Boolean).join(`
|
|
46
|
+
`);!Ze||Z||!n||!y||(b({sessionId:n,workspaceId:a,text:Ze,queue:ue}),d(u,""),$(ut=>ut.filter(bt=>bt.sessionId!==n)))},H=ue=>{F.current.add(ue),$(Ze=>Ze.filter(ut=>ut.id!==ue))},re=async ue=>{if(!(!n||!y))for(const Ze of Array.from(ue)){const ut=crypto.randomUUID();$(bt=>[...bt,{id:ut,sessionId:n,name:Ze.name||"attachment",path:"",bytes:Ze.size,token:"",status:"uploading"}]);try{const bt=await Ue.uploadAttachment(n,a,Ze);if(F.current.delete(ut))continue;$(ie=>ie.map(He=>He.id===ut?{...He,...bt.attachment,status:"ready"}:He))}catch(bt){if(F.current.delete(ut))continue;$(ie=>ie.map(He=>He.id===ut?{...He,status:"error",error:bt instanceof Error?bt.message:"Upload failed"}:He))}}},fe=ue=>{ue?.length&&re(ue)},w=ue=>Array.from(ue.dataTransfer.types).includes("Files"),j=ue=>{w(ue)&&(ue.preventDefault(),O.current+=1,X(!0))},J=ue=>{w(ue)&&(O.current-=1,O.current<=0&&(O.current=0,X(!1)))},M=ue=>{w(ue)&&(ue.preventDefault(),ue.dataTransfer.dropEffect="copy")},te=ue=>{w(ue)&&(ue.preventDefault(),O.current=0,X(!1),fe(ue.dataTransfer.files))},ge=async()=>{if(!(!n||v||!y)){k(!0),_(null);try{const ue=await Ue.stop(n,a);ue.ok?(C(n),await B.invalidateQueries({queryKey:["sessions",a]}),B.invalidateQueries({queryKey:["state"]})):_(ue.error||"Stop failed")}catch(ue){_(ue instanceof Error?ue.message:"Stop failed")}finally{k(!1)}}},de=!n,Ce=s?.precise&&s.available,Qe=i&&!!n,ke=(!!f.trim()||V.length>0)&&!Z;return g.jsxs("div",{className:"pb-safe border-t border-border-soft bg-bg px-3 pt-2",children:[y?!Ce&&g.jsxs("div",{className:"mb-1.5 flex items-center gap-1.5 px-1 text-[11px] text-faint",children:[g.jsx(db,{size:12}),s?.caveat||"Sends to the focused session"]}):g.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:[g.jsx(Mf,{size:12}),"Offline — drafts are saved, sending resumes when the relay is back"]}),R?g.jsxs("div",{className:"mb-2 rounded-lg border border-del/40 bg-del/10 px-3 py-1.5 text-xs text-del",children:[g.jsx("button",{type:"button",onClick:()=>_(null),className:"block w-full text-left",children:R}),e2(R)?g.jsx($0,{className:"mt-1 inline-block"}):null]}):null,g.jsxs("fieldset",{"aria-label":"Message composer",onDragEnter:j,onDragLeave:J,onDragOver:M,onDrop:te,className:`m-0 min-w-0 rounded-2xl border border-border bg-surface p-2 has-[textarea:focus]:border-accent/60 ${z?"border-accent bg-accent-soft":""}`,children:[g.jsx("input",{ref:T,type:"file",multiple:!0,className:"hidden",onChange:ue=>{fe(ue.target.files),ue.target.value=""}}),K.length?g.jsx("div",{className:"flex flex-wrap gap-1 px-2 pb-1",children:K.map(ue=>g.jsxs("div",{title:ue.error??ue.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:[ue.status==="uploading"?g.jsx(Oa,{size:12,className:"shrink-0 animate-spin"}):null,g.jsx("span",{className:"truncate",children:ue.status==="error"?`${ue.name}: ${ue.error}`:ue.name}),g.jsx("button",{type:"button",onClick:()=>H(ue.id),"aria-label":`Remove ${ue.name}`,className:"flex size-5 shrink-0 items-center justify-center rounded active:bg-surface",children:g.jsx(Dr,{size:13})})]},ue.id))}):null,z?g.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,g.jsx("textarea",{ref:N,rows:1,value:f,disabled:de,placeholder:de?"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:ue=>d(u,ue.target.value),onFocus:()=>p(u),onBlur:()=>{Me.getState().focusedDraft===u&&p(null),Ku()},onPaste:ue=>{const Ze=ue.clipboardData.files;Ze.length&&(ue.preventDefault(),fe(Ze))},onKeyDown:ue=>{ue.key==="Enter"&&!ue.shiftKey&&!ue.nativeEvent.isComposing&&(ue.preventDefault(),U(ue.metaKey||ue.ctrlKey))}}),g.jsxs("div",{className:"mt-1 flex items-start gap-1",children:[e?g.jsx(vO,{session:e,workspaceId:a}):g.jsx("span",{className:"flex-1"}),g.jsx("button",{type:"button",onClick:()=>T.current?.click(),disabled:de||!y,"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:g.jsx(q0,{size:17})}),Qe?g.jsx("button",{type:"button",onClick:ge,disabled:v||!y,"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:v?g.jsx("span",{className:"size-4 animate-spin rounded-full border-2 border-border border-t-text"}):g.jsx(O8,{size:14,fill:"currentColor"})}):null,Qe&&!ke?null:g.jsx("button",{type:"button",onClick:()=>U(),disabled:de||!ke||!y,"aria-label":"Send",className:"flex size-8 shrink-0 items-center justify-center rounded-lg bg-accent text-white transition active:scale-95 disabled:bg-surface-2 disabled:text-faint",children:g.jsx(dy,{size:18})})]})]})]})}function DO(e){document.visibilityState==="visible"&&window.open(e,"_blank","noopener,noreferrer")}const Ru="flex size-9 shrink-0 items-center justify-center rounded-full text-muted transition active:bg-surface-2 disabled:opacity-40";function FO({workspaceId:e}){const n=Nk(e),a=wr(),i=Me(y=>y.online),[s,c]=S.useState(null),[x,u]=S.useState(null),f=n.data,d=async y=>{if(!s){c(y?"start":"stop"),u(null);try{const C=y?await Ue.startDevServer(e):await Ue.stopDevServer(e);a.setQueryData(["dev-server",e],C),C.ok?y&&C.url&&DO(C.url):u(C.error??`Could not ${y?"start":"stop"} the dev server`)}catch(C){u(C instanceof Error?C.message:`Could not ${y?"start":"stop"} the dev server`)}finally{c(null),a.invalidateQueries({queryKey:["dev-server",e]})}}},m=f?.running?"Forward dev server to tailnet":"Start and forward dev server",p=f&&!f.available;return g.jsxs(g.Fragment,{children:[f?.forwarded&&f.url?g.jsx("a",{href:f.url,target:"_blank",rel:"noreferrer","aria-label":`Open dev server${f.port?` on port ${f.port}`:""}`,title:f.url,className:Ru,children:g.jsx(xC,{size:18})}):g.jsx("button",{type:"button",onClick:()=>{d(!0)},disabled:!i||!!s||!!p||n.isLoading,"aria-label":m,title:p?f.error:m,className:Ru,children:s==="start"||n.isLoading?g.jsx(Oa,{size:18,className:"animate-spin"}):f?.running?g.jsx(lC,{size:18}):g.jsx(_A,{size:18,fill:"currentColor"})}),f?.running?g.jsx("button",{type:"button",onClick:()=>{d(!1)},disabled:!i||!!s,"aria-label":"Stop dev server",className:Ru,children:s==="stop"?g.jsx(Oa,{size:18,className:"animate-spin"}):g.jsx(O8,{size:15,fill:"currentColor"})}):null,x?g.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,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"mergeable":return"merge";case"draft":return"draft";default:return null}}const SO={push:{label:"Uncommitted changes",tone:"text-working",icon:g.jsx(S3,{size:14})},resolve:{label:"Merge conflicts",tone:"text-muted",icon:g.jsx(_f,{size:14})},merge:{label:"Ready to merge",tone:"text-add"},draft:{label:"Draft",tone:"text-muted"},merged:{label:"Merged",tone:"text-pr-merged",icon:g.jsx(_8,{size:14})}},_O={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 MO({ws:e,local:n}){const a=wr(),[i,s]=S.useState(!1),[c,x]=S.useState(!1),[u,f]=S.useState(null);if(u?.ok&&e.pr_status!=="merged")return g.jsxs(jm,{children:[g.jsx(ea,{size:15,className:"shrink-0 text-add"}),g.jsx("span",{className:"truncate font-medium text-add",children:u.msg})]});const d=wO(e,n);if(!d)return null;const{label:m,tone:p,icon:y}=SO[d],C=async()=>{x(!0),f(null);try{const B=await Ue.merge(e.id);B.ok?(f({ok:!0,msg:`Merged${B.method?` (${B.method})`:""}`}),a.invalidateQueries({queryKey:["state"]}),a.invalidateQueries({queryKey:["diff",e.id]})):(f({ok:!1,msg:B.error||"Merge failed"}),s(!1))}catch(B){f({ok:!1,msg:B instanceof Error?B.message:String(B)}),s(!1)}finally{x(!1)}},b=async B=>{if(!e.active_session_id)return f({ok:!1,msg:"No active session to message"});x(!0),f(null);try{const v=await Ue.sendPrompt(e.active_session_id,_O[B],e.id);f(v.ok?{ok:!0,msg:"Asked the agent"}:{ok:!1,msg:v.error||"Send failed"})}catch(v){f({ok:!1,msg:v instanceof Error?v.message:String(v)})}finally{x(!1)}};return g.jsxs(jm,{tint:d==="merge"?"add":d==="merged"?"merged":void 0,children:[e.pr_number?g.jsxs("a",{href:e.pr_url??void 0,target:"_blank",rel:"noreferrer",className:De("flex shrink-0 items-center gap-0.5 rounded-md px-1.5 py-0.5 font-mono text-[11px] active:bg-surface",d==="merged"?"bg-pr-merged/15 text-pr-merged":"bg-surface-2 text-muted"),children:["#",e.pr_number,g.jsx(uy,{size:12})]}):null,g.jsxs("span",{className:De("flex items-center gap-1 truncate font-medium",p),children:[y,m]}),g.jsxs("div",{className:"ml-auto flex shrink-0 items-center gap-2",children:[u&&!u.ok?g.jsx("span",{className:"max-w-36 truncate text-[11px] text-del",children:u.msg}):null,d==="draft"||d==="merged"?null:d==="merge"?i?g.jsxs(g.Fragment,{children:[g.jsx(NO,{onClick:()=>s(!1)}),g.jsx(A0,{onClick:C,busy:c,className:"bg-add text-black",children:"Confirm"})]}):g.jsxs(A0,{onClick:()=>s(!0),className:"bg-add text-black",children:[g.jsx(_8,{size:13}),"Merge"]}):d==="push"?g.jsx(A0,{onClick:()=>b("push"),busy:c,className:"bg-working text-black",children:"Commit & push"}):g.jsx(A0,{onClick:()=>b("resolve"),busy:c,className:"border border-border bg-surface-2 text-text",children:"Resolve"})]})]})}function A0({onClick:e,busy:n,className:a,children:i}){return g.jsxs("button",{type:"button",onClick:e,disabled:n,className:De("flex items-center gap-1.5 rounded-lg px-2.5 py-1 text-xs font-semibold transition active:scale-95 disabled:opacity-60",a),children:[n?g.jsx(Oa,{size:13,className:"animate-spin"}):null,i]})}function NO({onClick:e}){return g.jsx("button",{type:"button",onClick:e,className:"rounded-lg px-2 py-1 text-xs text-muted active:bg-surface-2",children:"Cancel"})}const TO={add:"bg-add/10",merged:"bg-pr-merged/10"};function jm({tint:e,children:n}){return g.jsx("div",{className:De("sticky top-0 z-10 flex items-center gap-2 border-b border-border-soft px-3 py-2 backdrop-blur",e?TO[e]:"bg-surface/95"),children:n})}function RO({workspaceId:e}){const{data:n}=Tf(),a=n?.workspaces.find(c=>c.id===e),{data:i}=n2(e),s=i?{dirty:i.dirty,unpushed:i.unpushed}:void 0;return g.jsxs("div",{className:"pb-safe flex flex-1 flex-col overflow-y-auto",children:[a?g.jsx(MO,{ws:a,local:s}):null,g.jsx(OO,{workspaceId:e})]})}function OO({workspaceId:e}){const{data:n,isLoading:a,isError:i,error:s}=n2(e);return a&&!n?g.jsx(za,{label:"Computing diff…"}):i?g.jsx(vn,{children:s?.message}):n?n.files.length===0?g.jsxs(vn,{children:["No changes vs ",g.jsx("span",{className:"font-mono",children:n.base}),"."]}):g.jsxs(g.Fragment,{children:[g.jsxs("div",{className:"border-b border-border-soft px-3 py-2 text-xs text-muted",children:["vs ",g.jsx("span",{className:"font-mono text-faint",children:n.base})," · ",n.files.length," file",n.files.length===1?"":"s"]}),g.jsx("ul",{className:"grid grid-cols-[minmax(0,1fr)_auto_auto] items-center gap-x-2 gap-y-1 px-3 py-3 font-mono text-[12px]",children:n.files.map(c=>g.jsxs("li",{className:"col-span-3 grid grid-cols-subgrid items-center",children:[g.jsx("span",{className:"truncate text-muted",children:c.path}),g.jsx("span",{className:"text-right text-add",children:c.added?`+${c.added}`:null}),g.jsx("span",{className:"text-right text-del",children:c.removed?`−${c.removed}`:null})]},c.path))}),g.jsx(a5,{patch:n.patch,truncated:n.truncated,className:"border-t border-border-soft px-3 py-3"})]}):g.jsx(vn,{children:"No diff."})}function jO({workspace:e,agentsRunning:n}){const[a,i]=S.useState(!1),[s,c]=S.useState(!1),[x,u]=S.useState(null),[f,d]=S.useState(null),m=Me(R=>R.online),p=wr(),y=zf(e),C=()=>{i(!1),c(!1)},b=async R=>{if(!x&&(C(),R!==y)){u(R),d(null);try{const _=await Ue.setStatus(e.id,R);_.ok||d(_.error??"status change failed"),await p.invalidateQueries({queryKey:["state"]})}catch(_){d(_ instanceof Error?_.message:"status change failed")}finally{u(null)}}},B=async()=>{if(!x){C(),u("archive"),d(null);try{const R=await Ue.archive(e.id,n>0);R.ok||d(R.error??"archiving failed"),await p.invalidateQueries({queryKey:["state"]}),await p.invalidateQueries({queryKey:["workspace",e.id]})}catch(R){d(R instanceof Error?R.message:"archiving failed")}finally{u(null)}}},k=x==="archive"?y:x??y;return g.jsxs(g.Fragment,{children:[g.jsx("button",{type:"button",onClick:()=>a?C():i(!0),disabled:!m||x!==null,"aria-label":`Workspace menu: ${Zu(y)}`,"aria-expanded":a,className:De("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?g.jsx("span",{className:"dot-spinner size-4",style:{"--spin-color":zO(k)}}):g.jsx(zm,{status:k})}),a?g.jsxs(g.Fragment,{children:[g.jsx("button",{type:"button","aria-label":"Close workspace menu",className:"fixed inset-0 z-20 cursor-default",onClick:C}),g.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?g.jsxs("div",{className:"p-3",children:[g.jsx("div",{className:"text-sm font-semibold",children:"Archive workspace?"}),g.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."}),g.jsxs("div",{className:"mt-3 flex justify-end gap-2",children:[g.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"}),g.jsx("button",{type:"button",onClick:B,className:"rounded-lg bg-del px-2.5 py-1 text-xs font-semibold text-black active:scale-95",children:n>0?"Stop agents and archive":"Archive"})]})]}):g.jsxs(g.Fragment,{children:[$D.map(R=>g.jsxs("button",{type:"button",onClick:()=>b(R),className:"flex w-full items-center gap-2 px-3 py-2.5 text-left text-sm active:bg-surface-2",children:[g.jsx(zm,{status:R}),g.jsx("span",{className:"flex-1",children:Zu(R)}),R===y?g.jsx(ea,{size:15,className:"text-accent"}):null]},R)),g.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:[g.jsx(F8,{size:15}),g.jsx("span",{className:"flex-1",children:"Archive workspace"})]})]})})]}):null,f?g.jsx("button",{type:"button",onClick:()=>d(null),className:"absolute right-2 top-full z-30 max-w-64 rounded-lg border border-del/40 bg-surface px-3 py-2 text-left text-xs text-del shadow-xl",children:f}):null]})}function zO(e){return Lf[e]??"var(--color-faint)"}function zm({status:e}){const n=Lf[e];return n?g.jsx("span",{className:"dot size-2.5",style:{background:n}}):g.jsx("span",{className:"dot size-2.5 border border-faint bg-transparent"})}function LO(){const{workspaceId:e}=K4(),[n,a]=k8(),i=n.get("session"),s=te=>a({session:te},{replace:!0}),[c,x]=S.useState(!1),[u,f]=S.useState(!1),[d,m]=S.useState(null),p=wr(),{data:y,isLoading:C}=Tf(),b=y?.workspaces.find(te=>te.id===e),B=!!y&&!b,{data:v}=t2(e,!B),k=Me(te=>te.workingHints),R=Me(te=>te.readMarks),_=Me(te=>te.markRead),N=Me(te=>te.setDraft),T=b,F=y?.actuator,{data:O,isLoading:L}=_k(e,B),{data:$}=Mk(e,!!b?.worktree),z=b?.worktree??null,X=$?.files,K=S.useMemo(()=>C2(z,X),[z,X]),V=v?.sessions??[],Z=(i&&V.some(te=>te.id===i)?i:null)??T?.active_session_id??V[0]?.id??null,Q=V.find(te=>te.id===Z),U=Q?.updated_at;if(S.useEffect(()=>{T&&Z&&U&&document.visibilityState==="visible"&&_(Z,U)},[T,Z,U,_]),!T)return O?g.jsx(xO,{workspace:O.workspace}):g.jsxs("div",{className:"flex h-full flex-col overflow-hidden",children:[g.jsx(T0,{title:"Session",menu:!0}),C||B&&L?g.jsx(za,{}):g.jsx("div",{className:"p-6 text-center text-sm text-muted",children:"Workspace not found."})]});const H=Z?k[Z]:void 0,re=Q?.status==="working"||H!==void 0&&Date.now()-H<15e3,fe=Q?.turn_started_at?Date.parse(Q.turn_started_at):null,w=(Q?.status==="working"?fe??H:H??fe)??null,j=[T.repo_name,T.branch,v2(T.model)].filter(Boolean).join(" · "),J=async()=>{if(!u){f(!0);try{const te=await Ue.newChat(T.id);te.ok&&(await p.invalidateQueries({queryKey:["sessions",T.id]}),te.sessionId&&s(te.sessionId))}finally{f(!1)}}},M=async({thinking:te,tools:ge,through:de})=>{if(!Z)return;const Ce=await Ue.splitChat(Z,T.id,te,ge,de);if(!Ce.ok)throw new Error(Ce.error??"Could not fork this chat");if(!Ce.sessionId)throw new Error("The new chat opened, but its id was not available");N(Ce.sessionId,Ce.text),m(Ce.sessionId),await p.invalidateQueries({queryKey:["sessions",T.id]}),s(Ce.sessionId)};return g.jsx(zD,{value:K,children:g.jsxs("div",{className:"flex h-full min-w-0 overflow-hidden",children:[g.jsxs("div",{className:"flex min-w-0 flex-1 flex-col overflow-hidden",children:[g.jsx(T0,{title:kr(T),subtitle:j,menu:!0,right:g.jsxs(g.Fragment,{children:[g.jsx(FO,{workspaceId:T.id}),g.jsx(jO,{workspace:T,agentsRunning:V.filter(te=>te.status==="working").length}),g.jsx("button",{type:"button",onClick:()=>x(te=>!te),"aria-label":"Toggle diff panel","aria-pressed":c,className:De("flex size-9 shrink-0 items-center justify-center rounded-full text-muted transition active:bg-surface-2",c&&"bg-surface-2 text-text"),children:g.jsx(gC,{size:19})})]})}),V.length>0?g.jsx(PO,{sessions:V,activeId:Z,readMarks:R,onSelect:s,onNewChat:J,creating:u}):null,g.jsx(i5,{sessionId:Z,workspaceId:T.id,working:re,workingSince:w,turnStartedAt:Q?.turn_started_at,queued:T.parked_prompts?.find(te=>te.sessionId===Z)??T.pending_prompt,onFork:M}),g.jsx(kO,{session:Q,sessionId:Z,workspaceId:T.id,working:re,actuator:F,focusDraft:Z===d,onDraftFocused:()=>m(null)},T.id)]}),c?g.jsx(IO,{workspaceId:T.id,onClose:()=>x(!1)}):null]})})}function PO({sessions:e,activeId:n,readMarks:a,onSelect:i,onNewChat:s,creating:c}){const x=S.useRef(null);return S.useLayoutEffect(()=>{n&&x.current?.scrollIntoView({block:"nearest",inline:"nearest"})},[n]),g.jsxs("nav",{className:"flex shrink-0 items-center gap-1 border-b border-border-soft bg-bg px-3 py-2",children:[g.jsx("div",{className:"flex min-w-0 flex-1 items-center gap-1 overflow-x-auto",children:e.map(u=>g.jsxs("button",{type:"button",ref:u.id===n?x:void 0,onClick:()=>i(u.id),className:De("pill flex shrink-0 items-center gap-1.5",u.id===n&&"pill-active"),children:[u.status==="working"?g.jsx("span",{className:"dot-spinner size-3"}):null,g.jsx("span",{className:"max-w-36 truncate",children:u.title||"Untitled"}),g.jsx(UO,{used:u.context_used_percent}),Gv(u,a)?g.jsx("span",{className:"dot size-1.5 bg-accent"}):null]},u.id))}),g.jsx("button",{type:"button",onClick:s,disabled:c,"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:g.jsx(N8,{size:18})})]})}function UO({used:e}){return typeof e!="number"||e<=0?null:g.jsxs("span",{className:De("shrink-0 text-[11px] tabular-nums",e>=80?"text-working":"text-faint"),children:[Math.round(e),"%"]})}function IO({workspaceId:e,onClose:n}){return g.jsxs("aside",{className:"fixed inset-0 z-40 flex flex-col bg-bg lg:static lg:z-auto lg:w-[380px] lg:shrink-0 lg:border-l lg:border-border-soft xl:w-[460px]",children:[g.jsxs("header",{className:"pt-safe flex items-center gap-2 border-b border-border-soft px-3 pb-2.5",children:[g.jsx("span",{className:"flex-1 text-[15px] font-semibold",children:"Diff"}),g.jsx("button",{type:"button",onClick:n,"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:g.jsx(Dr,{size:20})})]}),g.jsx(RO,{workspaceId:e})]})}var F0={exports:{}},HO=F0.exports,Lm;function qO(){return Lm||(Lm=1,(function(e,n){(function(i,s){e.exports=s()})(typeof self<"u"?self:HO,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,f){this.width=f,this.height=u.length/f,this.data=u}return x.createEmpty=function(u,f){return new x(new Uint8ClampedArray(u*f),u)},x.prototype.get=function(u,f){return u<0||u>=this.width||f<0||f>=this.height?!1:!!this.data[f*this.width+u]},x.prototype.set=function(u,f,d){this.data[f*this.width+u]=d?1:0},x.prototype.setRegion=function(u,f,d,m,p){for(var y=f;y<f+m;y++)for(var C=u;C<u+d;C++)this.set(C,y,!!p)},x})();i.BitMatrix=c}),(function(a,i,s){Object.defineProperty(i,"__esModule",{value:!0});var c=s(2);function x(f,d){return f^d}i.addOrSubtractGF=x;var u=(function(){function f(d,m,p){this.primitive=d,this.size=m,this.generatorBase=p,this.expTable=new Array(this.size),this.logTable=new Array(this.size);for(var y=1,C=0;C<this.size;C++)this.expTable[C]=y,y=y*2,y>=this.size&&(y=(y^this.primitive)&this.size-1);for(var C=0;C<this.size-1;C++)this.logTable[this.expTable[C]]=C;this.zero=new c.default(this,Uint8ClampedArray.from([0])),this.one=new c.default(this,Uint8ClampedArray.from([1]))}return f.prototype.multiply=function(d,m){return d===0||m===0?0:this.expTable[(this.logTable[d]+this.logTable[m])%(this.size-1)]},f.prototype.inverse=function(d){if(d===0)throw new Error("Can't invert 0");return this.expTable[this.size-this.logTable[d]-1]},f.prototype.buildMonomial=function(d,m){if(d<0)throw new Error("Invalid monomial degree less than 0");if(m===0)return this.zero;var p=new Uint8ClampedArray(d+1);return p[0]=m,new c.default(this,p)},f.prototype.log=function(d){if(d===0)throw new Error("Can't take log(0)");return this.logTable[d]},f.prototype.exp=function(d){return this.expTable[d]},f})();i.default=u}),(function(a,i,s){Object.defineProperty(i,"__esModule",{value:!0});var c=s(1),x=(function(){function u(f,d){if(d.length===0)throw new Error("No coefficients.");this.field=f;var m=d.length;if(m>1&&d[0]===0){for(var p=1;p<m&&d[p]===0;)p++;if(p===m)this.coefficients=f.zero.coefficients;else{this.coefficients=new Uint8ClampedArray(m-p);for(var y=0;y<this.coefficients.length;y++)this.coefficients[y]=d[p+y]}}else this.coefficients=d}return u.prototype.degree=function(){return this.coefficients.length-1},u.prototype.isZero=function(){return this.coefficients[0]===0},u.prototype.getCoefficient=function(f){return this.coefficients[this.coefficients.length-1-f]},u.prototype.addOrSubtract=function(f){var d;if(this.isZero())return f;if(f.isZero())return this;var m=this.coefficients,p=f.coefficients;m.length>p.length&&(d=[p,m],m=d[0],p=d[1]);for(var y=new Uint8ClampedArray(p.length),C=p.length-m.length,b=0;b<C;b++)y[b]=p[b];for(var b=C;b<p.length;b++)y[b]=c.addOrSubtractGF(m[b-C],p[b]);return new u(this.field,y)},u.prototype.multiply=function(f){if(f===0)return this.field.zero;if(f===1)return this;for(var d=this.coefficients.length,m=new Uint8ClampedArray(d),p=0;p<d;p++)m[p]=this.field.multiply(this.coefficients[p],f);return new u(this.field,m)},u.prototype.multiplyPoly=function(f){if(this.isZero()||f.isZero())return this.field.zero;for(var d=this.coefficients,m=d.length,p=f.coefficients,y=p.length,C=new Uint8ClampedArray(m+y-1),b=0;b<m;b++)for(var B=d[b],v=0;v<y;v++)C[b+v]=c.addOrSubtractGF(C[b+v],this.field.multiply(B,p[v]));return new u(this.field,C)},u.prototype.multiplyByMonomial=function(f,d){if(f<0)throw new Error("Invalid degree less than 0");if(d===0)return this.field.zero;for(var m=this.coefficients.length,p=new Uint8ClampedArray(m+f),y=0;y<m;y++)p[y]=this.field.multiply(this.coefficients[y],d);return new u(this.field,p)},u.prototype.evaluateAt=function(f){var d=0;if(f===0)return this.getCoefficient(0);var m=this.coefficients.length;if(f===1)return this.coefficients.forEach(function(y){d=c.addOrSubtractGF(d,y)}),d;d=this.coefficients[0];for(var p=1;p<m;p++)d=c.addOrSubtractGF(this.field.multiply(f,d),this.coefficients[p]);return d},u})();i.default=x}),(function(a,i,s){Object.defineProperty(i,"__esModule",{value:!0});var c=s(4),x=s(5),u=s(11),f=s(12);function d(y){var C=f.locate(y);if(!C)return null;for(var b=0,B=C;b<B.length;b++){var v=B[b],k=u.extract(y,v),R=x.decode(k.matrix);if(R)return{binaryData:R.bytes,data:R.text,chunks:R.chunks,version:R.version,location:{topRightCorner:k.mappingFunction(v.dimension,0),topLeftCorner:k.mappingFunction(0,0),bottomRightCorner:k.mappingFunction(v.dimension,v.dimension),bottomLeftCorner:k.mappingFunction(0,v.dimension),topRightFinderPattern:v.topRight,topLeftFinderPattern:v.topLeft,bottomLeftFinderPattern:v.bottomLeft,bottomRightAlignmentPattern:v.alignmentPattern}}}return null}var m={inversionAttempts:"attemptBoth"};function p(y,C,b,B){B===void 0&&(B={});var v=m;Object.keys(v||{}).forEach(function(O){v[O]=B[O]||v[O]});var k=v.inversionAttempts==="attemptBoth"||v.inversionAttempts==="invertFirst",R=v.inversionAttempts==="onlyInvert"||v.inversionAttempts==="invertFirst",_=c.binarize(y,C,b,k),N=_.binarized,T=_.inverted,F=d(R?T:N);return!F&&(v.inversionAttempts==="attemptBoth"||v.inversionAttempts==="invertFirst")&&(F=d(R?N:T)),F}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 f(p,y,C){return p<y?y:p>C?C:p}var d=(function(){function p(y,C){this.width=y,this.data=new Uint8ClampedArray(y*C)}return p.prototype.get=function(y,C){return this.data[C*this.width+y]},p.prototype.set=function(y,C,b){this.data[C*this.width+y]=b},p})();function m(p,y,C,b){if(p.length!==y*C*4)throw new Error("Malformed data passed to binarizer.");for(var B=new d(y,C),v=0;v<y;v++)for(var k=0;k<C;k++){var R=p[(k*y+v)*4+0],_=p[(k*y+v)*4+1],N=p[(k*y+v)*4+2];B.set(v,k,.2126*R+.7152*_+.0722*N)}for(var T=Math.ceil(y/x),F=Math.ceil(C/x),O=new d(T,F),L=0;L<F;L++)for(var $=0;$<T;$++){for(var z=0,X=1/0,K=0,k=0;k<x;k++)for(var v=0;v<x;v++){var V=B.get($*x+v,L*x+k);z+=V,X=Math.min(X,V),K=Math.max(K,V)}var Z=z/Math.pow(x,2);if(K-X<=u&&(Z=X/2,L>0&&$>0)){var Q=(O.get($,L-1)+2*O.get($-1,L)+O.get($-1,L-1))/4;X<Q&&(Z=Q)}O.set($,L,Z)}var U=c.BitMatrix.createEmpty(y,C),H=null;b&&(H=c.BitMatrix.createEmpty(y,C));for(var L=0;L<F;L++)for(var $=0;$<T;$++){for(var re=f($,2,T-3),fe=f(L,2,F-3),z=0,w=-2;w<=2;w++)for(var j=-2;j<=2;j++)z+=O.get(re+w,fe+j);for(var J=z/25,w=0;w<x;w++)for(var j=0;j<x;j++){var v=$*x+w,k=L*x+j,M=B.get(v,k);U.set(v,k,M<=J),b&&H.set(v,k,!(M<=J))}}return b?{binarized:U,inverted:H}:{binarized:U}}i.binarize=m}),(function(a,i,s){Object.defineProperty(i,"__esModule",{value:!0});var c=s(0),x=s(6),u=s(9),f=s(10);function d(N,T){for(var F=N^T,O=0;F;)O++,F&=F-1;return O}function m(N,T){return T<<1|N}var p=[{bits:21522,formatInfo:{errorCorrectionLevel:1,dataMask:0}},{bits:20773,formatInfo:{errorCorrectionLevel:1,dataMask:1}},{bits:24188,formatInfo:{errorCorrectionLevel:1,dataMask:2}},{bits:23371,formatInfo:{errorCorrectionLevel:1,dataMask:3}},{bits:17913,formatInfo:{errorCorrectionLevel:1,dataMask:4}},{bits:16590,formatInfo:{errorCorrectionLevel:1,dataMask:5}},{bits:20375,formatInfo:{errorCorrectionLevel:1,dataMask:6}},{bits:19104,formatInfo:{errorCorrectionLevel:1,dataMask:7}},{bits:30660,formatInfo:{errorCorrectionLevel:0,dataMask:0}},{bits:29427,formatInfo:{errorCorrectionLevel:0,dataMask:1}},{bits:32170,formatInfo:{errorCorrectionLevel:0,dataMask:2}},{bits:30877,formatInfo:{errorCorrectionLevel:0,dataMask:3}},{bits:26159,formatInfo:{errorCorrectionLevel:0,dataMask:4}},{bits:25368,formatInfo:{errorCorrectionLevel:0,dataMask:5}},{bits:27713,formatInfo:{errorCorrectionLevel:0,dataMask:6}},{bits:26998,formatInfo:{errorCorrectionLevel:0,dataMask:7}},{bits:5769,formatInfo:{errorCorrectionLevel:3,dataMask:0}},{bits:5054,formatInfo:{errorCorrectionLevel:3,dataMask:1}},{bits:7399,formatInfo:{errorCorrectionLevel:3,dataMask:2}},{bits:6608,formatInfo:{errorCorrectionLevel:3,dataMask:3}},{bits:1890,formatInfo:{errorCorrectionLevel:3,dataMask:4}},{bits:597,formatInfo:{errorCorrectionLevel:3,dataMask:5}},{bits:3340,formatInfo:{errorCorrectionLevel:3,dataMask:6}},{bits:2107,formatInfo:{errorCorrectionLevel:3,dataMask:7}},{bits:13663,formatInfo:{errorCorrectionLevel:2,dataMask:0}},{bits:12392,formatInfo:{errorCorrectionLevel:2,dataMask:1}},{bits:16177,formatInfo:{errorCorrectionLevel:2,dataMask:2}},{bits:14854,formatInfo:{errorCorrectionLevel:2,dataMask:3}},{bits:9396,formatInfo:{errorCorrectionLevel:2,dataMask:4}},{bits:8579,formatInfo:{errorCorrectionLevel:2,dataMask:5}},{bits:11994,formatInfo:{errorCorrectionLevel:2,dataMask:6}},{bits:11245,formatInfo:{errorCorrectionLevel:2,dataMask:7}}],y=[function(N){return(N.y+N.x)%2===0},function(N){return N.y%2===0},function(N){return N.x%3===0},function(N){return(N.y+N.x)%3===0},function(N){return(Math.floor(N.y/2)+Math.floor(N.x/3))%2===0},function(N){return N.x*N.y%2+N.x*N.y%3===0},function(N){return(N.y*N.x%2+N.y*N.x%3)%2===0},function(N){return((N.y+N.x)%2+N.y*N.x%3)%2===0}];function C(N){var T=17+4*N.versionNumber,F=c.BitMatrix.createEmpty(T,T);F.setRegion(0,0,9,9,!0),F.setRegion(T-8,0,8,9,!0),F.setRegion(0,T-8,9,8,!0);for(var O=0,L=N.alignmentPatternCenters;O<L.length;O++)for(var $=L[O],z=0,X=N.alignmentPatternCenters;z<X.length;z++){var K=X[z];$===6&&K===6||$===6&&K===T-7||$===T-7&&K===6||F.setRegion($-2,K-2,5,5,!0)}return F.setRegion(6,9,1,T-17,!0),F.setRegion(9,6,T-17,1,!0),N.versionNumber>6&&(F.setRegion(T-11,0,3,6,!0),F.setRegion(0,T-11,6,3,!0)),F}function b(N,T,F){for(var O=y[F.dataMask],L=N.height,$=C(T),z=[],X=0,K=0,V=!0,Z=L-1;Z>0;Z-=2){Z===6&&Z--;for(var Q=0;Q<L;Q++)for(var U=V?L-1-Q:Q,H=0;H<2;H++){var re=Z-H;if(!$.get(re,U)){K++;var fe=N.get(re,U);O({y:U,x:re})&&(fe=!fe),X=m(fe,X),K===8&&(z.push(X),K=0,X=0)}}V=!V}return z}function B(N){var T=N.height,F=Math.floor((T-17)/4);if(F<=6)return f.VERSIONS[F-1];for(var O=0,L=5;L>=0;L--)for(var $=T-9;$>=T-11;$--)O=m(N.get($,L),O);for(var z=0,$=5;$>=0;$--)for(var L=T-9;L>=T-11;L--)z=m(N.get($,L),z);for(var X=1/0,K,V=0,Z=f.VERSIONS;V<Z.length;V++){var Q=Z[V];if(Q.infoBits===O||Q.infoBits===z)return Q;var U=d(O,Q.infoBits);U<X&&(K=Q,X=U),U=d(z,Q.infoBits),U<X&&(K=Q,X=U)}if(X<=3)return K}function v(N){for(var T=0,F=0;F<=8;F++)F!==6&&(T=m(N.get(F,8),T));for(var O=7;O>=0;O--)O!==6&&(T=m(N.get(8,O),T));for(var L=N.height,$=0,O=L-1;O>=L-7;O--)$=m(N.get(8,O),$);for(var F=L-8;F<L;F++)$=m(N.get(F,8),$);for(var z=1/0,X=null,K=0,V=p;K<V.length;K++){var Z=V[K],Q=Z.bits,U=Z.formatInfo;if(Q===T||Q===$)return U;var H=d(T,Q);H<z&&(X=U,z=H),T!==$&&(H=d($,Q),H<z&&(X=U,z=H))}return z<=3?X:null}function k(N,T,F){var O=T.errorCorrectionLevels[F],L=[],$=0;if(O.ecBlocks.forEach(function(fe){for(var w=0;w<fe.numBlocks;w++)L.push({numDataCodewords:fe.dataCodewordsPerBlock,codewords:[]}),$+=fe.dataCodewordsPerBlock+O.ecCodewordsPerBlock}),N.length<$)return null;N=N.slice(0,$);for(var z=O.ecBlocks[0].dataCodewordsPerBlock,X=0;X<z;X++)for(var K=0,V=L;K<V.length;K++){var Z=V[K];Z.codewords.push(N.shift())}if(O.ecBlocks.length>1)for(var Q=O.ecBlocks[0].numBlocks,U=O.ecBlocks[1].numBlocks,X=0;X<U;X++)L[Q+X].codewords.push(N.shift());for(;N.length>0;)for(var H=0,re=L;H<re.length;H++){var Z=re[H];Z.codewords.push(N.shift())}return L}function R(N){var T=B(N);if(!T)return null;var F=v(N);if(!F)return null;var O=b(N,T,F),L=k(O,T,F.errorCorrectionLevel);if(!L)return null;for(var $=L.reduce(function(H,re){return H+re.numDataCodewords},0),z=new Uint8ClampedArray($),X=0,K=0,V=L;K<V.length;K++){var Z=V[K],Q=u.decode(Z.codewords,Z.codewords.length-Z.numDataCodewords);if(!Q)return null;for(var U=0;U<Z.numDataCodewords;U++)z[X++]=Q[U]}try{return x.decode(z,T.versionNumber)}catch{return null}}function _(N){if(N==null)return null;var T=R(N);if(T)return T;for(var F=0;F<N.width;F++)for(var O=F+1;O<N.height;O++)N.get(F,O)!==N.get(O,F)&&(N.set(F,O,!N.get(F,O)),N.set(O,F,!N.get(O,F)));return R(N)}i.decode=_}),(function(a,i,s){Object.defineProperty(i,"__esModule",{value:!0});var c=s(7),x=s(8),u;(function(B){B.Numeric="numeric",B.Alphanumeric="alphanumeric",B.Byte="byte",B.Kanji="kanji",B.ECI="eci"})(u=i.Mode||(i.Mode={}));var f;(function(B){B[B.Terminator=0]="Terminator",B[B.Numeric=1]="Numeric",B[B.Alphanumeric=2]="Alphanumeric",B[B.Byte=4]="Byte",B[B.Kanji=8]="Kanji",B[B.ECI=7]="ECI"})(f||(f={}));function d(B,v){for(var k=[],R="",_=[10,12,14][v],N=B.readBits(_);N>=3;){var T=B.readBits(10);if(T>=1e3)throw new Error("Invalid numeric value above 999");var F=Math.floor(T/100),O=Math.floor(T/10)%10,L=T%10;k.push(48+F,48+O,48+L),R+=F.toString()+O.toString()+L.toString(),N-=3}if(N===2){var T=B.readBits(7);if(T>=100)throw new Error("Invalid numeric value above 99");var F=Math.floor(T/10),O=T%10;k.push(48+F,48+O),R+=F.toString()+O.toString()}else if(N===1){var T=B.readBits(4);if(T>=10)throw new Error("Invalid numeric value above 9");k.push(48+T),R+=T.toString()}return{bytes:k,text:R}}var m=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function p(B,v){for(var k=[],R="",_=[9,11,13][v],N=B.readBits(_);N>=2;){var T=B.readBits(11),F=Math.floor(T/45),O=T%45;k.push(m[F].charCodeAt(0),m[O].charCodeAt(0)),R+=m[F]+m[O],N-=2}if(N===1){var F=B.readBits(6);k.push(m[F].charCodeAt(0)),R+=m[F]}return{bytes:k,text:R}}function y(B,v){for(var k=[],R="",_=[8,16,16][v],N=B.readBits(_),T=0;T<N;T++){var F=B.readBits(8);k.push(F)}try{R+=decodeURIComponent(k.map(function(O){return"%"+("0"+O.toString(16)).substr(-2)}).join(""))}catch{}return{bytes:k,text:R}}function C(B,v){for(var k=[],R="",_=[8,10,12][v],N=B.readBits(_),T=0;T<N;T++){var F=B.readBits(13),O=Math.floor(F/192)<<8|F%192;O<7936?O+=33088:O+=49472,k.push(O>>8,O&255),R+=String.fromCharCode(x.shiftJISTable[O])}return{bytes:k,text:R}}function b(B,v){for(var k,R,_,N,T=new c.BitStream(B),F=v<=9?0:v<=26?1:2,O={text:"",bytes:[],chunks:[],version:v};T.available()>=4;){var L=T.readBits(4);if(L===f.Terminator)return O;if(L===f.ECI)T.readBits(1)===0?O.chunks.push({type:u.ECI,assignmentNumber:T.readBits(7)}):T.readBits(1)===0?O.chunks.push({type:u.ECI,assignmentNumber:T.readBits(14)}):T.readBits(1)===0?O.chunks.push({type:u.ECI,assignmentNumber:T.readBits(21)}):O.chunks.push({type:u.ECI,assignmentNumber:-1});else if(L===f.Numeric){var $=d(T,F);O.text+=$.text,(k=O.bytes).push.apply(k,$.bytes),O.chunks.push({type:u.Numeric,text:$.text})}else if(L===f.Alphanumeric){var z=p(T,F);O.text+=z.text,(R=O.bytes).push.apply(R,z.bytes),O.chunks.push({type:u.Alphanumeric,text:z.text})}else if(L===f.Byte){var X=y(T,F);O.text+=X.text,(_=O.bytes).push.apply(_,X.bytes),O.chunks.push({type:u.Byte,bytes:X.bytes,text:X.text})}else if(L===f.Kanji){var K=C(T,F);O.text+=K.text,(N=O.bytes).push.apply(N,K.bytes),O.chunks.push({type:u.Kanji,bytes:K.bytes,text:K.text})}}if(T.available()===0||T.readBits(T.available())===0)return O}i.decode=b}),(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 f=0;if(this.bitOffset>0){var d=8-this.bitOffset,m=u<d?u:d,p=d-m,y=255>>8-m<<p;f=(this.bytes[this.byteOffset]&y)>>p,u-=m,this.bitOffset+=m,this.bitOffset===8&&(this.bitOffset=0,this.byteOffset++)}if(u>0){for(;u>=8;)f=f<<8|this.bytes[this.byteOffset]&255,this.byteOffset++,u-=8;if(u>0){var p=8-u,y=255>>p<<p;f=f<<u|(this.bytes[this.byteOffset]&y)>>p,this.bitOffset+=u}}return f},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,C,b){var B;y.degree()<C.degree()&&(B=[C,y],y=B[0],C=B[1]);for(var v=y,k=C,R=p.zero,_=p.one;k.degree()>=b/2;){var N=v,T=R;if(v=k,R=_,v.isZero())return null;k=N;for(var F=p.zero,O=v.getCoefficient(v.degree()),L=p.inverse(O);k.degree()>=v.degree()&&!k.isZero();){var $=k.degree()-v.degree(),z=p.multiply(k.getCoefficient(k.degree()),L);F=F.addOrSubtract(p.buildMonomial($,z)),k=k.addOrSubtract(v.multiplyByMonomial($,z))}if(_=F.multiplyPoly(R).addOrSubtract(T),k.degree()>=v.degree())return null}var X=_.getCoefficient(0);if(X===0)return null;var K=p.inverse(X);return[_.multiply(K),k.multiply(K)]}function f(p,y){var C=y.degree();if(C===1)return[y.getCoefficient(1)];for(var b=new Array(C),B=0,v=1;v<p.size&&B<C;v++)y.evaluateAt(v)===0&&(b[B]=p.inverse(v),B++);return B!==C?null:b}function d(p,y,C){for(var b=C.length,B=new Array(b),v=0;v<b;v++){for(var k=p.inverse(C[v]),R=1,_=0;_<b;_++)v!==_&&(R=p.multiply(R,c.addOrSubtractGF(1,p.multiply(C[_],k))));B[v]=p.multiply(y.evaluateAt(k),p.inverse(R)),p.generatorBase!==0&&(B[v]=p.multiply(B[v],k))}return B}function m(p,y){var C=new Uint8ClampedArray(p.length);C.set(p);for(var b=new c.default(285,256,0),B=new x.default(b,C),v=new Uint8ClampedArray(y),k=!1,R=0;R<y;R++){var _=B.evaluateAt(b.exp(R+b.generatorBase));v[v.length-1-R]=_,_!==0&&(k=!0)}if(!k)return C;var N=new x.default(b,v),T=u(b,b.buildMonomial(y,1),N,y);if(T===null)return null;var F=f(b,T[0]);if(F==null)return null;for(var O=d(b,T[1],F),L=0;L<F.length;L++){var $=C.length-1-b.log(F[L]);if($<0)return null;C[$]=c.addOrSubtractGF(C[$],O[L])}return C}i.decode=m}),(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(m,p,y,C){var b=m.x-p.x+y.x-C.x,B=m.y-p.y+y.y-C.y;if(b===0&&B===0)return{a11:p.x-m.x,a12:p.y-m.y,a13:0,a21:y.x-p.x,a22:y.y-p.y,a23:0,a31:m.x,a32:m.y,a33:1};var v=p.x-y.x,k=C.x-y.x,R=p.y-y.y,_=C.y-y.y,N=v*_-k*R,T=(b*_-k*B)/N,F=(v*B-b*R)/N;return{a11:p.x-m.x+T*p.x,a12:p.y-m.y+T*p.y,a13:T,a21:C.x-m.x+F*C.x,a22:C.y-m.y+F*C.y,a23:F,a31:m.x,a32:m.y,a33:1}}function u(m,p,y,C){var b=x(m,p,y,C);return{a11:b.a22*b.a33-b.a23*b.a32,a12:b.a13*b.a32-b.a12*b.a33,a13:b.a12*b.a23-b.a13*b.a22,a21:b.a23*b.a31-b.a21*b.a33,a22:b.a11*b.a33-b.a13*b.a31,a23:b.a13*b.a21-b.a11*b.a23,a31:b.a21*b.a32-b.a22*b.a31,a32:b.a12*b.a31-b.a11*b.a32,a33:b.a11*b.a22-b.a12*b.a21}}function f(m,p){return{a11:m.a11*p.a11+m.a21*p.a12+m.a31*p.a13,a12:m.a12*p.a11+m.a22*p.a12+m.a32*p.a13,a13:m.a13*p.a11+m.a23*p.a12+m.a33*p.a13,a21:m.a11*p.a21+m.a21*p.a22+m.a31*p.a23,a22:m.a12*p.a21+m.a22*p.a22+m.a32*p.a23,a23:m.a13*p.a21+m.a23*p.a22+m.a33*p.a23,a31:m.a11*p.a31+m.a21*p.a32+m.a31*p.a33,a32:m.a12*p.a31+m.a22*p.a32+m.a32*p.a33,a33:m.a13*p.a31+m.a23*p.a32+m.a33*p.a33}}function d(m,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}),C=x(p.topLeft,p.topRight,p.alignmentPattern,p.bottomLeft),b=f(C,y),B=c.BitMatrix.createEmpty(p.dimension,p.dimension),v=function(F,O){var L=b.a13*F+b.a23*O+b.a33;return{x:(b.a11*F+b.a21*O+b.a31)/L,y:(b.a12*F+b.a22*O+b.a32)/L}},k=0;k<p.dimension;k++)for(var R=0;R<p.dimension;R++){var _=R+.5,N=k+.5,T=v(_,N);B.set(R,k,m.get(Math.floor(T.x),Math.floor(T.y)))}return{matrix:B,mappingFunction:v}}i.extract=d}),(function(a,i,s){Object.defineProperty(i,"__esModule",{value:!0});var c=4,x=.5,u=1.5,f=function(_,N){return Math.sqrt(Math.pow(N.x-_.x,2)+Math.pow(N.y-_.y,2))};function d(_){return _.reduce(function(N,T){return N+T})}function m(_,N,T){var F,O,L,$,z=f(_,N),X=f(N,T),K=f(_,T),V,Z,Q;return X>=z&&X>=K?(F=[N,_,T],V=F[0],Z=F[1],Q=F[2]):K>=X&&K>=z?(O=[_,N,T],V=O[0],Z=O[1],Q=O[2]):(L=[_,T,N],V=L[0],Z=L[1],Q=L[2]),(Q.x-Z.x)*(V.y-Z.y)-(Q.y-Z.y)*(V.x-Z.x)<0&&($=[Q,V],V=$[0],Q=$[1]),{bottomLeft:V,topLeft:Z,topRight:Q}}function p(_,N,T,F){var O=(d(C(_,T,F,5))/7+d(C(_,N,F,5))/7+d(C(T,_,F,5))/7+d(C(N,_,F,5))/7)/4;if(O<1)throw new Error("Invalid module size");var L=Math.round(f(_,N)/O),$=Math.round(f(_,T)/O),z=Math.floor((L+$)/2)+7;switch(z%4){case 0:z++;break;case 2:z--;break}return{dimension:z,moduleSize:O}}function y(_,N,T,F){var O=[{x:Math.floor(_.x),y:Math.floor(_.y)}],L=Math.abs(N.y-_.y)>Math.abs(N.x-_.x),$,z,X,K;L?($=Math.floor(_.y),z=Math.floor(_.x),X=Math.floor(N.y),K=Math.floor(N.x)):($=Math.floor(_.x),z=Math.floor(_.y),X=Math.floor(N.x),K=Math.floor(N.y));for(var V=Math.abs(X-$),Z=Math.abs(K-z),Q=Math.floor(-V/2),U=$<X?1:-1,H=z<K?1:-1,re=!0,fe=$,w=z;fe!==X+U;fe+=U){var j=L?w:fe,J=L?fe:w;if(T.get(j,J)!==re&&(re=!re,O.push({x:j,y:J}),O.length===F+1))break;if(Q+=Z,Q>0){if(w===K)break;w+=H,Q-=V}}for(var M=[],te=0;te<F;te++)O[te]&&O[te+1]?M.push(f(O[te],O[te+1])):M.push(0);return M}function C(_,N,T,F){var O,L=N.y-_.y,$=N.x-_.x,z=y(_,N,T,Math.ceil(F/2)),X=y(_,{x:_.x-$,y:_.y-L},T,Math.ceil(F/2)),K=z.shift()+X.shift()-1;return(O=X.concat(K)).concat.apply(O,z)}function b(_,N){var T=d(_)/d(N),F=0;return N.forEach(function(O,L){F+=Math.pow(_[L]-O*T,2)}),{averageSize:T,error:F}}function B(_,N,T){try{var F=C(_,{x:-1,y:_.y},T,N.length),O=C(_,{x:_.x,y:-1},T,N.length),L={x:Math.max(0,_.x-_.y)-1,y:Math.max(0,_.y-_.x)-1},$=C(_,L,T,N.length),z={x:Math.min(T.width,_.x+_.y)+1,y:Math.min(T.height,_.y+_.x)+1},X=C(_,z,T,N.length),K=b(F,N),V=b(O,N),Z=b($,N),Q=b(X,N),U=Math.sqrt(K.error*K.error+V.error*V.error+Z.error*Z.error+Q.error*Q.error),H=(K.averageSize+V.averageSize+Z.averageSize+Q.averageSize)/4,re=(Math.pow(K.averageSize-H,2)+Math.pow(V.averageSize-H,2)+Math.pow(Z.averageSize-H,2)+Math.pow(Q.averageSize-H,2))/H;return U+re}catch{return 1/0}}function v(_,N){for(var T=Math.round(N.x);_.get(T,Math.round(N.y));)T--;for(var F=Math.round(N.x);_.get(F,Math.round(N.y));)F++;for(var O=(T+F)/2,L=Math.round(N.y);_.get(Math.round(O),L);)L--;for(var $=Math.round(N.y);_.get(Math.round(O),$);)$++;var z=(L+$)/2;return{x:O,y:z}}function k(_){for(var N=[],T=[],F=[],O=[],L=function(j){for(var J=0,M=!1,te=[0,0,0,0,0],ge=function(Ce){var Qe=_.get(Ce,j);if(Qe===M)J++;else{te=[te[1],te[2],te[3],te[4],J],J=1,M=Qe;var ke=d(te)/7,ue=Math.abs(te[0]-ke)<ke&&Math.abs(te[1]-ke)<ke&&Math.abs(te[2]-3*ke)<3*ke&&Math.abs(te[3]-ke)<ke&&Math.abs(te[4]-ke)<ke&&!Qe,Ze=d(te.slice(-3))/3,ut=Math.abs(te[2]-Ze)<Ze&&Math.abs(te[3]-Ze)<Ze&&Math.abs(te[4]-Ze)<Ze&&Qe;if(ue){var bt=Ce-te[3]-te[4],ie=bt-te[2],He={startX:ie,endX:bt,y:j},ft=T.filter(function(At){return ie>=At.bottom.startX&&ie<=At.bottom.endX||bt>=At.bottom.startX&&ie<=At.bottom.endX||ie<=At.bottom.startX&&bt>=At.bottom.endX&&te[2]/(At.bottom.endX-At.bottom.startX)<u&&te[2]/(At.bottom.endX-At.bottom.startX)>x});ft.length>0?ft[0].bottom=He:T.push({top:He,bottom:He})}if(ut){var Tt=Ce-te[4],fn=Tt-te[3],He={startX:fn,y:j,endX:Tt},ft=O.filter(function(tn){return fn>=tn.bottom.startX&&fn<=tn.bottom.endX||Tt>=tn.bottom.startX&&fn<=tn.bottom.endX||fn<=tn.bottom.startX&&Tt>=tn.bottom.endX&&te[2]/(tn.bottom.endX-tn.bottom.startX)<u&&te[2]/(tn.bottom.endX-tn.bottom.startX)>x});ft.length>0?ft[0].bottom=He:O.push({top:He,bottom:He})}}},de=-1;de<=_.width;de++)ge(de);N.push.apply(N,T.filter(function(Ce){return Ce.bottom.y!==j&&Ce.bottom.y-Ce.top.y>=2})),T=T.filter(function(Ce){return Ce.bottom.y===j}),F.push.apply(F,O.filter(function(Ce){return Ce.bottom.y!==j})),O=O.filter(function(Ce){return Ce.bottom.y===j})},$=0;$<=_.height;$++)L($);N.push.apply(N,T.filter(function(j){return j.bottom.y-j.top.y>=2})),F.push.apply(F,O);var z=N.filter(function(j){return j.bottom.y-j.top.y>=2}).map(function(j){var J=(j.top.startX+j.top.endX+j.bottom.startX+j.bottom.endX)/4,M=(j.top.y+j.bottom.y+1)/2;if(_.get(Math.round(J),Math.round(M))){var te=[j.top.endX-j.top.startX,j.bottom.endX-j.bottom.startX,j.bottom.y-j.top.y+1],ge=d(te)/te.length,de=B({x:Math.round(J),y:Math.round(M)},[1,1,3,1,1],_);return{score:de,x:J,y:M,size:ge}}}).filter(function(j){return!!j}).sort(function(j,J){return j.score-J.score}).map(function(j,J,M){if(J>c)return null;var te=M.filter(function(de,Ce){return J!==Ce}).map(function(de){return{x:de.x,y:de.y,score:de.score+Math.pow(de.size-j.size,2)/j.size,size:de.size}}).sort(function(de,Ce){return de.score-Ce.score});if(te.length<2)return null;var ge=j.score+te[0].score+te[1].score;return{points:[j].concat(te.slice(0,2)),score:ge}}).filter(function(j){return!!j}).sort(function(j,J){return j.score-J.score});if(z.length===0)return null;var X=m(z[0].points[0],z[0].points[1],z[0].points[2]),K=X.topRight,V=X.topLeft,Z=X.bottomLeft,Q=R(_,F,K,V,Z),U=[];Q&&U.push({alignmentPattern:{x:Q.alignmentPattern.x,y:Q.alignmentPattern.y},bottomLeft:{x:Z.x,y:Z.y},dimension:Q.dimension,topLeft:{x:V.x,y:V.y},topRight:{x:K.x,y:K.y}});var H=v(_,K),re=v(_,V),fe=v(_,Z),w=R(_,F,H,re,fe);return w&&U.push({alignmentPattern:{x:w.alignmentPattern.x,y:w.alignmentPattern.y},bottomLeft:{x:fe.x,y:fe.y},topLeft:{x:re.x,y:re.y},topRight:{x:H.x,y:H.y},dimension:w.dimension}),U.length===0?null:U}i.locate=k;function R(_,N,T,F,O){var L,$,z;try{L=p(F,T,O,_),$=L.dimension,z=L.moduleSize}catch{return null}var X={x:T.x-F.x+O.x,y:T.y-F.y+O.y},K=(f(F,O)+f(F,T))/2/z,V=1-3/K,Z={x:F.x+V*(X.x-F.x),y:F.y+V*(X.y-F.y)},Q=N.map(function(H){var re=(H.top.startX+H.top.endX+H.bottom.startX+H.bottom.endX)/4,fe=(H.top.y+H.bottom.y+1)/2;if(_.get(Math.floor(re),Math.floor(fe))){var w=[H.top.endX-H.top.startX,H.bottom.endX-H.bottom.startX,H.bottom.y-H.top.y+1];d(w)/w.length;var j=B({x:Math.floor(re),y:Math.floor(fe)},[1,1,1],_),J=j+f({x:re,y:fe},Z);return{x:re,y:fe,score:J}}}).filter(function(H){return!!H}).sort(function(H,re){return H.score-re.score}),U=K>=15&&Q.length?Q[0]:Z;return{alignmentPattern:U,dimension:$}}})]).default})})(F0)),F0.exports}var $O=qO();const GO=Ls($O);function VO({onResult:e,onClose:n}){const a=S.useRef(null),[i,s]=S.useState(null);return S.useEffect(()=>{let c=null,x=0,u=!1;const f=document.createElement("canvas"),d=f.getContext("2d",{willReadFrequently:!0}),m=()=>{const p=a.current;if(!(u||!p||!d)){if(p.readyState>=p.HAVE_ENOUGH_DATA&&p.videoWidth){f.width=p.videoWidth,f.height=p.videoHeight,d.drawImage(p,0,0,f.width,f.height);const{data:y,width:C,height:b}=d.getImageData(0,0,f.width,f.height),B=GO(y,C,b,{inversionAttempts:"dontInvert"});if(B?.data){u=!0,e(B.data);return}}x=requestAnimationFrame(m)}};return navigator.mediaDevices?.getUserMedia({video:{facingMode:"environment"}}).then(p=>{if(u){for(const C of p.getTracks())C.stop();return}c=p;const y=a.current;y&&(y.srcObject=p,y.play(),x=requestAnimationFrame(m))}).catch(p=>s(QO(p))),()=>{if(u=!0,cancelAnimationFrame(x),c)for(const p of c.getTracks())p.stop()}},[e]),g.jsxs("div",{className:"fixed inset-0 z-[60] bg-black",children:[g.jsx("video",{ref:a,muted:!0,playsInline:!0,className:"h-full w-full object-cover"}),g.jsx("div",{className:"pointer-events-none absolute inset-0 grid place-items-center",children:g.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)]"})}),g.jsxs("div",{className:"pt-safe absolute inset-x-0 top-0 flex items-center justify-between p-4",children:[g.jsx("span",{className:"rounded-full bg-black/50 px-3 py-1 text-sm text-white",children:"Point at the relay QR"}),g.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:g.jsx(Dr,{size:20})})]}),i?g.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 QO(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 YO(){const e=Me(d=>d.setToken),[n,a]=S.useState(""),[i,s]=S.useState(!1),[c,x]=S.useState(!1),u=d=>{const m=_v(d);x(!1),m?e(m):s(!0)},f=d=>{d.preventDefault(),u(n)};return c?g.jsx(VO,{onResult:u,onClose:()=>x(!1)}):g.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:[g.jsx("img",{src:"/icon.svg",alt:"",className:"size-20 rounded-3xl"}),g.jsxs("div",{children:[g.jsx("h1",{className:"text-xl font-semibold",children:"Conductor Remote"}),g.jsx("p",{className:"mt-1 text-sm text-muted",children:"Phone control panel for your local agents"})]}),g.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 (",g.jsx("span",{className:"font-mono text-faint",children:"/#token=…"}),"). Then use"," ",g.jsx("b",{className:"text-text",children:"Add to Home Screen"})," to install it."]}),g.jsxs("form",{onSubmit:f,className:"flex w-full max-w-xs flex-col gap-2",children:[g.jsx("input",{type:"text",inputMode:"text",autoCapitalize:"none",autoCorrect:"off",spellCheck:!1,value:n,onChange:d=>{a(d.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"}),g.jsx("button",{type:"submit",className:"pill pill-active justify-center py-2.5",children:"Connect"}),g.jsxs("button",{type:"button",onClick:()=>{s(!1),x(!0)},className:"pill justify-center gap-2 py-2.5",children:[g.jsx(T8,{size:16}),"Scan QR"]}),i?g.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]}),g.jsxs("p",{className:"max-w-xs text-xs leading-relaxed text-faint",children:["Lost it? Run ",g.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 zs=new Uint8Array(512),hf=new Uint8Array(256);let gs=1;for(let e=0;e<255;e++)zs[e]=gs,hf[gs]=e,gs<<=1,gs&256&&(gs^=285);for(let e=255;e<512;e++)zs[e]=zs[e-255];function x5(e,n){return e===0||n===0?0:zs[hf[e]+hf[n]]}function KO(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]^=x5(n[s],zs[a]);n=i}return n}function XO(e,n){const a=KO(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]^=x5(a[x+1],c)}return i}const ad={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 Pm(e){return ad[e].groups.reduce((n,[a,i])=>n+a*i,0)}function Um(e){return e<=9?8:16}function ys(e,n,a){for(let i=a-1;i>=0;i--)e.push(n>>i&1)}function ZO(e){const n=Array.from(new TextEncoder().encode(e));let a=0;for(let b=1;b<=10;b++)if(4+Um(b)+8*n.length<=Pm(b)*8){a=b;break}if(a===0)throw new Error(`data too long for a v1–10 QR (${n.length} bytes)`);const i=Pm(a)*8,s=[];ys(s,4,4),ys(s,n.length,Um(a));for(const b of n)ys(s,b,8);for(let b=0,B=Math.min(4,i-s.length);b<B;b++)s.push(0);for(;s.length%8!==0;)s.push(0);const c=[236,17];for(let b=0;s.length<i;b++)ys(s,c[b%2],8);const x=[];for(let b=0;b<s.length;b+=8){let B=0;for(let v=0;v<8;v++)B=B<<1|s[b+v];x.push(B)}const{ec:u,groups:f}=ad[a],d=[];let m=0;for(const[b,B]of f)for(let v=0;v<b;v++){const k=x.slice(m,m+B);m+=B,d.push({data:k,ec:XO(k,u)})}const p=[],y=Math.max(...d.map(b=>b.data.length));for(let b=0;b<y;b++)for(const B of d)b<B.data.length&&p.push(B.data[b]);for(let b=0;b<u;b++)for(const B of d)p.push(B.ec[b]);const C=[];for(const b of p)ys(C,b,8);return{version:a,bits:C}}function JO(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 C=-1;C<=7;C++)for(let b=-1;b<=7;b++){const B=p+C,v=y+b;if(B<0||B>=a||v<0||v>=a)continue;const k=C>=0&&C<=6&&(b===0||b===6)||b>=0&&b<=6&&(C===0||C===6),R=C>=2&&C<=4&&b>=2&&b<=4;i[B][v]=k||R,s[B][v]=!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=ad[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 b=x[p],B=x[y];for(let v=-2;v<=2;v++)for(let k=-2;k<=2;k++)i[b+v][B+k]=Math.max(Math.abs(v),Math.abs(k))!==1,s[b+v][B+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,C=Math.floor(p/3);s[C][y]=!0,s[y][C]=!0}let u=0,f=!0;for(let p=a-1;p>0;p-=2){p===6&&p--;for(let y=0;y<a;y++){const C=f?a-1-y:y;for(let b=0;b<2;b++){const B=p-b;s[C][B]||(i[C][B]=u<n.length?n[u]===1:!1,u++)}}f=!f}e>=7&&tj(i,e,a);let d=null,m=Number.POSITIVE_INFINITY;for(let p=0;p<8;p++){const y=i.map(b=>b.slice());for(let b=0;b<a;b++)for(let B=0;B<a;B++)!s[b][B]&&WO(p,b,B)&&(y[b][B]=!y[b][B]);ej(y,p,a);const C=nj(y);C<m&&(m=C,d=y)}return d}function WO(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 ej(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 tj(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,f=Math.floor(c/3);e[f][u]=x,e[u][f]=x}}function nj(e){const n=e.length;let a=0;const i=f=>{let d=f(0),m=1;for(let p=1;p<n;p++)f(p)===d?m++:(m>=5&&(a+=m-2),d=f(p),m=1);m>=5&&(a+=m-2)};for(let f=0;f<n;f++)i(d=>e[f][d]);for(let f=0;f<n;f++)i(d=>e[d][f]);for(let f=0;f<n-1;f++)for(let d=0;d<n-1;d++){const m=e[f][d];m===e[f][d+1]&&m===e[f+1][d]&&m===e[f+1][d+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=(f,d,m)=>{for(let p=0;p<11;p++)if(f(d+p)!==m[p])return!1;return!0};for(let f=0;f<n;f++)for(let d=0;d<=n-11;d++)(x(m=>e[f][m],d,s)||x(m=>e[f][m],d,c))&&(a+=40);for(let f=0;f<n;f++)for(let d=0;d<=n-11;d++)(x(m=>e[m][f],d,s)||x(m=>e[m][f],d,c))&&(a+=40);let u=0;for(let f=0;f<n;f++)for(let d=0;d<n;d++)e[f][d]&&u++;return a+=Math.floor(Math.abs(u/(n*n)*100-50)/5)*10,a}function rj(e){const{version:n,bits:a}=ZO(e);return JO(n,a)}function aj({text:e,size:n=220,className:a}){const i=rj(e),s=i.length,c=4,x=s+c*2;let u="";for(let f=0;f<s;f++)for(let d=0;d<s;d++)i[f][d]&&(u+=`M${d+c} ${f+c}h1v1h-1z`);return g.jsxs("svg",{width:n,height:n,viewBox:`0 0 ${x} ${x}`,shapeRendering:"crispEdges",className:a,role:"img","aria-label":"QR code",children:[g.jsx("title",{children:"QR code"}),g.jsx("rect",{width:x,height:x,fill:"#fff"}),g.jsx("path",{d:u,fill:"#000"})]})}function ij({version:e,onLogs:n,onClose:a}){const i=Me(y=>y.token),s=Me(y=>y.setToken),[c,x]=S.useState(!1),[u,f]=S.useState(!1),d=i?`${location.origin}/#token=${i}`:location.origin,m=!!e&&e!=="1.72.0",p=async()=>{try{await navigator.clipboard.writeText(d),x(!0),setTimeout(()=>x(!1),1500)}catch{}};return Hs.createPortal(g.jsxs(g.Fragment,{children:[g.jsx("div",{className:"fixed inset-0 z-50 bg-black/60",onClick:a,"aria-hidden":!0}),g.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:[g.jsxs("div",{className:"flex w-full shrink-0 items-center justify-between",children:[g.jsx("h2",{className:"text-base font-semibold",children:"Connect a device"}),g.jsxs("div",{className:"flex shrink-0 items-center gap-1",children:[g.jsx("button",{type:"button",onClick:()=>f(y=>!y),"aria-label":"Disconnect","aria-expanded":u,title:"Disconnect",className:De("flex size-8 items-center justify-center rounded-full active:bg-surface-2",u?"bg-del/15 text-del":"text-del/80"),children:g.jsx(Rb,{size:17})}),g.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:g.jsx(Dr,{size:18})})]})]}),u?g.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:[g.jsx("p",{className:"text-sm font-medium",children:"Disconnect this device?"}),g.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."}),g.jsxs("div",{className:"mt-2.5 flex gap-2",children:[g.jsx("button",{type:"button",onClick:()=>f(!1),className:"flex-1 rounded-lg border border-border bg-surface-2 px-3 py-2 text-sm active:bg-surface",children:"Cancel"}),g.jsx("button",{type:"button",onClick:()=>s(null),className:"flex-1 rounded-lg bg-del px-3 py-2 text-sm font-semibold text-black active:opacity-80",children:"Disconnect"})]})]}):null,g.jsxs("div",{className:"flex w-full min-h-0 flex-1 flex-col items-center gap-4 overflow-y-auto overscroll-contain",children:[g.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."}),g.jsx("div",{className:"shrink-0 rounded-2xl bg-white p-3",children:g.jsx(aj,{text:d,size:216})}),g.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?g.jsx(ea,{size:16}):g.jsx(wf,{size:16}),c?"Copied":"Copy link"]}),g.jsx(lj,{}),g.jsx(oj,{}),g.jsxs("div",{className:"flex w-full items-center justify-between text-xs text-faint",children:[g.jsxs("span",{className:"font-mono",children:[e?`relay v${e}`:"relay v?"," · ",g.jsxs("span",{className:m?"text-working":void 0,children:["app v","1.72.0"]}),m?" · update pending":""]}),g.jsx("button",{type:"button",onClick:n,className:"shrink-0 text-muted underline-offset-2 hover:underline",children:"Logs"})]})]})]})]}),document.body)}function lj(){const e=Lk(),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 g.jsxs("div",{className:"w-full shrink-0 rounded-xl border border-border bg-surface-2 px-3 py-2.5",children:[g.jsxs("div",{className:"flex items-center justify-between gap-3",children:[g.jsxs("div",{className:"flex min-w-0 items-center gap-2 text-sm",children:[g.jsx(w8,{size:16,className:De("shrink-0",e.enabled?"text-accent":"text-muted")}),g.jsx("span",{children:"Notifications"})]}),g.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:De("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:g.jsx("span",{className:De("absolute left-0.5 top-0.5 size-5 rounded-full bg-white transition-transform",e.enabled?"translate-x-5":"translate-x-0")})})]}),g.jsx("p",{className:"mt-1 text-xs text-muted",children:i}),e.error?g.jsx("p",{className:"mt-1 text-xs text-del",children:e.error}):null,e.enabled?g.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 sj=[{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 Ou(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 oj(){const[e,n]=S.useState(null),[a,i]=S.useState(!1),[s,c]=S.useState(null),[x,u]=S.useState(!1),f=S.useCallback(async()=>{try{n(await Ue.settings()),c(null)}catch(b){c(b instanceof Error?b.message:String(b))}},[]);S.useEffect(()=>{f()},[f]);const d=async b=>{i(!0),c(null);try{await b(),await f()}catch(B){c(B instanceof Error?B.message:String(B))}finally{i(!1)}},m=e?.nosleep,p=e?.screenLocked===!0,y=e?.wifi.known??[],C=e?.settings.fallbackSsids[0]??"";return g.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:[g.jsxs("div",{className:"flex items-center justify-between gap-3",children:[g.jsxs("div",{className:"flex min-w-0 items-center gap-2 text-sm",children:[g.jsx(j8,{size:16,className:De("shrink-0",m?.armed?"text-accent":"text-muted")}),g.jsx("span",{children:"Keep the Mac awake"})]}),m?.armed?g.jsx("button",{type:"button",disabled:a,onClick:()=>{d(async()=>{const b=await Ue.disarmNoSleep();u(b.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"}):g.jsx("div",{className:"flex shrink-0 gap-1",children:sj.map(b=>g.jsx("button",{type:"button",disabled:a||!m?.available,onClick:()=>{d(()=>(u(!1),Ue.armNoSleep(b.seconds)))},className:De("rounded-lg border border-border px-2.5 py-1 text-xs active:bg-surface disabled:opacity-40",b.className),children:b.label},b.seconds))})]}),g.jsx("p",{className:"text-xs text-muted",children:e?m?.available?m.armed?m.preventsScreenLock?p?`Awake ${Ou(m.until)}, lid closed. It blocks the idle screen lock from starting; it can’t lift one already up.`:`Awake ${Ou(m.until)}, lid closed. The idle screen lock is off; anyone at the Mac can use it. Shutting the lid or locking it by hand still locks the session.`:`Awake ${Ou(m.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…"}),p?g.jsxs("p",{className:"text-xs text-del",children:["The Mac is locked right now, so writes park until it’s unlocked. ",g.jsx($0,{})]}):null,g.jsxs("div",{className:"border-t border-border pt-2.5",children:[g.jsxs("div",{className:"flex items-center justify-between gap-3",children:[g.jsxs("div",{className:"flex min-w-0 items-center gap-2 text-sm",children:[g.jsx(z8,{size:16,className:De("shrink-0",e?.settings.autoRejoin?"text-accent":"text-muted")}),g.jsx("span",{children:"Fallback network"})]}),C?g.jsx("button",{type:"button",disabled:a,onClick:()=>{d(()=>Ue.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]}),C?g.jsxs("p",{className:"mt-1 text-xs text-muted",children:["If the Mac loses its connection it joins ",g.jsx("span",{className:"text-fg",children:C})," and re-registers."]}):g.jsx(cj,{known:y,hotspots:e?.wifi.likelyHotspots??[],busy:a,onPick:b=>{d(()=>Ue.patchSettings({fallbackSsids:[b],autoRejoin:!0}))}}),e?.wifi.autoJoinHotspot==="Never"?g.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]}),s?g.jsx("p",{className:"text-xs text-del",children:s}):null]})}function cj({known:e,hotspots:n,busy:a,onPick:i}){const[s,c]=S.useState("");if(e.length===0)return g.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(),f=e.filter(p=>!u||p.toLowerCase().includes(u)),d=f.find(p=>x.has(p)),m=(d?[d,...f.filter(p=>p!==d)]:f).slice(0,6);return g.jsxs(g.Fragment,{children:[g.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."}),g.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"}),g.jsxs("div",{className:"mt-1.5 flex flex-col gap-1",children:[m.map(p=>g.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:[g.jsx("span",{className:"truncate",children:p}),x.has(p)?g.jsx("span",{className:"shrink-0 text-faint",children:"likely hotspot"}):null]},p)),m.length===0?g.jsxs("p",{className:"text-xs text-faint",children:["Nothing matches “",s,"”."]}):null]}),!u&&e.length>m.length?g.jsxs("p",{className:"mt-1 text-xs text-faint",children:["Most recently joined. Search to reach the other ",e.length-m.length,"."]}):null]})}const xj={info:"text-muted",warn:"text-working",error:"text-del"};function Ta(e){return String(e).padStart(2,"0")}function uj(e){if(e==null)return"·";const n=new Date(e);return`${Ta(n.getHours())}:${Ta(n.getMinutes())}:${Ta(n.getSeconds())}`}function Im(e){if(e==null)return" ";const n=new Date(e);return`${n.getFullYear()}-${Ta(n.getMonth()+1)}-${Ta(n.getDate())} ${Ta(n.getHours())}:${Ta(n.getMinutes())}:${Ta(n.getSeconds())}`}function fj(e){return e<1024?`${e} B`:e<1024*1024?`${Math.round(e/1024)} KB`:`${(e/1024/1024).toFixed(1)} MB`}function Hm(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 dj({onClose:e}){const[n,a]=S.useState(null),[i,s]=S.useState(!1),[c,x]=S.useState(null),{data:u,isLoading:f,isError:d,error:m}=Rk(n,!0),p=S.useRef(null),y=S.useRef(!0),C=S.useMemo(()=>(u?.entries??[]).filter(v=>!i||v.level!=="info"),[u,i]);S.useEffect(()=>{const v=p.current;v&&y.current&&C.length&&(v.scrollTop=v.scrollHeight)},[C]);const b=async()=>{const v=`# conductor-remote ${n??"live"} log · app v1.72.0 · copied ${Im(Date.now())}`,k=C.map(R=>`${Im(R.t)} ${R.level==="info"?"":R.level.toUpperCase()} ${R.text}`);try{await navigator.clipboard.writeText([v,...k].join(`
|
|
47
|
+
`)),x("ok")}catch{x("failed")}setTimeout(()=>x(null),2e3)},B=[{key:null,label:"Live",hint:u?`since ${Hm(u.now-u.startedAt)}`:void 0},...(u?.files??[]).map(v=>({key:v.name,label:v.name,hint:fj(v.size)}))];return Hs.createPortal(g.jsxs(g.Fragment,{children:[g.jsx("div",{className:"fixed inset-0 z-50 bg-black/60",onClick:e,"aria-hidden":!0}),g.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:[g.jsxs("div",{className:"flex items-center justify-between gap-2 border-b border-border-soft px-4 py-3",children:[g.jsxs("div",{className:"min-w-0",children:[g.jsx("h2",{className:"text-base font-semibold",children:"Relay logs"}),g.jsx("p",{className:"truncate text-xs text-muted",children:u?`${C.length} line${C.length===1?"":"s"} · relay started ${Hm(u.now-u.startedAt)}`:"Loading…"})]}),g.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:g.jsx(Dr,{size:18})})]}),g.jsx("div",{className:"flex gap-1.5 overflow-x-auto border-b border-border-soft px-3 py-2",children:B.map(v=>g.jsxs("button",{type:"button",onClick:()=>{y.current=!0,a(v.key)},className:De("pill shrink-0 whitespace-nowrap",v.key===n&&"pill-active"),children:[v.label,v.hint?g.jsx("span",{className:"ml-1.5 text-[11px] text-faint",children:v.hint}):null]},v.key??"live"))}),n&&u&&!u.managed?g.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,g.jsx("div",{ref:p,onScroll:v=>{const k=v.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:f&&!u?g.jsx(za,{label:"Reading logs…"}):d?g.jsx(vn,{children:m?.message}):C.length===0?g.jsx(vn,{children:i?"No warnings or errors logged.":"Nothing logged yet — the relay has been quiet."}):C.map((v,k)=>g.jsxs("div",{className:"flex gap-2 whitespace-pre-wrap break-words py-px",children:[g.jsx("span",{className:"shrink-0 text-faint",children:uj(v.t)}),g.jsx("span",{className:De("min-w-0 flex-1",xj[v.level]),children:v.text})]},k))}),g.jsxs("div",{className:"flex items-center gap-2 border-t border-border-soft px-3 py-2.5",children:[g.jsx("button",{type:"button",onClick:()=>s(v=>!v),className:De("pill shrink-0",i&&"pill-active"),children:"Problems only"}),g.jsxs("button",{type:"button",onClick:b,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"?g.jsx(ea,{size:16}):g.jsx(wf,{size:16}),c==="ok"?"Copied":c==="failed"?"Copy blocked — select by hand":"Copy"]})]})]})]}),document.body)}const u5="conductor-remote-send-immediately";function hj(){try{return localStorage.getItem(u5)!=="off"}catch{return!0}}function pj(e){try{localStorage.setItem(u5,e?"on":"off")}catch{}}function ju(e){e&&Ue.discardStagedAttachment(e).catch(()=>{})}function mj({onClose:e}){const{data:n}=Fk(),a=Rf(),i=Me(ie=>ie.lastNewWorkspaceRepo),s=Me(ie=>ie.setLastNewWorkspaceRepo),[c,x]=S.useState(i),u=Me(ie=>ie.drafts[us]??""),f=Me(ie=>ie.setDraft),d=Me(ie=>ie.setFocusedDraft),m=ie=>f(us,ie),[p,y]=S.useState({}),[C,b]=S.useState(!1),[B,v]=S.useState(hj),[k,R]=S.useState(!1),[_,N]=S.useState(null),T=S.useRef(null),F=S.useRef(new Set),O=S.useRef(0),[L,$]=S.useState([]),[z,X]=S.useState(!1),K=cl(),V=wr(),Z=Me(ie=>ie.online);S.useEffect(()=>()=>{Me.getState().focusedDraft===us&&d(null),Ku()},[d]);const Q=n?.repos??[],U=Q.find(ie=>ie.name===c);S.useEffect(()=>{Q.length&&!Q.some(ie=>ie.name===c)&&x(Q[0].name)},[c,Q]);const H=L.filter(ie=>ie.status==="ready"&&ie.stageId),re=L.some(ie=>ie.status==="uploading"),fe=L.some(ie=>ie.status==="error"),w=!!u.trim()||H.length>0,j=a.data?.groups.flatMap(ie=>ie.models)??[],J=Object.keys(p).length>0,M=ie=>y(He=>{const ft={...He,...ie};return Object.fromEntries(Object.entries(ft).filter(([,Tt])=>Tt!==void 0))}),te=ie=>{const He=L.find(ft=>ft.id===ie);F.current.add(ie),ju(He?.stageId),$(ft=>ft.filter(Tt=>Tt.id!==ie))},ge=async ie=>{if(Z)for(const He of Array.from(ie)){const ft=crypto.randomUUID();$(Tt=>[...Tt,{id:ft,name:He.name||"attachment",status:"uploading"}]);try{const Tt=await Ue.stageAttachment(He);if(F.current.delete(ft)){ju(Tt.attachment.stageId);continue}$(fn=>fn.map(At=>At.id===ft?{...At,name:Tt.attachment.name,stageId:Tt.attachment.stageId,status:"ready"}:At))}catch(Tt){if(F.current.delete(ft))continue;$(fn=>fn.map(At=>At.id===ft?{...At,status:"error",error:Tt instanceof Error?Tt.message:"Upload failed"}:At))}}},de=ie=>{ie?.length&&ge(ie)},Ce=ie=>Array.from(ie.dataTransfer.types).includes("Files"),Qe=ie=>{Ce(ie)&&(ie.preventDefault(),O.current+=1,X(!0))},ke=ie=>{Ce(ie)&&(O.current-=1,O.current<=0&&(O.current=0,X(!1)))},ue=ie=>{Ce(ie)&&(ie.preventDefault(),ie.dataTransfer.dropEffect="copy")},Ze=ie=>{Ce(ie)&&(ie.preventDefault(),O.current=0,X(!1),de(ie.dataTransfer.files))},ut=S.useCallback(()=>{for(const ie of L)F.current.add(ie.id),ju(ie.stageId);e()},[L,e]),bt=async()=>{const ie=u.trim();if(!(!c||k||re||fe||!Z)){R(!0),N(null);try{const He=await Ue.createWorkspace(c,ie,B,H.flatMap(ft=>ft.stageId?[ft.stageId]:[]),p);if(!He.ok||!He.workspaceId){N(He.error??"could not create the workspace");return}await V.invalidateQueries({queryKey:["state"]}),m(""),e(),K(`/w/${He.workspaceId}`)}catch(He){N(He instanceof Error?He.message:"could not create the workspace")}finally{R(!1)}}};return S.useEffect(()=>{const ie=He=>{He.key==="Escape"&&(C?b(!1):ut())};return window.addEventListener("keydown",ie),()=>window.removeEventListener("keydown",ie)},[ut,C]),Hs.createPortal(g.jsxs("div",{className:"fixed inset-0 z-50 flex flex-col bg-bg",children:[g.jsxs("header",{className:"pt-safe flex items-center gap-2 border-b border-border-soft px-3 pb-2.5",children:[g.jsx("span",{className:"flex-1 text-[15px] font-semibold",children:"New workspace"}),g.jsx("button",{type:"button",onClick:ut,"aria-label":"Close",className:"-mr-1 flex size-9 shrink-0 items-center justify-center rounded-full text-muted active:bg-surface-2",children:g.jsx(Dr,{size:20})})]}),g.jsxs("div",{className:"flex min-h-0 flex-1 flex-col gap-3 overflow-y-auto p-3",children:[g.jsxs("div",{className:"relative",children:[g.jsxs("button",{type:"button",onClick:()=>b(ie=>!ie),"aria-haspopup":"menu","aria-expanded":C,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:[U?g.jsx(Ts,{icon:U.icon,name:U.name,artwork:"inset"}):null,g.jsx("span",{className:"min-w-0 flex-1 truncate text-[15px] font-medium",children:U?.name??"Choose a repo"}),g.jsx(xl,{size:18,className:De("shrink-0 text-muted transition",C&&"rotate-180")})]}),C?g.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:Q.map(ie=>g.jsx("li",{children:g.jsxs("button",{type:"button",onClick:()=>{x(ie.name),s(ie.name),b(!1)},className:"flex w-full items-center gap-3 px-3 py-2 text-left active:bg-surface-2",children:[g.jsx(Ts,{icon:ie.icon,name:ie.name,artwork:"inset"}),g.jsx("span",{className:"min-w-0 flex-1 truncate text-[15px]",children:ie.name}),ie.name===c?g.jsx(ea,{size:16,className:"shrink-0 text-accent"}):null]})},ie.name))}):null]}),g.jsxs("fieldset",{"aria-label":"First message",onDragEnter:Qe,onDragLeave:ke,onDragOver:ue,onDrop:Ze,className:De("relative m-0 min-w-0 rounded-2xl border border-border bg-surface p-2 has-[textarea:focus]:border-accent/60",z&&"border-accent bg-accent-soft"),children:[g.jsx("input",{ref:T,type:"file",multiple:!0,className:"hidden",onChange:ie=>{de(ie.target.files),ie.target.value=""}}),L.length?g.jsx("div",{className:"flex flex-wrap gap-1 px-2 pb-1",children:L.map(ie=>g.jsxs("div",{title:ie.error??ie.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:[ie.status==="uploading"?g.jsx(Oa,{size:12,className:"shrink-0 animate-spin"}):null,g.jsx("span",{className:"truncate",children:ie.status==="error"?`${ie.name}: ${ie.error}`:ie.name}),g.jsx("button",{type:"button",onClick:()=>te(ie.id),"aria-label":`Remove ${ie.name}`,className:"flex size-5 shrink-0 items-center justify-center rounded active:bg-surface",children:g.jsx(Dr,{size:13})})]},ie.id))}):null,g.jsx("textarea",{value:u,onChange:ie=>m(ie.target.value),onFocus:()=>d(us),onBlur:()=>{Me.getState().focusedDraft===us&&d(null),Ku()},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:ie=>{const He=ie.clipboardData.files;He.length&&(ie.preventDefault(),de(He))},onKeyDown:ie=>{ie.key==="Enter"&&!ie.shiftKey&&!ie.nativeEvent.isComposing&&(ie.preventDefault(),bt())}}),g.jsxs("div",{className:"mt-1 flex items-start gap-1 px-1",children:[g.jsx(c5,{model:p.model??"Model",providerModel:p.model??null,agentType:null,models:j,modelsFetching:a.isFetching,modelsError:a.isError,fast:p.fast,effort:p.effort,plan:p.plan,showEmptyEffort:!0,modelStaged:p.model!==void 0,fastStaged:p.fast!==void 0,effortStaged:p.effort!==void 0,planStaged:p.plan!==void 0,onModelChange:ie=>M({model:ie===p.model?void 0:ie}),onFastChange:()=>M({fast:p.fast===void 0?!0:p.fast?!1:void 0}),onEffortChange:()=>M({effort:p.effort==="ultracode"?void 0:o5(p.effort)}),onPlanChange:()=>M({plan:p.plan===void 0?!0:p.plan?!1:void 0}),status:J?"Applies when the workspace opens":void 0}),g.jsx("button",{type:"button",onClick:()=>T.current?.click(),disabled:!Z,"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:g.jsx(q0,{size:17})})]}),z?g.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]}),g.jsxs("label",{className:De("flex items-start gap-3 rounded-2xl border border-border bg-surface px-3 py-2.5 transition active:bg-surface-2",!w&&"opacity-40"),children:[g.jsx("input",{type:"checkbox",checked:B,disabled:!w,onChange:ie=>{v(ie.target.checked),pj(ie.target.checked)},className:"sr-only"}),g.jsx("span",{className:De("mt-0.5 flex size-[18px] shrink-0 items-center justify-center rounded-md border transition",B?"border-accent bg-accent text-bg":"border-border"),children:B?g.jsx(ea,{size:13,strokeWidth:3}):null}),g.jsxs("span",{className:"min-w-0 flex-1",children:[g.jsx("span",{className:"block text-[15px] font-medium",children:"Send immediately"}),g.jsx("span",{className:"block text-xs text-muted",children:B?"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.jsx("div",{className:"text-xs text-del",children:_}):null]}),g.jsx("div",{className:"pb-safe border-t border-border-soft p-3",children:g.jsx("button",{type:"button",onClick:bt,disabled:!c||k||re||fe||!Z,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:k?"Creating…":w?"Create & start":"Create empty workspace"})})]}),document.body)}function Ej({query:e,live:n,selectedId:a,onOpen:i}){const s=wk(e.trim(),250),{data:c,isError:x,error:u,isFetching:f}=Sk(s),d=S.useMemo(()=>pk(e),[e]),m=S.useMemo(()=>{const y=new Map;if(d.length)for(const C of n){const b=[kr(C),C.branch,C.repo_name,C.directory_name,C.session_title].filter(Boolean).join(" ").toLowerCase();d.every(B=>b.includes(B))&&y.set(C.id,{workspace:C,archived:!1,sessionId:null,snippets:[],hits:0})}for(const C of c?.results??[]){const b=y.get(C.workspace.id);if(b){b.sessionId=C.sessionId,b.snippets=C.snippets,b.hits=C.hits;continue}y.set(C.workspace.id,{workspace:C.workspace,archived:C.workspace.archived,sessionId:C.sessionId,snippets:C.snippets,hits:C.hits})}return[...y.values()]},[n,c,d]),p=c?.index;return g.jsxs(g.Fragment,{children:[p&&!p.ready?g.jsxs("p",{className:"px-1 pb-2 text-xs text-faint",children:["Indexing chats… ",Math.round(p.progress*100),"% — older conversations aren’t searchable yet."]}):null,p?.error?g.jsxs("p",{className:"px-1 pb-2 text-xs text-del",children:["Chat index unavailable (",p.error,") — searching names only."]}):null,x?g.jsxs("p",{className:"px-1 pb-2 text-xs text-del",children:["Chat search unavailable (",u?.message,") — showing name matches only."]}):null,m.length===0?f||s!==e.trim()?g.jsx(za,{}):x?null:g.jsxs(vn,{children:["Nothing matches “",e.trim(),"”."]}):g.jsx("ul",{className:"flex flex-col gap-2 pb-2",children:m.map(y=>g.jsx("li",{className:"fade-in",children:g.jsx(yj,{row:y,tokens:d,selected:y.workspace.id===a,onOpen:i})},y.workspace.id))})]})}const gj="card w-full flex-col items-stretch gap-0";function yj({row:e,tokens:n,selected:a,onOpen:i}){const s=e.workspace,c=s.directory_name?.toLowerCase(),x=`${kr(s)} ${s.branch??""} ${s.repo_name??""}`.toLowerCase(),u=!!c&&n.some(d=>c.includes(d)&&!x.includes(d)),f=g.jsxs(g.Fragment,{children:[g.jsxs("div",{className:"flex items-start gap-3",children:[g.jsx(Ts,{icon:s.icon,name:s.repo_name||kr(s),artwork:"inset"}),g.jsxs("div",{className:"min-w-0 flex-1 overflow-hidden",children:[g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx("span",{className:"min-w-0 flex-1 truncate font-medium text-text",children:kr(s)}),e.archived?g.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]}),g.jsxs("div",{className:"mt-1 flex min-w-0 items-center gap-2 text-xs text-muted",children:[s.repo_name?g.jsx("span",{className:"shrink-0 font-mono text-faint",children:s.repo_name}):null,s.branch?g.jsx(Pp,{className:"min-w-0 flex-1 truncate",children:s.branch}):null,u?g.jsxs(Pp,{className:"shrink-0 text-faint",children:["dir ",s.directory_name]}):null,g.jsx("span",{className:"ml-auto shrink-0 pl-2 text-[11px] text-faint",children:S2(s.updated_at)})]})]})]}),e.snippets.length?g.jsxs("div",{className:"mt-2 flex flex-col gap-1.5 border-l-2 border-border-soft pl-2.5",children:[e.snippets.map(d=>g.jsx(bj,{snippet:d},`${d.sessionId}:${d.at}:${d.text.slice(0,24)}`)),e.hits>e.snippets.length?g.jsxs("span",{className:"text-[11px] text-faint",children:["+",e.hits-e.snippets.length," more messages"]}):null]}):null]});return g.jsx("button",{type:"button",className:De(gj,a&&"border-accent/50 bg-surface-2"),onClick:()=>i(s.id,e.sessionId),children:f})}const Cj={user:"you",assistant:"agent",thinking:"thought"};function bj({snippet:e}){return g.jsxs("p",{className:"line-clamp-2 text-left text-xs leading-snug text-muted",children:[g.jsx("span",{className:`mr-1.5 text-[10px] uppercase tracking-wide ${e.role==="thinking"?"text-faint italic":"text-faint"}`,children:Cj[e.role]}),PD(e.text).map((n,a)=>n.hit?g.jsx("mark",{className:"rounded bg-accent/25 px-0.5 text-text",children:n.text},a):g.jsx("span",{children:n.text},a))]})}function Aj({live:e,selectedId:n,onOpen:a,onClose:i}){const[s,c]=S.useState(""),x=S.useRef(null);return S.useEffect(()=>x.current?.focus(),[]),S.useEffect(()=>{const u=f=>{f.key==="Escape"&&i()};return window.addEventListener("keydown",u),()=>window.removeEventListener("keydown",u)},[i]),Hs.createPortal(g.jsxs(g.Fragment,{children:[g.jsx("div",{className:"fixed inset-0 z-50 bg-black/50",onClick:i,"aria-hidden":!0}),g.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:[g.jsxs("div",{className:"flex items-center gap-2 border-b border-border-soft px-3 py-2.5",children:[g.jsxs("div",{className:"relative min-w-0 flex-1",children:[g.jsx(R8,{size:15,className:"pointer-events-none absolute left-3 top-1/2 -translate-y-1/2 text-faint"}),g.jsx("input",{ref:x,type:"text",inputMode:"search",enterKeyHint:"search",autoCapitalize:"none",autoCorrect:"off",spellCheck:!1,value:s,onChange:u=>c(u.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?g.jsx("button",{type:"button",onClick:()=>{c(""),x.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:g.jsx(Dr,{size:15})}):null]}),g.jsx("button",{type:"button",onClick:i,className:"shrink-0 rounded-full px-2 py-1.5 text-sm text-muted active:bg-surface-2",children:"Cancel"})]}),g.jsx("div",{className:"pb-safe min-h-0 flex-1 overflow-y-auto overflow-x-hidden px-3 py-3",children:s.trim()?g.jsx(Ej,{query:s,live:e,selectedId:n,onOpen:a}):g.jsx(vn,{children:"Every workspace on this Mac, archived included — by name, or by something said in the chat. Quote a “phrase” to require it word for word."})})]})]}),document.body)}function Bj(e,n){return[...e].sort((a,i)=>{const s=+!!i.pinned_at-+!!a.pinned_at;return s||(n==="name"?kr(a).localeCompare(kr(i)):n==="created"?i.created_at.localeCompare(a.created_at):i.updated_at.localeCompare(a.updated_at))})}function vj(e,n){return n==="status"?zf(e):n==="recent"?QD(e.updated_at):e.repo_name??""}function kj(e,n){if(n==="none")return[{key:"all",label:"",items:e}];const a=new Map;for(const i of e){const s=vj(i,n),c=a.get(s);c?c.push(i):a.set(s,[i])}return n==="status"?[...jp,...[...a.keys()].filter(s=>!jp.includes(s))].filter(s=>a.has(s)).map(s=>({key:`status:${s}`,label:Zu(s),status:s,items:a.get(s)??[]})):n==="recent"?GD.filter(i=>a.has(i)).map(i=>({key:`recent:${i}`,label:VD(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 Dj({selectedId:e}){const n=cl(),a=Me(H=>H.setSidebarOpen),i=Me(H=>H.view),s=Me(H=>H.readMarks),c=Me(H=>H.toggleGroup),[x,u]=S.useState(!1),[f,d]=S.useState(!1),[m,p]=S.useState(!1),[y,C]=S.useState(!1),[b,B]=S.useState(!1),{data:v,isLoading:k,isError:R,error:_}=Tf(),N=v?.workspaces??[],T=Rf().data?.groups;S.useEffect(()=>{const H=re=>{(re.metaKey||re.ctrlKey)&&!re.shiftKey&&!re.altKey&&re.key.toLowerCase()==="k"&&(re.preventDefault(),B(fe=>!fe))};return window.addEventListener("keydown",H),()=>window.removeEventListener("keydown",H)},[]);const F=new Map(N.map(H=>[H.repo_name,H.icon])),O=[...new Set([...N.map(H=>H.repo_name).filter(H=>!!H),...i.repos])].sort().map(H=>({name:H,icon:F.get(H)??null})),L=i.repos.length?N.filter(H=>!!H.repo_name&&i.repos.includes(H.repo_name)):N,$=L.filter(H=>H.id===e||!(i.hideMerged&&HD(H)||i.hideDone&&qD(H))),z=L.length-$.length,X=kj(Bj($,i.sortBy),i.groupBy),K=(H,re=null)=>{n(re?`/w/${H}?session=${encodeURIComponent(re)}`:`/w/${H}`),a(!1)},V=i.repos.length>0||i.hideMerged||i.hideDone,Z=i.repos.length>0||z>0,Q=i.repos.length===1?i.repos[0]:`${i.repos.length} repos`,U=N.length?Z?[`${$.length} of ${N.length}`,i.repos.length?Q:null,z?`${z} hidden`:null].filter(Boolean).join(" · "):`${N.length} active`:void 0;return g.jsxs("div",{className:"flex h-full min-w-0 flex-col overflow-hidden",children:[g.jsxs("div",{className:"relative",children:[g.jsx(T0,{title:"Workspaces",subtitle:U,right:g.jsxs(g.Fragment,{children:[g.jsx("button",{type:"button",onClick:()=>B(!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:g.jsx(R8,{size:18})}),g.jsxs("button",{type:"button",onClick:()=>u(H=>!H),"aria-label":"View options",className:"relative flex size-9 shrink-0 items-center justify-center rounded-full text-muted active:bg-surface-2",children:[g.jsx(mB,{size:18}),V?g.jsx("span",{className:"absolute right-1.5 top-1.5 size-1.5 rounded-full bg-accent"}):null]}),g.jsx("button",{type:"button",onClick:()=>d(!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:g.jsx(T8,{size:18})}),g.jsx("button",{type:"button",onClick:()=>p(!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:g.jsx(N8,{size:20})})]})}),x?g.jsx(wj,{repos:O,view:i,onClose:()=>u(!1)}):null]}),g.jsx("nav",{className:"pb-safe min-w-0 flex-1 overflow-y-auto overflow-x-hidden px-3 py-3",children:k&&!v?g.jsx(za,{label:"Loading workspaces…"}):R?g.jsx(cF,{error:_}):N.length===0?g.jsx(vn,{children:"No active workspaces. Start one in Conductor and it’ll appear here."}):$.length===0?g.jsxs(vn,{children:[i.repos.length?`No workspaces in ${Q}`:"No workspaces",z?` — ${z} ${z===1?"one is":"ones are"} hidden.`:"."]}):X.map(H=>{const re=!!H.label&&i.collapsed.includes(H.key);return g.jsxs("section",{children:[H.label?g.jsxs("button",{type:"button",onClick:()=>c(H.key),className:"flex w-full items-center gap-2 px-1 py-2 text-sm font-semibold",children:[g.jsx(Fj,{status:H.status}),g.jsx("span",{className:"truncate",children:H.label}),re?g.jsx("span",{className:"font-normal text-muted text-xs",children:H.items.length}):null,g.jsx(xl,{size:14,className:De("ml-auto shrink-0 text-faint transition-transform",re&&"-rotate-90")})]}):null,re?null:g.jsx("ul",{className:"flex flex-col gap-2 pb-2",children:H.items.map(fe=>{const w=$v(fe,s);return g.jsx("li",{className:"fade-in",children:g.jsx("button",{type:"button",className:De("card w-full px-3 py-2.5",fe.id===e?"border-accent/50 bg-surface-2":w&&"border-l-accent"),onClick:()=>K(fe.id),children:g.jsx(Mj,{w:fe,unread:w,selected:fe.id===e,modelGroups:T})})},fe.id)})})]},H.key)})}),f?g.jsx(ij,{version:v?.version,onLogs:()=>{d(!1),C(!0)},onClose:()=>d(!1)}):null,m?g.jsx(mj,{onClose:()=>p(!1)}):null,b?g.jsx(Aj,{live:N,selectedId:e,onOpen:(H,re)=>{B(!1),K(H,re)},onClose:()=>B(!1)}):null,y?g.jsx(dj,{onClose:()=>C(!1)}):null]})}function Fj({status:e}){if(!e)return null;const n=Lf[e];return n?g.jsx("span",{className:"dot size-2",style:{background:n}}):g.jsx("span",{className:"dot size-2 border border-faint bg-transparent"})}function wj({repos:e,view:n,onClose:a}){const i=Me(s=>s.setView);return g.jsxs(g.Fragment,{children:[g.jsx("div",{className:"fixed inset-0 z-20",onClick:a,"aria-hidden":!0}),g.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:[g.jsx(As,{id:"view-group",label:"Group by",children:g.jsx(Gm,{id:"view-group",value:n.groupBy,onChange:s=>i({groupBy:s}),options:[["status","Status"],["recent","Recent"],["repo","Repo"],["none","None"]]})}),g.jsx(Sj,{repos:e,selected:n.repos,onChange:s=>i({repos:s})}),g.jsx(As,{id:"view-sort",label:"Sort by",children:g.jsx(Gm,{id:"view-sort",value:n.sortBy,onChange:s=>i({sortBy:s}),options:[["updated","Updated"],["created","Created"],["name","Name"]]})}),g.jsx(As,{id:"view-hide-merged",label:"Hide merged",children:g.jsx($m,{id:"view-hide-merged",checked:n.hideMerged,label:"Hide workspaces whose PR has merged",onChange:s=>i({hideMerged:s})})}),g.jsx(As,{id:"view-hide-done",label:"Hide done",children:g.jsx($m,{id:"view-hide-done",checked:n.hideDone,label:"Hide workspaces marked Done",onChange:s=>i({hideDone:s})})})]})]})}function Sj({repos:e,selected:n,onChange:a}){const[i,s]=S.useState(!1),c=n.length===0,x=c?"All repos":n.length===1?n[0]:`${n.length} repos`,u=f=>a(n.includes(f)?n.filter(d=>d!==f):[...n,f]);return g.jsxs("div",{className:"flex flex-col gap-1.5",children:[g.jsx(As,{id:"view-repo",label:"Repo",children:g.jsxs("button",{id:"view-repo",type:"button",onClick:()=>s(f=>!f),"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:[g.jsx("span",{className:"truncate",children:x}),g.jsx(xl,{size:14,className:De("shrink-0 text-faint transition-transform",i&&"rotate-180")})]})}),i?g.jsxs("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:[g.jsx(qm,{checked:c,label:"All repos",onChange:()=>a([])}),e.map(f=>g.jsx(qm,{checked:n.includes(f.name),label:f.name,icon:g.jsx(Ts,{icon:f.icon,name:f.name,artwork:"inset"}),onChange:()=>u(f.name)},f.name))]}):null]})}function qm({checked:e,label:n,icon:a,onChange:i}){return g.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:[g.jsx("input",{type:"checkbox",checked:e,onChange:i,className:"peer sr-only"}),a??g.jsx("span",{className:"size-8 shrink-0"}),g.jsx("span",{className:"min-w-0 flex-1 truncate",children:n}),g.jsx("span",{className:De("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-white":"border-faint bg-surface"),children:e?g.jsx(ea,{size:12,strokeWidth:3}):null})]})}function $m({id:e,checked:n,label:a,onChange:i}){return g.jsx("button",{id:e,type:"button",role:"switch","aria-checked":n,"aria-label":a,onClick:()=>i(!n),className:De("relative h-6 w-11 shrink-0 rounded-full transition-colors",n?"bg-accent":"border border-border bg-surface-2"),children:g.jsx("span",{className:De("absolute left-0.5 top-0.5 size-5 rounded-full bg-white transition-transform",n?"translate-x-5":"translate-x-0")})})}function As({id:e,label:n,children:a}){return g.jsxs("div",{className:"flex items-center justify-between gap-3 text-sm text-muted",children:[g.jsx("label",{htmlFor:e,children:n}),a]})}function Gm({id:e,value:n,options:a,onChange:i}){return g.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 [color-scheme:dark]",children:a.map(([s,c])=>g.jsx("option",{value:s,children:c},s))})}function _j(e,n){return e?.length?e.find(i=>i.agentType===(n??"unknown"))?.models??[...new Set(e.flatMap(i=>i.models))]:[]}function Mj({w:e,unread:n,selected:a,modelGroups:i}){const s=k2(e.model,_j(i,e.agent_type));return g.jsxs(g.Fragment,{children:[g.jsxs("div",{className:"relative shrink-0",children:[g.jsx(Ts,{icon:e.icon,name:e.repo_name||kr(e),artwork:"full-bleed"}),g.jsx(iF,{w:e,className:"absolute -right-0.5 -bottom-0.5 bg-surface ring-2 ring-surface"})]}),g.jsxs("div",{className:"min-w-0 flex-1 space-y-1.25 overflow-hidden",children:[g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx("span",{className:De("min-w-0 flex-1 truncate text-sm leading-none",n?"font-bold":"font-medium",n||a?"text-text":"text-muted"),children:kr(e)}),e.pinned_at?g.jsx("span",{className:"shrink-0 text-xs text-faint",children:"📌"}):null,n>1?g.jsx(oF,{children:n}):n?g.jsx("span",{className:"dot size-2 bg-accent"}):null]}),g.jsxs("div",{className:"flex min-w-0 items-end gap-2 text-xs text-muted",children:[g.jsx("span",{className:"shrink-0 text-[11px] text-faint",children:_2(e.updated_at)}),s?g.jsxs("span",{className:"ml-auto flex min-w-0 items-center gap-1 text-[11px]",children:[g.jsx(s5,{agentType:e.agent_type,model:e.model,className:"size-3"}),g.jsx("span",{className:"truncate",children:s})]}):null]})]})]})}function Nj(){kk();const e=Me(n=>n.token);return g.jsxs(g.Fragment,{children:[g.jsx(sk,{}),e?g.jsxs(f7,{children:[g.jsxs(Cs,{element:g.jsx(Tj,{}),children:[g.jsx(Cs,{index:!0,element:g.jsx(Rj,{})}),g.jsx(Cs,{path:"/w/:workspaceId",element:g.jsx(LO,{})})]}),g.jsx(Cs,{path:"*",element:g.jsx(c7,{to:"/",replace:!0})})]}):g.jsx(YO,{})]})}function Tj(){const e=G4("/w/:workspaceId"),n=Me(s=>s.sidebarOpen),a=Me(s=>s.setSidebarOpen),i=S.useRef(null);return vk(i),Ik(),zk(),Dk(),g.jsxs("div",{className:"flex h-full overflow-hidden",children:[n?g.jsx("div",{className:"fixed inset-0 z-40 bg-black/50 md:hidden",onClick:()=>a(!1),"aria-hidden":!0}):null,g.jsx("aside",{ref:i,className:De("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:g.jsx(Dj,{selectedId:e?.params.workspaceId})}),g.jsx("main",{className:"flex min-w-0 flex-1 flex-col",children:g.jsx(x7,{})})]})}function Rj(){const e=Me(n=>n.setSidebarOpen);return g.jsxs("div",{className:"grid h-full place-items-center",children:[g.jsx("button",{type:"button",onClick:()=>e(!0),className:"pill pill-active md:hidden",children:"Browse workspaces"}),g.jsx("span",{className:"hidden text-sm text-muted md:block",children:"Select a workspace"})]})}navigator.storage?.persist&&navigator.storage.persist().catch(()=>{});const Oj=new q6({defaultOptions:{queries:{staleTime:1e3,retry:1,refetchOnWindowFocus:!0}}}),f5=document.getElementById("root");if(!f5)throw new Error("#root missing");o4.createRoot(f5).render(g.jsx(S.StrictMode,{children:g.jsx(G6,{client:Oj,children:g.jsx(z7,{children:g.jsx(Nj,{})})})}));
|