agentic-diff 0.1.3 → 0.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.js +108 -23
- package/dist/web/assets/{FileEditor-DzY0pB52.js → FileEditor-B8siphLU.js} +1 -1
- package/dist/web/assets/{index-Cn8zAfam.css → index-0RNrzebl.css} +1 -1
- package/dist/web/assets/index-CJ2BnAVB.js +62 -0
- package/dist/web/index.html +2 -2
- package/package.json +1 -1
- package/dist/web/assets/index-DmjfWBCX.js +0 -62
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t,t.exports),e=null),t.exports),s=(e,n)=>{let r=Object.setPrototypeOf({},null);for(var i in e)t(r,i,{get:e[i],enumerable:!0});return n&1||t(r,Symbol.toStringTag,{value:`Module`}),n&2?r:Object.preventExtensions(r)},c=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(let c of r(i))!a.call(e,c)&&c!==o&&(s=n(i,c),t(e,c,{get:s&&s.get&&!s.configurable?s.get:()=>i[c],enumerable:!s||s.enumerable}));return e},l=(n,r,o)=>(o=n==null?{}:e(i(n)),c(r||!n||!n.__esModule||!a.call(n,`default`)?t(o,`default`,{value:n,enumerable:!0}):o,n));(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),t.credentials=e.crossOrigin===`use-credentials`?`include`:e.crossOrigin===`anonymous`?`omit`:`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var u=o((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.consumer`),s=Symbol.for(`react.context`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.memo`),d=Symbol.for(`react.lazy`),f=Symbol.for(`react.activity`),p=Symbol.for(`react.view_transition`),m=Symbol.iterator;function h(e){return typeof e!=`object`||!e?null:(e=m&&e[m]||e[`@@iterator`],typeof e==`function`?e:null)}var g={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_=Object.assign,v={};function y(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||g}y.prototype.isReactComponent={},y.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=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,e,t,`setState`)},y.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function b(){}b.prototype=y.prototype;function x(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||g}var S=x.prototype=new b;S.constructor=x,_(S,y.prototype),S.isPureReactComponent=!0;var C=Array.isArray;function w(){}var T={H:null,A:null,T:null,S:null},E=Object.prototype.hasOwnProperty;function D(e,n,r){var i=r.ref;return{$$typeof:t,type:e,key:n,ref:i===void 0?null:i,props:r}}function O(e,t){return D(e.type,t,e.props)}function ee(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function k(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var te=/\/+/g;function ne(e,t){return typeof e==`object`&&e&&e.key!=null?k(``+e.key):t.toString(36)}function A(e){switch(e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason;default:switch(typeof e.status==`string`?e.then(w,w):(e.status=`pending`,e.then(function(t){e.status===`pending`&&(e.status=`fulfilled`,e.value=t)},function(t){e.status===`pending`&&(e.status=`rejected`,e.reason=t)})),e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason}}throw e}function j(e,r,i,a,o){var s=typeof e;(s===`undefined`||s===`boolean`)&&(e=null);var c=!1;if(e===null)c=!0;else switch(s){case`bigint`:case`string`:case`number`:c=!0;break;case`object`:switch(e.$$typeof){case t:case n:c=!0;break;case d:return c=e._init,j(c(e._payload),r,i,a,o)}}if(c)return o=o(e),c=a===``?`.`+ne(e,0):a,C(o)?(i=``,c!=null&&(i=c.replace(te,`$&/`)+`/`),j(o,r,i,``,function(e){return e})):o!=null&&(ee(o)&&(o=O(o,i+(o.key==null||e&&e.key===o.key?``:(``+o.key).replace(te,`$&/`)+`/`)+c)),r.push(o)),1;c=0;var l=a===``?`.`:a+`:`;if(C(e))for(var u=0;u<e.length;u++)a=e[u],s=l+ne(a,u),c+=j(a,r,i,s,o);else if(u=h(e),typeof u==`function`)for(e=u.call(e),u=0;!(a=e.next()).done;)a=a.value,s=l+ne(a,u++),c+=j(a,r,i,s,o);else if(s===`object`){if(typeof e.then==`function`)return j(A(e),r,i,a,o);throw r=String(e),Error(`Objects are not valid as a React child (found: `+(r===`[object Object]`?`object with keys {`+Object.keys(e).join(`, `)+`}`:r)+`). If you meant to render a collection of children, use an array instead.`)}return c}function M(e,t,n){if(e==null)return e;var r=[],i=0;return j(e,r,``,``,function(e){return t.call(n,e,i++)}),r}function re(e){if(e._status===-1){var t=(0,e._result)();t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n,t.status===void 0&&(t.status=`fulfilled`,t.value=n))},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n,t.status===void 0&&(t.status=`rejected`,t.reason=n))}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var ie=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)};function N(e){var t=T.T,n={};n.types=t===null?null:t.types,T.T=n;try{var r=e(),i=T.S;i!==null&&i(n,r),typeof r==`object`&&r&&typeof r.then==`function`&&r.then(w,ie)}catch(e){ie(e)}finally{t!==null&&n.types!==null&&(t.types=n.types),T.T=t}}function ae(e){var t=T.T;if(t!==null){var n=t.types;n===null?t.types=[e]:n.indexOf(e)===-1&&n.push(e)}else N(ae.bind(null,e))}var oe={map:M,forEach:function(e,t,n){M(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return M(e,function(){t++}),t},toArray:function(e){return M(e,function(e){return e})||[]},only:function(e){if(!ee(e))throw Error(`React.Children.only expected to receive a single React element child.`);return e}};e.Activity=f,e.Children=oe,e.Component=y,e.Fragment=r,e.Profiler=a,e.PureComponent=x,e.StrictMode=i,e.Suspense=l,e.ViewTransition=p,e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=T,e.__COMPILER_RUNTIME={__proto__:null,c:function(e){return T.H.useMemoCache(e)}},e.addTransitionType=ae,e.cache=function(e){return function(){return e.apply(null,arguments)}},e.cacheSignal=function(){return null},e.cloneElement=function(e,t,n){if(e==null)throw Error(`The argument must be a React element, but you passed `+e+`.`);var r=_({},e.props),i=e.key;if(t!=null)for(a in t.key!==void 0&&(i=``+t.key),t)!E.call(t,a)||a===`key`||a===`__self`||a===`__source`||a===`ref`&&t.ref===void 0||(r[a]=t[a]);var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){for(var o=Array(a),s=0;s<a;s++)o[s]=arguments[s+2];r.children=o}return D(e.type,i,r)},e.createContext=function(e){return e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:o,_context:e},e},e.createElement=function(e,t,n){var r,i={},a=null;if(t!=null)for(r in t.key!==void 0&&(a=``+t.key),t)E.call(t,r)&&r!==`key`&&r!==`__self`&&r!==`__source`&&(i[r]=t[r]);var o=arguments.length-2;if(o===1)i.children=n;else if(1<o){for(var s=Array(o),c=0;c<o;c++)s[c]=arguments[c+2];i.children=s}if(e&&e.defaultProps)for(r in o=e.defaultProps,o)i[r]===void 0&&(i[r]=o[r]);return D(e,a,i)},e.createRef=function(){return{current:null}},e.forwardRef=function(e){return{$$typeof:c,render:e}},e.isValidElement=ee,e.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:re}},e.memo=function(e,t){return{$$typeof:u,type:e,compare:t===void 0?null:t}},e.startTransition=N,e.unstable_useCacheRefresh=function(){return T.H.useCacheRefresh()},e.use=function(e){return T.H.use(e)},e.useActionState=function(e,t,n){return T.H.useActionState(e,t,n)},e.useCallback=function(e,t){return T.H.useCallback(e,t)},e.useContext=function(e){return T.H.useContext(e)},e.useDebugValue=function(){},e.useDeferredValue=function(e,t){return T.H.useDeferredValue(e,t)},e.useEffect=function(e,t){return T.H.useEffect(e,t)},e.useEffectEvent=function(e){return T.H.useEffectEvent(e)},e.useId=function(){return T.H.useId()},e.useImperativeHandle=function(e,t,n){return T.H.useImperativeHandle(e,t,n)},e.useInsertionEffect=function(e,t){return T.H.useInsertionEffect(e,t)},e.useLayoutEffect=function(e,t){return T.H.useLayoutEffect(e,t)},e.useMemo=function(e,t){return T.H.useMemo(e,t)},e.useOptimistic=function(e,t){return T.H.useOptimistic(e,t)},e.useReducer=function(e,t,n){return T.H.useReducer(e,t,n)},e.useRef=function(e){return T.H.useRef(e)},e.useState=function(e){return T.H.useState(e)},e.useSyncExternalStore=function(e,t,n){return T.H.useSyncExternalStore(e,t,n)},e.useTransition=function(){return T.H.useTransition()},e.version=`19.3.1`})),d=o(((e,t)=>{t.exports=u()})),f=l(d(),1),p=f.createContext(!1),m=()=>f.useContext(p);p.Provider;var h=o((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.fragment`);function r(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.Fragment=n,e.jsx=r,e.jsxs=r})),g=o(((e,t)=>{t.exports=h()})),_=g(),v=f.createContext(void 0),y=e=>{let t=f.useContext(v);if(e)return e;if(!t)throw Error(`No QueryClient set, use QueryClientProvider to set one`);return t},b=({client:e,children:t})=>(f.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),(0,_.jsx)(v.Provider,{value:e,children:t}));function x(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var S=f.createContext(x()),C=()=>f.useContext(S),w=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(){}},T=new class extends w{#e;#t;#n;constructor(){super(),this.#n=e=>{if(typeof window<`u`&&window.addEventListener){let t=()=>e();return window.addEventListener(`visibilitychange`,t,!1),()=>{window.removeEventListener(`visibilitychange`,t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(e=>{typeof e==`boolean`?this.setFocused(e):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){let e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#e==`boolean`?this.#e:globalThis.document?.visibilityState!==`hidden`}},E={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},D=new class{#e=E;setTimeoutProvider(e){this.#e=e}setTimeout(e,t){return this.#e.setTimeout(e,t)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,t){return this.#e.setInterval(e,t)}clearInterval(e){this.#e.clearInterval(e)}};function O(e){setTimeout(e,0)}var ee=typeof window>`u`||`Deno`in globalThis;function k(){}function te(e,t){return typeof e==`function`?e(t):e}function ne(e){return typeof e==`number`&&e>=0&&e!==1/0}function A(e,t){return Math.max(e+(t||0)-Date.now(),0)}function j(e,t){return typeof e==`function`?e(t):e}function M(e,t){let{type:n=`all`,exact:r,fetchStatus:i,predicate:a,queryKey:o,stale:s}=e;if(o){if(r){if(t.queryHash!==ie(o,t.options))return!1}else if(!ae(t.queryKey,o))return!1}if(n!==`all`){let e=t.isActive();if(n===`active`&&!e||n===`inactive`&&e)return!1}return!(typeof s==`boolean`&&t.isStale()!==s||i&&i!==t.state.fetchStatus||a&&!a(t))}function re(e,t){let{exact:n,status:r,predicate:i,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(n){if(N(t.options.mutationKey)!==N(a))return!1}else if(!ae(t.options.mutationKey,a))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function ie(e,t){return(t?.queryKeyHashFn||N)(e)}function N(e){return JSON.stringify(e,(e,t)=>ue(t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):t)}function ae(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(e&&t&&typeof e==`object`&&typeof t==`object`){if(Array.isArray(e)!==Array.isArray(t))return!1;if(Array.isArray(e)&&Array.isArray(t)){if(t.length>e.length)return!1;for(let n=0;n<t.length;n++)if(!ae(e[n],t[n]))return!1;return!0}let n=Object.keys(t);for(let r of n)if(!ae(e[r],t[r]))return!1;return!0}return!1}var oe=Object.prototype.hasOwnProperty;function se(e,t,n=0){if(e===t)return e;if(n>500)return t;let r=le(e)&&le(t);if(!r&&!(ue(e)&&ue(t)))return t;let i=(r?e:Object.keys(e)).length,a=r?t:Object.keys(t),o=a.length,s=r?Array(o):{},c=0;for(let l=0;l<o;l++){let o=r?l:a[l],u=e[o],d=t[o];if(u===d){s[o]=u,(r?l<i:oe.call(e,o))&&c++;continue}if(u===null||d===null||typeof u!=`object`||typeof d!=`object`){s[o]=d;continue}let f=se(u,d,n+1);s[o]=f,f===u&&c++}return i===o&&c===i?e:s}function ce(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(let n of Object.keys(e))if(!oe.call(t,n)||e[n]!==t[n])return!1;return!0}function le(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function ue(e){if(!de(e))return!1;let t=Object.getPrototypeOf(e),n=t?.constructor;if(n===void 0)return!0;if(typeof n!=`function`)return!1;let r=n.prototype;return!(!de(r)||!r.hasOwnProperty(`isPrototypeOf`)||t!==Object.prototype)}function de(e){return Object.prototype.toString.call(e)===`[object Object]`}function fe(e){return new Promise(t=>{D.setTimeout(t,e)})}function pe(e,t,n){return typeof n.structuralSharing==`function`?n.structuralSharing(e,t):n.structuralSharing===!1?t:se(e,t)}function me(e){return e}function P(e,t,n,r){let i=r?[t,...e]:[...e,t];return n&&i.length>n?r?i.slice(0,n):i.slice(-n):i}var F=Symbol();function he(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===F?()=>Promise.reject(Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function ge(e,t){return typeof e==`function`?e(...t):!!e}var _e=Symbol();function ve(e,t,n,r){let i=!1,a;return Object.defineProperties(e,{[_e]:{value:r},signal:{enumerable:!0,get:()=>(a??=t(),i||(i=!0,a.aborted?n():a.addEventListener(`abort`,n,{once:!0})),a)}}),e}var ye=()=>ee,I=()=>ye();function be(e){return{onFetch:(t,n)=>{let r=t.options,i=t.fetchOptions?.meta?.fetchMore?.direction,a=t.state.data?.pages||[],o=t.state.data?.pageParams||[],s={pages:[],pageParams:[]},c=0,l=async()=>{let n=!1,l=t,u=e=>{ve(e,()=>t.signal,()=>n=!0,l[_e])},d=he(t.options,t.fetchOptions),f=async(e,r,i)=>{if(n)return Promise.reject(t.signal.reason);if(r==null&&e.pages.length)return Promise.resolve(e);let a=(()=>{let e={client:t.client,queryKey:t.queryKey,pageParam:r,direction:i?`backward`:`forward`,meta:t.options.meta};return u(e),e})(),o=await d(a),{maxPages:s}=t.options;return{pages:P(e.pages,o,s,i),pageParams:P(e.pageParams,r,s,i)}};if(i&&a.length){let e=i===`backward`,t=e?Se:xe,n={pages:a,pageParams:o};s=await f(n,t(r,n),e)}else{let t=e??a.length;do{let e=c===0?o[0]===void 0?r.initialPageParam:o[0]:xe(r,s);if(c>0&&e==null)break;s=await f(s,e),c++}while(c<t)}return s};t.fetchFn=t.options.persister?()=>t.options.persister?.(l,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):l}}}function xe(e,{pages:t,pageParams:n}){let r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function Se(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}var Ce=O;function we(){let e=[],t=0,n=e=>{e()},r=e=>{e()},i=Ce,a=r=>{t?e.push(r):i(()=>{n(r)})},o=()=>{let t=e;e=[],t.length&&i(()=>{r(()=>{t.forEach(e=>{n(e)})})})};return{batch:e=>{let n;t++;try{n=e()}finally{t--,t||o()}return n},batchCalls:e=>(...t)=>{a(()=>{e(...t)})},schedule:a,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{r=e},setScheduler:e=>{i=e}}}var L=we(),Te=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),ne(this.gcTime)&&(this.#e=D.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(I()?1/0:3e5))}clearGcTimeout(){this.#e!==void 0&&(D.clearTimeout(this.#e),this.#e=void 0)}},Ee=new class extends w{#e=!0;#t;#n;constructor(){super(),this.#n=e=>{if(typeof window<`u`&&window.addEventListener){let t=()=>e(!0),n=()=>e(!1);return window.addEventListener(`online`,t,!1),window.addEventListener(`offline`,n,!1),()=>{window.removeEventListener(`online`,t),window.removeEventListener(`offline`,n)}}}}onSubscribe(){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(t=>{t(e)}))}isOnline(){return this.#e}};function De(e){return Math.min(1e3*2**e,3e4)}function Oe(e){return(e??`online`)!==`online`||Ee.isOnline()}var ke=class extends Error{constructor(e){super(`CancelledError`),this.revert=e?.revert,this.silent=e?.silent}};function Ae(e){let t=!1,n=0,r,i=`pending`,a,o,s=new Promise((e,t)=>{a=e,o=t});s.catch(k);let c=()=>i!==`pending`,l=t=>{if(!c()){let n=new ke(t);h(n),e.onCancel?.(n)}},u=()=>{t=!0},d=()=>{t=!1},f=()=>T.isFocused()&&(e.networkMode===`always`||Ee.isOnline())&&e.canRun(),p=()=>Oe(e.networkMode)&&e.canRun(),m=e=>{c()||(r?.(),i=`resolved`,a(e))},h=e=>{c()||(r?.(),i=`rejected`,o(e))},g=t=>new Promise(n=>{r=e=>{(c()||t())&&n(e)},e.onPause?.()}).then(()=>{r=void 0,c()||e.onContinue?.()}),_=()=>{if(c())return;let r,i=n===0?e.initialPromise:void 0;try{r=i??e.fn()}catch(e){r=Promise.reject(e)}Promise.resolve(r).then(m).catch(r=>{if(c())return;let i=e.retry??(I()?0:3),a=e.retryDelay??De,o=typeof a==`function`?a(n,r):a,s=i===!0||typeof i==`number`&&n<i||typeof i==`function`&&i(n,r);t||!s?h(r):(n++,e.onFail?.(n,r),fe(o).then(()=>c()||f()?void 0:g(f)).then(()=>{t?h(r):_()}))})};return{promise:s,status:()=>i,cancel:l,continue:()=>(r?.(),s),cancelRetry:u,continueRetry:d,canStart:p,start:()=>(p()?_():g(p).then(_),s)}}var je=class extends Te{#e;#t;#n;#r;#i;#a;#o;#s;#c;constructor(e){super(),this.#c=!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=Pe(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){let e=Pe(this.options);e.data!==void 0&&(this.setState(Ne(e.data,e.dataUpdatedAt)),this.#t=e)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus===`idle`&&this.#r.remove(this)}setData(e,t){let n=pe(this.state.data,e,this.options);return this.#u({data:n,type:`success`,dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e){this.#u({type:`setState`,state:e})}cancel(e){let t=this.#a?.promise;return this.#a?.cancel(e),t?t.then(k).catch(k):Promise.resolve()}destroy(){this.cancel({silent:!0}),super.destroy()}get resetState(){return this.#t}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(e=>j(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===F||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.state.data!==void 0&&this.getObserversCount()>0&&this.observers.some(e=>j(e.options.staleTime,this)===`static`)}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:!A(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(e=>e.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#a?.continue()}onOnline(){this.observers.find(e=>e.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){let t=this.observers.indexOf(e);t!==-1&&(this.observers.splice(t,1),this.observers.length||(this.#a&&(this.#c||this.state.fetchStatus===`paused`&&this.state.status===`pending`?this.#a.cancel({revert:!0}):this.#a.cancelRetry()),this.#l()),this.#r.notify({type:`observerRemoved`,query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#u({type:`invalidate`})}async fetch(e,t){if(this.state.fetchStatus!==`idle`&&this.#a?.status()!==`rejected`){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#a&&this.#o)return this.#a.continueRetry(),this.#o}if(e&&this.setOptions(e),!this.options.queryFn){let e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}let n=new AbortController,r=e=>{Object.defineProperties(e,{[_e]:{value:n.signal,enumerable:!0},signal:{enumerable:!0,get:()=>(this.#c=!0,n.signal)}})},i=()=>{let e=he(this.options,t),n=(()=>{let e={client:this.#i,queryKey:this.queryKey,meta:this.meta};return r(e),e})();return this.#c=!1,this.options.persister?this.options.persister(e,n,this):e(n)},a=(()=>{let e={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#i,state:this.state,fetchFn:i};return r(e),e})();(this.#e===`infinite`?be(this.options.pages):this.options.behavior)?.onFetch(a,this),this.#n=this.state,(this.state.fetchStatus===`idle`||this.state.fetchMeta!==a.fetchOptions?.meta)&&this.#u({type:`fetch`,meta:a.fetchOptions?.meta});let o=this.#a=Ae({initialPromise:t?.initialPromise,fn:a.fetchFn,onCancel:e=>{e instanceof ke&&e.revert&&this.setState({...this.#n,fetchStatus:`idle`}),n.abort()},onFail:(e,t)=>{this.#u({type:`failed`,failureCount:e,error:t})},onPause:()=>{this.#u({type:`pause`})},onContinue:()=>{this.#u({type:`continue`})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0}),s=(async()=>{try{let e=await o.promise;if(e===void 0)throw Error(`${this.queryHash} data is undefined`);return this.setData(e),this.#r.config.onSuccess?.(e,this),this.#r.config.onSettled?.(e,this.state.error,this),e}catch(e){if(e instanceof ke){if(e.silent){if(this.#a!==o&&this.#o)return this.#o;throw e}if(e.revert){if(this.state.data===void 0)throw e;return this.state.data}}throw this.#u({type:`error`,error:e}),this.#r.config.onError?.(e,this),this.#r.config.onSettled?.(this.state.data,e,this),e}finally{this.#a===o&&(this.#a=void 0,this.#o=void 0),this.#l()}})();return this.#o=s,o.start(),s}#l(){this.#r.get(this.queryHash)===this&&this.scheduleGc()}#u(e){let t=t=>{switch(e.type){case`failed`:return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case`pause`:return{...t,fetchStatus:`paused`};case`continue`:return{...t,fetchStatus:`fetching`};case`fetch`:return{...t,...Me(t.data,this.options),fetchMeta:e.meta??null};case`success`:{let n={...t,...Ne(e.data,e.dataUpdatedAt),dataUpdateCount:t.dataUpdateCount+1,...!e.manual&&{fetchStatus:`idle`,fetchFailureCount:0,fetchFailureReason:null}};return this.#n=e.manual?n:void 0,n}case`error`:{let n=e.error;return{...t,error:n,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:n,fetchStatus:`idle`,status:`error`,isInvalidated:!0}}case`invalidate`:return{...t,isInvalidated:!0};case`setState`:return{...t,...e.state}}};this.state=t(this.state),L.batch(()=>{this.observers.slice().forEach(e=>{e.onQueryUpdate()}),this.#r.notify({query:this,type:`updated`,action:e})})}};function Me(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Oe(t.networkMode)?`fetching`:`paused`,...e===void 0&&{error:null,status:`pending`}}}function Ne(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:`success`}}function Pe(e){let t=typeof e.initialData==`function`?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt==`function`?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?`success`:`pending`,fetchStatus:`idle`}}var Fe=class extends w{#e;#t=void 0;#n=void 0;#r=void 0;#i;#a;#o;#s;#c;#l;#u;#d;#f;#p=new Set;constructor(e,t){super(),this.options=t,this.#e=e,this.#a=null,this.bindMethods(),this.setOptions(t)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),Le(this.#t,this.options)?this.#m():this.updateResult(),this.#y())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Re(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Re(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#b(),this.#x(),this.#t.removeObserver(this)}setOptions(e){let t=this.options,n=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 j(this.options.enabled,this.#t)!=`boolean`)throw Error(`Expected enabled to be a boolean or a callback that returns a boolean`);this.#S(),this.#t.setOptions(this.options),t._defaulted&&!ce(this.options,t)&&this.#e.getQueryCache().notify({type:`observerOptionsUpdated`,query:this.#t,observer:this});let r=this.hasListeners();r&&ze(this.#t,n,this.options,t)&&this.#m(),this.updateResult(),r&&(this.#t!==n||j(this.options.enabled,this.#t)!==j(t.enabled,this.#t)||j(this.options.staleTime,this.#t)!==j(t.staleTime,this.#t))&&this.#g();let i=this.#_();r&&(this.#t!==n||j(this.options.enabled,this.#t)!==j(t.enabled,this.#t)||i!==this.#f)&&this.#v(i)}getOptimisticResult(e){let t=this.#e.getQueryCache().build(this.#e,e),n=this.createResult(t,e);return ce(this.getCurrentResult(),n)||(this.#r=n,this.#i=e),n}getCurrentResult(){return this.#r}trackResult(e,t){return new Proxy(e,{get:(e,n)=>(this.trackProp(n),t?.(n),Reflect.get(e,n))})}trackProp(e){this.#p.add(e)}getCurrentQuery(){return this.#t}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){let t=this.#e.defaultQueryOptions(e),n=this.#e.getQueryCache().build(this.#e,t),r=()=>{},i,a=new Promise(e=>{i=e,r=this.#e.getQueryCache().subscribe(i=>{i.type===`updated`&&i.query.queryHash===n.queryHash&&n.state.data!==void 0&&(r(),e(this.createResult(n,t)))})});return Promise.race([n.fetch(t).then(()=>{let e=this.createResult(n,t);return i?.(e),e}).finally(()=>{r()}),a])}fetch(e){return this.#m({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#r))}#m(e){this.#S();let t=this.#t.fetch(this.options,e);return e?.throwOnError||(t=t.catch(k)),t}#h(e){return!I()&&j(this.options.enabled,this.#t)!==!1&&ne(e)}#g(){this.#b();let e=j(this.options.staleTime,this.#t);if(this.#r.isStale||!this.#h(e))return;let t=A(this.#r.dataUpdatedAt,e)+1;this.#u=D.setTimeout(()=>{this.#r.isStale||this.updateResult()},t)}#_(){return j(this.options.refetchInterval,this.#t)??!1}#v(e){this.#x(),this.#f=e,this.#f!==0&&this.#h(this.#f)&&(this.#d=D.setInterval(()=>{(this.options.refetchIntervalInBackground||T.isFocused())&&this.#m()},this.#f))}#y(){this.#g(),this.#v(this.#_())}#b(){this.#u!==void 0&&(D.clearTimeout(this.#u),this.#u=void 0)}#x(){this.#d!==void 0&&(D.clearInterval(this.#d),this.#d=void 0)}createResult(e,t){let n=this.#t,r=this.options,i=this.#r,a=this.#i,o=e===n?this.#n:e.state,{state:s}=e,c={...s},l=!1,u;if(t._optimisticResults){let i=this.hasListeners(),a=!i&&Le(e,t),o=i&&ze(e,n,t,r);(a||o)&&(c={...c,...Me(s.data,e.options)}),t._optimisticResults===`isRestoring`&&(c.fetchStatus=`idle`)}let{error:d,errorUpdatedAt:f,status:p}=c;u=c.data;let m=!1;if(t.placeholderData!==void 0&&u===void 0&&p===`pending`){let e,n=i?.isPlaceholderData&&t.placeholderData===a?.placeholderData;n?(e=i.data,m=!0):e=typeof t.placeholderData==`function`?t.placeholderData(this.#l?.state.data,this.#l):t.placeholderData,(n||e!==void 0)&&(p=`success`,u=pe(t.select&&!m?this.#s:i?.data,e,t),l=!0)}if(t.select&&u!==void 0&&!m){if(u===this.#s&&t.select===this.#o)u=this.#c;else try{this.#o=t.select,this.#s=u,u=t.select(u),u=pe(i?.data,u,t),this.#c=u,this.#a=null}catch(e){this.#a=e}}else u===void 0&&(this.#s=void 0,this.#a=null);this.#a&&(d=this.#a,u=this.#c,f=i?.error===d?i.errorUpdatedAt:Date.now(),p=`error`,l=!1);let h=c.fetchStatus===`fetching`,g=p===`pending`,_=p===`error`,v=g&&h,y=u!==void 0;return{status:p,fetchStatus:c.fetchStatus,isPending:g,isSuccess:p===`success`,isError:_,isInitialLoading:v,isLoading:v,data:u,dataUpdatedAt:c.dataUpdatedAt,error:d,errorUpdatedAt:f,failureCount:c.fetchFailureCount,failureReason:c.fetchFailureReason,errorUpdateCount:c.errorUpdateCount,isFetched:e.isFetched(),isFetchedAfterMount:c.dataUpdateCount>o.dataUpdateCount||c.errorUpdateCount>o.errorUpdateCount,isFetching:h,isRefetching:h&&!g,isLoadingError:_&&!y,isPaused:c.fetchStatus===`paused`,isPlaceholderData:l,isRefetchError:_&&y,isStale:Be(e,t),refetch:this.refetch,isEnabled:j(t.enabled,e)!==!1}}updateResult(){let e=this.#r,t=this.createResult(this.#t,this.options);if(this.#i=this.options,this.#t.state.data!==void 0&&(this.#l=this.#t),ce(t,e))return;this.#r=t;let n=(()=>{if(!e)return!0;let{notifyOnChangeProps:t}=this.options,n=typeof t==`function`?t():t;if(n===`all`||!n&&!this.#p.size||this.options.throwOnError&&this.#r.error!==e.error)return!0;for(let t of n??this.#p)if(this.#r[t]!==e[t])return!0;return!1})();L.batch(()=>{n&&this.listeners.forEach(e=>{e(this.#r)}),this.#e.getQueryCache().notify({query:this.#t,type:`observerResultsUpdated`})})}#S(){let e=this.#e.getQueryCache().build(this.#e,this.options);if(e===this.#t)return;let t=this.#t;this.#t=e,this.#n=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#y()}};function Ie(e,t){return j(t.enabled,e)!==!1&&e.state.data===void 0&&(e.state.status!==`error`||j(t.retryOnMount,e)!==!1)}function Le(e,t){return Ie(e,t)||e.state.data!==void 0&&Re(e,t,t.refetchOnMount)}function Re(e,t,n){if(j(t.enabled,e)!==!1&&j(t.staleTime,e)!==`static`){let r=j(n,e);return r===`always`||r!==!1&&Be(e,t)}return!1}function ze(e,t,n,r){return(e!==t||j(r.enabled,e)===!1)&&(!n.suspense||e.state.status!==`error`)&&Be(e,n)}function Be(e,t){return j(t.enabled,e)!==!1&&e.isStaleByTime(j(t.staleTime,e))}var Ve=class extends Te{#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||He(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#t.includes(e)||(this.#t.push(e),this.clearGcTimeout(),this.#n.notify({type:`observerAdded`,mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(t=>t!==e),this.#n.has(this)&&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.state.status===`pending`?this.execute(this.state.variables):Promise.resolve())}async execute(e){let t=()=>{this.#i({type:`continue`})},n={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey},r=this.#r=Ae({fn:()=>this.options.mutationFn?this.options.mutationFn(e,n):Promise.reject(Error(`No mutationFn found`)),onFail:(e,t)=>{this.#i({type:`failed`,failureCount:e,error:t})},onPause:()=>{this.#i({type:`pause`})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)}),i=this.state.status===`pending`,a=!r.canStart();try{if(i)t();else{this.#i({type:`pending`,variables:e,isPaused:a}),this.#n.config.onMutate&&await this.#n.config.onMutate(e,this,n);let t=await this.options.onMutate?.(e,n);t!==this.state.context&&this.#i({type:`pending`,context:t,variables:e,isPaused:a})}this.state.isPaused&&r.canStart()&&t();let o=await r.start();return await this.#n.config.onSuccess?.(o,e,this.state.context,this,n),await this.options.onSuccess?.(o,e,this.state.context,n),await this.#n.config.onSettled?.(o,null,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(o,null,e,this.state.context,n),this.#i({type:`success`,data:o}),o}catch(t){try{await this.#n.config.onError?.(t,e,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onError?.(t,e,this.state.context,n)}catch(e){Promise.reject(e)}try{await this.#n.config.onSettled?.(void 0,t,this.state.variables,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onSettled?.(void 0,t,e,this.state.context,n)}catch(e){Promise.reject(e)}throw this.#i({type:`error`,error:t}),t}finally{this.#r===r&&(this.#r=void 0),this.#n.runNext(this)}}#i(e){let t=t=>{switch(e.type){case`failed`:return{...t,failureCount:e.failureCount,failureReason:e.error};case`pause`:return{...t,isPaused:!0};case`continue`:return{...t,isPaused:!1};case`pending`:return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:`pending`,variables:e.variables,submittedAt:Date.now()};case`success`:return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:`success`,isPaused:!1};case`error`:return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:`error`}}};this.state=t(this.state),L.batch(()=>{this.#t.forEach(t=>{t.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:`updated`,action:e})})}};function He(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:`idle`,variables:void 0,submittedAt:0}}var Ue=class extends w{#e;#t;#n;constructor(e={}){super(),this.config=e,this.#e=new Set,this.#t=new Map,this.#n=0}build(e,t,n){let r=new Ve({client:e,mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){this.#e.add(e);let t=We(e);if(typeof t==`string`){let n=this.#t.get(t);n?n.push(e):this.#t.set(t,[e])}this.notify({type:`added`,mutation:e})}remove(e){if(this.#e.delete(e)){e.destroy();let t=We(e);if(typeof t==`string`){let n=this.#t.get(t);if(n){if(n.length>1){let t=n.indexOf(e);t!==-1&&n.splice(t,1)}else n[0]===e&&this.#t.delete(t)}}}this.notify({type:`removed`,mutation:e})}has(e){return this.#e.has(e)}canRun(e){let t=We(e);if(typeof t==`string`){let n=this.#t.get(t)?.find(e=>e.state.status===`pending`);return!n||n===e}return!0}runNext(e){let t=We(e);return typeof t==`string`?(this.#t.get(t)?.find(t=>t!==e&&t.state.isPaused))?.continue()??Promise.resolve():Promise.resolve()}clear(){L.batch(()=>{let e=this.getAll();this.#e.clear(),this.#t.clear(),e.forEach(e=>e.destroy()),e.forEach(e=>{this.notify({type:`removed`,mutation:e})})})}getAll(){return Array.from(this.#e)}find(e){let t={exact:!0,...e};return this.getAll().find(e=>re(t,e))}findAll(e={}){return this.getAll().filter(t=>re(e,t))}notify(e){L.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return L.batch(()=>Promise.all(e.map(e=>e.continue().catch(k))))}};function We(e){return e.options.scope?.id}var Ge=class extends w{#e;#t=void 0;#n;#r;constructor(e,t){super(),this.#e=e,this.setOptions(t),this.bindMethods(),this.#i()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){let t=this.options;this.options=this.#e.defaultMutationOptions(e),ce(this.options,t)||this.#e.getMutationCache().notify({type:`observerOptionsUpdated`,mutation:this.#n,observer:this}),t?.mutationKey&&this.options.mutationKey&&N(t.mutationKey)!==N(this.options.mutationKey)?this.reset():this.#n?.state.status===`pending`&&this.#n.setOptions(this.options)}onSubscribe(){this.listeners.size===1&&this.#n&&(this.#n.addObserver(this),this.#i())}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(e){this.#i(),this.#a(e)}getCurrentResult(){return this.#t}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#i(),this.#a()}mutate(e,t){return this.#r=t,this.#n?.removeObserver(this),this.#n=this.#e.getMutationCache().build(this.#e,this.options),this.#n.addObserver(this),this.#n.execute(e)}#i(){let e=this.#n?.state??He();this.#t={...e,isPending:e.status===`pending`,isSuccess:e.status===`success`,isError:e.status===`error`,isIdle:e.status===`idle`,mutate:this.mutate,reset:this.reset}}#a(e){L.batch(()=>{let t=this.#r;if(t&&this.hasListeners()){let n=this.#t.variables,r=this.#t.context,i={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};if(e?.type===`success`){try{t.onSuccess?.(e.data,n,r,i)}catch(e){Promise.reject(e)}try{t.onSettled?.(e.data,null,n,r,i)}catch(e){Promise.reject(e)}}else if(e?.type===`error`){try{t.onError?.(e.error,n,r,i)}catch(e){Promise.reject(e)}try{t.onSettled?.(void 0,e.error,n,r,i)}catch(e){Promise.reject(e)}}}this.listeners.forEach(e=>{e(this.#t)})})}},Ke=class extends w{#e;constructor(e={}){super(),this.config=e,this.#e=new Map}build(e,t,n){let r=t.queryKey,i=t.queryHash??ie(r,t),a=this.get(i);return a||(a=new je({client:e,queryKey:r,queryHash:i,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(a)),a}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:`added`,query:e}))}remove(e){this.#e.get(e.queryHash)===e&&(e.destroy(),this.#e.delete(e.queryHash),this.notify({type:`removed`,query:e}))}clear(){L.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){let t={exact:!0,...e};return this.getAll().find(e=>M(t,e))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(t=>M(e,t)):t}notify(e){L.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){L.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){L.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},qe=class{#e;#t;#n;#r;#i;#a;#o;#s;constructor(e={}){this.#e=e.queryCache||new Ke,this.#t=e.mutationCache||new Ue,this.#n=e.defaultOptions||{},this.#r=new Map,this.#i=new Map,this.#a=0}mount(){this.#a++,this.#a===1&&(this.#o=T.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#s=Ee.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#a--,this.#a===0&&(this.#o?.(),this.#o=void 0,this.#s?.(),this.#s=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:`fetching`}).length}isMutating(e){return this.#t.findAll({...e,status:`pending`}).length}getQueryData(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state.data}ensureQueryData(e){let t=this.defaultQueryOptions(e),n=this.#e.build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(j(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,n){let r=this.defaultQueryOptions({queryKey:e}),i=te(t,this.#e.get(r.queryHash)?.state.data);if(i!==void 0)return this.#e.build(this,r).setData(i,{...n,manual:!0})}setQueriesData(e,t,n){return L.batch(()=>this.#e.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,n)]))}getQueryState(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state}removeQueries(e){let t=this.#e;L.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let n=this.#e;return L.batch(()=>{let r=n.findAll(e),i=new Set(r);return r.forEach(e=>{e.reset()}),this.refetchQueries({type:`active`,predicate:e=>i.has(e)},t)})}cancelQueries(e,t={}){let n={revert:!0,...t},r=L.batch(()=>this.#e.findAll(e).map(e=>e.cancel(n)));return Promise.all(r).then(k).catch(k)}invalidateQueries(e,t={}){return L.batch(()=>(this.#e.findAll(e).forEach(e=>{e.invalidate()}),e?.refetchType===`none`?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??`active`},t)))}refetchQueries(e,t={}){let n={...t,cancelRefetch:t.cancelRefetch??!0},r=L.batch(()=>this.#e.findAll(e).filter(e=>!e.isDisabled()&&!e.isStatic()).map(e=>{let t=e.fetch(void 0,n),r=e.state.fetchStatus===`paused`;return(!n.throwOnError||r)&&(t=t.catch(k)),r?Promise.resolve():t}));return Promise.all(r).then(k)}async query(e){let t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);let n=this.#e.build(this,t),r=n.isStaleByTime(j(t.staleTime,n))?await n.fetch(t):n.state.data,i=t.select;return i?i(r):r}fetchQuery(e){let t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);let n=this.#e.build(this,t);return n.isStaleByTime(j(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(k).catch(k)}infiniteQuery(e){return e._type=`infinite`,this.query(e)}fetchInfiniteQuery(e){return e._type=`infinite`,this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(k).catch(k)}ensureInfiniteQueryData(e){return e._type=`infinite`,this.ensureQueryData(e)}resumePausedMutations(){return Ee.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,t){this.#r.set(N(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...this.#r.values()],n={};return t.forEach(t=>{ae(e,t.queryKey)&&Object.assign(n,t.defaultOptions)}),n}setMutationDefaults(e,t){this.#i.set(N(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...this.#i.values()],n={};return t.forEach(t=>{ae(e,t.mutationKey)&&Object.assign(n,t.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;let t={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||=ie(t.queryKey,t),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!==`always`),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode=`offlineFirst`),t.queryFn===F&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},Je=(e,t,n)=>{let r=n?.state.status===`error`&&typeof e.throwOnError==`function`?ge(e.throwOnError,[n.state.error,n]):e.throwOnError;(e.suspense||r)&&(t.isReset()||(e.retryOnMount=!1))},Ye=e=>{f.useEffect(()=>{e.clearReset()},[e])},Xe=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:i})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(i&&e.data===void 0||ge(n,[e.error,r])),Ze=e=>{if(e.suspense){let t=1e3,n=e=>e===`static`?e:Math.max(e??t,t),r=e.staleTime;e.staleTime=typeof r==`function`?(...e)=>n(r(...e)):n(r),typeof e.gcTime==`number`&&(e.gcTime=Math.max(e.gcTime,t))}},Qe=(e,t)=>e?.suspense&&t.isPending,$e=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function et(e,t,n){let r=m(),i=C(),a=y(n),o=a.defaultQueryOptions(e),s=a.getQueryCache().get(o.queryHash),c=e.subscribed!==!1;o._optimisticResults=r?`isRestoring`:c?`optimistic`:void 0,Ze(o),Je(o,i,s),Ye(i);let[l]=f.useState(()=>new t(a,o)),u=l.getOptimisticResult(o);f.useEffect(()=>{l.setOptions(o)},[o,l]);let d=!r&&c;if(f.useSyncExternalStore(f.useCallback(e=>{let t=d?l.subscribe(L.batchCalls(e)):k;return l.updateResult(),t},[l,d]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),Qe(o,u))throw $e(o,l,i);if(Xe({result:u,errorResetBoundary:i,throwOnError:o.throwOnError,query:s,suspense:o.suspense}))throw u.error;return o.notifyOnChangeProps?u:l.trackResult(u)}function tt(e,t){return et(e,Fe,t)}function nt(e,t){let n=y(t),[r]=f.useState(()=>new Ge(n,e));f.useEffect(()=>{r.setOptions(e)},[r,e]);let i=f.useSyncExternalStore(f.useCallback(e=>r.subscribe(L.batchCalls(e)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),a=f.useCallback((...e)=>{r.mutate(e[0],e[1]).catch(k)},[r]);if(i.error&&ge(r.options.throwOnError,[i.error]))throw i.error;return{...i,mutate:a,mutateAsync:i.mutate}}var rt=o((e=>{function t(e,t){var n=e.length;for(e.push(t);0<n;){var r=n-1>>>1,a=e[r];if(0<i(a,t))e[r]=t,e[n]=a,n=r;else break}}function n(e){return e.length===0?null:e[0]}function r(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;for(var r=0,a=e.length,o=a>>>1;r<o;){var s=2*(r+1)-1,c=e[s],l=s+1,u=e[l];if(0>i(c,n))l<a&&0>i(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(l<a&&0>i(u,n))e[r]=u,e[l]=n,r=l;else break}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(e.unstable_now=void 0,typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=!1,_=typeof setTimeout==`function`?setTimeout:null,v=typeof clearTimeout==`function`?clearTimeout:null,y=typeof setImmediate<`u`?setImmediate:null;function b(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function x(e){if(h=!1,b(e),!m){if(n(c)!==null)m=!0,S||(S=!0,O());else{var t=n(l);t!==null&&te(x,t.startTime-e)}}}var S=!1,C=-1,w=5,T=-1;function E(){return g?!0:!(e.unstable_now()-T<w)}function D(){if(g=!1,S){var t=e.unstable_now();T=t;var i=!0;try{e:{m=!1,h&&(h=!1,v(C),C=-1),p=!0;var a=f;try{t:{for(b(t),d=n(c);d!==null&&!(d.expirationTime>t&&E());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=t);if(t=e.unstable_now(),typeof s==`function`){d.callback=s,b(t),i=!0;break t}d===n(c)&&r(c),b(t)}else r(c);d=n(c)}if(d!==null)i=!0;else{var u=n(l);u!==null&&te(x,u.startTime-t),i=!1}}break e}finally{d=null,f=a,p=!1}i=void 0}}finally{i?O():S=!1}}}var O;if(typeof y==`function`)O=function(){y(D)};else if(typeof MessageChannel<`u`){var ee=new MessageChannel,k=ee.port2;ee.port1.onmessage=D,O=function(){k.postMessage(null)}}else O=function(){_(D,0)};function te(t,n){C=_(function(){t(e.unstable_now())},n)}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(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error(`forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported`):w=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_requestPaint=function(){g=!0},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,i,a){var o=e.unstable_now();switch(typeof a==`object`&&a?(a=a.delay,a=typeof a==`number`&&0<a?o+a:o):a=o,r){case 1:var s=-1;break;case 2:s=250;break;case 5:s=0x3fffffff;break;case 4:s=1e4;break;default:s=5e3}return s=a+s,r={id:u++,callback:i,priorityLevel:r,startTime:a,expirationTime:s,sortIndex:-1},a>o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(v(C),C=-1):h=!0,te(x,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,S||(S=!0,O()))),r},e.unstable_shouldYield=E,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),it=o(((e,t)=>{t.exports=rt()})),at=o((e=>{var t=d();function n(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function r(){}var i={d:{f:r,r:function(){throw Error(n(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},a=Symbol.for(`react.portal`),o=Symbol.for(`react.recoverable`),s=Symbol.for(`react.optimistic_key`);function c(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:a,key:r==null?null:r===s?s:``+r,children:e,containerInfo:t,implementation:n}}var l=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function u(e,t){if(e===`font`)return``;if(typeof t==`string`)return t===`use-credentials`?t:``}e.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,e.browser=function(e){return{$$typeof:o,_reason:e}},e.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(n(299));return c(e,t,null,r)},e.flushSync=function(e){var t=l.T,n=i.p;try{if(l.T=null,i.p=2,e)return e()}finally{l.T=t,i.p=n,i.d.f()}},e.preconnect=function(e,t){typeof e==`string`&&(t?(t=t.crossOrigin,t=typeof t==`string`?t===`use-credentials`?t:``:void 0):t=null,i.d.C(e,t))},e.prefetchDNS=function(e){typeof e==`string`&&i.d.D(e)},e.preinit=function(e,t){if(typeof e==`string`&&t&&typeof t.as==`string`){var n=t.as,r=u(n,t.crossOrigin),a=typeof t.integrity==`string`?t.integrity:void 0,o=typeof t.fetchPriority==`string`?t.fetchPriority:void 0;n===`style`?i.d.S(e,typeof t.precedence==`string`?t.precedence:void 0,{crossOrigin:r,integrity:a,fetchPriority:o}):n===`script`&&i.d.X(e,{crossOrigin:r,integrity:a,fetchPriority:o,nonce:typeof t.nonce==`string`?t.nonce:void 0})}},e.preinitModule=function(e,t){if(typeof e==`string`){if(typeof t==`object`&&t){if(t.as==null||t.as===`script`){var n=u(t.as,t.crossOrigin);i.d.M(e,{crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0})}}else t??i.d.M(e)}},e.preload=function(e,t){if(typeof e==`string`&&typeof t==`object`&&t&&typeof t.as==`string`){var n=t.as,r=u(n,t.crossOrigin);i.d.L(e,n,{crossOrigin:r,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,type:typeof t.type==`string`?t.type:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy==`string`?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet==`string`?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes==`string`?t.imageSizes:void 0,media:typeof t.media==`string`?t.media:void 0})}},e.preloadModule=function(e,t){if(typeof e==`string`){if(t){var n=u(t.as,t.crossOrigin);i.d.m(e,{as:typeof t.as==`string`&&t.as!==`script`?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0})}else i.d.m(e)}},e.requestFormReset=function(e){i.d.r(e)},e.unstable_batchedUpdates=function(e,t){return e(t)},e.useFormState=function(e,t,n){return l.H.useFormState(e,t,n)},e.useFormStatus=function(){return l.H.useHostTransitionStatus()},e.version=`19.3.1`})),ot=o(((e,t)=>{function n(){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE==`function`)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=at()})),st=o((e=>{var t=it(),n=d(),r=ot();function i(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function a(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function o(e){for(var t=e,n=t;n&&!n.alternate;)t=n,t.flags&4098&&(e=t.return),n=t.return;for(;t.return;)t=t.return;return t.tag===3?e:null}function s(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function c(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function l(e){if(o(e)!==e)throw Error(i(188))}function u(e){var t=e.alternate;if(!t){if(t=o(e),t===null)throw Error(i(188));return t===e?e:null}for(var n=e,r=t;;){var a=n.return;if(a===null)break;var s=a.alternate;if(s===null){if(r=a.return,r!==null){n=r;continue}break}if(a.child===s.child){for(s=a.child;s;){if(s===n)return l(a),e;if(s===r)return l(a),t;s=s.sibling}throw Error(i(188))}if(n.return!==r.return)n=a,r=s;else{for(var c=!1,u=a.child;u;){if(u===n){c=!0,n=a,r=s;break}if(u===r){c=!0,r=a,n=s;break}u=u.sibling}if(!c){for(u=s.child;u;){if(u===n){c=!0,n=s,r=a;break}if(u===r){c=!0,r=s,n=a;break}u=u.sibling}if(!c)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(n.tag!==3)throw Error(i(188));return n.stateNode.current===n?e:t}function f(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=f(e),t!==null)return t;e=e.sibling}return null}function p(e,t,n,r,i,a){for(;e!==null;){if((e.tag===5||e.tag===27||e.tag===6)&&n(e,r,i,a)||(e.tag!==22||e.memoizedState===null)&&(t||e.tag!==5&&e.tag!==27)&&p(e.child,t,n,r,i,a))return!0;e=e.sibling}return!1}function m(e){for(e=e.return;e!==null;){if(e.tag===3||e.tag===5||e.tag===27)return e;e=e.return}return null}function h(e){var t=!1;for(e=e.return;e!==null&&(e.tag===4&&(t=!0),e.tag!==3&&e.tag!==5&&e.tag!==27);)e=e.return;return t}function g(e){var t=[null,null],n=m(e);return n===null||_(t,e,n.child,{foundSelf:!1}),t}function _(e,t,n,r){for(;n!==null;){if(n===t)r.foundSelf=!0;else if(n.tag===5||n.tag===27||n.tag===6){if(r.foundSelf)return e[1]=n,!0;e[0]=n}else if((n.tag!==22||n.memoizedState===null)&&_(e,t,n.child,r))return!0;n=n.sibling}return!1}function v(e){switch(e.tag){case 5:case 27:case 6:return e.stateNode;case 3:return e.stateNode.containerInfo;default:throw Error(i(559))}}var y=null,b=null;function x(e,t,n){return e===n||e===t&&(y=e,!0)}function S(e,t,n){return e===n?(b=e,!1):e===t&&(b!==null&&(y=e),!0)}function C(e){if(e===null)return null;do e=e===null?null:e.return;while(e&&e.tag!==5&&e.tag!==27&&e.tag!==3);return e||null}function w(e,t,n){for(var r=0,i=e;i;i=n(i))r++;i=0;for(var a=t;a;a=n(a))i++;for(;0<r-i;)e=n(e),r--;for(;0<i-r;)t=n(t),i--;for(;r--;){if(e===t||t!==null&&e===t.alternate)return e;e=n(e),t=n(t)}return null}var T=Object.assign,E=Symbol.for(`react.element`),D=Symbol.for(`react.transitional.element`),O=Symbol.for(`react.portal`),ee=Symbol.for(`react.fragment`),k=Symbol.for(`react.strict_mode`),te=Symbol.for(`react.profiler`),ne=Symbol.for(`react.consumer`),A=Symbol.for(`react.context`),j=Symbol.for(`react.forward_ref`),M=Symbol.for(`react.suspense`),re=Symbol.for(`react.suspense_list`),ie=Symbol.for(`react.memo`),N=Symbol.for(`react.lazy`),ae=Symbol.for(`react.activity`),oe=Symbol.for(`react.legacy_hidden`),se=Symbol.for(`react.memo_cache_sentinel`),ce=Symbol.for(`react.view_transition`),le=Symbol.for(`react.recoverable`),ue=Symbol.iterator;function de(e){return typeof e!=`object`||!e?null:(e=ue&&e[ue]||e[`@@iterator`],typeof e==`function`?e:null)}var fe=Symbol.for(`react.client.reference`);function pe(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===fe?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case ee:return`Fragment`;case te:return`Profiler`;case k:return`StrictMode`;case M:return`Suspense`;case re:return`SuspenseList`;case ae:return`Activity`;case ce:return`ViewTransition`}if(typeof e==`object`)switch(e.$$typeof){case O:return`Portal`;case A:return e.displayName||`Context`;case ne:return(e._context.displayName||`Context`)+`.Consumer`;case j:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case ie:return t=e.displayName||null,t===null?pe(e.type)||`Memo`:t;case N:t=e._payload,e=e._init;try{return pe(e(t))}catch{}}return null}var me=Array.isArray,P=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,F=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,he={pending:!1,data:null,method:null,action:null},ge=[],_e=-1;function ve(e){return{current:e}}function ye(e){0>_e||(e.current=ge[_e],ge[_e]=null,_e--)}function I(e,t){_e++,ge[_e]=e.current,e.current=t}var be=ve(null),xe=ve(null),Se=ve(null),Ce=ve(null);function we(e,t){switch(I(Se,t),I(xe,e),I(be,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?up(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=up(t),e=dp(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}ye(be),I(be,e)}function L(){ye(be),ye(xe),ye(Se)}function Te(e){var t=e.memoizedState;t!==null&&(sh._currentValue=t.memoizedState,I(Ce,e)),t=be.current;var n=dp(t,e.type);t!==n&&(I(xe,e),I(be,n))}function Ee(e){xe.current===e&&(ye(be),ye(xe)),Ce.current===e&&(ye(Ce),sh._currentValue=he)}var De,Oe;function ke(e){if(De===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);De=t&&t[1]||``,Oe=-1<e.stack.indexOf(`
|
|
2
|
+
at`)?` (<anonymous>)`:-1<e.stack.indexOf(`@`)?`@unknown:0:0`:``}return`
|
|
3
|
+
`+De+e+Oe}var Ae=!1;function je(e,t){if(!e||Ae)return``;Ae=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==`object`&&Reflect.construct){try{Reflect.construct(n,[])}catch(e){var r=e}Reflect.construct(e,[],n)}else{try{n.call()}catch(e){r=e}n=!1;try{var i=Object.getOwnPropertyDescriptor(e.prototype,`props`);Object.defineProperty(e.prototype,"props",{configurable:!0,set:function(){throw Error()}}),n=!0,new e}finally{n&&(i===void 0?delete e.prototype.props:Object.defineProperty(e.prototype,"props",i))}}}else{try{throw Error()}catch(e){r=e}(n=e())&&typeof n.catch==`function`&&n.catch(function(){})}}catch(e){if(e&&r&&typeof e.stack==`string`)return[e.stack,r.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName=`DetermineComponentFrameRoot`;var i=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,`name`);i&&i.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:`DetermineComponentFrameRoot`});var a=r.DetermineComponentFrameRoot(),o=a[0],s=a[1];if(o&&s){var c=o.split(`
|
|
4
|
+
`),l=s.split(`
|
|
5
|
+
`);for(i=r=0;r<c.length&&!c[r].includes(`DetermineComponentFrameRoot`);)r++;for(;i<l.length&&!l[i].includes(`DetermineComponentFrameRoot`);)i++;if(r===c.length||i===l.length)for(r=c.length-1,i=l.length-1;1<=r&&0<=i&&c[r]!==l[i];)i--;for(;1<=r&&0<=i;r--,i--)if(c[r]!==l[i]){if(r!==1||i!==1)do if(r--,i--,0>i||c[r]!==l[i]){var u=`
|
|
6
|
+
`+c[r].replace(` at new `,` at `);return e.displayName&&u.includes(`<anonymous>`)&&(u=u.replace(`<anonymous>`,e.displayName)),u}while(1<=r&&0<=i);break}}}finally{Ae=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:``)?ke(n):``}function Me(e,t){switch(e.tag){case 26:case 27:case 5:return ke(e.type);case 16:return ke(`Lazy`);case 13:return e.child!==t&&t!==null?ke(`Suspense Fallback`):ke(`Suspense`);case 19:return ke(`SuspenseList`);case 0:case 15:return je(e.type,!1);case 11:return je(e.type.render,!1);case 1:return je(e.type,!0);case 31:return ke(`Activity`);case 30:return ke(`ViewTransition`);default:return``}}function Ne(e){try{var t=``,n=null;do t+=Me(e,n),n=e,e=e.return;while(e);return t}catch(e){return`
|
|
7
|
+
Error generating stack: `+e.message+`
|
|
8
|
+
`+e.stack}}var Pe=Object.prototype.hasOwnProperty,Fe=t.unstable_scheduleCallback,Ie=t.unstable_cancelCallback,Le=t.unstable_shouldYield,Re=t.unstable_requestPaint,ze=t.unstable_now,Be=t.unstable_getCurrentPriorityLevel,Ve=t.unstable_ImmediatePriority,He=t.unstable_UserBlockingPriority,Ue=t.unstable_NormalPriority,We=t.unstable_LowPriority,Ge=t.unstable_IdlePriority,Ke=t.log,qe=t.unstable_setDisableYieldValue,Je=null,Ye=null;function Xe(e){if(typeof Ke==`function`&&qe(e),Ye&&typeof Ye.setStrictMode==`function`)try{Ye.setStrictMode(Je,e)}catch{}}var Ze=Math.clz32?Math.clz32:et,Qe=Math.log,$e=Math.LN2;function et(e){return e>>>=0,e===0?32:31-(Qe(e)/$e|0)|0}var tt=256,nt=262144,rt=4194304;function at(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&-e;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 0x8000000:return 0x8000000;case 268435456:return 268435456;case 536870912:return 536870912;case 0x40000000:return 0;default:return e}}function st(e,t,n){var r=e.pendingLanes;if(r===0)return 0;var i=0,a=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var s=r&0x7ffffff;return s===0?(s=r&~a,s===0?o===0?n||(n=r&~e,n!==0&&(i=at(n))):i=at(o):i=at(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=at(n))):i=at(o)):i=at(r)),i===0?0:t!==0&&t!==i&&(t&a)===0&&(a=i&-i,n=t&-t,a>=n||a===32&&n&4194048)?t:i}function ct(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function lt(e,t){t&8&&(t|=t&32);var n=e.entangledLanes;if(n!==0)for(e=e.entanglements,n&=t;0<n;){var r=31-Ze(n),i=1<<r;t|=e[r],n&=~i}return t}function ut(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+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 t+5e3;default:return-1}}function dt(){var e=rt;return rt<<=1,!(rt&62914560)&&(rt=4194304),e}function ft(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function pt(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function mt(e,t,n,r,i,a){var o=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var s=e.entanglements,c=e.expirationTimes,l=e.hiddenUpdates;for(n=o&~n;0<n;){var u=31-Ze(n),d=1<<u;s[u]=0,c[u]=-1;var f=l[u];if(f!==null)for(l[u]=null,u=0;u<f.length;u++){var p=f[u];p!==null&&(p.lane&=-536870913)}n&=~d}r!==0&&ht(e,r,0),a!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=a&~(o&~t))}function ht(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-Ze(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|0x40000000|n&261930}function gt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Ze(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}function R(e,t){var n=t&-t;return n=n&42?1:_t(n),(n&(e.suspendedLanes|t))===0?n:0}function _t(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=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:e=128;break;case 268435456:e=0x8000000;break;default:e=0}return e}function vt(e){return e&=-e,2<e?8<e?e&0x7ffffff?32:268435456:8:2}function yt(){var e=F.p;return e===0?(e=window.event,e===void 0?32:Ch(e.type)):e}function bt(e,t){var n=F.p;try{return F.p=e,t()}finally{F.p=n}}var xt=Math.random().toString(36).slice(2),St=`__reactFiber$`+xt,Ct=`__reactProps$`+xt,wt=`__reactContainer$`+xt,Tt=`__reactEvents$`+xt,Et=`__reactListeners$`+xt,Dt=`__reactHandles$`+xt,Ot=`__reactResources$`+xt,kt=`__reactMarker$`+xt,At=`__reactLoad$`+xt;function jt(e){delete e[St],delete e[Ct],delete e[Et],delete e[Dt]}function Mt(e){var t;if(t=e[St])return t;for(var n=e.parentNode;n;){if(t=n[wt]||n[St]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=fm(e);e!==null;){if(n=e[St])return n;e=fm(e)}return t}e=n,n=e.parentNode}return null}function Nt(e){if(e=e[St]||e[wt]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Pt(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(i(33))}function Ft(e){var t=e[Ot];return t||=e[Ot]={hoistableStyles:new Map,hoistableScripts:new Map},t}function It(e){e[kt]=!0}function Lt(e){e[At]=void 0}var Rt=new Set,zt={};function Bt(e,t){Vt(e,t),Vt(e+`Capture`,t)}function Vt(e,t){for(zt[e]=t,e=0;e<t.length;e++)Rt.add(t[e])}var Ht=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]*$`),Ut={},Wt={};function Gt(e){return Pe.call(Wt,e)?!0:Pe.call(Ut,e)?!1:Ht.test(e)?Wt[e]=!0:(Ut[e]=!0,!1)}var z=!1;function Kt(){var e=z;return z=!1,e}function qt(e,t,n){if(Gt(t)){if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:e.removeAttribute(t);return;case`boolean`:var r=t.toLowerCase().slice(0,5);if(r!==`data-`&&r!==`aria-`){e.removeAttribute(t);return}}e.setAttribute(t,n)}}}function Jt(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(t);return}e.setAttribute(t,n)}}function Yt(e,t,n,r){if(r===null)e.removeAttribute(n);else{switch(typeof r){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(n);return}e.setAttributeNS(t,n,r)}}function Xt(e){switch(typeof e){case`bigint`:case`boolean`:case`number`:case`string`:case`undefined`:case`object`:return e;default:return``}}function Zt(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()===`input`&&(t===`checkbox`||t===`radio`)}function Qt(e,t,n){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&r!==void 0&&typeof r.get==`function`&&typeof r.set==`function`){var i=r.get,a=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){n=``+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(e){n=``+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function $t(e){if(!e._valueTracker){var t=Zt(e)?`checked`:`value`;e._valueTracker=Qt(e,t,``+e[t])}}function en(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r=``;return e&&(r=Zt(e)?e.checked?`true`:`false`:e.value),e=r,e!==n&&(t.setValue(e),!0)}var tn=/[\n"\\]/g;function nn(e){return e.replace(tn,function(e){return`\\`+e.charCodeAt(0).toString(16)+` `})}function rn(e,t,n,r,i,a,o,s){e.name=``,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`?e.type=o:e.removeAttribute(`type`),t==null?o!==`submit`&&o!==`reset`||e.removeAttribute(`value`):o===`number`?(t===0&&e.value===``||e.value!=t)&&(e.value=``+Xt(t)):e.value!==``+Xt(t)&&(e.value=``+Xt(t)),t==null?n==null?r!=null&&e.removeAttribute(`value`):on(e,Xt(n)):o===`number`&&e.value==t?on(e,Xt(e.value)):on(e,Xt(t)),i==null&&a!=null&&(e.defaultChecked=!!a),i!=null&&(e.checked=i&&typeof i!=`function`&&typeof i!=`symbol`),s!=null&&typeof s!=`function`&&typeof s!=`symbol`&&typeof s!=`boolean`?e.name=``+Xt(s):e.removeAttribute(`name`)}function an(e,t,n,r,i,a,o,s){if(a!=null&&typeof a!=`function`&&typeof a!=`symbol`&&typeof a!=`boolean`&&(e.type=a),t!=null||n!=null){if(!(a!==`submit`&&a!==`reset`||t!=null)){$t(e);return}n=n==null?``:``+Xt(n),t=t==null?n:``+Xt(t),s||t===e.value||(e.value=t),e.defaultValue=t}r??=i,r=typeof r!=`function`&&typeof r!=`symbol`&&!!r,e.checked=s?e.checked:!!r,e.defaultChecked=!!r,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`&&(e.name=o),$t(e)}function on(e,t){e.defaultValue!==``+t&&(e.defaultValue=``+t)}function sn(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t[`$`+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty(`$`+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=``+Xt(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function cn(e,t,n){t!=null&&(t=``+Xt(t),t!==e.value&&(e.value=t),n==null)?e.defaultValue!==t&&(e.defaultValue=t):e.defaultValue=n==null?``:``+Xt(n)}function ln(e,t,n,r){if(t==null){if(r!=null){if(n!=null)throw Error(i(92));if(me(r)){if(1<r.length)throw Error(i(93));r=r[0]}n=r}n??=``,t=n}n=Xt(t),e.defaultValue=n,r=e.textContent,r===n&&r!==``&&r!==null&&(e.value=r),$t(e)}function un(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var dn=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 fn(e,t,n){var r=t.indexOf(`--`)===0;n==null||typeof n==`boolean`||n===``?r?e.setProperty(t,``):t===`float`?e.cssFloat=``:e[t]=``:r?e.setProperty(t,n):typeof n!=`number`||n===0||dn.has(t)?t===`float`?e.cssFloat=n:e[t]=(``+n).trim():e[t]=n+`px`}function pn(e,t,n){if(t!=null&&typeof t!=`object`)throw Error(i(62));if(e=e.style,n!=null){for(var r in n)!n.hasOwnProperty(r)||t!=null&&t.hasOwnProperty(r)||(r.indexOf(`--`)===0?e.setProperty(r,``):r===`float`?e.cssFloat=``:e[r]=``,z=!0);for(var a in t)r=t[a],t.hasOwnProperty(a)&&n[a]!==r&&(fn(e,a,r),z=!0)}else for(var o in t)t.hasOwnProperty(o)&&fn(e,o,t[o])}function mn(e){if(e.indexOf(`-`)===-1)return!1;switch(e){case`annotation-xml`:case`color-profile`:case`font-face`:case`font-face-src`:case`font-face-uri`:case`font-face-format`:case`font-face-name`:case`missing-glyph`:return!1;default:return!0}}var hn=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`],[`maskType`,`mask-type`],[`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`]]),gn=/^[\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 _n(e){return gn.test(``+e)?`javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')`:e}function vn(){}var yn=null;function bn(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var xn=null,Sn=null;function Cn(e){var t=Nt(e);if(t&&(e=t.stateNode)){var n=e[Ct]||null;switch(e=t.stateNode,t.type){case`input`:if(rn(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type===`radio`&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll(`input[name="`+nn(``+t)+`"][type="radio"]`),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var a=r[Ct]||null;if(!a)throw Error(i(90));rn(r,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name)}}for(t=0;t<n.length;t++)r=n[t],r.form===e.form&&en(r)}break;case`textarea`:cn(e,n.value,n.defaultValue);break;case`select`:t=n.value,t!=null&&sn(e,!!n.multiple,t,!1)}}}var wn=!1;function Tn(e,t,n){if(wn)return e(t,n);wn=!0;try{return e(t)}finally{if(wn=!1,(xn!==null||Sn!==null)&&(Rd(),xn&&(t=xn,e=Sn,Sn=xn=null,Cn(t),e)))for(t=0;t<e.length;t++)Cn(e[t])}}function En(e,t){var n=e.stateNode;if(n===null)return null;var r=n[Ct]||null;if(r===null)return null;switch(n=r[t],t){case`onClick`:case`onClickCapture`:case`onDoubleClick`:case`onDoubleClickCapture`:case`onMouseDown`:case`onMouseDownCapture`:case`onMouseMove`:case`onMouseMoveCapture`:case`onMouseUp`:case`onMouseUpCapture`:case`onMouseEnter`:(r=!r.disabled)||(e=e.type,r=e!==`button`&&e!==`input`&&e!==`select`&&e!==`textarea`),e=!r;break;default:e=!1}if(e)return null;if(n&&typeof n!=`function`)throw Error(i(231,t,typeof n));return n}var Dn=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0,On=!1;if(Dn)try{var kn={};Object.defineProperty(kn,"passive",{get:function(){On=!0}}),window.addEventListener(`test`,kn,kn),window.removeEventListener(`test`,kn,kn)}catch{On=!1}var An=null,jn=null,Mn=null;function Nn(){if(Mn)return Mn;var e,t=jn,n=t.length,r,i=`value`in An?An.value:An.textContent,a=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[a-r];r++);return Mn=i.slice(e,1<r?1-r:void 0)}function Pn(e){var t=e.keyCode;return`charCode`in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Fn(){return!0}function In(){return!1}function Ln(e){function t(t,n,r,i,a){for(var o in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(i):i[o]);return this.isDefaultPrevented=(i.defaultPrevented==null?!1===i.returnValue:i.defaultPrevented)?Fn:In,this.isPropagationStopped=In,this}return T(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():typeof e.returnValue!=`unknown`&&(e.returnValue=!1),this.isDefaultPrevented=Fn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():typeof e.cancelBubble!=`unknown`&&(e.cancelBubble=!0),this.isPropagationStopped=Fn)},persist:function(){},isPersistent:Fn}),t}var Rn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},zn=Ln(Rn),Bn=T({},Rn,{view:0,detail:0}),B=Ln(Bn),Vn,Hn,Un,Wn=T({},Bn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:tr,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return`movementX`in e?e.movementX:(e!==Un&&(Un&&e.type===`mousemove`?(Vn=e.screenX-Un.screenX,Hn=e.screenY-Un.screenY):Hn=Vn=0,Un=e),Vn)},movementY:function(e){return`movementY`in e?e.movementY:Hn}}),Gn=Ln(Wn),Kn=Ln(T({},Wn,{dataTransfer:0})),qn=Ln(T({},Bn,{relatedTarget:0})),Jn=Ln(T({},Rn,{animationName:0,elapsedTime:0,pseudoElement:0})),Yn=Ln(T({},Rn,{clipboardData:function(e){return`clipboardData`in e?e.clipboardData:window.clipboardData}})),Xn=Ln(T({},Rn,{data:0})),Zn={Esc:`Escape`,Spacebar:` `,Left:`ArrowLeft`,Up:`ArrowUp`,Right:`ArrowRight`,Down:`ArrowDown`,Del:`Delete`,Win:`OS`,Menu:`ContextMenu`,Apps:`ContextMenu`,Scroll:`ScrollLock`,MozPrintableKey:`Unidentified`},Qn={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`},$n={Alt:`altKey`,Control:`ctrlKey`,Meta:`metaKey`,Shift:`shiftKey`};function er(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=$n[e])?!!t[e]:!1}function tr(){return er}var nr=Ln(T({},Bn,{key:function(e){if(e.key){var t=Zn[e.key]||e.key;if(t!==`Unidentified`)return t}return e.type===`keypress`?(e=Pn(e),e===13?`Enter`:String.fromCharCode(e)):e.type===`keydown`||e.type===`keyup`?Qn[e.keyCode]||`Unidentified`:``},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:tr,charCode:function(e){return e.type===`keypress`?Pn(e):0},keyCode:function(e){return e.type===`keydown`||e.type===`keyup`?e.keyCode:0},which:function(e){return e.type===`keypress`?Pn(e):e.type===`keydown`||e.type===`keyup`?e.keyCode:0}})),rr=Ln(T({},Wn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),ir=Ln(T({},Rn,{submitter:0})),ar=Ln(T({},Bn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:tr})),or=Ln(T({},Rn,{propertyName:0,elapsedTime:0,pseudoElement:0})),sr=Ln(T({},Wn,{deltaX:function(e){return`deltaX`in e?e.deltaX:`wheelDeltaX`in e?-e.wheelDeltaX:0},deltaY:function(e){return`deltaY`in e?e.deltaY:`wheelDeltaY`in e?-e.wheelDeltaY:`wheelDelta`in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),cr=Ln(T({},Rn,{newState:0,oldState:0,source:0})),lr=[9,13,27,32],ur=Dn&&`CompositionEvent`in window,dr=null;Dn&&`documentMode`in document&&(dr=document.documentMode);var fr=Dn&&`TextEvent`in window&&!dr,pr=Dn&&(!ur||dr&&8<dr&&11>=dr),mr=` `,hr=!1;function gr(e,t){switch(e){case`keyup`:return lr.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function _r(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var vr=!1;function yr(e,t){switch(e){case`compositionend`:return _r(t);case`keypress`:return t.which===32?(hr=!0,mr):null;case`textInput`:return e=t.data,e===mr&&hr?null:e;default:return null}}function br(e,t){if(vr)return e===`compositionend`||!ur&&gr(e,t)?(e=Nn(),Mn=jn=An=null,vr=!1,e):null;switch(e){case`paste`:return null;case`keypress`:if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case`compositionend`:return pr&&t.locale!==`ko`?null:t.data;default:return null}}var xr={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 Sr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t===`input`?!!xr[e.type]:t===`textarea`}function Cr(e,t,n,r){xn?Sn?Sn.push(r):Sn=[r]:xn=r,t=Jf(t,`onChange`),0<t.length&&(n=new zn(`onChange`,`change`,null,n,r),e.push({event:n,listeners:t}))}var wr=null,Tr=null;function Er(e){Vf(e,0)}function Dr(e){if(en(Pt(e)))return e}function Or(e,t){if(e===`change`)return t}var kr=!1;if(Dn){var Ar;if(Dn){var jr=`oninput`in document;if(!jr){var Mr=document.createElement(`div`);Mr.setAttribute(`oninput`,`return;`),jr=typeof Mr.oninput==`function`}Ar=jr}else Ar=!1;kr=Ar&&(!document.documentMode||9<document.documentMode)}function Nr(){wr&&(wr.detachEvent(`onpropertychange`,Pr),Tr=wr=null)}function Pr(e){if(e.propertyName===`value`&&Dr(Tr)){var t=[];Cr(t,Tr,e,bn(e)),Tn(Er,t)}}function Fr(e,t,n){e===`focusin`?(Nr(),wr=t,Tr=n,wr.attachEvent(`onpropertychange`,Pr)):e===`focusout`&&Nr()}function Ir(e){if(e===`selectionchange`||e===`keyup`||e===`keydown`)return Dr(Tr)}function Lr(e,t){if(e===`click`)return Dr(t)}function Rr(e,t){if(e===`input`||e===`change`)return Dr(t)}function zr(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var Br=typeof Object.is==`function`?Object.is:zr;function Vr(e,t){if(Br(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!Pe.call(t,i)||!Br(e[i],t[i]))return!1}return!0}function Hr(e){if(e||=typeof document<`u`?document:void 0,e===void 0)return null;try{return e.activeElement||e.body}catch{return e.body}}function Ur(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Wr(e,t){var n=Ur(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Ur(n)}}function Gr(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Gr(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Kr(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Hr(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href==`string`}catch{n=!1}if(n)e=t.contentWindow;else break;t=Hr(e.document)}return t}function qr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t===`input`&&(e.type===`text`||e.type===`search`||e.type===`tel`||e.type===`url`||e.type===`password`)||t===`textarea`||e.contentEditable===`true`)}var Jr=Dn&&`documentMode`in document&&11>=document.documentMode,Yr=null,Xr=null,Zr=null,Qr=!1;function $r(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Qr||Yr==null||Yr!==Hr(r)||(r=Yr,`selectionStart`in r&&qr(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Zr&&Vr(Zr,r)||(Zr=r,r=Jf(Xr,`onSelect`),0<r.length&&(t=new zn(`onSelect`,`select`,null,t,n),e.push({event:t,listeners:r}),t.target=Yr)))}function ei(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit`+e]=`webkit`+t,n[`Moz`+e]=`moz`+t,n}var ti={animationend:ei(`Animation`,`AnimationEnd`),animationiteration:ei(`Animation`,`AnimationIteration`),animationstart:ei(`Animation`,`AnimationStart`),transitionrun:ei(`Transition`,`TransitionRun`),transitionstart:ei(`Transition`,`TransitionStart`),transitioncancel:ei(`Transition`,`TransitionCancel`),transitionend:ei(`Transition`,`TransitionEnd`)},ni={},ri={};Dn&&(ri=document.createElement(`div`).style,`AnimationEvent`in window||(delete ti.animationend.animation,delete ti.animationiteration.animation,delete ti.animationstart.animation),`TransitionEvent`in window||delete ti.transitionend.transition);function ii(e){if(ni[e])return ni[e];if(!ti[e])return e;var t=ti[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in ri)return ni[e]=t[n];return e}var ai=ii(`animationend`),oi=ii(`animationiteration`),si=ii(`animationstart`),ci=ii(`transitionrun`),li=ii(`transitionstart`),ui=ii(`transitioncancel`),di=ii(`transitionend`),fi=new Map,pi=`abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error fullscreenChange fullscreenError 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(` `);pi.push(`scrollEnd`);function mi(e,t){fi.set(e,t),Bt(t,[e])}var hi=0;function gi(e,t){if(e.name!=null&&e.name!==`auto`)return e.name;if(t.autoName!==null)return t.autoName;e=yd.identifierPrefix;var n=hi++;return e=`_`+e+`t_`+n.toString(32)+`_`,t.autoName=e}function _i(e){if(e==null||typeof e==`string`)return e;var t=null,n=Dd;if(n!==null)for(var r=0;r<n.length;r++){var i=e[n[r]];if(i!=null){if(i===`none`)return`none`;t=t==null?i:t+(` `+i)}}return t??e.default}function vi(e,t){return e=_i(e),t=_i(t),t==null?e===`auto`?null:e:t===`auto`?null:t}var yi=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)},bi=[],xi=0,Si=0;function Ci(){for(var e=xi,t=Si=xi=0;t<e;){var n=bi[t];bi[t++]=null;var r=bi[t];bi[t++]=null;var i=bi[t];bi[t++]=null;var a=bi[t];if(bi[t++]=null,r!==null&&i!==null){var o=r.pending;o===null?i.next=i:(i.next=o.next,o.next=i),r.pending=i}a!==0&&Di(n,i,a)}}function wi(e,t,n,r){bi[xi++]=e,bi[xi++]=t,bi[xi++]=n,bi[xi++]=r,Si|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function Ti(e,t,n,r){return wi(e,t,n,r),Oi(e)}function Ei(e,t){return wi(e,null,null,t),Oi(e)}function Di(e,t,n){e.lanes|=n;var r=e.alternate;r!==null&&(r.lanes|=n);for(var i=!1,a=e.return;a!==null;)a.childLanes|=n,r=a.alternate,r!==null&&(r.childLanes|=n),a.tag===22&&(e=a.stateNode,e===null||e._visibility&1||(i=!0)),e=a,a=a.return;return e.tag===3?(a=e.stateNode,i&&t!==null&&(i=31-Ze(n),e=a.hiddenUpdates,r=e[i],r===null?e[i]=[t]:r.push(t),t.lane=n|536870912),a):null}function Oi(e){if(50<Od)throw Od=0,kd=null,Error(i(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var ki={};function Ai(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ji(e,t,n,r){return new Ai(e,t,n,r)}function Mi(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Ni(e,t){var n=e.alternate;return n===null?(n=ji(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&0x47f00000,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function Pi(e,t){e.flags&=0x47f00002;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Fi(e,t,n,r,a,o){var s=0;if(r=e,typeof r==`function`)Mi(r)&&(s=1);else if(typeof r==`string`)s=qm(e,n,be.current)?26:e===`html`||e===`head`||e===`body`?27:5;else e:switch(r){case ae:return e=ji(31,n,t,a),e.elementType=ae,e.lanes=o,e;case ee:return Ii(n.children,a,o,t);case k:s=8,a|=24;break;case te:return e=ji(12,n,t,a|2),e.elementType=te,e.lanes=o,e;case M:return e=ji(13,n,t,a),e.elementType=M,e.lanes=o,e;case re:return e=ji(19,n,t,a),e.elementType=re,e.lanes=o,e;case oe:case ce:return e=a|32,e=ji(30,n,t,e),e.elementType=ce,e.lanes=o,e.stateNode={autoName:null,paired:null,clones:null,ref:null},e;default:if(typeof r==`object`&&r)switch(r.$$typeof){case A:s=10;break e;case ne:s=9;break e;case j:s=11;break e;case ie:s=14;break e;case N:s=16,r=null;break e}s=29,n=Error(i(130,e===null?`null`:typeof e,``)),r=null}return t=ji(s,n,t,a),t.elementType=e,t.type=r,t.lanes=o,t}function Ii(e,t,n,r){return e=ji(7,e,r,t),e.lanes=n,e}function Li(e,t,n){return e=ji(6,e,null,t),e.lanes=n,e}function Ri(e){var t=ji(18,null,null,0);return t.stateNode=e,t}function zi(e,t,n){return t=ji(4,e.children===null?[]:e.children,e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Bi=new WeakMap;function Vi(e,t){if(typeof e==`object`&&e){var n=Bi.get(e);return n===void 0?(t={value:e,source:t,stack:Ne(t)},Bi.set(e,t),t):n}return{value:e,source:t,stack:Ne(t)}}var Hi=[],Ui=0,Wi=null,Gi=0,Ki=[],qi=0,Ji=null,Yi=1,Xi=``;function Zi(e,t){Hi[Ui++]=Gi,Hi[Ui++]=Wi,Wi=e,Gi=t}function Qi(e,t,n){Ki[qi++]=Yi,Ki[qi++]=Xi,Ki[qi++]=Ji,Ji=e;var r=Yi;e=Xi;var i=32-Ze(r)-1;r&=~(1<<i),n+=1;var a=32-Ze(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,Yi=1<<32-Ze(t)+i|n<<i|r,Xi=a+e}else Yi=1<<a|n<<i|r,Xi=e}function $i(e){e.return!==null&&(Zi(e,1),Qi(e,1,0))}function ea(e){for(;e===Wi;)Wi=Hi[--Ui],Hi[Ui]=null,Gi=Hi[--Ui],Hi[Ui]=null;for(;e===Ji;)Ji=Ki[--qi],Ki[qi]=null,Xi=Ki[--qi],Ki[qi]=null,Yi=Ki[--qi],Ki[qi]=null}function ta(e,t){Ki[qi++]=Yi,Ki[qi++]=Xi,Ki[qi++]=Ji,Yi=t.id,Xi=t.overflow,Ji=e}var na=null,ra=null,V=!1,ia=null,aa=!1,oa=Error(i(519));function sa(e){throw pa(Vi(Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?`text`:`HTML`,``)),e)),oa}function ca(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[St]=e,t[Ct]=r,n){case`dialog`:Q(`cancel`,t),Q(`close`,t);break;case`iframe`:case`object`:case`embed`:Q(`load`,t);break;case`video`:case`audio`:for(n=0;n<zf.length;n++)Q(zf[n],t);break;case`source`:Q(`error`,t);break;case`img`:case`image`:case`link`:Q(`error`,t),Q(`load`,t);break;case`details`:Q(`toggle`,t);break;case`input`:Q(`invalid`,t),an(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case`select`:Q(`invalid`,t);break;case`textarea`:Q(`invalid`,t),ln(t,r.value,r.defaultValue,r.children)}n=r.children,typeof n!=`string`&&typeof n!=`number`&&typeof n!=`bigint`||t.textContent===``+n||!0===r.suppressHydrationWarning||ep(t.textContent,n)?(r.popover!=null&&(Q(`beforetoggle`,t),Q(`toggle`,t)),r.onScroll!=null&&Q(`scroll`,t),r.onScrollEnd!=null&&Q(`scrollend`,t),r.onClick!=null&&(t.onclick=vn),t=!0):t=!1,t||sa(e,!0)}function la(e){for(na=e.return;na;)switch(na.tag){case 5:case 31:case 13:aa=!1;return;case 27:case 3:aa=!0;return;default:na=na.return}}function ua(e){if(e!==na)return!1;if(!V)return la(e),V=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=n===`form`||n===`button`||pp(e.type,e.memoizedProps)),n=!n),n&&ra&&sa(e),la(e),t===13){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));ra=dm(e)}else if(t===31){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));ra=dm(e)}else t===27?(t=ra,Sp(e.type)?(e=um,um=null,ra=e):ra=t):ra=na?lm(e.stateNode.nextSibling):null;return!0}function da(){ra=na=null,V=!1}function fa(){var e=ia;return e!==null&&(dd===null?dd=e:dd.push.apply(dd,e),ia=null),e}function pa(e){ia===null?ia=[e]:ia.push(e)}var ma=ve(null),ha=null,ga=null;function _a(e,t,n){I(ma,t._currentValue),t._currentValue=n}function va(e){e._currentValue=ma.current,ye(ma)}function ya(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)===t?r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t):(e.childLanes|=t,r!==null&&(r.childLanes|=t)),e===n)break;e=e.return}}function ba(e,t,n,r){var a=e.child;for(a!==null&&(a.return=e);a!==null;){var o=a.dependencies;if(o!==null){var s=a.child;o=o.firstContext;e:for(;o!==null;){var c=o;o=a;for(var l=0;l<t.length;l++)if(c.context===t[l]){o.lanes|=n,c=o.alternate,c!==null&&(c.lanes|=n),ya(o.return,n,e),r||(s=null);break e}o=c.next}}else if(a.tag===18){if(s=a.return,s===null)throw Error(i(341));s.lanes|=n,o=s.alternate,o!==null&&(o.lanes|=n),ya(s,n,e),s=null}else a.tag===13&&a.memoizedState!==null&&a.memoizedState.dehydrated===null?(a.lanes|=n,s=a.alternate,s!==null&&(s.lanes|=n),ya(a.return,n,e),s=a.child,s=s===null?null:s.sibling):s=a.child;if(s!==null)s.return=a;else for(s=a;s!==null;){if(s===e){s=null;break}if(a=s.sibling,a!==null){a.return=s.return,s=a;break}s=s.return}a=s}}function xa(e,t,n,r){e=null;for(var a=t,o=!1;a!==null;){if(!o){if(a.flags&524288)o=!0;else if(a.flags&262144)break}if(a.tag===10){var s=a.alternate;if(s===null)throw Error(i(387));if(s=s.memoizedProps,s!==null){var c=a.type;Br(a.pendingProps.value,s.value)||(e===null?e=[c]:e.push(c))}}else if(a===Ce.current){if(s=a.alternate,s===null)throw Error(i(387));s.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(e===null?e=[sh]:e.push(sh))}a=a.return}return e!==null&&ba(t,e,n,r),t.flags|=262144,e!==null}function Sa(e){for(e=e.firstContext;e!==null;){if(!Br(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Ca(e){ha=e,ga=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function wa(e){return Ea(ha,e)}function Ta(e,t){return ha===null&&Ca(e),Ea(e,t)}function Ea(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},ga===null){if(e===null)throw Error(i(308));ga=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else ga=ga.next=t;return n}var Da=typeof AbortController<`u`?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(t,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(e){return e()})}},Oa=t.unstable_scheduleCallback,ka=t.unstable_NormalPriority,Aa={$$typeof:A,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function ja(){return{controller:new Da,data:new Map,refCount:0}}function Ma(e){e.refCount--,e.refCount===0&&Oa(ka,function(){e.controller.abort()})}function Na(e,t){if(e.pendingLanes&4194048){var n=e.transitionTypes;for(n===null&&(n=e.transitionTypes=[]),e=0;e<t.length;e++){var r=t[e];n.indexOf(r)===-1&&n.push(r)}}}var Pa=null;function Fa(e){var t=e.transitionTypes;return e.transitionTypes=null,t}var Ia=null,La=0,Ra=0,za=null;function Ba(e,t){if(Ia===null){var n=Ia=[];La=0,Ra=Pf(),za={status:`pending`,value:void 0,then:function(e){n.push(e)}}}return La++,t.then(Va,Va),t}function Va(){if(--La===0&&(Pa=null,Ia!==null)){za!==null&&(za.status=`fulfilled`);var e=Ia;Ia=null,Ra=0,za=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Ha(e,t){var n=[],r={status:`pending`,value:null,reason:null,then:function(e){n.push(e)}};return e.then(function(){r.status=`fulfilled`,r.value=t;for(var e=0;e<n.length;e++)(0,n[e])(t)},function(e){for(r.status=`rejected`,r.reason=e,e=0;e<n.length;e++)(0,n[e])(void 0)}),r}var Ua=P.S;P.S=function(e,t){if(md=ze(),typeof t==`object`&&t&&typeof t.then==`function`&&Ba(e,t),Pa!==null)for(var n=bf;n!==null;)Na(n,Pa),n=n.next;if(n=e.types,n!==null){for(var r=bf;r!==null;)Na(r,n),r=r.next;if(Ra!==0){r=Pa,r===null&&(r=Pa=[]);for(var i=0;i<n.length;i++){var a=n[i];r.indexOf(a)===-1&&r.push(a)}}}Ua!==null&&Ua(e,t)};var Wa=ve(null);function Ga(){var e=Wa.current;return e===null?Zu.pooledCache:e}function Ka(e,t){t===null?I(Wa,Wa.current):I(Wa,t.pool)}function qa(){var e=Ga();return e===null?null:{parent:Aa._currentValue,pool:e}}var Ja=Error(i(460)),Ya=Error(i(474)),Xa=Error(i(542)),Za={then:function(){}};function Qa(e){return e=e.status,e===`fulfilled`||e===`rejected`}function $a(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(vn,vn),t=n),t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,ro(e),e===void 0&&!(`reason`in t)?Error(i(600)):e;default:if(typeof t.status==`string`)t.then(vn,vn);else{if(e=Zu,e!==null&&100<e.shellSuspendCounter)throw Error(i(482));e=t,e.status=`pending`,e.then(function(e){if(t.status===`pending`){var n=t;n.status=`fulfilled`,n.value=e}},function(e){if(t.status===`pending`){var n=t;n.status=`rejected`,n.reason=e}})}switch(t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,ro(e),e}throw to=t,Ja}}function eo(e){try{return(0,e._init)(e._payload)}catch(e){throw typeof e==`object`&&e&&typeof e.then==`function`?(to=e,Ja):e}}var to=null;function no(){if(to===null)throw Error(i(459));var e=to;return to=null,e}function ro(e){if(e===Ja||e===Xa)throw Error(i(483))}var io=null,ao=0;function oo(e){var t=ao;return ao+=1,io===null&&(io=[]),$a(io,e,t)}function so(e,t){t=t.props.ref,e.ref=t===void 0?null:t}function co(e,t){throw t.$$typeof===E?Error(i(525)):(e=Object.prototype.toString.call(t),Error(i(31,e===`[object Object]`?`object with keys {`+Object.keys(t).join(`, `)+`}`:e)))}function lo(e){function t(t,n){if(e){var r=t.deletions;r===null?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;r!==null;)t(n,r),r=r.sibling;return null}function r(e){for(var t=new Map;e!==null;)e.key===null?t.set(e.index,e):t.set(e.key,e),e=e.sibling;return t}function a(e,t){return e=Ni(e,t),e.index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?(r=t.alternate,r===null?(t.flags|=0x8000002,n):(r=r.index,r<n?(t.flags|=2,n):r)):(t.flags|=1048576,n)}function s(t){return e&&t.alternate===null&&(t.flags|=0x8000002),t}function c(e,t,n,r){return t===null||t.tag!==6?(t=Li(n,e.mode,r),t.return=e,t):(t=a(t,n),t.return=e,t)}function l(e,t,n,r){var i=n.type;return i===ee?(e=d(e,t,n.props.children,r,n.key),so(e,n),e):t!==null&&(t.elementType===i||typeof i==`object`&&i&&i.$$typeof===N&&eo(i)===t.type)?(t=a(t,n.props),so(t,n),t.return=e,t):(t=Fi(n.type,n.key,n.props,null,e.mode,r),so(t,n),t.return=e,t)}function u(e,t,n,r){return t===null||t.tag!==4||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?(t=zi(n,e.mode,r),t.return=e,t):(t=a(t,n.children||[]),t.return=e,t)}function d(e,t,n,r,i){return t===null||t.tag!==7?(t=Ii(n,e.mode,r,i),t.return=e,t):(t=a(t,n),t.return=e,t)}function f(e,t,n){if(typeof t==`string`&&t!==``||typeof t==`number`||typeof t==`bigint`)return t=Li(``+t,e.mode,n),t.return=e,t;if(typeof t==`object`&&t){switch(t.$$typeof){case D:return n=Fi(t.type,t.key,t.props,null,e.mode,n),so(n,t),n.return=e,n;case O:return t=zi(t,e.mode,n),t.return=e,t;case N:return t=eo(t),f(e,t,n)}if(me(t)||de(t))return t=Ii(t,e.mode,n,null),t.return=e,t;if(typeof t.then==`function`)return f(e,oo(t),n);if(t.$$typeof===A)return f(e,Ta(e,t),n);co(e,t)}return null}function p(e,t,n,r){var i=t===null?null:t.key;if(typeof n==`string`&&n!==``||typeof n==`number`||typeof n==`bigint`)return i===null?c(e,t,``+n,r):null;if(typeof n==`object`&&n){switch(n.$$typeof){case D:return n.key===i?l(e,t,n,r):null;case O:return n.key===i?u(e,t,n,r):null;case N:return n=eo(n),p(e,t,n,r)}if(me(n)||de(n))return i===null?d(e,t,n,r,null):null;if(typeof n.then==`function`)return p(e,t,oo(n),r);if(n.$$typeof===A)return p(e,t,Ta(e,n),r);co(e,n)}return null}function m(e,t,n,r,i){if(typeof r==`string`&&r!==``||typeof r==`number`||typeof r==`bigint`)return e=e.get(n)||null,c(t,e,``+r,i);if(typeof r==`object`&&r){switch(r.$$typeof){case D:return e=e.get(r.key===null?n:r.key)||null,l(t,e,r,i);case O:return e=e.get(r.key===null?n:r.key)||null,u(t,e,r,i);case N:return r=eo(r),m(e,t,n,r,i)}if(me(r)||de(r))return e=e.get(n)||null,d(t,e,r,i,null);if(typeof r.then==`function`)return m(e,t,n,oo(r),i);if(r.$$typeof===A)return m(e,t,n,Ta(t,r),i);co(t,r)}return null}function h(i,a,s,c){for(var l=null,u=null,d=a,h=a=0,g=null;d!==null&&h<s.length;h++){d.index>h?(g=d,d=null):g=d.sibling;var _=p(i,d,s[h],c);if(_===null){d===null&&(d=g);break}e&&d&&_.alternate===null&&t(i,d),a=o(_,a,h),u===null?l=_:u.sibling=_,u=_,d=g}if(h===s.length)return n(i,d),V&&Zi(i,h),l;if(d===null){for(;h<s.length;h++)d=f(i,s[h],c),d!==null&&(a=o(d,a,h),u===null?l=d:u.sibling=d,u=d);return V&&Zi(i,h),l}for(d=r(d);h<s.length;h++)g=m(d,i,h,s[h],c),g!==null&&(e&&(_=g.alternate,_!==null&&d.delete(_.key===null?h:_.key)),a=o(g,a,h),u===null?l=g:u.sibling=g,u=g);return e&&d.forEach(function(e){return t(i,e)}),V&&Zi(i,h),l}function g(a,s,c,l){if(c==null)throw Error(i(151));for(var u=null,d=null,h=s,g=s=0,_=null,v=c.next();h!==null&&!v.done;g++,v=c.next()){h.index>g?(_=h,h=null):_=h.sibling;var y=p(a,h,v.value,l);if(y===null){h===null&&(h=_);break}e&&h&&y.alternate===null&&t(a,h),s=o(y,s,g),d===null?u=y:d.sibling=y,d=y,h=_}if(v.done)return n(a,h),V&&Zi(a,g),u;if(h===null){for(;!v.done;g++,v=c.next())v=f(a,v.value,l),v!==null&&(s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return V&&Zi(a,g),u}for(h=r(h);!v.done;g++,v=c.next())v=m(h,a,g,v.value,l),v!==null&&(e&&(_=v.alternate,_!==null&&h.delete(_.key===null?g:_.key)),s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return e&&h.forEach(function(e){return t(a,e)}),V&&Zi(a,g),u}function _(e,r,o,c){if(typeof o==`object`&&o&&o.type===ee&&o.key===null&&o.props.ref===void 0&&(o=o.props.children),typeof o==`object`&&o){switch(o.$$typeof){case D:e:{for(var l=o.key;r!==null;){if(r.key===l){if(l=o.type,l===ee){if(r.tag===7){n(e,r.sibling),c=a(r,o.props.children),so(c,o),c.return=e,e=c;break e}}else if(r.elementType===l||typeof l==`object`&&l&&l.$$typeof===N&&eo(l)===r.type){n(e,r.sibling),c=a(r,o.props),so(c,o),c.return=e,e=c;break e}n(e,r);break}t(e,r),r=r.sibling}o.type===ee?(c=Ii(o.props.children,e.mode,c,o.key),so(c,o),c.return=e,e=c):(c=Fi(o.type,o.key,o.props,null,e.mode,c),so(c,o),c.return=e,e=c)}return s(e);case O:e:{for(l=o.key;r!==null;){if(r.key===l){if(r.tag===4&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),c=a(r,o.children||[]),c.return=e,e=c;break e}n(e,r);break}t(e,r),r=r.sibling}c=zi(o,e.mode,c),c.return=e,e=c}return s(e);case N:return o=eo(o),_(e,r,o,c)}if(me(o))return h(e,r,o,c);if(de(o)){if(l=de(o),typeof l!=`function`)throw Error(i(150));return o=l.call(o),g(e,r,o,c)}if(typeof o.then==`function`)return _(e,r,oo(o),c);if(o.$$typeof===A)return _(e,r,Ta(e,o),c);co(e,o)}return typeof o==`string`&&o!==``||typeof o==`number`||typeof o==`bigint`?(o=``+o,r!==null&&r.tag===6?(n(e,r.sibling),c=a(r,o),c.return=e,e=c):(n(e,r),c=Li(o,e.mode,c),c.return=e,e=c),s(e)):n(e,r)}return function(e,t,n,r){try{ao=0;var i=_(e,t,n,r);return io=null,i}catch(t){if(t===Ja||t===Xa)throw t;var a=ji(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var uo=lo(!0),fo=lo(!1),po=!1;function mo(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function ho(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function go(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function _o(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Y&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=Oi(e),Di(e,null,n),t}return wi(e,r,t,n),Oi(e)}function vo(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,n&4194048)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,gt(e,n)}}function yo(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,callbacks:r.callbacks},e.updateQueue=n}else e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var bo=!1;function xo(){if(bo){var e=za;if(e!==null)throw e}}function So(e,t,n,r){bo=!1;var i=e.updateQueue;po=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var c=s,l=c.next;c.next=null,o===null?a=l:o.next=l,o=c;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(a!==null){var d=i.baseState;o=0,u=l=c=null,s=a;do{var f=s.lane&-536870913,p=f!==s.lane;if(p?(Z&f)===f:(r&f)===f){f!==0&&f===Ra&&(bo=!0),u!==null&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});e:{var m=e,h=s;f=t;var g=n;switch(h.tag){case 1:if(m=h.payload,typeof m==`function`){d=m.call(g,d,f);break e}d=m;break e;case 3:m.flags=m.flags&-65537|128;case 0:if(m=h.payload,f=typeof m==`function`?m.call(g,d,f):m,f==null)break e;d=T({},d,f);break e;case 2:po=!0}}f=s.callback,f!==null&&(e.flags|=64,p&&(e.flags|=8192),p=i.callbacks,p===null?i.callbacks=[f]:p.push(f))}else p={lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=p,c=d):u=u.next=p,o|=f;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;p=s,s=p.next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}while(1);u===null&&(c=d),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=u,a===null&&(i.shared.lanes=0),ad|=o,e.lanes=o,e.memoizedState=d}}function Co(e,t){if(typeof e!=`function`)throw Error(i(191,e));e.call(t)}function wo(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)Co(n[e],t)}var To=ve(null),Eo=ve(0);function H(e,t){e=rd,I(Eo,e),I(To,t),rd=e|t.baseLanes}function Do(){I(Eo,rd),I(To,To.current)}function Oo(){rd=Eo.current,ye(To),ye(Eo)}var U=ve(null),W=null;function ko(e){var t=e.alternate;I(Po,Po.current&1),I(U,e),W===null&&(t===null||To.current!==null||t.memoizedState!==null)&&(W=e)}function Ao(e){I(Po,Po.current),I(U,e),W===null&&(W=e)}function jo(e){e.tag===22?(I(Po,Po.current),I(U,e),W===null&&(W=e)):Mo()}function Mo(){I(Po,Po.current),I(U,U.current)}function No(e){ye(U),W===e&&(W=null),ye(Po)}var Po=ve(0);function Fo(e,t){I(U,U.current),I(Po,t)}function Io(e){ye(Po),ye(U),W===e&&(W=null)}function Lo(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||om(n)||sm(n)))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==`independent`){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Ro=0,G=null,zo=null,Bo=null,Vo=!1,Ho=!1,Uo=!1,Wo=0,Go=0,Ko=null,qo=0;function Jo(){throw Error(i(321))}function Yo(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Br(e[n],t[n]))return!1;return!0}function Xo(e,t,n,r,i,a){return Ro=a,G=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,P.H=e===null||e.memoizedState===null?pc:mc,Uo=!1,a=n(r,i),Uo=!1,Ho&&(a=Qo(t,n,r,i)),Zo(e),a}function Zo(e){P.H=fc;var t=zo!==null&&zo.next!==null;if(Ro=0,Bo=zo=G=null,Vo=!1,Go=0,Ko=null,t)throw Error(i(300));e===null||Oc||(e=e.dependencies,e!==null&&Sa(e)&&(Oc=!0))}function Qo(e,t,n,r){G=e;var a=0;do{if(Ho&&(Ko=null),Go=0,Ho=!1,25<=a)throw Error(i(301));if(a+=1,Bo=zo=null,e.updateQueue!=null){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}P.H=hc,o=t(n,r)}while(Ho);return o}function $o(){var e=P.H,t=e.useState()[0];return t=typeof t.then==`function`?os(t):t,e=e.useState()[0],(zo===null?null:zo.memoizedState)!==e&&(G.flags|=1024),t}function es(){var e=Wo!==0;return Wo=0,e}function ts(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function ns(e){if(Vo){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Vo=!1}Ro=0,Bo=zo=G=null,Ho=!1,Go=Wo=0,Ko=null}function rs(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Bo===null?G.memoizedState=Bo=e:Bo=Bo.next=e,Bo}function is(){if(zo===null){var e=G.alternate;e=e===null?null:e.memoizedState}else e=zo.next;var t=Bo===null?G.memoizedState:Bo.next;if(t!==null)Bo=t,zo=e;else{if(e===null)throw G.alternate===null?Error(i(467)):Error(i(310));zo=e,e={memoizedState:zo.memoizedState,baseState:zo.baseState,baseQueue:zo.baseQueue,queue:zo.queue,next:null},Bo===null?G.memoizedState=Bo=e:Bo=Bo.next=e}return Bo}function as(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function os(e){var t=Go;return Go+=1,Ko===null&&(Ko=[]),e=$a(Ko,e,t),t=G,(Bo===null?t.memoizedState:Bo.next)===null&&(t=t.alternate,P.H=t===null||t.memoizedState===null?pc:mc),e}function ss(e){if(typeof e==`object`&&e){if(typeof e.then==`function`)return os(e);if(e.$$typeof===le)return;if(e.$$typeof===A)return wa(e)}throw Error(i(438,String(e)))}function cs(e){var t=null,n=G.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var r=G.alternate;r!==null&&(r=r.updateQueue,r!==null&&(r=r.memoCache,r!=null&&(t={data:r.data.map(function(e){return e.slice()}),index:0})))}if(t??={data:[],index:0},n===null&&(n=as(),G.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=se;return t.index++,n}function ls(e,t){return typeof t==`function`?t(e):t}function us(e){return ds(is(),zo,e)}function ds(e,t,n){var r=e.queue;if(r===null)throw Error(i(311));r.lastRenderedReducer=n;var a=e.baseQueue,o=r.pending;if(o!==null){if(a!==null){var s=a.next;a.next=o.next,o.next=s}t.baseQueue=a=o,r.pending=null}if(o=e.baseState,a===null)e.memoizedState=o;else{t=a.next;var c=s=null,l=null,u=t,d=!1;do{var f=u.lane&-536870913;if(f===u.lane?(Ro&f)===f:(Z&f)===f){var p=u.revertLane;if(p===0)l!==null&&(l=l.next={lane:0,revertLane:0,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),f===Ra&&(d=!0);else if((Ro&p)===p){u=u.next,p===Ra&&(d=!0);continue}else f={lane:0,revertLane:u.revertLane,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=f,s=o):l=l.next=f,G.lanes|=p,ad|=p;f=u.action,Uo&&n(o,f),o=u.hasEagerState?u.eagerState:n(o,f)}else p={lane:f,revertLane:u.revertLane,gesture:u.gesture,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=p,s=o):l=l.next=p,G.lanes|=f,ad|=f;u=u.next}while(u!==null&&u!==t);if(l===null?s=o:l.next=c,!Br(o,e.memoizedState)&&(Oc=!0,d&&(n=za,n!==null)))throw n;e.memoizedState=o,e.baseState=s,e.baseQueue=l,r.lastRenderedState=o}return a===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function fs(e){var t=is(),n=t.queue;if(n===null)throw Error(i(311));n.lastRenderedReducer=e;var r=n.dispatch,a=n.pending,o=t.memoizedState;if(a!==null){n.pending=null;var s=a=a.next;do o=e(o,s.action),s=s.next;while(s!==a);Br(o,t.memoizedState)||(Oc=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function ps(e,t,n){var r=G,a=is(),o=V;if(o){if(n===void 0)throw Error(i(407));n=n()}else n=t();var s=!Br((zo||a).memoizedState,n);if(s&&(a.memoizedState=n,Oc=!0),a=a.queue,Rs(gs.bind(null,r,a,e),[e]),e=a.getSnapshot!==t||s||Bo!==null&&!!(Bo.memoizedState.tag&1),Ns(e?9:8,{destroy:void 0},hs.bind(null,r,a,n,t),null),e){if(r.flags|=2048,Zu===null)throw Error(i(349));o||Ro&127||ms(r,t,n)}return n}function ms(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=G.updateQueue,t===null?(t=as(),G.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function hs(e,t,n,r){t.value=n,t.getSnapshot=r,_s(t)&&vs(e)}function gs(e,t,n){return n(function(){_s(t)&&vs(e)})}function _s(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Br(e,n)}catch{return!0}}function vs(e){var t=Ei(e,2);t!==null&&Nd(t,e,2)}function ys(e){var t=rs();if(typeof e==`function`){var n=e;if(e=n(),Uo){Xe(!0);try{n()}finally{Xe(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ls,lastRenderedState:e},t}function bs(e,t,n,r){return e.baseState=n,ds(e,zo,typeof r==`function`?r:ls)}function xs(e,t,n,r,a){if(lc(e))throw Error(i(485));if(e=t.action,e!==null){var o={payload:a,action:e,next:null,isTransition:!0,status:`pending`,value:null,reason:null,listeners:[],then:function(e){o.listeners.push(e)}};P.T===null?o.isTransition=!1:n(!0),r(o),n=t.pending,n===null?(o.next=t.pending=o,Ss(t,o)):(o.next=n.next,t.pending=n.next=o)}}function Ss(e,t){var n=t.action,r=t.payload,i=e.state;if(t.isTransition){var a=P.T,o={};o.types=a===null?null:a.types,P.T=o;try{var s=n(i,r),c=P.S;c!==null&&c(o,s),Cs(e,t,s)}catch(n){Ts(e,t,n)}finally{a!==null&&o.types!==null&&(a.types=o.types),P.T=a}}else try{a=n(i,r),Cs(e,t,a)}catch(n){Ts(e,t,n)}}function Cs(e,t,n){typeof n==`object`&&n&&typeof n.then==`function`?n.then(function(n){ws(e,t,n)},function(n){return Ts(e,t,n)}):ws(e,t,n)}function ws(e,t,n){t.status=`fulfilled`,t.value=n,Es(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,Ss(e,n)))}function Ts(e,t,n){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status=`rejected`,t.reason=n,Es(t),t=t.next;while(t!==r)}e.action=null}function Es(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Ds(e,t){return t}function Os(e,t){if(V){var n=Zu.formState;if(n!==null){e:{var r=G;if(V){if(ra){t:{for(var i=ra,a=aa;i.nodeType!==8;)if(!a||(i=lm(i.nextSibling),i===null)){i=null;break t}a=i.data,i=a===`F!`||a===`F`?i:null}if(i){ra=lm(i.nextSibling),r=i.data===`F!`;break e}}sa(r)}r=!1}r&&(t=n[0])}}return n=rs(),n.memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ds,lastRenderedState:t},n.queue=r,n=oc.bind(null,G,r),r.dispatch=n,r=ys(!1),a=cc.bind(null,G,!1,r.queue),r=rs(),i={state:t,dispatch:null,action:e,pending:null},r.queue=i,n=xs.bind(null,G,i,a,n),i.dispatch=n,r.memoizedState=e,[t,n,!1]}function ks(e){return As(is(),zo,e)}function As(e,t,n){if(t=ds(e,t,Ds)[0],e=us(ls)[0],typeof t==`object`&&t&&typeof t.then==`function`)try{var r=os(t)}catch(e){throw e===Ja?Xa:e}else r=t;t=is();var i=t.queue,a=i.dispatch;return n!==t.memoizedState&&(G.flags|=2048,Ns(9,{destroy:void 0},js.bind(null,i,n),null)),[r,a,e]}function js(e,t){e.action=t}function Ms(e){var t=is(),n=zo;if(n!==null)return As(t,n,e);is(),t=t.memoizedState,n=is();var r=n.queue.dispatch;return n.memoizedState=e,[t,r,!1]}function Ns(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},t=G.updateQueue,t===null&&(t=as(),G.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Ps(){return is().memoizedState}function Fs(e,t,n,r){var i=rs();G.flags|=e,i.memoizedState=Ns(1|t,{destroy:void 0},n,r===void 0?null:r)}function Is(e,t,n,r){var i=is();r=r===void 0?null:r;var a=i.memoizedState.inst;zo!==null&&r!==null&&Yo(r,zo.memoizedState.deps)?i.memoizedState=Ns(t,a,n,r):(G.flags|=e,i.memoizedState=Ns(1|t,a,n,r))}function Ls(e,t){Fs(8390656,8,e,t)}function Rs(e,t){Is(2048,8,e,t)}function zs(e){G.flags|=4;var t=G.updateQueue;if(t===null)t=as(),G.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function Bs(e){var t=is().memoizedState;return zs({ref:t,nextImpl:e}),function(){if(Y&2)throw Error(i(440));return t.impl.apply(void 0,arguments)}}function Vs(e,t){return Is(4,2,e,t)}function Hs(e,t){return Is(4,4,e,t)}function Us(e,t){if(typeof t==`function`){e=e();var n=t(e);return function(){typeof n==`function`?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Ws(e,t,n){n=n==null?null:n.concat([e]),Is(4,4,Us.bind(null,t,e),n)}function Gs(){}function Ks(e,t){var n=is();t=t===void 0?null:t;var r=n.memoizedState;return t!==null&&Yo(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function qs(e,t){var n=is();t=t===void 0?null:t;var r=n.memoizedState;if(t!==null&&Yo(t,r[1]))return r[0];if(r=e(),Uo){Xe(!0);try{e()}finally{Xe(!1)}}return n.memoizedState=[r,t],r}function Js(e,t,n){return n===void 0||Ro&0x40000000&&!(Z&261930)?e.memoizedState=t:(e.memoizedState=n,e=jd(),G.lanes|=e,ad|=e,n)}function Ys(e,t,n,r){return Br(n,t)?n:To.current===null?!(Ro&106)||Ro&0x40000000&&!(Z&261930)?(Oc=!0,e.memoizedState=n):(e=jd(),G.lanes|=e,ad|=e,t):(e=Js(e,n,r),Br(e,t)||(Oc=!0),e)}function Xs(e,t,n,r,i){var a=F.p;F.p=a!==0&&8>a?a:8;var o=P.T,s={};s.types=o===null?null:o.types,P.T=s,cc(e,!1,t,n);try{var c=i(),l=P.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?sc(e,t,Ha(c,r),Ad(e)):sc(e,t,r,Ad(e))}catch(n){sc(e,t,{then:function(){},status:`rejected`,reason:n},Ad())}finally{F.p=a,o!==null&&s.types!==null&&(o.types=s.types),P.T=o}}function Zs(){}function Qs(e,t,n,r){if(e.tag!==5)throw Error(i(476));Xs(e,$s(e).queue,t,he,n===null?Zs:function(){return ec(e),n(r)})}function $s(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:he,baseState:he,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ls,lastRenderedState:he},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ls,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function ec(e){var t=$s(e);t.next===null&&(t=e.alternate.memoizedState),sc(e,t.next.queue,{},Ad())}function tc(){return wa(sh)}function nc(){return is().memoizedState}function rc(){return is().memoizedState}function ic(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=Ad();e=go(n);var r=_o(t,e,n);r!==null&&(Nd(r,t,n),vo(r,t,n)),t={cache:ja()},e.payload=t;return}t=t.return}}function ac(e,t,n){var r=Ad();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},lc(e)?uc(t,n):(n=Ti(e,t,n,r),n!==null&&(Nd(n,e,r),dc(n,t,r)))}function oc(e,t,n){sc(e,t,n,Ad())}function sc(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(lc(e))uc(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,Br(s,o))return wi(e,t,i,0),Zu===null&&Ci(),!1}catch{}if(n=Ti(e,t,i,r),n!==null)return Nd(n,e,r),dc(n,t,r),!0}return!1}function cc(e,t,n,r){if(r={lane:2,revertLane:Pf(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},lc(e)){if(t)throw Error(i(479))}else t=Ti(e,n,r,2),t!==null&&Nd(t,e,2)}function lc(e){var t=e.alternate;return e===G||t!==null&&t===G}function uc(e,t){Ho=Vo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function dc(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,gt(e,n)}}var fc={readContext:wa,use:ss,useCallback:Jo,useContext:Jo,useEffect:Jo,useImperativeHandle:Jo,useLayoutEffect:Jo,useInsertionEffect:Jo,useMemo:Jo,useReducer:Jo,useRef:Jo,useState:Jo,useDebugValue:Jo,useDeferredValue:Jo,useTransition:Jo,useSyncExternalStore:Jo,useId:Jo,useHostTransitionStatus:Jo,useFormState:Jo,useActionState:Jo,useOptimistic:Jo,useMemoCache:Jo,useCacheRefresh:Jo,useEffectEvent:Jo},pc={readContext:wa,use:ss,useCallback:function(e,t){return rs().memoizedState=[e,t===void 0?null:t],e},useContext:wa,useEffect:Ls,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),Fs(4194308,4,Us.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Fs(4194308,4,e,t)},useInsertionEffect:function(e,t){Fs(4,2,e,t)},useMemo:function(e,t){var n=rs();t=t===void 0?null:t;var r=e();if(Uo){Xe(!0);try{e()}finally{Xe(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=rs();if(n!==void 0){var i=n(t);if(Uo){Xe(!0);try{n(t)}finally{Xe(!1)}}}else i=t;return r.memoizedState=r.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},r.queue=e,e=e.dispatch=ac.bind(null,G,e),[r.memoizedState,e]},useRef:function(e){var t=rs();return e={current:e},t.memoizedState=e},useState:function(e){e=ys(e);var t=e.queue,n=oc.bind(null,G,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Gs,useDeferredValue:function(e,t){return Js(rs(),e,t)},useTransition:function(){var e=ys(!1);return e=Xs.bind(null,G,e.queue,!0,!1),rs().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=G,a=rs();if(V){if(n===void 0)throw Error(i(407));n=n()}else{if(n=t(),Zu===null)throw Error(i(349));Z&127||ms(r,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,Ls(gs.bind(null,r,o,e),[e]),r.flags|=2048,Ns(9,{destroy:void 0},hs.bind(null,r,o,n,t),null),n},useId:function(){var e=rs(),t=Zu.identifierPrefix;if(V){var n=Xi,r=Yi;n=(r&~(1<<32-Ze(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=Wo++,0<n&&(t+=`H`+n.toString(32)),t+=`_`}else n=qo++,t=`_`+t+`r_`+n.toString(32)+`_`;return e.memoizedState=t},useHostTransitionStatus:tc,useFormState:Os,useActionState:Os,useOptimistic:function(e){var t=rs();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=cc.bind(null,G,!0,n),n.dispatch=t,[e,t]},useMemoCache:cs,useCacheRefresh:function(){return rs().memoizedState=ic.bind(null,G)},useEffectEvent:function(e){var t=rs(),n={impl:e};return t.memoizedState=n,function(){if(Y&2)throw Error(i(440));return n.impl.apply(void 0,arguments)}}},mc={readContext:wa,use:ss,useCallback:Ks,useContext:wa,useEffect:Rs,useImperativeHandle:Ws,useInsertionEffect:Vs,useLayoutEffect:Hs,useMemo:qs,useReducer:us,useRef:Ps,useState:function(){return us(ls)},useDebugValue:Gs,useDeferredValue:function(e,t){return Ys(is(),zo.memoizedState,e,t)},useTransition:function(){var e=us(ls)[0],t=is().memoizedState;return[typeof e==`boolean`?e:os(e),t]},useSyncExternalStore:ps,useId:nc,useHostTransitionStatus:tc,useFormState:ks,useActionState:ks,useOptimistic:function(e,t){return bs(is(),zo,e,t)},useMemoCache:cs,useCacheRefresh:rc,useEffectEvent:Bs},hc={readContext:wa,use:ss,useCallback:Ks,useContext:wa,useEffect:Rs,useImperativeHandle:Ws,useInsertionEffect:Vs,useLayoutEffect:Hs,useMemo:qs,useReducer:fs,useRef:Ps,useState:function(){return fs(ls)},useDebugValue:Gs,useDeferredValue:function(e,t){var n=is();return zo===null?Js(n,e,t):Ys(n,zo.memoizedState,e,t)},useTransition:function(){var e=fs(ls)[0],t=is().memoizedState;return[typeof e==`boolean`?e:os(e),t]},useSyncExternalStore:ps,useId:nc,useHostTransitionStatus:tc,useFormState:Ms,useActionState:Ms,useOptimistic:function(e,t){var n=is();return zo===null?(n.baseState=e,[e,n.queue.dispatch]):bs(n,zo,e,t)},useMemoCache:cs,useCacheRefresh:rc,useEffectEvent:Bs};function gc(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:T({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var _c={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Ad(),i=go(r);i.payload=t,n!=null&&(i.callback=n),t=_o(e,i,r),t!==null&&(Nd(t,e,r),vo(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Ad(),i=go(r);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=_o(e,i,r),t!==null&&(Nd(t,e,r),vo(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Ad(),r=go(n);r.tag=2,t!=null&&(r.callback=t),t=_o(e,r,n),t!==null&&(Nd(t,e,n),vo(t,e,n))}};function vc(e,t,n,r,i,a,o){return e=e.stateNode,typeof e.shouldComponentUpdate==`function`?e.shouldComponentUpdate(r,a,o):t.prototype&&t.prototype.isPureReactComponent?!Vr(n,r)||!Vr(i,a):!0}function yc(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps==`function`&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps==`function`&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&_c.enqueueReplaceState(t,t.state,null)}function bc(e,t){var n=t;if(`ref`in t)for(var r in n={},t)r!==`ref`&&(n[r]=t[r]);if(e=e.defaultProps)for(var i in n===t&&(n=T({},n)),e)n[i]===void 0&&(n[i]=e[i]);return n}function xc(e){yi(e)}function K(e){console.error(e)}function Sc(e){yi(e)}function q(e,t){try{(0,e.onUncaughtError)(t.value,{componentStack:t.stack})}catch(e){setTimeout(function(){throw e})}}function Cc(e,t,n){try{(0,e.onCaughtError)(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(e){setTimeout(function(){throw e})}}function wc(e,t,n){return n=go(n),n.tag=3,n.payload={element:null},n.callback=function(){q(e,t)},n}function Tc(e){return e=go(e),e.tag=3,e}function Ec(e,t,n,r){var i=n.type.getDerivedStateFromError;if(typeof i==`function`){var a=r.value;e.payload=function(){return i(a)},e.callback=function(){Cc(t,n,r)}}var o=n.stateNode;o!==null&&typeof o.componentDidCatch==`function`&&(e.callback=function(){Cc(t,n,r),typeof i!=`function`&&(_d===null?_d=new Set([this]):_d.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:e===null?``:e})})}function J(e,t,n,r,a){if(n.flags|=32768,typeof r==`object`&&r&&typeof r.then==`function`){if(t=n.alternate,t!==null&&xa(t,n,a,!0),n=U.current,n!==null){switch(n.tag){case 31:case 13:case 19:return W===null?Gd():n.alternate===null&&id===0&&(id=3),n.flags&=-257,n.flags|=65536,n.lanes=a,r===Za?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([r]):t.add(r),mf(e,r,a)),!1;case 22:return n.flags|=65536,r===Za?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([r]):n.add(r)),mf(e,r,a)),!1}throw Error(i(435,n.tag))}return mf(e,r,a),Gd(),!1}if(V)return t=U.current,t===null?(r!==oa&&(t=Error(i(423),{cause:r}),pa(Vi(t,n))),e=e.current.alternate,e.flags|=65536,a&=-a,e.lanes|=a,r=Vi(r,n),a=wc(e.stateNode,r,a),yo(e,a),id!==4&&(id=2)):(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=a,r!==oa&&(e=Error(i(422),{cause:r}),pa(Vi(e,n)))),!1;var o=Error(i(520),{cause:r});if(o=Vi(o,n),ud===null?ud=[o]:ud.push(o),id!==4&&(id=2),t===null)return!0;r=Vi(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=a&-a,n.lanes|=e,e=wc(n.stateNode,r,e),yo(n,e),!1;case 1:if(t=n.type,o=n.stateNode,!(n.flags&128)&&(typeof t.getDerivedStateFromError==`function`||o!==null&&typeof o.componentDidCatch==`function`&&(_d===null||!_d.has(o))))return n.flags|=65536,a&=-a,n.lanes|=a,a=Tc(a),Ec(a,e,n,r),yo(n,a),!1;break;case 22:if(n.memoizedState!==null)return n.flags|=65536,!1}n=n.return}while(n!==null);return!1}var Dc=Error(i(461)),Oc=!1;function kc(e,t,n,r){t.child=e===null?fo(t,null,n,r):uo(t,e.child,n,r)}function Ac(e,t,n,r,i){n=n.render;var a=t.ref;if(`ref`in r){var o={};for(var s in r)s!==`ref`&&(o[s]=r[s])}else o=r;return Ca(t),r=Xo(e,t,n,o,a,i),s=es(),e!==null&&!Oc?(ts(e,t,i),il(e,t,i)):(V&&s&&$i(t),t.flags|=1,kc(e,t,r,i),t.child)}function jc(e,t,n,r,i){if(e===null){var a=n.type;return typeof a==`function`&&!Mi(a)&&a.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=a,Mc(e,t,a,r,i)):(e=Fi(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!al(e,i)){var o=a.memoizedProps;if(n=n.compare,n=n===null?Vr:n,n(o,r)&&e.ref===t.ref)return il(e,t,i)}return t.flags|=1,e=Ni(a,r),e.ref=t.ref,e.return=t,t.child=e}function Mc(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(Vr(a,r)&&e.ref===t.ref){if(Oc=!1,t.pendingProps=r=a,al(e,i))e.flags&131072&&(Oc=!0);else return t.lanes=e.lanes,il(e,t,i)}}return Bc(e,t,n,r,i)}function Nc(e,t,n,r){var i=r.children,a=e===null?null:e.memoizedState;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.mode===`hidden`){if(t.flags&128){if(a=a===null?n:a.baseLanes|n,e!==null){for(r=t.child=e.child,i=0;r!==null;)i=i|r.lanes|r.childLanes,r=r.sibling;r=i&~a}else r=0,t.child=null;return Fc(e,t,a,n,r)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Ka(t,a===null?null:a.cachePool),a===null?Do():H(t,a),jo(t);else return r=t.lanes=536870912,Fc(e,t,a===null?n:a.baseLanes|n,n,r)}else a===null?(e!==null&&Ka(t,null),Do(),Mo()):(Ka(t,a.cachePool),H(t,a),Mo(),t.memoizedState=null);return kc(e,t,i,n),t.child}function Pc(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Fc(e,t,n,r,i){var a=Ga();return a=a===null?null:{parent:Aa._currentValue,pool:a},t.memoizedState={baseLanes:n,cachePool:a},e!==null&&Ka(t,null),Do(),jo(t),e!==null&&xa(e,t,r,!0),t.childLanes=i,null}function Ic(e,t){return t=Yc({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Lc(e,t,n){return uo(t,e.child,null,n),e=Ic(t,t.pendingProps),e.flags|=2,No(t),t.memoizedState=null,e}function Rc(e,t,n){var r=t.pendingProps,a=!!(t.flags&128);if(t.flags&=-129,e===null){if(V){if(r.mode===`hidden`)return e=Ic(t,r),t.lanes=536870912,e.memoizedState={baseLanes:0,cachePool:null},Pc(null,e);if(Ao(t),(e=ra)?(e=am(e,aa),e=e!==null&&e.data===`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ji===null?null:{id:Yi,overflow:Xi},retryLane:536870912,hydrationErrors:null},n=Ri(e),n.return=t,t.child=n,na=t,ra=null)):e=null,e===null)throw sa(t);return t.lanes=536870912,null}return Ic(t,r)}var o=e.memoizedState;if(o!==null){var s=o.dehydrated;if(Ao(t),a){if(t.flags&256)t.flags&=-257,t=Lc(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(i(558))}else if(Oc||xa(e,t,n,!1),a=(n&e.childLanes)!==0,Oc||a){if(To.current===null){if(r=Zu,r!==null&&(s=R(r,n),s!==0&&s!==o.retryLane))throw o.retryLane=s,Ei(e,s),Nd(r,e,s),Dc;Gd()}t=Lc(e,t,n)}else e=o.treeContext,ra=lm(s.nextSibling),na=t,V=!0,ia=null,aa=!1,e!==null&&ta(t,e),t=Ic(t,r),t.flags|=0x8001000;return t}return e=Ni(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function zc(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!=`function`&&typeof n!=`object`)throw Error(i(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function Bc(e,t,n,r,i){return Ca(t),n=Xo(e,t,n,r,void 0,i),r=es(),e!==null&&!Oc?(ts(e,t,i),il(e,t,i)):(V&&r&&$i(t),t.flags|=1,kc(e,t,n,i),t.child)}function Vc(e,t,n,r,i,a){return Ca(t),t.updateQueue=null,n=Qo(t,r,n,i),Zo(e),r=es(),e!==null&&!Oc?(ts(e,t,a),il(e,t,a)):(V&&r&&$i(t),t.flags|=1,kc(e,t,n,a),t.child)}function Hc(e,t,n,r,i){if(Ca(t),t.stateNode===null){var a=ki,o=n.contextType;typeof o==`object`&&o&&(a=wa(o)),a=new n(r,a),t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=_c,t.stateNode=a,a._reactInternals=t,a=t.stateNode,a.props=r,a.state=t.memoizedState,a.refs={},mo(t),o=n.contextType,a.context=typeof o==`object`&&o?wa(o):ki,a.state=t.memoizedState,o=n.getDerivedStateFromProps,typeof o==`function`&&(gc(t,n,o,r),a.state=t.memoizedState),typeof n.getDerivedStateFromProps==`function`||typeof a.getSnapshotBeforeUpdate==`function`||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(o=a.state,typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount(),o!==a.state&&_c.enqueueReplaceState(a,a.state,null),So(t,r,a,i),xo(),a.state=t.memoizedState),typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!0}else if(e===null){a=t.stateNode;var s=t.memoizedProps,c=bc(n,s);a.props=c;var l=a.context,u=n.contextType;o=ki,typeof u==`object`&&u&&(o=wa(u));var d=n.getDerivedStateFromProps;u=typeof d==`function`||typeof a.getSnapshotBeforeUpdate==`function`,s=t.pendingProps!==s,u||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(s||l!==o)&&yc(t,a,r,o),po=!1;var f=t.memoizedState;a.state=f,So(t,r,a,i),xo(),l=t.memoizedState,s||f!==l||po?(typeof d==`function`&&(gc(t,n,d,r),l=t.memoizedState),(c=po||vc(t,n,c,r,f,l,o))?(u||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount==`function`&&(t.flags|=4194308)):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=o,r=c):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,ho(e,t),o=t.memoizedProps,u=bc(n,o),a.props=u,d=t.pendingProps,f=a.context,l=n.contextType,c=ki,typeof l==`object`&&l&&(c=wa(l)),s=n.getDerivedStateFromProps,(l=typeof s==`function`||typeof a.getSnapshotBeforeUpdate==`function`)||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(o!==d||f!==c)&&yc(t,a,r,c),po=!1,f=t.memoizedState,a.state=f,So(t,r,a,i),xo();var p=t.memoizedState;o!==d||f!==p||po||e!==null&&e.dependencies!==null&&Sa(e.dependencies)?(typeof s==`function`&&(gc(t,n,s,r),p=t.memoizedState),(u=po||vc(t,n,u,r,f,p,c)||e!==null&&e.dependencies!==null&&Sa(e.dependencies))?(l||typeof a.UNSAFE_componentWillUpdate!=`function`&&typeof a.componentWillUpdate!=`function`||(typeof a.componentWillUpdate==`function`&&a.componentWillUpdate(r,p,c),typeof a.UNSAFE_componentWillUpdate==`function`&&a.UNSAFE_componentWillUpdate(r,p,c)),typeof a.componentDidUpdate==`function`&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate==`function`&&(t.flags|=1024)):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),a.props=r,a.state=p,a.context=c,r=u):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return a=r,zc(e,t),r=!!(t.flags&128),a||r?(a=t.stateNode,n=r&&typeof n.getDerivedStateFromError!=`function`?null:a.render(),t.flags|=1,e!==null&&r?(t.child=uo(t,e.child,null,i),t.child=uo(t,null,n,i)):kc(e,t,n,i),t.memoizedState=a.state,e=t.child):e=il(e,t,i),e}function Uc(e,t,n,r){return da(),t.flags|=256,kc(e,t,n,r),t.child}var Wc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Gc(e){return{baseLanes:e,cachePool:qa()}}function Kc(e,t,n){return e=e===null?0:e.childLanes&~n,t&&(e|=cd),e}function qc(e,t,n){var r=t.pendingProps,i=!1,a=!!(t.flags&128),o;if((o=a)||(o=e!==null&&e.memoizedState===null?!1:!!(Po.current&2)),o&&(i=!0,t.flags&=-129),o=!!(t.flags&32),t.flags&=-33,e===null){if(V){if(i?ko(t):Mo(),(e=ra)?(e=am(e,aa),e=e!==null&&e.data!==`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ji===null?null:{id:Yi,overflow:Xi},retryLane:536870912,hydrationErrors:null},n=Ri(e),n.return=t,t.child=n,na=t,ra=null)):e=null,e===null)throw sa(t);return t.lanes=sm(e)?32:536870912,null}return a=r.children,r=r.fallback,i?(Mo(),i=t.mode,a=Yc({mode:`hidden`,children:a},i),r=Ii(r,i,n,null),a.return=t,r.return=t,a.sibling=r,t.child=a,r=t.child,r.memoizedState=Gc(n),r.childLanes=Kc(e,o,n),t.memoizedState=Wc,Pc(null,r)):(ko(t),Jc(t,a))}var s=e.memoizedState;if(s!==null){var c=s.dehydrated;if(c!==null)return Zc(e,t,a,o,r,c,s,n)}return i?(Mo(),i=r.fallback,a=t.mode,s=e.child,c=s.sibling,r=Ni(s,{mode:`hidden`,children:r.children}),r.subtreeFlags=s.subtreeFlags&0x47f00000,c===null?(i=Ii(i,a,n,null),i.flags|=2):i=Ni(c,i),i.return=t,r.return=t,r.sibling=i,t.child=r,Pc(null,r),r=t.child,i=e.child.memoizedState,i===null?i=Gc(n):(a=i.cachePool,a===null?a=qa():(s=Aa._currentValue,a=a.parent===s?a:{parent:s,pool:s}),i={baseLanes:i.baseLanes|n,cachePool:a}),r.memoizedState=i,r.childLanes=Kc(e,o,n),t.memoizedState=Wc,Pc(e.child,r)):(ko(t),n=e.child,e=n.sibling,n=Ni(n,{mode:`visible`,children:r.children}),n.return=t,n.sibling=null,e!==null&&(o=t.deletions,o===null?(t.deletions=[e],t.flags|=16):o.push(e)),t.child=n,t.memoizedState=null,n)}function Jc(e,t){return t=Yc({mode:`visible`,children:t},e.mode),t.return=e,e.child=t}function Yc(e,t){return e=ji(22,e,null,t),e.lanes=0,e}function Xc(e,t,n){return uo(t,e.child,null,n),e=Jc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Zc(e,t,n,r,a,o,s,c){if(n)return t.flags&256?(ko(t),t.flags&=-257,Xc(e,t,c)):t.memoizedState===null?(Mo(),o=a.fallback,s=t.mode,a=Yc({mode:`visible`,children:a.children},s),o=Ii(o,s,c,null),o.flags|=2,a.return=t,o.return=t,a.sibling=o,t.child=a,uo(t,e.child,null,c),a=t.child,a.memoizedState=Gc(c),a.childLanes=Kc(e,r,c),t.memoizedState=Wc,Pc(null,a)):(Mo(),t.child=e.child,t.flags|=128,null);if(ko(t),sm(o)){if(r=o.nextSibling&&o.nextSibling.dataset,r)var l=r.dgst;return r=l,r!==``&&(a=Error(i(419)),a.stack=``,a.digest=r,pa({value:a,source:null,stack:null})),Xc(e,t,c)}if(Oc||xa(e,t,c,!1),r=(c&e.childLanes)!==0,Oc||r){if(To.current!==null)return Xc(e,t,c);if(r=Zu,r!==null&&(a=R(r,c),a!==0&&a!==s.retryLane))throw s.retryLane=a,Ei(e,a),Nd(r,e,a),Dc;return om(o)||Gd(),Xc(e,t,c)}return om(o)?(t.flags|=192,t.child=e.child,null):(e=s.treeContext,ra=lm(o.nextSibling),na=t,V=!0,ia=null,aa=!1,e!==null&&ta(t,e),t=Jc(t,a.children),t.flags|=0x8001000,t)}function Qc(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),ya(e.return,t,n)}function $c(e){for(var t=null;e!==null;){var n=e.alternate;n!==null&&Lo(n)===null&&(t=e),e=e.sibling}return t}function el(e,t,n,r,i,a){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,treeForkCount:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i,o.treeForkCount=a)}function tl(e){var t=e.child;for(e.child=null;t!==null;){var n=t.sibling;t.sibling=e.child,e.child=t,t=n}}function nl(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;r=r.children;var o=Po.current;if(t.flags&128)return Fo(t,o),null;var s=!!(o&2);if(s?(o=o&1|2,t.flags|=128):o&=1,Fo(t,o),i===`backwards`&&e!==null?(tl(e),kc(e,t,r,n),tl(e)):kc(e,t,r,n),r=V?Gi:0,!s&&e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Qc(e,n,t);else if(e.tag===19)Qc(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(i){case`backwards`:n=$c(t.child),n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null,tl(t)),el(t,!0,i,null,a,r);break;case`unstable_legacy-backwards`:for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&Lo(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}el(t,!0,n,null,a,r);break;case`together`:el(t,!1,null,null,void 0,r);break;case`independent`:t.memoizedState=null;break;default:n=$c(t.child),n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),el(t,!1,i,n,a,r)}return t.child}function rl(e,t,n){var r=t.pendingProps;return _a(t,t.type,r.value),kc(e,t,r.children,n),t.child}function il(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),ad|=t.lanes,(n&t.childLanes)===0){if(e!==null){if(xa(e,t,n,!1),(n&t.childLanes)===0)return null}else return null}if(e!==null&&t.child!==e.child)throw Error(i(153));if(t.child!==null){for(e=t.child,n=Ni(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Ni(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function al(e,t){return(e.lanes&t)!==0||(e=e.dependencies,!!(e!==null&&Sa(e)))}function ol(e,t,n){switch(t.tag){case 3:we(t,t.stateNode.containerInfo),_a(t,Aa,e.memoizedState.cache),da();break;case 27:case 5:Te(t);break;case 4:we(t,t.stateNode.containerInfo);break;case 10:_a(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Ao(t),null;break;case 13:var r=t.memoizedState;if(r!==null){if(r.dehydrated!==null)return ko(t),t.flags|=128,null;r=xa(e,t,n,!1);var i=t.child.childLanes;return r||(n&i)!==0?qc(e,t,n):(ko(t),e=il(e,t,n),e===null?null:e.sibling)}ko(t);break;case 19:if(t.flags&128)return nl(e,t,n);if(i=!!(e.flags&128),r=(n&t.childLanes)!==0,r||=(xa(e,t,n,!1),(n&t.childLanes)!==0),i){if(r)return nl(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Fo(t,Po.current),r)break;return null;case 22:return t.lanes=0,Nc(e,t,n,t.pendingProps);case 24:_a(t,Aa,e.memoizedState.cache)}return il(e,t,n)}function sl(e,t,n){if(e!==null){if(e.memoizedProps!==t.pendingProps)Oc=!0;else{if(!al(e,n)&&!(t.flags&128))return Oc=!1,ol(e,t,n);Oc=!!(e.flags&131072)}}else Oc=!1,V&&t.flags&1048576&&Qi(t,Gi,t.index);switch(t.lanes=0,t.tag){case 16:e:{var r=t.pendingProps;if(e=eo(t.elementType),t.type=e,typeof e==`function`)Mi(e)?(r=bc(e,r),t.tag=1,t=Hc(null,t,e,r,n)):(t.tag=0,t=Bc(null,t,e,r,n));else{if(e!=null){var a=e.$$typeof;if(a===j){t.tag=11,t=Ac(null,t,e,r,n);break e}if(a===ie){t.tag=14,t=jc(null,t,e,r,n);break e}if(a===A){t.tag=10,t.type=e,t=rl(null,t,n);break e}}throw t=pe(e)||e,Error(i(306,t,``))}}return t;case 0:return Bc(e,t,t.type,t.pendingProps,n);case 1:return r=t.type,a=bc(r,t.pendingProps),Hc(e,t,r,a,n);case 3:e:{if(we(t,t.stateNode.containerInfo),e===null)throw Error(i(387));r=t.pendingProps;var o=t.memoizedState;a=o.element,ho(e,t),So(t,r,null,n);var s=t.memoizedState;if(r=s.cache,_a(t,Aa,r),r!==o.cache&&ba(t,[Aa],n,!0),xo(),r=s.element,o.isDehydrated){if(o={element:r,isDehydrated:!1,cache:s.cache},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){t=Uc(e,t,r,n);break e}if(r!==a){a=Vi(Error(i(424)),t),pa(a),t=Uc(e,t,r,n);break e}for(e=t.stateNode.containerInfo,e=e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,ra=lm(e.firstChild),na=t,V=!0,ia=null,aa=!0,n=fo(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|0x8001000,n=n.sibling}else{if(da(),r===a){t=il(e,t,n);break e}kc(e,t,r,n)}t=t.child}return t;case 26:return zc(e,t),e===null?(n=Nm(t.type,null,t.pendingProps,null))?t.memoizedState=n:V||(t.stateNode=fp(t.type,t.pendingProps,Se.current,t)):t.memoizedState=Nm(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Te(t),e===null&&V&&(r=t.stateNode=hm(t.type,t.pendingProps,Se.current),na=t,aa=!0,a=ra,Sp(t.type)?(um=a,ra=lm(r.firstChild)):ra=a),kc(e,t,t.pendingProps.children,n),zc(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&V&&((a=r=ra)&&(r=rm(r,t.type,t.pendingProps,aa),r===null?a=!1:(t.stateNode=r,na=t,ra=lm(r.firstChild),aa=!1,a=!0)),a||sa(t)),Te(t),a=t.type,o=t.pendingProps,s=e===null?null:e.memoizedProps,r=o.children,pp(a,o)?r=null:s!==null&&pp(a,s)&&(t.flags|=32),t.memoizedState!==null&&(a=Xo(e,t,$o,null,null,n),sh._currentValue=a),zc(e,t),kc(e,t,r,n),t.child;case 6:return e===null&&V&&((e=n=ra)&&(n=im(n,t.pendingProps,aa),n===null?e=!1:(t.stateNode=n,na=t,ra=null,e=!0)),e||sa(t)),null;case 13:return qc(e,t,n);case 4:return we(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=uo(t,null,r,n):kc(e,t,r,n),t.child;case 11:return Ac(e,t,t.type,t.pendingProps,n);case 7:return r=t.pendingProps,zc(e,t),kc(e,t,r,n),t.child;case 8:case 12:return kc(e,t,t.pendingProps.children,n),t.child;case 10:return rl(e,t,n);case 9:return a=t.type._context,r=t.pendingProps.children,Ca(t),a=wa(a),r=r(a),t.flags|=1,kc(e,t,r,n),t.child;case 14:return jc(e,t,t.type,t.pendingProps,n);case 15:return Mc(e,t,t.type,t.pendingProps,n);case 19:return nl(e,t,n);case 31:return Rc(e,t,n);case 22:return Nc(e,t,n,t.pendingProps);case 24:return Ca(t),r=wa(Aa),e===null?(a=Ga(),a===null&&(a=Zu,o=ja(),a.pooledCache=o,o.refCount++,o!==null&&(a.pooledCacheLanes|=n),a=o),t.memoizedState={parent:r,cache:a},mo(t),_a(t,Aa,a)):((e.lanes&n)!==0&&(ho(e,t),So(t,null,null,n),xo()),a=e.memoizedState,o=t.memoizedState,a.parent===r?(r=o.cache,_a(t,Aa,r),r!==a.cache&&ba(t,[Aa],n,!0)):(a={parent:r,cache:r},t.memoizedState=a,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=a),_a(t,Aa,r))),kc(e,t,t.pendingProps.children,n),t.child;case 30:return t.stateNode===null&&(t.stateNode={autoName:null,paired:null,clones:null,ref:null}),r=t.pendingProps,r.name!=null&&r.name!==`auto`?t.flags|=e===null?18882560:18874368:V&&$i(t),e!==null&&e.memoizedProps.name!==r.name?t.flags|=4194816:zc(e,t),kc(e,t,r.children,n),t.child;case 29:throw t.pendingProps}throw Error(i(156,t.tag))}function cl(e){e.flags|=4}function ll(e,t,n,r,i){var a;if((a=!!(e.mode&32))&&(a=n===null?Jm(t,r):Jm(t,r)&&(r.src!==n.src||r.srcSet!==n.srcSet)),a){if(e.flags|=16777216,(i&335544128)===i){if(e.stateNode.complete)e.flags|=8192;else if(Hd())e.flags|=8192;else throw to=Za,Ya}}else e.flags&=-16777217}function ul(e,t){if(t.type!==`stylesheet`||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!Ym(t)){if(Hd())e.flags|=8192;else throw to=Za,Ya}}function dl(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag===22?536870912:dt(),e.lanes|=t,ld|=t)}function fl(e,t){if(!V)switch(e.tailMode){case`visible`:break;case`collapsed`:for(var n=e.tail,r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null;break;default:for(t=e.tail,n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null}}function pl(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&0x47f00000,r|=i.flags&0x47f00000,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function ml(e,t,n){var r=t.pendingProps;switch(ea(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:case 1:return pl(t),null;case 3:return n=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),va(Aa),L(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(ua(t)?cl(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,fa())),pl(t),null;case 26:var a=t.type,o=t.memoizedState;return e===null?(cl(t),o===null?(pl(t),ll(t,a,null,r,n)):(pl(t),ul(t,o))):o?o===e.memoizedState?(pl(t),t.flags&=-16777217):(cl(t),pl(t),ul(t,o)):(e=e.memoizedProps,e!==r&&cl(t),pl(t),ll(t,a,e,r,n)),null;case 27:if(Ee(t),n=Se.current,a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&cl(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return pl(t),t.subtreeFlags&=-33554433,null}e=be.current,ua(t)?ca(t,e):(e=hm(a,r,n),t.stateNode=e,cl(t))}return pl(t),t.subtreeFlags&=-33554433,null;case 5:if(Ee(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&cl(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return pl(t),t.subtreeFlags&=-33554433,null}if(o=be.current,ua(t))ca(t,o);else{var s=lp(Se.current);switch(o){case 1:o=s.createElementNS(`http://www.w3.org/2000/svg`,a);break;case 2:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,a);break;default:switch(a){case`svg`:o=s.createElementNS(`http://www.w3.org/2000/svg`,a);break;case`math`:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,a);break;case`script`:o=s.createElement(`div`),o.innerHTML=`<script><\/script>`,o=o.removeChild(o.firstChild);break;case`select`:o=typeof r.is==`string`?s.createElement(`select`,{is:r.is}):s.createElement(`select`),r.multiple?o.multiple=!0:r.size&&(o.size=r.size);break;default:o=typeof r.is==`string`?s.createElement(a,{is:r.is}):s.createElement(a)}}o[St]=t,o[Ct]=r;e:for(s=t.child;s!==null;){if(s.tag===5||s.tag===6)o.appendChild(s.stateNode);else if(s.tag!==4&&s.tag!==27&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===t)break;for(;s.sibling===null;){if(s.return===null||s.return===t)break e;s=s.return}s.sibling.return=s.return,s=s.sibling}switch(t.stateNode=o,np(o,a,r),a){case`button`:case`input`:case`select`:case`textarea`:r=!!r.autoFocus;break;case`img`:r=!0;break;default:r=!1}r&&cl(t)}}return pl(t),t.subtreeFlags&=-33554433,ll(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&cl(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(i(166));if(e=Se.current,ua(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,a=na,a!==null)switch(a.tag){case 27:case 5:r=a.memoizedProps}e[St]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||ep(e.nodeValue,n)),e||sa(t,!0)}else e=lp(e).createTextNode(r),e[St]=t,t.stateNode=e}return pl(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=ua(t),n!==null){if(e===null){if(!r)throw Error(i(318));if(e=t.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(557));e[St]=t}else da(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;pl(t),e=!1}else n=fa(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(No(t),t):(No(t),null);if(t.flags&128)throw Error(i(558))}return pl(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=ua(t),r!==null&&r.dehydrated!==null){if(e===null){if(!a)throw Error(i(318));if(a=t.memoizedState,a=a===null?null:a.dehydrated,!a)throw Error(i(317));a[St]=t}else da(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;pl(t),a=!1}else a=fa(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(No(t),t):(No(t),null)}return No(t),t.flags&128?(t.lanes=n,t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,a=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(a=r.alternate.memoizedState.cachePool.pool),o=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(o=r.memoizedState.cachePool.pool),o!==a&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),dl(t,t.updateQueue),pl(t),null);case 4:return L(),e===null&&Wf(t.stateNode.containerInfo),t.flags|=67108864,pl(t),null;case 10:return va(t.type),pl(t),null;case 19:if(Io(t),r=t.memoizedState,r===null)return pl(t),null;if(a=!!(t.flags&128),o=r.rendering,o===null){if(a)fl(r,!1);else{if(id!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=Lo(e),o!==null){for(t.flags|=128,fl(r,!1),e=o.updateQueue,t.updateQueue=e,dl(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)Pi(n,e),n=n.sibling;return Fo(t,Po.current&1|2),V&&Zi(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&ze()>hd&&(t.flags|=128,a=!0,fl(r,!1),t.lanes=4194304)}}else{if(!a){if(e=Lo(o),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,dl(t,e),fl(r,!0),r.tail===null&&r.tailMode!==`collapsed`&&r.tailMode!==`visible`&&!o.alternate&&!V)return pl(t),null}else 2*ze()-r.renderingStartTime>hd&&n!==536870912&&(t.flags|=128,a=!0,fl(r,!1),t.lanes=4194304)}r.isBackwards?(o.sibling=t.child,t.child=o):(e=r.last,e===null?t.child=o:e.sibling=o,r.last=o)}if(r.tail!==null){e=r.tail;e:{for(n=e;n!==null;){if(n.alternate!==null){n=!1;break e}n=n.sibling}n=!0}return r.rendering=e,r.tail=e.sibling,r.renderingStartTime=ze(),e.sibling=null,o=Po.current,o=a?o&1|2:o&1,r.tailMode===`visible`||r.tailMode===`collapsed`||!n||V?Fo(t,o):(n=o,I(U,t),I(Po,n),W===null&&(W=t)),V&&Zi(t,r.treeForkCount),e}return pl(t),null;case 22:case 23:return No(t),Oo(),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(pl(t),t.subtreeFlags&6&&(t.flags|=8192)):pl(t),n=t.updateQueue,n!==null&&dl(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),e!==null&&ye(Wa),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),va(Aa),pl(t),null;case 25:return null;case 30:return t.flags|=33554432,pl(t),null}throw Error(i(156,t.tag))}function hl(e,t){switch(ea(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return va(Aa),L(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Ee(t),null;case 31:if(t.memoizedState!==null){if(No(t),t.alternate===null)throw Error(i(340));da()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(No(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));da()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Io(t),e=t.flags,e&65536?(t.flags=e&-65537|128,e=t.memoizedState,e!==null&&(e.rendering=null,e.tail=null),t.flags|=4,t):null;case 4:return L(),null;case 10:return va(t.type),null;case 22:case 23:return No(t),Oo(),e!==null&&ye(Wa),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return va(Aa),null;default:return null}}function gl(e,t){switch(ea(t),t.tag){case 3:va(Aa),L();break;case 26:case 27:case 5:Ee(t);break;case 4:L();break;case 31:t.memoizedState!==null&&No(t);break;case 13:No(t);break;case 19:Io(t);break;case 10:va(t.type);break;case 22:case 23:No(t),Oo(),e!==null&&ye(Wa);break;case 24:va(Aa)}}function _l(e,t){try{var n=t.updateQueue,r=n===null?null:n.lastEffect;if(r!==null){var i=r.next;n=i;do{if((n.tag&e)===e){r=void 0;var a=n.create,o=n.inst;r=a(),o.destroy=r}n=n.next}while(n!==i)}}catch(e){pf(t,t.return,e)}}function vl(e,t,n){try{var r=t.updateQueue,i=r===null?null:r.lastEffect;if(i!==null){var a=i.next;r=a;do{if((r.tag&e)===e){var o=r.inst,s=o.destroy;if(s!==void 0){o.destroy=void 0,i=t;var c=n,l=s;try{l()}catch(e){pf(i,c,e)}}}r=r.next}while(r!==a)}}catch(e){pf(t,t.return,e)}}function yl(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{wo(t,n)}catch(t){pf(e,e.return,t)}}}function bl(e,t,n){n.props=bc(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){pf(e,t,n)}}function xl(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:var i=e.stateNode,a=gi(e.memoizedProps,i);(i.ref===null||i.ref.name!==a)&&(i.ref=Pp(a)),r=i.ref;break;case 7:if(e.stateNode===null){var o=new Fp(e);p(e.child,!1,Qp,o,void 0,void 0),e.stateNode=o}r=e.stateNode;break;default:r=e.stateNode}typeof n==`function`?e.refCleanup=n(r):n.current=r}}catch(n){pf(e,t,n)}}function Sl(e,t){var n=e.ref,r=e.refCleanup;if(n!==null){if(typeof r==`function`)try{r()}catch(n){pf(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n==`function`)try{n(null)}catch(n){pf(e,t,n)}else n.current=null}}function Cl(e,t){if((e.tag===5||e.tag===27||e.tag===6)&&e.alternate===null&&t!==null)for(var n=0;n<t.length;n++)em(e.stateNode,t[n])}function wl(e){for(var t=e.return;t!==null&&(Dl(t)&&em(e.stateNode,t.stateNode),!El(t));)t=t.return}function Tl(e){for(var t=e.return;t!==null&&(Dl(t)&&tm(e.stateNode,t.stateNode),!El(t));)t=t.return}function El(e){return e.tag===5||e.tag===3||e.tag===27}function Dl(e){return e&&e.tag===7&&e.stateNode!==null}function Ol(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{switch(t){case`button`:case`input`:case`select`:case`textarea`:n.autoFocus&&r.focus();break;case`img`:n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(t){pf(e,e.return,t)}}function kl(e,t,n){try{var r=e.stateNode;ip(r,e.type,n,t),r[Ct]=t}catch(t){pf(e,e.return,t)}}function Al(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Sp(e.type)||e.tag===4}function jl(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Al(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Sp(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Ml(e,t,n,r){var i=e.tag;if(i===5||i===6)i=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n).insertBefore(i,t):(t=n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n,t.appendChild(i),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=vn)),Cl(e,r),z=!0;else if(i!==4&&(i===27&&(Cl(e,r),r=null,Sp(e.type)&&(n=e.stateNode,t=null)),e=e.child,e!==null))for(Ml(e,t,n,r),e=e.sibling;e!==null;)Ml(e,t,n,r),e=e.sibling}function Nl(e,t,n,r){var i=e.tag;if(i===5||i===6)i=e.stateNode,t?n.insertBefore(i,t):n.appendChild(i),Cl(e,r),z=!0;else if(i!==4&&(i===27&&(Cl(e,r),r=null,Sp(e.type)&&(n=e.stateNode)),e=e.child,e!==null))for(Nl(e,t,n,r),e=e.sibling;e!==null;)Nl(e,t,n,r),e=e.sibling}function Pl(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);np(t,r,n),t[St]=e,t[Ct]=n}catch(t){pf(e,e.return,t)}}var Fl=!1,Il=null;function Ll(e){(e.tag===30||e.subtreeFlags&33554432)&&(Fl=!0)}var Rl=null;function zl(){var e=Rl;return Rl=null,e}var Bl=0;function Vl(e,t,n,r,i){return Bl=0,Hl(e.child,t,n,r,i)}function Hl(e,t,n,r,i){for(var a=!1;e!==null;){if(e.tag===5){var o=e.stateNode;if(r!==null){var s=Op(o);r.push(s),s.view&&(a=!0)}else a||Op(o).view&&(a=!0);Fl=!0,Tp(o,Bl===0?t:t+`_`+Bl,n),Bl++}else e.tag===22&&e.memoizedState!==null||e.tag===30&&i||Hl(e.child,t,n,r,i)&&(a=!0);e=e.sibling}return a}function Ul(e,t){for(;e!==null;)e.tag===5?Ep(e.stateNode,e.memoizedProps):e.tag===22&&e.memoizedState!==null||e.tag===30&&t||Ul(e.child,t),e=e.sibling}function Wl(e){if(e.subtreeFlags&18874368)for(e=e.child;e!==null;){if((e.tag!==22||e.memoizedState===null)&&(Wl(e),e.tag===30&&e.flags&18874368&&e.stateNode.paired)){var t=e.memoizedProps;if(t.name==null||t.name===`auto`)throw Error(i(544));var n=t.name;t=vi(t.default,t.share),t!==`none`&&(Vl(e,n,t,null,!1)||Ul(e.child,!1))}e=e.sibling}}function Gl(e,t){if(e.tag===30){var n=e.stateNode,r=e.memoizedProps,i=gi(r,n),a=vi(r.default,n.paired?r.share:r.enter);a===`none`?Wl(e):Vl(e,i,a,null,!1)?(Wl(e),n.paired||t||Md(e,r.onEnter)):Ul(e.child,!1)}else if(e.subtreeFlags&33554432)for(e=e.child;e!==null;)Gl(e,t),e=e.sibling;else Wl(e)}function Kl(e){if(Il!==null&&Il.size!==0){var t=Il;if(e.subtreeFlags&18874368)for(e=e.child;e!==null;){if(e.tag!==22||e.memoizedState===null){if(e.tag===30&&e.flags&18874368){var n=e.memoizedProps,r=n.name;if(r!=null&&r!==`auto`){var i=t.get(r);if(i!==void 0){var a=vi(n.default,n.share);if(a!==`none`&&(Vl(e,r,a,null,!1)?(a=e.stateNode,i.paired=a,a.paired=i,Md(e,n.onShare)):Ul(e.child,!1)),t.delete(r),t.size===0)break}}}Kl(e)}e=e.sibling}}}function ql(e){if(e.tag===30){var t=e.memoizedProps,n=gi(t,e.stateNode),r=Il===null?void 0:Il.get(n),i=vi(t.default,r===void 0?t.exit:t.share);i!==`none`&&(Vl(e,n,i,null,!1)?r===void 0?Md(e,t.onExit):(i=e.stateNode,r.paired=i,i.paired=r,Il.delete(n),Md(e,t.onShare)):Ul(e.child,!1)),Il!==null&&Kl(e)}else if(e.subtreeFlags&33554432)for(e=e.child;e!==null;)ql(e),e=e.sibling;else Il!==null&&Kl(e)}function Jl(e){for(e=e.child;e!==null;){if(e.tag===30){var t=e.memoizedProps,n=gi(t,e.stateNode);t=vi(t.default,t.update),e.flags&=-5,t!==`none`&&Vl(e,n,t,e.memoizedState=[],!1)}else e.subtreeFlags&33554432&&Jl(e);e=e.sibling}}function Yl(e){if(e.subtreeFlags&18874368)for(e=e.child;e!==null;){if(e.tag!==22||e.memoizedState===null){if(e.tag===30&&e.flags&18874368){var t=e.stateNode;t.paired!==null&&(t.paired=null,Ul(e.child,!1))}Yl(e)}e=e.sibling}}function Xl(e){if(e.tag===30)e.stateNode.paired=null,Ul(e.child,!1),Yl(e);else if(e.subtreeFlags&33554432)for(e=e.child;e!==null;)Xl(e),e=e.sibling;else Yl(e)}function Zl(e){for(e=e.child;e!==null;)e.tag===30?Ul(e.child,!1):e.subtreeFlags&33554432&&Zl(e),e=e.sibling}function Ql(e,t,n,r,i,a,o){for(var s=!1;t!==null;){if(t.tag===5){var c=t.stateNode;if(a!==null&&Bl<a.length){var l=a[Bl],u=Op(c);(l.view||u.view)&&(s=!0);var d;if(d=!(e.flags&4)){if(u.clip)d=!0;else{d=l.rect;var f=u.rect;d=d.y!==f.y||d.x!==f.x||d.height!==f.height||d.width!==f.width}}d&&(e.flags|=4),u.abs?u=!l.abs:(l=l.rect,u=u.rect,u=l.height!==u.height||l.width!==u.width),u&&(e.flags|=32)}else e.flags|=32;e.flags&4&&Tp(c,Bl===0?n:n+`_`+Bl,i),s&&e.flags&4||(Rl===null&&(Rl=[]),Rl.push(c,Bl===0?r:r+`_`+Bl,t.memoizedProps)),Bl++}else(t.tag!==22||t.memoizedState===null)&&(t.tag===30&&o?e.flags|=t.flags&32:Ql(e,t.child,n,r,i,a,o)&&(s=!0));t=t.sibling}return s}function $l(e,t){for(e=e.child;e!==null;){if(e.tag===30){var n=e.memoizedProps,r=e.stateNode,i=gi(n,r),a=vi(n.default,n.update);if(t){r=r.clones;var o=r===null?null:r.map(kp)}else o=e.memoizedState,e.memoizedState=null;r=e;var s=e.child;Bl=0,i=Ql(r,s,i,i,a,o,!1),e.flags&4&&i&&(t||Md(e,n.onUpdate))}else e.subtreeFlags&33554432&&$l(e,t);e=e.sibling}}var eu=!1,tu=!1,nu=!1,ru=!1,iu=typeof WeakSet==`function`?WeakSet:Set,au=null,ou=!1,su=!1,cu=!1,lu=!1;function uu(e,t,n){if(e=e.containerInfo,sp=gh,e=Kr(e),qr(e)){if(`selectionStart`in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var i=r.getSelection&&r.getSelection();if(i&&i.rangeCount!==0){r=i.anchorNode;var a=i.anchorOffset,o=i.focusNode;i=i.focusOffset;try{r.nodeType,o.nodeType}catch{r=null;break e}var s=0,c=-1,l=-1,u=0,d=0,f=e,p=null;t:for(;;){for(var m;f!==r||a!==0&&f.nodeType!==3||(c=s+a),f!==o||i!==0&&f.nodeType!==3||(l=s+i),f.nodeType===3&&(s+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break t;if(p===r&&++u===a&&(c=s),p===o&&++d===i&&(l=s),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}r=c===-1||l===-1?null:{start:c,end:l}}else r=null}r||={start:0,end:0}}else r=null;for(cp={focusedElem:e,selectionRange:r},gh=!1,n=(n&335544064)===n,au=t,t=n?9270:1024;au!==null;){if(e=au,n&&(r=e.deletions,r!==null))for(a=0;a<r.length;a++)n&&ql(r[a]);if(e.alternate===null&&e.flags&2)n&&Ll(e),du(n);else{if(e.tag===22){if(r=e.alternate,e.memoizedState!==null){r!==null&&r.memoizedState===null&&n&&ql(r),du(n);continue}if(r!==null&&r.memoizedState!==null){n&&Ll(e),du(n);continue}}r=e.child,(e.subtreeFlags&t)!==0&&r!==null?(r.return=e,au=r):(n&&Jl(e),du(n))}}Il=null}function du(e){for(;au!==null;){var t=au,n=e,r=t.alternate,a=t.flags;switch(t.tag){case 0:case 11:case 15:break;case 1:if(a&1024&&r!==null){n=void 0,a=r.memoizedProps,r=r.memoizedState;var o=t.stateNode;try{var s=bc(t.type,a);n=o.getSnapshotBeforeUpdate(s,r),o.__reactInternalSnapshotBeforeUpdate=n}catch(e){pf(t,t.return,e)}}break;case 3:if(a&1024){if(r=t.stateNode.containerInfo,n=r.nodeType,n===9)nm(r);else if(n===1)switch(r.nodeName){case`HEAD`:case`HTML`:case`BODY`:nm(r);break;default:r.textContent=``}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;case 30:n&&r!==null&&(n=gi(r.memoizedProps,r.stateNode),a=t.memoizedProps,a=vi(a.default,a.update),a!==`none`&&Vl(r,n,a,r.memoizedState=[],!0));break;default:if(a&1024)throw Error(i(163))}if(r=t.sibling,r!==null){r.return=t.return,au=r;break}au=t.return}}function fu(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:Mu(e,n),r&4&&_l(5,n);break;case 1:if(Mu(e,n),r&4){if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(e){pf(n,n.return,e)}else{var i=bc(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(e){pf(n,n.return,e)}}}r&64&&yl(n),r&512&&xl(n,n.return);break;case 3:if(Mu(e,n),r&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:case 1:t=n.child.stateNode}try{wo(e,t)}catch(e){pf(n,n.return,e)}}break;case 27:t===null&&r&4&&Pl(n);case 26:case 5:Mu(e,n),t===null&&r&4&&Ol(n),r&512&&xl(n,n.return);break;case 12:Mu(e,n);break;case 31:Mu(e,n),r&4&&xu(e,n);break;case 13:Mu(e,n),r&4&&Su(e,n),r&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=_f.bind(null,n),cm(e,n))));break;case 22:if(r=n.memoizedState!==null||eu,!r){var a=t!==null&&t.memoizedState!==null||tu;t=eu,i=tu,eu=r,(tu=a)&&!i?(r=2,n.subtreeFlags&8772&&(r|=1),Pu(e,n,r)):Mu(e,n),eu=t,tu=i}break;case 30:Mu(e,n),r&512&&xl(n,n.return);break;case 7:r&512&&xl(n,n.return);default:Mu(e,n)}}function pu(e,t){for(e=e.child;e!==null;)mu(e,t),e=e.sibling}function mu(e,t){switch(e.tag){case 5:case 26:try{var n=e.stateNode;if(t){var r=n.style;typeof r.setProperty==`function`?r.setProperty(`display`,`none`,`important`):r.display=`none`}else{var i=e.stateNode,a=e.memoizedProps.style,o=a!=null&&a.hasOwnProperty(`display`)?a.display:null;i.style.display=o==null||typeof o==`boolean`?``:(``+o).trim()}}catch(t){pf(e,e.return,t)}hu(e,t);break;case 6:try{e.stateNode.nodeValue=t?``:e.memoizedProps,z=!0}catch(t){pf(e,e.return,t)}break;case 18:try{var s=e.stateNode;t?wp(s,!0):wp(e.stateNode,!1)}catch(t){pf(e,e.return,t)}break;case 22:case 23:e.memoizedState===null&&pu(e,t);break;default:pu(e,t)}}function hu(e,t){if(e.subtreeFlags&67108864)for(e=e.child;e!==null;){e:{var n=e,r=t;switch(n.tag){case 4:mu(n,r);break e;case 22:n.memoizedState===null&&hu(n,r);break e;default:hu(n,r)}}e=e.sibling}}function gu(e){var t=e.alternate;t!==null&&(e.alternate=null,gu(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&jt(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var _u=null,vu=!1;function yu(e,t,n){for(n=n.child;n!==null;)bu(e,t,n),n=n.sibling}function bu(e,t,n){if(Ye&&typeof Ye.onCommitFiberUnmount==`function`)try{Ye.onCommitFiberUnmount(Je,n)}catch{}switch(n.tag){case 26:tu||Sl(n,t),yu(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&!tu&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:tu||Sl(n,t),Tl(n);var r=_u,i=vu;Sp(n.type)&&(_u=n.stateNode,vu=!1),yu(e,t,n),gm(n.stateNode,n.type,n.memoizedProps),_u=r,vu=i;break;case 5:tu||Sl(n,t),Tl(n);case 6:if(n.tag===6&&Tl(n),r=_u,i=vu,_u=null,yu(e,t,n),_u=r,vu=i,_u!==null){if(vu)try{(_u.nodeType===9?_u.body:_u.nodeName===`HTML`?_u.ownerDocument.body:_u).removeChild(n.stateNode),z=!0}catch(e){pf(n,t,e)}else try{_u.removeChild(n.stateNode),z=!0}catch(e){pf(n,t,e)}}break;case 18:_u!==null&&(vu?(e=_u,Cp(e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,n.stateNode),Hh(e)):Cp(_u,n.stateNode));break;case 4:r=_u,i=vu,_u=n.stateNode.containerInfo,vu=!0,yu(e,t,n),_u=r,vu=i;break;case 0:case 11:case 14:case 15:vl(2,n,t),tu||vl(4,n,t),yu(e,t,n);break;case 1:tu||(Sl(n,t),r=n.stateNode,typeof r.componentWillUnmount==`function`&&bl(n,t,r)),yu(e,t,n);break;case 21:yu(e,t,n);break;case 22:tu=(r=tu)||n.memoizedState!==null,yu(e,t,n),tu=r;break;case 30:Sl(n,t),yu(e,t,n);break;case 7:tu||Sl(n,t),yu(e,t,n);break;default:yu(e,t,n)}}function xu(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Hh(e)}catch(e){pf(t,t.return,e)}}}function Su(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Hh(e)}catch(e){pf(t,t.return,e)}}function Cu(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new iu),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new iu),t;default:throw Error(i(435,e.tag))}}function wu(e,t){var n=Cu(e);t.forEach(function(t){if(!n.has(t)){n.add(t);var r=vf.bind(null,e,t);t.then(r,r)}})}function Tu(e,t,n){var r=t.deletions;if(r!==null)for(var a=0;a<r.length;a++){var o=r[a],s=e,c=t,l=c;e:for(;l!==null;){switch(l.tag){case 27:if(Sp(l.type)){_u=l.stateNode,vu=!1;break e}break;case 5:_u=l.stateNode,vu=!1;break e;case 3:case 4:_u=l.stateNode.containerInfo,vu=!0;break e}l=l.return}if(_u===null)throw Error(i(160));bu(s,c,o),_u=null,vu=!1,s=o.alternate,s!==null&&(s.return=null),o.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Du(t,e,n),t=t.sibling}var Eu=null;function Du(e,t,n){var r=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(a&4&&(r=e.updateQueue,r=r===null?null:r.events,r!==null))for(var o=0;o<r.length;o++){var s=r[o];s.ref.impl=s.nextImpl}Tu(t,e,n),Ou(e),a&4&&(vl(3,e,e.return),_l(3,e),vl(5,e,e.return));break;case 1:Tu(t,e,n),Ou(e),a&512&&(tu||r===null||Sl(r,r.return)),a&64&&eu&&(e=e.updateQueue,e!==null&&(t=e.callbacks,t!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?t:n.concat(t))));break;case 26:if(o=Eu,Tu(t,e,n),Ou(e),a&512&&(tu||r===null||Sl(r,r.return)),a&4){if(a=r===null?null:r.memoizedState,n=e.memoizedState,r===null){if(n===null){if(e.stateNode===null){if(eu)e.stateNode=fp(e.type,e.memoizedProps,t.containerInfo,e);else{e:{t=e.type,n=e.memoizedProps,a=o.ownerDocument||o;t:switch(t){case`title`:r=a.getElementsByTagName(`title`)[0],(!r||r[kt]||r[St]||r.namespaceURI===`http://www.w3.org/2000/svg`||r.hasAttribute(`itemprop`))&&(r=a.createElement(t),a.head.insertBefore(r,a.querySelector(`head > title`))),np(r,t,n),r[St]=e,It(r),t=r;break e;case`link`:if(o=Gm(`link`,`href`,a).get(t+(n.href||``))){for(s=0;s<o.length;s++)if(r=o[s],r.getAttribute(`href`)===(n.href==null||n.href===``?null:n.href)&&r.getAttribute(`rel`)===(n.rel==null?null:n.rel)&&r.getAttribute(`title`)===(n.title==null?null:n.title)&&r.getAttribute(`crossorigin`)===(n.crossOrigin==null?null:n.crossOrigin)){o.splice(s,1);break t}}r=a.createElement(t),np(r,t,n),a.head.appendChild(r);break;case`meta`:if(o=Gm(`meta`,`content`,a).get(t+(n.content||``))){for(s=0;s<o.length;s++)if(r=o[s],r.getAttribute(`content`)===(n.content==null?null:``+n.content)&&r.getAttribute(`name`)===(n.name==null?null:n.name)&&r.getAttribute(`property`)===(n.property==null?null:n.property)&&r.getAttribute(`http-equiv`)===(n.httpEquiv==null?null:n.httpEquiv)&&r.getAttribute(`charset`)===(n.charSet==null?null:n.charSet)){o.splice(s,1);break t}}r=a.createElement(t),np(r,t,n),a.head.appendChild(r);break;default:throw Error(i(468,t))}r[St]=e,It(r),t=r}e.stateNode=t}}else eu||Km(o,e.type,e.stateNode)}else e.stateNode=Bm(o,n,e.memoizedProps)}else a===n?n===null&&e.stateNode!==null&&kl(e,e.memoizedProps,r.memoizedProps):(a===null?(t=r.stateNode,t===null||tu||t.parentNode.removeChild(t)):a.count--,n===null?eu||Km(o,e.type,e.stateNode):Bm(o,n,e.memoizedProps))}break;case 27:Tu(t,e,n),Ou(e),a&512&&(tu||r===null||Sl(r,r.return)),r!==null&&a&4&&kl(e,e.memoizedProps,r.memoizedProps);break;case 5:if(o=nu,nu=!1,Tu(t,e,n),nu=o,Ou(e),a&512&&(tu||r===null||Sl(r,r.return)),e.flags&32){t=e.stateNode;try{un(t,``),z=!0}catch(t){pf(e,e.return,t)}}a&4&&e.stateNode!=null&&(t=e.memoizedProps,kl(e,t,r===null?t:r.memoizedProps)),a&1024&&(ru=!0);break;case 6:if(Tu(t,e,n),Ou(e),a&4){if(e.stateNode===null)throw Error(i(162));t=e.memoizedProps,n=e.stateNode;try{n.nodeValue=t,z=!0}catch(t){pf(e,e.return,t)}}break;case 3:if(z=!1,Wm=null,o=Eu,Eu=bm(t.containerInfo),Tu(t,e,n),Eu=o,Ou(e),a&4&&r!==null&&r.memoizedState.isDehydrated)try{Hh(t.containerInfo)}catch(t){pf(e,e.return,t)}ru&&(ru=!1,ku(e)),z=!1;break;case 4:a=nu,nu=eu,r=Kt(),o=Eu,Eu=bm(e.stateNode.containerInfo),Tu(t,e,n),Ou(e),Eu=o,z&&su&&(cu=!0),z=r,nu=a;break;case 12:Tu(t,e,n),Ou(e);break;case 31:Tu(t,e,n),Ou(e),a&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,wu(e,t)));break;case 13:Tu(t,e,n),Ou(e),e.child.flags&8192&&e.memoizedState!==null!=(r!==null&&r.memoizedState!==null)&&(pd=ze()),a&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,wu(e,t)));break;case 22:o=e.memoizedState!==null,s=r!==null&&r.memoizedState!==null;var c=eu,l=tu,u=nu;eu=c||o,nu=u||o,tu=l||s,Tu(t,e,n),tu=l,nu=u,eu=c,Ou(e),a&8192&&(t=e.stateNode,t._visibility=o?t._visibility&-2:t._visibility|1,!o||r===null||s||eu||tu||(t=s||tu,n=eu,r=tu,eu=o||eu,tu=t,Nu(e,2),eu=n,tu=r),!o&&nu||pu(e,o)),a&4&&(t=e.updateQueue,t!==null&&(n=t.retryQueue,n!==null&&(t.retryQueue=null,wu(e,n))));break;case 19:Tu(t,e,n),Ou(e),a&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,wu(e,t)));break;case 30:a&512&&(tu||r===null||Sl(r,r.return)),a=Kt(),o=su,s=(n&335544064)===n,c=e.memoizedProps,su=s&&vi(c.default,c.update)!==`none`,Tu(t,e,n),Ou(e),s&&r!==null&&z&&(e.flags|=4),su=o,z=a;break;case 21:break;case 7:a&512&&(tu||r===null||Sl(r,r.return)),r&&r.stateNode!==null&&(r.stateNode._fragmentFiber=e);default:Tu(t,e,n),Ou(e)}}function Ou(e){var t=e.flags;if(t&2){try{for(var n,r=e.return;r!==null;){if(Al(r)){n=r;break}r=r.return}r=null;for(var a=e.return;a!==null;){if(Dl(a)){var o=a.stateNode;r===null?r=[o]:r.push(o)}if(El(a))break;a=a.return}var s=r;if(n==null)throw Error(i(160));switch(n.tag){case 27:var c=n.stateNode;Nl(e,jl(e),c,s);break;case 5:var l=n.stateNode;n.flags&32&&(un(l,``),n.flags&=-33),Nl(e,jl(e),l,s);break;case 3:case 4:var u=n.stateNode.containerInfo;Ml(e,jl(e),u,s);break;default:throw Error(i(161))}}catch(t){pf(e,e.return,t)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function ku(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;ku(t),t.tag===5&&t.flags&1024&&(t=t.stateNode,gh=!0,t.reset(),gh=!1),e=e.sibling}}function Au(e,t){if(t.subtreeFlags&9270)for(t=t.child;t!==null;)ju(t,e),t=t.sibling;else $l(t,!1)}function ju(e,t){var n=e.alternate;if(n===null)Gl(e,!1);else switch(e.tag){case 3:if(lu=ou=!1,zl(),Au(t,e),!ou&&!cu){if(e=Rl,e!==null)for(var r=0;r<e.length;r+=3){n=e[r];var i=e[r+1];Ep(n,e[r+2]),n=n.ownerDocument.documentElement,n!==null&&n.animate({opacity:[0,0],pointerEvents:[`none`,`none`]},{duration:0,fill:`forwards`,pseudoElement:`::view-transition-group(`+i+`)`})}e=t.containerInfo,e=e.nodeType===9?e.documentElement:e.ownerDocument.documentElement,e!==null&&e.style.viewTransitionName===``&&(e.style.viewTransitionName=`none`,e.animate({opacity:[0,0],pointerEvents:[`none`,`none`]},{duration:0,fill:`forwards`,pseudoElement:`::view-transition-group(root)`}),e.animate({width:[0,0],height:[0,0]},{duration:0,fill:`forwards`,pseudoElement:`::view-transition`})),lu=!0}Rl=null;break;case 5:Au(t,e);break;case 4:r=ou,ou=!1,Au(t,e),ou&&(cu=!0),ou=r;break;case 22:e.memoizedState===null&&(n.memoizedState===null?Au(t,e):Gl(e,!1));break;case 30:r=ou,i=zl(),ou=!1,Au(t,e),ou&&(e.flags|=4);var a=e.memoizedProps,o=e.stateNode;t=gi(a,o),o=gi(n.memoizedProps,o);var s=vi(a.default,a.update);s===`none`?t=!1:(a=n.memoizedState,n.memoizedState=null,n=e.child,Bl=0,t=Ql(e,n,t,o,s,a,!0),Bl!==(a===null?0:a.length)&&(e.flags|=32)),e.flags&4&&t?(Md(e,e.memoizedProps.onUpdate),Rl=i):i!==null&&(i.push.apply(i,Rl),Rl=i),ou=e.flags&32?!0:r;break;default:Au(t,e)}}function Mu(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)fu(e,t.alternate,t),t=t.sibling}function Nu(e,t){for(e=e.child;e!==null;){var n=e,r=t;switch(n.tag){case 0:case 11:case 14:case 15:vl(4,n,n.return),Nu(n,r);break;case 1:Sl(n,n.return);var i=n.stateNode;typeof i.componentWillUnmount==`function`&&bl(n,n.return,i),Nu(n,r);break;case 27:r&2&&gm(n.stateNode,n.type,n.memoizedProps);case 5:Sl(n,n.return),n.tag!==5&&n.tag!==27||Tl(n),Nu(n,r);break;case 6:Tl(n);break;case 26:Sl(n,n.return),i=n.stateNode,n.memoizedState!==null||i===null||tu||i.parentNode.removeChild(i),Nu(n,r);break;case 22:n.memoizedState===null&&Nu(n,r);break;case 30:Sl(n,n.return),Nu(n,r);break;case 7:Sl(n,n.return);default:Nu(n,r)}e=e.sibling}}function Pu(e,t,n){for(n=t.subtreeFlags&8772?n:n&-2,t=t.child;t!==null;){var r=t.alternate,i=e,a=t,o=a.flags,s=!!(n&1);switch(a.tag){case 0:case 11:case 15:Pu(i,a,n),_l(4,a);break;case 1:if(Pu(i,a,n),r=a,i=r.stateNode,typeof i.componentDidMount==`function`)try{i.componentDidMount()}catch(e){pf(r,r.return,e)}if(r=a,i=r.updateQueue,i!==null){var c=r.stateNode;try{var l=i.shared.hiddenCallbacks;if(l!==null)for(i.shared.hiddenCallbacks=null,i=0;i<l.length;i++)Co(l[i],c)}catch(e){pf(r,r.return,e)}}s&&o&64&&yl(a),xl(a,a.return);break;case 27:n&2&&Pl(a);case 5:a.tag!==5&&a.tag!==27||wl(a),Pu(i,a,n),s&&r===null&&o&4&&Ol(a),xl(a,a.return);break;case 6:wl(a);break;case 26:c=a.stateNode,a.memoizedState!==null||c===null||eu||Km(bm(c.ownerDocument),a.type,c),Pu(i,a,n),s&&r===null&&o&4&&Ol(a),xl(a,a.return);break;case 12:Pu(i,a,n);break;case 31:Pu(i,a,n),s&&o&4&&xu(i,a);break;case 13:Pu(i,a,n),s&&o&4&&Su(i,a);break;case 22:a.memoizedState===null&&Pu(i,a,n),xl(a,a.return);break;case 30:Pu(i,a,n),xl(a,a.return);break;case 7:xl(a,a.return);default:Pu(i,a,n)}t=t.sibling}}function Fu(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&Ma(n))}function Iu(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Ma(e))}function Lu(e,t,n,r){var i=(n&335544064)===n;if(t.subtreeFlags&(i?10262:10256))for(t=t.child;t!==null;)Ru(e,t,n,r),t=t.sibling;else i&&Zl(t)}function Ru(e,t,n,r){var i=(n&335544064)===n;i&&t.alternate===null&&t.return!==null&&t.return.alternate!==null&&Xl(t);var a=t.flags;switch(t.tag){case 0:case 11:case 15:Lu(e,t,n,r),a&2048&&_l(9,t);break;case 1:Lu(e,t,n,r);break;case 3:Lu(e,t,n,r),i&&lu&&(e=e.containerInfo,e=e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,e.style.viewTransitionName===`root`&&(e.style.viewTransitionName=``),e=e.ownerDocument.documentElement,e!==null&&e.style.viewTransitionName===`none`&&(e.style.viewTransitionName=``)),a&2048&&(a=null,t.alternate!==null&&(a=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==a&&(t.refCount++,a!=null&&Ma(a)));break;case 12:if(a&2048){Lu(e,t,n,r),a=t.stateNode;try{var o=t.memoizedProps,s=o.id,c=o.onPostCommit;typeof c==`function`&&c(s,t.alternate===null?`mount`:`update`,a.passiveEffectDuration,-0)}catch(e){pf(t,t.return,e)}}else Lu(e,t,n,r);break;case 31:case 13:Lu(e,t,n,r);break;case 23:break;case 22:o=t.stateNode,s=t.alternate,t.memoizedState===null?(i&&s!==null&&s.memoizedState!==null&&Xl(t),o._visibility&2?Lu(e,t,n,r):(o._visibility|=2,zu(e,t,n,r,!!(t.subtreeFlags&10256)||!1))):(i&&s!==null&&s.memoizedState===null&&Xl(s),o._visibility&2?Lu(e,t,n,r):Bu(e,t)),a&2048&&Fu(s,t);break;case 24:Lu(e,t,n,r),a&2048&&Iu(t.alternate,t);break;case 30:i&&(a=t.alternate,a!==null&&(Ul(a.child,!0),Ul(t.child,!0))),Lu(e,t,n,r);break;default:Lu(e,t,n,r)}}function zu(e,t,n,r,i){for(i&&=!!(t.subtreeFlags&10256)||!1,t=t.child;t!==null;){var a=e,o=t,s=n,c=r,l=o.flags;switch(o.tag){case 0:case 11:case 15:zu(a,o,s,c,i),_l(8,o);break;case 23:break;case 22:var u=o.stateNode;o.memoizedState===null?(u._visibility|=2,zu(a,o,s,c,i)):u._visibility&2?zu(a,o,s,c,i):Bu(a,o),i&&l&2048&&Fu(o.alternate,o);break;case 24:zu(a,o,s,c,i),i&&l&2048&&Iu(o.alternate,o);break;default:zu(a,o,s,c,i)}t=t.sibling}}function Bu(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,r=t,i=r.flags;switch(r.tag){case 22:Bu(n,r),i&2048&&Fu(r.alternate,r);break;case 24:Bu(n,r),i&2048&&Iu(r.alternate,r);break;default:Bu(n,r)}t=t.sibling}}var Vu=8192;function Hu(e,t,n){if(e.subtreeFlags&Vu)for(e=e.child;e!==null;)Uu(e,t,n),e=e.sibling}function Uu(e,t,n){switch(e.tag){case 26:Hu(e,t,n),e.flags&Vu&&(e.memoizedState===null?(e=e.stateNode,(t&335544128)===t&&Zm(n,e)):Qm(n,Eu,e.memoizedState,e.memoizedProps));break;case 5:Hu(e,t,n),e.flags&Vu&&(e=e.stateNode,(t&335544128)===t&&Zm(n,e));break;case 3:case 4:var r=Eu;Eu=bm(e.stateNode.containerInfo),Hu(e,t,n),Eu=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=Vu,Vu=16777216,Hu(e,t,n),Vu=r):Hu(e,t,n));break;case 30:if((e.flags&Vu)!==0&&(r=e.memoizedProps.name,r!=null&&r!==`auto`)){var i=e.stateNode;i.paired=null,Il===null&&(Il=new Map),Il.set(r,i)}Hu(e,t,n);break;default:Hu(e,t,n)}}function Wu(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Gu(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];au=r,Ju(r,e)}Wu(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Ku(e),e=e.sibling}function Ku(e){switch(e.tag){case 0:case 11:case 15:Gu(e),e.flags&2048&&vl(9,e,e.return);break;case 3:case 12:Gu(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,qu(e)):Gu(e);break;default:Gu(e)}}function qu(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];au=r,Ju(r,e)}Wu(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:vl(8,t,t.return),qu(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,qu(t));break;default:qu(t)}e=e.sibling}}function Ju(e,t){for(;au!==null;){var n=au;switch(n.tag){case 0:case 11:case 15:vl(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var r=n.memoizedState.cachePool.pool;r!=null&&r.refCount++}break;case 24:Ma(n.memoizedState.cache)}if(r=n.child,r!==null)r.return=n,au=r;else for(n=e;au!==null;){r=au;var i=r.sibling,a=r.return;if(gu(r),r===n){au=null;break}if(i!==null){i.return=a,au=i;break}au=a}}}var Yu={getCacheForType:function(e){var t=wa(Aa),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return wa(Aa).controller.signal}},Xu=typeof WeakMap==`function`?WeakMap:Map,Y=0,Zu=null,X=null,Z=0,Qu=0,$u=null,ed=!1,td=!1,nd=!1,rd=0,id=0,ad=0,od=0,sd=0,cd=0,ld=0,ud=null,dd=null,fd=!1,pd=0,md=0,hd=1/0,gd=null,_d=null,vd=0,yd=null,bd=null,xd=0,Sd=0,Cd=null,wd=null,Td=null,Ed=null,Dd=null,Od=0,kd=null;function Ad(){return Y&2&&Z!==0?Z&-Z:P.T===null?yt():Pf()}function jd(){if(cd===0){if(!(Z&536870912)||V){var e=nt;nt<<=1,!(nt&3932160)&&(nt=262144),cd=e}else cd=536870912}return e=U.current,e!==null&&(e.flags|=32),cd}function Md(e,t){if(t!=null){var n=e.stateNode,r=n.ref;r===null&&(r=n.ref=Pp(gi(e.memoizedProps,n))),Ed===null&&(Ed=[]),Ed.push(t.bind(null,r))}}function Nd(e,t,n){(e===Zu&&(Qu===2||Qu===9)||e.cancelPendingCommit!==null)&&(Bd(e,0),Ld(e,Z,cd,!1)),pt(e,n),Y&2&&e===Zu||(e===Zu&&(!(Y&2)&&(od|=n),id===4&&Ld(e,Z,cd,!1)),Ef(e))}function Pd(e,t,n){if(Y&6)throw Error(i(327));var r=!n&&!(t&127)&&(t&e.expiredLanes)===0||ct(e,t),a=r?Jd(e,t):Kd(e,t,!0),o=r;do{if(a===0){td&&!r&&Ld(e,t,0,!1);break}if(n=e.current.alternate,o&&!Id(n))a=Kd(e,t,!1),o=!1;else{if(a===2){if(o=t,e.errorRecoveryDisabledLanes&o)var s=0;else s=e.pendingLanes&-536870913,s=s===0?s&536870912?536870912:0:s;if(s!==0){t=s;e:{var c=e;a=ud;var l=c.current.memoizedState.isDehydrated;if(l&&(Bd(c,s).flags|=256),s=Kd(c,s,!1),s!==2&&s!==6){if(nd&&!l){c.errorRecoveryDisabledLanes|=o,od|=o,a=4;break e}o=dd,dd=a,o!==null&&(dd===null?dd=o:dd.push.apply(dd,o))}a=s}if(o=!1,a!==2)continue}}if(a===1){Bd(e,0),Ld(e,t,0,!0);break}e:{switch(r=e,o=a,o){case 0:case 1:throw Error(i(345));case 4:if((t&4194048)!==t&&(t&62914560)!==t)break;case 6:Ld(r,t,cd,!ed);break e;case 2:dd=null;break;case 3:case 5:break;default:throw Error(i(329))}if((t&62914560)===t&&(a=pd+300-ze(),10<a)){if(Ld(r,t,cd,!ed),st(r,0,!0)!==0)break e;xd=t,r.timeoutHandle=gp(Fd.bind(null,r,n,dd,gd,fd,t,cd,od,ld,ed,o,`Throttled`,-0,0),a);break e}Fd(r,n,dd,gd,fd,t,cd,od,ld,ed,o,null,-0,0)}break}}while(1);Ef(e)}function Fd(e,t,n,r,i,a,o,s,c,l,u,d,f,p){e.timeoutHandle=-1;var m=t.subtreeFlags,h=(a&335544064)===a;d=null,(h||m&8192||(m&16785408)==16785408)&&(d={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:vn},Il=null,Uu(t,a,d),h&&(m=d,h=e.containerInfo,h=(h.nodeType===9?h:h.ownerDocument).__reactViewTransition,h!=null&&(m.count++,m.waitingForViewTransition=!0,m=nh.bind(m),h.finished.then(m,m))),m=(a&62914560)===a?pd-ze():(a&4194048)===a?md-ze():0,m=eh(d,m),m!==null)?(xd=a,e.cancelPendingCommit=m(tf.bind(null,e,t,a,n,r,i,o,s,c,l,u,d,null,f,p)),Ld(e,a,o,!l)):tf(e,t,a,n,r,i,o,s,c,l,u,d)}function Id(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var r=0;r<n.length;r++){var i=n[r],a=i.getSnapshot;i=i.value;try{if(!Br(a(),i))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Ld(e,t,n,r){t=lt(e,t),t&=~sd,t&=~od,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var i=t;0<i;){var a=31-Ze(i),o=1<<a;r[a]=-1,i&=~o}n!==0&&ht(e,n,t)}function Rd(){return Y&6?!0:(Df(0,!1),!1)}function zd(){if(X!==null){if(Qu===0)var e=X.return;else e=X,ga=ha=null,ns(e),io=null,ao=0,e=X;for(;e!==null;)gl(e.alternate,e),e=e.return;X=null}}function Bd(e,t){var n=e.timeoutHandle;return n!==-1&&(e.timeoutHandle=-1,_p(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),xd=0,zd(),Zu=e,X=n=Ni(e.current,null),Z=t,Qu=0,$u=null,ed=!1,td=ct(e,t),nd=!1,ld=cd=sd=od=ad=id=0,dd=ud=null,fd=!1,rd=lt(e,t),Ci(),n}function Vd(e,t){G=null,P.H=fc,t===Ja||t===Xa?(t=no(),Qu=3):t===Ya?(t=no(),Qu=4):Qu=t===Dc?8:typeof t==`object`&&t&&typeof t.then==`function`?6:1,$u=t,X===null&&(id=1,q(e,Vi(t,e.current)))}function Hd(){var e=U.current;return e===null?!0:(Z&4194048)===Z?W===null:(Z&62914560)===Z||Z&536870912?e===W:!1}function Ud(){var e=P.H;return P.H=fc,e===null?fc:e}function Wd(){var e=P.A;return P.A=Yu,e}function Gd(){id=4,ed||(Z&4194048)!==Z&&U.current!==null||(td=!0),!(ad&0x7ffffff)&&!(od&0x7ffffff)||Zu===null||Ld(Zu,Z,cd,!1)}function Kd(e,t,n){var r=Y;Y|=2;var i=Ud(),a=Wd();(Zu!==e||Z!==t)&&(gd=null,Bd(e,t)),t=!1;var o=id;e:do try{if(Qu!==0&&X!==null){var s=X,c=$u;switch(Qu){case 8:zd(),o=6;break e;case 3:case 2:case 9:case 6:U.current===null&&(t=!0);var l=Qu;if(Qu=0,$u=null,Qd(e,s,c,l),n&&td){o=0;break e}break;default:l=Qu,Qu=0,$u=null,Qd(e,s,c,l)}}qd(),o=id;break}catch(t){Vd(e,t)}while(1);return t&&e.shellSuspendCounter++,ga=ha=null,Y=r,P.H=i,P.A=a,X===null&&(Zu=null,Z=0,Ci()),o}function qd(){for(;X!==null;)Xd(X)}function Jd(e,t){var n=Y;Y|=2;var r=Ud(),a=Wd();Zu!==e||Z!==t?(gd=null,hd=ze()+500,Bd(e,t)):td=ct(e,t);e:do try{if(Qu!==0&&X!==null){t=X;var o=$u;t:switch(Qu){case 1:Qu=0,$u=null,Qd(e,t,o,1);break;case 2:case 9:if(Qa(o)){Qu=0,$u=null,Zd(t);break}t=function(){Qu!==2&&Qu!==9||Zu!==e||(Qu=7),Ef(e)},o.then(t,t);break e;case 3:Qu=7;break e;case 4:Qu=5;break e;case 7:Qa(o)?(Qu=0,$u=null,Zd(t)):(Qu=0,$u=null,Qd(e,t,o,7));break;case 5:var s=null;switch(X.tag){case 26:s=X.memoizedState;case 5:case 27:var c=X;if(s?Ym(s):c.stateNode.complete){Qu=0,$u=null;var l=c.sibling;if(l!==null)X=l;else{var u=c.return;u===null?X=null:(X=u,$d(u))}break t}}Qu=0,$u=null,Qd(e,t,o,5);break;case 6:Qu=0,$u=null,Qd(e,t,o,6);break;case 8:zd(),id=6;break e;default:throw Error(i(462))}}Yd();break}catch(t){Vd(e,t)}while(1);return ga=ha=null,P.H=r,P.A=a,Y=n,X===null?(Zu=null,Z=0,Ci(),id):0}function Yd(){for(;X!==null&&!Le();)Xd(X)}function Xd(e){var t=sl(e.alternate,e,rd);e.memoizedProps=e.pendingProps,t===null?$d(e):X=t}function Zd(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=Vc(n,t,t.pendingProps,t.type,void 0,Z);break;case 11:t=Vc(n,t,t.pendingProps,t.type.render,t.ref,Z);break;case 5:ns(t);var r=t;r===na&&(V?(la(r),r.tag===5&&r.stateNode!=null&&(ra=r.stateNode)):(la(r),V=!0));default:gl(n,t),t=X=Pi(t,rd),t=sl(n,t,rd)}e.memoizedProps=e.pendingProps,t===null?$d(e):X=t}function Qd(e,t,n,r){ga=ha=null,ns(t),io=null,ao=0;var i=t.return;try{if(J(e,i,t,n,Z)){id=1,q(e,Vi(n,e.current)),X=null;return}}catch(t){if(i!==null)throw X=i,t;id=1,q(e,Vi(n,e.current)),X=null;return}t.flags&32768?(V||r===1?e=!0:td||Z&536870912?e=!1:(ed=e=!0,(r===2||r===9||r===3||r===6)&&(r=U.current,r!==null&&r.tag===13&&(r.flags|=16384))),ef(t,e)):$d(t)}function $d(e){var t=e;do{if(t.flags&32768){ef(t,ed);return}e=t.return;var n=ml(t.alternate,t,rd);if(n!==null){X=n;return}if(t=t.sibling,t!==null){X=t;return}X=t=e}while(t!==null);id===0&&(id=5)}function ef(e,t){do{var n=hl(e.alternate,e);if(n!==null){n.flags&=32767,X=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){X=e;return}X=e=n}while(e!==null);id=6,X=null}function tf(e,t,n,r,a,o,s,c,l,u,d,f){e.cancelPendingCommit=null;do uf();while(vd!==0);if(Y&6)throw Error(i(327));if(t!==null){if(t===e.current)throw Error(i(177));e===Zu&&(X=Zu=null,Z=0),bd=t,yd=e,xd=n,Cd=a,wd=r,nf(e,t,n,s,c,l,f)}}function nf(e,t,n,r,i,a,o){var s=t.lanes|t.childLanes;if(Sd=s,s|=Si,mt(e,n,s,r,i,a),Ed=null,(n&335544064)===n?(Dd=Fa(e),r=10262):(Dd=null,r=10256),(t.subtreeFlags&r)!==0||(t.flags&r)!==0?(e.callbackNode=null,e.callbackPriority=0,yf(Ue,function(){return df(),null})):(e.callbackNode=null,e.callbackPriority=0),Fl=!1,r=!!(t.flags&13878),t.subtreeFlags&13878||r){r=P.T,P.T=null,i=F.p,F.p=2,a=Y,Y|=4;try{uu(e,t,n)}finally{Y=a,F.p=i,P.T=r}}vd=1,Fl?Td=Mp(o,e.containerInfo,Dd,of,sf,af,cf,df,rf,null,null):(of(),sf(),cf())}function rf(e){vd!==0&&(0,yd.onRecoverableError)(e,{componentStack:null})}function af(){vd===3&&(vd=0,ju(bd,yd),vd=4)}function of(){if(vd===1){vd=0;var e=yd,t=bd,n=xd,r=!!(t.flags&13878);if(t.subtreeFlags&13878||r){r=P.T,P.T=null;var i=F.p;F.p=2;var a=Y;Y|=4;try{su=cu=!1,Du(t,e,n),n=cp;var o=Kr(e.containerInfo),s=n.focusedElem,c=n.selectionRange;if(o!==s&&s&&s.ownerDocument&&Gr(s.ownerDocument.documentElement,s)){if(c!==null&&qr(s)){var l=c.start,u=c.end;if(u===void 0&&(u=l),`selectionStart`in s)s.selectionStart=l,s.selectionEnd=Math.min(u,s.value.length);else{var d=s.ownerDocument||document,f=d&&d.defaultView||window;if(f.getSelection){var p=f.getSelection(),m=s.textContent.length,h=Math.min(c.start,m),g=c.end===void 0?h:Math.min(c.end,m);!p.extend&&h>g&&(o=g,g=h,h=o);var _=Wr(s,h),v=Wr(s,g);if(_&&v&&(p.rangeCount!==1||p.anchorNode!==_.node||p.anchorOffset!==_.offset||p.focusNode!==v.node||p.focusOffset!==v.offset)){var y=d.createRange();y.setStart(_.node,_.offset),p.removeAllRanges(),h>g?(p.addRange(y),p.extend(v.node,v.offset)):(y.setEnd(v.node,v.offset),p.addRange(y))}}}}for(d=[],p=s;p=p.parentNode;)p.nodeType===1&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof s.focus==`function`&&s.focus(),s=0;s<d.length;s++){var b=d[s];b.element.scrollLeft=b.left,b.element.scrollTop=b.top}}gh=!!sp,cp=sp=null}finally{Y=a,F.p=i,P.T=r}}e.current=t,vd=2}}function sf(){if(vd===2){vd=0;var e=yd,t=bd,n=!!(t.flags&8772);if(t.subtreeFlags&8772||n){n=P.T,P.T=null;var r=F.p;F.p=2;var i=Y;Y|=4;try{fu(e,t.alternate,t)}finally{Y=i,F.p=r,P.T=n}}vd=3}}function cf(){if(vd===4||vd===3){vd=0;var e=Td;Td=null,Re();var t=yd,n=bd,r=xd,i=wd,a=(r&335544064)===r?10262:10256;if((n.subtreeFlags&a)!==0||(n.flags&a)!==0?vd=5:(vd=0,bd=yd=null,lf(t,t.pendingLanes)),a=t.pendingLanes,a===0&&(_d=null),vt(r),n=n.stateNode,Ye&&typeof Ye.onCommitFiberRoot==`function`)try{Ye.onCommitFiberRoot(Je,n,void 0,(n.current.flags&128)==128)}catch{}if(i!==null){n=P.T,a=F.p,F.p=2,P.T=null;try{for(var o=t.onRecoverableError,s=0;s<i.length;s++){var c=i[s];o(c.value,{componentStack:c.stack})}}finally{P.T=n,F.p=a}}if(i=Ed,o=Dd,Dd=null,i!==null&&(Ed=null,o===null&&(o=[]),e!==null))for(c=0;c<i.length;c++)n=(0,i[c])(o),n!==void 0&&e.finished.finally(n);xd&3&&uf(),Ef(t),a=t.pendingLanes,r&261930&&a&42?t===kd?Od++:(Od=0,kd=t):(Od=0,kd=null),Df(0,!1)}}function lf(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Ma(t)))}function uf(){return Td!==null&&(Td.skipTransition(),Td=null),of(),sf(),cf(),df()}function df(){if(vd!==5)return!1;var e=yd,t=Sd;Sd=0;var n=vt(xd),r=P.T,a=F.p;try{F.p=32>n?32:n,P.T=null,n=Cd,Cd=null;var o=yd,s=xd;if(vd=0,bd=yd=null,xd=0,Y&6)throw Error(i(331));var c=Y;if(Y|=4,Ku(o.current),Ru(o,o.current,s,n),Y=c,Df(0,!1),Ye&&typeof Ye.onPostCommitFiberRoot==`function`)try{Ye.onPostCommitFiberRoot(Je,o)}catch{}return!0}finally{F.p=a,P.T=r,lf(e,t)}}function ff(e,t,n){t=Vi(n,t),t=wc(e.stateNode,t,2),e=_o(e,t,2),e!==null&&(pt(e,2),Ef(e))}function pf(e,t,n){if(e.tag===3)ff(e,e,n);else for(;t!==null;){if(t.tag===3){ff(t,e,n);break}if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(_d===null||!_d.has(r))){e=Vi(n,e),n=Tc(2),r=_o(t,n,2),r!==null&&(Ec(n,r,t,e),pt(r,2),Ef(r));break}}t=t.return}}function mf(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Xu;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(nd=!0,i.add(n),e=hf.bind(null,e,t,n),t.then(e,e))}function hf(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Zu===e&&(Z&n)===n&&(id===4||id===3&&(Z&62914560)===Z&&300>ze()-pd?Y&2?sd|=n:Bd(e,0):sd|=n,ld===Z&&(ld=0)),Ef(e)}function gf(e,t){t===0&&(t=dt()),e=Ei(e,t),e!==null&&(pt(e,t),Ef(e))}function _f(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),gf(e,n)}function vf(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(i(314))}r!==null&&r.delete(t),gf(e,n)}function yf(e,t){return Fe(e,t)}var bf=null,xf=null,Sf=!1,Cf=!1,wf=!1,Tf=0;function Ef(e){e!==xf&&e.next===null&&(xf===null?bf=xf=e:xf=xf.next=e),Cf=!0,Sf||(Sf=!0,Nf())}function Df(e,t){if(!wf&&Cf){wf=!0;do for(var n=!1,r=bf;r!==null;){if(!t){if(e!==0){var i=r.pendingLanes;if(i===0)var a=0;else{var o=r.suspendedLanes,s=r.pingedLanes;a=(1<<31-Ze(42|e)+1)-1,a&=i&~(o&~s),a=a&0xc000095?a&0xc000095|1:a?a|2:0}a!==0&&(n=!0,Mf(r,a))}else a=Z,a=st(r,r===Zu?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||ct(r,a)||(n=!0,Mf(r,a))}r=r.next}while(n);wf=!1}}function Of(){kf()}function kf(){Cf=Sf=!1;var e=0;Tf!==0&&hp()&&(e=Tf);for(var t=ze(),n=null,r=bf;r!==null;){var i=r.next,a=Af(r,t);a===0?(r.next=null,n===null?bf=i:n.next=i,i===null&&(xf=n)):(n=r,(e!==0||a&3)&&(Cf=!0)),r=i}vd!==0&&vd!==5||Df(e,!1),Tf!==0&&(Tf=0)}function Af(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0<a;){var o=31-Ze(a),s=1<<o,c=i[o];c===-1?((s&n)===0||(s&r)!==0)&&(i[o]=ut(s,t)):c<=t&&(e.expiredLanes|=s),a&=~s}if(t=Zu,n=Z,n=st(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,n===0||e===t&&(Qu===2||Qu===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&Ie(r),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||ct(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(r!==null&&Ie(r),vt(n)){case 2:case 8:n=He;break;case 32:n=Ue;break;case 268435456:n=Ge;break;default:n=Ue}return r=jf.bind(null,e),n=Fe(n,r),e.callbackPriority=t,e.callbackNode=n,t}return r!==null&&r!==null&&Ie(r),e.callbackPriority=2,e.callbackNode=null,2}function jf(e,t){if(vd!==0&&vd!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(uf()&&e.callbackNode!==n)return null;var r=Z;return r=st(e,e===Zu?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(Pd(e,r,t),Af(e,ze()),e.callbackNode!=null&&e.callbackNode===n?jf.bind(null,e):null)}function Mf(e,t){if(uf())return null;Pd(e,t,!0)}function Nf(){bp(function(){Y&6?Fe(Ve,Of):kf()})}function Pf(){if(Tf===0){var e=Ra;e===0&&(e=tt,tt<<=1,!(tt&261888)&&(tt=256)),Tf=e}return Tf}function Ff(e){return e==null||typeof e==`symbol`||typeof e==`boolean`?null:typeof e==`function`?e:_n(e)}function If(e,t,n,r,i){if(t===`submit`&&n&&n.stateNode===i){var a=Ff((i[Ct]||null).action),o=r.submitter;o&&(t=(t=o[Ct]||null)?Ff(t.formAction):o.getAttribute(`formAction`),t!==null&&(a=t,o=null));var s=new zn(`action`,`action`,null,r,i);e.push({event:s,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(Tf!==0){var e=new FormData(i,o);Qs(n,{pending:!0,data:e,method:i.method,action:a},null,e)}}else typeof a==`function`&&(s.preventDefault(),e=new FormData(i,o),Qs(n,{pending:!0,data:e,method:i.method,action:a},a,e))},currentTarget:i}]})}}for(var Lf=0;Lf<pi.length;Lf++){var Rf=pi[Lf];mi(Rf.toLowerCase(),`on`+(Rf[0].toUpperCase()+Rf.slice(1)))}mi(ai,`onAnimationEnd`),mi(oi,`onAnimationIteration`),mi(si,`onAnimationStart`),mi(`dblclick`,`onDoubleClick`),mi(`focusin`,`onFocus`),mi(`focusout`,`onBlur`),mi(ci,`onTransitionRun`),mi(li,`onTransitionStart`),mi(ui,`onTransitionCancel`),mi(di,`onTransitionEnd`),Vt(`onMouseEnter`,[`mouseout`,`mouseover`]),Vt(`onMouseLeave`,[`mouseout`,`mouseover`]),Vt(`onPointerEnter`,[`pointerout`,`pointerover`]),Vt(`onPointerLeave`,[`pointerout`,`pointerover`]),Bt(`onChange`,`change click focusin focusout input keydown keyup selectionchange`.split(` `)),Bt(`onSelect`,`focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange`.split(` `)),Bt(`onBeforeInput`,[`compositionend`,`keypress`,`textInput`,`paste`]),Bt(`onCompositionEnd`,`compositionend focusout keydown keypress keyup mousedown`.split(` `)),Bt(`onCompositionStart`,`compositionstart focusout keydown keypress keyup mousedown`.split(` `)),Bt(`onCompositionUpdate`,`compositionupdate focusout keydown keypress keyup mousedown`.split(` `));var zf=`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(` `),Bf=new Set(`beforetoggle cancel close invalid load scroll scrollend toggle`.split(` `).concat(zf));function Vf(e,t){t=!!(t&4);for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var a=void 0;if(t)for(var o=r.length-1;0<=o;o--){var s=r[o],c=s.instance,l=s.currentTarget;if(s=s.listener,c!==a&&i.isPropagationStopped())break e;a=s,i.currentTarget=l;try{a(i)}catch(e){yi(e)}i.currentTarget=null,a=c}else for(o=0;o<r.length;o++){if(s=r[o],c=s.instance,l=s.currentTarget,s=s.listener,c!==a&&i.isPropagationStopped())break e;a=s,i.currentTarget=l;try{a(i)}catch(e){yi(e)}i.currentTarget=null,a=c}}}}function Q(e,t){var n=t[Tt];n===void 0&&(n=t[Tt]=new Set);var r=e+`__bubble`;n.has(r)||(Gf(t,e,2,!1),n.add(r))}function Hf(e,t,n){var r=0;t&&(r|=4),Gf(n,e,r,t)}var Uf=`_reactListening`+Math.random().toString(36).slice(2);function Wf(e){if(!e[Uf]){e[Uf]=!0,Rt.forEach(function(t){t!==`selectionchange`&&(Bf.has(t)||Hf(t,!1,e),Hf(t,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Uf]||(t[Uf]=!0,Hf(`selectionchange`,!1,t))}}function Gf(e,t,n,r){switch(Ch(t)){case 2:var i=_h;break;case 8:i=vh;break;default:i=yh}n=i.bind(null,t,n,e),i=void 0,!On||t!==`touchstart`&&t!==`touchmove`&&t!==`wheel`||(i=!0),r?i===void 0?e.addEventListener(t,n,!0):e.addEventListener(t,n,{capture:!0,passive:i}):i===void 0?e.addEventListener(t,n,!1):e.addEventListener(t,n,{passive:i})}function Kf(e,t,n,r,i){var a=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var c=r.stateNode.containerInfo;if(c===i)break;if(s===4)for(s=r.return;s!==null;){var l=s.tag;if((l===3||l===4)&&s.stateNode.containerInfo===i)return;s=s.return}for(;c!==null;){if(s=Mt(c),s===null)return;if(l=s.tag,l===5||l===6||l===26||l===27){r=a=s;continue e}c=c.parentNode}}r=r.return}Tn(function(){var r=a,i=bn(n),s=[];e:{var c=fi.get(e);if(c!==void 0){var l=zn,u=e;switch(e){case`keypress`:if(Pn(n)===0)break e;case`keydown`:case`keyup`:l=nr;break;case`focusin`:u=`focus`,l=qn;break;case`focusout`:u=`blur`,l=qn;break;case`beforeblur`:case`afterblur`:l=qn;break;case`click`:if(n.button===2)break e;case`auxclick`:case`dblclick`:case`mousedown`:case`mousemove`:case`mouseup`:case`mouseout`:case`mouseover`:case`contextmenu`:l=Gn;break;case`drag`:case`dragend`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`dragstart`:case`drop`:l=Kn;break;case`touchcancel`:case`touchend`:case`touchmove`:case`touchstart`:l=ar;break;case ai:case oi:case si:l=Jn;break;case di:l=or;break;case`scroll`:case`scrollend`:l=B;break;case`wheel`:l=sr;break;case`copy`:case`cut`:case`paste`:l=Yn;break;case`gotpointercapture`:case`lostpointercapture`:case`pointercancel`:case`pointerdown`:case`pointermove`:case`pointerout`:case`pointerover`:case`pointerup`:l=rr;break;case`submit`:l=ir;break;case`toggle`:case`beforetoggle`:l=cr}var d=!!(t&4),f=!d&&(e===`scroll`||e===`scrollend`),p=d?c===null?null:c+`Capture`:c;d=[];for(var m=r,h;m!==null;){var g=m;if(h=g.stateNode,g=g.tag,g!==5&&g!==26&&g!==27||h===null||p===null||(g=En(m,p),g!=null&&d.push(qf(m,g,h))),f)break;m=m.return}0<d.length&&(c=new l(c,u,null,n,i),s.push({event:c,listeners:d}))}}if(!(t&7)){e:{if(l=e===`mouseover`||e===`pointerover`,c=e===`mouseout`||e===`pointerout`,l&&n!==yn&&(u=n.relatedTarget||n.fromElement)&&(Mt(u)||u[wt]))break e;(c||l)&&(u=i.window===i?i:(l=i.ownerDocument)?l.defaultView||l.parentWindow:window,c?(l=n.relatedTarget||n.toElement,c=r,l=l?Mt(l):null,l!==null&&(f=o(l),d=l.tag,l!==f||d!==5&&d!==27&&d!==6)&&(l=null)):(c=null,l=r),c!==l&&(d=Gn,g=`onMouseLeave`,p=`onMouseEnter`,m=`mouse`,(e===`pointerout`||e===`pointerover`)&&(d=rr,g=`onPointerLeave`,p=`onPointerEnter`,m=`pointer`),f=c==null?u:Pt(c),h=l==null?u:Pt(l),u=new d(g,m+`leave`,c,n,i),u.target=f,u.relatedTarget=h,g=null,Mt(i)===r&&(d=new d(p,m+`enter`,l,n,i),d.target=h,d.relatedTarget=f,g=d),f=g,d=c&&l?w(c,l,Yf):null,c!==null&&Xf(s,u,c,d,!1),l!==null&&f!==null&&Xf(s,f,l,d,!0)))}e:{if(c=r?Pt(r):window,l=c.nodeName&&c.nodeName.toLowerCase(),l===`select`||l===`input`&&c.type===`file`)var _=Or;else if(Sr(c)){if(kr)_=Rr;else{_=Ir;var v=Fr}}else l=c.nodeName,!l||l.toLowerCase()!==`input`||c.type!==`checkbox`&&c.type!==`radio`?r&&mn(r.elementType)&&(_=Or):_=Lr;if(_&&=_(e,r)){Cr(s,_,n,i);break e}v&&v(e,c,r)}switch(v=r?Pt(r):window,e){case`focusin`:(Sr(v)||v.contentEditable===`true`)&&(Yr=v,Xr=r,Zr=null);break;case`focusout`:Zr=Xr=Yr=null;break;case`mousedown`:Qr=!0;break;case`contextmenu`:case`mouseup`:case`dragend`:Qr=!1,$r(s,n,i);break;case`selectionchange`:if(Jr)break;case`keydown`:case`keyup`:$r(s,n,i)}var y;if(ur)e:{switch(e){case`compositionstart`:var b=`onCompositionStart`;break e;case`compositionend`:b=`onCompositionEnd`;break e;case`compositionupdate`:b=`onCompositionUpdate`;break e}b=void 0}else vr?gr(e,n)&&(b=`onCompositionEnd`):e===`keydown`&&n.keyCode===229&&(b=`onCompositionStart`);b&&(pr&&n.locale!==`ko`&&(vr||b!==`onCompositionStart`?b===`onCompositionEnd`&&vr&&(y=Nn()):(An=i,jn=`value`in An?An.value:An.textContent,vr=!0)),v=Jf(r,b),0<v.length&&(b=new Xn(b,e,null,n,i),s.push({event:b,listeners:v}),y?b.data=y:(y=_r(n),y!==null&&(b.data=y)))),(y=fr?yr(e,n):br(e,n))&&(b=Jf(r,`onBeforeInput`),0<b.length&&(v=new Xn(`onBeforeInput`,`beforeinput`,null,n,i),s.push({event:v,listeners:b}),v.data=y)),If(s,e,r,n,i)}Vf(s,t)})}function qf(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Jf(e,t){for(var n=t+`Capture`,r=[];e!==null;){var i=e,a=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||a===null||(i=En(e,n),i!=null&&r.unshift(qf(e,i,a)),i=En(e,t),i!=null&&r.push(qf(e,i,a))),e.tag===3)return r;e=e.return}return[]}function Yf(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Xf(e,t,n,r,i){for(var a=t._reactName,o=[];n!==null&&n!==r;){var s=n,c=s.alternate,l=s.stateNode;if(s=s.tag,c!==null&&c===r)break;s!==5&&s!==26&&s!==27||l===null||(c=l,i?(l=En(n,a),l!=null&&o.unshift(qf(n,l,c))):i||(l=En(n,a),l!=null&&o.push(qf(n,l,c)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var Zf=/\r\n?/g,Qf=/\u0000|\uFFFD/g;function $f(e){return(typeof e==`string`?e:``+e).replace(Zf,`
|
|
9
|
+
`).replace(Qf,``)}function ep(e,t){return t=$f(t),$f(e)===t}function $(e,t,n,r,a,o){switch(n){case`children`:if(typeof r==`string`)t===`body`||t===`textarea`&&r===``||un(e,r);else if(typeof r==`number`||typeof r==`bigint`)t!==`body`&&un(e,``+r);else return;break;case`className`:Jt(e,`class`,r);break;case`tabIndex`:Jt(e,`tabindex`,r);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:Jt(e,n,r);break;case`style`:pn(e,r,o);return;case`data`:if(t!==`object`){Jt(e,`data`,r);break}case`src`:case`href`:if(r===``&&(t!==`a`||n!==`href`)||r==null||typeof r==`function`||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=_n(r),e.setAttribute(n,r);break;case`action`:case`formAction`:if(typeof r==`function`){e.setAttribute(n,`javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')`);break}if(typeof o==`function`&&(n===`formAction`?(t!==`input`&&$(e,t,`name`,a.name,a,null),$(e,t,`formEncType`,a.formEncType,a,null),$(e,t,`formMethod`,a.formMethod,a,null),$(e,t,`formTarget`,a.formTarget,a,null)):($(e,t,`encType`,a.encType,a,null),$(e,t,`method`,a.method,a,null),$(e,t,`target`,a.target,a,null))),r==null||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=_n(r),e.setAttribute(n,r);break;case`onClick`:r!=null&&(e.onclick=vn);return;case`onScroll`:r!=null&&Q(`scroll`,e);return;case`onScrollEnd`:r!=null&&Q(`scrollend`,e);return;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));o?.__html!==n&&(e.innerHTML=n)}}break;case`multiple`:e.multiple=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`muted`:e.muted=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`ref`:case`autoFocus`:break;case`xlinkHref`:if(r==null||typeof r==`function`||typeof r==`boolean`||typeof r==`symbol`){e.removeAttribute(`xlink:href`);break}n=_n(r),e.setAttributeNS(`http://www.w3.org/1999/xlink`,`xlink:href`,n);break;case`contentEditable`:case`spellCheck`:case`draggable`:case`value`:case`autoReverse`:case`externalResourcesRequired`:case`focusable`:case`preserveAlpha`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,r):e.removeAttribute(n);break;case`inert`:case`allowFullScreen`:case`async`:case`autoPlay`:case`controls`:case`credentialless`: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`:r&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``):e.removeAttribute(n);break;case`capture`:case`download`:!0===r?e.setAttribute(n,``):!1!==r&&r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,r):e.removeAttribute(n);break;case`cols`:case`rows`:case`size`:case`span`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case`rowSpan`:case`start`:r==null||typeof r==`function`||typeof r==`symbol`||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case`popover`:Q(`beforetoggle`,e),Q(`toggle`,e),qt(e,`popover`,r);break;case`xlinkActuate`:Yt(e,`http://www.w3.org/1999/xlink`,`xlink:actuate`,r);break;case`xlinkArcrole`:Yt(e,`http://www.w3.org/1999/xlink`,`xlink:arcrole`,r);break;case`xlinkRole`:Yt(e,`http://www.w3.org/1999/xlink`,`xlink:role`,r);break;case`xlinkShow`:Yt(e,`http://www.w3.org/1999/xlink`,`xlink:show`,r);break;case`xlinkTitle`:Yt(e,`http://www.w3.org/1999/xlink`,`xlink:title`,r);break;case`xlinkType`:Yt(e,`http://www.w3.org/1999/xlink`,`xlink:type`,r);break;case`xmlBase`:Yt(e,`http://www.w3.org/XML/1998/namespace`,`xml:base`,r);break;case`xmlLang`:Yt(e,`http://www.w3.org/XML/1998/namespace`,`xml:lang`,r);break;case`xmlSpace`:Yt(e,`http://www.w3.org/XML/1998/namespace`,`xml:space`,r);break;case`is`:qt(e,`is`,r);break;case`innerText`:case`textContent`:return;default:if(!(2<n.length)||n[0]!==`o`&&n[0]!==`O`||n[1]!==`n`&&n[1]!==`N`)n=hn.get(n)||n,qt(e,n,r);else return}z=!0}function tp(e,t,n,r,a,o){switch(n){case`style`:pn(e,r,o);return;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));o?.__html!==n&&(e.innerHTML=n)}}break;case`children`:if(typeof r==`string`)un(e,r);else if(typeof r==`number`||typeof r==`bigint`)un(e,``+r);else return;break;case`onScroll`:r!=null&&Q(`scroll`,e);return;case`onScrollEnd`:r!=null&&Q(`scrollend`,e);return;case`onClick`:r!=null&&(e.onclick=vn);return;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`innerHTML`:case`ref`:case`innerText`:case`textContent`:return;default:if(!zt.hasOwnProperty(n))e:{if(n[0]===`o`&&n[1]===`n`&&(a=n.endsWith(`Capture`),o=n.slice(2,a?n.length-7:void 0),t=e[Ct]||null,t=t==null?null:t[n],typeof t==`function`&&e.removeEventListener(o,t,a),typeof r==`function`)){typeof t!=`function`&&t!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(o,r,a);break e}z=!0,n in e?e[n]=r:!0===r?e.setAttribute(n,``):qt(e,n,r)}return}z=!0}function np(e,t,n){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`img`:Q(`error`,e),Q(`load`,e);var r=!1,a=!1,o;for(o in n)if(n.hasOwnProperty(o)){var s=n[o];if(s!=null)switch(o){case`src`:r=!0;break;case`srcSet`:a=!0;break;case`children`:case`dangerouslySetInnerHTML`:throw Error(i(137,t));default:$(e,t,o,s,n,null)}}a&&$(e,t,`srcSet`,n.srcSet,n,null),r&&$(e,t,`src`,n.src,n,null);return;case`input`:Q(`invalid`,e);var c=o=s=a=null,l=null,u=null;for(r in n)if(n.hasOwnProperty(r)){var d=n[r];if(d!=null)switch(r){case`name`:a=d;break;case`type`:s=d;break;case`checked`:l=d;break;case`defaultChecked`:u=d;break;case`value`:o=d;break;case`defaultValue`:c=d;break;case`children`:case`dangerouslySetInnerHTML`:if(d!=null)throw Error(i(137,t));break;default:$(e,t,r,d,n,null)}}an(e,o,c,l,u,s,a,!1);return;case`select`:for(a in Q(`invalid`,e),r=s=o=null,n)if(n.hasOwnProperty(a)&&(c=n[a],c!=null))switch(a){case`value`:o=c;break;case`defaultValue`:s=c;break;case`multiple`:r=c;default:$(e,t,a,c,n,null)}t=o,n=s,e.multiple=!!r,t==null?n!=null&&sn(e,!!r,n,!0):sn(e,!!r,t,!1);return;case`textarea`:for(s in Q(`invalid`,e),o=a=r=null,n)if(n.hasOwnProperty(s)&&(c=n[s],c!=null))switch(s){case`value`:r=c;break;case`defaultValue`:a=c;break;case`children`:o=c;break;case`dangerouslySetInnerHTML`:if(c!=null)throw Error(i(91));break;default:$(e,t,s,c,n,null)}ln(e,r,a,o);return;case`option`:for(l in n)n.hasOwnProperty(l)&&(r=n[l],r!=null)&&(l===`selected`?e.selected=r&&typeof r!=`function`&&typeof r!=`symbol`:$(e,t,l,r,n,null));return;case`dialog`:Q(`beforetoggle`,e),Q(`toggle`,e),Q(`cancel`,e),Q(`close`,e);break;case`iframe`:case`object`:Q(`load`,e);break;case`video`:case`audio`:for(r=0;r<zf.length;r++)Q(zf[r],e);break;case`image`:Q(`error`,e),Q(`load`,e);break;case`details`:Q(`toggle`,e);break;case`embed`:case`source`:case`link`:Q(`error`,e),Q(`load`,e);case`area`:case`base`:case`br`:case`col`:case`hr`:case`keygen`:case`meta`:case`param`:case`track`:case`wbr`:case`menuitem`:for(u in n)if(n.hasOwnProperty(u)&&(r=n[u],r!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:throw Error(i(137,t));default:$(e,t,u,r,n,null)}return;default:if(mn(t)){for(d in n)n.hasOwnProperty(d)&&(r=n[d],r!==void 0&&tp(e,t,d,r,n,void 0));return}}for(c in n)n.hasOwnProperty(c)&&(r=n[c],r!=null&&$(e,t,c,r,n,null))}var rp={};function ip(e,t,n,r){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`input`:var a=null,o=null,s=null,c=null,l=null,u=null,d=null;for(m in n){var f=n[m];if(n.hasOwnProperty(m)&&f!=null)switch(m){case`checked`:case`value`:break;case`defaultValue`:l=f;default:r.hasOwnProperty(m)||$(e,t,m,null,r,f)}}for(var p in r){var m=r[p];if(f=n[p],r.hasOwnProperty(p)&&(m!=null||f!=null))switch(p){case`type`:m!==f&&(z=!0),o=m;break;case`name`:m!==f&&(z=!0),a=m;break;case`checked`:m!==f&&(z=!0),u=m;break;case`defaultChecked`:m!==f&&(z=!0),d=m;break;case`value`:m!==f&&(z=!0),s=m;break;case`defaultValue`:m!==f&&(z=!0),c=m;break;case`children`:case`dangerouslySetInnerHTML`:if(m!=null)throw Error(i(137,t));break;default:m!==f&&$(e,t,p,m,r,f)}}rn(e,s,c,l,u,d,o,a);return;case`select`:for(o in m=s=c=p=null,n)if(l=n[o],n.hasOwnProperty(o)&&l!=null)switch(o){case`value`:break;case`multiple`:m=l;default:r.hasOwnProperty(o)||$(e,t,o,null,r,l)}for(a in r)if(o=r[a],l=n[a],r.hasOwnProperty(a)&&(o!=null||l!=null))switch(a){case`value`:o!==l&&(z=!0),p=o;break;case`defaultValue`:o!==l&&(z=!0),c=o;break;case`multiple`:o!==l&&(z=!0),s=o;default:o!==l&&$(e,t,a,o,r,l)}t=c,n=s,r=m,p==null?!!r!=!!n&&(t==null?sn(e,!!n,n?[]:``,!1):sn(e,!!n,t,!0)):sn(e,!!n,p,!1);return;case`textarea`:for(c in m=p=null,n)if(a=n[c],n.hasOwnProperty(c)&&a!=null&&!r.hasOwnProperty(c))switch(c){case`value`:case`children`:break;default:$(e,t,c,null,r,a)}for(s in r)if(a=r[s],o=n[s],r.hasOwnProperty(s)&&(a!=null||o!=null))switch(s){case`value`:a!==o&&(z=!0),p=a;break;case`defaultValue`:a!==o&&(z=!0),m=a;break;case`children`:break;case`dangerouslySetInnerHTML`:if(a!=null)throw Error(i(91));break;default:a!==o&&$(e,t,s,a,r,o)}cn(e,p,m);return;case`option`:for(var h in n)p=n[h],n.hasOwnProperty(h)&&p!=null&&!r.hasOwnProperty(h)&&(h===`selected`?e.selected=!1:$(e,t,h,null,r,p));for(l in r)p=r[l],m=n[l],r.hasOwnProperty(l)&&p!==m&&(p!=null||m!=null)&&(l===`selected`?(p!==m&&(z=!0),e.selected=p&&typeof p!=`function`&&typeof p!=`symbol`):$(e,t,l,p,r,m));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 g in n)p=n[g],n.hasOwnProperty(g)&&p!=null&&!r.hasOwnProperty(g)&&$(e,t,g,null,r,p);for(u in r)if(p=r[u],m=n[u],r.hasOwnProperty(u)&&p!==m&&(p!=null||m!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:if(p!=null)throw Error(i(137,t));break;default:$(e,t,u,p,r,m)}return;default:if(mn(t)){for(var _ in n)p=n[_],n.hasOwnProperty(_)&&p!==void 0&&!r.hasOwnProperty(_)&&tp(e,t,_,void 0,r,p);for(d in r)p=r[d],m=n[d],!r.hasOwnProperty(d)||p===m||p===void 0&&m===void 0||tp(e,t,d,p,r,m);return}}for(var v in n)p=n[v],n.hasOwnProperty(v)&&p!=null&&!r.hasOwnProperty(v)&&$(e,t,v,null,r,p);for(f in r)p=r[f],m=n[f],!r.hasOwnProperty(f)||p===m||p==null&&m==null||$(e,t,f,p,r,m)}function ap(e){switch(e){case`css`:case`script`:case`font`:case`img`:case`image`:case`input`:case`link`:return!0;default:return!1}}function op(){if(typeof performance.getEntriesByType==`function`){for(var e=0,t=0,n=performance.getEntriesByType(`resource`),r=0;r<n.length;r++){var i=n[r],a=i.transferSize,o=i.initiatorType,s=i.duration;if(a&&s&&ap(o)){for(o=0,s=i.responseEnd,r+=1;r<n.length;r++){var c=n[r],l=c.startTime;if(l>s)break;var u=c.transferSize,d=c.initiatorType;u&&ap(d)&&(c=c.responseEnd,o+=u*(c<s?1:(s-l)/(c-l)))}if(--r,t+=8*(a+o)/(i.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e==`number`)?e:5}var sp=null,cp=null;function lp(e){return e.nodeType===9?e:e.ownerDocument}function up(e){switch(e){case`http://www.w3.org/2000/svg`:return 1;case`http://www.w3.org/1998/Math/MathML`:return 2;default:return 0}}function dp(e,t){if(e===0)switch(t){case`svg`:return 1;case`math`:return 2;default:return 0}return e===1&&t===`foreignObject`?0:e}function fp(e,t,n,r){return n=lp(n).createElement(e),n[St]=r,n[Ct]=t,np(n,e,t),It(n),n}function pp(e,t){return e===`textarea`||e===`noscript`||typeof t.children==`string`||typeof t.children==`number`||typeof t.children==`bigint`||typeof t.dangerouslySetInnerHTML==`object`&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var mp=null;function hp(){var e=window.event;return e&&e.type===`popstate`?e!==mp&&(mp=e,!0):(mp=null,!1)}var gp=typeof setTimeout==`function`?setTimeout:void 0,_p=typeof clearTimeout==`function`?clearTimeout:void 0,vp=typeof Promise==`function`?Promise:void 0,yp=typeof requestAnimationFrame==`function`?requestAnimationFrame:gp,bp=typeof queueMicrotask==`function`?queueMicrotask:vp===void 0?gp:function(e){return vp.resolve(null).then(e).catch(xp)};function xp(e){setTimeout(function(){throw e})}function Sp(e){return e===`head`}function Cp(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8){if(n=i.data,n===`/$`||n===`/&`){if(r===0){e.removeChild(i),Hh(t);return}r--}else if(n===`$`||n===`$?`||n===`$~`||n===`$!`||n===`&`)r++;else if(n===`html`)_m(e.ownerDocument.documentElement);else if(n===`head`){n=e.ownerDocument.head,_m(n);for(var a=n.firstChild;a;){var o=a.nextSibling,s=a.nodeName;a[kt]||s===`SCRIPT`||s===`STYLE`||s===`LINK`&&a.rel.toLowerCase()===`stylesheet`||n.removeChild(a),a=o}}else n===`body`&&_m(e.ownerDocument.body)}n=i}while(n);Hh(t)}function wp(e,t){var n=e;e=0;do{var r=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display=`none`):(n.style.display=n._stashedDisplay||``,n.getAttribute(`style`)===``&&n.removeAttribute(`style`)):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=``):n.nodeValue=n._stashedText||``),r&&r.nodeType===8){if(n=r.data,n===`/$`){if(e===0)break;e--}else n!==`$`&&n!==`$?`&&n!==`$~`&&n!==`$!`||e++}n=r}while(n)}function Tp(e,t,n){if(t=CSS.escape(t)===t?t:`r-`+btoa(t).replace(/=/g,``),e.style.viewTransitionName=t,n!=null&&(e.style.viewTransitionClass=n),n=getComputedStyle(e),n.display===`inline`){if(t=e.getClientRects(),t.length===1)var r=1;else for(var i=r=0;i<t.length;i++){var a=t[i];0<a.width&&0<a.height&&r++}r===1&&(e=e.style,e.display=t.length===1?`inline-block`:`block`,e.marginTop=`-`+n.paddingTop,e.marginBottom=`-`+n.paddingBottom)}}function Ep(e,t){e=e.style,t=t.style;var n=t==null?null:t.hasOwnProperty(`viewTransitionName`)?t.viewTransitionName:t.hasOwnProperty(`view-transition-name`)?t[`view-transition-name`]:null;e.viewTransitionName=n==null||typeof n==`boolean`?``:(``+n).trim(),n=t==null?null:t.hasOwnProperty(`viewTransitionClass`)?t.viewTransitionClass:t.hasOwnProperty(`view-transition-class`)?t[`view-transition-class`]:null,e.viewTransitionClass=n==null||typeof n==`boolean`?``:(``+n).trim(),e.display===`inline-block`&&(t==null?e.display=e.margin=``:(n=t.display,e.display=n==null||typeof n==`boolean`?``:n,n=t.margin,n==null?(n=t.hasOwnProperty(`marginTop`)?t.marginTop:t[`margin-top`],e.marginTop=n==null||typeof n==`boolean`?``:n,t=t.hasOwnProperty(`marginBottom`)?t.marginBottom:t[`margin-bottom`],e.marginBottom=t==null||typeof t==`boolean`?``:t):e.margin=n))}function Dp(e,t,n){return n=n.ownerDocument.defaultView,{rect:e,abs:t.position===`absolute`||t.position===`fixed`,clip:t.clipPath!==`none`||t.overflow!==`visible`||t.filter!==`none`||t.mask!==`none`||t.mask!==`none`||t.borderRadius!==`0px`,view:0<=e.bottom&&0<=e.right&&e.top<=n.innerHeight&&e.left<=n.innerWidth}}function Op(e){return Dp(e.getBoundingClientRect(),getComputedStyle(e),e)}function kp(e){var t=e.getBoundingClientRect();t=new DOMRect(t.x+2e4,t.y+2e4,t.width,t.height);var n=getComputedStyle(e);return Dp(t,n,e)}function Ap(e){return e.documentElement.clientHeight}function jp(e){this.addEventListener(`load`,e),this.addEventListener(`error`,e)}function Mp(e,t,n,r,i,a,o,s,c){var l=t.nodeType===9?t:t.ownerDocument;try{var u=l.startViewTransition({update:function(){var t=l.defaultView,n=t.navigation&&t.navigation.transition,o=l.fonts.status;r();var s=[];if(o===`loaded`&&(Ap(l),l.fonts.status===`loading`&&s.push(l.fonts.ready)),o=s.length,e!==null)for(var c=e.suspenseyImages,u=0,d=0;d<c.length;d++){var f=c[d];if(!f.complete){var p=f.getBoundingClientRect();if(0<p.bottom&&0<p.right&&p.top<t.innerHeight&&p.left<t.innerWidth){if(u+=Xm(f),u>$m){s.length=o;break}f=new Promise(jp.bind(f)),s.push(f)}}}if(0<s.length)return t=Promise.race([Promise.all(s),new Promise(function(e){return setTimeout(e,500)})]).then(i,i),(n?Promise.allSettled([n.finished,t]):t).then(a,a);if(i(),n)return n.finished.then(a,a);a()},types:n});l.__reactViewTransition=u;var d=[];return u.ready.then(function(){for(var e=l.documentElement.getAnimations({subtree:!0}),t=0;t<e.length;t++){var n=e[t],r=n.effect,i=r.pseudoElement;if(i!=null&&i.startsWith(`::view-transition`)){d.push(n),n=r.getKeyframes();for(var a=i=void 0,s=!0,c=0;c<n.length;c++){var u=n[c],f=u.width;if(i===void 0)i=f;else if(i!==f){s=!1;break}if(f=u.height,a===void 0)a=f;else if(a!==f){s=!1;break}delete u.width,delete u.height,u.transform===`none`&&delete u.transform}s&&i!==void 0&&a!==void 0&&(r.setKeyframes(n),s=getComputedStyle(r.target,r.pseudoElement),s.width!==i||s.height!==a)&&(s=n[0],s.width=i,s.height=a,s=n[n.length-1],s.width=i,s.height=a,r.setKeyframes(n))}}o()},function(e){l.__reactViewTransition===u&&(l.__reactViewTransition=null);try{if(typeof e==`object`&&e)switch(e.name){case`InvalidStateError`:(e.message===`View transition was skipped because document visibility state is hidden.`||e.message===`Skipping view transition because document visibility state has become hidden.`||e.message===`Skipping view transition because viewport size changed.`||e.message===`Transition was aborted because of invalid state`)&&(e=null)}e!==null&&c(e)}finally{r(),i(),o()}}),u.finished.finally(function(){for(var e=0;e<d.length;e++)d[e].cancel();l.__reactViewTransition===u&&(l.__reactViewTransition=null),s()}),u}catch{return r(),i(),o(),null}}function Np(e,t){this._scope=document.documentElement,this._selector=`::view-transition-`+e+`(`+t+`)`}Np.prototype.animate=function(e,t){return t=typeof t==`number`?{duration:t}:T({},t),t.pseudoElement=this._selector,this._scope.animate(e,t)},Np.prototype.getAnimations=function(){for(var e=this._scope,t=this._selector,n=e.getAnimations({subtree:!0}),r=[],i=0;i<n.length;i++){var a=n[i].effect;a!==null&&a.target===e&&a.pseudoElement===t&&r.push(n[i])}return r},Np.prototype.getComputedStyle=function(){return getComputedStyle(this._scope,this._selector)};function Pp(e){return{name:e,group:new Np(`group`,e),imagePair:new Np(`image-pair`,e),old:new Np(`old`,e),new:new Np(`new`,e)}}function Fp(e){this._fragmentFiber=e,this._observers=this._eventListeners=null}Fp.prototype.addEventListener=function(e,t,n){var r=null,i=null;if(!(n!=null&&typeof n!=`boolean`&&(r=n.signal||null,r!==null&&r.aborted))){this._eventListeners===null&&(this._eventListeners=[]);var a=this._eventListeners;if(Bp(a,e,t,n)===-1){var o=this,s=t;n!=null&&typeof n!=`boolean`&&!0===n.once&&(s=function(r){o.removeEventListener(e,t,n),typeof t==`function`?t.call(this,r):t.handleEvent(r)}),r!==null&&(i=o.removeEventListener.bind(o,e,t,n),r.addEventListener(`abort`,i,{once:!0}),i=r.removeEventListener.bind(r,`abort`,i)),r=Rp(n),a.push({type:e,listener:t,optionsOrUseCapture:n,attachedListener:s,cleanup:i}),p(this._fragmentFiber.child,!1,Ip,e,s,r)}this._eventListeners=a}};function Ip(e,t,n,r){return v(e).addEventListener(t,n,r),!1}Fp.prototype.removeEventListener=function(e,t,n){var r=this._eventListeners;if(r!==null&&(t=Bp(r,e,t,n),t!==-1)){var i=r[t];n=i.attachedListener;var a=i.cleanup;i=Rp(i.optionsOrUseCapture),p(this._fragmentFiber.child,!1,Lp,e,n,i),r.splice(t,1),a!==null&&a()}};function Lp(e,t,n,r){return v(e).removeEventListener(t,n,r),!1}function Rp(e){return e!=null&&typeof e!=`boolean`&&(!0===e.once||e.signal instanceof AbortSignal)?{capture:e.capture,passive:e.passive}:e}function zp(e){return e==null?`c=0`:typeof e==`boolean`?`c=`+(e?`1`:`0`):`c=`+(e.capture?`1`:`0`)}function Bp(e,t,n,r){if(e.length===0)return-1;r=zp(r);for(var i=0;i<e.length;i++){var a=e[i];if(a.type===t&&a.listener===n&&zp(a.optionsOrUseCapture)===r)return i}return-1}Fp.prototype.dispatchEvent=function(e){var t=m(this._fragmentFiber);if(t===null)return!0;t=v(t);var n=this._eventListeners;if(n!==null&&0<n.length||!e.bubbles){var r=t.nodeType===9?t.createComment(``):document.createTextNode(``);if(n)for(var i=0;i<n.length;i++){var a=n[i];r.addEventListener(a.type,a.attachedListener,Rp(a.optionsOrUseCapture))}if(t.appendChild(r),e=r.dispatchEvent(e),n)for(i=0;i<n.length;i++)a=n[i],r.removeEventListener(a.type,a.attachedListener,Rp(a.optionsOrUseCapture));return t.removeChild(r),e}return t.dispatchEvent(e)},Fp.prototype.focus=function(e){p(this._fragmentFiber.child,!0,Vp,e,void 0,void 0)};function Vp(e,t){return e.tag!==6&&(e=v(e),pm(e,t))}Fp.prototype.focusLast=function(e){var t=[];p(this._fragmentFiber.child,!0,Hp,t,void 0,void 0);for(var n=t.length-1;0<=n&&!Vp(t[n],e);n--);};function Hp(e,t){return t.push(e),!1}Fp.prototype.blur=function(){var e=m(this._fragmentFiber);e!==null&&(e=v(e),e=lp(e).activeElement,e!==null&&p(this._fragmentFiber.child,!1,Up,e,void 0,void 0))};function Up(e,t){return e.tag!==6&&(e=v(e),e===t||e.contains(t)?(t.blur(),!0):!1)}Fp.prototype.observeUsing=function(e){this._observers===null&&(this._observers=new Set),this._observers.add(e),p(this._fragmentFiber.child,!1,Wp,e,void 0,void 0)};function Wp(e,t){return e.tag===6||(e=v(e),t.observe(e)),!1}Fp.prototype.unobserveUsing=function(e){var t=this._observers;if(t!==null&&t.has(e)){t.delete(e),p(this._fragmentFiber.child,!1,Gp,e,void 0,void 0);for(var n=t=0;n<Kp.length;n++){var r=Kp[n];r.fragmentInstance===this&&r.observer===e?e.unobserve(r.instance):Kp[t++]=r}Kp.length=t}};function Gp(e,t){return e.tag===6||(e=v(e),t.unobserve(e)),!1}var Kp=[],qp=!1;function Jp(e,t,n){Kp.push({fragmentInstance:e,observer:t,instance:n}),qp||(qp=!0,mm(function(){qp=!1;var e=Kp;Kp=[];for(var t=0;t<e.length;t++){var n=e[t];n.observer.unobserve(n.instance)}}))}Fp.prototype.getClientRects=function(){var e=[];return p(this._fragmentFiber.child,!1,Yp,e,void 0,void 0),e};function Yp(e,t){if(e.tag===6){e=e.stateNode;var n=e.ownerDocument.createRange();n.selectNodeContents(e),t.push.apply(t,n.getClientRects())}else e=v(e),t.push.apply(t,e.getClientRects());return!1}Fp.prototype.getRootNode=function(e){var t=m(this._fragmentFiber);return t===null?this:v(t).getRootNode(e)},Fp.prototype.compareDocumentPosition=function(e){var t=m(this._fragmentFiber);if(t===null)return Node.DOCUMENT_POSITION_DISCONNECTED;var n=[];p(this._fragmentFiber.child,!1,Hp,n,void 0,void 0);var r=v(t);if(n.length===0){if(n=r,h(this._fragmentFiber)){e:{for(t=this._fragmentFiber.return;t!==null;){if(t.tag===4){t=t.stateNode.containerInfo;break e}if(t.tag===3||t.tag===5||t.tag===27)break;t=t.return}t=null}t!=null&&(n=t)}t=this._fragmentFiber;var i=r=n.compareDocumentPosition(e);return n===e?i=Node.DOCUMENT_POSITION_CONTAINS:r&Node.DOCUMENT_POSITION_CONTAINED_BY&&(n=g(t)[1],n===null?i=Node.DOCUMENT_POSITION_PRECEDING:(e=v(n).compareDocumentPosition(e),i=e===0||e&Node.DOCUMENT_POSITION_FOLLOWING?Node.DOCUMENT_POSITION_FOLLOWING:Node.DOCUMENT_POSITION_PRECEDING)),i|=Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC}t=v(n[0]),i=v(n[n.length-1]);var a=h(this._fragmentFiber)?t.parentElement:r;if(a==null)return Node.DOCUMENT_POSITION_DISCONNECTED;r=a.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY,a=a.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_CONTAINED_BY;var o=t.compareDocumentPosition(e),s=i.compareDocumentPosition(e),c=o&Node.DOCUMENT_POSITION_CONTAINED_BY||s&Node.DOCUMENT_POSITION_CONTAINED_BY;return s=r&&a&&o&Node.DOCUMENT_POSITION_FOLLOWING&&s&Node.DOCUMENT_POSITION_PRECEDING,t=r&&t===e||a&&i===e||c||s?Node.DOCUMENT_POSITION_CONTAINED_BY:!r&&t===e||!a&&i===e?Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC:o,t&Node.DOCUMENT_POSITION_DISCONNECTED||t&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC||Xp(t,this._fragmentFiber,n[0],n[n.length-1],e)?t:Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC};function Xp(e,t,n,r,i){var a=Mt(i);if(e&Node.DOCUMENT_POSITION_CONTAINED_BY){if(n=!!a)e:{for(;a!==null;){if(a.tag===7&&(a===t||a.alternate===t)){n=!0;break e}a=a.return}n=!1}return n}if(e&Node.DOCUMENT_POSITION_CONTAINS){if(a===null)return a=i.ownerDocument,i===a||i===a.documentElement||i===a.body;e:{for(a=t,t=m(t);a!==null;){if(!(a.tag!==5&&a.tag!==3&&a.tag!==27||a!==t&&a.alternate!==t)){a=!0;break e}a=a.return}a=!1}return a}return e&Node.DOCUMENT_POSITION_PRECEDING?((t=!!a)&&!(t=a===n)&&(t=w(n,a,C),t===null?t=!1:(p(t,!0,x,a,n),a=y,y=null,t=a!==null)),t):e&Node.DOCUMENT_POSITION_FOLLOWING?((t=!!a)&&!(t=a===r)&&(t=w(r,a,C),t===null?t=!1:(p(t,!0,S,a,r),a=y,b=y=null,t=a!==null)),t):!1}function Zp(e,t){var n=e.ownerDocument.createRange();n.selectNodeContents(e),e=n.getBoundingClientRect(),window.scrollTo(window.scrollX+e.left,t?window.scrollY+e.top:window.scrollY+e.bottom-window.innerHeight)}Fp.prototype.scrollIntoView=function(e){if(typeof e==`object`)throw Error(i(566));var t=[];p(this._fragmentFiber.child,!1,Hp,t,void 0,void 0);var n=!1!==e;if(t.length===0){var r=g(this._fragmentFiber);if(r=n?r[1]||r[0]||m(this._fragmentFiber):r[0]||r[1],r===null)return;if(r.tag===6){e=v(r),Zp(e,n);return}if(r=v(r),r.nodeType!==9){if(r.nodeType===11){n=`host`in r?r.host:null,n!==null&&n.scrollIntoView(e);return}r.scrollIntoView(e)}}for(r=n?t.length-1:0;r!==(n?-1:t.length);){var a=t[r];a.tag===6?(a=v(a),Zp(a,n)):v(a).scrollIntoView(e),r+=n?-1:1}};function Qp(e,t){return e=v(e),$p(e,t),!1}function $p(e,t){e.reactFragments??=new Set,e.reactFragments.add(t)}function em(e,t){var n=t._eventListeners;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];e.addEventListener(i.type,i.attachedListener,Rp(i.optionsOrUseCapture))}e.nodeType!==3&&(n=t._observers,n!==null&&n.forEach(function(n){for(var r=0,i=0;i<Kp.length;i++){var a=Kp[i];(a.fragmentInstance!==t||a.observer!==n||a.instance!==e)&&(Kp[r++]=a)}Kp.length=r,n.observe(e)}),$p(e,t))}function tm(e,t){var n=t._eventListeners;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];e.removeEventListener(i.type,i.attachedListener,Rp(i.optionsOrUseCapture))}e.nodeType!==3&&(n=t._observers,n!==null&&n.forEach(function(n){typeof n.rootMargin==`string`?Jp(t,n,e):n.unobserve(e)}),e.reactFragments!=null&&e.reactFragments.delete(t))}function nm(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case`HTML`:case`HEAD`:case`BODY`:nm(n),jt(n);continue;case`SCRIPT`:case`STYLE`:continue;case`LINK`:if(n.rel.toLowerCase()===`stylesheet`)continue}e.removeChild(n)}}function rm(e,t,n,r){for(;e.nodeType===1;){var i=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&(e.nodeName!==`INPUT`||e.type!==`hidden`))break}else if(!r){if(t===`input`&&e.type===`hidden`){var a=i.name==null?null:``+i.name;if(i.type===`hidden`&&e.getAttribute(`name`)===a)return e}else return e}else if(!e[kt])switch(t){case`meta`:if(!e.hasAttribute(`itemprop`))break;return e;case`link`:if(a=e.getAttribute(`rel`),a===`stylesheet`&&e.hasAttribute(`data-precedence`)||a!==i.rel||e.getAttribute(`href`)!==(i.href==null||i.href===``?null:i.href)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute(`title`)!==(i.title==null?null:i.title))break;return e;case`style`:if(e.hasAttribute(`data-precedence`))break;return e;case`script`:if(a=e.getAttribute(`src`),(a!==(i.src==null?null:i.src)||e.getAttribute(`type`)!==(i.type==null?null:i.type)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin))&&a&&e.hasAttribute(`async`)&&!e.hasAttribute(`itemprop`))break;return e;default:return e}if(e=lm(e.nextSibling),e===null)break}return null}function im(e,t,n){if(t===``)return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!n||(e=lm(e.nextSibling),e===null))return null;return e}function am(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!t||(e=lm(e.nextSibling),e===null))return null;return e}function om(e){return e.data===`$?`||e.data===`$~`}function sm(e){return e.data===`$!`||e.data===`$?`&&e.ownerDocument.readyState!==`loading`}function cm(e,t){var n=e.ownerDocument;if(e.data===`$~`)e._reactRetry=t;else if(e.data!==`$?`||n.readyState!==`loading`)t();else{var r=function(){t(),n.removeEventListener(`DOMContentLoaded`,r)};n.addEventListener(`DOMContentLoaded`,r),e._reactRetry=r}}function lm(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t===`$`||t===`$!`||t===`$?`||t===`$~`||t===`&`||t===`F!`||t===`F`)break;if(t===`/$`||t===`/&`)return null}}return e}var um=null;function dm(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`/$`||n===`/&`){if(t===0)return lm(e.nextSibling);t--}else n!==`$`&&n!==`$!`&&n!==`$?`&&n!==`$~`&&n!==`&`||t++}e=e.nextSibling}return null}function fm(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`$`||n===`$!`||n===`$?`||n===`$~`||n===`&`){if(t===0)return e;t--}else n!==`/$`&&n!==`/&`||t++}e=e.previousSibling}return null}function pm(e,t){function n(){r=!0}if(e.ownerDocument.activeElement===e)return!0;var r=!1;try{e.ownerDocument.addEventListener(`focus`,n,!0),(e.focus||HTMLElement.prototype.focus).call(e,t)}finally{e.ownerDocument.removeEventListener(`focus`,n,!0)}return r}function mm(e){yp(function(){yp(function(t){return e(t)})})}function hm(e,t,n){switch(t=lp(n),e){case`html`:if(e=t.documentElement,!e)throw Error(i(452));return e;case`head`:if(e=t.head,!e)throw Error(i(453));return e;case`body`:if(e=t.body,!e)throw Error(i(454));return e;default:throw Error(i(451))}}function gm(e,t,n){for(var r in n){var i=n[r];n.hasOwnProperty(r)&&i!=null&&$(e,t,r,null,rp,i)}n.dangerouslySetInnerHTML!=null&&(e.textContent=``),e.onclick===vn&&(e.onclick=null),jt(e)}function _m(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);jt(e)}var vm=new Map,ym=new Set;function bm(e){if(typeof e.getRootNode==`function`){var t=e.getRootNode();if(t.nodeType===9||t.nodeType===11)return t}return e.nodeType===9?e:e.ownerDocument}var xm=F.d;F.d={f:Sm,r:Cm,D:Em,C:Dm,L:Om,m:km,X:jm,S:Am,M:Mm};function Sm(){var e=xm.f(),t=Rd();return e||t}function Cm(e){var t=Nt(e);t!==null&&t.tag===5&&t.type===`form`?ec(t):xm.r(e)}var wm=typeof document>`u`?null:document;function Tm(e,t,n){var r=wm;if(r&&typeof t==`string`&&t){var i=nn(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),ym.has(i)||(ym.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),np(t,`link`,e),It(t),r.head.appendChild(t)))}}function Em(e){xm.D(e),Tm(`dns-prefetch`,e,null)}function Dm(e,t){xm.C(e,t),Tm(`preconnect`,e,t)}function Om(e,t,n){xm.L(e,t,n);var r=wm;if(r&&e&&t){var i=`link[rel="preload"][as="`+nn(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+nn(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+nn(n.imageSizes)+`"]`)):i+=`[href="`+nn(e)+`"]`;var a=i;switch(t){case`style`:a=Pm(e);break;case`script`:a=Rm(e)}if(!(vm.has(a)||(e=T({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),vm.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(Fm(a))||t===`script`&&r.querySelector(zm(a))))){var o=r.createElement(`link`);np(o,`link`,e),t===`style`&&(o[At]=!0,o.onload=o.onerror=function(){Lt(o)}),It(o),r.head.appendChild(o)}}}function km(e,t){xm.m(e,t);var n=wm;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+nn(r)+`"][href="`+nn(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=Rm(e)}if(!vm.has(a)&&(e=T({rel:`modulepreload`,href:e},t),vm.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(zm(a)))return}r=n.createElement(`link`),np(r,`link`,e),It(r),n.head.appendChild(r)}}}function Am(e,t,n){xm.S(e,t,n);var r=wm;if(r&&e){var i=Ft(r).hoistableStyles,a=Pm(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(Fm(a)))s.loading=5;else{e=T({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=vm.get(a))&&Hm(e,n);var c=o=r.createElement(`link`);It(c),np(c,`link`,e),c._p=new Promise(function(e,t){c.onload=e,c.onerror=t}),c.addEventListener(`load`,function(){s.loading|=1}),c.addEventListener(`error`,function(){s.loading|=2}),s.loading|=4,Vm(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function jm(e,t){xm.X(e,t);var n=wm;if(n&&e){var r=Ft(n).hoistableScripts,i=Rm(e),a=r.get(i);a||(a=n.querySelector(zm(i)),a||(e=T({src:e,async:!0},t),(t=vm.get(i))&&Um(e,t),a=n.createElement(`script`),It(a),np(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Mm(e,t){xm.M(e,t);var n=wm;if(n&&e){var r=Ft(n).hoistableScripts,i=Rm(e),a=r.get(i);a||(a=n.querySelector(zm(i)),a||(e=T({src:e,async:!0,type:`module`},t),(t=vm.get(i))&&Um(e,t),a=n.createElement(`script`),It(a),np(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Nm(e,t,n,r){var a=(a=Se.current)?bm(a):null;if(!a)throw Error(i(446));switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(n=Pm(n.href),t=Ft(a).hoistableStyles,r=t.get(n),r||(r={type:`style`,instance:null,count:0,state:null},t.set(n,r)),r):{type:`void`,instance:null,count:0,state:null};case`link`:if(n.rel===`stylesheet`&&typeof n.href==`string`&&typeof n.precedence==`string`){e=Pm(n.href);var o=Ft(a).hoistableStyles,s=o.get(e);if(s||(a=a.ownerDocument||a,s={type:`stylesheet`,instance:null,count:0,state:{loading:0,preload:null}},o.set(e,s),(o=a.querySelector(Fm(e)))?o._p||(s.instance=o,s.state.loading=5):(o=vm.get(e),o||(o={rel:`preload`,as:`style`,href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},vm.set(e,o)),Lm(a,e,o,s.state))),t&&r===null)throw Error(i(528,``));return s}if(t&&r!==null)throw Error(i(529,``));return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(n=Rm(n),t=Ft(a).hoistableScripts,r=t.get(n),r||(r={type:`script`,instance:null,count:0,state:null},t.set(n,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(i(444,e))}}function Pm(e){return`href="`+nn(e)+`"`}function Fm(e){return`link[rel="stylesheet"][`+e+`]`}function Im(e){return T({},e,{"data-precedence":e.precedence,precedence:null})}function Lm(e,t,n,r){if(t=e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)){if(!0!==t[At]){r.loading=1;return}}else t=e.createElement(`link`),t[At]=!0,t.onload=t.onerror=Lt.bind(null,t),np(t,`link`,n),It(t),e.head.appendChild(t);r.preload=t,t.addEventListener(`load`,function(){return r.loading|=1}),t.addEventListener(`error`,function(){return r.loading|=2})}function Rm(e){return`[src="`+nn(e)+`"]`}function zm(e){return`script[async]`+e}function Bm(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+nn(n.href)+`"]`);if(r)return t.instance=r,It(r),r;var a=T({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),It(r),np(r,`style`,a),Vm(r,n.precedence,e),t.instance=r;case`stylesheet`:a=Pm(n.href);var o=e.querySelector(Fm(a));if(o)return t.state.loading|=4,t.instance=o,It(o),o;r=Im(n),(a=vm.get(a))&&Hm(r,a),o=(e.ownerDocument||e).createElement(`link`),It(o);var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),np(o,`link`,r),t.state.loading|=4,Vm(o,n.precedence,e),t.instance=o;case`script`:return o=Rm(n.src),(a=e.querySelector(zm(o)))?(t.instance=a,It(a),a):(r=n,(a=vm.get(o))&&(r=T({},n),Um(r,a)),e=e.ownerDocument||e,a=e.createElement(`script`),It(a),np(a,`link`,r),e.head.appendChild(a),t.instance=a);case`void`:return null;default:throw Error(i(443,t.type))}else t.type===`stylesheet`&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,Vm(r,n.precedence,e));return t.instance}function Vm(e,t,n){for(var r=n.querySelectorAll(`link[rel="stylesheet"][data-precedence],style[data-precedence]`),i=r.length?r[r.length-1]:null,a=i,o=0;o<r.length;o++){var s=r[o];if(s.dataset.precedence===t)a=s;else if(a!==i)break}a?a.parentNode.insertBefore(e,a.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function Hm(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.title??=t.title}function Um(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.integrity??=t.integrity}var Wm=null;function Gm(e,t,n){if(Wm===null){var r=new Map,i=Wm=new Map;i.set(n,r)}else i=Wm,r=i.get(n),r||(r=new Map,i.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),i=0;i<n.length;i++){var a=n[i];if(!(a[kt]||a[St]||e===`link`&&a.getAttribute(`rel`)===`stylesheet`)&&a.namespaceURI!==`http://www.w3.org/2000/svg`){var o=a.getAttribute(t)||``;o=e+o;var s=r.get(o);s?s.push(a):r.set(o,[a])}}return r}function Km(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t===`title`?e.querySelector(`head > title`):null)}function qm(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case`meta`:case`title`:return!0;case`style`:if(typeof t.precedence!=`string`||typeof t.href!=`string`||t.href===``)break;return!0;case`link`:if(typeof t.rel!=`string`||typeof t.href!=`string`||t.href===``||t.onLoad||t.onError)break;return t.rel!==`stylesheet`||(e=t.disabled,typeof t.precedence==`string`&&e==null);case`script`:if(t.async&&typeof t.async!=`function`&&typeof t.async!=`symbol`&&!t.onLoad&&!t.onError&&t.src&&typeof t.src==`string`)return!0}return!1}function Jm(e,t){return e===`img`&&t.src!=null&&t.src!==``&&t.onLoad==null&&t.loading!==`lazy`}function Ym(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function Xm(e){return(e.width||100)*(e.height||100)*(typeof devicePixelRatio==`number`?devicePixelRatio:1)*.25}function Zm(e,t){typeof t.decode==`function`&&(e.imgCount++,t.complete||(e.imgBytes+=Xm(t),e.suspenseyImages.push(t)),e=rh.bind(e),t.decode().then(e,e))}function Qm(e,t,n,r){if(n.type===`stylesheet`&&(typeof r.media!=`string`||!1!==matchMedia(r.media).matches)&&!(n.state.loading&4)){if(n.instance===null){var i=Pm(r.href),a=t.querySelector(Fm(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=nh.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,It(a);return}a=t.ownerDocument||t,r=Im(r),(i=vm.get(i))&&Hm(r,i),a=a.createElement(`link`),It(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),np(a,`link`,r),n.instance=a}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(n.state.loading&3)&&(e.count++,n=nh.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var $m=0;function eh(e,t){return e.stylesheets&&e.count===0&&ah(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&ah(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4+t);0<e.imgBytes&&$m===0&&($m=62500*op());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&ah(e,e.stylesheets),e.unsuspend)){var t=e.unsuspend;e.unsuspend=null,t()}},(e.imgBytes>$m?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function th(e){if(e.count===0&&(e.imgCount===0||!e.waitingForImages)){if(e.stylesheets)ah(e,e.stylesheets);else if(e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}}}function nh(){this.count--,th(this)}function rh(){this.imgCount--,th(this)}var ih=null;function ah(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,ih=new Map,t.forEach(oh,e),ih=null,nh.call(e))}function oh(e,t){if(!(t.state.loading&4)){var n=ih.get(e);if(n)var r=n.get(null);else{n=new Map,ih.set(e,n);for(var i=e.querySelectorAll(`link[data-precedence],style[data-precedence]`),a=0;a<i.length;a++){var o=i[a];(o.nodeName===`LINK`||o.getAttribute(`media`)!==`not all`)&&(n.set(o.dataset.precedence,o),r=o)}r&&n.set(null,r)}i=t.instance,o=i.getAttribute(`data-precedence`),a=n.get(o)||r,a===r&&n.set(null,i),n.set(o,i),this.count++,r=nh.bind(this),i.addEventListener(`load`,r),i.addEventListener(`error`,r),a?a.parentNode.insertBefore(i,a.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var sh={$$typeof:A,Provider:null,Consumer:null,_currentValue:he,_currentValue2:he,_threadCount:0};function ch(e,t,n,r,i,a,o,s,c){this.tag=1,this.containerInfo=e,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=ft(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ft(0),this.hiddenUpdates=ft(null),this.identifierPrefix=r,this.onUncaughtError=i,this.onCaughtError=a,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=c,this.transitionTypes=null,this.incompleteTransitions=new Map}function lh(e,t,n,r,i,a,o,s,c,l,u,d){return e=new ch(e,t,n,o,c,l,u,d,s),t=1,!0===a&&(t|=24),a=ji(3,null,null,t),e.current=a,a.stateNode=e,t=ja(),t.refCount++,e.pooledCache=t,t.refCount++,a.memoizedState={element:r,isDehydrated:n,cache:t},mo(a),e}function uh(e){return e?(e=ki,e):ki}function dh(e,t,n,r,i,a){i=uh(i),r.context===null?r.context=i:r.pendingContext=i,r=go(t),r.payload={element:n},a=a===void 0?null:a,a!==null&&(r.callback=a),n=_o(e,r,t),n!==null&&(Nd(n,e,t),vo(n,e,t))}function fh(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function ph(e,t){fh(e,t),(e=e.alternate)&&fh(e,t)}function mh(e){if(e.tag===13||e.tag===31){var t=Ei(e,67108864);t!==null&&Nd(t,e,67108864),ph(e,67108864)}}function hh(e){if(e.tag===13||e.tag===31){var t=Ad();t=_t(t);var n=Ei(e,t);n!==null&&Nd(n,e,t),ph(e,t)}}var gh=!0;function _h(e,t,n,r){var i=P.T;P.T=null;var a=F.p;try{F.p=2,yh(e,t,n,r)}finally{F.p=a,P.T=i}}function vh(e,t,n,r){var i=P.T;P.T=null;var a=F.p;try{F.p=8,yh(e,t,n,r)}finally{F.p=a,P.T=i}}function yh(e,t,n,r){if(gh){var i=bh(r);if(i===null)Kf(e,t,r,xh,n),Mh(e,r);else if(Ph(i,e,t,n,r))r.stopPropagation();else if(Mh(e,r),t&4&&-1<jh.indexOf(e)){for(;i!==null;){var a=Nt(i);if(a!==null)switch(a.tag){case 3:if(a=a.stateNode,a.current.memoizedState.isDehydrated){var o=at(a.pendingLanes);if(o!==0){var s=a;for(s.pendingLanes|=2,s.entangledLanes|=2;o;){var c=1<<31-Ze(o);s.entanglements[1]|=c,o&=~c}Ef(a),!(Y&6)&&(hd=ze()+500,Df(0,!1))}}break;case 31:case 13:s=Ei(a,2),s!==null&&Nd(s,a,2),Rd(),ph(a,2)}if(a=bh(r),a===null&&Kf(e,t,r,xh,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else Kf(e,t,r,null,n)}}function bh(e){return e=bn(e),Sh(e)}var xh=null;function Sh(e){if(xh=null,e=Mt(e),e!==null){var t=o(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=s(t),e!==null)return e;e=null}else if(n===31){if(e=c(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return xh=e,null}function Ch(e){switch(e){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`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`fullscreenerror`: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`resize`:case`scroll`:case`touchmove`:case`wheel`:case`mouseenter`:case`mouseleave`:case`pointerenter`:case`pointerleave`:return 8;case`message`:switch(Be()){case Ve:return 2;case He:return 8;case Ue:case We:return 32;case Ge:return 268435456;default:return 32}default:return 32}}var wh=!1,Th=null,Eh=null,Dh=null,Oh=new Map,kh=new Map,Ah=[],jh=`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 Mh(e,t){switch(e){case`focusin`:case`focusout`:Th=null;break;case`dragenter`:case`dragleave`:Eh=null;break;case`mouseover`:case`mouseout`:Dh=null;break;case`pointerover`:case`pointerout`:Oh.delete(t.pointerId);break;case`gotpointercapture`:case`lostpointercapture`:kh.delete(t.pointerId)}}function Nh(e,t,n,r,i,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[i]},t!==null&&(t=Nt(t),t!==null&&mh(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Ph(e,t,n,r,i){switch(t){case`focusin`:return Th=Nh(Th,e,t,n,r,i),!0;case`dragenter`:return Eh=Nh(Eh,e,t,n,r,i),!0;case`mouseover`:return Dh=Nh(Dh,e,t,n,r,i),!0;case`pointerover`:var a=i.pointerId;return Oh.set(a,Nh(Oh.get(a)||null,e,t,n,r,i)),!0;case`gotpointercapture`:return a=i.pointerId,kh.set(a,Nh(kh.get(a)||null,e,t,n,r,i)),!0}return!1}function Fh(e){var t=Mt(e.target);if(t!==null){var n=o(t);if(n!==null){if(t=n.tag,t===13){if(t=s(n),t!==null){e.blockedOn=t,bt(e.priority,function(){hh(n)});return}}else if(t===31){if(t=c(n),t!==null){e.blockedOn=t,bt(e.priority,function(){hh(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Ih(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=bh(e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);yn=r,n.target.dispatchEvent(r),yn=null}else return t=Nt(n),t!==null&&mh(t),e.blockedOn=n,!1;t.shift()}return!0}function Lh(e,t,n){Ih(e)&&n.delete(t)}function Rh(){wh=!1,Th!==null&&Ih(Th)&&(Th=null),Eh!==null&&Ih(Eh)&&(Eh=null),Dh!==null&&Ih(Dh)&&(Dh=null),Oh.forEach(Lh),kh.forEach(Lh)}function zh(e,n){e.blockedOn===n&&(e.blockedOn=null,wh||(wh=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,Rh)))}var Bh=null;function Vh(e){Bh!==e&&(Bh=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){Bh===e&&(Bh=null);for(var t=0;t<e.length;t+=3){var n=e[t],r=e[t+1],i=e[t+2];if(typeof r!=`function`){if(Sh(r||n)===null)continue;break}var a=Nt(n);a!==null&&(e.splice(t,3),t-=3,Qs(a,{pending:!0,data:i,method:n.method,action:r},r,i))}}))}function Hh(e){function t(t){return zh(t,e)}Th!==null&&zh(Th,e),Eh!==null&&zh(Eh,e),Dh!==null&&zh(Dh,e),Oh.forEach(t),kh.forEach(t);for(var n=0;n<Ah.length;n++){var r=Ah[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<Ah.length&&(n=Ah[0],n.blockedOn===null);)Fh(n),n.blockedOn===null&&Ah.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(r=0;r<n.length;r+=3){var i=n[r],a=n[r+1],o=i[Ct]||null;if(typeof a==`function`)o||Vh(n);else if(o){var s=null;if(a&&a.hasAttribute(`formAction`)){if(i=a,o=a[Ct]||null)s=o.formAction;else if(Sh(i)!==null)continue}else s=o.action;typeof s==`function`?n[r+1]=s:(n.splice(r,3),r-=3),Vh(n)}}}function Uh(){function e(e){e.canIntercept&&e.info===`react-transition`&&e.intercept({handler:function(){return new Promise(function(e){return i=e})},focusReset:`manual`,scroll:`manual`})}function t(){i!==null&&(i(),i=null),r||setTimeout(n,20)}function n(){if(!r&&!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 r=!1,i=null;return navigation.addEventListener(`navigate`,e),navigation.addEventListener(`navigatesuccess`,t),navigation.addEventListener(`navigateerror`,t),setTimeout(n,100),function(){r=!0,navigation.removeEventListener(`navigate`,e),navigation.removeEventListener(`navigatesuccess`,t),navigation.removeEventListener(`navigateerror`,t),i!==null&&(i(),i=null)}}}function Wh(e){this._internalRoot=e}Gh.prototype.render=Wh.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(i(409));dh(t.current,Ad(),e,t,null,null)},Gh.prototype.unmount=Wh.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;dh(e.current,2,null,e,null,null),Rd(),t[wt]=null}};function Gh(e){this._internalRoot=e}Gh.prototype.unstable_scheduleHydration=function(e){if(e){var t=yt();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Ah.length&&t!==0&&t<Ah[n].priority;n++);Ah.splice(n,0,e),n===0&&Fh(e)}};var Kh=n.version;if(Kh!==`19.3.1`)throw Error(i(527,Kh,`19.3.1`));F.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render==`function`?Error(i(188)):(e=Object.keys(e).join(`,`),Error(i(268,e)));return e=u(t),e=e===null?null:f(e),e=e===null?null:e.stateNode,e};var qh={bundleType:0,version:`19.3.1`,rendererPackageName:`react-dom`,currentDispatcherRef:P,reconcilerVersion:`19.3.1`};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`){var Jh=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Jh.isDisabled&&Jh.supportsFiber)try{Je=Jh.inject(qh),Ye=Jh}catch{}}e.createRoot=function(e,t){if(!a(e))throw Error(i(299));var n=!1,r=``,o=xc,s=K,c=Sc;return t!=null&&(!0===t.unstable_strictMode&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(s=t.onCaughtError),t.onRecoverableError!==void 0&&(c=t.onRecoverableError)),t=lh(e,1,!1,null,null,n,r,null,o,s,c,Uh),e[wt]=t.current,Wf(e),new Wh(t)}})),ct=o(((e,t)=>{function n(){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE==`function`)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=st()}))(),lt=class extends Error{code;status;data;constructor(e,t,n,r={}){super(t),this.name=`ApiError`,this.code=e,this.status=n,this.data=r}};async function ut(e,t){let n=await fetch(e,{credentials:`same-origin`,...t}),r=await n.json().catch(()=>void 0);if(!n.ok||r===void 0)throw new lt(r?.error?.code??`http_error`,r?.error?.message??`Request failed with status ${n.status}`,n.status,r?.error?.data);return r}var dt=e=>new URLSearchParams(e).toString(),ft=(e,t,n)=>ut(t,{method:e,headers:{"Content-Type":`application/json`},body:n===void 0?void 0:JSON.stringify(n)}),pt=(e,t)=>ft(`POST`,e,t),mt=(e,t)=>`/api/repos/${e}${t}`,ht=(e,t,n)=>mt(e,`/raw/${t}?${dt({path:n})}`),gt=(e,t,n)=>mt(e,`/worktree-raw?${dt({path:t,t:String(n)})}`),R={session:()=>ut(`/api/session`),signIn:e=>pt(`/api/session`,{token:e}),repo:e=>ut(`/api/repos/${e}`),resolve:(e,t,n,r)=>ut(`/api/repos/${e}/compare/resolve?${dt({spec:t,w:n?`1`:`0`,...r?{range:r}:{}})}`),files:(e,t,n,r)=>ut(`/api/repos/${e}/compare/files?${dt({from:t,to:n,w:r?`1`:`0`})}`),diff:(e,t,n,r,i,a)=>ut(`/api/repos/${e}/compare/diff?${dt({from:t,to:n,path:r,...i?{oldPath:i}:{},w:a?`1`:`0`})}`),exportReview:(e,t)=>ut(`/api/repos/${e}/review?${dt({spec:t})}`),importReview:(e,t,n)=>pt(`/api/repos/${e}/review`,{spec:t,review:n}),symbols:(e,t,n,r)=>ut(`/api/repos/${e}/symbols?${dt({rev:t,q:n,exact:r?`1`:`0`})}`),fileAt:(e,t,n)=>ut(`/api/repos/${e}/file?${dt({rev:t,path:n})}`),blob:(e,t)=>ut(`/api/repos/${e}/blob/${t}`),worktreeFile:(e,t)=>ut(`/api/repos/${e}/worktree-file?${dt({path:t})}`),refs:e=>ut(`/api/repos/${e}/refs`),recentCommits:(e,t)=>ut(`/api/repos/${e}/commits/recent?${t.map(e=>`tip=${e}`).join(`&`)}`),commits:(e,t,n)=>ut(`/api/repos/${e}/compare/commits?${dt({base:t,head:n})}`),mergeStatus:(e,t,n)=>ut(`/api/repos/${e}/compare/merge-status?${dt({base:t,head:n})}`),share:(e,t,n,r)=>ut(`/api/repos/${e}/share?${dt({spec:t,view:n,w:r?`1`:`0`})}`),resolveLink:e=>pt(`/api/links/resolve`,{input:e}),cloneForLink:e=>pt(`/api/links/clone`,{repoUrl:e}),syncThreads:(e,t,n,r)=>pt(`/api/repos/${e}/threads/sync`,{scope:t,from:n,to:r}),createThread:(e,t)=>pt(`/api/repos/${e}/threads`,t),reply:(e,t,n)=>pt(`/api/repos/${e}/threads/${t}/comments`,{body:n}),setThreadState:(e,t,n)=>ft(`PATCH`,`/api/repos/${e}/threads/${t}`,{state:n}),editComment:(e,t,n)=>ft(`PATCH`,`/api/repos/${e}/comments/${t}`,{body:n}),deleteComment:(e,t)=>ft(`DELETE`,`/api/repos/${e}/comments/${t}`),draft:(e,t)=>ut(`/api/repos/${e}/drafts?${dt({key:t})}`),saveDraft:(e,t,n)=>ft(`PUT`,`/api/repos/${e}/drafts?${dt({key:t})}`,{body:n}),agents:()=>ut(`/api/agents`),runs:e=>ut(`/api/repos/${e}/agent/runs`),setAgentOption:(e,t,n)=>ft(`PUT`,`/api/agents/${e}/options`,{option:t,value:n}),startRun:(e,t)=>pt(`/api/repos/${e}/agent/runs`,t),cancelRun:(e,t)=>pt(`/api/repos/${e}/agent/runs/${t}/cancel`,{}),answerRun:(e,t,n,r)=>pt(`/api/repos/${e}/agent/runs/${t}/permission`,{id:n,allow:r}),revertRun:(e,t,n)=>pt(`/api/repos/${e}/agent/runs/${t}/revert`,n?{paths:n}:{}),dismissRun:(e,t)=>pt(`/api/repos/${e}/agent/runs/${t}/dismiss`,{}),trustRepo:e=>pt(`/api/repos/${e}/trust`,{}),chat:(e,t)=>ut(`/api/repos/${e}/chat?${dt({scope:t})}`),clearChat:(e,t)=>ft(`DELETE`,`/api/repos/${e}/chat?${dt({scope:t})}`),changes:e=>ut(`/api/repos/${e}/changes`),applySuggestion:(e,t,n,r)=>pt(`/api/repos/${e}/suggestions/apply`,{commentId:t,blockIndex:n,expected:r}),saveFile:(e,t)=>pt(`/api/repos/${e}/edits/save`,t),undoChange:(e,t)=>pt(`/api/repos/${e}/changes/${t}/undo`,{}),deleteFile:(e,t,n)=>pt(`/api/repos/${e}/edits/delete`,{path:t,baseOid:n}),staging:e=>ut(`/api/repos/${e}/staging`),stage:(e,t)=>pt(`/api/repos/${e}/staging/stage`,t?{paths:t}:{}),unstage:(e,t)=>pt(`/api/repos/${e}/staging/unstage`,t?{paths:t}:{}),commit:(e,t)=>pt(`/api/repos/${e}/commit`,{message:t}),pullProposal:(e,t)=>ut(`/api/repos/${e}/pull-proposal?${dt({spec:t})}`),createPull:(e,t)=>pt(`/api/repos/${e}/pulls`,t),pull:(e,t)=>ut(`/api/repos/${e}/pulls/${t}`),importPull:(e,t,n)=>pt(`/api/repos/${e}/pulls/${t}/import`,n?{remote:n}:{}),draftReview:(e,t,n)=>pt(`/api/repos/${e}/pulls/${t}/review/draft`,n?{commentIds:n}:{}),publishReview:(e,t,n)=>pt(`/api/repos/${e}/pulls/${t}/review/publish`,n),viewed:(e,t,n,r)=>ut(`/api/repos/${e}/viewed?${dt({scope:t,from:n,to:r})}`),setViewed:(e,t)=>ft(`PUT`,`/api/repos/${e}/viewed`,t)},_t=class extends Error{code;status;data;constructor(e,t,n=400,r){super(t),this.name=`AppError`,this.code=e,this.status=n,this.data=r}},vt=`:worktree`,yt=`:staged`,bt={kind:`rev`,expr:`HEAD`};function xt(e){if(e.startsWith(`-`)||e.startsWith(`:`)||/[\u0000-\u001f\u007f]/.test(e))throw new _t(`invalid_rev`,`Not a valid revision: ${JSON.stringify(e)}`)}function St(e,t){let n=e.trim();return n===``?t:n===`:worktree`?{kind:`worktree`}:n===`:staged`?{kind:`index`}:(xt(n),{kind:`rev`,expr:n})}function Ct(e){let t=e.trim();if(t===``)return{base:bt,head:{kind:`worktree`},mode:`direct`};let n=t.indexOf(`...`);if(n>=0)return{base:St(t.slice(0,n),bt),head:St(t.slice(n+3),bt),mode:`merge-base`};let r=t.indexOf(`..`);return r>=0?{base:St(t.slice(0,r),bt),head:St(t.slice(r+2),bt),mode:`direct`}:{base:St(t,bt),head:{kind:`worktree`},mode:`direct`}}function wt(e){return e.kind===`worktree`?vt:e.kind===`index`?yt:e.expr}function Tt(e){let t=e.mode===`merge-base`?`...`:`..`;return`${wt(e.base)}${t}${wt(e.head)}`}function Et(e){return e.split(`/`).map(encodeURIComponent).join(`/`)}function Dt(e){try{return e.split(`/`).map(decodeURIComponent).join(`/`)}catch{throw new _t(`invalid_spec`,`Comparison in the URL is not valid`)}}var Ot=/^refs\/agentic-diff\/pr\/(\d{1,9})\/(base|head)$/;function kt(e){return{base:`refs/agentic-diff/pr/${e}/base`,head:`refs/agentic-diff/pr/${e}/head`}}function At(e){let t=kt(e);return`${t.base}...${t.head}`}function jt(e,t){let[n,r]=[Ot.exec(e),Ot.exec(t)];if(n&&r&&n[2]===`base`&&r[2]===`head`&&n[1]===r[1])return Number(n[1])}function Mt(e){let t=/^(?:pr:|#)(\d{1,9})$/.exec(e.trim()),n=t?Number(t[1]):0;return n>0?n:void 0}function Nt(e){if(e.head.kind!==`rev`||e.base.kind!==`rev`)return e.worktree?`wt:${e.worktree}`:`wt`;let t=jt(e.base.label,e.head.label);return t===void 0?`cmp:${e.base.label}...${e.head.label}`:`pr:${t}`}var Pt=5;function Ft(e,t){let n=e+t;if(n===0)return{added:0,deleted:0,neutral:Pt};if(n<=Pt)return{added:e,deleted:t,neutral:Pt-n};let r=Math.round(e/n*Pt),i=Math.round(t/n*Pt);for(e>0&&r===0&&(r=1),t>0&&i===0&&(i=1);r+i>Pt;)r>=i?--r:--i;return{added:r,deleted:i,neutral:Pt-r-i}}function It(e){return`npx agentic-diff open '${e.replaceAll(`'`,`'\\''`)}'`}function Lt(e){if(e===``)return[];let t=e.split(`
|
|
10
|
+
`);return t.at(-1)===``&&t.pop(),t.map(e=>e.endsWith(`\r`)?e.slice(0,-1):e)}function Rt(e,t){switch(t.t){case`text`:return{...e,text:e.text+t.delta};case`tool`:{let n={id:t.id,kind:t.kind,title:t.title,status:t.status},r=e.tools.some(e=>e.id===t.id);return{...e,tools:r?e.tools.map(e=>e.id===t.id?n:e):[...e.tools,n]}}case`permission`:return{...e,asking:t.decision===`asking`?{id:t.id,kind:t.kind,title:t.title}:void 0};case`usage`:return{...e,usage:{used:t.used,size:t.size,cost:t.cost}};case`unexpected-changes`:return{...e,unexpectedChanges:t.changes};case`done`:return{...e,status:t.stopReason===`cancelled`?`cancelled`:`done`,stopReason:t.stopReason,asking:void 0};case`error`:return{...e,status:`failed`,error:t.message,asking:void 0};default:return e}}var zt=new Set([`minimal`,`low`,`medium`,`high`,`xhigh`,`max`]),Bt=`#web`,Vt=e=>e.toLowerCase().replace(/[^a-z0-9]/g,``);function Ht(e){return e?.options?.find(e=>e.category===`model`)??e?.options?.find(e=>e.kind===`select`&&/model/i.test(e.id))}function Ut(e){return e?.options?.find(e=>e.category===`thought_level`&&e.kind===`select`)??e?.options?.find(e=>e.kind===`select`&&/effort|thought|thinking|reasoning/i.test(e.id))}function Wt(e){return/^[A-Za-z0-9._\-[\]]+$/.test(e.id)?e.id:Vt(e.name)}function Gt(e,t){let n=Vt(t);if(!e||n===``)return;let r=e=>[Vt(e.id),Vt(e.name)],i=e.values.find(e=>r(e).includes(n));if(i)return i;for(let t of[e=>e.startsWith(n),e=>e.includes(n)]){let n=e.values.filter(e=>r(e).some(t));if(n.length===1)return n[0]}}var z=/(^|[\s(])@([A-Za-z0-9_-]+)(?::([A-Za-z0-9._\-[\]]+))?(?=$|[\s.,;!?)])/g,Kt=/(^|[\s(])!([A-Za-z0-9_-]+)(?=$|[\s.,;?)])/g,qt=/(^|[\s(])#web(?=$|[\s.,;!?)])/gi;function Jt(e,t,n){let r={called:!1,options:{},web:!1,message:e,problems:[]},i,a=e.replace(z,(e,n,a,o)=>{let s=a.toLowerCase()===`agent`?void 0:t.find(e=>e.id.toLowerCase()===a.toLowerCase());return a.toLowerCase()!==`agent`&&!s||r.called&&s&&r.agentId!==void 0&&s.id!==r.agentId?e:(r.called=!0,s&&(r.agentId=s.id),o!==void 0&&(i=o),n)}),o=t.find(e=>e.id===(r.agentId??n))??t.find(e=>e.isDefault)??t[0];if(i!==void 0){let e=Ht(o),t=Gt(e,i);e&&t?r.options[e.id]=t.id:e?r.problems.push(`${o?.name??`The agent`} does not offer a model called "${i}"; its own choice was used.`):r.pending={...r.pending,model:i}}let s=Ut(o);return a=a.replace(Kt,(e,t,n)=>{let i=Gt(s,n);return!o?.options?.length&&zt.has(n.toLowerCase())?(r.pending={...r.pending,effort:n},t):!s||!i?e:(r.options[s.id]=i.id,t)}),a=a.replace(qt,(e,t)=>(r.web=!0,t)),r.message=a.replace(/[ \t]{2,}/g,` `).replace(/[ \t]+$/gm,``).trim(),r}function Yt(e,t){return Jt(e,t).called}function Xt(e,t){let n=t;for(;n>0&&!/\s/.test(e[n-1]);)--n;let r=e.slice(n,t),i=r[0];if((i===`@`||i===`!`||i===`#`||i===`/`)&&(i!==`/`||e.slice(0,n).replace(/(^|[\s(])@\S+|(^|[\s(])[!#]\S+/g,``).split(`
|
|
11
|
+
`).at(-1)?.trim()===``)&&/^[A-Za-z0-9._:\-[\]]*$/.test(r.slice(1)))return{start:n,sign:i,rest:r.slice(1)}}var Zt=30;function Qt(e,t,n,r){let i=Xt(e,t);if(!i)return;let a=Vt(i.rest),o=(...e)=>a===``||e.some(e=>Vt(e).includes(a)),s=Jt(e.slice(0,i.start)+e.slice(t),n,r).agentId,c=n.find(e=>e.id===(s??r))??n.find(e=>e.isDefault)??n[0],l=[];if(i.sign===`@`){let[e,t]=i.rest.split(`:`);if(t!==void 0){let r=e.toLowerCase()===`agent`?c:n.find(t=>t.id.toLowerCase()===e.toLowerCase()),i=Vt(t);for(let t of Ht(r)?.values??[])(i===``||Vt(t.id).includes(i)||Vt(t.name).includes(i))&&l.push({insert:`@${e}:${Wt(t)} `,label:`@${e}:${Wt(t)}`,detail:[t.name,t.description].filter(Boolean).join(`: `)})}else{o(`agent`)&&l.push({insert:`@agent `,label:`@agent`,detail:`The default agent${c?` (${c.name})`:``}`});for(let e of n)o(e.id,e.name)&&l.push({insert:`@${e.id} `,label:`@${e.id}`,detail:e.name});for(let e of n)for(let t of Ht(e)?.values??[])o(`${e.id}${Wt(t)}`,`${e.id}${t.name}`,t.name)&&l.push({insert:`@${e.id}:${Wt(t)} `,label:`@${e.id}:${Wt(t)}`,detail:`${e.name}, ${t.name}`})}}else if(i.sign===`!`)for(let e of Ut(c)?.values??[])o(e.id,e.name)&&l.push({insert:`!${Wt(e)} `,label:`!${Wt(e)}`,detail:[`${Ut(c)?.name??`Effort`}: ${e.name}`,e.description].filter(Boolean).join(`. `)});else if(i.sign===`#`)o(`web`)&&l.push({insert:`${Bt} `,label:Bt,detail:`Let the agent search the web and read pages for this request`});else for(let e of c?.commands??[])o(e.name)&&l.push({insert:`/${e.name} `,label:`/${e.name}`,detail:[e.description,e.hint?`(${e.hint})`:``].filter(Boolean).join(` `)});return l.length>0?{start:i.start,hints:l.slice(0,Zt)}:void 0}var $t=class{diff(e,t,n={}){let r;typeof n==`function`?(r=n,n={}):`callback`in n&&(r=n.callback);let i=this.castInput(e,n),a=this.castInput(t,n),o=this.removeEmpty(this.tokenize(i,n)),s=this.removeEmpty(this.tokenize(a,n));return this.diffWithOptionsObj(o,s,n,r)}diffWithOptionsObj(e,t,n,r){let i=e=>{if(e=this.postProcess(e,n),r)setTimeout(function(){r(e)},0);else return e},a=t.length,o=e.length,s=1,c=a+o;n.maxEditLength!=null&&(c=Math.min(c,n.maxEditLength));let l=n.timeout??1/0,u=Date.now()+l,d=[{oldPos:-1,lastComponent:void 0}],f=this.extractCommon(d[0],t,e,0,n);if(d[0].oldPos+1>=o&&f+1>=a)return i(this.buildValues(d[0].lastComponent,t,e));let p=-1/0,m=1/0,h=()=>{for(let r=Math.max(p,-s);r<=Math.min(m,s);r+=2){let s,c=d[r-1],l=d[r+1];c&&(d[r-1]=void 0);let u=!1;if(l){let e=l.oldPos-r;u=l&&0<=e&&e<a}let h=c&&c.oldPos+1<o;if(!u&&!h)d[r]=void 0;else{if(s=!h||u&&c.oldPos<l.oldPos?this.addToPath(l,!0,!1,0,n):this.addToPath(c,!1,!0,1,n),f=this.extractCommon(s,t,e,r,n),s.oldPos+1>=o&&f+1>=a)return i(this.buildValues(s.lastComponent,t,e))||!0;d[r]=s,s.oldPos+1>=o&&(m=Math.min(m,r-1)),f+1>=a&&(p=Math.max(p,r+1))}}s++};if(r)(function e(){setTimeout(function(){if(s>c||Date.now()>u)return r(void 0);h()||e()},0)})();else for(;s<=c&&Date.now()<=u;){let e=h();if(e)return e}}addToPath(e,t,n,r,i){let a=e.lastComponent;return a&&!i.oneChangePerToken&&a.added===t&&a.removed===n?{oldPos:e.oldPos+r,lastComponent:{count:a.count+1,added:t,removed:n,previousComponent:a.previousComponent}}:{oldPos:e.oldPos+r,lastComponent:{count:1,added:t,removed:n,previousComponent:a}}}extractCommon(e,t,n,r,i){let a=t.length,o=n.length,s=e.oldPos,c=s-r,l=0;for(;c+1<a&&s+1<o&&this.equals(n[s+1],t[c+1],i);)c++,s++,l++,i.oneChangePerToken&&(e.lastComponent={count:1,previousComponent:e.lastComponent,added:!1,removed:!1});return l&&!i.oneChangePerToken&&(e.lastComponent={count:l,previousComponent:e.lastComponent,added:!1,removed:!1}),e.oldPos=s,c}equals(e,t,n){return n.comparator?n.comparator(e,t):e===t||!!n.ignoreCase&&e.toLowerCase()===t.toLowerCase()}removeEmpty(e){let t=[];for(let n=0;n<e.length;n++)e[n]&&t.push(e[n]);return t}castInput(e,t){return e}tokenize(e,t){return Array.from(e)}join(e){return e.join(``)}postProcess(e,t){return e}get useLongestToken(){return!1}buildValues(e,t,n){let r=[],i;for(;e;)r.push(e),i=e.previousComponent,delete e.previousComponent,e=i;r.reverse();let a=r.length,o=0,s=0,c=0;for(;o<a;o++){let e=r[o];if(e.removed)e.value=this.join(n.slice(c,c+e.count)),c+=e.count;else{if(!e.added&&this.useLongestToken){let r=t.slice(s,s+e.count);r=r.map(function(e,t){let r=n[c+t];return r.length>e.length?r:e}),e.value=this.join(r)}else e.value=this.join(t.slice(s,s+e.count));s+=e.count,e.added||(c+=e.count)}}return r}};new class extends $t{};function en(e,t){let n=0;for(;n<e.length&&n<t.length;n++)if(e[n]!=t[n])return e.slice(0,n);return e.slice(0,n)}function tn(e,t){let n;if(!e||!t||e[e.length-1]!=t[t.length-1])return``;for(n=0;n<e.length&&n<t.length;n++)if(e[e.length-(n+1)]!=t[t.length-(n+1)])return e.slice(-n);return e.slice(-n)}function nn(e,t,n){if(e.slice(0,t.length)!=t)throw Error(`string ${JSON.stringify(e)} doesn't start with prefix ${JSON.stringify(t)}; this is a bug`);return n+e.slice(t.length)}function rn(e,t,n){if(!t)return e+n;if(e.slice(-t.length)!=t)throw Error(`string ${JSON.stringify(e)} doesn't end with suffix ${JSON.stringify(t)}; this is a bug`);return e.slice(0,-t.length)+n}function an(e,t){return nn(e,t,``)}function on(e,t){return rn(e,t,``)}function sn(e,t){return t.slice(0,cn(e,t))}function cn(e,t){let n=0;e.length>t.length&&(n=e.length-t.length);let r=t.length;e.length<t.length&&(r=e.length);let i=Array(r),a=0;i[0]=0;for(let e=1;e<r;e++){for(t[e]==t[a]?i[e]=i[a]:i[e]=a;a>0&&t[e]!=t[a];)a=i[a];t[e]==t[a]&&a++}a=0;for(let r=n;r<e.length;r++){for(;a>0&&e[r]!=t[a];)a=i[a];e[r]==t[a]&&a++}return a}function ln(e,t){let n=[];for(let r of Array.from(t.segment(e))){let e=r.segment;n.length&&/\s/.test(n[n.length-1])&&/\s/.test(e)?n[n.length-1]+=e:n.push(e)}return n}function un(e,t){if(t)return fn(e,t)[1];let n;for(n=e.length-1;n>=0&&e[n].match(/\s/);n--);return e.substring(n+1)}function dn(e,t){if(t)return fn(e,t)[0];let n=e.match(/^\s*/);return n?n[0]:``}function fn(e,t){if(!t)return[dn(e),un(e)];if(t.resolvedOptions().granularity!=`word`)throw Error(`The segmenter passed must have a granularity of "word"`);let n=ln(e,t),r=n[0],i=n[n.length-1];return[/\s/.test(r)?r:``,/\s/.test(i)?i:``]}var pn=`a-zA-Z0-9_\\u{AD}\\u{C0}-\\u{D6}\\u{D8}-\\u{F6}\\u{F8}-\\u{2C6}\\u{2C8}-\\u{2D7}\\u{2DE}-\\u{2FF}\\u{1E00}-\\u{1EFF}`,mn=RegExp(`[${pn}]+|\\s+|[^${pn}]`,`ug`);new class extends $t{equals(e,t,n){return n.ignoreCase&&(e=e.toLowerCase(),t=t.toLowerCase()),e.trim()===t.trim()}tokenize(e,t={}){let n;if(t.intlSegmenter){let r=t.intlSegmenter;if(r.resolvedOptions().granularity!=`word`)throw Error(`The segmenter passed must have a granularity of "word"`);n=ln(e,r)}else n=e.match(mn)||[];let r=[],i=null;return n.forEach(e=>{/\s/.test(e)?i==null?r.push(e):r.push(r.pop()+e):i!=null&&/\s/.test(i)?r[r.length-1]==i?r.push(r.pop()+e):r.push(i+e):r.push(e),i=e}),r}join(e){return e.map((e,t)=>t==0?e:e.replace(/^\s+/,``)).join(``)}postProcess(e,t){if(!e||t.oneChangePerToken)return e;let n=null,r=null,i=null;return e.forEach(e=>{e.added?r=e:e.removed?i=e:((r||i)&&hn(n,i,r,e,t.intlSegmenter),n=e,r=null,i=null)}),(r||i)&&hn(n,i,r,null,t.intlSegmenter),e}};function hn(e,t,n,r,i){if(t&&n){let[a,o]=fn(t.value,i),[s,c]=fn(n.value,i);if(e){let r=en(a,s);e.value=rn(e.value,s,r),t.value=an(t.value,r),n.value=an(n.value,r)}if(r){let e=tn(o,c);r.value=nn(r.value,c,e),t.value=on(t.value,e),n.value=on(n.value,e)}}else if(n){if(e){let e=dn(n.value,i);n.value=n.value.substring(e.length)}if(r){let e=dn(r.value,i);r.value=r.value.substring(e.length)}}else if(e&&r){let n=dn(r.value,i),[a,o]=fn(t.value,i),s=en(n,a);t.value=an(t.value,s);let c=tn(an(n,s),o);t.value=on(t.value,c),r.value=nn(r.value,n,c),e.value=rn(e.value,n,n.slice(0,n.length-c.length))}else if(r){let e=dn(r.value,i),n=sn(un(t.value,i),e);t.value=on(t.value,n)}else if(e){let n=sn(un(e.value,i),dn(t.value,i));t.value=an(t.value,n)}}var gn=new class extends $t{tokenize(e){let t=RegExp(`(\\r?\\n)|[${pn}]+|[^\\S\\n\\r]+|[^${pn}]`,`ug`);return e.match(t)||[]}};function _n(e,t,n){return gn.diff(e,t,n)}new class extends $t{constructor(){super(...arguments),this.tokenize=vn}equals(e,t,n){return n.ignoreWhitespace?(n.newlineIsToken&&e.includes(`
|
|
12
|
+
`)||(e=e.trim()),n.newlineIsToken&&t.includes(`
|
|
13
|
+
`)||(t=t.trim())):n.ignoreNewlineAtEof&&!n.newlineIsToken&&(e.endsWith(`
|
|
14
|
+
`)&&(e=e.slice(0,-1)),t.endsWith(`
|
|
15
|
+
`)&&(t=t.slice(0,-1))),super.equals(e,t,n)}};function vn(e,t){t.stripTrailingCr&&(e=e.replace(/\r\n/g,`
|
|
16
|
+
`));let n=[],r=e.split(/(\n|\r\n)/);r[r.length-1]||r.pop();for(let e=0;e<r.length;e++){let i=r[e];e%2&&!t.newlineIsToken?n[n.length-1]+=i:n.push(i)}return n}function yn(e){return e==`.`||e==`!`||e==`?`}new class extends $t{tokenize(e){let t=[],n=0;for(let r=0;r<e.length;r++){if(r==e.length-1){t.push(e.slice(n));break}if(yn(e[r])&&e[r+1].match(/\s/)){for(t.push(e.slice(n,r+1)),r=n=r+1;e[r+1]?.match(/\s/);)r++;t.push(e.slice(n,r+1)),n=r+1}}return t}},new class extends $t{tokenize(e){return e.split(/([{}:;,]|\s+)/)}},new class extends $t{constructor(){super(...arguments),this.tokenize=vn}get useLongestToken(){return!0}castInput(e,t){let{undefinedReplacement:n,stringifyReplacer:r=(e,t)=>t===void 0?n:t}=t;return typeof e==`string`?e:JSON.stringify(bn(e,null,null,r),null,` `)}equals(e,t,n){return super.equals(e.replace(/,([\r\n])/g,`$1`),t.replace(/,([\r\n])/g,`$1`),n)}};function bn(e,t,n,r,i){t||=[],n||=[],r&&(e=r(i===void 0?``:i,e));let a=0;for(;a<t.length;a+=1)if(t[a]===e)return n[a];let o;if(Object.prototype.toString.call(e)===`[object Array]`){for(t.push(e),o=Array(e.length),n.push(o),a=0;a<e.length;a+=1)o[a]=bn(e[a],t,n,r,String(a));return t.pop(),n.pop(),o}if(e&&e.toJSON&&(e=e.toJSON()),typeof e==`object`&&e){t.push(e),o={},n.push(o);let i=[],s;for(s in e)Object.prototype.hasOwnProperty.call(e,s)&&i.push(s);for(i.sort(),a=0;a<i.length;a+=1)s=i[a],o[s]=bn(e[s],t,n,r,s);t.pop(),n.pop()}else o=e;return o}var xn=new class extends $t{tokenize(e){return e.slice()}join(e){return e}removeEmpty(e){return e}};function Sn(e,t,n){return xn.diff(e,t,n)}var Cn=/^( {0,3})(`{3,}|~{3,})suggestion\s*$/;function wn(e){let t=e.split(`
|
|
17
|
+
`).map(e=>e.endsWith(`\r`)?e.slice(0,-1):e),n=[],r=0;for(;r<t.length;){let e=Cn.exec(t[r]);if(!e){r+=1;continue}let i=e[1].length,a=e[2],o=RegExp(`^ {0,3}${a[0]==="`"?"`":`~`}{${a.length},}\\s*$`),s=RegExp(`^ {0,${i}}`),c=[],l=r+1;for(;l<t.length&&!o.test(t[l]);)c.push(t[l++].replace(s,``));n.push({line:r+1,lines:c}),r=l+1}return n}function Tn(e,t,n=3){let r=[],i=1,a=1;for(let n of Sn(e,t))for(let e=0;e<n.value.length;e+=1)n.removed?r.push({t:`del`,old:i++}):n.added?r.push({t:`add`,new:a++}):r.push({t:`ctx`,old:i++,new:a++});let o=[],s=[],c=0,l=0;for(let e of r)o.push(c),s.push(l),e.t!==`add`&&(c+=1),e.t!==`del`&&(l+=1);let u=[],d=0;for(;d<r.length;){if(r[d].t===`ctx`){d+=1;continue}let e=d,t=d;for(let e=d+1;e<r.length&&e-t<=n*2;e+=1)r[e].t!==`ctx`&&(t=e);let i=Math.max(0,e-n),a=Math.min(r.length,t+n+1),c=r.slice(i,a),l=c.filter(e=>e.t!==`add`).length,f=c.filter(e=>e.t!==`del`).length;u.push({oldStart:o[i]+ +(l>0),oldLines:l,newStart:s[i]+ +(f>0),newLines:f,section:``,rows:c}),d=a}return u}var En={png:`image/png`,jpg:`image/jpeg`,jpeg:`image/jpeg`,gif:`image/gif`,webp:`image/webp`,avif:`image/avif`,bmp:`image/bmp`,ico:`image/x-icon`,svg:`image/svg+xml`},Dn=e=>{let t=e.slice(e.lastIndexOf(`/`)+1),n=t.lastIndexOf(`.`);return n<=0?``:t.slice(n+1).toLowerCase()};function On(e){let t=Dn(e);return Object.hasOwn(En,t)?En[t]:void 0}function kn(e){return[`md`,`markdown`,`mdown`,`mkd`].includes(Dn(e))}function An(e){"@babel/helpers - typeof";return An=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},An(e)}var jn=[`aria-hidden`,`aria-label`,`aria-labelledby`,`tabIndex`,`className`,`fill`,`size`,`verticalAlign`,`id`,`title`,`style`];function Mn(){return Mn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Mn.apply(null,arguments)}function Nn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Pn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Nn(Object(n),!0).forEach(function(t){Fn(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Nn(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Fn(e,t,n){return(t=In(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function In(e){var t=Ln(e,`string`);return An(t)==`symbol`?t:t+``}function Ln(e,t){if(An(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(An(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Rn(e,t){if(e==null)return{};var n,r,i=zn(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function zn(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var Bn={small:16,medium:32,large:64};function B(e,t,n,r,i){var a=e[`aria-hidden`],o=e[`aria-label`],s=e[`aria-labelledby`],c=e.tabIndex,l=e.className,u=l===void 0?``:l,d=e.fill,p=d===void 0?`currentColor`:d,m=e.size,h=m===void 0?16:m,g=e.verticalAlign,_=g===void 0?`text-bottom`:g,v=e.id,y=e.title,b=e.style,x=Rn(e,jn),S=Bn[h]||h,C=Vn(i,S),w=r[C].width,T=w/C*S,E=r[C].path,D=o||s,O=a===void 0?D?void 0:`true`:a,ee=D&&O!==`true`?`img`:void 0;return f.createElement(`svg`,Mn({ref:t,"data-component":`Octicon`},x,{"aria-hidden":O,tabIndex:c,focusable:c>=0?`true`:`false`,"aria-label":o,"aria-labelledby":s,className:`${n} ${u}`.trim(),role:ee,viewBox:`0 0 ${w} ${C}`,width:T,height:S,fill:p,id:v,display:`inline-block`,overflow:`visible`,style:Pn({verticalAlign:_},b)}),y?f.createElement(`title`,null,y):null,E)}function Vn(e,t){return e.map(function(e){return parseInt(e,10)}).reduce(function(e,n){return n<=t?n:e},e[0])}var Hn=[`16`,`24`],Un={16:{width:16,path:f.createElement(`path`,{d:`M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z`})},24:{width:24,path:f.createElement(f.Fragment,null,f.createElement(`path`,{d:`M13 17.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0Zm-.25-8.25a.75.75 0 0 0-1.5 0v4.5a.75.75 0 0 0 1.5 0v-4.5Z`}),f.createElement(`path`,{d:`M9.836 3.244c.963-1.665 3.365-1.665 4.328 0l8.967 15.504c.963 1.667-.24 3.752-2.165 3.752H3.034c-1.926 0-3.128-2.085-2.165-3.752Zm3.03.751a1.002 1.002 0 0 0-1.732 0L2.168 19.499A1.002 1.002 0 0 0 3.034 21h17.932a1.002 1.002 0 0 0 .866-1.5L12.866 3.994Z`}))}},Wn=f.forwardRef(function(e,t){return B(e,t,`octicon octicon-alert`,Un,Hn)});Wn.displayName=`AlertIcon`;var Gn=[`16`,`24`],Kn={16:{width:16,path:f.createElement(`path`,{d:`M7.78 12.53a.75.75 0 0 1-1.06 0L2.47 8.28a.75.75 0 0 1 0-1.06l4.25-4.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042L4.81 7h7.44a.75.75 0 0 1 0 1.5H4.81l2.97 2.97a.75.75 0 0 1 0 1.06Z`})},24:{width:24,path:f.createElement(`path`,{d:`M10.78 19.03a.75.75 0 0 1-1.06 0l-6.25-6.25a.75.75 0 0 1 0-1.06l6.25-6.25a.749.749 0 0 1 1.275.326.749.749 0 0 1-.215.734L5.81 11.5h14.44a.75.75 0 0 1 0 1.5H5.81l4.97 4.97a.75.75 0 0 1 0 1.06Z`})}},qn=f.forwardRef(function(e,t){return B(e,t,`octicon octicon-arrow-left`,Kn,Gn)});qn.displayName=`ArrowLeftIcon`;var Jn=[`16`,`24`],Yn={16:{width:16,path:f.createElement(`path`,{d:`M5.22 14.78a.75.75 0 0 0 1.06-1.06L4.56 12h8.69a.75.75 0 0 0 0-1.5H4.56l1.72-1.72a.75.75 0 0 0-1.06-1.06l-3 3a.75.75 0 0 0 0 1.06l3 3Zm5.56-6.5a.75.75 0 1 1-1.06-1.06l1.72-1.72H2.75a.75.75 0 0 1 0-1.5h8.69L9.72 2.28a.75.75 0 0 1 1.06-1.06l3 3a.75.75 0 0 1 0 1.06l-3 3Z`})},24:{width:24,path:f.createElement(`path`,{d:`M7.72 21.78a.75.75 0 0 0 1.06-1.06L5.56 17.5h14.69a.75.75 0 0 0 0-1.5H5.56l3.22-3.22a.75.75 0 1 0-1.06-1.06l-4.5 4.5a.75.75 0 0 0 0 1.06l4.5 4.5Zm8.56-9.5a.75.75 0 1 1-1.06-1.06L18.44 8H3.75a.75.75 0 0 1 0-1.5h14.69l-3.22-3.22a.75.75 0 0 1 1.06-1.06l4.5 4.5a.75.75 0 0 1 0 1.06l-4.5 4.5Z`})}},Xn=f.forwardRef(function(e,t){return B(e,t,`octicon octicon-arrow-switch`,Yn,Jn)});Xn.displayName=`ArrowSwitchIcon`;var Zn=[`16`,`24`],Qn={16:{width:16,path:f.createElement(`path`,{d:`M4 2h4.5a3.501 3.501 0 0 1 2.852 5.53A3.499 3.499 0 0 1 9.5 14H4a1 1 0 0 1-1-1V3a1 1 0 0 1 1-1Zm1 7v3h4.5a1.5 1.5 0 0 0 0-3Zm3.5-2a1.5 1.5 0 0 0 0-3H5v3Z`})},24:{width:24,path:f.createElement(`path`,{d:`M6 4.75c0-.69.56-1.25 1.25-1.25h5a4.752 4.752 0 0 1 3.888 7.479A5 5 0 0 1 14 20.5H7.25c-.69 0-1.25-.56-1.25-1.25ZM8.5 13v5H14a2.5 2.5 0 1 0 0-5Zm0-2.5h3.751A2.25 2.25 0 0 0 12.25 6H8.5Z`})}},$n=f.forwardRef(function(e,t){return B(e,t,`octicon octicon-bold`,Qn,Zn)});$n.displayName=`BoldIcon`;var er=[`16`,`24`],tr={16:{width:16,path:f.createElement(`path`,{d:`M13.78 4.22a.75.75 0 0 1 0 1.06l-7.25 7.25a.75.75 0 0 1-1.06 0L2.22 9.28a.751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018L6 10.94l6.72-6.72a.75.75 0 0 1 1.06 0Z`})},24:{width:24,path:f.createElement(`path`,{d:`M21.03 5.72a.75.75 0 0 1 0 1.06l-11.5 11.5a.747.747 0 0 1-1.072-.012l-5.5-5.75a.75.75 0 1 1 1.084-1.036l4.97 5.195L19.97 5.72a.75.75 0 0 1 1.06 0Z`})}},nr=f.forwardRef(function(e,t){return B(e,t,`octicon octicon-check`,tr,er)});nr.displayName=`CheckIcon`;var rr=[`16`,`24`],ir={16:{width:16,path:f.createElement(`path`,{d:`M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm1.5 0a6.5 6.5 0 1 0 13 0 6.5 6.5 0 0 0-13 0Zm10.28-1.72-4.5 4.5a.75.75 0 0 1-1.06 0l-2-2a.751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018l1.47 1.47 3.97-3.97a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042Z`})},24:{width:24,path:f.createElement(f.Fragment,null,f.createElement(`path`,{d:`M17.28 9.28a.75.75 0 0 0-1.06-1.06l-5.97 5.97-2.47-2.47a.75.75 0 0 0-1.06 1.06l3 3a.75.75 0 0 0 1.06 0l6.5-6.5Z`}),f.createElement(`path`,{d:`M12 1c6.075 0 11 4.925 11 11s-4.925 11-11 11S1 18.075 1 12 5.925 1 12 1ZM2.5 12a9.5 9.5 0 0 0 9.5 9.5 9.5 9.5 0 0 0 9.5-9.5A9.5 9.5 0 0 0 12 2.5 9.5 9.5 0 0 0 2.5 12Z`}))}},ar=f.forwardRef(function(e,t){return B(e,t,`octicon octicon-check-circle`,ir,rr)});ar.displayName=`CheckCircleIcon`;var or=[`12`,`16`,`24`],sr={12:{width:12,path:f.createElement(`path`,{d:`M6 8.825c-.2 0-.4-.1-.5-.2l-3.3-3.3c-.3-.3-.3-.8 0-1.1.3-.3.8-.3 1.1 0l2.7 2.7 2.7-2.7c.3-.3.8-.3 1.1 0 .3.3.3.8 0 1.1l-3.2 3.2c-.2.2-.4.3-.6.3Z`})},16:{width:16,path:f.createElement(`path`,{d:`M12.78 5.22a.749.749 0 0 1 0 1.06l-4.25 4.25a.749.749 0 0 1-1.06 0L3.22 6.28a.749.749 0 1 1 1.06-1.06L8 8.939l3.72-3.719a.749.749 0 0 1 1.06 0Z`})},24:{width:24,path:f.createElement(`path`,{d:`M5.22 8.22a.749.749 0 0 0 0 1.06l6.25 6.25a.749.749 0 0 0 1.06 0l6.25-6.25a.749.749 0 1 0-1.06-1.06L12 13.939 6.28 8.22a.749.749 0 0 0-1.06 0Z`})}},cr=f.forwardRef(function(e,t){return B(e,t,`octicon octicon-chevron-down`,sr,or)});cr.displayName=`ChevronDownIcon`;var lr=[`12`,`16`,`24`],ur={12:{width:12,path:f.createElement(`path`,{d:`M4.7 10c-.2 0-.4-.1-.5-.2-.3-.3-.3-.8 0-1.1L6.9 6 4.2 3.3c-.3-.3-.3-.8 0-1.1.3-.3.8-.3 1.1 0l3.3 3.2c.3.3.3.8 0 1.1L5.3 9.7c-.2.2-.4.3-.6.3Z`})},16:{width:16,path:f.createElement(`path`,{d:`M6.22 3.22a.75.75 0 0 1 1.06 0l4.25 4.25a.75.75 0 0 1 0 1.06l-4.25 4.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042L9.94 8 6.22 4.28a.75.75 0 0 1 0-1.06Z`})},24:{width:24,path:f.createElement(`path`,{d:`M8.72 18.78a.75.75 0 0 1 0-1.06L14.44 12 8.72 6.28a.751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018l6.25 6.25a.75.75 0 0 1 0 1.06l-6.25 6.25a.75.75 0 0 1-1.06 0Z`})}},dr=f.forwardRef(function(e,t){return B(e,t,`octicon octicon-chevron-right`,ur,lr)});dr.displayName=`ChevronRightIcon`;var fr=[`16`,`24`],pr={16:{width:16,path:f.createElement(`path`,{d:`m11.28 3.22 4.25 4.25a.75.75 0 0 1 0 1.06l-4.25 4.25a.749.749 0 0 1-1.275-.326.749.749 0 0 1 .215-.734L13.94 8l-3.72-3.72a.749.749 0 0 1 .326-1.275.749.749 0 0 1 .734.215Zm-6.56 0a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042L2.06 8l3.72 3.72a.749.749 0 0 1-.326 1.275.749.749 0 0 1-.734-.215L.47 8.53a.75.75 0 0 1 0-1.06Z`})},24:{width:24,path:f.createElement(`path`,{d:`M15.22 4.97a.75.75 0 0 1 1.06 0l6.5 6.5a.75.75 0 0 1 0 1.06l-6.5 6.5a.749.749 0 0 1-1.275-.326.749.749 0 0 1 .215-.734L21.19 12l-5.97-5.97a.75.75 0 0 1 0-1.06Zm-6.44 0a.75.75 0 0 1 0 1.06L2.81 12l5.97 5.97a.749.749 0 0 1-.326 1.275.749.749 0 0 1-.734-.215l-6.5-6.5a.75.75 0 0 1 0-1.06l6.5-6.5a.75.75 0 0 1 1.06 0Z`})}},mr=f.forwardRef(function(e,t){return B(e,t,`octicon octicon-code`,pr,fr)});mr.displayName=`CodeIcon`;var hr=[`16`,`24`],gr={16:{width:16,path:f.createElement(`path`,{d:`M1.75 1h12.5c.966 0 1.75.784 1.75 1.75v8.5A1.75 1.75 0 0 1 14.25 13H8.061l-2.574 2.573A1.458 1.458 0 0 1 3 14.543V13H1.75A1.75 1.75 0 0 1 0 11.25v-8.5C0 1.784.784 1 1.75 1ZM1.5 2.75v8.5c0 .138.112.25.25.25h2a.75.75 0 0 1 .75.75v2.19l2.72-2.72a.749.749 0 0 1 .53-.22h6.5a.25.25 0 0 0 .25-.25v-8.5a.25.25 0 0 0-.25-.25H1.75a.25.25 0 0 0-.25.25Zm5.28 1.72a.75.75 0 0 1 0 1.06L5.31 7l1.47 1.47a.751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018l-2-2a.75.75 0 0 1 0-1.06l2-2a.75.75 0 0 1 1.06 0Zm2.44 0a.75.75 0 0 1 1.06 0l2 2a.75.75 0 0 1 0 1.06l-2 2a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042L10.69 7 9.22 5.53a.75.75 0 0 1 0-1.06Z`})},24:{width:24,path:f.createElement(f.Fragment,null,f.createElement(`path`,{d:`M10.3 6.74a.75.75 0 0 1-.04 1.06l-2.908 2.7 2.908 2.7a.75.75 0 1 1-1.02 1.1l-3.5-3.25a.75.75 0 0 1 0-1.1l3.5-3.25a.75.75 0 0 1 1.06.04Zm3.44 1.06a.75.75 0 1 1 1.02-1.1l3.5 3.25a.75.75 0 0 1 0 1.1l-3.5 3.25a.75.75 0 1 1-1.02-1.1l2.908-2.7-2.908-2.7Z`}),f.createElement(`path`,{d:`M1.5 4.25c0-.966.784-1.75 1.75-1.75h17.5c.966 0 1.75.784 1.75 1.75v12.5a1.75 1.75 0 0 1-1.75 1.75h-9.69l-3.573 3.573A1.458 1.458 0 0 1 5 21.043V18.5H3.25a1.75 1.75 0 0 1-1.75-1.75ZM3.25 4a.25.25 0 0 0-.25.25v12.5c0 .138.112.25.25.25h2.5a.75.75 0 0 1 .75.75v3.19l3.72-3.72a.749.749 0 0 1 .53-.22h10a.25.25 0 0 0 .25-.25V4.25a.25.25 0 0 0-.25-.25Z`}))}},_r=f.forwardRef(function(e,t){return B(e,t,`octicon octicon-code-review`,gr,hr)});_r.displayName=`CodeReviewIcon`;var vr=[`16`,`24`],yr={16:{width:16,path:f.createElement(`path`,{d:`M1 2.75C1 1.784 1.784 1 2.75 1h10.5c.966 0 1.75.784 1.75 1.75v7.5A1.75 1.75 0 0 1 13.25 12H9.06l-2.573 2.573A1.458 1.458 0 0 1 4 13.543V12H2.75A1.75 1.75 0 0 1 1 10.25Zm1.75-.25a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h2a.75.75 0 0 1 .75.75v2.19l2.72-2.72a.749.749 0 0 1 .53-.22h4.5a.25.25 0 0 0 .25-.25v-7.5a.25.25 0 0 0-.25-.25Z`})},24:{width:24,path:f.createElement(`path`,{d:`M1.5 4.25c0-.966.784-1.75 1.75-1.75h17.5c.966 0 1.75.784 1.75 1.75v12.5a1.75 1.75 0 0 1-1.75 1.75h-9.69l-3.573 3.573A1.458 1.458 0 0 1 5 21.043V18.5H3.25a1.75 1.75 0 0 1-1.75-1.75ZM3.25 4a.25.25 0 0 0-.25.25v12.5c0 .138.112.25.25.25h2.5a.75.75 0 0 1 .75.75v3.19l3.72-3.72a.749.749 0 0 1 .53-.22h10a.25.25 0 0 0 .25-.25V4.25a.25.25 0 0 0-.25-.25Z`})}},br=f.forwardRef(function(e,t){return B(e,t,`octicon octicon-comment`,yr,vr)});br.displayName=`CommentIcon`;var xr=[`16`,`24`,`48`,`96`],Sr={16:{width:16,path:f.createElement(f.Fragment,null,f.createElement(`path`,{d:`M7.998 15.035c-4.562 0-7.873-2.914-7.998-3.749V9.338c.085-.628.677-1.686 1.588-2.065.013-.07.024-.143.036-.218.029-.183.06-.384.126-.612-.201-.508-.254-1.084-.254-1.656 0-.87.128-1.769.693-2.484.579-.733 1.494-1.124 2.724-1.261 1.206-.134 2.262.034 2.944.765.05.053.096.108.139.165.044-.057.094-.112.143-.165.682-.731 1.738-.899 2.944-.765 1.23.137 2.145.528 2.724 1.261.566.715.693 1.614.693 2.484 0 .572-.053 1.148-.254 1.656.066.228.098.429.126.612.012.076.024.148.037.218.924.385 1.522 1.471 1.591 2.095v1.872c0 .766-3.351 3.795-8.002 3.795Zm0-1.485c2.28 0 4.584-1.11 5.002-1.433V7.862l-.023-.116c-.49.21-1.075.291-1.727.291-1.146 0-2.059-.327-2.71-.991A3.222 3.222 0 0 1 8 6.303a3.24 3.24 0 0 1-.544.743c-.65.664-1.563.991-2.71.991-.652 0-1.236-.081-1.727-.291l-.023.116v4.255c.419.323 2.722 1.433 5.002 1.433ZM6.762 2.83c-.193-.206-.637-.413-1.682-.297-1.019.113-1.479.404-1.713.7-.247.312-.369.789-.369 1.554 0 .793.129 1.171.308 1.371.162.181.519.379 1.442.379.853 0 1.339-.235 1.638-.54.315-.322.527-.827.617-1.553.117-.935-.037-1.395-.241-1.614Zm4.155-.297c-1.044-.116-1.488.091-1.681.297-.204.219-.359.679-.242 1.614.091.726.303 1.231.618 1.553.299.305.784.54 1.638.54.922 0 1.28-.198 1.442-.379.179-.2.308-.578.308-1.371 0-.765-.123-1.242-.37-1.554-.233-.296-.693-.587-1.713-.7Z`}),f.createElement(`path`,{d:`M6.25 9.037a.75.75 0 0 1 .75.75v1.501a.75.75 0 0 1-1.5 0V9.787a.75.75 0 0 1 .75-.75Zm4.25.75v1.501a.75.75 0 0 1-1.5 0V9.787a.75.75 0 0 1 1.5 0Z`}))},24:{width:24,path:f.createElement(f.Fragment,null,f.createElement(`path`,{d:`M23.922 16.992c-.861 1.495-5.859 5.023-11.922 5.023-6.063 0-11.061-3.528-11.922-5.023A.641.641 0 0 1 0 16.736v-2.869a.841.841 0 0 1 .053-.22c.372-.935 1.347-2.292 2.605-2.656.167-.429.414-1.055.644-1.517a10.195 10.195 0 0 1-.052-1.086c0-1.331.282-2.499 1.132-3.368.397-.406.89-.717 1.474-.952 1.399-1.136 3.392-2.093 6.122-2.093 2.731 0 4.767.957 6.166 2.093.584.235 1.077.546 1.474.952.85.869 1.132 2.037 1.132 3.368 0 .368-.014.733-.052 1.086.23.462.477 1.088.644 1.517 1.258.364 2.233 1.721 2.605 2.656a.832.832 0 0 1 .053.22v2.869a.641.641 0 0 1-.078.256ZM12.172 11h-.344a4.323 4.323 0 0 1-.355.508C10.703 12.455 9.555 13 7.965 13c-1.725 0-2.989-.359-3.782-1.259a2.005 2.005 0 0 1-.085-.104L4 11.741v6.585c1.435.779 4.514 2.179 8 2.179 3.486 0 6.565-1.4 8-2.179v-6.585l-.098-.104s-.033.045-.085.104c-.793.9-2.057 1.259-3.782 1.259-1.59 0-2.738-.545-3.508-1.492a4.323 4.323 0 0 1-.355-.508h-.016.016Zm.641-2.935c.136 1.057.403 1.913.878 2.497.442.544 1.134.938 2.344.938 1.573 0 2.292-.337 2.657-.751.384-.435.558-1.15.558-2.361 0-1.14-.243-1.847-.705-2.319-.477-.488-1.319-.862-2.824-1.025-1.487-.161-2.192.138-2.533.529-.269.307-.437.808-.438 1.578v.021c0 .265.021.562.063.893Zm-1.626 0c.042-.331.063-.628.063-.894v-.02c-.001-.77-.169-1.271-.438-1.578-.341-.391-1.046-.69-2.533-.529-1.505.163-2.347.537-2.824 1.025-.462.472-.705 1.179-.705 2.319 0 1.211.175 1.926.558 2.361.365.414 1.084.751 2.657.751 1.21 0 1.902-.394 2.344-.938.475-.584.742-1.44.878-2.497Z`}),f.createElement(`path`,{d:`M14.5 14.25a1 1 0 0 1 1 1v2a1 1 0 0 1-2 0v-2a1 1 0 0 1 1-1Zm-5 0a1 1 0 0 1 1 1v2a1 1 0 0 1-2 0v-2a1 1 0 0 1 1-1Z`}))},48:{width:48,path:f.createElement(f.Fragment,null,f.createElement(`path`,{d:`M47.801 34.003c-1.72 2.988-11.706 10.037-23.82 10.037S1.881 36.991.161 34.003a1.309 1.309 0 0 1-.161-.57v-5.615c.012-.17.047-.338.11-.498.744-1.867 2.692-4.58 5.206-5.308.333-.855.826-2.106 1.287-3.029a20.112 20.112 0 0 1-.104-2.171c0-2.659.563-4.992 2.262-6.729.793-.811 1.777-1.433 2.945-1.901C14.502 5.911 18.483 4 23.938 4c5.455 0 9.523 1.911 12.319 4.182 1.167.468 2.151 1.09 2.944 1.901 1.699 1.737 2.263 4.07 2.263 6.729 0 .736-.027 1.465-.105 2.171.461.923.954 2.174 1.288 3.029 2.513.728 4.461 3.441 5.205 5.308.081.205.115.424.115.645v5.318c0 .252-.04.502-.166.72ZM24.325 22.031h-.688a8.52 8.52 0 0 1-.709 1.016c-1.537 1.892-3.833 2.98-7.008 2.98-3.447 0-5.972-.717-7.557-2.514a4.408 4.408 0 0 1-.171-.21l-.195.21v13.155c2.867 1.558 9.02 4.353 15.984 4.353s13.117-2.795 15.984-4.353V23.513l-.195-.21s-.066.091-.171.21c-1.584 1.797-4.11 2.514-7.557 2.514-3.175 0-5.47-1.088-7.008-2.98a8.637 8.637 0 0 1-.709-1.016h-.033.033Zm-1.969-5.864a14.31 14.31 0 0 0 .127-1.785v-.042c-.003-1.537-.339-2.538-.876-3.152-.681-.78-2.09-1.378-5.06-1.057-3.008.326-4.69 1.073-5.643 2.048-.923.944-1.408 2.356-1.408 4.633 0 2.42.348 3.849 1.115 4.719.729.827 2.165 1.499 5.309 1.499 2.417 0 3.799-.786 4.683-1.873.948-1.168 1.482-2.878 1.753-4.99Zm3.25 0c.271 2.112.805 3.822 1.754 4.99.883 1.087 2.265 1.873 4.682 1.873 3.145 0 4.58-.672 5.309-1.499.767-.87 1.116-2.299 1.116-4.719 0-2.277-.485-3.689-1.408-4.633-.954-.975-2.635-1.722-5.644-2.048-2.969-.321-4.378.277-5.06 1.057-.537.614-.873 1.615-.876 3.152v.042c.002.53.042 1.123.127 1.785Z`}),f.createElement(`path`,{d:`M28.998 28.516c1.104 0 1.999.895 1.999 1.999v3.998a2 2 0 1 1-3.998 0v-3.998c0-1.104.895-1.999 1.999-1.999Zm-9.996 0c1.104 0 1.999.895 1.999 1.999v3.998a2 2 0 1 1-3.998 0v-3.998c0-1.104.895-1.999 1.999-1.999Z`}))},96:{width:96,path:f.createElement(f.Fragment,null,f.createElement(`path`,{d:`M95.667 67.954C92.225 73.933 72.24 88.04 47.997 88.04 23.754 88.04 3.769 73.933.328 67.954c-.216-.375-.307-.796-.328-1.226V55.661c.019-.371.089-.736.226-1.081 1.489-3.738 5.386-9.166 10.417-10.623.667-1.712 1.655-4.215 2.576-6.062-.154-1.414-.208-2.872-.208-4.345 0-5.322 1.128-9.99 4.527-13.466 1.587-1.623 3.557-2.869 5.893-3.805 5.595-4.545 13.563-8.369 24.48-8.369s19.057 3.824 24.652 8.369c2.337.936 4.306 2.182 5.894 3.805 3.399 3.476 4.527 8.144 4.527 13.466 0 1.473-.054 2.931-.208 4.345.921 1.847 1.909 4.35 2.576 6.062 5.03 1.457 8.928 6.885 10.417 10.623.163.41.231.848.231 1.289v10.644c0 .504-.081 1.004-.333 1.441ZM48.686 43.993l-.3.001-1.077-.001c-.423.709-.894 1.39-1.418 2.035-3.078 3.787-7.672 5.964-14.026 5.964-6.897 0-11.952-1.435-15.123-5.032a7.886 7.886 0 0 1-.342-.419l-.39.419v26.326c5.737 3.118 18.05 8.713 31.987 8.713 13.938 0 26.251-5.595 31.988-8.713V46.96l-.39-.419s-.132.181-.342.419c-3.171 3.597-8.226 5.032-15.123 5.032-6.354 0-10.949-2.177-14.026-5.964a17.178 17.178 0 0 1-1.418-2.034h-.066l.066-.001Zm-3.94-11.733c.17-1.326.251-2.513.253-3.573v-.084c-.005-3.077-.678-5.079-1.752-6.308-1.365-1.562-4.184-2.758-10.127-2.115-6.021.652-9.386 2.146-11.294 4.098-1.847 1.889-2.818 4.715-2.818 9.272 0 4.842.698 7.703 2.232 9.443 1.459 1.655 4.332 3.001 10.625 3.001 4.837 0 7.603-1.573 9.371-3.749 1.899-2.336 2.967-5.759 3.51-9.985Zm6.503 0c.543 4.226 1.611 7.649 3.51 9.985 1.768 2.176 4.533 3.749 9.371 3.749 6.292 0 9.165-1.346 10.624-3.001 1.535-1.74 2.232-4.601 2.232-9.443 0-4.557-.97-7.383-2.817-9.272-1.908-1.952-5.274-3.446-11.294-4.098-5.943-.643-8.763.553-10.127 2.115-1.074 1.229-1.747 3.231-1.752 6.308v.084c.002 1.06.083 2.247.253 3.573Zm-2.563 11.734h.066l-.066-.001v.001Z`}),f.createElement(`path`,{d:`M38.5 55.75a3.5 3.5 0 0 1 3.5 3.5v8.5a3.5 3.5 0 1 1-7 0v-8.5a3.5 3.5 0 0 1 3.5-3.5Zm19 0a3.5 3.5 0 0 1 3.5 3.5v8.5a3.5 3.5 0 1 1-7 0v-8.5a3.5 3.5 0 0 1 3.5-3.5Z`}))}},Cr=f.forwardRef(function(e,t){return B(e,t,`octicon octicon-copilot`,Sr,xr)});Cr.displayName=`CopilotIcon`;var wr=[`16`,`24`],Tr={16:{width:16,path:f.createElement(f.Fragment,null,f.createElement(`path`,{d:`M0 6.75C0 5.784.784 5 1.75 5h1.5a.75.75 0 0 1 0 1.5h-1.5a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-1.5a.75.75 0 0 1 1.5 0v1.5A1.75 1.75 0 0 1 9.25 16h-7.5A1.75 1.75 0 0 1 0 14.25Z`}),f.createElement(`path`,{d:`M5 1.75C5 .784 5.784 0 6.75 0h7.5C15.216 0 16 .784 16 1.75v7.5A1.75 1.75 0 0 1 14.25 11h-7.5A1.75 1.75 0 0 1 5 9.25Zm1.75-.25a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-7.5a.25.25 0 0 0-.25-.25Z`}))},24:{width:24,path:f.createElement(f.Fragment,null,f.createElement(`path`,{d:`M7.024 3.75c0-.966.784-1.75 1.75-1.75H20.25c.966 0 1.75.784 1.75 1.75v11.498a1.75 1.75 0 0 1-1.75 1.75H8.774a1.75 1.75 0 0 1-1.75-1.75Zm1.75-.25a.25.25 0 0 0-.25.25v11.498c0 .139.112.25.25.25H20.25a.25.25 0 0 0 .25-.25V3.75a.25.25 0 0 0-.25-.25Z`}),f.createElement(`path`,{d:`M1.995 10.749a1.75 1.75 0 0 1 1.75-1.751H5.25a.75.75 0 1 1 0 1.5H3.745a.25.25 0 0 0-.25.25L3.5 20.25c0 .138.111.25.25.25h9.5a.25.25 0 0 0 .25-.25v-1.51a.75.75 0 1 1 1.5 0v1.51A1.75 1.75 0 0 1 13.25 22h-9.5A1.75 1.75 0 0 1 2 20.25l-.005-9.501Z`}))}},Er=f.forwardRef(function(e,t){return B(e,t,`octicon octicon-copy`,Tr,wr)});Er.displayName=`CopyIcon`;var Dr=[`16`,`24`],Or={16:{width:16,path:f.createElement(`path`,{d:`M2.75 1h10.5c.966 0 1.75.784 1.75 1.75v10.5A1.75 1.75 0 0 1 13.25 15H2.75A1.75 1.75 0 0 1 1 13.25V2.75C1 1.784 1.784 1 2.75 1Zm10.5 1.5H2.75a.25.25 0 0 0-.25.25v10.5c0 .138.112.25.25.25h10.5a.25.25 0 0 0 .25-.25V2.75a.25.25 0 0 0-.25-.25ZM8 4a.75.75 0 0 1 .75.75v2.5h2.5a.75.75 0 0 1 0 1.5h-2.5v2.5a.75.75 0 0 1-1.5 0v-2.5h-2.5a.75.75 0 0 1 0-1.5h2.5v-2.5A.75.75 0 0 1 8 4Z`})},24:{width:24,path:f.createElement(f.Fragment,null,f.createElement(`path`,{d:`M12.75 7a.75.75 0 0 0-1.5 0v4.25H7a.75.75 0 0 0 0 1.5h4.25V17a.75.75 0 0 0 1.5 0v-4.25H17a.75.75 0 0 0 0-1.5h-4.25V7Z`}),f.createElement(`path`,{d:`M3.75 2A1.75 1.75 0 0 0 2 3.75v16.5c0 .966.784 1.75 1.75 1.75h16.5A1.75 1.75 0 0 0 22 20.25V3.75A1.75 1.75 0 0 0 20.25 2H3.75ZM3.5 3.75a.25.25 0 0 1 .25-.25h16.5a.25.25 0 0 1 .25.25v16.5a.25.25 0 0 1-.25.25H3.75a.25.25 0 0 1-.25-.25V3.75Z`}))}},kr=f.forwardRef(function(e,t){return B(e,t,`octicon octicon-diff-added`,Or,Dr)});kr.displayName=`DiffAddedIcon`;var Ar=[`16`,`24`],jr={16:{width:16,path:f.createElement(`path`,{d:`M13.25 1c.966 0 1.75.784 1.75 1.75v10.5A1.75 1.75 0 0 1 13.25 15H2.75A1.75 1.75 0 0 1 1 13.25V2.75C1 1.784 1.784 1 2.75 1ZM2.75 2.5a.25.25 0 0 0-.25.25v10.5c0 .138.112.25.25.25h10.5a.25.25 0 0 0 .25-.25V2.75a.25.25 0 0 0-.25-.25ZM8 10a2 2 0 1 1-.001-3.999A2 2 0 0 1 8 10Z`})},24:{width:24,path:f.createElement(f.Fragment,null,f.createElement(`path`,{d:`M2 3.75C2 2.784 2.784 2 3.75 2h16.5c.966 0 1.75.784 1.75 1.75v16.5A1.75 1.75 0 0 1 20.25 22H3.75A1.75 1.75 0 0 1 2 20.25V3.75Zm1.75-.25a.25.25 0 0 0-.25.25v16.5c0 .138.112.25.25.25h16.5a.25.25 0 0 0 .25-.25V3.75a.25.25 0 0 0-.25-.25H3.75Z`}),f.createElement(`path`,{d:`M14.5 12a2.5 2.5 0 1 1-5 0 2.5 2.5 0 0 1 5 0Z`}))}},Mr=f.forwardRef(function(e,t){return B(e,t,`octicon octicon-diff-modified`,jr,Ar)});Mr.displayName=`DiffModifiedIcon`;var Nr=[`16`,`24`],Pr={16:{width:16,path:f.createElement(`path`,{d:`M13.25 1c.966 0 1.75.784 1.75 1.75v10.5A1.75 1.75 0 0 1 13.25 15H2.75A1.75 1.75 0 0 1 1 13.25V2.75C1 1.784 1.784 1 2.75 1ZM2.75 2.5a.25.25 0 0 0-.25.25v10.5c0 .138.112.25.25.25h10.5a.25.25 0 0 0 .25-.25V2.75a.25.25 0 0 0-.25-.25Zm8.5 6.25h-6.5a.75.75 0 0 1 0-1.5h6.5a.75.75 0 0 1 0 1.5Z`})},24:{width:24,path:f.createElement(f.Fragment,null,f.createElement(`path`,{d:`M7.313 11.25a.75.75 0 0 0 0 1.5h9.937a.75.75 0 0 0 0-1.5H7.312Z`}),f.createElement(`path`,{d:`M3.75 2A1.75 1.75 0 0 0 2 3.75v16.5c0 .966.784 1.75 1.75 1.75h16.5A1.75 1.75 0 0 0 22 20.25V3.75A1.75 1.75 0 0 0 20.25 2H3.75ZM3.5 3.75a.25.25 0 0 1 .25-.25h16.5a.25.25 0 0 1 .25.25v16.5a.25.25 0 0 1-.25.25H3.75a.25.25 0 0 1-.25-.25V3.75Z`}))}},Fr=f.forwardRef(function(e,t){return B(e,t,`octicon octicon-diff-removed`,Pr,Nr)});Fr.displayName=`DiffRemovedIcon`;var Ir=[`16`,`24`],Lr={16:{width:16,path:f.createElement(`path`,{d:`M13.25 1c.966 0 1.75.784 1.75 1.75v10.5A1.75 1.75 0 0 1 13.25 15H2.75A1.75 1.75 0 0 1 1 13.25V2.75C1 1.784 1.784 1 2.75 1ZM2.75 2.5a.25.25 0 0 0-.25.25v10.5c0 .138.112.25.25.25h10.5a.25.25 0 0 0 .25-.25V2.75a.25.25 0 0 0-.25-.25Zm9.03 6.03-3.25 3.25a.749.749 0 0 1-1.275-.326.749.749 0 0 1 .215-.734l1.97-1.97H4.75a.75.75 0 0 1 0-1.5h4.69L7.47 5.28a.751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018l3.25 3.25a.75.75 0 0 1 0 1.06Z`})},24:{width:24,path:f.createElement(f.Fragment,null,f.createElement(`path`,{d:`M13.75 12.75v3.347a.25.25 0 0 0 .436.166l3.672-4.096a.25.25 0 0 0 0-.334l-3.672-4.096a.25.25 0 0 0-.436.166v3.347h-7a.75.75 0 0 0 0 1.5h7Z`}),f.createElement(`path`,{d:`M2 3.75C2 2.784 2.784 2 3.75 2h16.5c.966 0 1.75.784 1.75 1.75v16.5A1.75 1.75 0 0 1 20.25 22H3.75A1.75 1.75 0 0 1 2 20.25V3.75Zm1.75-.25a.25.25 0 0 0-.25.25v16.5c0 .138.112.25.25.25h16.5a.25.25 0 0 0 .25-.25V3.75a.25.25 0 0 0-.25-.25H3.75Z`}))}},Rr=f.forwardRef(function(e,t){return B(e,t,`octicon octicon-diff-renamed`,Lr,Ir)});Rr.displayName=`DiffRenamedIcon`;var zr=[`16`,`24`],Br={16:{width:16,path:f.createElement(`path`,{d:`M0 5.75C0 4.784.784 4 1.75 4h12.5c.966 0 1.75.784 1.75 1.75v4.5A1.75 1.75 0 0 1 14.25 12H1.75A1.75 1.75 0 0 1 0 10.25ZM12 7a1 1 0 1 0 0 2 1 1 0 0 0 0-2ZM7 8a1 1 0 1 0 2 0 1 1 0 0 0-2 0ZM4 7a1 1 0 1 0 0 2 1 1 0 0 0 0-2Z`})},24:{width:24,path:f.createElement(`path`,{d:`M22 9.75v5.5A1.75 1.75 0 0 1 20.25 17H3.75A1.75 1.75 0 0 1 2 15.25v-5.5C2 8.784 2.784 8 3.75 8h16.5c.966 0 1.75.784 1.75 1.75Zm-8.75 2.75a1.25 1.25 0 1 0-2.5 0 1.25 1.25 0 0 0 2.5 0Zm-6.5 1.25a1.25 1.25 0 1 0 0-2.5 1.25 1.25 0 0 0 0 2.5Zm10.5 0a1.25 1.25 0 1 0 0-2.5 1.25 1.25 0 0 0 0 2.5Z`})}},Vr=f.forwardRef(function(e,t){return B(e,t,`octicon octicon-ellipsis`,Br,zr)});Vr.displayName=`EllipsisIcon`;var Hr=[`16`,`24`],Ur={16:{width:16,path:f.createElement(`path`,{d:`M2 1.75C2 .784 2.784 0 3.75 0h6.586c.464 0 .909.184 1.237.513l2.914 2.914c.329.328.513.773.513 1.237v9.586A1.75 1.75 0 0 1 13.25 16h-9.5A1.75 1.75 0 0 1 2 14.25Zm1.75-.25a.25.25 0 0 0-.25.25v12.5c0 .138.112.25.25.25h9.5a.25.25 0 0 0 .25-.25V6h-2.75A1.75 1.75 0 0 1 9 4.25V1.5Zm6.75.062V4.25c0 .138.112.25.25.25h2.688l-.011-.013-2.914-2.914-.013-.011Z`})},24:{width:24,path:f.createElement(`path`,{d:`M3 3a2 2 0 0 1 2-2h9.982a2 2 0 0 1 1.414.586l4.018 4.018A2 2 0 0 1 21 7.018V21a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2Zm2-.5a.5.5 0 0 0-.5.5v18a.5.5 0 0 0 .5.5h14a.5.5 0 0 0 .5-.5V8.5h-4a2 2 0 0 1-2-2v-4Zm10 0v4a.5.5 0 0 0 .5.5h4a.5.5 0 0 0-.146-.336l-4.018-4.018A.5.5 0 0 0 15 2.5Z`})}},Wr=f.forwardRef(function(e,t){return B(e,t,`octicon octicon-file`,Ur,Hr)});Wr.displayName=`FileIcon`;var Gr=[`16`,`24`],Kr={16:{width:16,path:f.createElement(`path`,{d:`M4 1.75C4 .784 4.784 0 5.75 0h5.586c.464 0 .909.184 1.237.513l2.914 2.914c.329.328.513.773.513 1.237v8.586A1.75 1.75 0 0 1 14.25 15h-9a.75.75 0 0 1 0-1.5h9a.25.25 0 0 0 .25-.25V6h-2.75A1.75 1.75 0 0 1 10 4.25V1.5H5.75a.25.25 0 0 0-.25.25v2a.75.75 0 0 1-1.5 0Zm-4 6C0 6.784.784 6 1.75 6h1.5C4.216 6 5 6.784 5 7.75v2.5A1.75 1.75 0 0 1 3.25 12h-1.5A1.75 1.75 0 0 1 0 10.25ZM6.75 6h1.5a.75.75 0 0 1 .75.75v3.75h.75a.75.75 0 0 1 0 1.5h-3a.75.75 0 0 1 0-1.5h.75v-3h-.75a.75.75 0 0 1 0-1.5Zm-5 1.5a.25.25 0 0 0-.25.25v2.5c0 .138.112.25.25.25h1.5a.25.25 0 0 0 .25-.25v-2.5a.25.25 0 0 0-.25-.25Zm9.75-5.938V4.25c0 .138.112.25.25.25h2.688l-.011-.013-2.914-2.914-.013-.011Z`})},24:{width:24,path:f.createElement(f.Fragment,null,f.createElement(`path`,{d:`M3 3a2 2 0 0 1 2-2h9.982a2 2 0 0 1 1.414.586l4.018 4.018A2 2 0 0 1 21 7.018V21a2 2 0 0 1-2 2H4.75a.75.75 0 0 1 0-1.5H19a.5.5 0 0 0 .5-.5V8.5h-4a2 2 0 0 1-2-2v-4H5a.5.5 0 0 0-.5.5v6.25a.75.75 0 0 1-1.5 0Zm12-.5v4a.5.5 0 0 0 .5.5h4a.5.5 0 0 0-.146-.336l-4.018-4.018A.5.5 0 0 0 15 2.5Z`}),f.createElement(`path`,{d:`M0 13.75C0 12.784.784 12 1.75 12h3c.966 0 1.75.784 1.75 1.75v4a1.75 1.75 0 0 1-1.75 1.75h-3A1.75 1.75 0 0 1 0 17.75Zm1.75-.25a.25.25 0 0 0-.25.25v4c0 .138.112.25.25.25h3a.25.25 0 0 0 .25-.25v-4a.25.25 0 0 0-.25-.25ZM9 12a.75.75 0 0 0 0 1.5h1.5V18H9a.75.75 0 0 0 0 1.5h4.5a.75.75 0 0 0 0-1.5H12v-5.25a.75.75 0 0 0-.75-.75H9Z`}))}},qr=f.forwardRef(function(e,t){return B(e,t,`octicon octicon-file-binary`,Kr,Gr)});qr.displayName=`FileBinaryIcon`;var Jr=[`16`,`24`],Yr={16:{width:16,path:f.createElement(`path`,{d:`M1 1.75C1 .784 1.784 0 2.75 0h7.586c.464 0 .909.184 1.237.513l2.914 2.914c.329.328.513.773.513 1.237v9.586A1.75 1.75 0 0 1 13.25 16H2.75A1.75 1.75 0 0 1 1 14.25Zm1.75-.25a.25.25 0 0 0-.25.25v12.5c0 .138.112.25.25.25h10.5a.25.25 0 0 0 .25-.25V4.664a.25.25 0 0 0-.073-.177l-2.914-2.914a.25.25 0 0 0-.177-.073ZM8 3.25a.75.75 0 0 1 .75.75v1.5h1.5a.75.75 0 0 1 0 1.5h-1.5v1.5a.75.75 0 0 1-1.5 0V7h-1.5a.75.75 0 0 1 0-1.5h1.5V4A.75.75 0 0 1 8 3.25Zm-3 8a.75.75 0 0 1 .75-.75h4.5a.75.75 0 0 1 0 1.5h-4.5a.75.75 0 0 1-.75-.75Z`})},24:{width:24,path:f.createElement(f.Fragment,null,f.createElement(`path`,{d:`M12.5 6.75a.75.75 0 0 0-1.5 0V9H8.75a.75.75 0 0 0 0 1.5H11v2.25a.75.75 0 0 0 1.5 0V10.5h2.25a.75.75 0 0 0 0-1.5H12.5V6.75ZM8.75 16a.75.75 0 0 0 0 1.5h6a.75.75 0 0 0 0-1.5h-6Z`}),f.createElement(`path`,{d:`M5 1h9.982a2 2 0 0 1 1.414.586l4.018 4.018A2 2 0 0 1 21 7.018V21a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2Zm-.5 2v18a.5.5 0 0 0 .5.5h14a.5.5 0 0 0 .5-.5V7.018a.5.5 0 0 0-.146-.354l-4.018-4.018a.5.5 0 0 0-.354-.146H5a.5.5 0 0 0-.5.5Z`}))}},Xr=f.forwardRef(function(e,t){return B(e,t,`octicon octicon-file-diff`,Yr,Jr)});Xr.displayName=`FileDiffIcon`;var Zr=[`16`,`24`],Qr={16:{width:16,path:f.createElement(`path`,{d:`M1.75 1A1.75 1.75 0 0 0 0 2.75v10.5C0 14.216.784 15 1.75 15h12.5A1.75 1.75 0 0 0 16 13.25v-8.5A1.75 1.75 0 0 0 14.25 3H7.5a.25.25 0 0 1-.2-.1l-.9-1.2C6.07 1.26 5.55 1 5 1H1.75Z`})},24:{width:24,path:f.createElement(`path`,{d:`M2 4.75C2 3.784 2.784 3 3.75 3h4.971c.58 0 1.12.286 1.447.765l1.404 2.063c.046.069.124.11.207.11h8.471c.966 0 1.75.783 1.75 1.75V19.25A1.75 1.75 0 0 1 20.25 21H3.75A1.75 1.75 0 0 1 2 19.25Z`})}},$r=f.forwardRef(function(e,t){return B(e,t,`octicon octicon-file-directory-fill`,Qr,Zr)});$r.displayName=`FileDirectoryFillIcon`;var ei=[`16`,`24`],ti={16:{width:16,path:f.createElement(`path`,{d:`M.513 1.513A1.75 1.75 0 0 1 1.75 1h3.5c.55 0 1.07.26 1.4.7l.9 1.2a.25.25 0 0 0 .2.1H13a1 1 0 0 1 1 1v.5H2.75a.75.75 0 0 0 0 1.5h11.978a1 1 0 0 1 .994 1.117L15 13.25A1.75 1.75 0 0 1 13.25 15H1.75A1.75 1.75 0 0 1 0 13.25V2.75c0-.464.184-.91.513-1.237Z`})},24:{width:24,path:f.createElement(`path`,{d:`M2 4.75C2 3.784 2.784 3 3.75 3h4.971c.58 0 1.12.286 1.447.765l1.404 2.063a.25.25 0 0 0 .207.11h6.224c.966 0 1.75.783 1.75 1.75v.117H5.408a.848.848 0 0 0 0 1.695h15.484a1 1 0 0 1 .995 1.102L21 19.25c-.106 1.05-.784 1.75-1.75 1.75H3.75A1.75 1.75 0 0 1 2 19.25V4.75Z`})}},ni=f.forwardRef(function(e,t){return B(e,t,`octicon octicon-file-directory-open-fill`,ti,ei)});ni.displayName=`FileDirectoryOpenFillIcon`;var ri=[`16`,`24`],ii={16:{width:16,path:f.createElement(`path`,{d:`M0 2.75C0 1.784.784 1 1.75 1H5c.55 0 1.07.26 1.4.7l.9 1.2a.25.25 0 0 0 .2.1h6.75c.966 0 1.75.784 1.75 1.75v8.5A1.75 1.75 0 0 1 14.25 15H1.75A1.75 1.75 0 0 1 0 13.25Zm9.42 9.36 2.883-2.677a.25.25 0 0 0 0-.366L9.42 6.39a.249.249 0 0 0-.42.183V8.5H4.75a.75.75 0 0 0 0 1.5H9v1.927c0 .218.26.331.42.183Z`})},24:{width:24,path:f.createElement(`path`,{d:`M2 4.75C2 3.784 2.784 3 3.75 3h4.965a1.75 1.75 0 0 1 1.456.78l1.406 2.109a.25.25 0 0 0 .208.111h8.465c.966 0 1.75.784 1.75 1.75v11.5A1.75 1.75 0 0 1 20.25 21H3.75A1.75 1.75 0 0 1 2 19.25Zm12.78 4.97a.749.749 0 0 0-1.275.326.749.749 0 0 0 .215.734l1.72 1.72H6.75a.75.75 0 0 0 0 1.5h8.69l-1.72 1.72a.749.749 0 0 0 .326 1.275.749.749 0 0 0 .734-.215l3-3a.75.75 0 0 0 0-1.06Z`})}},ai=f.forwardRef(function(e,t){return B(e,t,`octicon octicon-file-submodule`,ii,ri)});ai.displayName=`FileSubmoduleIcon`;var oi=[`16`,`24`],si={16:{width:16,path:f.createElement(`path`,{d:`m8.177 14.323 2.896-2.896a.25.25 0 0 0-.177-.427H8.75V7.764a.75.75 0 1 0-1.5 0V11H5.104a.25.25 0 0 0-.177.427l2.896 2.896a.25.25 0 0 0 .354 0ZM2.25 5a.75.75 0 0 0 0-1.5h-.5a.75.75 0 0 0 0 1.5h.5ZM6 4.25a.75.75 0 0 1-.75.75h-.5a.75.75 0 0 1 0-1.5h.5a.75.75 0 0 1 .75.75ZM8.25 5a.75.75 0 0 0 0-1.5h-.5a.75.75 0 0 0 0 1.5h.5ZM12 4.25a.75.75 0 0 1-.75.75h-.5a.75.75 0 0 1 0-1.5h.5a.75.75 0 0 1 .75.75Zm2.25.75a.75.75 0 0 0 0-1.5h-.5a.75.75 0 0 0 0 1.5h.5Z`})},24:{width:24,path:f.createElement(f.Fragment,null,f.createElement(`path`,{d:`M12 19a.749.749 0 0 1-.53-.22l-3.25-3.25a.749.749 0 0 1 .326-1.275.749.749 0 0 1 .734.215L12 17.19l2.72-2.72a.749.749 0 0 1 1.275.326.749.749 0 0 1-.215.734l-3.25 3.25A.749.749 0 0 1 12 19Z`}),f.createElement(`path`,{d:`M12 18a.75.75 0 0 1-.75-.75v-7.5a.75.75 0 0 1 1.5 0v7.5A.75.75 0 0 1 12 18ZM2.75 6a.75.75 0 0 1 .75-.75h1a.75.75 0 0 1 0 1.5h-1A.75.75 0 0 1 2.75 6Zm4 0a.75.75 0 0 1 .75-.75h1a.75.75 0 0 1 0 1.5h-1A.75.75 0 0 1 6.75 6Zm4 0a.75.75 0 0 1 .75-.75h1a.75.75 0 0 1 0 1.5h-1a.75.75 0 0 1-.75-.75Zm4 0a.75.75 0 0 1 .75-.75h1a.75.75 0 0 1 0 1.5h-1a.75.75 0 0 1-.75-.75Zm4 0a.75.75 0 0 1 .75-.75h1a.75.75 0 0 1 0 1.5h-1a.75.75 0 0 1-.75-.75Z`}))}},ci=f.forwardRef(function(e,t){return B(e,t,`octicon octicon-fold-down`,si,oi)});ci.displayName=`FoldDownIcon`;var li=[`16`,`24`],ui={16:{width:16,path:f.createElement(`path`,{d:`M7.823 1.677 4.927 4.573A.25.25 0 0 0 5.104 5H7.25v3.236a.75.75 0 1 0 1.5 0V5h2.146a.25.25 0 0 0 .177-.427L8.177 1.677a.25.25 0 0 0-.354 0ZM13.75 11a.75.75 0 0 0 0 1.5h.5a.75.75 0 0 0 0-1.5h-.5Zm-3.75.75a.75.75 0 0 1 .75-.75h.5a.75.75 0 0 1 0 1.5h-.5a.75.75 0 0 1-.75-.75ZM7.75 11a.75.75 0 0 0 0 1.5h.5a.75.75 0 0 0 0-1.5h-.5ZM4 11.75a.75.75 0 0 1 .75-.75h.5a.75.75 0 0 1 0 1.5h-.5a.75.75 0 0 1-.75-.75ZM1.75 11a.75.75 0 0 0 0 1.5h.5a.75.75 0 0 0 0-1.5h-.5Z`})},24:{width:24,path:f.createElement(f.Fragment,null,f.createElement(`path`,{d:`M11.47 5.22a.75.75 0 0 1 1.06 0l3.25 3.25a.751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018L12 6.81 9.28 9.53a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Z`}),f.createElement(`path`,{d:`M12 5.5a.75.75 0 0 1 .75.75v8a.75.75 0 0 1-1.5 0v-8A.75.75 0 0 1 12 5.5ZM2.75 18a.75.75 0 0 1 .75-.75h1a.75.75 0 0 1 0 1.5h-1a.75.75 0 0 1-.75-.75Zm4 0a.75.75 0 0 1 .75-.75h1a.75.75 0 0 1 0 1.5h-1a.75.75 0 0 1-.75-.75Zm4 0a.75.75 0 0 1 .75-.75h1a.75.75 0 0 1 0 1.5h-1a.75.75 0 0 1-.75-.75Zm4 0a.75.75 0 0 1 .75-.75h1a.75.75 0 0 1 0 1.5h-1a.75.75 0 0 1-.75-.75Zm4 0a.75.75 0 0 1 .75-.75h1a.75.75 0 0 1 0 1.5h-1a.75.75 0 0 1-.75-.75Z`}))}},di=f.forwardRef(function(e,t){return B(e,t,`octicon octicon-fold-up`,ui,li)});di.displayName=`FoldUpIcon`;var fi=[`16`,`24`],pi={16:{width:16,path:f.createElement(`path`,{d:`M11.93 8.5a4.002 4.002 0 0 1-7.86 0H.75a.75.75 0 0 1 0-1.5h3.32a4.002 4.002 0 0 1 7.86 0h3.32a.75.75 0 0 1 0 1.5Zm-1.43-.75a2.5 2.5 0 1 0-5 0 2.5 2.5 0 0 0 5 0Z`})},24:{width:24,path:f.createElement(`path`,{d:`M16.944 11h4.306a.75.75 0 0 1 0 1.5h-4.306a5.001 5.001 0 0 1-9.888 0H2.75a.75.75 0 0 1 0-1.5h4.306a5.001 5.001 0 0 1 9.888 0Zm-1.444.75a3.5 3.5 0 1 0-7 0 3.5 3.5 0 0 0 7 0Z`})}},mi=f.forwardRef(function(e,t){return B(e,t,`octicon octicon-git-commit`,pi,fi)});mi.displayName=`GitCommitIcon`;var hi=[`16`,`24`],gi={16:{width:16,path:f.createElement(`path`,{d:`M9.573.677A.25.25 0 0 1 10 .854V2.5h1A2.5 2.5 0 0 1 13.5 5v5.628a2.251 2.251 0 1 1-1.5 0V5a1 1 0 0 0-1-1h-1v1.646a.25.25 0 0 1-.427.177L7.177 3.427a.25.25 0 0 1 0-.354ZM6 12v-1.646a.25.25 0 0 1 .427-.177l2.396 2.396a.25.25 0 0 1 0 .354l-2.396 2.396A.25.25 0 0 1 6 15.146V13.5H5A2.5 2.5 0 0 1 2.5 11V5.372a2.25 2.25 0 1 1 1.5 0V11a1 1 0 0 0 1 1ZM4 3.25a.75.75 0 1 0-1.5 0 .75.75 0 0 0 1.5 0ZM12.75 12a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5Z`})},24:{width:24,path:f.createElement(f.Fragment,null,f.createElement(`path`,{d:`M16.5 19.25a3.25 3.25 0 1 1 6.5 0 3.25 3.25 0 0 1-6.5 0Zm3.25-1.75a1.75 1.75 0 1 0 .001 3.501 1.75 1.75 0 0 0-.001-3.501Z`}),f.createElement(`path`,{d:`M13.905 1.72a.75.75 0 0 1 0 1.06L12.685 4h4.065a3.75 3.75 0 0 1 3.75 3.75v8.75a.75.75 0 0 1-1.5 0V7.75a2.25 2.25 0 0 0-2.25-2.25h-4.064l1.22 1.22a.75.75 0 0 1-1.061 1.06l-2.5-2.5a.75.75 0 0 1 0-1.06l2.5-2.5a.75.75 0 0 1 1.06 0ZM7.5 4.75a3.25 3.25 0 1 1-6.5 0 3.25 3.25 0 0 1 6.5 0ZM4.25 6.5a1.75 1.75 0 1 0-.001-3.501A1.75 1.75 0 0 0 4.25 6.5Z`}),f.createElement(`path`,{d:`M10.095 22.28a.75.75 0 0 1 0-1.06l1.22-1.22H7.25a3.75 3.75 0 0 1-3.75-3.75V7.5a.75.75 0 0 1 1.5 0v8.75a2.25 2.25 0 0 0 2.25 2.25h4.064l-1.22-1.22a.748.748 0 0 1 .332-1.265.75.75 0 0 1 .729.205l2.5 2.5a.75.75 0 0 1 0 1.06l-2.5 2.5a.75.75 0 0 1-1.06 0Z`}))}},_i=f.forwardRef(function(e,t){return B(e,t,`octicon octicon-git-compare`,gi,hi)});_i.displayName=`GitCompareIcon`;var vi=[`16`,`24`],yi={16:{width:16,path:f.createElement(`path`,{d:`M5.45 5.154A4.25 4.25 0 0 0 9.25 7.5h1.378a2.251 2.251 0 1 1 0 1.5H9.25A5.734 5.734 0 0 1 5 7.123v3.505a2.25 2.25 0 1 1-1.5 0V5.372a2.25 2.25 0 1 1 1.95-.218ZM4.25 13.5a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5Zm8.5-4.5a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5ZM5 3.25a.75.75 0 1 0 0 .005V3.25Z`})},24:{width:24,path:f.createElement(f.Fragment,null,f.createElement(`path`,{d:`M15 13.25a3.25 3.25 0 1 1 6.5 0 3.25 3.25 0 0 1-6.5 0Zm-12.5 6a3.25 3.25 0 1 1 6.5 0 3.25 3.25 0 0 1-6.5 0Zm0-14.5a3.25 3.25 0 1 1 6.5 0 3.25 3.25 0 0 1-6.5 0ZM5.75 6.5a1.75 1.75 0 1 0-.001-3.501A1.75 1.75 0 0 0 5.75 6.5Zm0 14.5a1.75 1.75 0 1 0-.001-3.501A1.75 1.75 0 0 0 5.75 21Zm12.5-6a1.75 1.75 0 1 0-.001-3.501A1.75 1.75 0 0 0 18.25 15Z`}),f.createElement(`path`,{d:`M6.5 7.25c0 2.9 2.35 5.25 5.25 5.25h4.5V14h-4.5A6.75 6.75 0 0 1 5 7.25Z`}),f.createElement(`path`,{d:`M5.75 16.75A.75.75 0 0 1 5 16V8a.75.75 0 0 1 1.5 0v8a.75.75 0 0 1-.75.75Z`}))}},bi=f.forwardRef(function(e,t){return B(e,t,`octicon octicon-git-merge`,yi,vi)});bi.displayName=`GitMergeIcon`;var xi=[`16`,`24`],Si={16:{width:16,path:f.createElement(`path`,{d:`M1.5 3.25a2.25 2.25 0 1 1 3 2.122v5.256a2.251 2.251 0 1 1-1.5 0V5.372A2.25 2.25 0 0 1 1.5 3.25Zm5.677-.177L9.573.677A.25.25 0 0 1 10 .854V2.5h1A2.5 2.5 0 0 1 13.5 5v5.628a2.251 2.251 0 1 1-1.5 0V5a1 1 0 0 0-1-1h-1v1.646a.25.25 0 0 1-.427.177L7.177 3.427a.25.25 0 0 1 0-.354ZM3.75 2.5a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5Zm0 9.5a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5Zm8.25.75a.75.75 0 1 0 1.5 0 .75.75 0 0 0-1.5 0Z`})},24:{width:24,path:f.createElement(f.Fragment,null,f.createElement(`path`,{d:`M16 19.25a3.25 3.25 0 1 1 6.5 0 3.25 3.25 0 0 1-6.5 0Zm-14.5 0a3.25 3.25 0 1 1 6.5 0 3.25 3.25 0 0 1-6.5 0Zm0-14.5a3.25 3.25 0 1 1 6.5 0 3.25 3.25 0 0 1-6.5 0ZM4.75 3a1.75 1.75 0 1 0 .001 3.501A1.75 1.75 0 0 0 4.75 3Zm0 14.5a1.75 1.75 0 1 0 .001 3.501A1.75 1.75 0 0 0 4.75 17.5Zm14.5 0a1.75 1.75 0 1 0 .001 3.501 1.75 1.75 0 0 0-.001-3.501Z`}),f.createElement(`path`,{d:`M13.405 1.72a.75.75 0 0 1 0 1.06L12.185 4h4.065A3.75 3.75 0 0 1 20 7.75v8.75a.75.75 0 0 1-1.5 0V7.75a2.25 2.25 0 0 0-2.25-2.25h-4.064l1.22 1.22a.75.75 0 0 1-1.061 1.06l-2.5-2.5a.75.75 0 0 1 0-1.06l2.5-2.5a.75.75 0 0 1 1.06 0ZM4.75 7.25A.75.75 0 0 1 5.5 8v8A.75.75 0 0 1 4 16V8a.75.75 0 0 1 .75-.75Z`}))}},Ci=f.forwardRef(function(e,t){return B(e,t,`octicon octicon-git-pull-request`,Si,xi)});Ci.displayName=`GitPullRequestIcon`;var wi=[`16`,`24`],Ti={16:{width:16,path:f.createElement(`path`,{d:`M3.25 1A2.25 2.25 0 0 1 4 5.372v5.256a2.251 2.251 0 1 1-1.5 0V5.372A2.251 2.251 0 0 1 3.25 1Zm9.5 5.5a.75.75 0 0 1 .75.75v3.378a2.251 2.251 0 1 1-1.5 0V7.25a.75.75 0 0 1 .75-.75Zm-2.03-5.273a.75.75 0 0 1 1.06 0l.97.97.97-.97a.748.748 0 0 1 1.265.332.75.75 0 0 1-.205.729l-.97.97.97.97a.751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018l-.97-.97-.97.97a.749.749 0 0 1-1.275-.326.749.749 0 0 1 .215-.734l.97-.97-.97-.97a.75.75 0 0 1 0-1.06ZM2.5 3.25a.75.75 0 1 0 1.5 0 .75.75 0 0 0-1.5 0ZM3.25 12a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5Zm9.5 0a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5Z`})},24:{width:24,path:f.createElement(`path`,{d:`M22.266 2.711a.75.75 0 1 0-1.061-1.06l-1.983 1.983-1.984-1.983a.75.75 0 1 0-1.06 1.06l1.983 1.983-1.983 1.984a.75.75 0 0 0 1.06 1.06l1.984-1.983 1.983 1.983a.75.75 0 0 0 1.06-1.06l-1.983-1.984 1.984-1.983ZM4.75 1.5a3.25 3.25 0 0 1 .745 6.414A.827.827 0 0 1 5.5 8v8a.827.827 0 0 1-.005.086A3.25 3.25 0 0 1 4.75 22.5a3.25 3.25 0 0 1-.745-6.414A.827.827 0 0 1 4 16V8c0-.029.002-.057.005-.086A3.25 3.25 0 0 1 4.75 1.5ZM16 19.25a3.252 3.252 0 0 1 2.5-3.163V9.625a.75.75 0 0 1 1.5 0v6.462a3.252 3.252 0 0 1-.75 6.413A3.25 3.25 0 0 1 16 19.25ZM3 4.75a1.75 1.75 0 1 0 3.501-.001A1.75 1.75 0 0 0 3 4.75Zm0 14.5a1.75 1.75 0 1 0 3.501-.001A1.75 1.75 0 0 0 3 19.25Zm16.25-1.75a1.75 1.75 0 1 0 .001 3.501 1.75 1.75 0 0 0-.001-3.501Z`})}},Ei=f.forwardRef(function(e,t){return B(e,t,`octicon octicon-git-pull-request-closed`,Ti,wi)});Ei.displayName=`GitPullRequestClosedIcon`;var Di=[`16`,`24`],Oi={16:{width:16,path:f.createElement(`path`,{d:`M3.25 1A2.25 2.25 0 0 1 4 5.372v5.256a2.251 2.251 0 1 1-1.5 0V5.372A2.251 2.251 0 0 1 3.25 1Zm9.5 14a2.25 2.25 0 1 1 0-4.5 2.25 2.25 0 0 1 0 4.5ZM2.5 3.25a.75.75 0 1 0 1.5 0 .75.75 0 0 0-1.5 0ZM3.25 12a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5Zm9.5 0a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5ZM14 7.5a1.25 1.25 0 1 1-2.5 0 1.25 1.25 0 0 1 2.5 0Zm0-4.25a1.25 1.25 0 1 1-2.5 0 1.25 1.25 0 0 1 2.5 0Z`})},24:{width:24,path:f.createElement(`path`,{d:`M4.75 1.5a3.25 3.25 0 0 1 .745 6.414A.827.827 0 0 1 5.5 8v8a.827.827 0 0 1-.005.086A3.25 3.25 0 0 1 4.75 22.5a3.25 3.25 0 0 1-.745-6.414A.827.827 0 0 1 4 16V8c0-.029.002-.057.005-.086A3.25 3.25 0 0 1 4.75 1.5ZM16 19.25a3.25 3.25 0 1 1 6.5 0 3.25 3.25 0 0 1-6.5 0ZM3 4.75a1.75 1.75 0 1 0 3.501-.001A1.75 1.75 0 0 0 3 4.75Zm0 14.5a1.75 1.75 0 1 0 3.501-.001A1.75 1.75 0 0 0 3 19.25Zm16.25-1.75a1.75 1.75 0 1 0 .001 3.501 1.75 1.75 0 0 0-.001-3.501Zm0-11.5a1.75 1.75 0 1 0 0-3.5 1.75 1.75 0 0 0 0 3.5ZM21 11.25a1.75 1.75 0 1 1-3.5 0 1.75 1.75 0 0 1 3.5 0Z`})}},ki=f.forwardRef(function(e,t){return B(e,t,`octicon octicon-git-pull-request-draft`,Oi,Di)});ki.displayName=`GitPullRequestDraftIcon`;var Ai=[`16`,`24`],ji={16:{width:16,path:f.createElement(`path`,{d:`m.427 1.927 1.215 1.215a8.002 8.002 0 1 1-1.6 5.685.75.75 0 1 1 1.493-.154 6.5 6.5 0 1 0 1.18-4.458l1.358 1.358A.25.25 0 0 1 3.896 6H.25A.25.25 0 0 1 0 5.75V2.104a.25.25 0 0 1 .427-.177ZM7.75 4a.75.75 0 0 1 .75.75v2.992l2.028.812a.75.75 0 0 1-.557 1.392l-2.5-1A.751.751 0 0 1 7 8.25v-3.5A.75.75 0 0 1 7.75 4Z`})},24:{width:24,path:f.createElement(f.Fragment,null,f.createElement(`path`,{d:`M11.998 2.5A9.503 9.503 0 0 0 3.378 8H5.75a.75.75 0 0 1 0 1.5H2a1 1 0 0 1-1-1V4.75a.75.75 0 0 1 1.5 0v1.697A10.997 10.997 0 0 1 11.998 1C18.074 1 23 5.925 23 12s-4.926 11-11.002 11C6.014 23 1.146 18.223 1 12.275a.75.75 0 0 1 1.5-.037 9.5 9.5 0 0 0 9.498 9.262c5.248 0 9.502-4.253 9.502-9.5s-4.254-9.5-9.502-9.5Z`}),f.createElement(`path`,{d:`M12.5 7.25a.75.75 0 0 0-1.5 0v5.5c0 .27.144.518.378.651l3.5 2a.75.75 0 0 0 .744-1.302L12.5 12.315V7.25Z`}))}},Mi=f.forwardRef(function(e,t){return B(e,t,`octicon octicon-history`,ji,Ai)});Mi.displayName=`HistoryIcon`;var Ni=[`16`,`24`],Pi={16:{width:16,path:f.createElement(`path`,{d:`M6 2.75A.75.75 0 0 1 6.75 2h6.5a.75.75 0 0 1 0 1.5h-2.505l-3.858 9H9.25a.75.75 0 0 1 0 1.5h-6.5a.75.75 0 0 1 0-1.5h2.505l3.858-9H6.75A.75.75 0 0 1 6 2.75Z`})},24:{width:24,path:f.createElement(`path`,{d:`M10 4.75a.75.75 0 0 1 .75-.75h8.5a.75.75 0 0 1 0 1.5h-3.514l-5.828 13h3.342a.75.75 0 0 1 0 1.5h-8.5a.75.75 0 0 1 0-1.5h3.514l5.828-13H10.75a.75.75 0 0 1-.75-.75Z`})}},Fi=f.forwardRef(function(e,t){return B(e,t,`octicon octicon-italic`,Pi,Ni)});Fi.displayName=`ItalicIcon`;var Ii=[`16`,`24`],Li={16:{width:16,path:f.createElement(`path`,{d:`M8 9a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3ZM1.5 9a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Zm13 0a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Z`})},24:{width:24,path:f.createElement(`path`,{d:`M20 14a2 2 0 1 1-.001-3.999A2 2 0 0 1 20 14ZM6 12a2 2 0 1 1-3.999.001A2 2 0 0 1 6 12Zm8 0a2 2 0 1 1-3.999.001A2 2 0 0 1 14 12Z`})}},Ri=f.forwardRef(function(e,t){return B(e,t,`octicon octicon-kebab-horizontal`,Li,Ii)});Ri.displayName=`KebabHorizontalIcon`;var zi=[`16`,`24`],Bi={16:{width:16,path:f.createElement(`path`,{d:`m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z`})},24:{width:24,path:f.createElement(f.Fragment,null,f.createElement(`path`,{d:`M14.78 3.653a3.936 3.936 0 1 1 5.567 5.567l-3.627 3.627a3.936 3.936 0 0 1-5.88-.353.75.75 0 0 0-1.18.928 5.436 5.436 0 0 0 8.12.486l3.628-3.628a5.436 5.436 0 1 0-7.688-7.688l-3 3a.75.75 0 0 0 1.06 1.061l3-3Z`}),f.createElement(`path`,{d:`M7.28 11.153a3.936 3.936 0 0 1 5.88.353.75.75 0 0 0 1.18-.928 5.436 5.436 0 0 0-8.12-.486L2.592 13.72a5.436 5.436 0 1 0 7.688 7.688l3-3a.75.75 0 1 0-1.06-1.06l-3 3a3.936 3.936 0 0 1-5.567-5.568l3.627-3.627Z`}))}},Vi=f.forwardRef(function(e,t){return B(e,t,`octicon octicon-link`,Bi,zi)});Vi.displayName=`LinkIcon`;var Hi=[`16`,`24`],Ui={16:{width:16,path:f.createElement(`path`,{d:`M3.75 2h3.5a.75.75 0 0 1 0 1.5h-3.5a.25.25 0 0 0-.25.25v8.5c0 .138.112.25.25.25h8.5a.25.25 0 0 0 .25-.25v-3.5a.75.75 0 0 1 1.5 0v3.5A1.75 1.75 0 0 1 12.25 14h-8.5A1.75 1.75 0 0 1 2 12.25v-8.5C2 2.784 2.784 2 3.75 2Zm6.854-1h4.146a.25.25 0 0 1 .25.25v4.146a.25.25 0 0 1-.427.177L13.03 4.03 9.28 7.78a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042l3.75-3.75-1.543-1.543A.25.25 0 0 1 10.604 1Z`})},24:{width:24,path:f.createElement(f.Fragment,null,f.createElement(`path`,{d:`M15.5 2.25a.75.75 0 0 1 .75-.75h5.5a.75.75 0 0 1 .75.75v5.5a.75.75 0 0 1-1.5 0V4.06l-6.22 6.22a.75.75 0 1 1-1.06-1.06L19.94 3h-3.69a.75.75 0 0 1-.75-.75Z`}),f.createElement(`path`,{d:`M2.5 4.25c0-.966.784-1.75 1.75-1.75h8.5a.75.75 0 0 1 0 1.5h-8.5a.25.25 0 0 0-.25.25v15.5c0 .138.112.25.25.25h15.5a.25.25 0 0 0 .25-.25v-8.5a.75.75 0 0 1 1.5 0v8.5a1.75 1.75 0 0 1-1.75 1.75H4.25a1.75 1.75 0 0 1-1.75-1.75V4.25Z`}))}},Wi=f.forwardRef(function(e,t){return B(e,t,`octicon octicon-link-external`,Ui,Hi)});Wi.displayName=`LinkExternalIcon`;var Gi=[`16`,`24`],Ki={16:{width:16,path:f.createElement(`path`,{d:`M5.75 2.5h8.5a.75.75 0 0 1 0 1.5h-8.5a.75.75 0 0 1 0-1.5Zm0 5h8.5a.75.75 0 0 1 0 1.5h-8.5a.75.75 0 0 1 0-1.5Zm0 5h8.5a.75.75 0 0 1 0 1.5h-8.5a.75.75 0 0 1 0-1.5ZM2 14a1 1 0 1 1 0-2 1 1 0 0 1 0 2Zm1-6a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM2 4a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z`})},24:{width:24,path:f.createElement(`path`,{d:`M8.75 5.5h11.5a.75.75 0 0 1 0 1.5H8.75a.75.75 0 0 1 0-1.5Zm0 6h11.5a.75.75 0 0 1 0 1.5H8.75a.75.75 0 0 1 0-1.5Zm0 6h11.5a.75.75 0 0 1 0 1.5H8.75a.75.75 0 0 1 0-1.5ZM5 12a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM4 7a1 1 0 1 1 0-2 1 1 0 0 1 0 2Zm0 12a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z`})}},qi=f.forwardRef(function(e,t){return B(e,t,`octicon octicon-list-unordered`,Ki,Gi)});qi.displayName=`ListUnorderedIcon`;var Ji=[`16`,`24`],Yi={16:{width:16,path:f.createElement(f.Fragment,null,f.createElement(`path`,{d:`M4.25 7.25a.75.75 0 0 0 0 1.5h7.5a.75.75 0 0 0 0-1.5h-7.5Z`}),f.createElement(`path`,{d:`M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0Zm-1.5 0a6.5 6.5 0 1 0-13 0 6.5 6.5 0 0 0 13 0Z`}))},24:{width:24,path:f.createElement(`path`,{d:`M12 1c6.075 0 11 4.925 11 11s-4.925 11-11 11S1 18.075 1 12 5.925 1 12 1ZM2.5 12a9.5 9.5 0 0 0 9.5 9.5 9.5 9.5 0 0 0 9.5-9.5A9.5 9.5 0 0 0 12 2.5 9.5 9.5 0 0 0 2.5 12Zm15.75.75H5.75a.75.75 0 0 1 0-1.5h12.5a.75.75 0 0 1 0 1.5Z`})}},Xi=f.forwardRef(function(e,t){return B(e,t,`octicon octicon-no-entry`,Yi,Ji)});Xi.displayName=`NoEntryIcon`;var Zi=[`16`,`24`],Qi={16:{width:16,path:f.createElement(`path`,{d:`M11.013 1.427a1.75 1.75 0 0 1 2.474 0l1.086 1.086a1.75 1.75 0 0 1 0 2.474l-8.61 8.61c-.21.21-.47.364-.756.445l-3.251.93a.75.75 0 0 1-.927-.928l.929-3.25c.081-.286.235-.547.445-.758l8.61-8.61Zm.176 4.823L9.75 4.81l-6.286 6.287a.253.253 0 0 0-.064.108l-.558 1.953 1.953-.558a.253.253 0 0 0 .108-.064Zm1.238-3.763a.25.25 0 0 0-.354 0L10.811 3.75l1.439 1.44 1.263-1.263a.25.25 0 0 0 0-.354Z`})},24:{width:24,path:f.createElement(`path`,{d:`M17.263 2.177a1.75 1.75 0 0 1 2.474 0l2.586 2.586a1.75 1.75 0 0 1 0 2.474L19.53 10.03l-.012.013L8.69 20.378a1.753 1.753 0 0 1-.699.409l-5.523 1.68a.748.748 0 0 1-.747-.188.748.748 0 0 1-.188-.747l1.673-5.5a1.75 1.75 0 0 1 .466-.756L14.476 4.963ZM4.708 16.361a.26.26 0 0 0-.067.108l-1.264 4.154 4.177-1.271a.253.253 0 0 0 .1-.059l10.273-9.806-2.94-2.939-10.279 9.813ZM19 8.44l2.263-2.262a.25.25 0 0 0 0-.354l-2.586-2.586a.25.25 0 0 0-.354 0L16.061 5.5Z`})}},$i=f.forwardRef(function(e,t){return B(e,t,`octicon octicon-pencil`,Qi,Zi)});$i.displayName=`PencilIcon`;var ea=[`16`,`24`],ta={16:{width:16,path:f.createElement(`path`,{d:`M2 5.5a3.5 3.5 0 1 1 5.898 2.549 5.508 5.508 0 0 1 3.034 4.084.75.75 0 1 1-1.482.235 4 4 0 0 0-7.9 0 .75.75 0 0 1-1.482-.236A5.507 5.507 0 0 1 3.102 8.05 3.493 3.493 0 0 1 2 5.5ZM11 4a3.001 3.001 0 0 1 2.22 5.018 5.01 5.01 0 0 1 2.56 3.012.749.749 0 0 1-.885.954.752.752 0 0 1-.549-.514 3.507 3.507 0 0 0-2.522-2.372.75.75 0 0 1-.574-.73v-.352a.75.75 0 0 1 .416-.672A1.5 1.5 0 0 0 11 5.5.75.75 0 0 1 11 4Zm-5.5-.5a2 2 0 1 0-.001 3.999A2 2 0 0 0 5.5 3.5Z`})},24:{width:24,path:f.createElement(`path`,{d:`M3.5 8a5.5 5.5 0 1 1 8.596 4.547 9.005 9.005 0 0 1 5.9 8.18.751.751 0 0 1-1.5.045 7.5 7.5 0 0 0-14.993 0 .75.75 0 0 1-1.499-.044 9.005 9.005 0 0 1 5.9-8.181A5.496 5.496 0 0 1 3.5 8ZM9 4a4 4 0 1 0 0 8 4 4 0 0 0 0-8Zm8.29 4c-.148 0-.292.01-.434.03a.75.75 0 1 1-.212-1.484 4.53 4.53 0 0 1 3.38 8.097 6.69 6.69 0 0 1 3.956 6.107.75.75 0 0 1-1.5 0 5.193 5.193 0 0 0-3.696-4.972l-.534-.16v-1.676l.41-.209A3.03 3.03 0 0 0 17.29 8Z`})}},na=f.forwardRef(function(e,t){return B(e,t,`octicon octicon-people`,ta,ea)});na.displayName=`PeopleIcon`;var ra=[`16`,`24`],V={16:{width:16,path:f.createElement(`path`,{d:`M7.75 2a.75.75 0 0 1 .75.75V7h4.25a.75.75 0 0 1 0 1.5H8.5v4.25a.75.75 0 0 1-1.5 0V8.5H2.75a.75.75 0 0 1 0-1.5H7V2.75A.75.75 0 0 1 7.75 2Z`})},24:{width:24,path:f.createElement(`path`,{d:`M11.75 4.5a.75.75 0 0 1 .75.75V11h5.75a.75.75 0 0 1 0 1.5H12.5v5.75a.75.75 0 0 1-1.5 0V12.5H5.25a.75.75 0 0 1 0-1.5H11V5.25a.75.75 0 0 1 .75-.75Z`})}},ia=f.forwardRef(function(e,t){return B(e,t,`octicon octicon-plus`,V,ra)});ia.displayName=`PlusIcon`;var aa=[`16`,`24`],oa={16:{width:16,path:f.createElement(`path`,{d:`M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-6.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13ZM6.92 6.085h.001a.749.749 0 1 1-1.342-.67c.169-.339.436-.701.849-.977C6.845 4.16 7.369 4 8 4a2.756 2.756 0 0 1 1.637.525c.503.377.863.965.863 1.725 0 .448-.115.83-.329 1.15-.205.307-.47.513-.692.662-.109.072-.22.138-.313.195l-.006.004a6.24 6.24 0 0 0-.26.16.952.952 0 0 0-.276.245.75.75 0 0 1-1.248-.832c.184-.264.42-.489.692-.661.103-.067.207-.132.313-.195l.007-.004c.1-.061.182-.11.258-.161a.969.969 0 0 0 .277-.245C8.96 6.514 9 6.427 9 6.25a.612.612 0 0 0-.262-.525A1.27 1.27 0 0 0 8 5.5c-.369 0-.595.09-.74.187a1.01 1.01 0 0 0-.34.398ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z`})},24:{width:24,path:f.createElement(f.Fragment,null,f.createElement(`path`,{d:`M10.97 8.265a1.45 1.45 0 0 0-.487.57.75.75 0 0 1-1.341-.67c.2-.402.513-.826.997-1.148C10.627 6.69 11.244 6.5 12 6.5c.658 0 1.369.195 1.934.619a2.45 2.45 0 0 1 1.004 2.006c0 1.033-.513 1.72-1.027 2.215-.19.183-.399.358-.579.508l-.147.123a4.329 4.329 0 0 0-.435.409v1.37a.75.75 0 1 1-1.5 0v-1.473c0-.237.067-.504.247-.736.22-.28.486-.517.718-.714l.183-.153.001-.001c.172-.143.324-.27.47-.412.368-.355.569-.676.569-1.136a.953.953 0 0 0-.404-.806C12.766 8.118 12.384 8 12 8c-.494 0-.814.121-1.03.265ZM13 17a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z`}),f.createElement(`path`,{d:`M12 1c6.075 0 11 4.925 11 11s-4.925 11-11 11S1 18.075 1 12 5.925 1 12 1ZM2.5 12a9.5 9.5 0 0 0 9.5 9.5 9.5 9.5 0 0 0 9.5-9.5A9.5 9.5 0 0 0 12 2.5 9.5 9.5 0 0 0 2.5 12Z`}))}},sa=f.forwardRef(function(e,t){return B(e,t,`octicon octicon-question`,oa,aa)});sa.displayName=`QuestionIcon`;var ca=[`16`,`24`],la={16:{width:16,path:f.createElement(`path`,{d:`M1.75 2.5h10.5a.75.75 0 0 1 0 1.5H1.75a.75.75 0 0 1 0-1.5Zm4 5h8.5a.75.75 0 0 1 0 1.5h-8.5a.75.75 0 0 1 0-1.5Zm0 5h8.5a.75.75 0 0 1 0 1.5h-8.5a.75.75 0 0 1 0-1.5ZM2.5 7.75v6a.75.75 0 0 1-1.5 0v-6a.75.75 0 0 1 1.5 0Z`})},24:{width:24,path:f.createElement(`path`,{d:`M3 6.25a.75.75 0 0 1 .75-.75h13.5a.75.75 0 0 1 0 1.5H3.75A.75.75 0 0 1 3 6.25Zm5 6.063a.75.75 0 0 1 .75-.75h11.5a.75.75 0 0 1 0 1.5H8.75a.75.75 0 0 1-.75-.75Zm0 5.937a.75.75 0 0 1 .75-.75h11.5a.75.75 0 0 1 0 1.5H8.75a.75.75 0 0 1-.75-.75ZM3.75 11a.75.75 0 0 1 .75.75v7a.75.75 0 0 1-1.5 0v-7a.75.75 0 0 1 .75-.75Z`})}},ua=f.forwardRef(function(e,t){return B(e,t,`octicon octicon-quote`,la,ca)});ua.displayName=`QuoteIcon`;var da=[`16`,`24`],fa={16:{width:16,path:f.createElement(`path`,{d:`M2 2.5A2.5 2.5 0 0 1 4.5 0h8.75a.75.75 0 0 1 .75.75v12.5a.75.75 0 0 1-.75.75h-2.5a.75.75 0 0 1 0-1.5h1.75v-2h-8a1 1 0 0 0-.714 1.7.75.75 0 1 1-1.072 1.05A2.495 2.495 0 0 1 2 11.5Zm10.5-1h-8a1 1 0 0 0-1 1v6.708A2.486 2.486 0 0 1 4.5 9h8ZM5 12.25a.25.25 0 0 1 .25-.25h3.5a.25.25 0 0 1 .25.25v3.25a.25.25 0 0 1-.4.2l-1.45-1.087a.249.249 0 0 0-.3 0L5.4 15.7a.25.25 0 0 1-.4-.2Z`})},24:{width:24,path:f.createElement(f.Fragment,null,f.createElement(`path`,{d:`M3 2.75A2.75 2.75 0 0 1 5.75 0h14.5a.75.75 0 0 1 .75.75v20.5a.75.75 0 0 1-.75.75h-6a.75.75 0 0 1 0-1.5h5.25v-4H6A1.5 1.5 0 0 0 4.5 18v.75c0 .716.43 1.334 1.05 1.605a.75.75 0 0 1-.6 1.374A3.251 3.251 0 0 1 3 18.75ZM19.5 1.5H5.75c-.69 0-1.25.56-1.25 1.25v12.651A2.989 2.989 0 0 1 6 15h13.5Z`}),f.createElement(`path`,{d:`M7 18.25a.25.25 0 0 1 .25-.25h5a.25.25 0 0 1 .25.25v5.01a.25.25 0 0 1-.397.201l-2.206-1.604a.25.25 0 0 0-.294 0L7.397 23.46a.25.25 0 0 1-.397-.2v-5.01Z`}))}},pa=f.forwardRef(function(e,t){return B(e,t,`octicon octicon-repo`,fa,da)});pa.displayName=`RepoIcon`;var ma=[`16`,`24`],ha={16:{width:16,path:f.createElement(`path`,{d:`M10.68 11.74a6 6 0 0 1-7.922-8.982 6 6 0 0 1 8.982 7.922l3.04 3.04a.749.749 0 0 1-.326 1.275.749.749 0 0 1-.734-.215ZM11.5 7a4.499 4.499 0 1 0-8.997 0A4.499 4.499 0 0 0 11.5 7Z`})},24:{width:24,path:f.createElement(`path`,{d:`M10.25 2a8.25 8.25 0 0 1 6.34 13.53l5.69 5.69a.749.749 0 0 1-.326 1.275.749.749 0 0 1-.734-.215l-5.69-5.69A8.25 8.25 0 1 1 10.25 2ZM3.5 10.25a6.75 6.75 0 1 0 13.5 0 6.75 6.75 0 0 0-13.5 0Z`})}},ga=f.forwardRef(function(e,t){return B(e,t,`octicon octicon-search`,ha,ma)});ga.displayName=`SearchIcon`;var _a=[`16`,`24`],va={16:{width:16,path:f.createElement(f.Fragment,null,f.createElement(`path`,{d:`M6.823 7.823a.25.25 0 0 1 0 .354l-2.396 2.396A.25.25 0 0 1 4 10.396V5.604a.25.25 0 0 1 .427-.177Z`}),f.createElement(`path`,{d:`M1.75 0h12.5C15.216 0 16 .784 16 1.75v12.5A1.75 1.75 0 0 1 14.25 16H1.75A1.75 1.75 0 0 1 0 14.25V1.75C0 .784.784 0 1.75 0ZM1.5 1.75v12.5c0 .138.112.25.25.25H9.5v-13H1.75a.25.25 0 0 0-.25.25ZM11 14.5h3.25a.25.25 0 0 0 .25-.25V1.75a.25.25 0 0 0-.25-.25H11Z`}))},24:{width:24,path:f.createElement(f.Fragment,null,f.createElement(`path`,{d:`M7.22 14.47 9.69 12 7.22 9.53a.749.749 0 0 1 .326-1.275.749.749 0 0 1 .734.215l3 3a.75.75 0 0 1 0 1.06l-3 3a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Z`}),f.createElement(`path`,{d:`M3.75 2h16.5c.966 0 1.75.784 1.75 1.75v16.5A1.75 1.75 0 0 1 20.25 22H3.75A1.75 1.75 0 0 1 2 20.25V3.75C2 2.784 2.784 2 3.75 2ZM3.5 3.75v16.5c0 .138.112.25.25.25H15v-17H3.75a.25.25 0 0 0-.25.25Zm13 16.75h3.75a.25.25 0 0 0 .25-.25V3.75a.25.25 0 0 0-.25-.25H16.5Z`}))}},ya=f.forwardRef(function(e,t){return B(e,t,`octicon octicon-sidebar-collapse`,va,_a)});ya.displayName=`SidebarCollapseIcon`;var ba=[`16`,`24`],xa={16:{width:16,path:f.createElement(f.Fragment,null,f.createElement(`path`,{d:`m4.177 7.823 2.396-2.396A.25.25 0 0 1 7 5.604v4.792a.25.25 0 0 1-.427.177L4.177 8.177a.25.25 0 0 1 0-.354Z`}),f.createElement(`path`,{d:`M0 1.75C0 .784.784 0 1.75 0h12.5C15.216 0 16 .784 16 1.75v12.5A1.75 1.75 0 0 1 14.25 16H1.75A1.75 1.75 0 0 1 0 14.25Zm1.75-.25a.25.25 0 0 0-.25.25v12.5c0 .138.112.25.25.25H9.5v-13Zm12.5 13a.25.25 0 0 0 .25-.25V1.75a.25.25 0 0 0-.25-.25H11v13Z`}))},24:{width:24,path:f.createElement(f.Fragment,null,f.createElement(`path`,{d:`M11.28 9.53 8.81 12l2.47 2.47a.749.749 0 0 1-.326 1.275.749.749 0 0 1-.734-.215l-3-3a.75.75 0 0 1 0-1.06l3-3a.749.749 0 0 1 1.275.326.749.749 0 0 1-.215.734Z`}),f.createElement(`path`,{d:`M3.75 2h16.5c.966 0 1.75.784 1.75 1.75v16.5A1.75 1.75 0 0 1 20.25 22H3.75A1.75 1.75 0 0 1 2 20.25V3.75C2 2.784 2.784 2 3.75 2ZM3.5 3.75v16.5c0 .138.112.25.25.25H15v-17H3.75a.25.25 0 0 0-.25.25Zm13 16.75h3.75a.25.25 0 0 0 .25-.25V3.75a.25.25 0 0 0-.25-.25H16.5Z`}))}},Sa=f.forwardRef(function(e,t){return B(e,t,`octicon octicon-sidebar-expand`,xa,ba)});Sa.displayName=`SidebarExpandIcon`;var Ca=[`16`,`24`],wa={16:{width:16,path:f.createElement(`path`,{d:`M4.47.22A.749.749 0 0 1 5 0h6c.199 0 .389.079.53.22l4.25 4.25c.141.14.22.331.22.53v6a.749.749 0 0 1-.22.53l-4.25 4.25A.749.749 0 0 1 11 16H5a.749.749 0 0 1-.53-.22L.22 11.53A.749.749 0 0 1 0 11V5c0-.199.079-.389.22-.53Zm.84 1.28L1.5 5.31v5.38l3.81 3.81h5.38l3.81-3.81V5.31L10.69 1.5ZM8 4a.75.75 0 0 1 .75.75v3.5a.75.75 0 0 1-1.5 0v-3.5A.75.75 0 0 1 8 4Zm0 8a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z`})},24:{width:24,path:f.createElement(f.Fragment,null,f.createElement(`path`,{d:`M12 7a.75.75 0 0 1 .75.75v4.5a.75.75 0 0 1-1.5 0v-4.5A.75.75 0 0 1 12 7Zm0 10a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z`}),f.createElement(`path`,{d:`M7.328 1.47a.749.749 0 0 1 .53-.22h8.284c.199 0 .389.079.53.22l5.858 5.858c.141.14.22.33.22.53v8.284a.749.749 0 0 1-.22.53l-5.858 5.858a.749.749 0 0 1-.53.22H7.858a.749.749 0 0 1-.53-.22L1.47 16.672a.749.749 0 0 1-.22-.53V7.858c0-.199.079-.389.22-.53Zm.84 1.28L2.75 8.169v7.662l5.419 5.419h7.662l5.419-5.418V8.168L15.832 2.75Z`}))}},Ta=f.forwardRef(function(e,t){return B(e,t,`octicon octicon-stop`,wa,Ca)});Ta.displayName=`StopIcon`;var Ea=[`16`,`24`],Da={16:{width:16,path:f.createElement(`path`,{d:`M1.705 8.005a.75.75 0 0 1 .834.656 5.5 5.5 0 0 0 9.592 2.97l-1.204-1.204a.25.25 0 0 1 .177-.427h3.646a.25.25 0 0 1 .25.25v3.646a.25.25 0 0 1-.427.177l-1.38-1.38A7.002 7.002 0 0 1 1.05 8.84a.75.75 0 0 1 .656-.834ZM8 2.5a5.487 5.487 0 0 0-4.131 1.869l1.204 1.204A.25.25 0 0 1 4.896 6H1.25A.25.25 0 0 1 1 5.75V2.104a.25.25 0 0 1 .427-.177l1.38 1.38A7.002 7.002 0 0 1 14.95 7.16a.75.75 0 0 1-1.49.178A5.5 5.5 0 0 0 8 2.5Z`})},24:{width:24,path:f.createElement(`path`,{d:`M3.38 8A9.502 9.502 0 0 1 12 2.5a9.502 9.502 0 0 1 9.215 7.182.75.75 0 1 0 1.456-.364C21.473 4.539 17.15 1 12 1a10.995 10.995 0 0 0-9.5 5.452V4.75a.75.75 0 0 0-1.5 0V8.5a1 1 0 0 0 1 1h3.75a.75.75 0 0 0 0-1.5H3.38Zm-.595 6.318a.75.75 0 0 0-1.455.364C2.527 19.461 6.85 23 12 23c4.052 0 7.592-2.191 9.5-5.451v1.701a.75.75 0 0 0 1.5 0V15.5a1 1 0 0 0-1-1h-3.75a.75.75 0 0 0 0 1.5h2.37A9.502 9.502 0 0 1 12 21.5c-4.446 0-8.181-3.055-9.215-7.182Z`})}},Oa=f.forwardRef(function(e,t){return B(e,t,`octicon octicon-sync`,Da,Ea)});Oa.displayName=`SyncIcon`;var ka=[`16`,`24`],Aa={16:{width:16,path:f.createElement(`path`,{d:`M5.433 2.304A4.492 4.492 0 0 0 3.5 6c0 1.598.832 3.002 2.09 3.802.518.328.929.923.902 1.64v.008l-.164 3.337a.75.75 0 1 1-1.498-.073l.163-3.33c.002-.085-.05-.216-.207-.316A5.996 5.996 0 0 1 2 6a5.993 5.993 0 0 1 2.567-4.92 1.482 1.482 0 0 1 1.673-.04c.462.296.76.827.76 1.423v2.82c0 .082.041.16.11.206l.75.51a.25.25 0 0 0 .28 0l.75-.51A.249.249 0 0 0 9 5.282V2.463c0-.596.298-1.127.76-1.423a1.482 1.482 0 0 1 1.673.04A5.993 5.993 0 0 1 14 6a5.996 5.996 0 0 1-2.786 5.068c-.157.1-.209.23-.207.315l.163 3.33a.752.752 0 0 1-1.094.714.75.75 0 0 1-.404-.64l-.164-3.345c-.027-.717.384-1.312.902-1.64A4.495 4.495 0 0 0 12.5 6a4.492 4.492 0 0 0-1.933-3.696c-.024.017-.067.067-.067.16v2.818a1.75 1.75 0 0 1-.767 1.448l-.75.51a1.75 1.75 0 0 1-1.966 0l-.75-.51A1.75 1.75 0 0 1 5.5 5.282V2.463c0-.092-.043-.142-.067-.159Z`})},24:{width:24,path:f.createElement(`path`,{d:`M7.875 2.292a.114.114 0 0 0-.032.018A7.239 7.239 0 0 0 4.75 8.25a7.248 7.248 0 0 0 3.654 6.297c.57.327.982.955.941 1.682v.002l-.317 6.058a.75.75 0 1 1-1.498-.078l.317-6.062v-.004c.006-.09-.047-.215-.188-.296A8.749 8.749 0 0 1 3.25 8.25a8.738 8.738 0 0 1 3.732-7.169 1.547 1.547 0 0 1 1.709-.064c.484.292.809.835.809 1.46v4.714a.25.25 0 0 0 .119.213l2.25 1.385c.08.05.182.05.262 0l2.25-1.385a.25.25 0 0 0 .119-.213V2.478c0-.626.325-1.169.81-1.461a1.547 1.547 0 0 1 1.708.064 8.741 8.741 0 0 1 3.732 7.17 8.747 8.747 0 0 1-4.41 7.598c-.14.081-.193.206-.188.296v.004l.318 6.062a.75.75 0 1 1-1.498.078l-.317-6.058v-.002c-.041-.727.37-1.355.94-1.682A7.247 7.247 0 0 0 19.25 8.25a7.239 7.239 0 0 0-3.093-5.94.114.114 0 0 0-.032-.018l-.01-.001c-.003 0-.014 0-.031.01-.036.022-.084.079-.084.177V7.19c0 .608-.315 1.172-.833 1.49l-2.25 1.385a1.75 1.75 0 0 1-1.834 0l-2.25-1.384A1.752 1.752 0 0 1 8 7.192V2.477c0-.098-.048-.155-.084-.176a.068.068 0 0 0-.031-.011l-.01.001Z`})}},ja=f.forwardRef(function(e,t){return B(e,t,`octicon octicon-tools`,Aa,ka)});ja.displayName=`ToolsIcon`;var Ma=[`16`,`24`],Na={16:{width:16,path:f.createElement(`path`,{d:`M11 1.75V3h2.25a.75.75 0 0 1 0 1.5H2.75a.75.75 0 0 1 0-1.5H5V1.75C5 .784 5.784 0 6.75 0h2.5C10.216 0 11 .784 11 1.75ZM4.496 6.675l.66 6.6a.25.25 0 0 0 .249.225h5.19a.25.25 0 0 0 .249-.225l.66-6.6a.75.75 0 0 1 1.492.149l-.66 6.6A1.748 1.748 0 0 1 10.595 15h-5.19a1.75 1.75 0 0 1-1.741-1.575l-.66-6.6a.75.75 0 1 1 1.492-.15ZM6.5 1.75V3h3V1.75a.25.25 0 0 0-.25-.25h-2.5a.25.25 0 0 0-.25.25Z`})},24:{width:24,path:f.createElement(f.Fragment,null,f.createElement(`path`,{d:`M16 1.75V3h5.25a.75.75 0 0 1 0 1.5H2.75a.75.75 0 0 1 0-1.5H8V1.75C8 .784 8.784 0 9.75 0h4.5C15.216 0 16 .784 16 1.75Zm-6.5 0V3h5V1.75a.25.25 0 0 0-.25-.25h-4.5a.25.25 0 0 0-.25.25ZM4.997 6.178a.75.75 0 1 0-1.493.144L4.916 20.92a1.75 1.75 0 0 0 1.742 1.58h10.684a1.75 1.75 0 0 0 1.742-1.581l1.413-14.597a.75.75 0 0 0-1.494-.144l-1.412 14.596a.25.25 0 0 1-.249.226H6.658a.25.25 0 0 1-.249-.226L4.997 6.178Z`}),f.createElement(`path`,{d:`M9.206 7.501a.75.75 0 0 1 .793.705l.5 8.5A.75.75 0 1 1 9 16.794l-.5-8.5a.75.75 0 0 1 .705-.793Zm6.293.793A.75.75 0 1 0 14 8.206l-.5 8.5a.75.75 0 0 0 1.498.088l.5-8.5Z`}))}},Pa=f.forwardRef(function(e,t){return B(e,t,`octicon octicon-trash`,Na,Ma)});Pa.displayName=`TrashIcon`;var Fa=[`16`,`24`],Ia={16:{width:16,path:f.createElement(`path`,{d:`m4.427 7.427 3.396 3.396a.25.25 0 0 0 .354 0l3.396-3.396A.25.25 0 0 0 11.396 7H4.604a.25.25 0 0 0-.177.427Z`})},24:{width:24,path:f.createElement(`path`,{d:`M11.646 15.146 5.854 9.354a.5.5 0 0 1 .353-.854h11.586a.5.5 0 0 1 .353.854l-5.793 5.792a.5.5 0 0 1-.707 0Z`})}},La=f.forwardRef(function(e,t){return B(e,t,`octicon octicon-triangle-down`,Ia,Fa)});La.displayName=`TriangleDownIcon`;var Ra=[`16`,`24`],za={16:{width:16,path:f.createElement(`path`,{d:`m8.177.677 2.896 2.896a.25.25 0 0 1-.177.427H8.75v1.25a.75.75 0 0 1-1.5 0V4H5.104a.25.25 0 0 1-.177-.427L7.823.677a.25.25 0 0 1 .354 0ZM7.25 10.75a.75.75 0 0 1 1.5 0V12h2.146a.25.25 0 0 1 .177.427l-2.896 2.896a.25.25 0 0 1-.354 0l-2.896-2.896A.25.25 0 0 1 5.104 12H7.25v-1.25Zm-5-2a.75.75 0 0 0 0-1.5h-.5a.75.75 0 0 0 0 1.5h.5ZM6 8a.75.75 0 0 1-.75.75h-.5a.75.75 0 0 1 0-1.5h.5A.75.75 0 0 1 6 8Zm2.25.75a.75.75 0 0 0 0-1.5h-.5a.75.75 0 0 0 0 1.5h.5ZM12 8a.75.75 0 0 1-.75.75h-.5a.75.75 0 0 1 0-1.5h.5A.75.75 0 0 1 12 8Zm2.25.75a.75.75 0 0 0 0-1.5h-.5a.75.75 0 0 0 0 1.5h.5Z`})},24:{width:24,path:f.createElement(f.Fragment,null,f.createElement(`path`,{d:`M12 23a.749.749 0 0 1-.53-.22l-3.25-3.25a.749.749 0 0 1 .326-1.275.749.749 0 0 1 .734.215L12 21.19l2.72-2.72a.749.749 0 0 1 1.275.326.749.749 0 0 1-.215.734l-3.25 3.25A.749.749 0 0 1 12 23Z`}),f.createElement(`path`,{d:`M11.47 1.22a.75.75 0 0 1 1.06 0l3.25 3.25a.751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018L12 2.81 9.28 5.53a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042ZM12 22.25a.75.75 0 0 1-.75-.75v-5.75a.75.75 0 0 1 1.5 0v5.75a.75.75 0 0 1-.75.75ZM2.75 12a.75.75 0 0 1 .75-.75h1a.75.75 0 0 1 0 1.5h-1a.75.75 0 0 1-.75-.75Zm4 0a.75.75 0 0 1 .75-.75h1a.75.75 0 0 1 0 1.5h-1a.75.75 0 0 1-.75-.75Zm4 0a.75.75 0 0 1 .75-.75h1a.75.75 0 0 1 0 1.5h-1a.75.75 0 0 1-.75-.75Zm4 0a.75.75 0 0 1 .75-.75h1a.75.75 0 0 1 0 1.5h-1a.75.75 0 0 1-.75-.75Zm4 0a.75.75 0 0 1 .75-.75h1a.75.75 0 0 1 0 1.5h-1a.75.75 0 0 1-.75-.75Z`}),f.createElement(`path`,{d:`M12 1.5a.75.75 0 0 1 .75.75v6a.75.75 0 0 1-1.5 0v-6A.75.75 0 0 1 12 1.5Z`}))}},Ba=f.forwardRef(function(e,t){return B(e,t,`octicon octicon-unfold`,za,Ra)});Ba.displayName=`UnfoldIcon`;var Va=[`12`,`16`,`24`],Ha={12:{width:12,path:f.createElement(`path`,{d:`M2.22 2.22a.749.749 0 0 1 1.06 0L6 4.939 8.72 2.22a.749.749 0 1 1 1.06 1.06L7.061 6 9.78 8.72a.749.749 0 1 1-1.06 1.06L6 7.061 3.28 9.78a.749.749 0 1 1-1.06-1.06L4.939 6 2.22 3.28a.749.749 0 0 1 0-1.06Z`})},16:{width:16,path:f.createElement(`path`,{d:`M3.72 3.72a.75.75 0 0 1 1.06 0L8 6.94l3.22-3.22a.749.749 0 0 1 1.275.326.749.749 0 0 1-.215.734L9.06 8l3.22 3.22a.749.749 0 0 1-.326 1.275.749.749 0 0 1-.734-.215L8 9.06l-3.22 3.22a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042L6.94 8 3.72 4.78a.75.75 0 0 1 0-1.06Z`})},24:{width:24,path:f.createElement(`path`,{d:`M5.72 5.72a.75.75 0 0 1 1.06 0L12 10.94l5.22-5.22a.749.749 0 0 1 1.275.326.749.749 0 0 1-.215.734L13.06 12l5.22 5.22a.749.749 0 0 1-.326 1.275.749.749 0 0 1-.734-.215L12 13.06l-5.22 5.22a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042L10.94 12 5.72 6.78a.75.75 0 0 1 0-1.06Z`})}},Ua=f.forwardRef(function(e,t){return B(e,t,`octicon octicon-x`,Ha,Va)});Ua.displayName=`XIcon`;var Wa=`a[href], button:not([disabled]), textarea:not([disabled]), input:not([disabled]), select:not([disabled]), summary, [tabindex]:not([tabindex="-1"])`;function Ga(e){let[t]=(0,f.useState)(()=>document.activeElement instanceof HTMLElement?document.activeElement:null);(0,f.useEffect)(()=>{let n=e.current;if(!n)return;let r=()=>[...n.querySelectorAll(Wa)].filter(e=>e.getClientRects().length>0);n.contains(document.activeElement)||r()[0]?.focus();let i=e=>{if(e.key!==`Tab`)return;let t=r(),i=t[0],a=t.at(-1);if(!i||!a){e.preventDefault();return}let o=document.activeElement,s=!n.contains(o);(e.shiftKey?o===i||s:o===a||s)&&(e.preventDefault(),(e.shiftKey?a:i).focus())};return document.addEventListener(`keydown`,i,!0),()=>{document.removeEventListener(`keydown`,i,!0),t?.isConnected&&t.focus({preventScroll:!0})}},[e,t])}var Ka=new Set;function qa(e){return Ka.add(e),()=>Ka.delete(e)}function Ja(e,t){let n=new Set(t),r=n.has(`worktree`)||n.has(`index`);e.invalidateQueries({predicate:({queryKey:e})=>{let[t,,i,a]=e;if(t===`threads`||t===`changes`||t===`viewed`||t===`review-draft`||n.has(`pull`)&&(t===`pull`||t===`resolve`||t===`refs`)||n.has(`refs`)&&(t===`resolve`||t===`refs`||t===`repo`)||t===`staging`&&(r||n.has(`refs`)))return!0;if(!r)return!1;if(t===`worktree-file`)return!0;let o=e=>typeof e==`string`&&e.startsWith(`:`);return(t===`files`||t===`diff`)&&(o(i)||o(a))}})}var Ya=new Set([`blob`,`tokens`]);function Xa(e){let t=y();(0,f.useEffect)(()=>{let n,r,i=500,a=!1,o=!1,s=()=>{n=new WebSocket(`${window.location.protocol===`https:`?`wss`:`ws`}://${window.location.host}/api/events?repo=${e}`),n.addEventListener(`open`,()=>{i=500,o&&t.invalidateQueries({predicate:({queryKey:e})=>!Ya.has(String(e[0]))}),o=!1}),n.addEventListener(`message`,e=>{try{let n=JSON.parse(String(e.data));n.type===`change`?Ja(t,n.kinds):Ka.forEach(e=>e(n.runId,n.event))}catch{}}),n.addEventListener(`close`,()=>{a||(o=!0,r=window.setTimeout(s,i),i=Math.min(i*2,15e3))})};return s(),()=>{a=!0,window.clearTimeout(r),n?.close()}},[e,t])}var Za=(0,f.createContext)(void 0),Qa=(0,f.createContext)(void 0);function $a(){let e=(0,f.useContext)(Qa);if(!e)throw Error(`useAgentActions needs an AgentProvider above it`);return e}function eo(){let e=(0,f.useContext)(Za),t=$a();if(!e)throw Error(`useAgent needs an AgentProvider above it`);return(0,f.useMemo)(()=>({...e,...t}),[e,t])}var to=[];function no(){let e=(0,f.useContext)(Za);return(0,f.useMemo)(()=>({agents:e?.agents??to,agentId:e?.agentId}),[e?.agents,e?.agentId])}var ro=`agentic-diff.agent-ack.`,io=`agentic-diff.agent-isolated`;function ao(){try{return window.localStorage.getItem(io)===`1`}catch{return!1}}function oo(e){try{return window.localStorage.getItem(ro+e)===`1`}catch{return!1}}function so(e){try{window.localStorage.setItem(ro+e,`1`)}catch{}}function co({repoId:e,repoRoot:t,spec:n,scope:r,scratch:i,children:a}){let o=y(),s=tt({queryKey:[`agents`],queryFn:R.agents,staleTime:6e4}),c=tt({queryKey:[`agent-runs`,e],queryFn:()=>R.runs(e)}),[l,u]=(0,f.useState)([]),[d,p]=(0,f.useState)(void 0),[m,h]=(0,f.useState)(void 0),[g,v]=(0,f.useState)(void 0),[b,x]=(0,f.useState)(ao),S=b&&!i;(0,f.useEffect)(()=>{c.data&&u(c.data.runs)},[c.data]),(0,f.useEffect)(()=>qa((t,n)=>{u(r=>r.some(e=>e.id===t)?r.map(e=>e.id===t?Rt(e,n):e):(o.invalidateQueries({queryKey:[`agent-runs`,e]}),r)),(n.t===`done`||n.t===`error`)&&(o.invalidateQueries({queryKey:[`agent-runs`,e]}),o.invalidateQueries({queryKey:[`threads`,e]}),o.invalidateQueries({queryKey:[`chat`,e]}),o.invalidateQueries({queryKey:[`agents`]}))}),[o,e]);let C=s.data?.agents??to,w=d??C.find(e=>e.isDefault)?.id??C[0]?.id,T=C.find(e=>e.id===w),E=(0,f.useCallback)(e=>Jt(e.message,C,w).agentId??w,[C,w]),D=(0,f.useCallback)(async(t,r)=>{v(void 0);try{let i=await R.startRun(e,{spec:n,message:t.message,threadId:t.threadId,agentId:E(t),isolated:S,acceptForeign:r,review:t.review,fix:t.fix});return u(e=>[i,...e.filter(e=>e.id!==i.id)]),t.threadId===void 0&&o.invalidateQueries({queryKey:[`chat`,e]}),!0}catch(n){if(n instanceof lt&&n.code===`untrusted_repo`)return new Promise(e=>h({input:t,untrusted:!0,settle:e}));let i=n instanceof lt&&n.code===`foreign_code`?n.data.head:void 0;return i!==void 0&&r!==i?oo(`foreign.${e}.${i}`)?D(t,i):new Promise(e=>h({input:t,untrusted:!1,foreign:i,settle:e})):(v({threadId:t.threadId,message:n instanceof Error?n.message:`Could not start the agent`}),!1)}},[e,n,E,S,o]),O=(0,f.useCallback)(t=>{let n=E(t);return n&&!oo(`${e}.${n}`)?new Promise(e=>h({input:t,untrusted:!1,settle:e})):D(t)},[e,E,D]),ee=async()=>{if(!m)return;let{input:t,untrusted:n,foreign:r,settle:i}=m;h(void 0);let a=E(t);a&&so(`${e}.${a}`),r!==void 0&&so(`foreign.${e}.${r}`);try{n&&(await R.trustRepo(e),o.invalidateQueries({queryKey:[`repo`,e]})),i(await D(t,r))}catch(e){v({threadId:t.threadId,message:e instanceof Error?e.message:`Could not start the agent`}),i(!1)}},k=()=>{m?.settle(!1),h(void 0)},te=(0,f.useMemo)(()=>{let t=e=>v({message:e instanceof Error?e.message:`The request failed`}),n=e=>void e.then(e=>u(t=>e.dismissed?t.filter(t=>t.id!==e.id):t.map(t=>t.id===e.id?e:t)),t);return{selectAgent:p,setIsolated:e=>{x(e);try{window.localStorage.setItem(io,e?`1`:`0`)}catch{}},setOption:(e,t,n)=>void R.setAgentOption(e,t,n).then(()=>o.invalidateQueries({queryKey:[`agents`]}),e=>v({message:e instanceof Error?e.message:`The option could not be set`})),start:O,startIfMentioned:(e,t)=>{Yt(t,C)&&O({threadId:e,message:t})},cancel:t=>n(R.cancelRun(e,t)),answer:(n,r,i)=>{u(e=>e.map(e=>e.id===n&&e.asking?.id===r?{...e,asking:void 0}:e)),R.answerRun(e,n,r,i).catch(t)},revert:t=>n(R.revertRun(e,t)),dismiss:t=>n(R.dismissRun(e,t))}},[O,e,o,C]),ne=(0,f.useMemo)(()=>{let e=e=>e.status===`running`||e.status===`failed`;return{agents:C,agentId:w,runs:l,runFor:t=>l.find(n=>n.threadId===t&&e(n)),chatRun:l.find(t=>t.threadId===void 0&&t.scope===r&&e(t)),startError:g,isolated:S,canIsolate:!i}},[C,w,l,r,g,S,i]),A=m?C.find(e=>e.id===E(m.input))??T:void 0;return(0,_.jsxs)(Qa.Provider,{value:te,children:[(0,_.jsx)(Za.Provider,{value:ne,children:a}),m&&A&&(0,_.jsx)(lo,{agent:A,untrusted:m.untrusted,foreign:m.foreign!==void 0,where:i?`a disposable copy of the revision being compared`:S?`a disposable copy of your working tree as it is now`:void 0,repoRoot:t,onConfirm:()=>void ee(),onCancel:k})]})}function lo({agent:e,untrusted:t,foreign:n,where:r,repoRoot:i,onConfirm:a,onCancel:o}){let s=(0,f.useRef)(null);return Ga(s),(0,f.useEffect)(()=>{let e=e=>{e.key===`Escape`&&o()};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[o]),(0,_.jsx)(`div`,{className:`modal-backdrop`,children:(0,_.jsxs)(`div`,{ref:s,className:`dialog modal`,role:`dialog`,"aria-modal":`true`,"aria-labelledby":`agent-confirm-title`,children:[(0,_.jsxs)(`h2`,{id:`agent-confirm-title`,className:`dialog-title`,children:[`Run `,e.name,` here?`]}),t&&(0,_.jsx)(`div`,{className:`flash flash-attention`,role:`alert`,children:`This repository was cloned from a shared link. An agent reads project files, and some agents also load configuration from the project directory. Run one here only if you trust this repository.`}),n&&(0,_.jsx)(`div`,{className:`flash flash-attention`,role:`alert`,children:`These commits are on none of your branches: they are someone else’s code, such as a pull request or a remote branch. The agent runs inside a copy of them, and some agents load settings, hooks or tool servers from the directory they run in. Run one here only if you trust where this code comes from.`}),(0,_.jsxs)(`dl`,{className:`dialog-facts`,children:[(0,_.jsx)(`dt`,{children:`Command`}),(0,_.jsx)(`dd`,{children:(0,_.jsx)(`code`,{children:e.command})}),(0,_.jsx)(`dt`,{children:`Runs in`}),(0,_.jsx)(`dd`,{children:r??(0,_.jsx)(`code`,{children:i??`the working tree`})})]}),(0,_.jsx)(`p`,{className:`dialog-note`,children:`The agent is a separate program with your permissions. What it reads here and sends to its provider is decided by the agent, not by agentic-diff. Its edits are turned into suggestions; nothing is applied without you.`}),(0,_.jsxs)(`div`,{className:`dialog-actions`,children:[(0,_.jsx)(`button`,{type:`button`,className:`button button-primary`,autoFocus:!0,onClick:a,children:t?`Trust this repository and run`:n?`Run in this code`:`Run agent`}),(0,_.jsx)(`button`,{type:`button`,className:`button`,onClick:o,children:`Cancel`})]})]})})}var uo=ot();function fo({textarea:e,value:t,onChange:n}){let{agents:r,agentId:i}=no(),[a,o]=(0,f.useState)(void 0),[s,c]=(0,f.useState)(0),[l,u]=(0,f.useState)(void 0),d=(0,f.useRef)(null),p=(0,f.useMemo)(()=>a===void 0||r.length===0?void 0:Qt(t,a,r,i),[t,a,r,i]),m=p!==void 0&&l!==t,h=m?p.hints:[],g=Math.min(s,Math.max(h.length-1,0));(0,f.useEffect)(()=>{d.current?.querySelector(`[aria-selected="true"]`)?.scrollIntoView({block:`nearest`})},[g,m]);let v=()=>{let t=e.current;o(t&&document.activeElement===t&&t.selectionStart===t.selectionEnd?t.selectionStart:void 0)},y=r=>{let i=e.current;if(!p||a===void 0||!i)return;let s=t.slice(0,p.start)+r.insert+t.slice(a),l=p.start+r.insert.length;(0,uo.flushSync)(()=>{n(s),c(0),o(l)}),i.focus(),i.setSelectionRange(l,l)};return{list:m?(0,_.jsx)(`ul`,{ref:d,className:`hints`,role:`listbox`,"aria-label":`Suggestions`,children:h.map((e,t)=>(0,_.jsxs)(`li`,{role:`option`,"aria-selected":t===g,className:`hint`,onMouseDown:t=>{t.preventDefault(),y(e)},onMouseEnter:()=>c(t),children:[(0,_.jsx)(`code`,{className:`hint-label`,children:e.label}),e.detail&&(0,_.jsx)(`span`,{className:`hint-detail`,children:e.detail})]},e.label))}):null,onKeyDown:e=>!m||h.length===0||e.nativeEvent.isComposing?!1:e.key===`ArrowDown`||e.key===`ArrowUp`?(e.preventDefault(),c((g+(e.key===`ArrowDown`?1:h.length-1))%h.length),!0):e.key===`Enter`&&!e.metaKey&&!e.ctrlKey&&!e.shiftKey||e.key===`Tab`?(e.preventDefault(),y(h[g]),!0):e.key===`Escape`&&(e.preventDefault(),e.stopPropagation(),u(t),!0),onCaret:v}}function po(e,t){let n=t||{};return(e[e.length-1]===``?[...e,``]:e).join((n.padRight?` `:``)+`,`+(n.padLeft===!1?``:` `)).trim()}var mo=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,ho=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,go={};function _o(e,t){return((t||go).jsx?ho:mo).test(e)}var vo=/[ \t\n\f\r]/g;function yo(e){return typeof e==`object`?e.type===`text`&&bo(e.value):bo(e)}function bo(e){return e.replace(vo,``)===``}var xo=class{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}};xo.prototype.normal={},xo.prototype.property={},xo.prototype.space=void 0;function So(e,t){let n={},r={};for(let t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new xo(n,r,t)}function Co(e){return e.toLowerCase()}var wo=class{constructor(e,t){this.attribute=t,this.property=e}};wo.prototype.attribute=``,wo.prototype.booleanish=!1,wo.prototype.boolean=!1,wo.prototype.commaOrSpaceSeparated=!1,wo.prototype.commaSeparated=!1,wo.prototype.defined=!1,wo.prototype.mustUseProperty=!1,wo.prototype.number=!1,wo.prototype.overloadedBoolean=!1,wo.prototype.property=``,wo.prototype.spaceSeparated=!1,wo.prototype.space=void 0;var To=s({boolean:()=>H,booleanish:()=>Do,commaOrSpaceSeparated:()=>Ao,commaSeparated:()=>ko,number:()=>U,overloadedBoolean:()=>Oo,spaceSeparated:()=>W}),Eo=0,H=jo(),Do=jo(),Oo=jo(),U=jo(),W=jo(),ko=jo(),Ao=jo();function jo(){return 2**++Eo}var Mo=Object.keys(To),No=class extends wo{constructor(e,t,n,r){let i=-1;if(super(e,t),Po(this,`space`,r),typeof n==`number`)for(;++i<Mo.length;){let e=Mo[i];Po(this,Mo[i],(n&To[e])===To[e])}}};No.prototype.defined=!0;function Po(e,t,n){n&&(e[t]=n)}function Fo(e){let t={},n={};for(let[r,i]of Object.entries(e.properties)){let a=new No(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[Co(r)]=r,n[Co(a.attribute)]=r}return new xo(t,n,e.space)}var Io=Fo({properties:{ariaActiveDescendant:null,ariaAtomic:Do,ariaAutoComplete:null,ariaBusy:Do,ariaChecked:Do,ariaColCount:U,ariaColIndex:U,ariaColSpan:U,ariaControls:W,ariaCurrent:null,ariaDescribedBy:W,ariaDetails:null,ariaDisabled:Do,ariaDropEffect:W,ariaErrorMessage:null,ariaExpanded:Do,ariaFlowTo:W,ariaGrabbed:Do,ariaHasPopup:null,ariaHidden:Do,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:W,ariaLevel:U,ariaLive:null,ariaModal:Do,ariaMultiLine:Do,ariaMultiSelectable:Do,ariaOrientation:null,ariaOwns:W,ariaPlaceholder:null,ariaPosInSet:U,ariaPressed:Do,ariaReadOnly:Do,ariaRelevant:null,ariaRequired:Do,ariaRoleDescription:W,ariaRowCount:U,ariaRowIndex:U,ariaRowSpan:U,ariaSelected:Do,ariaSetSize:U,ariaSort:null,ariaValueMax:U,ariaValueMin:U,ariaValueNow:U,ariaValueText:null,role:null},transform(e,t){return t===`role`?t:`aria-`+t.slice(4).toLowerCase()}});function Lo(e,t){return t in e?e[t]:t}function Ro(e,t){return Lo(e,t.toLowerCase())}var G=Fo({attributes:{acceptcharset:`accept-charset`,classname:`class`,htmlfor:`for`,httpequiv:`http-equiv`},mustUseProperty:[`checked`,`multiple`,`muted`,`selected`],properties:{abbr:null,accept:ko,acceptCharset:W,accessKey:W,action:null,allow:null,allowFullScreen:H,allowPaymentRequest:H,allowUserMedia:H,alpha:H,alt:null,as:null,async:H,autoCapitalize:null,autoComplete:W,autoFocus:H,autoPlay:H,blocking:W,capture:null,charSet:null,checked:H,cite:null,className:W,closedBy:null,colorSpace:null,cols:U,colSpan:U,command:null,commandFor:null,content:null,contentEditable:Do,controls:H,controlsList:W,coords:U|ko,crossOrigin:null,data:null,dateTime:null,decoding:null,default:H,defer:H,dir:null,dirName:null,disabled:H,download:Oo,draggable:Do,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:H,formTarget:null,headers:W,height:U,hidden:Oo,high:U,href:null,hrefLang:null,htmlFor:W,httpEquiv:W,id:null,imageSizes:null,imageSrcSet:null,inert:H,inputMode:null,integrity:null,is:null,isMap:H,itemId:null,itemProp:W,itemRef:W,itemScope:H,itemType:W,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:H,low:U,manifest:null,max:null,maxLength:U,media:null,method:null,min:null,minLength:U,multiple:H,muted:H,name:null,nonce:null,noModule:H,noValidate:H,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:H,optimum:U,pattern:null,ping:W,placeholder:null,playsInline:H,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:H,referrerPolicy:null,rel:W,required:H,reversed:H,rows:U,rowSpan:U,sandbox:W,scope:null,scoped:H,seamless:H,selected:H,shadowRootClonable:H,shadowRootCustomElementRegistry:H,shadowRootDelegatesFocus:H,shadowRootMode:null,shadowRootSerializable:H,shape:null,size:U,sizes:null,slot:null,span:U,spellCheck:Do,src:null,srcDoc:null,srcLang:null,srcSet:null,start:U,step:null,style:null,tabIndex:U,target:null,title:null,translate:null,type:null,typeMustMatch:H,useMap:null,value:Do,width:U,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:W,axis:null,background:null,bgColor:null,border:U,borderColor:null,bottomMargin:U,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:H,declare:H,event:null,face:null,frame:null,frameBorder:null,hSpace:U,leftMargin:U,link:null,longDesc:null,lowSrc:null,marginHeight:U,marginWidth:U,noResize:H,noHref:H,noShade:H,noWrap:H,object:null,profile:null,prompt:null,rev:null,rightMargin:U,rules:null,scheme:null,scrolling:Do,standby:null,summary:null,text:null,topMargin:U,valueType:null,version:null,vAlign:null,vLink:null,vSpace:U,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:H,disablePictureInPicture:H,disableRemotePlayback:H,exportParts:ko,part:W,prefix:null,property:null,results:U,security:null,unselectable:null},space:`html`,transform:Ro}),zo=Fo({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:Ao,accentHeight:U,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:U,amplitude:U,arabicForm:null,ascent:U,attributeName:null,attributeType:null,azimuth:U,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:U,by:null,calcMode:null,capHeight:U,className:W,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:U,diffuseConstant:U,direction:null,display:null,dur:null,divisor:U,dominantBaseline:null,download:H,dx:null,dy:null,edgeMode:null,editable:null,elevation:U,enableBackground:null,end:null,event:null,exponent:U,externalResourcesRequired:null,fill:null,fillOpacity:U,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:ko,g2:ko,glyphName:ko,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:U,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:U,horizOriginX:U,horizOriginY:U,id:null,ideographic:U,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:U,k:U,k1:U,k2:U,k3:U,k4:U,kernelMatrix:Ao,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:U,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:U,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:U,overlineThickness:U,paintOrder:null,panose1:null,path:null,pathLength:U,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:W,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:U,pointsAtY:U,pointsAtZ:U,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Ao,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Ao,rev:Ao,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Ao,requiredFeatures:Ao,requiredFonts:Ao,requiredFormats:Ao,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:U,specularExponent:U,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:U,strikethroughThickness:U,string:null,stroke:null,strokeDashArray:Ao,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:U,strokeOpacity:U,strokeWidth:null,style:null,surfaceScale:U,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Ao,tabIndex:U,tableValues:null,target:null,targetX:U,targetY:U,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Ao,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:U,underlineThickness:U,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:U,values:null,vAlphabetic:U,vMathematical:U,vectorEffect:null,vHanging:U,vIdeographic:U,version:null,vertAdvY:U,vertOriginX:U,vertOriginY:U,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:U,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:`svg`,transform:Lo}),Bo=Fo({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:`xlink`,transform(e,t){return`xlink:`+t.slice(5).toLowerCase()}}),Vo=Fo({attributes:{xmlnsxlink:`xmlns:xlink`},properties:{xmlnsXLink:null,xmlns:null},space:`xmlns`,transform:Ro}),Ho=Fo({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:`xml`,transform(e,t){return`xml:`+t.slice(3).toLowerCase()}}),Uo={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`},Wo=/[A-Z]/g,Go=/-[a-z]/g,Ko=/^data[-\w.:]+$/i;function qo(e,t){let n=Co(t),r=t,i=wo;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)===`data`&&Ko.test(t)){if(t.charAt(4)===`-`){let e=t.slice(5).replace(Go,Yo);r=`data`+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!Go.test(e)){let n=e.replace(Wo,Jo);n.charAt(0)!==`-`&&(n=`-`+n),t=`data`+n}}i=No}return new i(r,t)}function Jo(e){return`-`+e.toLowerCase()}function Yo(e){return e.charAt(1).toUpperCase()}var Xo=So([Io,G,Bo,Vo,Ho],`html`),Zo=So([Io,zo,Bo,Vo,Ho],`svg`);function Qo(e){return e.join(` `).trim()}var $o=/\/\*(?:[^*]|\*(?!\/))*\*\//g,es=/\n/g,ts=/^\s*/,ns=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,rs=/^:\s*/,is=/^((?:'(?:\\.|[^'\\])*'|"(?:\\.|[^"\\])*"|url\((?:'(?:\\.|[^'\\])*'|"(?:\\.|[^"\\])*"|[^)]*)\)|[^};])+)/,as=/^[;\s]*/,os=`
|
|
18
|
+
`,ss=`/`,cs=`*`,ls=``,us=`comment`,ds=`declaration`;function fs(e,t){if(typeof e!=`string`)throw TypeError(`First argument must be a string`);if(!e)return[];t||={};var n=1,r=1;function i(e){var t=e.match(es);t&&(n+=t.length);var i=e.lastIndexOf(os);r=~i?e.length-i:r+e.length}function a(){var e={line:n,column:r};return function(t){return t.position=new o(e),l(),t}}function o(e){this.start=e,this.end={line:n,column:r},this.source=t.source}o.prototype.content=e;function s(i){var a=Error(t.source+`:`+n+`:`+r+`: `+i);if(a.reason=i,a.filename=t.source,a.line=n,a.column=r,a.source=e,!t.silent)throw a}function c(t){var n=t.exec(e);if(n){var r=n[0];return i(r),e=e.slice(r.length),n}}function l(){c(ts)}function u(e){for(var t;t=d();)e.push(t);return e}function d(){var t=a();if(ss==e.charAt(0)&&cs==e.charAt(1)){for(var n=2;ls!=e.charAt(n)&&(cs!=e.charAt(n)||ss!=e.charAt(n+1));)++n;if(n+=2,ls===e.charAt(n-1))return s(`End of comment missing`);var o=e.slice(2,n-2);return r+=2,i(o),e=e.slice(n),r+=2,t({type:us,comment:o})}}function f(){var e=a(),t=c(ns);if(t){if(d(),!c(rs))return s(`property missing ':'`);var n=c(is),r=e({type:ds,property:t[0].replace($o,ls).trim(),value:n?n[0].replace($o,ls).trim():ls});return c(as),r}}function p(){var e=[];u(e);for(var t;t=f();)e.push(t),u(e);return e}return l(),p()}function ps(e,t){let n=null;if(!e||typeof e!=`string`)return n;let r=fs(e),i=typeof t==`function`;return r.forEach(e=>{if(e.type!==`declaration`)return;let{property:r,value:a}=e;i?t(r,a,e):a&&(n??={},n[r]=a)}),n}var ms=gs(`end`),hs=gs(`start`);function gs(e){return t;function t(t){let n=t&&t.position&&t.position[e]||{};if(typeof n.line==`number`&&n.line>0&&typeof n.column==`number`&&n.column>0)return{line:n.line,column:n.column,offset:typeof n.offset==`number`&&n.offset>-1?n.offset:void 0}}}function _s(e){let t=hs(e),n=ms(e);if(t&&n)return{start:t,end:n}}function vs(e){return!e||typeof e!=`object`?``:`position`in e||`type`in e?bs(e.position):`start`in e||`end`in e?bs(e):`line`in e||`column`in e?ys(e):``}function ys(e){return xs(e&&e.line)+`:`+xs(e&&e.column)}function bs(e){return ys(e&&e.start)+`-`+ys(e&&e.end)}function xs(e){return e&&typeof e==`number`?e:1}var Ss=class extends Error{constructor(e,t,n){super(),typeof t==`string`&&(n=t,t=void 0);let r=``,i={},a=!1;if(t&&(i=`line`in t&&`column`in t||`start`in t&&`end`in t?{place:t}:`type`in t?{ancestors:[t],place:t.position}:{...t}),typeof e==`string`?r=e:!i.cause&&e&&(a=!0,r=e.message,i.cause=e),!i.ruleId&&!i.source&&typeof n==`string`){let e=n.indexOf(`:`);e===-1?i.ruleId=n:(i.source=n.slice(0,e),i.ruleId=n.slice(e+1))}if(!i.place&&i.ancestors){let e=i.ancestors[i.ancestors.length-1];e&&(i.place=e.position)}let o=i.place&&`start`in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=o?o.column:void 0,this.fatal=void 0,this.file=``,this.message=r,this.line=o?o.line:void 0,this.name=vs(i.place)||`1:1`,this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=a&&i.cause&&typeof i.cause.stack==`string`?i.cause.stack:``,this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}};Object.defineProperties(Ss.prototype,{file:{configurable:!0,enumerable:!0,value:``,writable:!0},name:{configurable:!0,enumerable:!0,value:``,writable:!0},reason:{configurable:!0,enumerable:!0,value:``,writable:!0},message:{configurable:!0,enumerable:!0,value:``,writable:!0},stack:{configurable:!0,enumerable:!0,value:``,writable:!0},column:{configurable:!0,enumerable:!0,writable:!0},line:{configurable:!0,enumerable:!0,writable:!0},ancestors:{configurable:!0,enumerable:!0,writable:!0},cause:{configurable:!0,enumerable:!0,writable:!0},fatal:{configurable:!0,enumerable:!0,writable:!0},place:{configurable:!0,enumerable:!0,writable:!0},ruleId:{configurable:!0,enumerable:!0,writable:!0},source:{configurable:!0,enumerable:!0,writable:!0}});var Cs={}.hasOwnProperty,ws=new Map,Ts=/[A-Z]/g,Es=/-([a-z])/g,Ds=new Set([`table`,`tbody`,`thead`,`tfoot`,`tr`]),Os=new Set([`td`,`th`]),ks=`https://github.com/syntax-tree/hast-util-to-jsx-runtime`;function As(e,t){if(!t||t.Fragment===void 0)throw TypeError("Expected `Fragment` in options");let n=t.filePath||void 0,r;if(t.development){if(typeof t.jsxDEV!=`function`)throw TypeError("Expected `jsxDEV` in options when `development: true`");r=Vs(n,t.jsxDEV)}else{if(typeof t.jsx!=`function`)throw TypeError("Expected `jsx` in production options");if(typeof t.jsxs!=`function`)throw TypeError("Expected `jsxs` in production options");r=Bs(n,t.jsx,t.jsxs)}let i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||`react`,evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space===`svg`?Zo:Xo,stylePropertyNameCase:t.stylePropertyNameCase||`dom`,tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=js(i,e,void 0);return a&&typeof a!=`string`?a:i.create(e,i.Fragment,{children:a||void 0},void 0)}function js(e,t,n){if(t.type===`element`)return Ms(e,t,n);if(t.type===`mdxFlowExpression`||t.type===`mdxTextExpression`)return Ns(e,t);if(t.type===`mdxJsxFlowElement`||t.type===`mdxJsxTextElement`)return Fs(e,t,n);if(t.type===`mdxjsEsm`)return Ps(e,t);if(t.type===`root`)return Is(e,t,n);if(t.type===`text`)return Ls(e,t)}function Ms(e,t,n){let r=e.schema,i=r;t.tagName.toLowerCase()===`svg`&&r.space===`html`&&(i=Zo,e.schema=i),e.ancestors.push(t);let a=qs(e,t.tagName,!1),o=Hs(e,t),s=Ws(e,t);return Ds.has(t.tagName)&&(s=s.filter(function(e){return typeof e!=`string`||!yo(e)})),Rs(e,o,a,t),zs(o,s),e.ancestors.pop(),e.schema=r,e.create(t,a,o,n)}function Ns(e,t){if(t.data&&t.data.estree&&e.evaluater){let n=t.data.estree.body[0];return n.type,e.evaluater.evaluateExpression(n.expression)}Js(e,t.position)}function Ps(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Js(e,t.position)}function Fs(e,t,n){let r=e.schema,i=r;t.name===`svg`&&r.space===`html`&&(i=Zo,e.schema=i),e.ancestors.push(t);let a=t.name===null?e.Fragment:qs(e,t.name,!0),o=Us(e,t),s=Ws(e,t);return Rs(e,o,a,t),zs(o,s),e.ancestors.pop(),e.schema=r,e.create(t,a,o,n)}function Is(e,t,n){let r={};return zs(r,Ws(e,t)),e.create(t,e.Fragment,r,n)}function Ls(e,t){return t.value}function Rs(e,t,n,r){typeof n!=`string`&&n!==e.Fragment&&e.passNode&&(t.node=r)}function zs(e,t){if(t.length>0){let n=t.length>1?t:t[0];n&&(e.children=n)}}function Bs(e,t,n){return r;function r(e,r,i,a){let o=Array.isArray(i.children)?n:t;return a?o(r,i,a):o(r,i)}}function Vs(e,t){return n;function n(n,r,i,a){let o=Array.isArray(i.children),s=hs(n);return t(r,i,a,o,{columnNumber:s?s.column-1:void 0,fileName:e,lineNumber:s?s.line:void 0},void 0)}}function Hs(e,t){let n={},r,i;for(i in t.properties)if(i!==`children`&&Cs.call(t.properties,i)){let a=Gs(e,i,t.properties[i]);if(a){let[i,o]=a;e.tableCellAlignToStyle&&i===`align`&&typeof o==`string`&&Os.has(t.tagName)?r=o:n[i]=o}}if(r){let t=n.style||={};t[e.stylePropertyNameCase===`css`?`text-align`:`textAlign`]=r}return n}function Us(e,t){let n={};for(let r of t.attributes)if(r.type===`mdxJsxExpressionAttribute`){if(r.data&&r.data.estree&&e.evaluater){let t=r.data.estree.body[0];t.type;let i=t.expression;i.type;let a=i.properties[0];a.type,Object.assign(n,e.evaluater.evaluateExpression(a.argument))}else Js(e,t.position)}else{let{name:i}=r,a;if(r.value&&typeof r.value==`object`){if(r.value.data&&r.value.data.estree&&e.evaluater){let t=r.value.data.estree.body[0];t.type,a=e.evaluater.evaluateExpression(t.expression)}else Js(e,t.position)}else a=r.value===null||r.value;n[i]=a}return n}function Ws(e,t){let n=[],r=-1,i=e.passKeys?new Map:ws;for(;++r<t.children.length;){let a=t.children[r],o;if(e.passKeys){let e=a.type===`element`?a.tagName:a.type===`mdxJsxFlowElement`||a.type===`mdxJsxTextElement`?a.name:void 0;if(e){let t=i.get(e)||0;o=e+`-`+t,i.set(e,t+1)}}let s=js(e,a,o);s!==void 0&&n.push(s)}return n}function Gs(e,t,n){if(n==null||typeof n==`number`&&Number.isNaN(n))return;let r=qo(e.schema,t);return Array.isArray(n)&&(n=r.commaSeparated?po(n):Qo(n)),r.property===`style`?[`style`,typeof n==`object`?e.stylePropertyNameCase===`dom`?n:Ys(n):Ks(e,String(n))]:[e.elementAttributeNameCase===`react`&&r.space?Uo[r.property]||r.property:r.attribute,n]}function Ks(e,t){let n={};try{ps(t,function(t,r){if(t&&r){let i=t;i.slice(0,2)!==`--`&&(i=i.toLowerCase(),e.stylePropertyNameCase===`dom`&&(i.slice(0,4)===`-ms-`&&(i=i.slice(1)),i=i.replace(Es,Qs))),n[i]=r}})}catch(t){if(e.ignoreInvalidStyle)return{};let n=t,r=new Ss("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:n,ruleId:`style`,source:`hast-util-to-jsx-runtime`});throw r.file=e.filePath||void 0,r.url=ks+`#cannot-parse-style-attribute`,r}return n}function qs(e,t,n){let r;if(!n)r={type:`Literal`,value:t};else if(t.includes(`.`)){let e=t.split(`.`),n=-1,i;for(;++n<e.length;){let t=_o(e[n])?{type:`Identifier`,name:e[n]}:{type:`Literal`,value:e[n]};i=i?{type:`MemberExpression`,object:i,property:t,computed:!!(n&&t.type===`Literal`),optional:!1}:t}r=i}else r=_o(t)&&!/^[a-z]/.test(t)?{type:`Identifier`,name:t}:{type:`Literal`,value:t};if(r.type===`Literal`){let t=r.value;return Cs.call(e.components,t)?e.components[t]:t}if(e.evaluater)return e.evaluater.evaluateExpression(r);Js(e)}function Js(e,t){let n=new Ss("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:`mdx-estree`,source:`hast-util-to-jsx-runtime`});throw n.file=e.filePath||void 0,n.url=ks+`#cannot-handle-mdx-estrees-without-createevaluater`,n}function Ys(e){let t={},n;for(n in e)Cs.call(e,n)&&(t[Xs(n)]=e[n]);return t}function Xs(e){if(e.slice(0,2)===`--`)return e;let t=e.replace(Ts,Zs);return t.slice(0,3)===`ms-`&&(t=`-`+t),t}function Zs(e){return`-`+e.toLowerCase()}function Qs(e,t){return t.toUpperCase()}var $s={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`]},ec={};function tc(e,t){let n=t||ec;return nc(e,typeof n.includeImageAlt!=`boolean`||n.includeImageAlt,typeof n.includeHtml!=`boolean`||n.includeHtml)}function nc(e,t,n){if(ic(e)){if(`value`in e)return e.type===`html`&&!n?``:e.value;if(t&&`alt`in e&&e.alt)return e.alt;if(`children`in e)return rc(e.children,t,n)}return Array.isArray(e)?rc(e,t,n):``}function rc(e,t,n){let r=[],i=-1;for(;++i<e.length;)r[i]=nc(e[i],t,n);return r.join(``)}function ic(e){return!!(e&&typeof e==`object`)}var ac=document.createElement(`i`);function oc(e){let t=`&`+e+`;`;ac.innerHTML=t;let n=ac.textContent;return n.charCodeAt(n.length-1)===59&&e!==`semi`?!1:n!==t&&n}function sc(e,t,n,r){let i=e.length,a=0,o;if(t=t<0?-t>i?0:i+t:t>i?i:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);a<r.length;)o=r.slice(a,a+1e4),o.unshift(t,0),e.splice(...o),a+=1e4,t+=1e4}function cc(e,t){return e.length>0?(sc(e,e.length,0,t),e):t}var lc={}.hasOwnProperty;function uc(e){let t={},n=-1;for(;++n<e.length;)dc(t,e[n]);return t}function dc(e,t){let n;for(n in t){let r=(lc.call(e,n)?e[n]:void 0)||(e[n]={}),i=t[n],a;if(i)for(a in i){lc.call(r,a)||(r[a]=[]);let e=i[a];fc(r[a],Array.isArray(e)?e:e?[e]:[])}}}function fc(e,t){let n=-1,r=[];for(;++n<t.length;)(t[n].add===`after`?e:r).push(t[n]);sc(e,0,0,r)}function pc(e,t){let n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)==65535||(n&65535)==65534||n>1114111?`�`:String.fromCodePoint(n)}function mc(e){return e.replace(/[\t\n\r ]+/g,` `).replace(/^ | $/g,``).toLowerCase().toUpperCase()}var hc=Tc(/[A-Za-z]/),gc=Tc(/[\dA-Za-z]/),_c=Tc(/[#-'*+\--9=?A-Z^-~]/);function vc(e){return e!==null&&(e<32||e===127)}var yc=Tc(/\d/),bc=Tc(/[\dA-Fa-f]/),xc=Tc(/[!-/:-@[-`{-~]/);function K(e){return e!==null&&e<-2}function Sc(e){return e!==null&&(e<0||e===32)}function q(e){return e===-2||e===-1||e===32}var Cc=Tc(/\p{P}|\p{S}/u),wc=Tc(/\s/);function Tc(e){return t;function t(t){return t!==null&&t>-1&&e.test(String.fromCharCode(t))}}function Ec(e){let t=[],n=-1,r=0,i=0;for(;++n<e.length;){let a=e.charCodeAt(n),o=``;if(a===37&&gc(e.charCodeAt(n+1))&&gc(e.charCodeAt(n+2)))i=2;else if(a<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(a))||(o=String.fromCharCode(a));else if(a>55295&&a<57344){let t=e.charCodeAt(n+1);a<56320&&t>56319&&t<57344?(o=String.fromCharCode(a,t),i=1):o=`�`}else o=String.fromCharCode(a);o&&=(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+i+1,``),i&&=(n+=i,0)}return t.join(``)+e.slice(r)}function J(e,t,n,r){let i=r?r-1:1/0,a=0;return o;function o(r){return q(r)?(e.enter(n),s(r)):t(r)}function s(r){return q(r)&&a++<i?(e.consume(r),s):(e.exit(n),t(r))}}function Dc(e,t,n,r,i,a){let o=0;return s;function s(t){return a>0&&q(t)?(e.enter(r),c(t)):l(t)}function c(t){return q(t)&&o<a?(e.consume(t),o++,c):(e.exit(r),l(t))}function l(e){return o>=i?t(e):n(e)}}var Oc={tokenize:kc};function kc(e){let t=e.attempt(this.parser.constructs.contentInitial,r,i),n;return t;function r(n){if(n===null)e.consume(n);else return e.enter(`lineEnding`),e.consume(n),e.exit(`lineEnding`),J(e,t,`linePrefix`)}function i(t){return e.enter(`paragraph`),a(t)}function a(t){let r=e.enter(`chunkText`,{contentType:`text`,previous:n});return n&&(n.next=r),n=r,o(t)}function o(t){if(t===null)e.exit(`chunkText`),e.exit(`paragraph`),e.consume(t);else return K(t)?(e.consume(t),e.exit(`chunkText`),a):(e.consume(t),o)}}var Ac=class{constructor(){this.index=new Map,this.map=[]}add(e,t,n){jc(this,e,t,n,!1)}addBefore(e,t,n){jc(this,e,t,n,!0)}consume(e){if(this.map.sort(function(e,t){return e[0]-t[0]}),this.map.length===0)return;let t=this.map.length,n=[];for(;t>0;)--t,n.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),e.length=this.map[t][0];n.push(e.slice()),e.length=0;let r=n.pop();for(;r;){for(let t of r)e.push(t);r=n.pop()}this.map.length=0,this.index.clear()}};function jc(e,t,n,r,i){if(n===0&&r.length===0)return;let a=e.index.get(t);if(a){a[1]+=n,i?(r.push(...a[2]),a[2]=r):a[2].push(...r);return}let o=[t,n,r];e.map.push(o),e.index.set(t,o)}var Mc={tokenize:Pc},Nc={tokenize:Fc};function Pc(e){let t=this,n=[],r=0,i,a,o;return s;function s(i){if(r<n.length){let a=n[r];return t.containerState=a[1],e.attempt(a[0].continuation,c,l)(i)}return l(i)}function c(e){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&v();let n=t.events.length,a=n,o;for(;a--;)if(t.events[a][0]===`exit`&&t.events[a][1].type===`chunkFlow`){o=t.events[a][1].end;break}_(r);let s=n;for(;s<t.events.length;)t.events[s][1].end={...o},s++;let c=new Ac;return c.add(a+1,0,t.events.slice(n)),c.add(n,s-n,[]),c.consume(t.events),l(e)}return s(e)}function l(a){if(r===n.length){if(!i)return f(a);if(i.currentConstruct&&i.currentConstruct.concrete)return m(a);t.interrupt=!(!i.currentConstruct||i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(Nc,u,d)(a)}function u(e){return i&&v(),_(r),f(e)}function d(e){return t.parser.lazy[t.now().line]=r!==n.length,o=t.now().offset,m(e)}function f(n){return t.containerState={},e.attempt(Nc,p,m)(n)}function p(e){return r++,n.push([t.currentConstruct,t.containerState]),f(e)}function m(n){if(n===null)i&&v(),_(0),e.consume(n);else return i||=t.parser.flow(t.now()),e.enter(`chunkFlow`,{_tokenizer:i,contentType:`flow`,previous:a}),h(n)}function h(n){if(n===null)g(e.exit(`chunkFlow`),!0),_(0),e.consume(n);else return K(n)?(e.consume(n),g(e.exit(`chunkFlow`)),r=0,t.interrupt=void 0,s):(e.consume(n),h)}function g(e,n){let s=t.sliceStream(e);if(n&&s.push(null),e.previous=a,a&&(a.next=e),a=e,i.defineSkip(e.start),i.write(s),t.parser.lazy[e.start.line]){let e=i.events.length;for(;e--;)if(i.events[e][1].start.offset<o&&(!i.events[e][1].end||i.events[e][1].end.offset>o))return;let n=t.events.length,a=n,s,c;for(;a--;)if(t.events[a][0]===`exit`&&t.events[a][1].type===`chunkFlow`){if(s){c=t.events[a][1].end;break}s=!0}for(_(r),e=n;e<t.events.length;)t.events[e][1].end={...c},e++;let l=new Ac;l.add(a+1,0,t.events.slice(n)),l.add(n,e-n,[]),l.consume(t.events)}}function _(r){let i=n.length;for(;i-->r;){let r=n[i];t.containerState=r[1],r[0].exit.call(t,e)}n.length=r}function v(){i.write([null]),a=void 0,i=void 0,t.containerState._closeFlow=void 0}}function Fc(e,t,n){return J(e,e.attempt(this.parser.constructs.document,t,n),`linePrefix`,this.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)}function Ic(e){if(e===null||Sc(e)||wc(e))return 1;if(Cc(e))return 2}function Lc(e,t,n){let r=[],i=-1;for(;++i<e.length;){let a=e[i].resolveAll;a&&!r.includes(a)&&(t=a(t,n),r.push(a))}return t}var Rc={name:`attention`,resolveAll:zc,tokenize:Bc};function zc(e,t){let n=-1,r;for(;++n<e.length;)if(e[n][0]===`enter`&&e[n][1].type===`attentionSequence`&&e[n][1]._close){let i=n;for(;i--;)if(e[i][0]===`exit`&&e[i][1].type===`attentionSequence`&&e[i][1]._open&&t.sliceSerialize(e[i][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[i][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[i][1].end.offset-e[i][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;let a=e[i][1].end.offset-e[i][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1,o={...e[i][1].end},s={...e[n][1].start};Vc(o,-a),Vc(s,a);let c={type:a>1?`strongSequence`:`emphasisSequence`,start:o,end:{...e[i][1].end}},l={type:a>1?`strongSequence`:`emphasisSequence`,start:{...e[n][1].start},end:s},u={type:a>1?`strongText`:`emphasisText`,start:{...e[i][1].end},end:{...e[n][1].start}},d={type:a>1?`strong`:`emphasis`,start:{...c.start},end:{...l.end}};e[i][1].end={...c.start},e[n][1].start={...l.end},r=[],e[i][1].end.offset-e[i][1].start.offset&&(r=cc(r,[[`enter`,e[i][1],t],[`exit`,e[i][1],t]])),r=cc(r,[[`enter`,d,t],[`enter`,c,t],[`exit`,c,t],[`enter`,u,t]]),r=cc(r,Lc(t.parser.constructs.insideSpan.null,e.slice(i+1,n),t)),r=cc(r,[[`exit`,u,t],[`enter`,l,t],[`exit`,l,t],[`exit`,d,t]]);let f=0;e[n][1].end.offset-e[n][1].start.offset&&(f=2,r=cc(r,[[`enter`,e[n][1],t],[`exit`,e[n][1],t]])),sc(e,i-1,n-i+3,r),n=i+r.length-f-2;break}}for(n=-1;++n<e.length;)e[n][1].type===`attentionSequence`&&(e[n][1].type=`data`);return e}function Bc(e,t){let n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=Ic(r),a;return o;function o(t){return a=t,e.enter(`attentionSequence`),s(t)}function s(o){if(o===a)return e.consume(o),s;let c=e.exit(`attentionSequence`),l=Ic(o),u=!l||l===2&&i||n.includes(o)&&o!==42&&o!==95,d=!i||i===2&&l||n.includes(r)&&r!==42&&r!==95;return c._open=!!(a===42?u:u&&(i||!d)),c._close=!!(a===42?d:d&&(l||!u)),t(o)}}function Vc(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}var Hc={name:`autolink`,tokenize:Uc};function Uc(e,t,n){let r=0;return i;function i(t){return e.enter(`autolink`),e.enter(`autolinkMarker`),e.consume(t),e.exit(`autolinkMarker`),e.enter(`autolinkProtocol`),a}function a(t){return hc(t)?(e.consume(t),o):t===64?n(t):l(t)}function o(e){return e===43||e===45||e===46||gc(e)?(r=1,s(e)):l(e)}function s(t){return t===58?(e.consume(t),r=0,c):(t===43||t===45||t===46||gc(t))&&r++<32?(e.consume(t),s):(r=0,l(t))}function c(r){return r===62?(e.exit(`autolinkProtocol`),e.enter(`autolinkMarker`),e.consume(r),e.exit(`autolinkMarker`),e.exit(`autolink`),t):r===null||r===32||r===60||vc(r)?n(r):(e.consume(r),c)}function l(t){return t===64?(e.consume(t),u):_c(t)?(e.consume(t),l):n(t)}function u(e){return gc(e)?d(e):n(e)}function d(n){return n===46?(e.consume(n),r=0,u):n===62?(e.exit(`autolinkProtocol`).type=`autolinkEmail`,e.enter(`autolinkMarker`),e.consume(n),e.exit(`autolinkMarker`),e.exit(`autolink`),t):f(n)}function f(t){if((t===45||gc(t))&&r++<63){let n=t===45?f:d;return e.consume(t),n}return n(t)}}var Wc={partial:!0,tokenize:Gc};function Gc(e,t,n){return r;function r(t){return q(t)?J(e,i,`linePrefix`)(t):i(t)}function i(e){return e===null||K(e)?t(e):n(e)}}var Kc={continuation:{tokenize:Jc},exit:Yc,name:`blockQuote`,tokenize:qc};function qc(e,t,n){let r=this;return i;function i(t){if(t===62){let n=r.containerState;return n.open||=(e.enter(`blockQuote`,{_container:!0}),!0),e.enter(`blockQuotePrefix`),e.enter(`blockQuoteMarker`),e.consume(t),e.exit(`blockQuoteMarker`),a}return n(t)}function a(n){return q(n)?(e.enter(`blockQuotePrefixWhitespace`),e.consume(n),e.exit(`blockQuotePrefixWhitespace`),e.exit(`blockQuotePrefix`),t):(e.exit(`blockQuotePrefix`),t(n))}}function Jc(e,t,n){let r=this;return i;function i(t){return q(t)?J(e,a,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):a(t)}function a(r){return e.attempt(Kc,t,n)(r)}}function Yc(e){e.exit(`blockQuote`)}var Xc={name:`characterEscape`,tokenize:Zc};function Zc(e,t,n){return r;function r(t){return e.enter(`characterEscape`),e.enter(`escapeMarker`),e.consume(t),e.exit(`escapeMarker`),i}function i(r){return xc(r)?(e.enter(`characterEscapeValue`),e.consume(r),e.exit(`characterEscapeValue`),e.exit(`characterEscape`),t):n(r)}}var Qc={name:`characterReference`,tokenize:$c};function $c(e,t,n){let r=this,i=0,a,o;return s;function s(t){return e.enter(`characterReference`),e.enter(`characterReferenceMarker`),e.consume(t),e.exit(`characterReferenceMarker`),c}function c(t){return t===35?(e.enter(`characterReferenceMarkerNumeric`),e.consume(t),e.exit(`characterReferenceMarkerNumeric`),l):(e.enter(`characterReferenceValue`),a=31,o=gc,u(t))}function l(t){return t===88||t===120?(e.enter(`characterReferenceMarkerHexadecimal`),e.consume(t),e.exit(`characterReferenceMarkerHexadecimal`),e.enter(`characterReferenceValue`),a=6,o=bc,u):(e.enter(`characterReferenceValue`),a=7,o=yc,u(t))}function u(s){if(s===59&&i){let i=e.exit(`characterReferenceValue`);return o===gc&&!oc(r.sliceSerialize(i))?n(s):(e.enter(`characterReferenceMarker`),e.consume(s),e.exit(`characterReferenceMarker`),e.exit(`characterReference`),t)}return o(s)&&i++<a?(e.consume(s),u):n(s)}}var el={partial:!0,tokenize:tl};function tl(e,t,n){let r=this;return i;function i(t){return t===null?n(t):(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),a)}function a(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}var nl={concrete:!0,name:`codeFenced`,tokenize:rl};function rl(e,t,n){let r=this,i={partial:!0,tokenize:x},a=0,o=0,s;return c;function c(e){return l(e)}function l(t){let n=r.events[r.events.length-1];return a=n&&n[1].type===`linePrefix`?n[2].sliceSerialize(n[1],!0).length:0,s=t,e.enter(`codeFenced`),e.enter(`codeFencedFence`),e.enter(`codeFencedFenceSequence`),u(t)}function u(t){return t===s?(o++,e.consume(t),u):o<3?n(t):(e.exit(`codeFencedFenceSequence`),q(t)?J(e,d,`whitespace`)(t):d(t))}function d(n){return n===null||K(n)?(e.exit(`codeFencedFence`),r.interrupt?t(n):e.check(el,h,b)(n)):(e.enter(`codeFencedFenceInfo`),e.enter(`chunkString`,{contentType:`string`}),f(n))}function f(t){return t===null||K(t)?(e.exit(`chunkString`),e.exit(`codeFencedFenceInfo`),d(t)):q(t)?(e.exit(`chunkString`),e.exit(`codeFencedFenceInfo`),J(e,p,`whitespace`)(t)):t===96&&t===s?n(t):(e.consume(t),f)}function p(t){return t===null||K(t)?d(t):(e.enter(`codeFencedFenceMeta`),e.enter(`chunkString`,{contentType:`string`}),m(t))}function m(t){return t===null||K(t)?(e.exit(`chunkString`),e.exit(`codeFencedFenceMeta`),d(t)):t===96&&t===s?n(t):(e.consume(t),m)}function h(t){return e.attempt(i,b,g)(t)}function g(t){return e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),_}function _(t){return a>0&&q(t)?J(e,v,`linePrefix`,a+1)(t):v(t)}function v(t){return t===null||K(t)?e.check(el,h,b)(t):(e.enter(`codeFlowValue`),y(t))}function y(t){return t===null||K(t)?(e.exit(`codeFlowValue`),v(t)):(e.consume(t),y)}function b(n){return e.exit(`codeFenced`),t(n)}function x(e,t,n){let i=0;return a;function a(t){return e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),c}function c(t){return e.enter(`codeFencedFence`),q(t)?J(e,l,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):l(t)}function l(t){return t===s?(e.enter(`codeFencedFenceSequence`),u(t)):n(t)}function u(t){return t===s?(i++,e.consume(t),u):i>=o?(e.exit(`codeFencedFenceSequence`),q(t)?J(e,d,`whitespace`)(t):d(t)):n(t)}function d(r){return r===null||K(r)?(e.exit(`codeFencedFence`),t(r)):n(r)}}}var il={name:`codeIndented`,tokenize:ol},al={partial:!0,tokenize:sl};function ol(e,t,n){return r;function r(t){return e.enter(`codeIndented`),Dc(e,i,n,`linePrefix`,4,4)(t)}function i(t){return t===null?o(t):K(t)?e.attempt(al,i,o)(t):(e.enter(`codeFlowValue`),a(t))}function a(t){return t===null||K(t)?(e.exit(`codeFlowValue`),i(t)):(e.consume(t),a)}function o(n){return e.exit(`codeIndented`),t(n)}}function sl(e,t,n){let r=this;return i;function i(o){return r.parser.lazy[r.now().line]?n(o):K(o)?(e.enter(`lineEnding`),e.consume(o),e.exit(`lineEnding`),i):Dc(e,t,a,`linePrefix`,4,4)(o)}function a(e){return K(e)?i(e):n(e)}}var cl={name:`codeText`,previous:ul,resolve:ll,tokenize:dl};function ll(e){let t=e.length-4,n=3,r,i;if((e[n][1].type===`lineEnding`||e[n][1].type===`space`)&&(e[t][1].type===`lineEnding`||e[t][1].type===`space`)){for(r=n;++r<t;)if(e[r][1].type===`codeTextData`){e[n][1].type=`codeTextPadding`,e[t][1].type=`codeTextPadding`,n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)i===void 0?r!==t&&e[r][1].type!==`lineEnding`&&(i=r):(r===t||e[r][1].type===`lineEnding`)&&(e[i][1].type=`codeTextData`,r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),t-=r-i-2,r=i+2),i=void 0);return e}function ul(e){return e!==96||this.events[this.events.length-1][1].type===`characterEscape`}function dl(e,t,n){let r=0,i,a;return o;function o(t){return e.enter(`codeText`),e.enter(`codeTextSequence`),s(t)}function s(t){return t===96?(e.consume(t),r++,s):(e.exit(`codeTextSequence`),c(t))}function c(t){return t===null?n(t):t===32?(e.enter(`space`),e.consume(t),e.exit(`space`),c):t===96?(a=e.enter(`codeTextSequence`),i=0,u(t)):K(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),c):(e.enter(`codeTextData`),l(t))}function l(t){return t===null||t===32||t===96||K(t)?(e.exit(`codeTextData`),c(t)):(e.consume(t),l)}function u(n){return n===96?(e.consume(n),i++,u):i===r?(e.exit(`codeTextSequence`),e.exit(`codeText`),t(n)):(a.type=`codeTextData`,l(n))}}var fl=class{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,t){let n=t??1/0;return n<this.left.length?this.left.slice(e,n):e>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,t,n){let r=t||0;this.setCursor(Math.trunc(e));let i=this.right.splice(this.right.length-r,1/0);return n&&pl(this.left,n),i.reverse()}pop(){return this.setCursor(1/0),this.left.pop()}push(e){this.setCursor(1/0),this.left.push(e)}pushMany(e){this.setCursor(1/0),pl(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),pl(this.right,e.reverse())}setCursor(e){if(!(e===this.left.length||e>this.left.length&&this.right.length===0||e<0&&this.left.length===0)){if(e<this.left.length){let t=this.left.splice(e,1/0);pl(this.right,t.reverse())}else{let t=this.right.splice(this.left.length+this.right.length-e,1/0);pl(this.left,t.reverse())}}}};function pl(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function ml(e){let t={},n=-1,r,i,a,o,s,c,l,u=new fl(e);for(;++n<u.length;){for(;n in t;)n=t[n];if(r=u.get(n),n&&r[1].type===`chunkFlow`&&u.get(n-1)[1].type===`listItemPrefix`&&(c=r[1]._tokenizer.events,a=0,a<c.length&&c[a][1].type===`lineEndingBlank`&&(a+=2),a<c.length&&c[a][1].type===`content`))for(;++a<c.length&&c[a][1].type!==`content`;)c[a][1].type===`chunkText`&&(c[a][1]._isInFirstContentOfListItem=!0,a++);if(r[0]===`enter`)r[1].contentType&&(Object.assign(t,hl(u,n)),n=t[n],l=!0);else if(r[1]._container){for(a=n,i=void 0;a--;)if(o=u.get(a),o[1].type===`lineEnding`||o[1].type===`lineEndingBlank`)o[0]===`enter`&&(i&&(u.get(i)[1].type=`lineEndingBlank`),o[1].type=`lineEnding`,i=a);else if(o[1].type!==`linePrefix`&&o[1].type!==`listItemIndent`)break;i&&(r[1].end={...u.get(i)[1].start},s=u.slice(i,n),s.unshift(r),u.splice(i,n-i+1,s))}}return sc(e,0,1/0,u.slice(0)),!l}function hl(e,t){let n=e.get(t)[1],r=e.get(t)[2],i=t-1,a=[],o=n._tokenizer;o||(o=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(o._contentTypeTextTrailing=!0));let s=o.events,c=[],l={},u,d,f=-1,p=n,m=0,h=0,g=[h];for(;p;){for(;e.get(++i)[1]!==p;);a.push(i),p._tokenizer||(u=r.sliceStream(p),p.next||u.push(null),d&&o.defineSkip(p.start),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(u),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),d=p,p=p.next}for(p=n;++f<s.length;)s[f][0]===`exit`&&s[f-1][0]===`enter`&&s[f][1].type===s[f-1][1].type&&s[f][1].start.line!==s[f][1].end.line&&(h=f+1,g.push(h),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(o.events=[],p?(p._tokenizer=void 0,p.previous=void 0):g.pop(),f=g.length;f--;){let t=s.slice(g[f],g[f+1]),n=a.pop();c.push([n,n+t.length-1]),e.splice(n,2,t)}for(c.reverse(),f=-1;++f<c.length;)l[m+c[f][0]]=m+c[f][1],m+=c[f][1]-c[f][0]-1;return l}var gl={resolve:vl,tokenize:yl},_l={partial:!0,tokenize:bl};function vl(e){return ml(e),e}function yl(e,t){let n;return r;function r(t){return e.enter(`content`),n=e.enter(`chunkContent`,{contentType:`content`}),i(t)}function i(t){return t===null?a(t):K(t)?e.check(_l,o,a)(t):(e.consume(t),i)}function a(n){return e.exit(`chunkContent`),e.exit(`content`),t(n)}function o(t){return e.consume(t),e.exit(`chunkContent`),n.next=e.enter(`chunkContent`,{contentType:`content`,previous:n}),n=n.next,i}}function bl(e,t,n){let r=this;return i;function i(t){return e.exit(`chunkContent`),e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),J(e,a,`linePrefix`)}function a(i){if(i===null||K(i))return n(i);let a=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes(`codeIndented`)&&a&&a[1].type===`linePrefix`&&a[2].sliceSerialize(a[1],!0).length>=4?t(i):e.interrupt(r.parser.constructs.flow,n,t)(i)}}function xl(e,t,n,r,i,a,o,s,c){let l=c||1/0,u=0;return d;function d(t){return t===60?(e.enter(r),e.enter(i),e.enter(a),e.consume(t),e.exit(a),f):t===null||t===32||t===41||vc(t)?n(t):(e.enter(r),e.enter(o),e.enter(s),e.enter(`chunkString`,{contentType:`string`}),h(t))}function f(n){return n===62?(e.enter(a),e.consume(n),e.exit(a),e.exit(i),e.exit(r),t):(e.enter(s),e.enter(`chunkString`,{contentType:`string`}),p(n))}function p(t){return t===62?(e.exit(`chunkString`),e.exit(s),f(t)):t===null||t===60||K(t)?n(t):(e.consume(t),t===92?m:p)}function m(t){return t===60||t===62||t===92?(e.consume(t),p):p(t)}function h(i){return!u&&(i===null||i===41||Sc(i))?(e.exit(`chunkString`),e.exit(s),e.exit(o),e.exit(r),t(i)):u<l&&i===40?(e.consume(i),u++,h):i===41?(e.consume(i),u--,h):i===null||i===32||i===40||vc(i)?n(i):(e.consume(i),i===92?g:h)}function g(t){return t===40||t===41||t===92?(e.consume(t),h):h(t)}}function Sl(e,t,n,r,i,a){let o=this,s=0,c;return l;function l(t){return e.enter(r),e.enter(i),e.consume(t),e.exit(i),e.enter(a),u}function u(l){return s>999||l===null||l===91||l===93&&!c||l===94&&!s&&`_hiddenFootnoteSupport`in o.parser.constructs?n(l):l===93?(e.exit(a),e.enter(i),e.consume(l),e.exit(i),e.exit(r),t):K(l)?(e.enter(`lineEnding`),e.consume(l),e.exit(`lineEnding`),u):(e.enter(`chunkString`,{contentType:`string`}),d(l))}function d(t){return t===null||t===91||t===93||K(t)||s++>999?(e.exit(`chunkString`),u(t)):(e.consume(t),c||=!q(t),t===92?f:d)}function f(t){return t===91||t===92||t===93?(e.consume(t),s++,d):d(t)}}function Cl(e,t,n,r,i,a){let o;return s;function s(t){return t===34||t===39||t===40?(e.enter(r),e.enter(i),e.consume(t),e.exit(i),o=t===40?41:t,c):n(t)}function c(n){return n===o?(e.enter(i),e.consume(n),e.exit(i),e.exit(r),t):(e.enter(a),l(n))}function l(t){return t===o?(e.exit(a),c(o)):t===null?n(t):K(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),J(e,l,`linePrefix`)):(e.enter(`chunkString`,{contentType:`string`}),u(t))}function u(t){return t===o||t===null||K(t)?(e.exit(`chunkString`),l(t)):(e.consume(t),t===92?d:u)}function d(t){return t===o||t===92?(e.consume(t),u):u(t)}}function wl(e,t){let n;return r;function r(i){return K(i)?(e.enter(`lineEnding`),e.consume(i),e.exit(`lineEnding`),n=!0,r):q(i)?J(e,r,n?`linePrefix`:`lineSuffix`)(i):t(i)}}var Tl={name:`definition`,tokenize:Dl},El={partial:!0,tokenize:Ol};function Dl(e,t,n){let r=this,i;return a;function a(t){return e.enter(`definition`),o(t)}function o(t){return Sl.call(r,e,s,n,`definitionLabel`,`definitionLabelMarker`,`definitionLabelString`)(t)}function s(t){return i=mc(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),t===58?(e.enter(`definitionMarker`),e.consume(t),e.exit(`definitionMarker`),c):n(t)}function c(t){return Sc(t)?wl(e,l)(t):l(t)}function l(t){return xl(e,u,n,`definitionDestination`,`definitionDestinationLiteral`,`definitionDestinationLiteralMarker`,`definitionDestinationRaw`,`definitionDestinationString`)(t)}function u(t){return e.attempt(El,d,d)(t)}function d(t){return q(t)?J(e,f,`whitespace`)(t):f(t)}function f(a){return a===null||K(a)?(e.exit(`definition`),r.parser.defined.push(i),t(a)):n(a)}}function Ol(e,t,n){return r;function r(t){return Sc(t)?wl(e,i)(t):n(t)}function i(t){return Cl(e,a,n,`definitionTitle`,`definitionTitleMarker`,`definitionTitleString`)(t)}function a(t){return q(t)?J(e,o,`whitespace`)(t):o(t)}function o(e){return e===null||K(e)?t(e):n(e)}}var kl={name:`hardBreakEscape`,tokenize:Al};function Al(e,t,n){return r;function r(t){return e.enter(`hardBreakEscape`),e.consume(t),i}function i(r){return K(r)?(e.exit(`hardBreakEscape`),t(r)):n(r)}}var jl={name:`headingAtx`,resolve:Ml,tokenize:Nl};function Ml(e,t){let n=e.length-2,r=3;if(e[r][1].type===`whitespace`&&(r+=2),n-2>r&&e[n][1].type===`whitespace`&&(n-=2),e[n][1].type===`atxHeadingSequence`&&(r===n-1||n-4>r&&e[n-2][1].type===`whitespace`)&&(n-=r+1===n?2:4),n>r){let i={type:`atxHeadingText`,start:e[r][1].start,end:e[n][1].end},a={type:`chunkText`,start:e[r][1].start,end:e[n][1].end,contentType:`text`};sc(e,r,n-r+1,[[`enter`,i,t],[`enter`,a,t],[`exit`,a,t],[`exit`,i,t]])}return e}function Nl(e,t,n){let r=0;return i;function i(t){return e.enter(`atxHeading`),a(t)}function a(t){return e.enter(`atxHeadingSequence`),o(t)}function o(t){return t===35&&r++<6?(e.consume(t),o):t===null||Sc(t)?(e.exit(`atxHeadingSequence`),s(t)):n(t)}function s(n){return n===35?(e.enter(`atxHeadingSequence`),c(n)):n===null||K(n)?(e.exit(`atxHeading`),t(n)):q(n)?J(e,s,`whitespace`)(n):(e.enter(`atxHeadingText`),l(n))}function c(t){return t===35?(e.consume(t),c):(e.exit(`atxHeadingSequence`),s(t))}function l(t){return t===null||t===35||Sc(t)?(e.exit(`atxHeadingText`),s(t)):(e.consume(t),l)}}var Pl=`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`.split(`.`),Fl=[`pre`,`script`,`style`,`textarea`],Il={concrete:!0,name:`htmlFlow`,resolveTo:Rl,tokenize:zl},Ll={partial:!0,tokenize:Bl};function Rl(e){let t=e.length;for(;t--&&(e[t][0]!==`enter`||e[t][1].type!==`htmlFlow`););return t>1&&e[t-2][1].type===`linePrefix`&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function zl(e,t,n){let r=this,i,a,o,s,c;return l;function l(e){return u(e)}function u(t){return e.enter(`htmlFlow`),e.enter(`htmlFlowData`),e.consume(t),d}function d(s){return s===33?(e.consume(s),f):s===47?(e.consume(s),a=!0,h):s===63?(e.consume(s),i=3,r.interrupt?t:re):hc(s)?(e.consume(s),o=String.fromCharCode(s),g):n(s)}function f(a){return a===45?(e.consume(a),i=2,p):a===91?(e.consume(a),i=5,s=0,m):hc(a)?(e.consume(a),i=4,r.interrupt?t:re):n(a)}function p(i){return i===45?(e.consume(i),r.interrupt?t:re):n(i)}function m(i){return i===`CDATA[`.charCodeAt(s++)?(e.consume(i),s===6?r.interrupt?t:O:m):n(i)}function h(t){return hc(t)?(e.consume(t),o=String.fromCharCode(t),g):n(t)}function g(s){if(s===null||s===47||s===62||Sc(s)){let c=s===47,l=o.toLowerCase();return!c&&!a&&Fl.includes(l)?(i=1,r.interrupt?t(s):O(s)):Pl.includes(o.toLowerCase())?(i=6,c?(e.consume(s),_):r.interrupt?t(s):O(s)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(s):a?v(s):y(s))}return s===45||gc(s)?(e.consume(s),o+=String.fromCharCode(s),g):n(s)}function _(i){return i===62?(e.consume(i),r.interrupt?t:O):n(i)}function v(t){return q(t)?(e.consume(t),v):E(t)}function y(t){return t===47?(e.consume(t),E):t===58||t===95||hc(t)?(e.consume(t),b):q(t)?(e.consume(t),y):E(t)}function b(t){return t===45||t===46||t===58||t===95||gc(t)?(e.consume(t),b):x(t)}function x(t){return t===61?(e.consume(t),S):q(t)?(e.consume(t),x):y(t)}function S(t){return t===null||t===60||t===61||t===62||t===96?n(t):t===34||t===39?(e.consume(t),c=t,C):q(t)?(e.consume(t),S):w(t)}function C(t){return t===c?(e.consume(t),c=null,T):t===null||K(t)?n(t):(e.consume(t),C)}function w(t){return t===null||t===34||t===39||t===47||t===60||t===61||t===62||t===96||Sc(t)?x(t):(e.consume(t),w)}function T(e){return e===47||e===62||q(e)?y(e):n(e)}function E(t){return t===62?(e.consume(t),D):n(t)}function D(t){return t===null||K(t)?O(t):q(t)?(e.consume(t),D):n(t)}function O(t){return t===45&&i===2?(e.consume(t),ne):t===60&&i===1?(e.consume(t),A):t===62&&i===4?(e.consume(t),ie):t===63&&i===3?(e.consume(t),re):t===93&&i===5?(e.consume(t),M):K(t)&&(i===6||i===7)?(e.exit(`htmlFlowData`),e.check(Ll,N,ee)(t)):t===null||K(t)?(e.exit(`htmlFlowData`),ee(t)):(e.consume(t),O)}function ee(t){return e.check(el,k,N)(t)}function k(t){return e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),te}function te(t){return t===null||K(t)?ee(t):(e.enter(`htmlFlowData`),O(t))}function ne(t){return t===45?(e.consume(t),re):O(t)}function A(t){return t===47?(e.consume(t),o=``,j):O(t)}function j(t){if(t===62){let n=o.toLowerCase();return Fl.includes(n)?(e.consume(t),ie):O(t)}return hc(t)&&o.length<8?(e.consume(t),o+=String.fromCharCode(t),j):O(t)}function M(t){return t===93?(e.consume(t),re):O(t)}function re(t){return t===62?(e.consume(t),ie):t===45&&i===2?(e.consume(t),re):O(t)}function ie(t){return t===null||K(t)?(e.exit(`htmlFlowData`),N(t)):(e.consume(t),ie)}function N(n){return e.exit(`htmlFlow`),t(n)}}function Bl(e,t,n){return r;function r(r){return e.enter(`lineEnding`),e.consume(r),e.exit(`lineEnding`),e.attempt(Wc,t,n)}}var Vl={name:`htmlText`,tokenize:Hl};function Hl(e,t,n){let r=this,i,a,o;return s;function s(t){return e.enter(`htmlText`),e.enter(`htmlTextData`),e.consume(t),c}function c(t){return t===33?(e.consume(t),l):t===47?(e.consume(t),x):t===63?(e.consume(t),y):hc(t)?(e.consume(t),w):n(t)}function l(t){return t===45?(e.consume(t),u):t===91?(e.consume(t),a=0,m):hc(t)?(e.consume(t),v):n(t)}function u(t){return t===45?(e.consume(t),p):n(t)}function d(t){return t===null?n(t):t===45?(e.consume(t),f):K(t)?(o=d,A(t)):(e.consume(t),d)}function f(t){return t===45?(e.consume(t),p):d(t)}function p(e){return e===62?ne(e):e===45?f(e):d(e)}function m(t){return t===`CDATA[`.charCodeAt(a++)?(e.consume(t),a===6?h:m):n(t)}function h(t){return t===null?n(t):t===93?(e.consume(t),g):K(t)?(o=h,A(t)):(e.consume(t),h)}function g(t){return t===93?(e.consume(t),_):h(t)}function _(t){return t===62?ne(t):t===93?(e.consume(t),_):h(t)}function v(t){return t===null||t===62?ne(t):K(t)?(o=v,A(t)):(e.consume(t),v)}function y(t){return t===null?n(t):t===63?(e.consume(t),b):K(t)?(o=y,A(t)):(e.consume(t),y)}function b(e){return e===62?ne(e):y(e)}function x(t){return hc(t)?(e.consume(t),S):n(t)}function S(t){return t===45||gc(t)?(e.consume(t),S):C(t)}function C(t){return K(t)?(o=C,A(t)):q(t)?(e.consume(t),C):ne(t)}function w(t){return t===45||gc(t)?(e.consume(t),w):t===47||t===62||Sc(t)?T(t):n(t)}function T(t){return t===47?(e.consume(t),ne):t===58||t===95||hc(t)?(e.consume(t),E):K(t)?(o=T,A(t)):q(t)?(e.consume(t),T):ne(t)}function E(t){return t===45||t===46||t===58||t===95||gc(t)?(e.consume(t),E):D(t)}function D(t){return t===61?(e.consume(t),O):K(t)?(o=D,A(t)):q(t)?(e.consume(t),D):T(t)}function O(t){return t===null||t===60||t===61||t===62||t===96?n(t):t===34||t===39?(e.consume(t),i=t,ee):K(t)?(o=O,A(t)):q(t)?(e.consume(t),O):(e.consume(t),k)}function ee(t){return t===i?(e.consume(t),i=void 0,te):t===null?n(t):K(t)?(o=ee,A(t)):(e.consume(t),ee)}function k(t){return t===null||t===34||t===39||t===60||t===61||t===96?n(t):t===47||t===62||Sc(t)?T(t):(e.consume(t),k)}function te(e){return e===47||e===62||Sc(e)?T(e):n(e)}function ne(r){return r===62?(e.consume(r),e.exit(`htmlTextData`),e.exit(`htmlText`),t):n(r)}function A(t){return e.exit(`htmlTextData`),e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),j}function j(t){return q(t)?J(e,M,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):M(t)}function M(t){return e.enter(`htmlTextData`),o(t)}}var Ul={name:`labelEnd`,resolveAll:ql,resolveTo:Jl,tokenize:Yl},Wl={tokenize:Xl},Gl={tokenize:Zl},Kl={tokenize:Ql};function ql(e){let t=-1,n=[];for(;++t<e.length;){let r=e[t][1];if(n.push(e[t]),r.type===`labelImage`||r.type===`labelLink`||r.type===`labelEnd`){let e=r.type===`labelImage`?4:2;r.type=`data`,t+=e}}return e.length!==n.length&&sc(e,0,e.length,n),e}function Jl(e,t){let n=e.length,r=0,i,a,o;for(;n--;){let t=e[n][1];if(i){if(t.type===`link`||t.type===`labelLink`&&t._inactive)break;e[n][0]===`enter`&&t.type===`labelLink`&&(t._inactive=!0)}else if(a){if(e[n][0]===`enter`&&(t.type===`labelImage`||t.type===`labelLink`)&&!t._balanced&&(i=n,t.type!==`labelLink`)){r=2;break}}else t.type===`labelEnd`&&(a=n)}let s={type:e[i][1].type===`labelLink`?`link`:`image`,start:{...e[i][1].start},end:{...e[e.length-1][1].end}},c={type:`label`,start:{...e[i][1].start},end:{...e[a][1].end}},l={type:`labelText`,start:{...e[i+r+2][1].end},end:{...e[a-2][1].start}};return o=[[`enter`,s,t],[`enter`,c,t]],o=cc(o,e.slice(i+1,i+r+3)),o=cc(o,[[`enter`,l,t]]),o=cc(o,Lc(t.parser.constructs.insideSpan.null,e.slice(i+r+4,a-3),t)),o=cc(o,[[`exit`,l,t],e[a-2],e[a-1],[`exit`,c,t]]),o=cc(o,e.slice(a+1)),o=cc(o,[[`exit`,s,t]]),sc(e,i,e.length,o),e}function Yl(e,t,n){let r=this,i=r._labelStarts,a,o;if(i){for(;i.length>0&&i[i.length-1]._balanced;)i.pop();a=i[i.length-1]}return s;function s(t){return a?a._inactive?d(t):(o=r.parser.defined.includes(mc(r.sliceSerialize({start:a.end,end:r.now()}))),e.enter(`labelEnd`),e.enter(`labelMarker`),e.consume(t),e.exit(`labelMarker`),e.exit(`labelEnd`),c):n(t)}function c(t){return t===40?e.attempt(Wl,u,o?u:d)(t):t===91?e.attempt(Gl,u,o?l:d)(t):o?u(t):d(t)}function l(t){return e.attempt(Kl,u,d)(t)}function u(e){return i.pop(),t(e)}function d(e){return a._balanced=!0,n(e)}}function Xl(e,t,n){return r;function r(t){return e.enter(`resource`),e.enter(`resourceMarker`),e.consume(t),e.exit(`resourceMarker`),i}function i(t){return Sc(t)?wl(e,a)(t):a(t)}function a(t){return t===41?u(t):xl(e,o,s,`resourceDestination`,`resourceDestinationLiteral`,`resourceDestinationLiteralMarker`,`resourceDestinationRaw`,`resourceDestinationString`,32)(t)}function o(t){return Sc(t)?wl(e,c)(t):u(t)}function s(e){return n(e)}function c(t){return t===34||t===39||t===40?Cl(e,l,n,`resourceTitle`,`resourceTitleMarker`,`resourceTitleString`)(t):u(t)}function l(t){return Sc(t)?wl(e,u)(t):u(t)}function u(r){return r===41?(e.enter(`resourceMarker`),e.consume(r),e.exit(`resourceMarker`),e.exit(`resource`),t):n(r)}}function Zl(e,t,n){let r=this;return i;function i(t){return Sl.call(r,e,a,o,`reference`,`referenceMarker`,`referenceString`)(t)}function a(e){return r.parser.defined.includes(mc(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function o(e){return n(e)}}function Ql(e,t,n){return r;function r(t){return e.enter(`reference`),e.enter(`referenceMarker`),e.consume(t),e.exit(`referenceMarker`),i}function i(r){return r===93?(e.enter(`referenceMarker`),e.consume(r),e.exit(`referenceMarker`),e.exit(`reference`),t):n(r)}}var $l={name:`labelStartImage`,resolveAll:Ul.resolveAll,tokenize:eu};function eu(e,t,n){let r=this,i;return a;function a(t){return e.enter(`labelImage`),e.enter(`labelImageMarker`),e.consume(t),e.exit(`labelImageMarker`),o}function o(t){return t===91?(e.enter(`labelMarker`),e.consume(t),e.exit(`labelMarker`),i=e.exit(`labelImage`),s):n(t)}function s(e){return e===94&&`_hiddenFootnoteSupport`in r.parser.constructs?n(e):(r._labelStarts=r._labelStarts||[],r._labelStarts.push(i),t(e))}}var tu={name:`labelStartLink`,resolveAll:Ul.resolveAll,tokenize:nu};function nu(e,t,n){let r=this,i;return a;function a(t){return e.enter(`labelLink`),e.enter(`labelMarker`),e.consume(t),e.exit(`labelMarker`),i=e.exit(`labelLink`),o}function o(e){return e===94&&`_hiddenFootnoteSupport`in r.parser.constructs?n(e):(r._labelStarts=r._labelStarts||[],r._labelStarts.push(i),t(e))}}var ru={name:`lineEnding`,tokenize:iu};function iu(e,t){return n;function n(n){return e.enter(`lineEnding`),e.consume(n),e.exit(`lineEnding`),J(e,t,`linePrefix`)}}var au={name:`thematicBreak`,tokenize:ou};function ou(e,t,n){let r=0,i;return a;function a(t){return e.enter(`thematicBreak`),o(t)}function o(e){return i=e,s(e)}function s(a){return a===i?(e.enter(`thematicBreakSequence`),c(a)):r>=3&&(a===null||K(a))?(e.exit(`thematicBreak`),t(a)):n(a)}function c(t){return t===i?(e.consume(t),r++,c):(e.exit(`thematicBreakSequence`),q(t)?J(e,s,`whitespace`)(t):s(t))}}var su={continuation:{tokenize:du},exit:pu,name:`list`,tokenize:uu},cu={partial:!0,tokenize:mu},lu={partial:!0,tokenize:fu};function uu(e,t,n){let r=this,i=r.events[r.events.length-1],a=i&&i[1].type===`linePrefix`?i[2].sliceSerialize(i[1],!0).length:0,o=0;return s;function s(t){let i=r.containerState.type||(t===42||t===43||t===45?`listUnordered`:`listOrdered`);if(i===`listUnordered`?!r.containerState.marker||t===r.containerState.marker:yc(t)){if(r.containerState.type||(r.containerState.type=i,e.enter(i,{_container:!0})),i===`listUnordered`)return e.enter(`listItemPrefix`),t===42||t===45?e.check(au,n,l)(t):l(t);if(!r.interrupt||t===49)return e.enter(`listItemPrefix`),e.enter(`listItemValue`),c(t)}return n(t)}function c(t){return yc(t)&&++o<10?(e.consume(t),c):(!r.interrupt||o<2)&&(r.containerState.marker?t===r.containerState.marker:t===41||t===46)?(e.exit(`listItemValue`),l(t)):n(t)}function l(t){return e.enter(`listItemMarker`),e.consume(t),e.exit(`listItemMarker`),r.containerState.marker=r.containerState.marker||t,e.check(Wc,r.interrupt?n:u,e.attempt(cu,f,d))}function u(e){return r.containerState.initialBlankLine=!0,a++,f(e)}function d(t){return q(t)?(e.enter(`listItemPrefixWhitespace`),e.consume(t),e.exit(`listItemPrefixWhitespace`),f):n(t)}function f(n){return r.containerState.size=a+r.sliceSerialize(e.exit(`listItemPrefix`),!0).length,t(n)}}function du(e,t,n){let r=this;return r.containerState._closeFlow=void 0,e.check(Wc,i,a);function i(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,J(e,t,`listItemIndent`,r.containerState.size+1)(n)}function a(n){return r.containerState.furtherBlankLines||!q(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(lu,t,o)(n))}function o(i){return r.containerState._closeFlow=!0,r.interrupt=void 0,J(e,e.attempt(su,t,n),`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(i)}}function fu(e,t,n){let r=this;return J(e,i,`listItemIndent`,r.containerState.size+1);function i(e){let i=r.events[r.events.length-1];return i&&i[1].type===`listItemIndent`&&i[2].sliceSerialize(i[1],!0).length===r.containerState.size?t(e):n(e)}}function pu(e){e.exit(this.containerState.type)}function mu(e,t,n){let r=this;return J(e,i,`listItemPrefixWhitespace`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:5);function i(e){let i=r.events[r.events.length-1];return!q(e)&&i&&i[1].type===`listItemPrefixWhitespace`?t(e):n(e)}}var hu={name:`setextUnderline`,resolveTo:gu,tokenize:_u};function gu(e,t){let n=new Ac,r=e.length,i,a,o;for(;r--;)if(e[r][0]===`enter`){if(e[r][1].type===`content`){i=r;break}e[r][1].type===`paragraph`&&(a=r)}else e[r][1].type===`content`&&n.add(r,1,[]),!o&&e[r][1].type===`definition`&&(o=r);let s={type:`setextHeading`,start:{...e[i][1].start},end:{...e[e.length-1][1].end}};return e[a][1].type=`setextHeadingText`,o?(n.add(a,0,[[`enter`,s,t]]),n.add(o+1,0,[[`exit`,e[i][1],t]]),e[i][1].end={...e[o][1].end}):e[i][1]=s,n.add(e.length,0,[[`exit`,s,t]]),n.consume(e),e}function _u(e,t,n){let r=this,i;return a;function a(t){let a=r.events.length,s;for(;a--;)if(r.events[a][1].type!==`lineEnding`&&r.events[a][1].type!==`linePrefix`&&r.events[a][1].type!==`content`){s=r.events[a][1].type===`paragraph`;break}return!r.parser.lazy[r.now().line]&&(r.interrupt||s)?(e.enter(`setextHeadingLine`),i=t,o(t)):n(t)}function o(t){return e.enter(`setextHeadingLineSequence`),s(t)}function s(t){return t===i?(e.consume(t),s):(e.exit(`setextHeadingLineSequence`),q(t)?J(e,c,`lineSuffix`)(t):c(t))}function c(r){return r===null||K(r)?(e.exit(`setextHeadingLine`),t(r)):n(r)}}var vu={tokenize:yu};function yu(e){let t=this,n=e.attempt(Wc,r,e.attempt(this.parser.constructs.flowInitial,i,J(e,e.attempt(this.parser.constructs.flow,i,e.attempt(gl,i)),`linePrefix`)));return n;function r(r){if(r===null)e.consume(r);else return e.enter(`lineEndingBlank`),e.consume(r),e.exit(`lineEndingBlank`),t.currentConstruct=void 0,n}function i(r){if(r===null)e.consume(r);else return e.enter(`lineEnding`),e.consume(r),e.exit(`lineEnding`),t.currentConstruct=void 0,n}}var bu={resolveAll:wu()},xu=Cu(`string`),Su=Cu(`text`);function Cu(e){return{resolveAll:wu(e===`text`?Tu:void 0),tokenize:t};function t(t){let n=this,r=this.parser.constructs[e],i=t.attempt(r,a,o);return a;function a(e){return c(e)?i(e):o(e)}function o(e){if(e===null)t.consume(e);else return t.enter(`data`),t.consume(e),s}function s(e){return c(e)?(t.exit(`data`),i(e)):(t.consume(e),s)}function c(e){if(e===null)return!0;let t=r[e],i=-1;if(t)for(;++i<t.length;){let e=t[i];if(!e.previous||e.previous.call(n,n.previous))return!0}return!1}}}function wu(e){return t;function t(t,n){let r=-1,i;for(;++r<=t.length;)i===void 0?t[r]&&t[r][1].type===`data`&&(i=r,r++):t[r]&&t[r][1].type===`data`||(r!==i+2&&(t[i][1].end=t[r-1][1].end,t.splice(i+2,r-i-2),r=i+2),i=void 0);return e?e(t,n):t}}function Tu(e,t){let n=new Ac,r=0;for(;++r<=e.length;)if((r===e.length||e[r][1].type===`lineEnding`)&&e[r-1][1].type===`data`){let i=e[r-1][1],a=t.sliceStream(i),o=a.length,s=-1,c=0,l;for(;o--;){let e=a[o];if(typeof e==`string`){for(s=e.length;e.charCodeAt(s-1)===32;)c++,s--;if(s)break;s=-1}else if(e===-2)l=!0,c++;else if(e!==-1){o++;break}}if(t._contentTypeTextTrailing&&r===e.length&&(c=0),c){let a={type:r===e.length||l||c<2?`lineSuffix`:`hardBreakTrailing`,start:{_bufferIndex:o?s:i.start._bufferIndex+s,_index:i.start._index+o,line:i.end.line,column:i.end.column-c,offset:i.end.offset-c},end:{...i.end}};i.end={...a.start},i.start.offset===i.end.offset?Object.assign(i,a):n.add(r,0,[[`enter`,a,t],[`exit`,a,t]])}r++}return n.consume(e),e}var Eu=s({attentionMarkers:()=>Pu,contentInitial:()=>Ou,disable:()=>Fu,document:()=>Du,flow:()=>Au,flowInitial:()=>ku,insideSpan:()=>Nu,string:()=>ju,text:()=>Mu}),Du={42:su,43:su,45:su,48:su,49:su,50:su,51:su,52:su,53:su,54:su,55:su,56:su,57:su,62:Kc},Ou={91:Tl},ku={[-2]:il,[-1]:il,32:il},Au={35:jl,42:au,45:[hu,au],60:Il,61:hu,95:au,96:nl,126:nl},ju={38:Qc,92:Xc},Mu={[-5]:ru,[-4]:ru,[-3]:ru,33:$l,38:Qc,42:Rc,60:[Hc,Vl],91:tu,92:[kl,Xc],93:Ul,95:Rc,96:cl},Nu={null:[Rc,bu]},Pu={null:[42,95]},Fu={null:[]};function Iu(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0},i={},a=[],o=[],s=[],c={attempt:C(x),check:C(S),consume:v,enter:y,exit:b,interrupt:C(S,{interrupt:!0})},l={code:null,containerState:{},defineSkip:h,events:[],now:m,parser:e,previous:null,sliceSerialize:f,sliceStream:p,write:d},u=t.tokenize.call(l,c);return t.resolveAll&&a.push(t),l;function d(e){return o=cc(o,e),g(),o[o.length-1]===null?(w(t,0),l.events=Lc(a,l.events,l),l.events):[]}function f(e,t){return Ru(p(e),t)}function p(e){return Lu(o,e)}function m(){let{_bufferIndex:e,_index:t,line:n,column:i,offset:a}=r;return{_bufferIndex:e,_index:t,line:n,column:i,offset:a}}function h(e){i[e.line]=e.column,E()}function g(){for(;r._index<o.length;){let e=o[r._index];if(typeof e==`string`){let t=r._index;for(r._bufferIndex<0&&(r._bufferIndex=0);r._index===t&&r._bufferIndex<e.length;)_(e.charCodeAt(r._bufferIndex))}else _(e)}}function _(e){u=u(e)}function v(e){K(e)?(r.line++,r.column=1,r.offset+=e===-3?2:1,E()):e!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===o[r._index].length&&(r._bufferIndex=-1,r._index++)),l.previous=e}function y(e,t){let n=t||{};return n.type=e,n.start=m(),l.events.push([`enter`,n,l]),s.push(n),n}function b(e){let t=s.pop();return t.end=m(),l.events.push([`exit`,t,l]),t}function x(e,t){w(e,t.from)}function S(e,t){t.restore()}function C(e,t){return n;function n(n,r,i){let a,o,s,u;return Array.isArray(n)?f(n):`tokenize`in n?f([n]):d(n);function d(e){return t;function t(t){let n=t!==null&&e[t],r=t!==null&&e.null;return f([...Array.isArray(n)?n:n?[n]:[],...Array.isArray(r)?r:r?[r]:[]])(t)}}function f(e){return a=e,o=0,e.length===0?i:p(e[o])}function p(e){return n;function n(n){return u=T(),s=e,e.partial||(l.currentConstruct=e),e.name&&l.parser.constructs.disable.null.includes(e.name)?h(n):e.tokenize.call(t?Object.assign(Object.create(l),t):l,c,m,h)(n)}}function m(t){return e(s,u),r}function h(e){return u.restore(),++o<a.length?p(a[o]):i}}}function w(e,t){e.resolveAll&&!a.includes(e)&&a.push(e),e.resolve&&sc(l.events,t,l.events.length-t,e.resolve(l.events.slice(t),l)),e.resolveTo&&(l.events=e.resolveTo(l.events,l))}function T(){let e=m(),t=l.previous,n=l.currentConstruct,i=l.events.length,a=Array.from(s);return{from:i,restore:o};function o(){r=e,l.previous=t,l.currentConstruct=n,l.events.length=i,s=a,E()}}function E(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function Lu(e,t){let n=t.start._index,r=t.start._bufferIndex,i=t.end._index,a=t.end._bufferIndex,o;if(n===i)o=[e[n].slice(r,a)];else{if(o=e.slice(n,i),r>-1){let e=o[0];typeof e==`string`?o[0]=e.slice(r):o.shift()}a>0&&o.push(e[i].slice(0,a))}return o}function Ru(e,t){let n=-1,r=[],i;for(;++n<e.length;){let a=e[n],o;if(typeof a==`string`)o=a;else switch(a){case-5:o=`\r`;break;case-4:o=`
|
|
19
|
+
`;break;case-3:o=`\r
|
|
20
|
+
`;break;case-2:o=t?` `:` `;break;case-1:if(!t&&i)continue;o=` `;break;default:o=String.fromCharCode(a)}i=a===-2,r.push(o)}return r.join(``)}function zu(e){let t={constructs:uc([Eu,...(e||{}).extensions||[]]),content:n(Oc),defined:[],document:n(Mc),flow:n(vu),lazy:{},string:n(xu),text:n(Su)};return t;function n(e){return n;function n(n){return Iu(t,e,n)}}}function Bu(e){for(;!ml(e););return e}var Vu=/[\0\t\n\r]/g;function Hu(){let e=1,t=``,n=!0,r;return i;function i(i,a,o){i=t+(typeof i==`string`?i.toString():new TextDecoder(a||void 0).decode(i));let s=[],c=0;for(t=``,n&&=(i.charCodeAt(0)===65279&&c++,void 0);c<i.length;){Vu.lastIndex=c;let n=Vu.exec(i),a=n&&n.index!==void 0?n.index:i.length,o=i.charCodeAt(a);if(!n){t=i.slice(c);break}if(o===10&&c===a&&r)s.push(-3),r=void 0;else switch(r&&=(s.push(-5),void 0),c<a&&(s.push(i.slice(c,a)),e+=a-c),o){case 0:s.push(65533),e++;break;case 9:{let t=Math.ceil(e/4)*4;for(s.push(-2);e++<t;)s.push(-1);break}case 10:s.push(-4),e=1;break;default:r=!0,e=1}c=a+1}return o&&(r&&s.push(-5),t&&s.push(t),s.push(null)),s}}var Uu=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Wu(e){return e.replace(Uu,Gu)}function Gu(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){let e=n.charCodeAt(1),t=e===120||e===88;return pc(n.slice(t?2:1),t?16:10)}return oc(n)||e}var Ku={}.hasOwnProperty;function qu(e,t,n){return t&&typeof t==`object`&&(n=t,t=void 0),Ju(n)(Bu(zu(n).document().write(Hu()(e,t,!0))))}function Ju(e){let t={afterExit:[],beforeEnter:[],transforms:[],canContainEols:[`emphasis`,`fragment`,`heading`,`paragraph`,`strong`],enter:{autolink:o(I),autolinkProtocol:E,autolinkEmail:E,atxHeading:o(ge),blockQuote:o(pe),characterEscape:E,characterReference:E,codeFenced:o(me),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:o(me,s),codeText:o(P,s),codeTextData:E,data:E,codeFlowValue:E,definition:o(F),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:o(he),hardBreakEscape:o(_e),hardBreakTrailing:o(_e),htmlFlow:o(ve,s),htmlFlowData:E,htmlText:o(ve,s),htmlTextData:E,image:o(ye),label:s,link:o(I),listItem:o(xe),listItemValue:p,listOrdered:o(be,f),listUnordered:o(be),paragraph:o(Se),reference:oe,referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:o(ge),strong:o(Ce),thematicBreak:o(L)},exit:{atxHeading:l(),atxHeadingSequence:S,autolink:l(),autolinkEmail:fe,autolinkProtocol:de,blockQuote:l(),characterEscapeValue:D,characterReferenceMarkerHexadecimal:ce,characterReferenceMarkerNumeric:ce,characterReferenceValue:le,characterReference:ue,codeFenced:l(_),codeFencedFence:g,codeFencedFenceInfo:m,codeFencedFenceMeta:h,codeFlowValue:D,codeIndented:l(v),codeText:l(ne),codeTextData:D,data:D,definition:l(),definitionDestinationString:x,definitionLabelString:y,definitionTitleString:b,emphasis:l(),hardBreakEscape:l(ee),hardBreakTrailing:l(ee),htmlFlow:l(k),htmlFlowData:D,htmlText:l(te),htmlTextData:D,image:l(j),label:re,labelText:M,lineEnding:O,link:l(A),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:se,resourceDestinationString:ie,resourceTitleString:N,resource:ae,setextHeading:l(T),setextHeadingLineSequence:w,setextHeadingText:C,strong:l(),thematicBreak:l()}};Xu(t,(e||{}).mdastExtensions||[]);let n={};return r;function r(e){let r={type:`root`,children:[],position:void 0},o={stack:[r],tokenStack:[],config:t,enter:c,exit:u,buffer:s,resume:d,data:n},l=[],f=[],p=-1;for(;++p<e.length;)f.push(e[p]),(e[p][1].type===`listOrdered`||e[p][1].type===`listUnordered`)&&(e[p][0]===`enter`?l.push(f.length-1):a(f,l.pop()));for(e=f,p=-1;++p<e.length;){let n=t[e[p][0]];e[p][0]===`enter`&&t.beforeEnter.length>0&&i(t.beforeEnter,{...o,sliceSerialize:e[p][2].sliceSerialize},e[p][1]),Ku.call(n,e[p][1].type)&&n[e[p][1].type].call({...o,sliceSerialize:e[p][2].sliceSerialize},e[p][1]),e[p][0]===`exit`&&t.afterExit.length>0&&i(t.afterExit,{...o,sliceSerialize:e[p][2].sliceSerialize},e[p][1])}if(o.tokenStack.length>0){let e=o.tokenStack[o.tokenStack.length-1];(e[1]||Zu).call(o,void 0,e[0])}for(r.position={start:Yu(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:Yu(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},p=-1;++p<t.transforms.length;)r=t.transforms[p](r)||r;return r}function i(e,t,n){let r=-1;for(;++r<e.length;)e[r].call(t,n)}function a(e,t){let n=e.length-1,r=t-1,i=-1,a=!1,o,s,c,l,u=[];for(;++r<=n;){let t=e[r];switch(t[1].type){case`listUnordered`:case`listOrdered`:case`blockQuote`:t[0]===`enter`?i++:i--,l=void 0;break;case`lineEndingBlank`:t[0]===`enter`&&(o&&!l&&!i&&!c&&(c=r),l=void 0);break;case`linePrefix`:case`listItemValue`:case`listItemMarker`:case`listItemPrefix`:case`listItemPrefixWhitespace`:break;default:l=void 0}if(!i&&t[0]===`enter`&&t[1].type===`listItemPrefix`||i===-1&&t[0]===`exit`&&(t[1].type===`listUnordered`||t[1].type===`listOrdered`)){if(o){let n=r;for(s=void 0;n--;){let t=e[n];if(t[1].type===`lineEnding`||t[1].type===`lineEndingBlank`){if(t[0]===`exit`)continue;s&&(e[s][1].type=`lineEndingBlank`,a=!0),t[1].type=`lineEnding`,s=n}else if(t[1].type!==`linePrefix`&&t[1].type!==`blockQuotePrefix`&&t[1].type!==`blockQuotePrefixWhitespace`&&t[1].type!==`blockQuoteMarker`&&t[1].type!==`listItemIndent`)break}c&&(!s||c<s)&&(o._spread=!0),o.end=Object.assign({},s?e[s][1].start:t[1].end),u.push({at:s||r,event:[`exit`,o,t[2]]})}if(t[1].type===`listItemPrefix`){let e={type:`listItem`,_spread:!1,start:Object.assign({},t[1].start),end:void 0};o=e,u.push({at:r,event:[`enter`,e,t[2]]}),c=void 0,l=!0}}}let d=e.splice(t),f=0;for(r=-1;++r<d.length;){for(;f<u.length&&u[f].at===t+r;)e.push(u[f++].event);e.push(d[r])}e[t][1]._spread=a}function o(e,t){return n;function n(n){c.call(this,e(n),n),t&&t.call(this,n)}}function s(){this.stack.push({type:`fragment`,children:[]})}function c(e,t,n){this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,n||void 0]),e.position={start:Yu(t.start),end:void 0}}function l(e){return t;function t(t){e&&e.call(this,t),u.call(this,t)}}function u(e,t){let n=this.stack.pop(),r=this.tokenStack.pop();if(!r)throw Error("Cannot close `"+e.type+"` ("+vs({start:e.start,end:e.end})+`): it’s not open`);r[0].type!==e.type&&(t?t.call(this,e,r[0]):(r[1]||Zu).call(this,e,r[0])),n.position.end=Yu(e.end)}function d(){return tc(this.stack.pop())}function f(){this.data.expectingFirstListItemValue=!0}function p(e){if(this.data.expectingFirstListItemValue){let t=this.stack[this.stack.length-2];t.start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0}}function m(){let e=this.resume(),t=this.stack[this.stack.length-1];t.lang=e}function h(){let e=this.resume(),t=this.stack[this.stack.length-1];t.meta=e}function g(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function _(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,``),this.data.flowCodeInside=void 0}function v(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e.replace(/(\r?\n|\r)$/g,``)}function y(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=mc(this.sliceSerialize(e)).toLowerCase()}function b(){let e=this.resume(),t=this.stack[this.stack.length-1];t.title=e}function x(){let e=this.resume(),t=this.stack[this.stack.length-1];t.url=e}function S(e){let t=this.stack[this.stack.length-1];t.depth||=this.sliceSerialize(e).length}function C(){this.data.setextHeadingSlurpLineEnding=!0}function w(e){let t=this.stack[this.stack.length-1];t.depth=this.sliceSerialize(e).codePointAt(0)===61?1:2}function T(){this.data.setextHeadingSlurpLineEnding=void 0}function E(e){let t=this.stack[this.stack.length-1].children,n=t[t.length-1];n&&n.type===`text`||(n=we(),n.position={start:Yu(e.start),end:void 0},t.push(n)),this.stack.push(n)}function D(e){let t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=Yu(e.end)}function O(e){let n=this.stack[this.stack.length-1];if(this.data.atHardBreak){let t=n.children[n.children.length-1];t.position.end=Yu(e.end),this.data.atHardBreak=void 0}else!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.type)&&(E.call(this,e),D.call(this,e))}function ee(){this.data.atHardBreak=!0}function k(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}function te(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}function ne(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}function A(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||`shortcut`;e.type+=`Reference`,e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function j(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||`shortcut`;e.type+=`Reference`,e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function M(e){let t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=Wu(t),n.identifier=mc(t).toLowerCase()}function re(){let e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];this.data.inReference=!0,n.type===`link`?n.children=e.children:n.alt=t}function ie(){let e=this.resume(),t=this.stack[this.stack.length-1];t.url=e}function N(){let e=this.resume(),t=this.stack[this.stack.length-1];t.title=e}function ae(){this.data.inReference=void 0}function oe(){this.data.referenceType=`collapsed`}function se(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=mc(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType=`full`}function ce(e){this.data.characterReferenceType=e.type}function le(e){let t=this.sliceSerialize(e),n=this.data.characterReferenceType,r;n?(r=pc(t,n===`characterReferenceMarkerNumeric`?10:16),this.data.characterReferenceType=void 0):r=oc(t);let i=this.stack[this.stack.length-1];i.value+=r}function ue(e){let t=this.stack.pop();t.position.end=Yu(e.end)}function de(e){D.call(this,e);let t=this.stack[this.stack.length-1];t.url=this.sliceSerialize(e)}function fe(e){D.call(this,e);let t=this.stack[this.stack.length-1];t.url=`mailto:`+this.sliceSerialize(e)}function pe(){return{type:`blockquote`,children:[],position:void 0}}function me(){return{type:`code`,lang:null,meta:null,value:``,position:void 0}}function P(){return{type:`inlineCode`,value:``,position:void 0}}function F(){return{type:`definition`,identifier:``,label:null,title:null,url:``,position:void 0}}function he(){return{type:`emphasis`,children:[],position:void 0}}function ge(){return{type:`heading`,depth:0,children:[],position:void 0}}function _e(){return{type:`break`,position:void 0}}function ve(){return{type:`html`,value:``,position:void 0}}function ye(){return{type:`image`,title:null,url:``,alt:null,position:void 0}}function I(){return{type:`link`,title:null,url:``,children:[],position:void 0}}function be(e){return{type:`list`,ordered:e.type===`listOrdered`,start:null,spread:e._spread,children:[],position:void 0}}function xe(e){return{type:`listItem`,spread:e._spread,checked:null,children:[],position:void 0}}function Se(){return{type:`paragraph`,children:[],position:void 0}}function Ce(){return{type:`strong`,children:[],position:void 0}}function we(){return{type:`text`,value:``,position:void 0}}function L(){return{type:`thematicBreak`,position:void 0}}}function Yu(e){return{line:e.line,column:e.column,offset:e.offset}}function Xu(e,t){let n=-1;for(;++n<t.length;){let r=t[n];Array.isArray(r)?Xu(e,r):Y(e,r)}}function Y(e,t){let n;for(n in t)if(Ku.call(t,n))switch(n){case`canContainEols`:case`transforms`:{let r=t[n];r&&e[n].push(...r);break}case`afterExit`:case`beforeEnter`:{let r=t[n];r&&e[n].push(r);break}case`enter`:case`exit`:{let r=t[n];r&&Object.assign(e[n],r);break}}}function Zu(e,t){throw Error(e?"Cannot close `"+e.type+"` ("+vs({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+vs({start:t.start,end:t.end})+`) is open`:"Cannot close document, a token (`"+t.type+"`, "+vs({start:t.start,end:t.end})+`) is still open`)}function X(e){let t=this;t.parser=n;function n(n){return qu(n,{...t.data(`settings`),...e,extensions:t.data(`micromarkExtensions`)||[],mdastExtensions:t.data(`fromMarkdownExtensions`)||[]})}}function Z(e,t){let n={type:`element`,tagName:`blockquote`,properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function Qu(e,t){let n={type:`element`,tagName:`br`,properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:`text`,value:`
|
|
21
|
+
`}]}function $u(e,t){let n=t.value?t.value+`
|
|
22
|
+
`:``,r={},i=t.lang?t.lang.split(/\s+/):[];i.length>0&&(r.className=[`language-`+i[0]]);let a={type:`element`,tagName:`code`,properties:r,children:[{type:`text`,value:n}]};return t.meta&&(a.data={meta:t.meta}),e.patch(t,a),a=e.applyData(t,a),a={type:`element`,tagName:`pre`,properties:{},children:[a]},e.patch(t,a),a}function ed(e,t){let n={type:`element`,tagName:`del`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function td(e,t){let n={type:`element`,tagName:`em`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function nd(e,t){let n=typeof e.options.clobberPrefix==`string`?e.options.clobberPrefix:`user-content-`,r=String(t.identifier).toUpperCase(),i=Ec(r.toLowerCase()),a=e.footnoteOrder.indexOf(r),o,s=e.footnoteCounts.get(r);s===void 0?(s=0,e.footnoteOrder.push(r),o=e.footnoteOrder.length):o=a+1,s+=1,e.footnoteCounts.set(r,s);let c={type:`element`,tagName:`a`,properties:{href:`#`+n+`fn-`+i,id:n+`fnref-`+i+(s>1?`-`+s:``),dataFootnoteRef:!0,ariaDescribedBy:[`footnote-label`]},children:[{type:`text`,value:String(o)}]};e.patch(t,c);let l={type:`element`,tagName:`sup`,properties:{},children:[c]};return e.patch(t,l),e.applyData(t,l)}function rd(e,t){let n={type:`element`,tagName:`h`+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function id(e,t){if(e.options.allowDangerousHtml){let n={type:`raw`,value:t.value};return e.patch(t,n),e.applyData(t,n)}}function ad(e,t){let n=t.referenceType,r=`]`;if(n===`collapsed`?r+=`[]`:n===`full`&&(r+=`[`+(t.label||t.identifier)+`]`),t.type===`imageReference`)return[{type:`text`,value:`![`+t.alt+r}];let i=e.all(t),a=i[0];a&&a.type===`text`?a.value=`[`+a.value:i.unshift({type:`text`,value:`[`});let o=i[i.length-1];return o&&o.type===`text`?o.value+=r:i.push({type:`text`,value:r}),i}function od(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return ad(e,t);let i={src:Ec(r.url||``)};t.alt!==null&&t.alt!==void 0&&(i.alt=t.alt),r.title!==null&&r.title!==void 0&&(i.title=r.title);let a={type:`element`,tagName:`img`,properties:i,children:[]};return e.patch(t,a),e.applyData(t,a)}function sd(e,t){let n={src:Ec(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);let r={type:`element`,tagName:`img`,properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function cd(e,t){let n={type:`text`,value:t.value.replace(/\r?\n|\r/g,` `)};e.patch(t,n);let r={type:`element`,tagName:`code`,properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function ld(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return ad(e,t);let i={href:Ec(r.url||``)};r.title!==null&&r.title!==void 0&&(i.title=r.title);let a={type:`element`,tagName:`a`,properties:i,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function ud(e,t){let n={href:Ec(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);let r={type:`element`,tagName:`a`,properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function dd(e,t,n){let r=e.all(t),i=n?fd(n):pd(t),a={},o=[];if(typeof t.checked==`boolean`){let e=r[0],n;e&&e.type===`element`&&e.tagName===`p`?n=e:(n={type:`element`,tagName:`p`,properties:{},children:[]},r.unshift(n)),n.children.length>0&&n.children.unshift({type:`text`,value:` `}),n.children.unshift({type:`element`,tagName:`input`,properties:{type:`checkbox`,checked:t.checked,disabled:!0},children:[]}),a.className=[`task-list-item`]}let s=-1;for(;++s<r.length;){let e=r[s];(i||s!==0||e.type!==`element`||e.tagName!==`p`)&&o.push({type:`text`,value:`
|
|
23
|
+
`}),e.type===`element`&&e.tagName===`p`&&!i?o.push(...e.children):o.push(e)}let c=r[r.length-1];c&&(i||c.type!==`element`||c.tagName!==`p`)&&o.push({type:`text`,value:`
|
|
24
|
+
`});let l={type:`element`,tagName:`li`,properties:a,children:o};return e.patch(t,l),e.applyData(t,l)}function fd(e){let t=!1;if(e.type===`list`){t=e.spread||!1;let{children:n}=e,r=-1;for(;!t&&++r<n.length;)t=pd(n[r])}return t}function pd(e){let{spread:t}=e;return t??e.children.length>1}function md(e,t){let n={},r=e.all(t),i=-1;for(typeof t.start==`number`&&t.start!==1&&(n.start=t.start);++i<r.length;){let e=r[i];if(e.type===`element`&&e.tagName===`li`&&e.properties&&Array.isArray(e.properties.className)&&e.properties.className.includes(`task-list-item`)){n.className=[`contains-task-list`];break}}let a={type:`element`,tagName:t.ordered?`ol`:`ul`,properties:n,children:e.wrap(r,!0)};return e.patch(t,a),e.applyData(t,a)}function hd(e,t){let n={type:`element`,tagName:`p`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function gd(e,t){let n={type:`root`,children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function _d(e,t){let n={type:`element`,tagName:`strong`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function vd(e,t){let n=e.all(t),r=n.shift(),i=[];if(r){let n={type:`element`,tagName:`thead`,properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],n),i.push(n)}if(n.length>0){let r={type:`element`,tagName:`tbody`,properties:{},children:e.wrap(n,!0)},a=hs(t.children[1]),o=ms(t.children[t.children.length-1]);a&&o&&(r.position={start:a,end:o}),i.push(r)}let a={type:`element`,tagName:`table`,properties:{},children:e.wrap(i,!0)};return e.patch(t,a),e.applyData(t,a)}function yd(e,t,n){let r=n?n.children:void 0,i=(r?r.indexOf(t):1)===0?`th`:`td`,a=n&&n.type===`table`?n.align:void 0,o=a?a.length:t.children.length,s=-1,c=[];for(;++s<o;){let n=t.children[s],r={},o=a?a[s]:void 0;o&&(r.align=o);let l={type:`element`,tagName:i,properties:r,children:[]};n&&(l.children=e.all(n),e.patch(n,l),l=e.applyData(n,l)),c.push(l)}let l={type:`element`,tagName:`tr`,properties:{},children:e.wrap(c,!0)};return e.patch(t,l),e.applyData(t,l)}function bd(e,t){let n={type:`element`,tagName:`td`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}var xd=9,Sd=32;function Cd(e){let t=String(e),n=/\r?\n|\r/g,r=n.exec(t),i=0,a=[];for(;r;)a.push(wd(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return a.push(wd(t.slice(i),i>0,!1)),a.join(``)}function wd(e,t,n){let r=0,i=e.length;if(t){let t=e.codePointAt(r);for(;t===xd||t===Sd;)r++,t=e.codePointAt(r)}if(n){let t=e.codePointAt(i-1);for(;t===xd||t===Sd;)i--,t=e.codePointAt(i-1)}return i>r?e.slice(r,i):``}function Td(e,t){let n={type:`text`,value:Cd(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function Ed(e,t){let n={type:`element`,tagName:`hr`,properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}var Dd={blockquote:Z,break:Qu,code:$u,delete:ed,emphasis:td,footnoteReference:nd,heading:rd,html:id,imageReference:od,image:sd,inlineCode:cd,linkReference:ld,link:ud,listItem:dd,list:md,paragraph:hd,root:gd,strong:_d,table:vd,tableCell:bd,tableRow:yd,text:Td,thematicBreak:Ed,toml:Od,yaml:Od,definition:Od,footnoteDefinition:Od};function Od(){}var{defineProperty:kd}=Object,Ad=typeof self==`object`?self:globalThis,jd=(e,t)=>{switch(e){case`Function`:case`SharedWorker`:case`Worker`:case`eval`:case`setInterval`:case`setTimeout`:throw TypeError(`unable to deserialize `+e)}return new Ad[e](t)},Md=(e,t)=>{let n=(t,n)=>(e.set(n,t),t),r=i=>{if(e.has(i))return e.get(i);let[a,o]=t[i];switch(a){case 0:case-1:return n(o,i);case 1:{let e=n([],i);for(let t of o)e.push(r(t));return e}case 2:{let e=n({},i);for(let[t,n]of o){let i=r(t),a=r(n);i===`__proto__`?kd(e,i,{value:a,configurable:!0,enumerable:!0,writable:!0}):e[i]=a}return e}case 3:return n(new Date(o),i);case 4:{let{source:e,flags:t}=o;return n(new RegExp(e,t),i)}case 5:{let e=n(new Map,i);for(let[t,n]of o)e.set(r(t),r(n));return e}case 6:{let e=n(new Set,i);for(let t of o)e.add(r(t));return e}case 7:{let{name:e,message:t}=o;return n(typeof Ad[e]==`function`?jd(e,t):Error(t),i)}case 8:return n(BigInt(o),i);case`BigInt`:return n(Object(BigInt(o)),i);case`ArrayBuffer`:return n(new Uint8Array(o).buffer,o);case`DataView`:{let{buffer:e}=new Uint8Array(o);return n(new DataView(e),o)}case`-0`:return-0}return n(jd(a,o),i)};return r},Nd=e=>Md(new Map,e)(0),Pd=``,{toString:Fd}={},{keys:Id,is:Ld}=Object,Rd=e=>{let t=typeof e;if(t!==`object`||!e)return[0,t];let n=Fd.call(e).slice(8,-1);switch(n){case`Array`:return[1,Pd];case`Object`:return[2,Pd];case`Date`:return[3,Pd];case`RegExp`:return[4,Pd];case`Map`:return[5,Pd];case`Set`:return[6,Pd];case`DataView`:return[1,n]}return n.includes(`Array`)?[1,n]:e instanceof Error?[7,e.name||`Error`]:[2,n]},zd=([e,t])=>e===0&&(t===`function`||t===`symbol`),Bd=(e,t,n,r)=>{let i=(e,t)=>{let i=r.push(e)-1;return n.set(t,i),i},a=o=>{if(n.has(o))return n.get(o);let[s,c]=Rd(o);switch(s){case 0:{let t=o;switch(c){case`bigint`:s=8,t=o.toString();break;case`number`:if(!o&&Ld(o,-0))return r.push([`-0`])-1;break;case`function`:case`symbol`:if(e)throw TypeError(`unable to serialize `+c);t=null;break;case`undefined`:return i([-1],o)}return i([s,t],o)}case 1:{if(c){let e=o;return c===`DataView`?e=new Uint8Array(o.buffer):c===`ArrayBuffer`&&(e=new Uint8Array(o)),i([c,[...e]],o)}let e=[],t=i([s,e],o);for(let t of o)e.push(a(t));return t}case 2:{if(c)switch(c){case`BigInt`:return i([c,o.toString()],o);case`Boolean`:case`Number`:case`String`:return i([c,o.valueOf()],o)}if(t&&`toJSON`in o)return a(o.toJSON());let n=[],r=i([s,n],o);for(let t of Id(o))(e||!zd(Rd(o[t])))&&n.push([a(t),a(o[t])]);return r}case 3:return i([s,isNaN(o.getTime())?Pd:o.toISOString()],o);case 4:{let{source:e,flags:t}=o;return i([s,{source:e,flags:t}],o)}case 5:{let t=[],n=i([s,t],o);for(let[n,r]of o)(e||!(zd(Rd(n))||zd(Rd(r))))&&t.push([a(n),a(r)]);return n}case 6:{let t=[],n=i([s,t],o);for(let n of o)(e||!zd(Rd(n)))&&t.push(a(n));return n}}let{message:l}=o;return i([s,{name:c,message:l}],o)};return a},Vd=(e,{json:t,lossy:n}={})=>{let r=[];return Bd(!(t||n),!!t,new Map,r)(e),r},Hd=typeof structuredClone==`function`?(e,t)=>t&&(`json`in t||`lossy`in t)?Nd(Vd(e,t)):structuredClone(e):(e,t)=>Nd(Vd(e,t));function Ud(e,t){let n=[{type:`text`,value:`↩`}];return t>1&&n.push({type:`element`,tagName:`sup`,properties:{},children:[{type:`text`,value:String(t)}]}),n}function Wd(e,t){return`Back to reference `+(e+1)+(t>1?`-`+t:``)}function Gd(e){let t=typeof e.options.clobberPrefix==`string`?e.options.clobberPrefix:`user-content-`,n=e.options.footnoteBackContent||Ud,r=e.options.footnoteBackLabel||Wd,i=e.options.footnoteLabel||`Footnotes`,a=e.options.footnoteLabelTagName||`h2`,o=e.options.footnoteLabelProperties||{className:[`sr-only`]},s=[],c=[],l=-1;for(;++l<e.footnoteOrder.length;){let t=e.footnoteById.get(e.footnoteOrder[l]);t&&(s[l]=e.all(t))}for(l=-1;++l<e.footnoteOrder.length;){let i=e.footnoteById.get(e.footnoteOrder[l]);if(!i)continue;let a=s[l],o=String(i.identifier).toUpperCase(),u=Ec(o.toLowerCase()),d=0,f=[],p=e.footnoteCounts.get(o);for(;p!==void 0&&++d<=p;){f.length>0&&f.push({type:`text`,value:` `});let e=typeof n==`string`?n:n(l,d);typeof e==`string`&&(e={type:`text`,value:e}),f.push({type:`element`,tagName:`a`,properties:{href:`#`+t+`fnref-`+u+(d>1?`-`+d:``),dataFootnoteBackref:``,ariaLabel:typeof r==`string`?r:r(l,d),className:[`data-footnote-backref`]},children:Array.isArray(e)?e:[e]})}let m=a[a.length-1];if(m&&m.type===`element`&&m.tagName===`p`){let e=m.children[m.children.length-1];e&&e.type===`text`?e.value+=` `:m.children.push({type:`text`,value:` `}),m.children.push(...f)}else a.push(...f);let h={type:`element`,tagName:`li`,properties:{id:t+`fn-`+u},children:e.wrap(a,!0)};e.patch(i,h),c.push(h)}if(c.length!==0)return{type:`element`,tagName:`section`,properties:{dataFootnotes:!0,className:[`footnotes`]},children:[{type:`element`,tagName:a,properties:{...Hd(o),id:`footnote-label`},children:[{type:`text`,value:i}]},{type:`text`,value:`
|
|
25
|
+
`},{type:`element`,tagName:`ol`,properties:{},children:e.wrap(c,!0)},{type:`text`,value:`
|
|
26
|
+
`}]}}var Kd=(function(e){if(e==null)return Zd;if(typeof e==`function`)return Xd(e);if(typeof e==`object`)return Array.isArray(e)?qd(e):Jd(e);if(typeof e==`string`)return Yd(e);throw Error(`Expected function, string, or object as test`)});function qd(e){let t=[],n=-1;for(;++n<e.length;)t[n]=Kd(e[n]);return Xd(r);function r(...e){let n=-1;for(;++n<t.length;)if(t[n].apply(this,e))return!0;return!1}}function Jd(e){let t=e;return Xd(n);function n(n){let r=n,i;for(i in e)if(r[i]!==t[i])return!1;return!0}}function Yd(e){return Xd(t);function t(t){return t&&t.type===e}}function Xd(e){return t;function t(t,n,r){return!!(Qd(t)&&e.call(this,t,typeof n==`number`?n:void 0,r||void 0))}}function Zd(){return!0}function Qd(e){return typeof e==`object`&&!!e&&`type`in e}function $d(e){return e}var ef=[],tf=`skip`;function nf(e,t,n,r){if(!e||typeof e!=`object`)throw Error("Unexpected value `"+e+"` for `tree`, expected node");let i=!0,a,o,s,c;if(typeof n==`function`||n&&typeof n==`object`?(a=t,o=n,r&&(i=!1)):(o=t,n&&(i=!1)),typeof o==`function`)s=o;else if(o&&typeof o==`object`){if(o.enter!==null&&o.enter!==void 0){if(typeof o.enter==`function`)s=o.enter;else throw Error("Unexpected value `"+o.enter+"` for `visitors.enter`, expected optional visitor")}if(typeof o.exit==`function`)c=o.exit;else throw Error("Unexpected value `"+o.exit+"` for `visitors.exit`, expected visitor (pass a visitor directly if you only want an enter visitor)")}else throw Error("Unexpected value `"+o+"` for `enter` or `visitors`, expected visitor or object with visitors");let l=Kd(a),u=i?1:-1;d(e,void 0,[])();function d(e,t,n){let r=e&&typeof e==`object`?e:{};if(typeof r.type==`string`){let t=typeof r.tagName==`string`?r.tagName:typeof r.name==`string`?r.name:void 0;Object.defineProperty(o,"name",{value:`node (`+$d(e.type+(t?`<`+t+`>`:``))+`)`})}return o;function o(){let r=!a||l(e,t,n[n.length-1]||void 0),o=ef;if(s&&r&&(o=rf(s(e,n,t)),o[0]===!1))return o;if(`children`in e&&e.children){let t=e;if(t.children&&o[0]!==`skip`){let e=(i?-1:t.children.length)+u,r=[...n,t];for(;e>-1&&e<t.children.length;){let n=d(t.children[e],e,r)();if(n[0]===!1)return n;e=typeof n[1]==`number`?n[1]:e+u}}}if(c&&r){let r=rf(c(e,n,t));if(r[0]===`skip`)throw Error("Unexpected value `"+r[0]+"` from `exit`, expected `CONTINUE`, `EXIT`, index, or nothing");if(r[0]===!1||typeof r[1]==`number`)return r}return o}}}function rf(e){return Array.isArray(e)?e:typeof e==`number`?[!0,e]:e==null?ef:[e]}function af(e,t,n,r){let i,a,o;typeof n==`function`||n&&typeof n==`object`?(i=t,a=n,o=r):(a=t,o=n),typeof a==`function`?nf(e,i,sf(a),o):nf(e,i,of(a),o)}function of(e){return!e||typeof e!=`object`?e:{enter:typeof e.enter==`function`?sf(e.enter):e.enter,exit:typeof e.exit==`function`?sf(e.exit):e.exit}}function sf(e){return t;function t(t,n,r){return e(t,r,n[n.length-1])}}var cf={}.hasOwnProperty,lf={};function uf(e,t){let n=t||lf,r=new Map,i=new Map,a={all:s,applyData:ff,definitionById:r,footnoteById:i,footnoteCounts:new Map,footnoteOrder:[],handlers:{...Dd,...n.handlers},one:o,options:n,patch:df,wrap:mf};return af(e,function(e){if(e.type===`definition`||e.type===`footnoteDefinition`){let t=String(e.identifier).toUpperCase();e.type===`definition`?r.has(t)||r.set(t,e):i.has(t)||i.set(t,e)}}),a;function o(e,t){let{type:n}=e,r=a.handlers[n];if(cf.call(a.handlers,n)&&r)return r(a,e,t);if(a.options.passThrough&&a.options.passThrough.includes(n)){if(`children`in e){let{children:t,...n}=e;return{...Hd(n),children:a.all(e)}}return Hd(e)}return(a.options.unknownHandler||pf)(a,e,t)}function s(e){let t=[];if(`children`in e){let n=e.children,r=-1;for(;++r<n.length;){let i=a.one(n[r],e);if(i){if(r&&n[r-1].type===`break`&&(!Array.isArray(i)&&i.type===`text`&&(i.value=hf(i.value)),!Array.isArray(i)&&i.type===`element`)){let e=i.children[0];e&&e.type===`text`&&(e.value=hf(e.value))}Array.isArray(i)?t.push(...i):t.push(i)}}}return t}}function df(e,t){e.position&&(t.position=_s(e))}function ff(e,t){let n=t;if(e&&e.data){let{hChildren:t,hName:r,hProperties:i}=e.data;typeof r==`string`&&(n.type===`element`?n.tagName=r:n={type:`element`,tagName:r,properties:{},children:`children`in n?n.children:[n]}),n.type===`element`&&i&&Object.assign(n.properties,Hd(i)),`children`in n&&n.children&&t!=null&&(n.children=t)}return n}function pf(e,t){let n=t.data||{},r=`value`in t&&!(cf.call(n,`hProperties`)||cf.call(n,`hChildren`))?{type:`text`,value:t.value}:{type:`element`,tagName:`div`,properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function mf(e,t){let n=[],r=-1;for(t&&n.push({type:`text`,value:`
|
|
27
|
+
`});++r<e.length;)r&&n.push({type:`text`,value:`
|
|
28
|
+
`}),n.push(e[r]);return t&&e.length>0&&n.push({type:`text`,value:`
|
|
29
|
+
`}),n}function hf(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function gf(e,t){let n=uf(e,t),r=n.one(e,void 0),i=Gd(n),a=Array.isArray(r)?{type:`root`,children:r}:r||{type:`root`,children:[]};return i&&(`children`in a,a.children.push({type:`text`,value:`
|
|
30
|
+
`},i)),a}function _f(e,t){return e&&`run`in e?async function(n,r){let i=gf(n,{file:r,...t});await e.run(i,r)}:function(n,r){return gf(n,{file:r,...e||t})}}function vf(e){if(e)throw e}var yf=o(((e,t)=>{var n=Object.prototype.hasOwnProperty,r=Object.prototype.toString,i=Object.defineProperty,a=Object.getOwnPropertyDescriptor,o=function(e){return typeof Array.isArray==`function`?Array.isArray(e):r.call(e)===`[object Array]`},s=function(e){if(!e||r.call(e)!==`[object Object]`)return!1;var t=n.call(e,`constructor`),i=e.constructor&&e.constructor.prototype&&n.call(e.constructor.prototype,`isPrototypeOf`);if(e.constructor&&!t&&!i)return!1;for(var a in e);return a===void 0||n.call(e,a)},c=function(e,t){i&&t.name===`__proto__`?i(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,t){if(t===`__proto__`){if(!n.call(e,t))return;if(a)return a(e,t).value}return e[t]};t.exports=function e(){var t,n,r,i,a,u,d=arguments[0],f=1,p=arguments.length,m=!1;for(typeof d==`boolean`&&(m=d,d=arguments[1]||{},f=2),(d==null||typeof d!=`object`&&typeof d!=`function`)&&(d={});f<p;++f)if(t=arguments[f],t!=null)for(n in t)r=l(d,n),i=l(t,n),d!==i&&(m&&i&&(s(i)||(a=o(i)))?(a?(a=!1,u=r&&o(r)?r:[]):u=r&&s(r)?r:{},c(d,{name:n,newValue:e(m,u,i)})):i!==void 0&&c(d,{name:n,newValue:i}));return d}}));function bf(e){if(typeof e!=`object`||!e)return!1;let t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function xf(){let e=[],t={run:n,use:r};return t;function n(...t){let n=-1,r=t.pop();if(typeof r!=`function`)throw TypeError(`Expected function as last argument, not `+r);i(null,...t);function i(a,...o){let s=e[++n],c=-1;if(a)r(a);else{for(;++c<t.length;)(o[c]===null||o[c]===void 0)&&(o[c]=t[c]);t=o,s?Sf(s,i)(...o):r(null,...o)}}}function r(n){if(typeof n!=`function`)throw TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}}function Sf(e,t){let n;return r;function r(...t){let r=e.length>t.length,o;r&&t.push(i);try{o=e.apply(this,t)}catch(e){let t=e;if(r&&n)throw t;return i(t)}r||(o&&o.then&&typeof o.then==`function`?o.then(a,i):o instanceof Error?i(o):a(o))}function i(e,...r){n||(n=!0,t(e,...r))}function a(e){i(null,e)}}var Cf={basename:wf,dirname:Tf,extname:Ef,join:Df,sep:`/`};function wf(e,t){if(t!==void 0&&typeof t!=`string`)throw TypeError(`"ext" argument must be a string`);Af(e);let n=0,r=-1,i=e.length,a;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else r<0&&(a=!0,r=i+1);return r<0?``:e.slice(n,r)}if(t===e)return``;let o=-1,s=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else o<0&&(a=!0,o=i+1),s>-1&&(e.codePointAt(i)===t.codePointAt(s--)?s<0&&(r=i):(s=-1,r=o));return n===r?r=o:r<0&&(r=e.length),e.slice(n,r)}function Tf(e){if(Af(e),e.length===0)return`.`;let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||=!0;return t<0?e.codePointAt(0)===47?`/`:`.`:t===1&&e.codePointAt(0)===47?`//`:e.slice(0,t)}function Ef(e){Af(e);let t=e.length,n=-1,r=0,i=-1,a=0,o;for(;t--;){let s=e.codePointAt(t);if(s===47){if(o){r=t+1;break}}else n<0&&(o=!0,n=t+1),s===46?i<0?i=t:a!==1&&(a=1):i>-1&&(a=-1)}return i<0||n<0||a===0||a===1&&i===n-1&&i===r+1?``:e.slice(i,n)}function Df(...e){let t=-1,n;for(;++t<e.length;)Af(e[t]),e[t]&&(n=n===void 0?e[t]:n+`/`+e[t]);return n===void 0?`.`:Of(n)}function Of(e){Af(e);let t=e.codePointAt(0)===47,n=kf(e,!t);return n.length===0&&!t&&(n=`.`),n.length>0&&e.codePointAt(e.length-1)===47&&(n+=`/`),t?`/`+n:n}function kf(e,t){let n=``,r=0,i=-1,a=0,o=-1,s,c;for(;++o<=e.length;){if(o<e.length)s=e.codePointAt(o);else if(s===47)break;else s=47;if(s===47){if(i!==o-1&&a!==1){if(i!==o-1&&a===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(c=n.lastIndexOf(`/`),c!==n.length-1){c<0?(n=``,r=0):(n=n.slice(0,c),r=n.length-1-n.lastIndexOf(`/`)),i=o,a=0;continue}}else if(n.length>0){n=``,r=0,i=o,a=0;continue}}t&&(n=n.length>0?n+`/..`:`..`,r=2)}else n.length>0?n+=`/`+e.slice(i+1,o):n=e.slice(i+1,o),r=o-i-1}i=o,a=0}else s===46&&a>-1?a++:a=-1}return n}function Af(e){if(typeof e!=`string`)throw TypeError(`Path must be a string. Received `+JSON.stringify(e))}var jf={cwd:Mf};function Mf(){return`/`}function Nf(e){return!!(typeof e==`object`&&e&&`href`in e&&e.href&&`protocol`in e&&e.protocol&&e.auth===void 0)}function Pf(e){if(typeof e==`string`)e=new URL(e);else if(!Nf(e)){let t=TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code=`ERR_INVALID_ARG_TYPE`,t}if(e.protocol!==`file:`){let e=TypeError(`The URL must be of scheme file`);throw e.code=`ERR_INVALID_URL_SCHEME`,e}return Ff(e)}function Ff(e){if(e.hostname!==``){let e=TypeError(`File URL host must be "localhost" or empty on darwin`);throw e.code=`ERR_INVALID_FILE_URL_HOST`,e}let t=e.pathname,n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){let e=t.codePointAt(n+2);if(e===70||e===102){let e=TypeError(`File URL path must not include encoded / characters`);throw e.code=`ERR_INVALID_FILE_URL_PATH`,e}}return decodeURIComponent(t)}var If=[`history`,`path`,`basename`,`stem`,`extname`,`dirname`],Lf=class{constructor(e){let t;t=e?Nf(e)?{path:e}:typeof e==`string`||Vf(e)?{value:e}:e:{},this.cwd=`cwd`in t?``:jf.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n=-1;for(;++n<If.length;){let e=If[n];e in t&&t[e]!==void 0&&t[e]!==null&&(this[e]=e===`history`?[...t[e]]:t[e])}let r;for(r in t)If.includes(r)||(this[r]=t[r])}get basename(){return typeof this.path==`string`?Cf.basename(this.path):void 0}set basename(e){zf(e,`basename`),Rf(e,`basename`),this.path=Cf.join(this.dirname||``,e)}get dirname(){return typeof this.path==`string`?Cf.dirname(this.path):void 0}set dirname(e){Bf(this.basename,`dirname`),this.path=Cf.join(e||``,this.basename)}get extname(){return typeof this.path==`string`?Cf.extname(this.path):void 0}set extname(e){if(Rf(e,`extname`),Bf(this.dirname,`extname`),e){if(e.codePointAt(0)!==46)throw Error("`extname` must start with `.`");if(e.includes(`.`,1))throw Error("`extname` cannot contain multiple dots")}this.path=Cf.join(this.dirname,this.stem+(e||``))}get path(){return this.history[this.history.length-1]}set path(e){Nf(e)&&(e=Pf(e)),zf(e,`path`),this.path!==e&&this.history.push(e)}get stem(){return typeof this.path==`string`?Cf.basename(this.path,this.extname):void 0}set stem(e){zf(e,`stem`),Rf(e,`stem`),this.path=Cf.join(this.dirname||``,e+(this.extname||``))}fail(e,t,n){let r=this.message(e,t,n);throw r.fatal=!0,r}info(e,t,n){let r=this.message(e,t,n);return r.fatal=void 0,r}message(e,t,n){let r=new Ss(e,t,n);return this.path&&(r.name=this.path+`:`+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}toString(e){return this.value===void 0?``:typeof this.value==`string`?this.value:new TextDecoder(e||void 0).decode(this.value)}};function Rf(e,t){if(e&&e.includes(Cf.sep))throw Error("`"+t+"` cannot be a path: did not expect `"+Cf.sep+"`")}function zf(e,t){if(!e)throw Error("`"+t+"` cannot be empty")}function Bf(e,t){if(!e)throw Error("Setting `"+t+"` requires `path` to be set too")}function Vf(e){return!!(e&&typeof e==`object`&&`byteLength`in e&&`byteOffset`in e)}var Q=(function(e){let t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r}),Hf=l(yf(),1),Uf={}.hasOwnProperty,Wf=new class e extends Q{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=xf()}copy(){let t=new e,n=-1;for(;++n<this.attachers.length;){let e=this.attachers[n];t.use(...e)}return t.data((0,Hf.default)(!0,{},this.namespace)),t}data(e,t){return typeof e==`string`?arguments.length===2?(qf(`data`,this.frozen),this.namespace[e]=t,this):Uf.call(this.namespace,e)&&this.namespace[e]||void 0:e?(qf(`data`,this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;let e=this;for(;++this.freezeIndex<this.attachers.length;){let[t,...n]=this.attachers[this.freezeIndex];if(n[0]===!1)continue;n[0]===!0&&(n[0]=void 0);let r=t.call(e,...n);typeof r==`function`&&this.transformers.use(r)}return this.frozen=!0,this.freezeIndex=1/0,this}parse(e){this.freeze();let t=Xf(e),n=this.parser||this.Parser;return Gf(`parse`,n),n(String(t),t)}process(e,t){let n=this;return this.freeze(),Gf(`process`,this.parser||this.Parser),Kf(`process`,this.compiler||this.Compiler),t?r(void 0,t):new Promise(r);function r(r,i){let a=Xf(e),o=n.parse(a);n.run(o,a,function(e,t,r){if(e||!t||!r)return s(e);let i=t,a=n.stringify(i,r);Qf(a)?r.value=a:r.result=a,s(e,r)});function s(e,n){e||!n?i(e):r?r(n):t(void 0,n)}}}processSync(e){let t=!1,n;return this.freeze(),Gf(`processSync`,this.parser||this.Parser),Kf(`processSync`,this.compiler||this.Compiler),this.process(e,r),Yf(`processSync`,`process`,t),n;function r(e,r){t=!0,vf(e),n=r}}run(e,t,n){Jf(e),this.freeze();let r=this.transformers;return!n&&typeof t==`function`&&(n=t,t=void 0),n?i(void 0,n):new Promise(i);function i(i,a){let o=Xf(t);r.run(e,o,s);function s(t,r,o){let s=r||e;t?a(t):i?i(s):n(void 0,s,o)}}}runSync(e,t){let n=!1,r;return this.run(e,t,i),Yf(`runSync`,`run`,n),r;function i(e,t){vf(e),r=t,n=!0}}stringify(e,t){this.freeze();let n=Xf(t),r=this.compiler||this.Compiler;return Kf(`stringify`,r),Jf(e),r(e,n)}use(e,...t){let n=this.attachers,r=this.namespace;if(qf(`use`,this.frozen),e!=null){if(typeof e==`function`)s(e,t);else if(typeof e==`object`)Array.isArray(e)?o(e):a(e);else throw TypeError("Expected usable value, not `"+e+"`")}return this;function i(e){if(typeof e==`function`)s(e,[]);else if(typeof e==`object`){if(Array.isArray(e)){let[t,...n]=e;s(t,n)}else a(e)}else throw TypeError("Expected usable value, not `"+e+"`")}function a(e){if(!(`plugins`in e)&&!(`settings`in e))throw 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");o(e.plugins),e.settings&&(r.settings=(0,Hf.default)(!0,r.settings,e.settings))}function o(e){let t=-1;if(e!=null){if(Array.isArray(e))for(;++t<e.length;)i(e[t]);else throw TypeError("Expected a list of plugins, not `"+e+"`")}}function s(e,t){let r=-1,i=-1;for(;++r<n.length;)if(n[r][0]===e){i=r;break}if(i===-1)n.push([e,...t]);else if(t.length>0){let[r,...a]=t,o=n[i][1];bf(o)&&bf(r)&&(r=(0,Hf.default)(!0,o,r)),n[i]=[e,r,...a]}}}}().freeze();function Gf(e,t){if(typeof t!=`function`)throw TypeError("Cannot `"+e+"` without `parser`")}function Kf(e,t){if(typeof t!=`function`)throw TypeError("Cannot `"+e+"` without `compiler`")}function qf(e,t){if(t)throw Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Jf(e){if(!bf(e)||typeof e.type!=`string`)throw TypeError("Expected node, got `"+e+"`")}function Yf(e,t,n){if(!n)throw Error("`"+e+"` finished async. Use `"+t+"` instead")}function Xf(e){return Zf(e)?e:new Lf(e)}function Zf(e){return!!(e&&typeof e==`object`&&`message`in e&&`messages`in e)}function Qf(e){return typeof e==`string`||$f(e)}function $f(e){return!!(e&&typeof e==`object`&&`byteLength`in e&&`byteOffset`in e)}var ep=[],$={allowDangerousHtml:!0},tp=/^(https?|ircs?|mailto|xmpp)$/i,np=[{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 rp(e){let t=ip(e),n=ap(e);return op(t.runSync(t.parse(n),n),e)}function ip(e){let t=e.rehypePlugins||ep,n=e.remarkPlugins||ep,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...$}:$;return Wf().use(X).use(n).use(_f,r).use(t)}function ap(e){let t=e.children||``,n=new Lf;return typeof t==`string`?n.value=t:``+t,n}function op(e,t){let n=t.allowedElements,r=t.allowElement,i=t.components,a=t.disallowedElements,o=t.skipHtml,s=t.unwrapDisallowed,c=t.urlTransform||sp;for(let e of np)Object.hasOwn(t,e.from)&&``+e.from+(e.to?"use `"+e.to+"` instead":`remove it`)+e.id;return af(e,l),As(e,{Fragment:_.Fragment,components:i,ignoreInvalidStyle:!0,jsx:_.jsx,jsxs:_.jsxs,passKeys:!0,passNode:!0});function l(e,t,i){if(e.type===`raw`&&i&&typeof t==`number`)return o?i.children.splice(t,1):i.children[t]={type:`text`,value:e.value},t;if(e.type===`element`){let t;for(t in $s)if(Object.hasOwn($s,t)&&Object.hasOwn(e.properties,t)){let n=e.properties[t],r=$s[t];(r===null||r.includes(e.tagName))&&(e.properties[t]=c(String(n||``),t,e))}}if(e.type===`element`){let o=n?!n.includes(e.tagName):a?a.includes(e.tagName):!1;if(!o&&r&&typeof t==`number`&&(o=!r(e,t,i)),o&&i&&typeof t==`number`)return s&&e.children?i.children.splice(t,1,...e.children):i.children.splice(t,1),t}}}function sp(e){let t=e.indexOf(`:`),n=e.indexOf(`?`),r=e.indexOf(`#`),i=e.indexOf(`/`);return t===-1||i!==-1&&t>i||n!==-1&&t>n||r!==-1&&t>r||tp.test(e.slice(0,t))?e:``}function cp(e,t){let n=String(e);if(typeof t!=`string`)throw TypeError(`Expected character`);let r=0,i=n.indexOf(t);for(;i!==-1;)r++,i=n.indexOf(t,i+t.length);return r}function lp(e){if(typeof e!=`string`)throw TypeError(`Expected a string`);return e.replace(/[|\\{}()[\]^$+*?.]/g,`\\$&`).replace(/-/g,`\\x2d`)}function up(e,t,n){let r=Kd((n||{}).ignore||[]),i=dp(t),a=-1;for(;++a<i.length;)nf(e,o);function o(e,t,n){if(e.type===`text`&&typeof n==`number`)return s(e,t,n);if(r(e,n,t[t.length-1]))return tf}function s(e,t,n){let r=t[t.length-1],o=i[a][0],s=i[a][1],c=0,l=!1,u=[];o.lastIndex=0;let d=o.exec(e.value);for(;d;){let n=d.index,r={index:d.index,input:d.input,stack:[...t,e]},i=s(...d,r);if(typeof i==`string`&&(i=i.length>0?{type:`text`,value:i}:void 0),i!==!1){if(c!==n&&f({type:`text`,value:e.value.slice(c,n)}),Array.isArray(i))for(let e of i)f(e);else i&&f(i);c=n+d[0].length,l=!0}if(i===!1||d[0].length===0){let t=e.value.codePointAt(n)||0;o.lastIndex=n+(/[uv]/.test(o.flags)&&t>65535?2:1)}if(!o.global)break;d=o.exec(e.value)}return l?(c<e.value.length&&f({type:`text`,value:e.value.slice(c)}),r.children.splice(n,1,...u)):u=[e],n+u.length;function f(e){let t=u[u.length-1];t&&t.type===`text`&&e.type===`text`?t.value+=e.value:u.push(e)}}}function dp(e){if(!Array.isArray(e))throw TypeError(`Expected find and replace tuple or list of tuples`);let t=[],n=!e[0]||Array.isArray(e[0])?e:[e],r=-1;for(;++r<n.length;){let e=n[r];t.push([fp(e[0]),pp(e[1])])}return t}function fp(e){return typeof e==`string`?new RegExp(lp(e),`g`):e}function pp(e){return typeof e==`function`?e:function(){return e}}var mp=`phrasing`,hp=[`autolink`,`link`,`image`,`label`];function gp(){return{transforms:[wp],enter:{literalAutolink:vp,literalAutolinkEmail:yp,literalAutolinkHttp:yp,literalAutolinkWww:yp},exit:{literalAutolink:Cp,literalAutolinkEmail:Sp,literalAutolinkHttp:bp,literalAutolinkWww:xp}}}function _p(){return{unsafe:[{character:`@`,before:`[+\\-.\\w]`,after:`[\\-.\\w]`,inConstruct:mp,notInConstruct:hp},{character:`.`,before:`[Ww]{3}`,inConstruct:mp,notInConstruct:hp},{character:`:`,before:`[PSps]`,after:`\\/`,inConstruct:mp,notInConstruct:hp}]}}function vp(e){this.enter({type:`link`,title:null,url:``,children:[],position:void 0},e)}function yp(e){this.config.enter.autolinkProtocol.call(this,e)}function bp(e){this.config.exit.autolinkProtocol.call(this,e)}function xp(e){this.config.exit.data.call(this,e);let t=this.stack[this.stack.length-1];t.type,t.url=`http://`+this.sliceSerialize(e)}function Sp(e){this.config.exit.autolinkEmail.call(this,e)}function Cp(e){this.exit(e)}function wp(e){up(e,[[/(?<![\da-z])(https?:\/\/|www(?=\.))([\w-]*\.[\w\-.]*)([^\t\n\r ]*)/gi,Tp],[/(?<![\w+\-.@])xmpp:([\w+\-.]+)@([\w-]+(?:\.[\w-]+)+)(\/(?:[\w\-/]|\.(?=[\dA-Za-z]))*)?/g,Op],[/(?<![\w+\-.@])mailto:([\w+\-.]+)@([\w-]+(?:\.[\w-]+)+)/g,Dp],[/(?<![\w+\-.]|(?:^|[^\d@A-Za-z])(?:mailto|xmpp):)([\w+\-.]+)@([\w-]+(?:\.[\w-]+)+)/g,Ep]],{ignore:[`link`,`linkReference`]})}function Tp(e,t,n,r,i){if(!jp(i))return!1;let a=``;if(/^w/i.test(t)&&(n=t+n,t=``,a=`http://`),Cc(n.charCodeAt(0))||!kp(n))return!1;let o=Ap(n+r),s={type:`link`,title:null,url:a+t+o[0],children:[{type:`text`,value:t+o[0],position:void 0}],position:void 0};return o[1]?[s,{type:`text`,value:o[1],position:void 0}]:s}function Ep(e,t,n){return!/[\d\-_]$/.test(n)&&{type:`link`,title:null,url:`mailto:`+t+`@`+n,children:[{type:`text`,value:t+`@`+n,position:void 0}],position:void 0}}function Dp(e,t,n){if(/[\d\-_]$/.test(n))return!1;let r=`mailto:`+t+`@`+n;return{type:`link`,title:null,url:r,children:[{type:`text`,value:r,position:void 0}],position:void 0}}function Op(e,t,n,r,i){if(/[\d\-_]$/.test(n)||r&&(!/[A-Za-z]$/.test(r)||i.input.charAt(i.index+e.length)===`@`))return!1;let a=`xmpp:`+t+`@`+n+(r||``);return{type:`link`,title:null,url:a,children:[{type:`text`,value:a,position:void 0}],position:void 0}}function kp(e){let t=e.split(`.`);return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[\dA-Za-z]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[\dA-Za-z]/.test(t[t.length-2])))}function Ap(e){let t=e.length;for(;t>0;){let n=e.charCodeAt(t-1);if(n===33||n===34||n===38||n===39||n===41||n===44||n===46||n===58||n===59||n===60||n===62||n===63||n===93||n===125)t--;else break}if(t===e.length)return[e,void 0];let n=e.slice(t);e=e.slice(0,t);let r=n.indexOf(`)`),i=cp(e,`(`),a=cp(e,`)`);for(;r!==-1&&i>a;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(`)`),a++;return[e,n]}function jp(e){let t=e.input.charCodeAt(e.index-1);return e.index===0||wc(t)||Cc(t)}Vp.peek=Bp;function Mp(){this.buffer()}function Np(e){this.enter({type:`footnoteReference`,identifier:``,label:``},e)}function Pp(){this.buffer()}function Fp(e){this.enter({type:`footnoteDefinition`,identifier:``,label:``,children:[]},e)}function Ip(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=mc(this.sliceSerialize(e)).toLowerCase(),n.label=t}function Lp(e){this.exit(e)}function Rp(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=mc(this.sliceSerialize(e)).toLowerCase(),n.label=t}function zp(e){this.exit(e)}function Bp(){return`[`}function Vp(e,t,n,r){let i=n.createTracker(r),a=i.move(`[^`),o=n.enter(`footnoteReference`),s=n.enter(`reference`);return a+=i.move(n.safe(n.associationId(e),{after:`]`,before:a})),s(),o(),a+=i.move(`]`),a}function Hp(){return{enter:{gfmFootnoteCallString:Mp,gfmFootnoteCall:Np,gfmFootnoteDefinitionLabelString:Pp,gfmFootnoteDefinition:Fp},exit:{gfmFootnoteCallString:Ip,gfmFootnoteCall:Lp,gfmFootnoteDefinitionLabelString:Rp,gfmFootnoteDefinition:zp}}}function Up(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:Vp},unsafe:[{character:`[`,inConstruct:[`label`,`phrasing`,`reference`]}]};function n(e,n,r,i){let a=r.createTracker(i),o=a.move(`[^`),s=r.enter(`footnoteDefinition`),c=r.enter(`label`);return o+=a.move(r.safe(r.associationId(e),{before:o,after:`]`})),c(),o+=a.move(`]:`),e.children&&e.children.length>0&&(a.shift(4),o+=a.move((t?`
|
|
31
|
+
`:` `)+r.indentLines(r.containerFlow(e,a.current()),t?Gp:Wp))),s(),o}}function Wp(e,t,n){return t===0?e:Gp(e,t,n)}function Gp(e,t,n){return(n?``:` `)+e}var Kp=[`autolink`,`destinationLiteral`,`destinationRaw`,`reference`,`titleQuote`,`titleApostrophe`];Zp.attention=Qp,Zp.peek=$p;function qp(){return{canContainEols:[`delete`],enter:{strikethrough:Yp},exit:{strikethrough:Xp}}}function Jp(){return{handlers:{delete:Zp},unsafe:[{character:`~`,inConstruct:`phrasing`,notInConstruct:Kp}]}}function Yp(e){this.enter({type:`delete`,children:[],position:void 0},e)}function Xp(e){this.exit(e)}function Zp(e,t,n,r){let i=n.createTracker(r),a=n.stack.includes(`strikethrough`)?`~`:`~~`,o=n.enter(`strikethrough`),s=i.move(a);return s+=n.containerPhrasing(e,{...i.current(),before:s,after:`~`}),s+=i.move(a),o(),s}function Qp(){return{construct:`strikethrough`,markers:[`~`],sizes:[2,1]}}function $p(){return`~`}function em(e){return e.length}function tm(e,t){let n=t||{},r=(n.align||[]).concat(),i=n.stringLength||em,a=[],o=[],s=[],c=[],l=0,u=-1;for(;++u<e.length;){let t=[],r=[],a=-1;for(e[u].length>l&&(l=e[u].length);++a<e[u].length;){let o=nm(e[u][a]);if(n.alignDelimiters!==!1){let e=i(o);r[a]=e,(c[a]===void 0||e>c[a])&&(c[a]=e)}t.push(o)}o[u]=t,s[u]=r}let d=-1;if(typeof r==`object`&&`length`in r)for(;++d<l;)a[d]=rm(r[d]);else{let e=rm(r);for(;++d<l;)a[d]=e}d=-1;let f=[],p=[];for(;++d<l;){let e=a[d],t=``,r=``;e===99?(t=`:`,r=`:`):e===108?t=`:`:e===114&&(r=`:`);let i=n.alignDelimiters===!1?1:Math.max(1,c[d]-t.length-r.length),o=t+`-`.repeat(i)+r;n.alignDelimiters!==!1&&(i=t.length+i+r.length,i>c[d]&&(c[d]=i),p[d]=i),f[d]=o}o.splice(1,0,f),s.splice(1,0,p),u=-1;let m=[];for(;++u<o.length;){let e=o[u],t=s[u],r=n.fillRows===!1?Math.max(1,o[u===1?0:u].length):l;d=-1;let i=[];for(;++d<r;){let o=e[d]||``,s=``,l=``;if(n.alignDelimiters!==!1){let e=c[d]-(t[d]||0),n=a[d];if(n===114)s=` `.repeat(e);else if(n===99){let t=e/2;e%2?(s=` `.repeat(t+.5),l=` `.repeat(t-.5)):(s=` `.repeat(t),l=s)}else l=` `.repeat(e)}n.delimiterStart!==!1&&!d&&i.push(`|`),n.padding===!1||n.alignDelimiters===!1&&o===``||n.delimiterStart===!1&&!d||i.push(` `),n.alignDelimiters!==!1&&i.push(s),i.push(o),n.alignDelimiters!==!1&&i.push(l),n.padding!==!1&&i.push(` `),(n.delimiterEnd!==!1||d!==r-1)&&i.push(`|`)}m.push(n.delimiterEnd===!1?i.join(``).replace(/ +$/,``):i.join(``))}return m.join(`
|
|
32
|
+
`)}function nm(e){return e==null?``:String(e)}function rm(e){let t=typeof e==`string`?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}var im=Kd([`break`,`delete`,`emphasis`,`footnote`,`footnoteReference`,`image`,`imageReference`,`inlineCode`,`inlineMath`,`link`,`linkReference`,`mdxJsxTextElement`,`mdxTextExpression`,`strong`,`text`,`textDirective`]);function am(e,t,n,r){let i=n.enter(`blockquote`),a=n.createTracker(r);a.move(`> `),a.shift(2);let o=n.indentLines(n.containerFlow(e,a.current()),om);return i(),o}function om(e,t,n){return`>`+(n?``:` `)+e}function sm(e,t){return cm(e,t.inConstruct,!0)&&!cm(e,t.notInConstruct,!1)}function cm(e,t,n){if(typeof t==`string`&&(t=[t]),!t||t.length===0)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function lm(e,t,n,r){let i=-1;for(;++i<n.unsafe.length;){let e=n.unsafe[i];if(e.character===`
|
|
33
|
+
`&&!e.before&&!e.after&&sm(n.stack,e))return/[\t ]/.test(r.before)?``:` `}return`\\
|
|
34
|
+
`}function um(e,t){let n=String(e),r=n.indexOf(t),i=r,a=0,o=0;if(typeof t!=`string`)throw TypeError(`Expected substring`);for(;r!==-1;)r===i?++a>o&&(o=a):a=1,i=r+t.length,r=n.indexOf(t,i);return o}function dm(e,t){return!(t.options.fences!==!1||!e.value||e.lang||!/[^\n\r ]/.test(e.value)||/^[\t ]*(?:[\n\r]|$)|(?:^|[\n\r])[\t ]*$/.test(e.value))}function fm(e){let t=e.options.fence||"`";if(t!=="`"&&t!==`~`)throw Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function pm(e,t,n,r){let i=fm(n),a=e.value||``;if(dm(e,n)){let e=n.enter(`codeIndented`),t=n.indentLines(a,mm);return e(),t}let o=n.createTracker(r),s=i.repeat(Math.max(um(a,i)+1,3)),c=n.enter(`codeFenced`),l=i==="`"?`GraveAccent`:`Tilde`,u=o.move(s);if(e.lang){let t=n.enter(`codeFencedLang${l}`);u+=o.move(n.safe(e.lang,{before:u,after:` `,encode:["`"],...o.current()})),t()}if(e.lang&&e.meta){let t=n.enter(`codeFencedMeta${l}`);u+=o.move(` `),u+=o.move(n.safe(e.meta,{before:u,after:`
|
|
35
|
+
`,encode:["`"],...o.current()})),t()}return u+=o.move(`
|
|
36
|
+
`),a&&(u+=o.move(a+`
|
|
37
|
+
`)),u+=o.move(s),c(),u}function mm(e,t,n){return(n?``:` `)+e}function hm(e){let t=e.options.quote||`"`;if(t!==`"`&&t!==`'`)throw Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function gm(e,t,n,r){let i=hm(n),a=i===`"`?`Quote`:`Apostrophe`,o=n.enter(`definition`),s=n.enter(`label`),c=n.createTracker(r),l=c.move(`[`);return l+=c.move(n.safe(n.associationId(e),{before:l,after:`]`,...c.current()})),l+=c.move(`]: `),s(),!e.url||/^<|[\0- \u007F]/.test(e.url)?(s=n.enter(`destinationLiteral`),l+=c.move(`<`),l+=c.move(n.safe(e.url,{before:l,after:`>`,...c.current()})),l+=c.move(`>`)):(s=n.enter(`destinationRaw`),l+=c.move(n.safe(e.url,{before:l,after:e.title?` `:`
|
|
38
|
+
`,...c.current()}))),s(),e.title&&(s=n.enter(`title${a}`),l+=c.move(` `+i),l+=c.move(n.safe(e.title,{before:l,after:i,...c.current()})),l+=c.move(i),s()),o(),l}function _m(e){let t=e.options.emphasis||`*`;if(t!==`*`&&t!==`_`)throw Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function vm(e){let t=e.codePointAt(0);return t===void 0?``:String.fromCodePoint(t)}function ym(e){let t=e.codePointAt(e.length-2);return t!==void 0&&t>65535?e.slice(-2):e.slice(-1)}function bm(e){return`&#x`+e.toString(16).toUpperCase()+`;`}function xm(e,t,n){let r=Ic(e),i=Ic(t);return r===void 0?i===void 0?n===`_`?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:r===1?i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}function Sm(e){if(e.charCodeAt(0)!==60)return;let t=e.charCodeAt(1);if(t===33){let t=e.charCodeAt(2);return t===45?2:t===91?5:hc(t)?4:void 0}if(t===63)return 3;let n=t===47,r=n?2:1,i=r,a=e.charCodeAt(i);if(!hc(a))return;for(;a===45||gc(a);)a=e.charCodeAt(++i);let o=e.slice(r,i).toLowerCase();return!n&&a!==47&&Fl.includes(o)?1:Pl.includes(o)?6:7}var Cm=new Map([[`*`,!1],[`_`,!0]]);function wm(e,t,n){let r=new Set;for(let i of e){let e=n.get(i);if(e&&i.attention&&t.some(e=>e.attention===i.attention))for(let t of e.tokens)r.add(t.attention)}let i=[];for(let t of e)t.attention&&r.delete(t.attention)&&i.push(t.attention);return i.reverse(),i}function Tm(e,t,n){let r=[],i=new Map,a=new Map,o=0;for(;o<e.length;){if(!e[o].attention){o++;continue}let s=e[o].value.charAt(0),c=Cm.get(s),l=o+1;for(;l<e.length&&e[l].attention&&e[l].value.charAt(0)===s;)l++;let u=o?e[o-1].value:t,d=Ic(u.charCodeAt(u.length-1)),f=Ic((l<e.length?e[l].value:n).charCodeAt(0)),p=!f||f===2&&!!d,m=!d||d===2&&!!f,h={tokens:e.slice(o,l),markers:[],start:0,end:0,open:c?p&&(!!d||!m):p,close:c?m&&(!!f||!p):m,split:c!==void 0};for(let e of h.tokens){i.set(e,[...h.tokens]),a.set(e,h);let t=e.value.length;for(;t--;)h.markers.push(e)}h.end=h.markers.length,r.push(h),o=l}for(Om(r,i),o=-1;++o<e.length;){let t=i.get(e[o]);if(t)return{attention:wm(e,t,a),index:o}}}function Em(e,t){let n=e[t?0:e.length-1];if(!n||n.attention)return;let r=t?vm(n.value):ym(n.value),i=bm(r.codePointAt(0));if(t)n.value=i+n.value.slice(r.length);else{let e=n.value.slice(0,n.value.length-r.length),t=0;for(;e.charCodeAt(e.length-1-t)===92;)t++;t%2&&(e+=`\\`),n.value=e+i}}function Dm(e,t,n,r,i){for(let a of n.attention){let o=t.get(a)||a.sequences[0];for(let s of a.sequences){if(s===o)continue;let c=new Map(t);c.set(a,s);let l=Pm(e,c,r,i),u=Tm(l,r,i);if(!u||u.index>n.index)return{chosen:c,mistake:u,tokens:l}}}}function Om(e,t){let n=new Map;for(let r of e){let e=r.tokens[0].value.charAt(0),i=n.get(e);i||(i=[],n.set(e,i));let a=r.close?i.length:0;for(;a--&&r.start<r.end;){let e=i[a],n=e.end-e.start,o=r.end-r.start;if(r.split?(e.close||r.open)&&o%3&&!((n+o)%3):n!==e.markers.length||n!==o)continue;let s=r.split?n>1&&o>1?2:1:o,c=e.markers.slice(e.end-s,e.end),l=r.markers.slice(r.start,r.start+s),u=c[0],d=l[0];if(u===c[s-1]&&u.value.length===s&&d===l[s-1]&&d.value.length===s&&u.attention===d.attention)t.delete(u),t.delete(d);else{let e=[...new Set([...c,...l])];for(let n of e){let r=t.get(n);r&&r.push(...e)}}e.end-=s,r.start+=s,e.start===e.end&&i.splice(a,1),a=i.length}r.open&&r.start<r.end&&i.push(r)}}function km(e,t,n){if(t.length===0)throw Error("Cannot serialize `"+e+"` as attention without markers, expected one or more markers");if(n.length===0)throw Error("Cannot serialize `"+e+"` as attention without sizes, expected one or more sizes");for(let t of n)if(!Number.isSafeInteger(t)||t<1)throw Error("Cannot serialize `"+e+"` as attention with `"+t+"` as size, expected positive integer");let r=[];for(let i of t){if(i.length!==1)throw Error("Cannot serialize `"+e+"` as attention with `"+i+"` as marker, expected a single ascii character");if(!xc(i.charCodeAt(0)))throw Error("Cannot serialize `"+e+"` as attention with `"+i+"` as marker, expected ascii punctuation");for(let e of n)r.push(i.repeat(e))}return r}function Am(e,t,n){let r=t.indexStack,i=e.children||[],a=[],o=-1,s=n.before;r.push(-1);let c=t.createTracker(n);for(;++o<i.length;){let l=i[o],u;if(r[r.length-1]=o,o+1<i.length){let n=t.handle.handlers[i[o+1].type];n&&n.peek&&(n=n.peek),u=n?vm(n(i[o+1],e,t,{before:``,after:``,...c.current()})):``}else u=n.after;let d=a[a.length-1];typeof d==`string`&&(s===`\r`||s===`
|
|
39
|
+
`)&&l.type===`html`&&Sm(l.value)!==7&&(a[a.length-1]=d.replace(/(\r?\n|\r)$/,` `),s=` `,c=t.createTracker(n),c.move(Fm(a,n.before,n.after)));let f=t.handle.handlers[l.type];if(f&&f.attention){let e=jm(l,f.attention,t,c);if(!e)continue;a.push(e),s=ym(e.sequences[0])}else{let n=t.handle(l,e,t,{...c.current(),after:u,before:s});if(!n)continue;c.move(n),a.push(n),s=ym(n)}}return r.pop(),a}function jm(e,t,n,r){let{construct:i,markers:a,sizes:o}=t(e,n),s=km(e.type,a,o),c=s[0],l=n.enter(i),u=n.createTracker(r.current());u.move(c);let d=Am(e,n,{...u.current(),before:c,after:c});if(l(),d.length!==0)return r.move(c),r.move(Fm(d,c,c)),r.move(c),{children:d,sequences:s}}function Mm(e,t,n,r){let i=Pm(e,t,n,r),a=Tm(i,n,r);for(;a;){let o=Dm(e,t,a,n,r);if(!o)return;t=o.chosen,i=o.tokens,a=o.mistake}return i}function Nm(e,t,n,r){let i=n,a=-1;for(;++a<e.length;){let o=e[a];if(typeof o==`string`){i=``;continue}let s=a===e.length-1?r:``,c=o.sequences.find(function(t){let r=t.charAt(0);return r!==i.charAt(0)&&r!==s.charAt(0)||e.length===1&&Cm.has(r)&&t.length>n.length})||o.sequences[0];c!==o.sequences[0]&&t.set(o,c),Nm(o.children,t,c,c),i=c}}function Pm(e,t,n,r){let i=[],a,o=ym(n),s=-1;for(;++s<e.length;){let n=e[s];if(typeof n==`string`){let e={value:n,attention:void 0};a&&a===vm(n)&&Em([e],!0),a=void 0,i.push(e),e.value&&(o=ym(e.value));continue}let c=t.get(n)||n.sequences[0],l=c.charAt(0),u=e[s+1],d=o,f=vm(u===void 0?r:typeof u==`string`?u:t.get(u)||u.sequences[0]),p=Pm(n.children,t,c,c),m=p[0].value,h=xm(d.charCodeAt(d.length-1),m.charCodeAt(0),l);h.inside&&Em(p,!0);let g=ym(p[p.length-1].value),_=xm(f.charCodeAt(0),g.charCodeAt(g.length-1),l);_.inside&&Em(p,!1),h.outside&&d!==`
|
|
40
|
+
`&&d!==`\r`&&Em(i,!1),_.outside&&(a=f),i.push({value:c,attention:n},...p,{value:c,attention:n}),o=c.charAt(c.length-1)}return i}function Fm(e,t,n){let r=new Map;Nm(e,r,t,n);let i=(r.size>0?Mm(e,r,t,n):void 0)||Mm(e,new Map,t,n)||Pm(e,new Map,t,n),a=``;for(let e of i)a+=e.value;return a}Im.attention=Lm,Im.peek=Rm;function Im(e,t,n,r){let i=n.enter(`phrasing`),a=jm(e,Lm,n,n.createTracker(r)),o=a?Fm([a],r.before,r.after):``;return i(),o}function Lm(e,t){return{construct:`emphasis`,markers:_m(t)===`*`?[`*`,`_`]:[`_`,`*`],sizes:[1]}}function Rm(e,t,n){return n.options.emphasis||`*`}function zm(e,t){let n=!1;return af(e,function(e){if(`value`in e&&/\r?\n|\r/.test(e.value)||e.type===`break`)return n=!0,!1}),!!((!e.depth||e.depth<3)&&tc(e)&&(t.options.setext||n))}function Bm(e,t,n,r){let i=Math.max(Math.min(6,e.depth||1),1),a=n.createTracker(r);if(zm(e,n)){let t=n.enter(`headingSetext`),r=n.enter(`phrasing`),o=n.containerPhrasing(e,{...a.current(),before:`
|
|
41
|
+
`,after:`
|
|
42
|
+
`});return r(),t(),o+`
|
|
43
|
+
`+(i===1?`=`:`-`).repeat(o.length-(Math.max(o.lastIndexOf(`\r`),o.lastIndexOf(`
|
|
44
|
+
`))+1))}let o=`#`.repeat(i),s=n.enter(`headingAtx`),c=n.enter(`phrasing`);a.move(o+` `);let l=n.containerPhrasing(e,{before:`# `,after:`
|
|
45
|
+
`,...a.current()}),u=l.charCodeAt(0);return(u===9||u===32)&&(l=bm(u)+l.slice(1)),l=l?o+` `+l:o,n.options.closeAtx&&(l+=` `+o),c(),s(),l}Vm.peek=Hm;function Vm(e){return e.value||``}function Hm(){return`<`}Um.peek=Wm;function Um(e,t,n,r){let i=hm(n),a=i===`"`?`Quote`:`Apostrophe`,o=n.enter(`image`),s=n.enter(`label`),c=n.createTracker(r),l=c.move(`![`);return l+=c.move(n.safe(e.alt,{before:l,after:`]`,...c.current()})),l+=c.move(`](`),s(),!e.url&&e.title||/^<|[\0- \u007F]/.test(e.url)?(s=n.enter(`destinationLiteral`),l+=c.move(`<`),l+=c.move(n.safe(e.url,{before:l,after:`>`,...c.current()})),l+=c.move(`>`)):(s=n.enter(`destinationRaw`),l+=c.move(n.safe(e.url,{before:l,after:e.title?` `:`)`,...c.current()}))),s(),e.title&&(s=n.enter(`title${a}`),l+=c.move(` `+i),l+=c.move(n.safe(e.title,{before:l,after:i,...c.current()})),l+=c.move(i),s()),l+=c.move(`)`),o(),l}function Wm(){return`!`}Gm.peek=Km;function Gm(e,t,n,r){let i=e.referenceType,a=n.enter(`imageReference`),o=n.enter(`label`),s=n.createTracker(r),c=s.move(`![`),l=n.safe(e.alt,{before:c,after:`]`,...s.current()});c+=s.move(l+`][`),o();let u=n.stack;n.stack=u.filter(function(e){return e!==`phrasing`}),o=n.enter(`reference`);let d=n.safe(n.associationId(e),{before:c,after:`]`,...s.current()});return o(),n.stack=u,a(),i===`full`||!l||l!==d?c+=s.move(d+`]`):i===`shortcut`?c=c.slice(0,-1):c+=s.move(`]`),c}function Km(){return`!`}qm.peek=Jm;function qm(e,t,n){let r=e.value||``,i="`",a=-1;for(;RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^\n\r ]/.test(r)&&(/^[\n\r ]/.test(r)&&/[\n\r ]$/.test(r)||/^`|`$/.test(r))&&(r=` `+r+` `);++a<n.unsafe.length;){let e=n.unsafe[a],t=n.compilePattern(e);if(!e.atBreak)continue;let i;for(;i=t.exec(r);){let e=i.index;r.charCodeAt(e)===10&&r.charCodeAt(e-1)===13&&e--,r=r.slice(0,e)+` `+r.slice(i.index+1)}}return i+r+i}function Jm(){return"`"}function Ym(e,t){let n=tc(e);return!(t.options.resourceLink||!e.url||e.title||!e.children||e.children.length!==1||e.children[0].type!==`text`||n!==e.url&&`mailto:`+n!==e.url||!/^[a-z][+\-.a-z]+:/i.test(e.url)||/[\0- <>\u007F]/.test(e.url))}Xm.peek=Zm;function Xm(e,t,n,r){let i=hm(n),a=i===`"`?`Quote`:`Apostrophe`,o=n.createTracker(r);if(Ym(e,n)){let t=n.stack;n.stack=t.filter(function(e){return e!==`phrasing`});let r=n.enter(`autolink`),i=o.move(`<`);return i+=o.move(n.containerPhrasing(e,{before:i,after:`>`,...o.current()})),i+=o.move(`>`),r(),n.stack=t,i}let s=n.enter(`link`),c=n.enter(`label`),l=o.move(`[`),u=n.containerPhrasing(e,{before:l,after:`](`,...o.current()});l+=o.move(u),c(),l+=o.move(`](`);let d=/^<|[\0- \u007F]/.test(e.url),f=r.before.charAt(r.before.length-1),p=e.title||void 0;if(!p&&!d&&(f===`
|
|
46
|
+
`||f===`\r`)){let e=0;for(;e<u.length&&u.charCodeAt(e)!==93;)e+=u.charCodeAt(e)===92?2:1;u.charCodeAt(e+1)===58&&(p=``)}return!e.url&&typeof p==`string`||d?(c=n.enter(`destinationLiteral`),l+=o.move(`<`),l+=o.move(n.safe(e.url,{before:l,after:`>`,...o.current()})),l+=o.move(`>`)):(c=n.enter(`destinationRaw`),l+=o.move(n.safe(e.url,{before:l,after:typeof p==`string`?` `:`)`,...o.current()}))),c(),typeof p==`string`&&(c=n.enter(`title${a}`),l+=o.move(` `+i),l+=o.move(n.safe(p,{before:l,after:i,...o.current()})),l+=o.move(i),c()),l+=o.move(`)`),s(),l}function Zm(e,t,n){return Ym(e,n)?`<`:`[`}Qm.peek=$m;function Qm(e,t,n,r){let i=e.referenceType,a=n.enter(`linkReference`),o=n.enter(`label`),s=n.createTracker(r),c=s.move(`[`),l=n.containerPhrasing(e,{before:c,after:`]`,...s.current()});c+=s.move(l+`][`),o();let u=n.stack;n.stack=u.filter(function(e){return e!==`phrasing`}),o=n.enter(`reference`);let d=n.safe(n.associationId(e),{before:c,after:`]`,...s.current()});return o(),n.stack=u,a(),i===`full`||!l||l!==d?c+=s.move(d+`]`):i===`shortcut`?c=c.slice(0,-1):c+=s.move(`]`),c}function $m(){return`[`}function eh(e){let t=e.options.bullet||`*`;if(t!==`*`&&t!==`+`&&t!==`-`)throw Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function th(e){let t=eh(e),n=e.options.bulletOther;if(!n)return t===`*`?`-`:`*`;if(n!==`*`&&n!==`+`&&n!==`-`)throw Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function nh(e){let t=e.options.bulletOrdered||`.`;if(t!==`.`&&t!==`)`)throw Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function rh(e){let t=e.options.rule||`*`;if(t!==`*`&&t!==`-`&&t!==`_`)throw Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function ih(e,t,n,r){let i=n.enter(`list`),a=n.bulletCurrent,o=e.ordered?nh(n):eh(n),s=e.ordered?o===`.`?`)`:`.`:th(n),c=t&&n.bulletLastUsed?o===n.bulletLastUsed:!1;if(!e.ordered){let t=e.children?e.children[0]:void 0;if(o!==`*`&&o!==`-`||!t||t.children&&t.children[0]||n.stack[n.stack.length-1]!==`list`||n.stack[n.stack.length-2]!==`listItem`||n.stack[n.stack.length-3]!==`list`||n.stack[n.stack.length-4]!==`listItem`||n.indexStack[n.indexStack.length-1]!==0||n.indexStack[n.indexStack.length-2]!==0||n.indexStack[n.indexStack.length-3]!==0||(c=!0),rh(n)===o&&t){let t=-1;for(;++t<e.children.length;){let n=e.children[t];if(n&&n.type===`listItem`&&n.children&&n.children[0]&&n.children[0].type===`thematicBreak`){c=!0;break}}}}c&&(o=s),n.bulletCurrent=o;let l=n.containerFlow(e,r);return n.bulletLastUsed=o,n.bulletCurrent=a,i(),l}function ah(e){let t=e.options.listItemIndent||`one`;if(t!==`tab`&&t!==`one`&&t!==`mixed`)throw Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function oh(e,t,n,r){let i=ah(n),a=n.bulletCurrent||eh(n);t&&t.type===`list`&&t.ordered&&(a=(typeof t.start==`number`&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+a);let o=a.length+1;(i===`tab`||i===`mixed`&&(t&&t.type===`list`&&t.spread||e.spread))&&(o=Math.ceil(o/4)*4);let s=n.createTracker(r);s.move(a+` `.repeat(o-a.length)),s.shift(o);let c=n.enter(`listItem`),l=n.indentLines(n.containerFlow(e,s.current()),u);return c(),l;function u(e,t,n){return t?(n?``:` `.repeat(o))+e:(n?a:a+` `.repeat(o-a.length))+e}}function sh(e,t,n,r){let i=n.enter(`paragraph`),a=n.enter(`phrasing`),o=n.containerPhrasing(e,r);return a(),i(),o}function ch(e,t,n,r){if(!e.children.some(function(e){return im(e)}))return n.containerFlow(e,r);let i=n.enter(`phrasing`),a=n.containerPhrasing(e,r);return i(),a}function lh(e){let t=e.options.strong||`*`;if(t!==`*`&&t!==`_`)throw Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}uh.attention=dh,uh.peek=fh;function uh(e,t,n,r){let i=n.enter(`phrasing`),a=jm(e,dh,n,n.createTracker(r)),o=a?Fm([a],r.before,r.after):``;return i(),o}function dh(e,t){return{construct:`strong`,markers:lh(t)===`*`?[`*`,`_`]:[`_`,`*`],sizes:[2]}}function fh(e,t,n){return n.options.strong||`*`}function ph(e,t,n,r){let i=t?t.children:[],a=n.indexStack[n.indexStack.length-1];return n.safe(e.value,{...r,afterNode:i[a+1],beforeNode:i[a-1]})}function mh(e){let t=e.options.ruleRepetition||3;if(t<3)throw Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function hh(e,t,n){let r=(rh(n)+(n.options.ruleSpaces?` `:``)).repeat(mh(n));return n.options.ruleSpaces?r.slice(0,-1):r}var gh={blockquote:am,break:lm,code:pm,definition:gm,emphasis:Im,hardBreak:lm,heading:Bm,html:Vm,image:Um,imageReference:Gm,inlineCode:qm,link:Xm,linkReference:Qm,list:ih,listItem:oh,paragraph:sh,root:ch,strong:uh,text:ph,thematicBreak:hh};function _h(){return{enter:{table:vh,tableData:Sh,tableHeader:Sh,tableRow:bh},exit:{codeText:Ch,table:yh,tableData:xh,tableHeader:xh,tableRow:xh}}}function vh(e){let t=e._align;this.enter({type:`table`,align:t.map(function(e){return e===`none`?null:e}),children:[],position:void 0},e),this.data.inTable=!0}function yh(e){this.exit(e),this.data.inTable=void 0}function bh(e){this.enter({type:`tableRow`,children:[],position:void 0},e)}function xh(e){this.exit(e)}function Sh(e){this.enter({type:`tableCell`,children:[],position:void 0},e)}function Ch(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,wh));let n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function wh(e,t){return t===`|`?t:e}function Th(e){let{tableCellPadding:t,tablePipeAlign:n,stringLength:r}=e||{},i=t?` `:`|`;return{handlers:{inlineCode:d,table:a,tableCell:s,tableRow:o},join:[Eh],unsafe:[{character:`\r`,inConstruct:`tableCell`},{character:`
|
|
47
|
+
`,inConstruct:`tableCell`},{atBreak:!0,character:`|`,after:`[ :-]`},{character:`|`,inConstruct:`tableCell`},{atBreak:!0,character:`:`,after:`-`},{atBreak:!0,character:`-`,after:`[:|-]`}]};function a(e,t,n,r){let i=l(e,n,r),a=i[0];if(a){let t=e.align?e.align.length:0,n=-1;if(!t)for(;++n<i.length;)i[n].length>t&&(t=i[n].length);for(;a.length<t;)a.push(``)}return c(i,e.align)}function o(e,t,n,r){let i=c([u(e,n,r)]);return i.slice(0,i.indexOf(`
|
|
48
|
+
`))}function s(e,t,n,r){let a=n.enter(`tableCell`),o=n.enter(`phrasing`),s=n.containerPhrasing(e,{...r,before:i,after:i});return o(),a(),s}function c(e,i){return tm(e,{align:i,alignDelimiters:n,fillRows:!1,padding:t,stringLength:r})}function l(e,t,n){let{children:r}=e,i=-1,a=[],o=t.enter(`table`);for(;++i<r.length;)a[i]=u(r[i],t,n);return o(),a}function u(e,t,n){let{children:r}=e,i=-1,a=[],o=t.enter(`tableRow`);for(;++i<r.length;)a[i]=s(r[i],e,t,n);return o(),a}function d(e,t,n){let r=gh.inlineCode(e,t,n);if(!n.stack.includes(`tableCell`))return r;let i=[],a=0,o=r.indexOf(`|`);for(;o!==-1;){let e=o;for(;e>a&&r.charCodeAt(e-1)===92;)e--;i.push(r.slice(a,o)),(o-e)%2==0&&i.push(`\\`),a=o,o=r.indexOf(`|`,o+1)}return i.push(r.slice(a)),i.join(``)}}function Eh(e,t,n,r){if(e.type===`table`&&n.type===`listItem`&&n.spread===!1&&(t.type===`definition`||t.type===`heading`&&Dh(t,r)||t.type===`paragraph`||t.type===`table`))return 1}function Dh(e,t){let n=!1;return af(e,function(e){if(e.type===`break`||`value`in e&&/\r?\n|\r/.test(e.value))return n=!0,!1}),!!((!e.depth||e.depth<3)&&tc(e)&&(t.options.setext||n))}function Oh(){return{exit:{taskListCheckValueChecked:Ah,taskListCheckValueUnchecked:Ah,paragraph:jh}}}function kh(){return{handlers:{paragraph:Mh},join:[Nh]}}function Ah(e){let t=this.stack[this.stack.length-2];t.type,t.checked=e.type===`taskListCheckValueChecked`}function jh(e){let t=this.stack[this.stack.length-2];if(t&&t.type===`listItem`&&typeof t.checked==`boolean`){let e=this.stack[this.stack.length-1];e.type;let n=e.children[0];if(n&&n.type===`text`){let r=t.children,i=-1,a;for(;++i<r.length;){let e=r[i];if(e.type===`paragraph`){a=e;break}}a===e&&(n.value=n.value.slice(1),n.value.length===0?e.children.shift():e.position&&n.position&&typeof n.position.start.offset==`number`&&(n.position.start.column++,n.position.start.offset++,e.position.start={...n.position.start}))}}this.exit(e)}function Mh(e,t,n,r){if(!t||t.type!==`listItem`||Ph(t)!==e)return gh.paragraph(e,t,n,r);let i=`[`+(t.checked?`x`:` `)+`] `,a=n.createTracker(r);return a.move(i),i+gh.paragraph(e.children.length>0?e:{type:`paragraph`,children:[{type:`text`,value:` `}]},t,n,{...r,...a.current()})}function Nh(e,t,n){if(e.type!==`definition`||n.type!==`listItem`)return;let r=Ph(n);if(r&&n.children.indexOf(e)<n.children.indexOf(r))return 0}function Ph(e){if(typeof e.checked==`boolean`)for(let t of e.children){if(t.type===`paragraph`)return t;if(t.type!==`definition`)return}}function Fh(){return[gp(),Hp(),qp(),_h(),Oh()]}function Ih(e){return{extensions:[_p(),Up(e),Jp(),Th(e),kh()]}}var Lh={tokenize:Zh,partial:!0},Rh={tokenize:Qh,partial:!0},zh={tokenize:$h,partial:!0},Bh={tokenize:eg,partial:!0},Vh={tokenize:tg,partial:!0},Hh={name:`wwwAutolink`,tokenize:Yh,previous:ng},Uh={name:`protocolAutolink`,tokenize:Xh,previous:rg},Wh={name:`emailAutolink`,tokenize:Jh,previous:ig},Gh={};function Kh(){return{text:Gh}}for(var qh=48;qh<123;)Gh[qh]=Wh,qh++,qh===58?qh=65:qh===91&&(qh=97);Gh[43]=Wh,Gh[45]=Wh,Gh[46]=Wh,Gh[95]=Wh,Gh[72]=[Wh,Uh],Gh[104]=[Wh,Uh],Gh[87]=[Wh,Hh],Gh[119]=[Wh,Hh];function Jh(e,t,n){let r=this,i,a;return o;function o(t){return!ag(t)||!ig.call(r,r.previous)||og(r.events)?n(t):(e.enter(`literalAutolink`),e.enter(`literalAutolinkEmail`),s(t))}function s(t){return ag(t)?(e.consume(t),s):t===64?(e.consume(t),c):n(t)}function c(t){return t===46?e.check(Vh,u,l)(t):t===45||t===95||gc(t)?(a=!0,e.consume(t),c):u(t)}function l(t){return e.consume(t),i=!0,c}function u(o){return a&&i&&hc(r.previous)?(e.exit(`literalAutolinkEmail`),e.exit(`literalAutolink`),t(o)):n(o)}}function Yh(e,t,n){let r=this;return i;function i(t){return t!==87&&t!==119||!ng.call(r,r.previous)||og(r.events)?n(t):(e.enter(`literalAutolink`),e.enter(`literalAutolinkWww`),e.check(Lh,e.attempt(Rh,e.attempt(zh,a),n),n)(t))}function a(n){return e.exit(`literalAutolinkWww`),e.exit(`literalAutolink`),t(n)}}function Xh(e,t,n){let r=this,i=``,a=!1;return o;function o(t){return(t===72||t===104)&&rg.call(r,r.previous)&&!og(r.events)?(e.enter(`literalAutolink`),e.enter(`literalAutolinkHttp`),i+=String.fromCodePoint(t),e.consume(t),s):n(t)}function s(t){if(hc(t)&&i.length<5)return i+=String.fromCodePoint(t),e.consume(t),s;if(t===58){let n=i.toLowerCase();if(n===`http`||n===`https`)return e.consume(t),c}return n(t)}function c(t){return t===47?(e.consume(t),a?l:(a=!0,c)):n(t)}function l(t){return t===null||vc(t)||Sc(t)||wc(t)||Cc(t)?n(t):e.attempt(Rh,e.attempt(zh,u),n)(t)}function u(n){return e.exit(`literalAutolinkHttp`),e.exit(`literalAutolink`),t(n)}}function Zh(e,t,n){let r=0;return i;function i(t){return(t===87||t===119)&&r<3?(r++,e.consume(t),i):t===46&&r===3?(e.consume(t),a):n(t)}function a(e){return e===null?n(e):t(e)}}function Qh(e,t,n){let r,i,a;return o;function o(t){return t===46||t===95?e.check(Bh,c,s)(t):t===null||Sc(t)||wc(t)||t!==45&&Cc(t)?c(t):(a=!0,e.consume(t),o)}function s(t){return t===95?r=!0:(i=r,r=void 0),e.consume(t),o}function c(e){return i||r||!a?n(e):t(e)}}function $h(e,t){let n=0,r=0;return i;function i(o){return o===40?(n++,e.consume(o),i):o===41&&r<n?a(o):o===33||o===34||o===38||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===60||o===63||o===93||o===95||o===126?e.check(Bh,t,a)(o):o===null||Sc(o)||wc(o)?t(o):(e.consume(o),i)}function a(t){return t===41&&r++,e.consume(t),i}}function eg(e,t,n){return r;function r(o){return o===33||o===34||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===63||o===95||o===126?(e.consume(o),r):o===38?(e.consume(o),a):o===93?(e.consume(o),i):o===60||o===null||Sc(o)||wc(o)?t(o):n(o)}function i(e){return e===null||e===40||e===91||Sc(e)||wc(e)?t(e):r(e)}function a(e){return hc(e)?o(e):n(e)}function o(t){return t===59?(e.consume(t),r):hc(t)?(e.consume(t),o):n(t)}}function tg(e,t,n){return r;function r(t){return e.consume(t),i}function i(e){return gc(e)?n(e):t(e)}}function ng(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||Sc(e)}function rg(e){return!hc(e)}function ig(e){return!(e===47||ag(e))}function ag(e){return e===43||e===45||e===46||e===95||gc(e)}function og(e){let t=e.length,n=!1;for(;t--;){let r=e[t][1];if((r.type===`labelLink`||r.type===`labelImage`)&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}var sg={tokenize:hg,partial:!0};function cg(){return{document:{91:{name:`gfmFootnoteDefinition`,tokenize:fg,continuation:{tokenize:pg},exit:mg}},text:{91:{name:`gfmFootnoteCall`,tokenize:dg},93:{name:`gfmPotentialFootnoteCall`,add:`after`,tokenize:lg,resolveTo:ug}}}}function lg(e,t,n){let r=this,i=r.events.length,a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),o;for(;i--;){let e=r.events[i][1];if(e.type===`labelImage`){o=e;break}if(e.type===`gfmFootnoteCall`||e.type===`labelLink`||e.type===`label`||e.type===`image`||e.type===`link`)break}return s;function s(i){if(!o||!o._balanced)return n(i);let s=mc(r.sliceSerialize({start:o.end,end:r.now()}));return s.codePointAt(0)!==94||!a.includes(s.slice(1))?n(i):(e.enter(`gfmFootnoteCallLabelMarker`),e.consume(i),e.exit(`gfmFootnoteCallLabelMarker`),t(i))}}function ug(e,t){let n=e.length;for(;n--;)if(e[n][1].type===`labelImage`&&e[n][0]===`enter`){e[n][1];break}e[n+1][1].type=`data`,e[n+3][1].type=`gfmFootnoteCallLabelMarker`;let r={type:`gfmFootnoteCall`,start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:`gfmFootnoteCallMarker`,start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;let a={type:`gfmFootnoteCallString`,start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},o={type:`chunkString`,contentType:`string`,start:Object.assign({},a.start),end:Object.assign({},a.end)},s=[e[n+1],e[n+2],[`enter`,r,t],e[n+3],e[n+4],[`enter`,i,t],[`exit`,i,t],[`enter`,a,t],[`enter`,o,t],[`exit`,o,t],[`exit`,a,t],e[e.length-2],e[e.length-1],[`exit`,r,t]];return e.splice(n,e.length-n+1,...s),e}function dg(e,t,n){let r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),a=0,o;return s;function s(t){return e.enter(`gfmFootnoteCall`),e.enter(`gfmFootnoteCallLabelMarker`),e.consume(t),e.exit(`gfmFootnoteCallLabelMarker`),c}function c(t){return t===94?(e.enter(`gfmFootnoteCallMarker`),e.consume(t),e.exit(`gfmFootnoteCallMarker`),e.enter(`gfmFootnoteCallString`),e.enter(`chunkString`).contentType=`string`,l):n(t)}function l(s){if(a>999||s===93&&!o||s===null||s===91||Sc(s))return n(s);if(s===93){e.exit(`chunkString`);let a=e.exit(`gfmFootnoteCallString`);return i.includes(mc(r.sliceSerialize(a)))?(e.enter(`gfmFootnoteCallLabelMarker`),e.consume(s),e.exit(`gfmFootnoteCallLabelMarker`),e.exit(`gfmFootnoteCall`),t):n(s)}return Sc(s)||(o=!0),a++,e.consume(s),s===92?u:l}function u(t){return t===91||t===92||t===93?(e.consume(t),a++,l):l(t)}}function fg(e,t,n){let r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),a,o=0,s;return c;function c(t){return e.enter(`gfmFootnoteDefinition`)._container=!0,e.enter(`gfmFootnoteDefinitionLabel`),e.enter(`gfmFootnoteDefinitionLabelMarker`),e.consume(t),e.exit(`gfmFootnoteDefinitionLabelMarker`),l}function l(t){return t===94?(e.enter(`gfmFootnoteDefinitionMarker`),e.consume(t),e.exit(`gfmFootnoteDefinitionMarker`),e.enter(`gfmFootnoteDefinitionLabelString`),e.enter(`chunkString`).contentType=`string`,u):n(t)}function u(t){if(o>999||t===93&&!s||t===null||t===91||Sc(t))return n(t);if(t===93){e.exit(`chunkString`);let n=e.exit(`gfmFootnoteDefinitionLabelString`);return a=mc(r.sliceSerialize(n)),e.enter(`gfmFootnoteDefinitionLabelMarker`),e.consume(t),e.exit(`gfmFootnoteDefinitionLabelMarker`),e.exit(`gfmFootnoteDefinitionLabel`),f}return Sc(t)||(s=!0),o++,e.consume(t),t===92?d:u}function d(t){return t===91||t===92||t===93?(e.consume(t),o++,u):u(t)}function f(t){return t===58?(e.enter(`definitionMarker`),e.consume(t),e.exit(`definitionMarker`),i.includes(a)||i.push(a),J(e,p,`gfmFootnoteDefinitionWhitespace`)):n(t)}function p(e){return t(e)}}function pg(e,t,n){return e.check(Wc,t,e.attempt(sg,t,n))}function mg(e){e.exit(`gfmFootnoteDefinition`)}function hg(e,t,n){let r=this;return J(e,i,`gfmFootnoteDefinitionIndent`,5);function i(e){let i=r.events[r.events.length-1];return i&&i[1].type===`gfmFootnoteDefinitionIndent`&&i[2].sliceSerialize(i[1],!0).length===4?t(e):n(e)}}function gg(e){let t=(e||{}).singleTilde,n={name:`strikethrough`,tokenize:i,resolveAll:r};return t??=!0,{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}};function r(e,t){let n=-1;for(;++n<e.length;)if(e[n][0]===`enter`&&e[n][1].type===`strikethroughSequenceTemporary`&&e[n][1]._close){let r=n;for(;r--;)if(e[r][0]===`exit`&&e[r][1].type===`strikethroughSequenceTemporary`&&e[r][1]._open&&e[n][1].end.offset-e[n][1].start.offset===e[r][1].end.offset-e[r][1].start.offset){e[n][1].type=`strikethroughSequence`,e[r][1].type=`strikethroughSequence`;let i={type:`strikethrough`,start:Object.assign({},e[r][1].start),end:Object.assign({},e[n][1].end)},a={type:`strikethroughText`,start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},o=[[`enter`,i,t],[`enter`,e[r][1],t],[`exit`,e[r][1],t],[`enter`,a,t]],s=t.parser.constructs.insideSpan.null;s&&sc(o,o.length,0,Lc(s,e.slice(r+1,n),t)),sc(o,o.length,0,[[`exit`,a,t],[`enter`,e[n][1],t],[`exit`,e[n][1],t],[`exit`,i,t]]),sc(e,r-1,n-r+3,o),n=r+o.length-2;break}}for(n=-1;++n<e.length;)e[n][1].type===`strikethroughSequenceTemporary`&&(e[n][1].type=`data`);return e}function i(e,n,r){let i=this.previous,a=this.events,o=0;return s;function s(t){return i===126&&a[a.length-1][1].type!==`characterEscape`?r(t):(e.enter(`strikethroughSequenceTemporary`),c(t))}function c(a){let s=Ic(i);if(a===126)return o>1?r(a):(e.consume(a),o++,c);if(o<2&&!t)return r(a);let l=e.exit(`strikethroughSequenceTemporary`),u=Ic(a);return l._open=!u||u===2&&!!s,l._close=!s||s===2&&!!u,n(a)}}}var _g=class{constructor(){this.map=[],this.index=new Map}add(e,t,n){vg(this,e,t,n)}consume(e){if(this.map.sort(function(e,t){return e[0]-t[0]}),this.map.length===0)return;let t=this.map.length,n=[];for(;t>0;)--t,n.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),e.length=this.map[t][0];n.push(e.slice()),e.length=0;let r=n.pop();for(;r;){for(let t of r)e.push(t);r=n.pop()}this.map.length=0,this.index.clear()}};function vg(e,t,n,r){if(n===0&&r.length===0)return;let i=e.index.get(t);if(i){i[1]+=n,i[2].push(...r);return}let a=[t,n,r];e.map.push(a),e.index.set(t,a)}function yg(e,t){let n=!1,r=[];for(;t<e.length;){let i=e[t];if(n){if(i[0]===`enter`)i[1].type===`tableContent`&&r.push(e[t+1][1].type===`tableDelimiterMarker`?`left`:`none`);else if(i[1].type===`tableContent`){if(e[t-1][1].type===`tableDelimiterMarker`){let e=r.length-1;r[e]=r[e]===`left`?`center`:`right`}}else if(i[1].type===`tableDelimiterRow`)break}else i[0]===`enter`&&i[1].type===`tableDelimiterRow`&&(n=!0);t+=1}return r}function bg(){return{flow:{null:{name:`table`,tokenize:xg,resolveAll:Sg}}}}function xg(e,t,n){let r=this,i=0,a=0,o;return s;function s(e){let t=r.events.length-1;for(;t>-1;){let{type:e}=r.events[t][1];if(e===`lineEnding`||e===`linePrefix`)t--;else break}let i=t>-1?r.events[t][1].type:null,a=i===`tableHead`||i===`tableRow`?S:c;return a===S&&r.parser.lazy[r.now().line]?n(e):a(e)}function c(t){return e.enter(`tableHead`),e.enter(`tableRow`),l(t)}function l(e){return e===124||(o=!0,a+=1),u(e)}function u(t){return t===null?n(t):K(t)?a>1?(a=0,r.interrupt=!0,e.exit(`tableRow`),e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),p):n(t):q(t)?J(e,u,`whitespace`)(t):(a+=1,o&&(o=!1,i+=1),t===124?(e.enter(`tableCellDivider`),e.consume(t),e.exit(`tableCellDivider`),o=!0,u):(e.enter(`data`),d(t)))}function d(t){return t===null||t===124||Sc(t)?(e.exit(`data`),u(t)):(e.consume(t),t===92?f:d)}function f(t){return t===92||t===124?(e.consume(t),d):d(t)}function p(t){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(t):(e.enter(`tableDelimiterRow`),o=!1,q(t)?J(e,m,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):m(t))}function m(t){return t===45||t===58?g(t):t===124?(o=!0,e.enter(`tableCellDivider`),e.consume(t),e.exit(`tableCellDivider`),h):x(t)}function h(t){return q(t)?J(e,g,`whitespace`)(t):g(t)}function g(t){return t===58?(a+=1,o=!0,e.enter(`tableDelimiterMarker`),e.consume(t),e.exit(`tableDelimiterMarker`),_):t===45?(a+=1,_(t)):t===null||K(t)?b(t):x(t)}function _(t){return t===45?(e.enter(`tableDelimiterFiller`),v(t)):x(t)}function v(t){return t===45?(e.consume(t),v):t===58?(o=!0,e.exit(`tableDelimiterFiller`),e.enter(`tableDelimiterMarker`),e.consume(t),e.exit(`tableDelimiterMarker`),y):(e.exit(`tableDelimiterFiller`),y(t))}function y(t){return q(t)?J(e,b,`whitespace`)(t):b(t)}function b(n){return n===124?m(n):n===null||K(n)?!o||i!==a?x(n):(e.exit(`tableDelimiterRow`),e.exit(`tableHead`),t(n)):x(n)}function x(e){return n(e)}function S(t){return e.enter(`tableRow`),C(t)}function C(n){return n===124?(e.enter(`tableCellDivider`),e.consume(n),e.exit(`tableCellDivider`),C):n===null||K(n)?(e.exit(`tableRow`),t(n)):q(n)?J(e,C,`whitespace`)(n):(e.enter(`data`),w(n))}function w(t){return t===null||t===124||Sc(t)?(e.exit(`data`),C(t)):(e.consume(t),t===92?T:w)}function T(t){return t===92||t===124?(e.consume(t),w):w(t)}}function Sg(e,t){let n=-1,r=!0,i=0,a=[0,0,0,0],o=[0,0,0,0],s=!1,c=0,l,u,d,f=new _g;for(;++n<e.length;){let p=e[n],m=p[1];p[0]===`enter`?m.type===`tableHead`?(s=!1,c!==0&&(wg(f,t,c,l,u),u=void 0,c=0),l={type:`table`,start:Object.assign({},m.start),end:Object.assign({},m.end)},f.add(n,0,[[`enter`,l,t]])):m.type===`tableRow`||m.type===`tableDelimiterRow`?(r=!0,d=void 0,a=[0,0,0,0],o=[0,n+1,0,0],s&&(s=!1,u={type:`tableBody`,start:Object.assign({},m.start),end:Object.assign({},m.end)},f.add(n,0,[[`enter`,u,t]])),i=m.type===`tableDelimiterRow`?2:u?3:1):i&&(m.type===`data`||m.type===`tableDelimiterMarker`||m.type===`tableDelimiterFiller`)?(r=!1,o[2]===0&&(a[1]!==0&&(o[0]=o[1],d=Cg(f,t,a,i,void 0,d),a=[0,0,0,0]),o[2]=n)):m.type===`tableCellDivider`&&(r?r=!1:(a[1]!==0&&(o[0]=o[1],d=Cg(f,t,a,i,void 0,d)),a=o,o=[a[1],n,0,0])):m.type===`tableHead`?(s=!0,c=n):m.type===`tableRow`||m.type===`tableDelimiterRow`?(c=n,a[1]===0?o[1]!==0&&(d=Cg(f,t,o,i,n,d)):(o[0]=o[1],d=Cg(f,t,a,i,n,d)),i=0):i&&(m.type===`data`||m.type===`tableDelimiterMarker`||m.type===`tableDelimiterFiller`)&&(o[3]=n)}for(c!==0&&wg(f,t,c,l,u),f.consume(t.events),n=-1;++n<t.events.length;){let e=t.events[n];e[0]===`enter`&&e[1].type===`table`&&(e[1]._align=yg(t.events,n))}return e}function Cg(e,t,n,r,i,a){let o=r===1?`tableHeader`:r===2?`tableDelimiter`:`tableData`;n[0]!==0&&(a.end=Object.assign({},Tg(t.events,n[0])),e.add(n[0],0,[[`exit`,a,t]]));let s=Tg(t.events,n[1]);if(a={type:o,start:Object.assign({},s),end:Object.assign({},s)},e.add(n[1],0,[[`enter`,a,t]]),n[2]!==0){let i=Tg(t.events,n[2]),a=Tg(t.events,n[3]),o={type:`tableContent`,start:Object.assign({},i),end:Object.assign({},a)};if(e.add(n[2],0,[[`enter`,o,t]]),r!==2){let r=t.events[n[2]],i=t.events[n[3]];if(r[1].end=Object.assign({},i[1].end),r[1].type=`chunkText`,r[1].contentType=`text`,n[3]>n[2]+1){let t=n[2]+1,r=n[3]-n[2]-1;e.add(t,r,[])}}e.add(n[3]+1,0,[[`exit`,o,t]])}return i!==void 0&&(a.end=Object.assign({},Tg(t.events,i)),e.add(i,0,[[`exit`,a,t]]),a=void 0),a}function wg(e,t,n,r,i){let a=[],o=Tg(t.events,n);i&&(i.end=Object.assign({},o),a.push([`exit`,i,t])),r.end=Object.assign({},o),a.push([`exit`,r,t]),e.add(n+1,0,a)}function Tg(e,t){let n=e[t],r=n[0]===`enter`?`start`:`end`;return n[1][r]}var Eg={name:`tasklistCheck`,tokenize:Og};function Dg(){return{text:{91:Eg}}}function Og(e,t,n){let r=this;return i;function i(t){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(t):(e.enter(`taskListCheck`),e.enter(`taskListCheckMarker`),e.consume(t),e.exit(`taskListCheckMarker`),a)}function a(t){return Sc(t)?(e.enter(`taskListCheckValueUnchecked`),e.consume(t),e.exit(`taskListCheckValueUnchecked`),o):t===88||t===120?(e.enter(`taskListCheckValueChecked`),e.consume(t),e.exit(`taskListCheckValueChecked`),o):n(t)}function o(t){return t===93?(e.enter(`taskListCheckMarker`),e.consume(t),e.exit(`taskListCheckMarker`),e.exit(`taskListCheck`),s):n(t)}function s(r){return K(r)?t(r):q(r)?e.check({tokenize:kg},t,n)(r):n(r)}}function kg(e,t,n){return J(e,r,`whitespace`);function r(e){return e===null?n(e):t(e)}}function Ag(e){return uc([Kh(),cg(),gg(e),bg(),Dg()])}var jg={};function Mg(e){let t=this,n=e||jg,r=t.data(),i=r.micromarkExtensions||=[],a=r.fromMarkdownExtensions||=[],o=r.toMarkdownExtensions||=[];i.push(Ag(n)),a.push(Fh()),o.push(Ih(n))}var Ng=/\blanguage-suggestion\b/,Pg=(0,f.memo)(function({text:e,suggestionActions:t}){let n=(0,f.useMemo)(()=>t?wn(e):[],[e,t]);return(0,_.jsx)(`div`,{className:`markdown`,children:(0,_.jsx)(rp,{remarkPlugins:[Mg],components:{a:({node:e,...t})=>(0,_.jsx)(`a`,{...t,target:`_blank`,rel:`noreferrer noopener`}),img:({alt:e,src:t})=>(0,_.jsx)(`a`,{href:typeof t==`string`?t:void 0,target:`_blank`,rel:`noreferrer noopener`,children:e||`image`}),pre:({node:e,children:r,...i})=>{let a=f.Children.toArray(r)[0],o=(0,f.isValidElement)(a)?a.props:void 0;if(o&&Ng.test(o.className??``)){let r=n.findIndex(t=>t.line===e?.position?.start.line),i=n[r];return(0,_.jsxs)(`div`,{className:`suggestion`,children:[(0,_.jsx)(`div`,{className:`suggestion-title`,children:`Suggested change`}),(0,_.jsx)(`pre`,{children:o.children}),i&&t?.({index:r,text:i.lines.join(`
|
|
49
|
+
`)})]})}return(0,_.jsx)(`pre`,{...i,children:r})}},children:e})})}),Fg={execute:`run a command`,fetch:`fetch something from the network`,edit:`edit a file`,delete:`delete a file`,move:`move a file`};function Ig({run:e}){let t=eo();if(e.status===`failed`)return(0,_.jsxs)(`div`,{className:`run run-failed`,role:`alert`,children:[(0,_.jsx)(Wn,{size:16,className:`tone-danger`}),(0,_.jsxs)(`div`,{className:`run-body`,children:[(0,_.jsxs)(`strong`,{children:[e.agentName,` could not finish.`]}),(0,_.jsx)(`pre`,{className:`run-error`,children:e.error})]}),(0,_.jsx)(`button`,{type:`button`,className:`icon-button`,"aria-label":`Dismiss`,onClick:()=>t.dismiss(e.id),children:(0,_.jsx)(Ua,{size:16})})]});if(e.status!==`running`)return null;let n=e.tools.slice(-4);return(0,_.jsxs)(`div`,{className:`run`,"aria-live":`polite`,children:[(0,_.jsxs)(`div`,{className:`run-head`,children:[(0,_.jsx)(`span`,{className:`spinner`,"aria-hidden":`true`}),(0,_.jsx)(`strong`,{children:e.agentName}),(0,_.jsxs)(`span`,{className:`run-where`,children:[`is working`,e.cwdKind===`scratch`?` in a scratch copy`:``,`…`]}),(0,_.jsxs)(`button`,{type:`button`,className:`button button-small`,onClick:()=>t.cancel(e.id),children:[(0,_.jsx)(Ta,{size:16}),` Stop`]})]}),n.length>0&&(0,_.jsx)(`ul`,{className:`run-tools`,children:n.map(e=>(0,_.jsxs)(`li`,{className:e.status===`failed`?`tone-danger`:void 0,children:[e.status===`completed`?(0,_.jsx)(nr,{size:12}):(0,_.jsx)(ja,{size:12}),` `,e.title]},e.id))}),e.text&&(0,_.jsx)(`div`,{className:`run-text`,children:(0,_.jsx)(Pg,{text:e.text})}),e.asking&&(0,_.jsxs)(`div`,{className:`run-ask`,role:`alertdialog`,"aria-label":`The agent asks for permission`,children:[(0,_.jsxs)(`p`,{children:[`The agent wants to `,Fg[e.asking.kind]??`use a tool`,`: `,(0,_.jsx)(`code`,{children:e.asking.title})]}),(0,_.jsxs)(`div`,{className:`dialog-actions`,children:[(0,_.jsx)(`button`,{type:`button`,className:`button`,onClick:()=>t.answer(e.id,e.asking.id,!1),children:`Deny`}),(0,_.jsx)(`button`,{type:`button`,className:`button button-primary`,onClick:()=>t.answer(e.id,e.asking.id,!0),children:`Allow once`})]})]}),e.usage&&(0,_.jsxs)(`div`,{className:`run-usage`,children:[e.usage.used.toLocaleString(`en-US`),` of `,e.usage.size.toLocaleString(`en-US`),` tokens of context`,e.usage.cost?`, ${e.usage.cost.amount.toFixed(2)} ${e.usage.cost.currency}`:``]})]})}function Lg(){let e=eo(),t=e.runs.filter(e=>e.status!==`running`&&e.unexpectedChanges.length>0);return t.length===0?null:(0,_.jsx)(_.Fragment,{children:t.map(t=>{let n=t.unexpectedChanges.filter(e=>!e.revertible);return(0,_.jsxs)(`div`,{className:`flash flash-danger unexpected`,role:`alert`,children:[(0,_.jsxs)(`strong`,{children:[t.unexpectedChanges.length===1?`A file`:`${t.unexpectedChanges.length} files`,` changed in your working tree while `,t.agentName,` was running.`]}),(0,_.jsx)(`span`,{children:`The agent was asked to only suggest changes. If you did not make these yourself, it wrote them directly.`}),(0,_.jsx)(`ul`,{className:`unexpected-list`,children:t.unexpectedChanges.map(e=>(0,_.jsxs)(`li`,{children:[(0,_.jsx)(`code`,{children:e.path}),` `,e.kind,e.revertible?``:` (too large to restore automatically)`]},e.path))}),(0,_.jsxs)(`div`,{className:`dialog-actions`,children:[(0,_.jsxs)(`button`,{type:`button`,className:`button`,disabled:n.length===t.unexpectedChanges.length,onClick:()=>e.revert(t.id),children:[`Revert `,n.length>0?`what can be restored`:`these changes`]}),(0,_.jsx)(`button`,{type:`button`,className:`button`,onClick:()=>e.dismiss(t.id),children:`Keep them`})]})]},t.id)})})}var Rg=new Map;function zg({repoId:e,scope:t,onClose:n}){let r=eo(),i=y(),a=tt({queryKey:[`chat`,e,t],queryFn:()=>R.chat(e,t)}),o=`${e}\n${t}`,[s,c]=(0,f.useState)(()=>Rg.get(o)??``),l=e=>c(t=>{let n=typeof e==`function`?e(t):e;return n===``?Rg.delete(o):Rg.set(o,n),n}),[u,d]=(0,f.useState)(!1),p=(0,f.useRef)(null),m=(0,f.useRef)(null),h=fo({textarea:m,value:s,onChange:e=>l(e)}),g=r.chatRun,v=g?.status===`running`||u,b=a.data?.messages??[],x=r.agents.find(e=>e.id===r.agentId);(0,f.useEffect)(()=>{p.current?.scrollIntoView({block:`end`})},[b.length,g?.text]);let S=()=>{let e=s.trim();e===``||v||(d(!0),r.start({message:e}).then(t=>{d(!1),t&&l(t=>t.trim()===e?``:t)}))},C=e=>{if(v)return;let t=s.trim();d(!0),r.start({message:t,review:e===`review`,fix:e===`fix`}).then(e=>{d(!1),e&&l(e=>e.trim()===t?``:e)})};return(0,_.jsxs)(`aside`,{className:`chat`,"aria-label":`Agent chat`,children:[(0,_.jsxs)(`header`,{className:`chat-header`,children:[(0,_.jsx)(`strong`,{children:`Agent`}),r.agents.length>1?(0,_.jsx)(`select`,{className:`chat-agent`,"aria-label":`Agent`,value:r.agentId,onChange:e=>r.selectAgent(e.target.value),children:r.agents.map(e=>(0,_.jsx)(`option`,{value:e.id,children:e.name},e.id))}):(0,_.jsx)(`span`,{className:`chat-agent-name`,children:r.agents[0]?.name}),(0,_.jsxs)(`span`,{className:`chat-header-end`,children:[(0,_.jsx)(`button`,{type:`button`,className:`icon-button`,"aria-label":`Clear chat`,title:`Clear chat`,onClick:()=>{window.confirm(`Clear this chat? The messages are deleted.`)&&R.clearChat(e,t).then(()=>i.invalidateQueries({queryKey:[`chat`,e]}))},disabled:b.length===0||v,children:(0,_.jsx)(Pa,{size:16})}),(0,_.jsx)(`button`,{type:`button`,className:`icon-button`,"aria-label":`Close chat`,onClick:n,children:(0,_.jsx)(Ua,{size:16})})]})]}),(r.canIsolate||(x?.options?.length??0)>0)&&(0,_.jsxs)(`div`,{className:`chat-options`,"aria-label":`Agent options`,children:[x?.options?.map(e=>(0,_.jsxs)(`label`,{className:`chat-option`,title:e.description,children:[(0,_.jsx)(`span`,{children:e.name}),(0,_.jsxs)(`select`,{value:e.chosen??``,disabled:v,onChange:t=>r.setOption(x.id,e.id,t.target.value===``?null:t.target.value),children:[(0,_.jsxs)(`option`,{value:``,children:[`Agent’s choice (`,e.values.find(t=>t.id===e.current)?.name??e.current,`)`]}),e.values.map(e=>(0,_.jsxs)(`option`,{value:e.id,title:e.description,children:[e.group?`${e.group}: `:``,e.name]},e.id))]})]},e.id)),r.canIsolate&&(0,_.jsxs)(`label`,{className:`checkbox chat-isolated`,title:`The agent gets a disposable copy of your working tree as it is now, and cannot touch the real files. What it changes there comes back as suggestions.`,children:[(0,_.jsx)(`input`,{type:`checkbox`,checked:r.isolated,disabled:v,onChange:e=>r.setIsolated(e.target.checked)}),`Run in an isolated copy`]})]}),(0,_.jsxs)(`div`,{className:`chat-messages`,children:[b.length===0&&!g&&(0,_.jsxs)(`p`,{className:`chat-empty`,children:[`Ask about this comparison as a whole. The agent sees the list of changed files and can read the code. To ask about particular lines, comment on them and mention `,(0,_.jsx)(`code`,{children:`@agent`}),`.`]}),b.map(e=>(0,_.jsxs)(`div`,{className:`chat-message chat-${e.role}`,children:[(0,_.jsx)(`div`,{className:`chat-role`,children:e.role===`user`?`You`:`Agent`}),(0,_.jsx)(Pg,{text:e.body})]},e.id)),g&&(0,_.jsx)(Ig,{run:g}),r.startError&&r.startError.threadId===void 0&&(0,_.jsx)(`div`,{className:`flash flash-danger`,role:`alert`,children:r.startError.message}),(0,_.jsx)(`div`,{ref:p})]}),(0,_.jsxs)(`form`,{className:`chat-form`,onSubmit:e=>{e.preventDefault(),S()},children:[(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(`textarea`,{ref:m,className:`comment-textarea chat-input`,placeholder:`Ask the agent about these changes`,"aria-label":`Message to the agent`,value:s,onChange:e=>{l(e.target.value),h.onCaret()},onKeyUp:h.onCaret,onClick:h.onCaret,onBlur:h.onCaret,onKeyDown:e=>{h.onKeyDown(e)||e.key===`Enter`&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),S())}}),h.list]}),(0,_.jsxs)(`div`,{className:`chat-form-buttons`,children:[(0,_.jsx)(`button`,{type:`submit`,className:`button button-primary`,disabled:v||s.trim()===``,children:v?`Working…`:`Send`}),(0,_.jsx)(`button`,{type:`button`,className:`button`,disabled:v||r.agents.length===0,title:`The agent reads every changed file and leaves its findings as comments on the lines, with a summary here. What you typed in the box tells it what to pay attention to.`,onClick:()=>C(`review`),children:`Review all changes`}),(0,_.jsx)(`button`,{type:`button`,className:`button`,disabled:v||r.agents.length===0,title:`The agent reads every open conversation and posts the fix it asks for as a suggestion in that conversation. Nothing is written to your files until you apply a suggestion.`,onClick:()=>C(`fix`),children:`Fix all comments`})]})]})]})}function Bg(e,t){let n=document.caretPositionFromPoint?.(e,t),r=n?void 0:document.caretRangeFromPoint?.(e,t),i=n?.offsetNode??r?.startContainer,a=n?.offset??r?.startOffset??0;if(!i||i.nodeType!==Node.TEXT_NODE)return;let o=i.textContent??``,s=a,c=a;for(;s>0&&/[A-Za-z0-9_$]/.test(o[s-1]);)--s;for(;c<o.length&&/[A-Za-z0-9_$]/.test(o[c]);)c+=1;let l=o.slice(s,c);return/^[A-Za-z_$][A-Za-z0-9_$]*$/.test(l)?l:void 0}function Vg({repoId:e,rev:t,searchOpen:n,onSearchClose:r}){let[i,a]=(0,f.useState)(void 0),[o,s]=(0,f.useState)(void 0),c=(0,f.useRef)(t);c.current=t,(0,f.useEffect)(()=>{let t=t=>{if(!t.altKey||t.button!==0||!(t.target instanceof Element?t.target:void 0)?.closest(`.code[data-line], .reader-code`))return;let n=Bg(t.clientX,t.clientY),r=c.current;n&&r&&(t.preventDefault(),window.getSelection()?.removeAllRanges(),R.symbols(e,r,n,!0).then(({hits:e})=>{let t=e.length===1?e[0]:void 0;t?a({path:t.path,line:t.line}):s(n)},()=>s(n)))};return document.addEventListener(`click`,t,!0),()=>document.removeEventListener(`click`,t,!0)},[e]);let l=()=>{s(void 0),r()};return t?(0,_.jsxs)(_.Fragment,{children:[i&&(0,_.jsx)(Wg,{repoId:e,rev:t,target:i,onClose:()=>a(void 0)}),(n||o!==void 0)&&(0,_.jsx)(Ug,{repoId:e,rev:t,initial:o,onPick:e=>{l(),a({path:e.path,line:e.line})},onClose:l})]}):null}function Hg(e){(0,f.useEffect)(()=>{let t=t=>{t.key===`Escape`&&(t.stopPropagation(),e())};return window.addEventListener(`keydown`,t,!0),()=>window.removeEventListener(`keydown`,t,!0)},[e])}function Ug({repoId:e,rev:t,initial:n,onPick:r,onClose:i}){let a=(0,f.useRef)(null);Ga(a),Hg(i);let[o,s]=(0,f.useState)(n??``),[c,l]=(0,f.useState)(n??``),[u,d]=(0,f.useState)(0);(0,f.useEffect)(()=>{let e=window.setTimeout(()=>l(o.trim()),200);return()=>window.clearTimeout(e)},[o]);let p=/^[A-Za-z0-9_$]{2,80}$/.test(c),m=tt({queryKey:[`symbols`,e,t,c],queryFn:()=>R.symbols(e,t,c,!1),enabled:p,staleTime:3e4}),h=p?m.data?.hits??[]:[],g=Math.min(u,Math.max(h.length-1,0)),v=(0,f.useRef)(null);return(0,f.useEffect)(()=>{v.current?.querySelector(`[aria-selected="true"]`)?.scrollIntoView({block:`nearest`})},[g,h.length]),(0,_.jsx)(`div`,{className:`modal-backdrop`,onClick:e=>e.target===e.currentTarget&&i(),children:(0,_.jsxs)(`div`,{ref:a,className:`dialog modal symbol-dialog`,role:`dialog`,"aria-modal":`true`,"aria-label":`Find a function, class or type`,children:[(0,_.jsx)(`input`,{autoFocus:!0,className:`symbol-input`,type:`text`,role:`combobox`,"aria-expanded":h.length>0,"aria-controls":`symbol-results`,"aria-label":`Name of a function, class or type`,placeholder:`Name of a function, class or type`,value:o,onChange:e=>{s(e.target.value),d(0)},onKeyDown:e=>{e.key===`ArrowDown`||e.key===`ArrowUp`?(e.preventDefault(),h.length>0&&d((g+(e.key===`ArrowDown`?1:h.length-1))%h.length)):e.key===`Enter`&&h[g]&&(e.preventDefault(),r(h[g]))}}),(0,_.jsx)(`ul`,{ref:v,id:`symbol-results`,className:`symbol-results`,role:`listbox`,"aria-label":`Definitions`,children:h.map((e,t)=>(0,_.jsxs)(`li`,{role:`option`,"aria-selected":t===g,className:`symbol-hit`,onMouseEnter:()=>d(t),onClick:()=>r(e),children:[(0,_.jsxs)(`span`,{className:`symbol-name`,children:[(0,_.jsx)(`span`,{className:`symbol-kind`,children:e.kind}),` `,e.name]}),(0,_.jsxs)(`span`,{className:`symbol-where`,children:[e.path,`:`,e.line]}),(0,_.jsx)(`code`,{className:`symbol-text`,children:e.text})]},`${e.path}:${e.line}:${e.name}`))}),(0,_.jsx)(`p`,{className:`symbol-status`,role:`status`,children:p?m.isPending?`Searching…`:m.isError?m.error.message:h.length===0?`No definition of “${c}” was found. The search reads the code as text, so it can miss unusual forms.`:m.data?.truncated?`The first ${h.length} definitions; type more of the name to narrow them.`:`${h.length} definition${h.length===1?``:`s`}`:c===``?`Type a name, or a part of one. Alt + click on a name in the code jumps to its definition.`:`Names are made of letters, digits, _ and $; type at least two.`})]})})}function Wg({repoId:e,rev:t,target:n,onClose:r}){let i=(0,f.useRef)(null);Ga(i),Hg(r);let a=tt({queryKey:[`file-at`,e,t,n.path],queryFn:()=>R.fileAt(e,t,n.path),staleTime:t.startsWith(`:`)?0:1/0}),o=a.data?.text?.split(`
|
|
50
|
+
`)??[],s=(0,f.useRef)(null);(0,f.useEffect)(()=>{s.current?.scrollIntoView({block:`center`})},[n.path,n.line,o.length]);let c=document.querySelector(`section.file-card[aria-label="${CSS.escape(n.path)}"] .code[data-side="R"][data-line="${n.line}"]`);return(0,_.jsx)(`div`,{className:`modal-backdrop`,onClick:e=>e.target===e.currentTarget&&r(),children:(0,_.jsxs)(`div`,{ref:i,className:`dialog modal reader`,role:`dialog`,"aria-modal":`true`,"aria-label":`${n.path}, line ${n.line}`,children:[(0,_.jsxs)(`header`,{className:`reader-header`,children:[(0,_.jsx)(`strong`,{className:`reader-path`,children:n.path}),(0,_.jsxs)(`span`,{className:`reader-line`,children:[`line `,n.line]}),(0,_.jsxs)(`span`,{className:`reader-end`,children:[c&&(0,_.jsx)(`button`,{type:`button`,className:`button`,onClick:()=>{r(),c.scrollIntoView({block:`center`})},children:`Show in the diff`}),(0,_.jsx)(`button`,{type:`button`,className:`button`,autoFocus:!0,onClick:r,children:`Close`})]})]}),a.isPending?(0,_.jsx)(`p`,{className:`symbol-status`,children:`Loading…`}):a.isError?(0,_.jsx)(`div`,{className:`flash flash-danger`,role:`alert`,children:a.error.message}):a.data.binary||a.data.tooLarge||a.data.text===void 0?(0,_.jsx)(`p`,{className:`symbol-status`,children:`This file cannot be shown as text.`}):(0,_.jsx)(`div`,{className:`reader-code`,tabIndex:0,children:o.map((e,t)=>(0,_.jsxs)(`div`,{ref:t+1===n.line?s:void 0,className:`reader-row${t+1===n.line?` reader-target`:``}`,children:[(0,_.jsx)(`span`,{className:`reader-num`,children:t+1}),(0,_.jsx)(`span`,{className:`reader-text`,children:e===``?`
|
|
51
|
+
`:e})]},t))})]})})}var Gg=(e,t)=>`${e} ${t}${e===1?``:`s`}`;function Kg(e){let t=[`Added ${Gg(e.threadsAdded,`conversation`)}, ${Gg(e.commentsAdded,`comment`)} and ${Gg(e.chatAdded,`chat message`)}.`];return e.threadsAdded+e.commentsAdded+e.chatAdded===0&&(t[0]=`Everything in this file is here already.`),e.movedToFile>0&&t.push(`${Gg(e.movedToFile,`conversation`)} could not be put on the lines (the code here differs) and ${e.movedToFile===1?`is`:`are`} attached to the file.`),e.skipped.length>0&&t.push(`Skipped ${Gg(e.skipped.length,`conversation`)} on files that are not part of this comparison here: ${[...new Set(e.skipped.map(e=>e.path))].join(`, `)}.`),t.join(` `)}var qg=e=>String(e).padStart(2,`0`);function Jg(e,t){return`review-${e.replace(/[^A-Za-z0-9._-]+/g,`-`).replace(/^-+|-+$/g,``)||`comparison`}-${t.getFullYear()}${qg(t.getMonth()+1)}${qg(t.getDate())}-${qg(t.getHours())}${qg(t.getMinutes())}${qg(t.getSeconds())}.json`}var Yg=e=>`npx agentic-diff open ${/^[A-Za-z0-9._-]+$/.test(e)?e:`'${e}'`}`;function Xg(e,t){let n=document.createElement(`a`);n.href=URL.createObjectURL(new Blob([`${JSON.stringify(t,null,2)}\n`],{type:`application/json`})),n.download=e,document.body.append(n),n.click(),n.remove(),window.setTimeout(()=>URL.revokeObjectURL(n.href),1e4)}function Zg({repoId:e,spec:t}){let n=y(),r=(0,f.useRef)(null),[i,a]=(0,f.useState)(!1),[o,s]=(0,f.useState)(void 0),[c,l]=(0,f.useState)(void 0),[u,d]=(0,f.useState)(!1),p=e=>s({error:!0,text:e instanceof Error?e.message:`That did not work`}),m=()=>{a(!0),s(void 0),l(void 0),d(!1),R.exportReview(e,t).then(e=>{if(e.threads.length===0&&e.chat.length===0){s({error:!1,text:`There are no comments or chat messages on this comparison to export.`});return}let n=e.threads.filter(e=>(e.anchorText?.length??0)>0).length;if(!window.confirm(`The file will hold ${Gg(e.threads.length,`conversation`)} and ${Gg(e.chat.length,`chat message`)}, with the commented lines of code of ${Gg(n,`conversation`)} quoted in it. Anyone you send it to can read them. Save the file?`))return;let r=Jg(t,new Date);Xg(r,e),l(r)},p).finally(()=>a(!1))},h=async i=>{a(!0),s(void 0),l(void 0);try{let r;try{r=JSON.parse(await i.text())}catch{throw Error(`${i.name} is not a review file: it is not JSON.`)}let a=await R.importReview(e,t,r);await Promise.all([n.invalidateQueries({queryKey:[`threads`,e]}),n.invalidateQueries({queryKey:[`chat`,e]})]),s({error:!1,text:Kg(a)})}catch(e){p(e)}finally{a(!1),r.current&&(r.current.value=``)}};return(0,_.jsxs)(`div`,{className:`review-file`,children:[(0,_.jsxs)(`div`,{className:`review-file-actions`,children:[(0,_.jsx)(`button`,{type:`button`,className:`button button-small`,disabled:i,onClick:m,children:`Export review`}),(0,_.jsx)(`button`,{type:`button`,className:`button button-small`,disabled:i,onClick:()=>r.current?.click(),children:`Import review`}),(0,_.jsx)(`input`,{ref:r,type:`file`,accept:`application/json,.json`,hidden:!0,"aria-label":`Review file to import`,onChange:e=>{let t=e.target.files?.[0];t&&h(t)}})]}),(0,_.jsx)(`p`,{className:`share-note`,children:`A review file carries the comments, the replies and the agent chat of this comparison, with the commented lines of code. Importing adds them to what is here and changes nothing that exists.`}),c&&(0,_.jsxs)(`div`,{className:`review-file-saved`,role:`status`,children:[(0,_.jsxs)(`p`,{className:`share-note review-file-result`,children:[`Saved as `,(0,_.jsx)(`code`,{children:c}),`. Send the file; in their clone of this repository the other person continues the review with:`]}),(0,_.jsxs)(`div`,{className:`share-row`,children:[(0,_.jsx)(`span`,{className:`share-label`,children:`Command`}),(0,_.jsx)(`input`,{className:`text-input`,readOnly:!0,value:Yg(c),"aria-label":`Command that opens the review file`,onFocus:e=>e.target.select()}),(0,_.jsx)(`button`,{type:`button`,className:`button button-small`,onClick:()=>void navigator.clipboard.writeText(Yg(c)).then(()=>d(!0),()=>d(!1)),children:u?`Copied`:`Copy`})]})]}),o&&(0,_.jsx)(`p`,{className:o.error?`flash flash-danger`:`share-note review-file-result`,role:o.error?`alert`:`status`,children:o.text})]})}var Qg=/^\/r\/([0-9a-f]{12})\/compare(?:\/(.*))?$/,$g=/^\/r\/([0-9a-f]{12})\/pull\/([1-9]\d{0,8})$/,e_=/^[0-9a-f]{40,64}(?:\.\.[0-9a-f]{40,64})?$/,t_=`agentic-diff.view`;function n_(){try{return window.localStorage.getItem(t_)===`split`?`split`:`unified`}catch{return`unified`}}function r_(e){try{window.localStorage.setItem(t_,e)}catch{}}function i_(e,t,n=`unified`){if(e===`/`)return{name:`home`};if(e===`/open`)return{name:`open`,input:new URLSearchParams(t).get(`input`)??`${window.location.origin}${e}${t}${window.location.hash}`};let r=new URLSearchParams(t),i=r.get(`view`),a=r.get(`range`)??``,o={name:`compare`,ignoreWhitespace:r.get(`w`)===`1`,view:i===`split`||i===`unified`?i:n,range:e_.test(a)?a:void 0},s=$g.exec(e);if(s){let e=Number(s[2]);return{...o,repoId:s[1],spec:At(e),pull:e,remote:r.get(`remote`)||void 0}}let c=Qg.exec(e);if(!c)return{name:`not-found`};try{return{...o,repoId:c[1],spec:Dt(c[2]??``)}}catch{return{name:`not-found`}}}function a_(e){let t=new URLSearchParams;return e.ignoreWhitespace&&t.set(`w`,`1`),t.set(`view`,e.view),e.range&&t.set(`range`,e.range),e.pull===void 0?`/r/${e.repoId}/compare/${Et(e.spec)}?${t.toString()}`:(e.remote&&t.set(`remote`,e.remote),`/r/${e.repoId}/pull/${e.pull}?${t.toString()}`)}function o_(e,t,n){return`/r/${e}/pull/${t}?view=${n}`}var s_=/^#diff-([0-9a-f]{64})(?:([LR])(\d+))?$/;function c_(e){let t=s_.exec(e);if(t)return{anchor:t[1],side:t[2],line:t[3]?Number(t[3]):void 0}}function l_(e){return`#diff-${e.anchor}${e.side??``}${e.line??``}`}var u_=new Set,d_=()=>u_.forEach(e=>e());function f_(e){return u_.add(e),window.addEventListener(`popstate`,e),window.addEventListener(`hashchange`,e),()=>{u_.delete(e),window.removeEventListener(`popstate`,e),window.removeEventListener(`hashchange`,e)}}var p_=()=>`${window.location.pathname}${window.location.search}${window.location.hash}`;function m_(){return(0,f.useSyncExternalStore)(f_,p_),{pathname:window.location.pathname,search:window.location.search,hash:window.location.hash}}function h_(e,t={}){t.replace?window.history.replaceState(null,``,e):window.history.pushState(null,``,e),d_()}var g_=`login`;function __(){let e=new URLSearchParams(window.location.hash.replace(/^#/,``)),t=e.get(g_);if(!t)return;e.delete(g_);let n=e.toString();return window.history.replaceState(null,``,`${window.location.pathname}${window.location.search}${n?`#${n}`:``}`),t}var v_=[];function y_(e){v_=e}function b_(){let e=v_;return v_=[],e}var x_=new Intl.DateTimeFormat(`en-US`,{month:`short`,day:`numeric`,year:`numeric`});function S_(e){let t=0;for(let n of e)t=(t*31+n.charCodeAt(0))%360;return t}function C_({commit:e}){return(0,_.jsx)(`span`,{className:`avatar`,style:{backgroundColor:`hsl(${S_(e.authorEmail)} 45% 38%)`},"aria-hidden":`true`,children:(e.authorName.trim()[0]??`?`).toUpperCase()})}function w_({oid:e}){let[t,n]=(0,f.useState)(!1);return(0,_.jsxs)(`button`,{type:`button`,className:`commit-sha`,title:`Copy full SHA`,"aria-label":`Copy full SHA for ${e.slice(0,7)}`,onClick:()=>{navigator.clipboard.writeText(e).then(()=>{n(!0),window.setTimeout(()=>n(!1),1500)})},children:[t?(0,_.jsx)(nr,{size:16}):(0,_.jsx)(Er,{size:16}),(0,_.jsx)(`code`,{children:e.slice(0,7)})]})}function T_({commit:e,picked:t,href:n,onPick:r}){let[i,a]=(0,f.useState)(!1);return(0,_.jsxs)(`li`,{className:`commit-row${t?` picked`:``}`,"aria-current":t?`true`:void 0,children:[(0,_.jsxs)(`div`,{className:`commit-main`,children:[(0,_.jsxs)(`div`,{className:`commit-title`,children:[n===void 0?(0,_.jsx)(`span`,{className:`commit-subject`,children:e.subject}):(0,_.jsx)(`a`,{className:`commit-subject`,href:n,title:`Show only the changes of this commit. Shift-click another commit to show a run of them.`,onClick:t=>r(t,e.oid),children:e.subject}),e.body&&(0,_.jsx)(`button`,{type:`button`,className:`commit-more`,"aria-expanded":i,"aria-label":`Show commit description`,onClick:()=>a(e=>!e),children:(0,_.jsx)(Vr,{size:12})})]}),i&&(0,_.jsx)(`pre`,{className:`commit-body`,children:e.body}),(0,_.jsxs)(`div`,{className:`commit-meta`,children:[(0,_.jsx)(C_,{commit:e}),(0,_.jsx)(`strong`,{children:e.authorName}),` committed `,x_.format(new Date(e.committerDate))]})]}),(0,_.jsx)(w_,{oid:e.oid})]})}function E_({list:e,range:t,hrefFor:n}){let r=(0,f.useMemo)(()=>new Map(e.commits.map((e,t)=>[e.oid,t])),[e.commits]),i=t?r.get(t.to):void 0,a=t?r.get(t.from):void 0,o=(t,o)=>{if(!n||t.metaKey||t.ctrlKey||t.button!==0)return;t.preventDefault();let s=r.get(o);if(t.shiftKey&&i!==void 0&&a!==void 0){let t=e.commits[Math.max(a,s)],r=e.commits[Math.min(i,s)];h_(n(t.oid===r.oid?t.oid:`${t.oid}..${r.oid}`))}else h_(n(i===s&&a===s?void 0:o))},s=(0,f.useMemo)(()=>{let t=new Map;for(let n of e.commits){let e=x_.format(new Date(n.committerDate));t.set(e,[...t.get(e)??[],n])}return[...t]},[e.commits]);return e.commits.length===0?null:(0,_.jsxs)(`section`,{className:`commits`,"aria-label":`Commits`,children:[s.map(([e,t])=>(0,_.jsxs)(`div`,{className:`commit-day`,children:[(0,_.jsxs)(`h2`,{className:`commit-day-title`,children:[(0,_.jsx)(mi,{size:16,className:`range-icon`}),` Commits on `,e]}),(0,_.jsx)(`ul`,{className:`commit-list`,children:t.map(e=>(0,_.jsx)(T_,{commit:e,picked:i!==void 0&&a!==void 0&&r.get(e.oid)>=i&&r.get(e.oid)<=a,href:n?.(e.oid),onPick:o},e.oid))})]},e)),e.truncated&&(0,_.jsxs)(`p`,{className:`commits-note`,children:[`Showing the `,e.commits.length.toLocaleString(`en-US`),` most recent of `,e.total.toLocaleString(`en-US`),` commits.`]})]})}var D_=(0,f.createContext)(void 0);function O_(){let e=(0,f.useContext)(D_);if(!e)throw Error(`useEdit needs an EditProvider above it`);return e}function k_({repoId:e,canEdit:t,canApply:n,applyBlockedBy:r,children:i}){let a=y(),o=tt({queryKey:[`changes`,e],queryFn:()=>R.changes(e)}),s=(0,f.useMemo)(()=>{let i=async e=>{try{return await e}finally{Ja(a,[`worktree`])}};return{repoId:e,canEdit:t,canApply:n,applyBlockedBy:r,changes:o.data?.changes??[],apply:(t,n,r)=>i(R.applySuggestion(e,t,n,r)),save:t=>i(R.saveFile(e,t)),remove:(t,n)=>i(R.deleteFile(e,t,n)),undo:t=>i(R.undoChange(e,t))}},[e,t,n,r,o.data,a]);return(0,_.jsx)(D_.Provider,{value:s,children:i})}function A_({commentId:e,blockIndex:t,text:n}){let r=O_(),[i,a]=(0,f.useState)(!1),[o,s]=(0,f.useState)(void 0),c=r.changes.find(n=>n.commentId===e&&n.blockIndex===t&&!n.undoneAt),l=e=>{a(!0),s(void 0),e().catch(e=>s(e instanceof Error?e.message:`The change could not be written`)).finally(()=>a(!1))};return(0,_.jsxs)(`div`,{className:`suggestion-actions`,children:[c?(0,_.jsxs)(_.Fragment,{children:[(0,_.jsxs)(`span`,{className:`suggestion-applied`,children:[(0,_.jsx)(nr,{size:16}),` Applied to the working tree`]}),(0,_.jsx)(`button`,{type:`button`,className:`button button-small`,disabled:i,onClick:()=>l(()=>r.undo(c.id)),children:`Undo`})]}):(0,_.jsx)(`button`,{type:`button`,className:`button button-small`,disabled:i||!r.canApply,title:r.canApply?`Replace the commented lines in your working tree with this suggestion`:r.applyBlockedBy,onClick:()=>l(()=>r.apply(e,t,n)),children:`Apply suggestion`}),!c&&!r.canApply&&(0,_.jsx)(`span`,{className:`suggestion-note`,children:r.applyBlockedBy}),o&&(0,_.jsx)(`span`,{className:`suggestion-error`,role:`alert`,children:o})]})}var j_=new Intl.DateTimeFormat(`en-US`,{hour:`numeric`,minute:`2-digit`});function M_(){let e=O_(),[t,n]=(0,f.useState)(void 0),r=e.changes.filter(e=>!e.undoneAt);return r.length===0?null:(0,_.jsxs)(`details`,{className:`recent-changes`,children:[(0,_.jsxs)(`summary`,{children:[(0,_.jsx)(Mi,{size:16,className:`range-icon`}),r.length===1?`1 change`:`${r.length} changes`,` written to the working tree from this page`]}),(0,_.jsx)(`ul`,{children:r.map(t=>(0,_.jsxs)(`li`,{children:[(0,_.jsxs)(`span`,{children:[t.kind===`suggestion`?`Applied a suggestion to`:t.kind===`delete`?`Deleted`:`Saved`,` `,(0,_.jsx)(`code`,{children:t.path}),` at `,j_.format(new Date(t.createdAt))]}),(0,_.jsx)(`button`,{type:`button`,className:`button button-small`,onClick:()=>{n(void 0),e.undo(t.id).catch(e=>n(e instanceof Error?e.message:`Could not undo`))},children:`Undo`})]},t.id))}),t&&(0,_.jsx)(`div`,{className:`flash flash-danger`,role:`alert`,children:t})]})}var N_={added:{icon:kr,tone:`success`,label:`Added`},deleted:{icon:Fr,tone:`danger`,label:`Deleted`},modified:{icon:Mr,tone:`attention`,label:`Modified`},renamed:{icon:Rr,tone:`muted`,label:`Renamed`},copied:{icon:Rr,tone:`muted`,label:`Copied`},typechange:{icon:Mr,tone:`attention`,label:`Type changed`},unmerged:{icon:Mr,tone:`danger`,label:`Unmerged`}};function P_({additions:e,deletions:t}){let n=Ft(e,t);return(0,_.jsxs)(`span`,{className:`diffstat`,"aria-hidden":`true`,children:[Array.from({length:n.added},(e,t)=>(0,_.jsx)(`span`,{className:`diffstat-block added`},`a${t}`)),Array.from({length:n.deleted},(e,t)=>(0,_.jsx)(`span`,{className:`diffstat-block deleted`},`d${t}`)),Array.from({length:n.neutral},(e,t)=>(0,_.jsx)(`span`,{className:`diffstat-block`},`n${t}`))]})}function F_(e){if(e.status===`modified`&&e.oldMode&&e.newMode&&e.oldMode!==e.newMode)return`mode ${e.oldMode} → ${e.newMode}`}function I_({file:e}){return(0,_.jsxs)(_.Fragment,{children:[e.oldPath&&(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(`span`,{className:`file-path-old`,children:e.oldPath}),(0,_.jsx)(`span`,{className:`file-path-arrow`,"aria-label":`renamed to`,children:`→`})]}),e.path]})}function L_(e){let t=N_[e.status];return{Icon:e.kind===`binary`?qr:e.kind===`submodule`?ai:t.icon,tone:t.tone,label:t.label}}function R_({file:e}){let t=L_(e),n=t.Icon,r=F_(e);return(0,_.jsxs)(`li`,{className:`file-row`,children:[(0,_.jsx)(`span`,{className:`file-status tone-${t.tone}`,title:t.label,children:(0,_.jsx)(n,{size:16,"aria-label":t.label})}),(0,_.jsx)(`span`,{className:`file-path`,children:(0,_.jsx)(`a`,{href:`#diff-${e.anchor}`,children:(0,_.jsx)(I_,{file:e})})}),e.untracked&&(0,_.jsx)(`span`,{className:`label`,children:`Untracked`}),r&&(0,_.jsx)(`span`,{className:`label`,children:r}),(0,_.jsx)(`span`,{className:`file-stats`,children:e.kind===`binary`?(0,_.jsx)(`span`,{className:`file-stat-note`,children:`Binary`}):e.kind===`submodule`?(0,_.jsx)(`span`,{className:`file-stat-note`,children:`Submodule`}):(0,_.jsxs)(_.Fragment,{children:[(0,_.jsxs)(`span`,{className:`tone-success`,children:[`+`,e.additions]}),(0,_.jsxs)(`span`,{className:`tone-danger`,children:[`−`,e.deletions]}),(0,_.jsx)(P_,{additions:e.additions,deletions:e.deletions})]})})]})}function z_({files:e}){return(0,_.jsx)(`ul`,{className:`file-list`,"aria-label":`Changed files`,children:e.map(e=>(0,_.jsx)(R_,{file:e},e.path))})}var B_={bold:`**`,italic:`_`,code:"`"},V_={quote:`> `,list:`- `};function H_(e,t,n,r,i=``){let a=e.slice(t,n),o=B_[r];if(o)return{value:`${e.slice(0,t)}${o}${a}${o}${e.slice(n)}`,selectionStart:t+o.length,selectionEnd:n+o.length};if(r===`link`){let r=a||`text`,i=`${e.slice(0,t)}[${r}](url)${e.slice(n)}`,o=t+r.length+3;return{value:i,selectionStart:o,selectionEnd:o+3}}let s=V_[r];if(s){let r=e.lastIndexOf(`
|
|
52
|
+
`,t-1)+1,i=e.slice(r,n).replace(/^/gm,s);return{value:`${e.slice(0,r)}${i}${e.slice(n)}`,selectionStart:t+s.length,selectionEnd:r+i.length}}let c=t>0&&e[t-1]!==`
|
|
53
|
+
`,l=a||i,u=U_(l),d=`${c?`
|
|
54
|
+
`:``}${u}suggestion\n`;return{value:`${e.slice(0,t)}${d}${l}\n${u}\n${e.slice(n)}`,selectionStart:t+d.length,selectionEnd:t+d.length+l.length}}function U_(e){let t=Math.max(2,...e.split(`
|
|
55
|
+
`).map(e=>/^\s*(`+)/.exec(e)?.[1]?.length??0));return"`".repeat(t+1)}var W_=[{kind:`bold`,label:`Bold`,icon:$n},{kind:`italic`,label:`Italic`,icon:Fi},{kind:`quote`,label:`Quote`,icon:ua},{kind:`code`,label:`Code`,icon:mr},{kind:`link`,label:`Link`,icon:Vi},{kind:`list`,label:`List`,icon:qi}],G_=500,K_=new Map;function q_({repoId:e,draftKey:t,title:n,submitLabel:r,initialBody:i=``,suggestionSeed:a,onSubmit:o,onCancel:s}){let c=`${e}\n${t}`,[l,u]=(0,f.useState)(()=>K_.get(c)??i),[d,p]=(0,f.useState)(`write`),[m,h]=(0,f.useState)(!1),[g,v]=(0,f.useState)(void 0),y=(0,f.useRef)(null),b=(0,f.useRef)(K_.has(c)),x=(0,f.useRef)(!1),S=(0,f.useRef)(!1);(0,f.useEffect)(()=>{let n=!0;return R.draft(e,t).then(e=>{n&&!b.current&&e.body!==``&&u(e.body)},()=>void 0),()=>{n=!1}},[e,t]),(0,f.useEffect)(()=>{if(!b.current)return;let n=window.setTimeout(()=>{K_.get(c)===l&&(x.current=!1),R.saveDraft(e,t,l).catch(()=>void 0)},G_);return()=>window.clearTimeout(n)},[e,t,c,l]),(0,f.useEffect)(()=>()=>{let n=K_.get(c);x.current&&!S.current&&n!==void 0&&R.saveDraft(e,t,n).catch(()=>void 0)},[e,t,c]),(0,f.useEffect)(()=>{let e=y.current;e&&b.current&&e.setSelectionRange(e.value.length,e.value.length)},[]);let C=e=>{b.current=!0,x.current=!0,K_.set(c,e),u(e)},w=()=>(K_.delete(c),x.current=!1,R.saveDraft(e,t,``).catch(()=>void 0)),T=fo({textarea:y,value:l,onChange:C}),E=e=>{let t=y.current;if(!t)return;let n=H_(l,t.selectionStart,t.selectionEnd,e,a);C(n.value),requestAnimationFrame(()=>{t.focus(),t.setSelectionRange(n.selectionStart,n.selectionEnd)})},D=async()=>{if(!(l.trim()===``||m)){h(!0),v(void 0),S.current=!0;try{await o(l),await w()}catch(e){S.current=!1,v(e instanceof Error?e.message:`Could not save the comment`),h(!1)}}},O=()=>{w(),s()};return(0,_.jsxs)(`form`,{className:`comment-form`,"data-draft":t,onSubmit:e=>{e.preventDefault(),D()},children:[n&&(0,_.jsx)(`div`,{className:`comment-form-title`,children:n}),(0,_.jsxs)(`div`,{className:`comment-box`,children:[(0,_.jsxs)(`div`,{className:`comment-tabs`,children:[(0,_.jsx)(`div`,{role:`tablist`,className:`comment-tablist`,children:[`write`,`preview`].map(e=>(0,_.jsx)(`button`,{type:`button`,role:`tab`,"aria-selected":d===e,className:`comment-tab`,onClick:()=>p(e),children:e===`write`?`Write`:`Preview`},e))}),d===`write`&&(0,_.jsxs)(`div`,{className:`comment-toolbar`,role:`toolbar`,"aria-label":`Formatting`,children:[W_.map(({kind:e,label:t,icon:n})=>(0,_.jsx)(`button`,{type:`button`,className:`icon-button`,"aria-label":t,title:t,onClick:()=>E(e),children:(0,_.jsx)(n,{size:16})},e)),a!==void 0&&(0,_.jsx)(`button`,{type:`button`,className:`icon-button`,"aria-label":`Suggest a change`,title:`Suggest a change`,onClick:()=>E(`suggestion`),children:(0,_.jsx)(Xr,{size:16})})]})]}),d===`write`?(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(`textarea`,{ref:y,autoFocus:!0,className:`comment-textarea`,placeholder:`Leave a comment. @ calls an agent, ! sets effort, # adds a tool, / runs a command`,"aria-label":`Comment`,value:l,onChange:e=>{C(e.target.value),T.onCaret()},onKeyDown:e=>{e.nativeEvent.isComposing||e.keyCode===229||T.onKeyDown(e)||(e.key===`Enter`&&(e.metaKey||e.ctrlKey)?(e.preventDefault(),D()):e.key===`Escape`&&l.trim()===``&&(e.preventDefault(),O()))},onKeyUp:T.onCaret,onClick:T.onCaret,onBlur:T.onCaret}),T.list]}):(0,_.jsx)(`div`,{className:`comment-preview`,children:l.trim()===``?(0,_.jsx)(`p`,{className:`comment-empty`,children:`Nothing to preview`}):(0,_.jsx)(Pg,{text:l})})]}),g&&(0,_.jsx)(`div`,{className:`flash flash-danger`,role:`alert`,children:g}),(0,_.jsxs)(`div`,{className:`comment-actions`,children:[(0,_.jsx)(`button`,{type:`button`,className:`button`,onClick:O,disabled:m,children:`Cancel`}),(0,_.jsx)(`button`,{type:`submit`,className:`button button-primary`,disabled:m||l.trim()===``,children:m?`Saving…`:r})]})]})}function J_(e){let t=y();return(0,f.useMemo)(()=>{let n=()=>t.invalidateQueries({queryKey:[`threads`,e]}),r=async e=>{let t=await e;return await n(),t};return{create:t=>r(R.createThread(e,t)),reply:(t,n)=>r(R.reply(e,t,n)),setState:(t,n)=>r(R.setThreadState(e,t,n)),edit:(t,n)=>r(R.editComment(e,t,n)),remove:t=>r(R.deleteComment(e,t))}},[e,t])}var Y_=new Intl.DateTimeFormat(`en-US`,{month:`short`,day:`numeric`,hour:`numeric`,minute:`2-digit`});function X_({repoId:e,comment:t,actions:n,applicable:r,pending:i}){let[a,o]=(0,f.useState)(!1),s=(0,f.useCallback)(e=>(0,_.jsx)(A_,{commentId:t.id,blockIndex:e.index,text:e.text}),[t.id]),c=t.authorKind===`user`&&!t.published;return(0,_.jsxs)(`div`,{className:`comment`,children:[(0,_.jsxs)(`div`,{className:`comment-head`,children:[(0,_.jsx)(`span`,{className:`avatar avatar-${t.authorKind}`,"aria-hidden":`true`,children:(t.authorName.trim()[0]??`?`).toUpperCase()}),(0,_.jsx)(`strong`,{children:t.authorName}),t.authorKind!==`user`&&(0,_.jsx)(`span`,{className:`label`,children:t.authorKind===`agent`?`Agent`:`GitHub`}),(0,_.jsx)(`time`,{dateTime:t.createdAt,children:Y_.format(new Date(t.createdAt))}),i&&(0,_.jsx)(`span`,{className:`label label-attention`,title:`Only here so far. It goes to GitHub when you publish your review.`,children:`Pending`}),c&&!a&&(0,_.jsxs)(`span`,{className:`comment-tools`,children:[(0,_.jsx)(`button`,{type:`button`,className:`icon-button`,"aria-label":`Edit comment`,title:`Edit`,onClick:()=>o(!0),children:(0,_.jsx)($i,{size:16})}),(0,_.jsx)(`button`,{type:`button`,className:`icon-button`,"aria-label":`Delete comment`,title:`Delete`,onClick:()=>{window.confirm(`Delete this comment? This cannot be undone.`)&&n.remove(t.id)},children:(0,_.jsx)(Pa,{size:16})})]})]}),a?(0,_.jsx)(q_,{repoId:e,draftKey:`edit:${t.id}`,submitLabel:`Update comment`,initialBody:t.body,onSubmit:e=>n.edit(t.id,e).then(()=>o(!1)),onCancel:()=>o(!1)}):(0,_.jsx)(Pg,{text:t.body,suggestionActions:r?s:void 0})]})}function Z_(e){if(e.side===`file`||e.startLine===void 0)return`the file`;let t=e.side===`L`?`L`:`R`;return e.endLine!==void 0&&e.endLine!==e.startLine?`lines ${t}${e.startLine}–${t}${e.endLine}`:`line ${t}${e.startLine}`}function Q_({repoId:e,thread:t,actions:n,showPath:r=!1}){let[i,a]=(0,f.useState)(t.state===`open`),[o,s]=(0,f.useState)(!1),c=eo(),l=c.runFor(t.id),u=c.startError?.threadId===t.id?c.startError.message:void 0,d=t.state===`resolved`,p=t.outdated||t.detached,m=t.comments[0],h=t.scope.startsWith(`pr:`);return(0,_.jsxs)(`article`,{className:`thread${d?` resolved`:``}`,"aria-label":`Conversation on ${Z_(t)}`,children:[(d||p||r)&&(0,_.jsxs)(`header`,{className:`thread-header`,children:[(0,_.jsx)(`button`,{type:`button`,className:`icon-button`,"aria-expanded":i,"aria-label":i?`Hide conversation`:`Show conversation`,onClick:()=>a(e=>!e),children:i?(0,_.jsx)(cr,{size:16}):(0,_.jsx)(dr,{size:16})}),(0,_.jsxs)(`span`,{className:`thread-where`,children:[r&&(0,_.jsx)(`code`,{children:t.path}),` `,p||r?`Comment on ${Z_(t)}`:``]}),t.outdated&&(0,_.jsx)(`span`,{className:`label label-attention`,children:`Outdated`}),d&&(0,_.jsxs)(`span`,{className:`label label-done`,children:[(0,_.jsx)(ar,{size:12}),` Resolved`]}),!i&&m&&(0,_.jsxs)(`span`,{className:`thread-summary`,children:[m.authorName,`: `,m.body.split(`
|
|
56
|
+
`)[0]]})]}),(i||l)&&(0,_.jsxs)(_.Fragment,{children:[p&&t.anchorText&&t.anchorText.length>0&&(0,_.jsx)(`pre`,{className:`thread-snippet`,children:t.anchorText.join(`
|
|
57
|
+
`)}),t.comments.map(r=>(0,_.jsx)(X_,{repoId:e,comment:r,actions:n,applicable:t.side===`R`&&!t.detached,pending:h&&!r.published},r.id)),l&&(0,_.jsx)(Ig,{run:l}),u&&(0,_.jsx)(`div`,{className:`flash flash-danger thread-flash`,role:`alert`,children:u}),o?(0,_.jsx)(q_,{repoId:e,draftKey:`reply:${t.id}`,submitLabel:`Reply`,onSubmit:e=>n.reply(t.id,e).then(()=>{s(!1),c.startIfMentioned(t.id,e)}),onCancel:()=>s(!1)}):(0,_.jsxs)(`div`,{className:`thread-footer`,children:[(0,_.jsx)(`button`,{type:`button`,className:`reply-box`,onClick:()=>s(!0),children:`Reply…`}),(0,_.jsxs)(`button`,{type:`button`,className:`button`,disabled:l?.status===`running`||c.agents.length===0,title:`Ask the agent for its view on this conversation. Mentioning @agent in a comment does the same.`,onClick:()=>c.start({threadId:t.id,message:`Please look at this conversation and the code it is about, and give your view.`}),children:[(0,_.jsx)(Cr,{size:16}),` Ask agent`]}),!t.github&&(0,_.jsx)(`button`,{type:`button`,className:`button`,onClick:()=>{a(d),n.setState(t.id,d?`open`:`resolved`)},children:d?`Unresolve conversation`:`Resolve conversation`})]})]})]})}function $_({items:e}){let[t,n]=(0,f.useState)(void 0),r=(0,f.useRef)(null),i=(0,f.useRef)(null),a=t!==void 0;return(0,f.useEffect)(()=>{if(!a)return;let e=()=>n(void 0),t=t=>{let n=t.target;!i.current?.contains(n)&&!r.current?.contains(n)&&e()},o=t=>{t.key===`Escape`&&(e(),r.current?.focus())};return document.addEventListener(`mousedown`,t),document.addEventListener(`keydown`,o),window.addEventListener(`scroll`,e,{passive:!0}),window.addEventListener(`resize`,e),i.current?.querySelector(`button`)?.focus(),()=>{document.removeEventListener(`mousedown`,t),document.removeEventListener(`keydown`,o),window.removeEventListener(`scroll`,e),window.removeEventListener(`resize`,e)}},[a]),(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(`button`,{ref:r,type:`button`,className:`icon-button`,"aria-haspopup":`menu`,"aria-expanded":a,"aria-label":`More actions for this file`,title:`More actions`,onClick:()=>{if(a||!r.current){n(void 0);return}let e=r.current.getBoundingClientRect();n({top:e.bottom+4,right:Math.max(8,window.innerWidth-e.right)})},children:(0,_.jsx)(Ri,{size:16})}),t&&(0,uo.createPortal)((0,_.jsx)(`div`,{ref:i,className:`file-menu-list`,role:`menu`,style:t,children:e.map(e=>(0,_.jsx)(`button`,{type:`button`,role:`menuitem`,className:e.danger?`danger`:void 0,onClick:()=>{n(void 0),e.run()},children:e.label},e.label))}),document.body)]})}var e1,t1=1,n1=new Map;function r1(){return e1||(e1=new Worker(new URL(`/assets/highlight.worker-DsmjLvrc.js`,``+import.meta.url),{type:`module`}),e1.addEventListener(`message`,e=>{let t=n1.get(e.data.id);t&&(n1.delete(e.data.id),`error`in e.data?t.reject(Error(e.data.error)):t.resolve(e.data.lines))}),e1.addEventListener(`error`,()=>{for(let e of n1.values())e.reject(Error(`Highlighting failed`));n1.clear(),e1?.terminate(),e1=void 0}),e1)}function i1(e,t){return new Promise((n,r)=>{let i=t1++;n1.set(i,{resolve:n,reject:r}),r1().postMessage({id:i,language:e,code:t.join(`
|
|
58
|
+
`)})})}function a1(e,t){return e.length>0&&e.length<=15e3&&t<=4e5}var o1=`modulepreload`,s1=function(e){return`/`+e},c1={},l1={},u1=function(e){return e.pathname.endsWith(`.css`)},d1=function(e,t,n){if(t in e)return e[t];let r=n();if(!r){e[t]=void 0;return}let i=r.then(()=>{e[t]=void 0},n=>{throw delete e[t],n});return e[t]=i,i},f1=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e,i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function s(e){return import.meta.resolve?new URL(import.meta.resolve(e)):new URL(e,import.meta.url)}r=o(t.map(t=>{t=s1(t,n);let r=s(t),i=u1(r);return d1(c1,r.href,()=>{if(e===void 0){e={all:new Set,styles:new Set};let t=document.getElementsByTagName(`link`);for(let n=t.length-1;n>=0;n--){let r=t[n];e.all.add(r.href),r.rel===`stylesheet`&&e.styles.add(r.href)}}let t=i?e.styles:e.all,n=i?l1[r.href]:void 0;if(!n&&t.has(r.href))return;let o=document.createElement(`link`);if(o.rel=i?`stylesheet`:o1,i||(o.as=`script`),o.crossOrigin=``,o.href=r.href,a&&o.setAttribute(`nonce`,a),n&&delete l1[r.href],n?.isConnected?n.replaceWith(o):document.head.appendChild(o),i)return new Promise((e,t)=>{let n=i=>{o.removeEventListener(`load`,n),o.removeEventListener(`error`,n),i.type===`error`?(l1[r.href]=o,t(Error(`Unable to preload CSS for ${r}`))):e(i)};o.addEventListener(`load`,n),o.addEventListener(`error`,n)})})}).filter(e=>e!==void 0))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},p1={c:`c`,h:`c`,cc:`cpp`,cpp:`cpp`,cxx:`cpp`,hpp:`cpp`,hh:`cpp`,cs:`csharp`,css:`css`,diff:`diff`,patch:`diff`,go:`go`,graphql:`graphql`,gql:`graphql`,html:`html`,htm:`html`,ini:`ini`,cfg:`ini`,conf:`ini`,properties:`ini`,editorconfig:`ini`,java:`java`,js:`javascript`,mjs:`javascript`,cjs:`javascript`,json:`json`,map:`json`,webmanifest:`json`,jsonc:`jsonc`,json5:`jsonc`,jsx:`jsx`,kt:`kotlin`,kts:`kotlin`,less:`less`,lua:`lua`,mk:`make`,md:`markdown`,markdown:`markdown`,mdx:`markdown`,php:`php`,py:`python`,pyi:`python`,rb:`ruby`,rake:`ruby`,gemspec:`ruby`,rs:`rust`,scss:`scss`,sh:`shellscript`,bash:`shellscript`,zsh:`shellscript`,fish:`shellscript`,sql:`sql`,svelte:`svelte`,swift:`swift`,toml:`toml`,tsx:`tsx`,ts:`typescript`,mts:`typescript`,cts:`typescript`,vue:`vue`,xml:`xml`,svg:`xml`,xsd:`xml`,plist:`xml`,csproj:`xml`,yaml:`yaml`,yml:`yaml`},m1={dockerfile:`docker`,makefile:`make`,gnumakefile:`make`,gemfile:`ruby`,rakefile:`ruby`,".bashrc":`shellscript`,".zshrc":`shellscript`,".gitconfig":`ini`,".npmrc":`ini`,"tsconfig.json":`jsonc`,"jsconfig.json":`jsonc`};function h1(e){let t=e.slice(e.lastIndexOf(`/`)+1).toLowerCase(),n=m1[t]??(t.startsWith(`dockerfile.`)?`docker`:void 0);if(n)return n;let r=t.lastIndexOf(`.`);return r>0||r===0&&t.length>1?p1[t.slice(r+1)]:void 0}var g1=/^ {0,3}(`{3,}|~{3,})/;function _1(e){let t=[],n=[],r,i=()=>{n.length>0&&t.push(n.join(`
|
|
59
|
+
`)),n=[]};for(let t of e){let e=g1.exec(t)?.[1];r?(n.push(t),e&&e[0]===r[0]&&e.length>=r.length&&t.trim()===e&&(r=void 0,i())):e?(i(),r=e,n.push(t)):t.trim()===``?i():n.push(t)}return i(),t}function v1(e,t){let n=[];for(let r of Sn(_1(e),_1(t))){let e=r.added?`added`:r.removed?`removed`:`same`;for(let t of r.value)n.push({kind:e,text:t})}return n}var y1={added:`Added`,removed:`Removed`},b1=(0,f.memo)(function({oldLines:e,newLines:t}){let n=(0,f.useMemo)(()=>v1(e,t),[e,t]);return(0,_.jsx)(`div`,{className:`rich-diff`,"aria-label":`Rendered document with changes marked`,children:n.map((e,t)=>e.kind===`same`?(0,_.jsx)(`div`,{className:`rich-block`,children:(0,_.jsx)(Pg,{text:e.text})},t):(0,_.jsxs)(`div`,{className:`rich-block rich-${e.kind}`,"aria-label":y1[e.kind],children:[(0,_.jsx)(`span`,{className:`rich-mark`,"aria-hidden":`true`,children:e.kind===`added`?`+`:`−`}),(0,_.jsx)(Pg,{text:e.text})]},t))})});function x1({src:e,label:t,tone:n}){let[r,i]=(0,f.useState)(void 0),[a,o]=(0,f.useState)(!1);return(0,_.jsxs)(`figure`,{className:`image-side image-${n}`,children:[(0,_.jsxs)(`figcaption`,{children:[(0,_.jsx)(`strong`,{children:t}),r&&(0,_.jsx)(`span`,{className:`image-size`,children:r})]}),a?(0,_.jsx)(`p`,{className:`image-failed`,children:`This image could not be shown.`}):(0,_.jsx)(`img`,{src:e,alt:t,onLoad:e=>i(`${e.currentTarget.naturalWidth} × ${e.currentTarget.naturalHeight}`),onError:()=>o(!0)})]})}function S1({before:e,after:t}){return(0,_.jsxs)(`div`,{className:`image-diff`,children:[e&&(0,_.jsx)(x1,{src:e,label:t?`Before`:`Deleted`,tone:`removed`}),t&&(0,_.jsx)(x1,{src:t,label:e?`After`:`Added`,tone:`added`})]})}function C1(e){return e===0?[]:[{oldStart:0,oldLines:0,newStart:1,newLines:e,section:``,rows:Array.from({length:e},(e,t)=>({t:`add`,new:t+1}))}]}var w1=e=>e.oldLines===0?e.oldStart+1:e.oldStart,T1=e=>e.newLines===0?e.newStart+1:e.newStart;function E1(e,t){let n=1,r=1,i=e.map(e=>{let t={oldStart:n,newStart:r,length:Math.max(0,T1(e)-r)};return n=w1(e)+e.oldLines,r=T1(e)+e.newLines,t});return i.push({oldStart:n,newStart:r,length:Math.max(0,t-r+1)}),i}function D1(e,t,n){let r=e.findIndex(e=>{let r=t===`L`?e.oldStart:e.newStart;return n>=r&&n<r+e.length});return r<0?void 0:r}function O1(e,t,n){let r=e;for(let{side:e,line:i}of n){let n=D1(t,e,i);if(n===void 0)continue;let a=t[n],o=r[n]??{top:0,bottom:0},s=i-(e===`L`?a.oldStart:a.newStart);s<o.top||s>=a.length-o.bottom||(r=k1(r,n,`all`,a.length))}return r}function k1(e,t,n,r){let i=e[t]??{top:0,bottom:0},a=n===`all`?{top:r,bottom:0}:n===`down`?{...i,top:i.top+20}:{...i,bottom:i.bottom+20};return{...e,[t]:a}}var A1=e=>`${e.t}:${`old`in e?e.old:``}:${`new`in e?e.new:``}`;function j1(e,t,n){let r=[];for(let i=t;i<n;i+=1){let t={t:`ctx`,old:e.oldStart+i,new:e.newStart+i};r.push({kind:`row`,key:A1(t),row:t})}return r}function M1(e,t,n){let r=[];if(e.forEach((e,i)=>{let a=t[i],o=n[i]??{top:0,bottom:0},s=Math.min(o.top,a.length),c=Math.min(o.bottom,a.length-s),l=a.length-s-c;if(r.push(...j1(a,0,s)),l>0||a.length===0){let t=l===0?[]:l<=20?[`all`]:i===0?[`up`]:[`down`,`up`];r.push({kind:`hunk`,key:`hunk:${i}`,gap:i,gapLength:a.length,hunk:e,actions:t})}r.push(...j1(a,a.length-c,a.length));for(let t of e.rows)r.push({kind:`row`,key:A1(t),row:t})}),e.length>0){let i=e.length,a=t[i],o=Math.min(n[i]?.top??0,a.length),s=a.length-o;r.push(...j1(a,0,o)),s>0&&r.push({kind:`tail`,key:`tail`,gap:i,gapLength:a.length,actions:[s<=20?`all`:`down`]})}return r}function N1(e){let t=[],n=0;for(;n<e.length;){let r=e[n];if(r.t===`ctx`){t.push({ctx:r}),n+=1;continue}let i=[],a=[];for(;e[n]?.t===`del`;)i.push(e[n++]);for(;e[n]?.t===`add`;)a.push(e[n++]);t.push({dels:i,adds:a})}return t}function P1(e){let t=[];for(let n of N1(e)){if(`ctx`in n){t.push({key:A1(n.ctx),left:n.ctx,right:n.ctx});continue}let e=Math.max(n.dels.length,n.adds.length);for(let r=0;r<e;r+=1){let e=n.dels[r],i=n.adds[r];t.push({key:`${e?A1(e):``}|${i?A1(i):``}`,left:e,right:i})}}return t}function F1(e){let t=new Map;for(let n of N1(e))`ctx`in n||n.dels.length!==n.adds.length||n.dels.forEach((e,r)=>{let i=n.adds[r];t.set(e,i),t.set(i,e)});return t}function I1(e){let t=`@@ -${e.oldStart},${e.oldLines} +${e.newStart},${e.newLines} @@`;return e.section?`${t} ${e.section}`:t}var L1=new Set([`text`,`search`,`url`,`tel`,`email`,`password`,`number`,`date`,`datetime-local`,`month`,`time`,`week`]);function R1(e){return e instanceof HTMLElement?e.closest(`[role="dialog"], [role="menu"]`)?!0:e instanceof HTMLInputElement?L1.has(e.type):e.isContentEditable||e.closest(`textarea, select, [contenteditable="true"], .cm-editor`)!==null:!1}function z1(e){let{key:t}=e;if(/^[A-Za-z]$/.test(t))return e.shiftKey?t:t.toLowerCase();let n=/^Key([A-Z])$/.exec(e.code)?.[1],r=[...t].length===1&&(t.codePointAt(0)??0)>127;return n&&r&&!e.shiftKey?n.toLowerCase():t}function B1(e){let t=(0,f.useRef)(e);t.current=e,(0,f.useEffect)(()=>{let e=e=>{if(e.ctrlKey||e.metaKey||e.altKey||e.defaultPrevented||e.isComposing||R1(e.target)||document.querySelector(`[aria-modal="true"], [role="menu"]`))return;let n=t.current[z1(e)];n&&(e.preventDefault(),n())};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[])}function V1(){return document.activeElement?.closest(`section.file-card`)||[...document.querySelectorAll(`section.file-card`)].find(e=>e.getBoundingClientRect().bottom>80)}var H1=`focusRows`;function U1(e){let t=[...document.querySelectorAll(`section.file-card`)],n=V1(),r=n?t.indexOf(n):-1,i=n!==void 0&&(document.activeElement?.closest(`section.file-card`)===n||n.getBoundingClientRect().top<0),a=t[r<0?0:e===1&&!i?r:r+e];if(!a)return;for(let e of t)delete e.dataset[H1];a.scrollIntoView({block:`start`});let o=a.querySelector(`.diff-rows`);o?o.focus({preventScroll:!0}):(a.dataset[H1]=``,a.querySelector(`.file-header button`)?.focus({preventScroll:!0}))}function W1(e){let t=e.closest(`section.file-card`);t&&t.dataset[H1]!==void 0&&(delete t.dataset[H1],t.querySelector(`.file-header`)?.contains(document.activeElement)&&e.focus({preventScroll:!0}))}var G1=[{title:`Anywhere on the page`,keys:[[`?`,`Show this list`],[`n / p`,`Go to the next / previous file`],[`t`,`Find a file: focus the filter of the file tree`],[`f`,`Find a function, class or type by name`],[`Alt + click`,`On a name in the code: go to its definition`],[`v`,`Mark the current file as viewed, or take the mark off`],[`s`,`Stage or unstage the current file (when comparing with the working tree)`]]},{title:`Inside a file’s diff`,keys:[[`↑ ↓ or j k`,`Move the line cursor`],[`← →`,`In the split view: move the cursor to the other side`],[`Shift + ↑ ↓`,`Select several lines`],[`c`,`Comment on the line or the selection`],[`Enter`,`Put a link to the line into the address bar`],[`Esc`,`Take the cursor away`]]},{title:`While writing`,keys:[[`Ctrl/Cmd + Enter`,`Send the comment, or commit`],[`Esc`,`Close an empty comment form, or a dialog`]]}];function K1({onClose:e}){let t=(0,f.useRef)(null);return Ga(t),(0,f.useEffect)(()=>{let t=t=>{t.key===`Escape`&&e()};return window.addEventListener(`keydown`,t),()=>window.removeEventListener(`keydown`,t)},[e]),(0,_.jsx)(`div`,{className:`modal-backdrop`,onClick:t=>t.target===t.currentTarget&&e(),children:(0,_.jsxs)(`div`,{ref:t,className:`dialog modal shortcuts-dialog`,role:`dialog`,"aria-modal":`true`,"aria-labelledby":`shortcuts-title`,children:[(0,_.jsx)(`h2`,{id:`shortcuts-title`,className:`dialog-title`,children:`Keyboard shortcuts`}),G1.map(e=>(0,_.jsxs)(`section`,{children:[(0,_.jsx)(`h3`,{className:`shortcuts-group`,children:e.title}),(0,_.jsx)(`dl`,{className:`shortcuts-list`,children:e.keys.map(([e,t])=>(0,_.jsxs)(`div`,{children:[(0,_.jsx)(`dt`,{children:(0,_.jsx)(`kbd`,{children:e})}),(0,_.jsx)(`dd`,{children:t})]},e))})]},e.title)),(0,_.jsx)(`div`,{className:`dialog-actions`,children:(0,_.jsx)(`button`,{type:`button`,className:`button`,autoFocus:!0,onClick:e,children:`Close`})})]})})}var q1=500,J1=e=>e.reduce((e,[t,n])=>e+(n-t),0);function Y1(e,t){let n=[];for(let r of t){let t=n.at(-1);t&&e.slice(t[1],r[0]).trim()===``?n[n.length-1]=[t[0],r[1]]:n.push(r)}return n}function X1(e,t){if(e.length>q1||t.length>q1)return;let n=[],r=[],i=0,a=0,o=0;for(let s of _n(e,t)){let e=s.value.length;s.removed?(n.push([i,i+e]),i+=e):s.added?(r.push([a,a+e]),a+=e):(o+=s.value.trim().length,i+=e,a+=e)}if((n.length!==0||r.length!==0)&&o!==0&&!(J1(n)>=e.length&&J1(r)>=t.length))return{old:Y1(e,n),new:Y1(t,r)}}function Z1(e,t,n){let r=t&&t.length>0?t:[[e]];if(!n||n.length===0)return r.map(([e,t,n])=>({text:e,color:t,italic:n,mark:!1}));let i=[],a=0,o=0;for(let[e,t,s]of r){let r=0;for(;r<e.length;){for(;o<n.length&&n[o][1]<=a+r;)o+=1;let c=n[o],l=a+r,u=c!==void 0&&l>=c[0],d=c===void 0?1/0:u?c[1]:c[0],f=Math.min(e.length,d-a);i.push({text:e.slice(r,f),color:t,italic:s,mark:u}),r=f}a+=e.length}return i}var Q1=3e3,$1=`agentic-diff:first-rows`,e0=(0,f.memo)(function({text:e,tokens:t,ranges:n,noEol:r}){return(0,_.jsxs)(_.Fragment,{children:[Z1(e,t,n).map((e,t)=>e.mark||e.color||e.italic?(0,_.jsx)(`span`,{className:e.mark?`word`:void 0,style:e.color||e.italic?{color:e.color,fontStyle:e.italic?`italic`:void 0}:void 0,children:e.text},t):e.text),r&&(0,_.jsx)(`span`,{className:`no-eol`,title:`No newline at end of file`,children:(0,_.jsx)(Xi,{size:12,"aria-label":`No newline at end of file`})})]})}),t0=800,n0=250,r0=20;function i0({rows:e,pinned:t,children:n}){let r=(0,f.useRef)(null),[i,a]=(0,f.useState)(!1),o=(0,f.useRef)(void 0),s=t||i;return(0,f.useEffect)(()=>{let e=r.current;if(!e)return;let t=new IntersectionObserver(e=>a(e.some(e=>e.isIntersecting)),{rootMargin:`1500px 0px`});return t.observe(e),()=>t.disconnect()},[]),(0,f.useLayoutEffect)(()=>{s&&r.current&&(o.current=r.current.offsetHeight)}),(0,_.jsx)(`div`,{ref:r,style:s?void 0:{height:o.current??e*r0},children:s?n:null})}var a0={all:{icon:Ba,label:`Expand all`},down:{icon:ci,label:`Expand down`},up:{icon:di,label:`Expand up`}};function o0({item:e,onExpand:t}){return(0,_.jsx)(`div`,{className:`expander`,children:e.actions.map(n=>{let{icon:r,label:i}=a0[n];return(0,_.jsx)(`button`,{type:`button`,className:`expander-button`,"aria-label":i,title:i,onClick:()=>t(e.gap,n,e.gapLength),children:(0,_.jsx)(r,{size:16})},n)})})}function s0(e,t,n){return e!==void 0&&e.side===t&&e.line===n}var c0=(e,t,n)=>n!==void 0&&e.some(e=>e.side===t&&n>=e.startLine&&n<=e.endLine),l0=[];function u0(e){let t=e?.closest(`.code[data-line]`),n=t?.dataset.side;if(!(!t||n!==`L`&&n!==`R`))return{side:n,line:Number(t.dataset.line),cell:t}}function d0({items:e,view:t,anchor:n,old:r,next:i,pairs:a,target:o,inserts:s,highlights:c=l0,label:l,onExpand:u,onSelectLine:d,onComment:p}){let m=(0,f.useRef)(null);(0,f.useEffect)(()=>{performance.getEntriesByName($1).length===0&&performance.mark($1),m.current&&W1(m.current)},[]);let h=(0,f.useMemo)(()=>{let e=new Map;if(a.size/2>Q1)return e;for(let[t,n]of a){if(t.t!==`del`||n.t!==`add`)continue;let a=X1(r.lines[t.old-1]??``,i.lines[n.new-1]??``);a&&(e.set(t,a.old),e.set(n,a.new))}return e},[a,r.lines,i.lines]),g=(0,f.useRef)(null),v=(0,f.useRef)(void 0),[y,b]=(0,f.useState)(void 0),[x,S]=(0,f.useState)(void 0),C=e=>({side:e.side,startLine:Math.min(e.from,e.to),endLine:Math.max(e.from,e.to)}),w=y?C(y):x&&x.from!==x.to?C(x):void 0,T=w?[...c,w]:c,E=(e,t)=>x!==void 0&&x.side===e&&x.to===t;(0,f.useEffect)(()=>{if(!y)return;let e=e=>{let t=u0(document.elementFromPoint(e.clientX,e.clientY));t&&t.side===y.side&&m.current?.contains(t.cell)&&t.line!==y.to&&b({...y,to:t.line})},t=()=>{b(void 0),p?.({side:y.side,startLine:Math.min(y.from,y.to),endLine:Math.max(y.from,y.to)})};return document.addEventListener(`mousemove`,e),document.addEventListener(`mouseup`,t),()=>{document.removeEventListener(`mousemove`,e),document.removeEventListener(`mouseup`,t)}},[y,p]),(0,f.useEffect)(()=>{g.current&&(g.current.hidden=!0)},[e,s,t]);let D=(e,t)=>`diff-${n}${e}${t}`,O=(e,t,n=``)=>(0,_.jsx)(`div`,{className:`num ${n}`,id:t===void 0?void 0:D(e,t),"data-side":e,"data-line":t,children:t}),ee=e=>(0,_.jsx)(e0,{text:r.lines[e.old-1]??``,tokens:r.tokens?.[e.old-1],ranges:h.get(e),noEol:e.noEol}),k=e=>(0,_.jsx)(e0,{text:i.lines[e.new-1]??``,tokens:i.tokens?.[e.new-1],ranges:h.get(e),noEol:e.noEol}),te=[],ne=[],A=(e,t=!1)=>{te.push(e),ne.push(t)},j=(e,n)=>{let r=e===void 0?void 0:s?.get(`L${e}`),i=n===void 0?void 0:s?.get(`R${n}`);if(!r&&!i)return;let a=`insert:${r?`L${e}`:``}:${i?`R${n}`:``}`;A(t===`split`?(0,_.jsxs)(`div`,{className:`diff-insert split-insert`,children:[(0,_.jsx)(`div`,{className:`insert-half`,children:r}),(0,_.jsx)(`div`,{className:`insert-half`,children:i})]},a):(0,_.jsxs)(`div`,{className:`diff-insert`,children:[r,i]},a),!0)},M=(e,t)=>{let n=t.t===`add`?void 0:t.old,r=t.t===`del`?void 0:t.new,i=s0(o,`L`,n)||s0(o,`R`,r),a=t.t===`del`?`L`:`R`,s=t.t===`del`?t.old:t.new,c=c0(T,a,s);A((0,_.jsxs)(`div`,{className:`diff-row ${t.t}${i?` selected`:``}${c?` commenting`:``}${E(a,s)?` cursor`:``}`,children:[O(`L`,n),O(`R`,r),(0,_.jsx)(`div`,{className:`code`,"data-marker":t.t===`add`?`+`:t.t===`del`?`-`:` `,"data-side":a,"data-line":s,children:t.t===`del`?ee(t):k(t)})]},e),i||c||E(a,s)),j(n,r)},re=(e,t,n)=>{let r=t&&t.t!==`add`?t:void 0,i=n&&n.t!==`del`?n:void 0,a=r?r.t:`empty`,s=i?i.t:`empty`,c=c0(T,`L`,r?.old)?` commenting`:``,l=c0(T,`R`,i?.new)?` commenting`:``;A((0,_.jsxs)(`div`,{className:`diff-row`,children:[O(`L`,r?.old,`${a}${s0(o,`L`,r?.old)?` selected`:``}${c}`),(0,_.jsx)(`div`,{className:`code side-left ${a}${c}${E(`L`,r?.old)?` cursor`:``}`,"data-marker":r?.t===`del`?`-`:` `,"data-side":`L`,"data-line":r?.old,children:r&&ee(r)}),O(`R`,i?.new,`${s}${s0(o,`R`,i?.new)?` selected`:``}${l}`),(0,_.jsx)(`div`,{className:`code side-right ${s}${l}${E(`R`,i?.new)?` cursor`:``}`,"data-marker":i?.t===`add`?`+`:` `,"data-side":`R`,"data-line":i?.new,children:i&&k(i)})]},e),c!==``||l!==``||s0(o,`L`,r?.old)||s0(o,`R`,i?.new)||E(`L`,r?.old)||E(`R`,i?.new)),j(r?.old,i?.new)},ie=[],N=()=>{if(ie.length!==0){if(t===`unified`)for(let e of ie)M(e.key,e.row);else for(let e of P1(ie.map(e=>e.row)))re(e.key,e.left,e.right);ie=[]}};for(let t of e)t.kind===`row`?ie.push(t):(N(),A((0,_.jsxs)(`div`,{className:`diff-row hunk`,children:[(0,_.jsx)(o0,{item:t,onExpand:u}),(0,_.jsx)(`div`,{className:`code hunk-text`,children:t.kind===`hunk`?I1(t.hunk):``})]},t.key)));N();let ae=te;if(te.length>t0){let e=[];for(let t=0;t<te.length;t+=n0){let n=Math.min(t+n0,te.length);e.push((0,_.jsx)(i0,{rows:n-t,pinned:ne.slice(t,n).some(Boolean),children:te.slice(t,n)},t))}ae=e}return(0,_.jsxs)(`div`,{ref:m,className:`diff-rows ${t}`,tabIndex:0,role:`group`,"aria-label":l,onClick:e=>{let t=e.target.closest(`.num[data-line]`),n=t?.dataset.side;t?.dataset.line&&(n===`L`||n===`R`)&&d(n,Number(t.dataset.line))},onMouseDown:e=>{let t=e.target.closest(`.code`);e.currentTarget.dataset.selecting=t?.classList.contains(`side-left`)?`left`:t?.classList.contains(`side-right`)?`right`:``},onMouseOver:e=>{let t=g.current;if(!t||y||t.contains(e.target))return;let n=u0(e.target);if(!n||!m.current)return;v.current={side:n.side,line:n.line};let r=m.current.getBoundingClientRect(),i=n.cell.getBoundingClientRect();t.style.top=`${i.top-r.top}px`,t.style.left=`${i.left-r.left}px`,t.hidden=!1,t.setAttribute(`aria-label`,`Add a comment on line ${n.side}${n.line}`)},onMouseLeave:()=>{g.current&&!y&&(g.current.hidden=!0)},onKeyDown:e=>{if(e.target!==e.currentTarget||e.metaKey||e.ctrlKey||e.altKey)return;let n=z1(e),r=n===`ArrowDown`||n===`j`?1:n===`ArrowUp`||n===`k`?-1:0,i=t!==`split`||e.shiftKey?void 0:n===`ArrowLeft`?`L`:n===`ArrowRight`?`R`:void 0;if(r!==0||i&&x&&x.side!==i){let n=Array.from(e.currentTarget.querySelectorAll(`.code[data-line]`));if(n.length===0)return;e.preventDefault();let a=x?n.findIndex(e=>e.dataset.side===x.side&&Number(e.dataset.line)===x.to):-1,o;if(a<0){let e=n.findIndex(e=>e.getBoundingClientRect().bottom>0);o=n[Math.max(0,e)]}else if(i){let e=n[a],t=e=>e?.dataset.side===i;o=[n[a-1],n[a+1]].find(n=>t(n)&&n?.parentElement===e.parentElement)??n.slice(a+1).find(t)??n.slice(0,a).reverse().find(t)}else{let i=a+r;if((t===`split`||e.shiftKey)&&x)for(;n[i]&&n[i]?.dataset.side!==x.side;)i+=r;o=n[i]}if(!o)return;let s=o.dataset.side,c=Number(o.dataset.line);S(e.shiftKey&&x&&x.side===s?{...x,to:c}:{side:s,from:c,to:c}),o.scrollIntoView({block:`nearest`})}else x&&(n===`c`&&p?(e.preventDefault(),p(C(x))):n===`Enter`?(e.preventDefault(),d(x.side,x.to)):n===`Escape`&&S(void 0))},children:[ae,p&&(0,_.jsx)(`button`,{ref:g,type:`button`,hidden:!0,className:`add-comment`,title:`Add a comment. Drag to select several lines.`,onMouseDown:e=>{v.current&&e.button===0&&(e.preventDefault(),b({side:v.current.side,from:v.current.line,to:v.current.line}))},children:(0,_.jsx)(ia,{size:16})})]})}var f0=(0,f.lazy)(()=>f1(()=>import(`./FileEditor-B8siphLU.js`),[])),p0=2e3,m0=`:worktree`;function h0(e){let[t,n]=(0,f.useState)(!1);return(0,f.useEffect)(()=>{let r=e.current;if(!r||t)return;let i=new IntersectionObserver(e=>{e.some(e=>e.isIntersecting)&&n(!0)},{rootMargin:`1200px 0px`});return i.observe(r),()=>i.disconnect()},[e,t]),t}function g0(e){let[t,n]=(0,f.useState)(!1);return(0,f.useEffect)(()=>{let t=e.current;if(!t)return;let r=new IntersectionObserver(e=>n(e.some(e=>e.isIntersecting)),{rootMargin:`3000px 0px`});return r.observe(t),()=>r.disconnect()},[e]),t}function _0(e,t,n){let r=(0,f.useMemo)(()=>e?.text===void 0?void 0:Lt(e.text),[e]),i=h1(t),a=tt({queryKey:[`tokens`,e?.oid,i],queryFn:()=>i1(i,r),enabled:n&&i!==void 0&&r!==void 0&&a1(r,e?.text?.length??0),staleTime:1/0,retry:!1});return(0,f.useMemo)(()=>r?{lines:r,tokens:a.data}:void 0,[r,a.data])}function v0({children:e}){return(0,_.jsx)(`div`,{className:`diff-message`,children:e})}function y0({path:e}){let[t,n]=(0,f.useState)(!1);return(0,_.jsx)(`button`,{type:`button`,className:`icon-button`,"aria-label":t?`Copied`:`Copy file path`,title:`Copy file path`,onClick:()=>{navigator.clipboard.writeText(e).then(()=>{n(!0),window.setTimeout(()=>n(!1),1500)})},children:t?(0,_.jsx)(nr,{size:16}):(0,_.jsx)(Er,{size:16})})}var b0=e=>`${(e/1024/1024).toFixed(1)} MB`,x0={borderBottom:0,borderRadius:`var(--borderRadius-medium)`},S0=e=>e.side===`file`?`file`:`${e.side}${e.startLine}-${e.endLine}`,C0=(0,f.memo)(function({repoId:e,comparison:t,file:n,view:r,target:i,scrollToTarget:a,threads:o,scope:s,viewed:c=!1,onViewed:l,readOnly:u=!1,staging:d,onStage:p,onSelectLine:m,isSettling:h,listedAt:g}){let v=(0,f.useRef)(null),y=h0(v),b=g0(v),x=(0,f.useRef)(null),S=(0,f.useRef)(void 0),C=a&&i?.line!==void 0,w=C?`${i?.side??``}${i?.line??``}`:void 0,[T,E]=(0,f.useState)(C),[D,O]=(0,f.useState)(c&&!C);(0,f.useEffect)(()=>{if(!(c&&T)){if(c){let e=v.current,t=document.activeElement,n=e?.querySelector(`.file-header`);e&&n&&t&&e.contains(t)&&!n.contains(t)&&n.querySelector(`button`)?.focus({preventScroll:!0})}O(c)}},[c]);let[ee,k]=(0,f.useState)(!1),[te,ne]=(0,f.useState)({}),[A,j]=(0,f.useState)([]),[M,re]=(0,f.useState)(!1),[ie,N]=(0,f.useState)(void 0),[ae,oe]=(0,f.useState)(!1),[se,ce]=(0,f.useState)(!1),[le,ue]=(0,f.useState)(void 0),de=O_(),fe=J_(e),pe=$a(),me=n.kind===`text`,P=On(n.path)===void 0?me&&kn(n.path)?`markdown`:void 0:`image`,F=P!==void 0&&(se||n.kind===`binary`),he=n.additions+n.deletions>p0,ge=(y||i!==void 0||M)&&!D&&me&&(!he||ee||M),{diffFrom:_e,diffTo:ve,ignoreWhitespace:ye}=t,I=n.status!==`deleted`,be=I&&!n.newOid&&ve===m0,xe=`${n.oldOid??``}..${ve===m0?m0:n.newOid??``}`,[Se,Ce]=(0,f.useState)({versions:xe,ignoreWhitespace:ye});(Se.versions!==xe||Se.ignoreWhitespace!==ye)&&(Ce({versions:xe,ignoreWhitespace:ye}),ne({}),Se.versions!==xe&&(k(C),ce(!1),oe(!1),ue(void 0),O(c&&!T)));let we=tt({queryKey:[`diff`,e,_e,ve,n.path,n.oldPath,ye],queryFn:()=>R.diff(e,_e,ve,n.path,n.oldPath,ye),enabled:ge&&!n.untracked}),L=tt({queryKey:[`blob`,e,n.oldOid],queryFn:()=>R.blob(e,n.oldOid),enabled:ge&&n.oldOid!==void 0,staleTime:1/0}),Te=tt({queryKey:[`blob`,e,n.newOid],queryFn:()=>R.blob(e,n.newOid),enabled:ge&&I&&n.newOid!==void 0,staleTime:1/0}),Ee=tt({queryKey:[`worktree-file`,e,n.path],queryFn:()=>R.worktreeFile(e,n.path),enabled:ge&&(be||M&&I)}),De=be?Ee:Te,Oe=n.oldOid!==void 0&&L.isPending,ke=I&&(n.newOid!==void 0||be)&&De.isPending,Ae=ge&&(!n.untracked&&we.isPending||Oe||ke),je=we.error??L.error??De.error,Me=ge&&!Ae&&!je,Ne=(0,f.useMemo)(()=>Me?{diff:we.data,oldBlob:L.data,newBlob:De.data}:void 0,[Me,we.data,L.data,De.data]),Pe=(0,f.useRef)(void 0);Ne&&(Pe.current=Ne);let Fe=Ne??(je?void 0:Pe.current),Ie=Fe!==void 0,Le=_0(Fe?.oldBlob,n.oldPath??n.path,ge),Re=_0(Fe?.newBlob,n.path,ge),ze=(0,f.useMemo)(()=>n.untracked?C1(Re?.lines.length??0):Fe?.diff?.hunks??[],[n.untracked,Re,Fe]),Be=(0,f.useMemo)(()=>({lines:[]}),[]),Ve=Le??Be,He=Re??Be,Ue=(0,f.useMemo)(()=>E1(ze,He.lines.length),[ze,He.lines.length]),We=(0,f.useMemo)(()=>M1(ze,Ue,te),[ze,Ue,te]),Ge=(0,f.useMemo)(()=>F1(ze.flatMap(e=>e.rows)),[ze]),Ke=(0,f.useCallback)((e,t,n)=>{ne(r=>k1(r,e,t,n))},[]),qe=(0,f.useCallback)((e,t)=>m(n.anchor,e,t),[m,n.anchor]),Je=M&&ie===void 0&&!Ee.isFetching?Ee.data:void 0;Je?.text!==void 0&&!Je.lossy&&!Oe&&N(Je),!M&&ie!==void 0&&N(void 0);let Ye=M&&ie!==void 0,Xe=M&&ie===void 0&&Ee.isError?Ee.error.message:Je?.lossy?`it is not UTF-8 text, and saving it from here would damage it`:void 0;(0,f.useEffect)(()=>{Xe!==void 0&&(re(!1),ue(`Could not open the file for editing: ${Xe}`))},[Xe]);let Ze=(0,f.useMemo)(()=>ae?[]:o.filter(e=>e.side!==`file`&&!e.outdated&&e.endLine!==void 0),[o,ae]),Qe=(0,f.useMemo)(()=>ae?[]:o.filter(e=>e.side===`file`||e.outdated),[o,ae]),$e=e=>e===`L`?n.oldPath??n.path:n.path,et=e=>e.side===`file`?`${s}|${n.path}|file`:`${s}|${$e(e.side)}|${e.side}|${e.startLine}-${e.endLine}`,nt=(0,f.useMemo)(()=>A.filter(e=>e.side!==`file`),[A]),rt=A.find(e=>e.side===`file`),it=e=>Ie&&e.endLine>(e.side===`L`?Ve:He).lines.length,at=e=>{let t=S0(e);j(n=>n.some(e=>S0(e)===t)?n:[...n,e]);let n=et(e);[...v.current?.querySelectorAll(`form.comment-form`)??[]].find(e=>e.dataset.draft===n)?.querySelector(`textarea`)?.focus()},ot=e=>{let t=S0(e);j(e=>e.filter(e=>S0(e)!==t))},st=(0,f.useRef)(at);st.current=at;let ct=(0,f.useCallback)(e=>st.current(e),[]);(0,f.useEffect)(()=>{if(ze.length===0)return;let e=Ze.map(e=>({side:e.side,line:e.endLine}));for(let t of nt)e.push({side:t.side,line:t.endLine});i?.side&&i.line&&e.push({side:i.side,line:i.line}),e.length>0&&ne(t=>O1(t,Ue,e))},[Ze,nt,i,Ue,ze.length]);let lt=(e,t)=>h?.()?Promise.reject(Error(`The comparison is still loading. Send the comment again in a moment.`)):fe.create({scope:s,from:_e,to:ve,path:$e(e.side),side:e.side,startLine:e.side===`file`?void 0:e.startLine,endLine:e.side===`file`?void 0:e.endLine,body:t}).then(n=>{ot(e),pe.startIfMentioned(n.id,t)}),ut=(t,n)=>{let{side:r,startLine:i,endLine:a}=t,o=r===`L`?Ve.lines:He.lines,s=i===a?`line ${r}${i}`:`lines ${r}${i} to ${r}${a}`;return(0,_.jsx)(q_,{repoId:e,draftKey:et(t),title:n?`Add a comment on ${s} (no longer in this file)`:`Add a comment on ${s}`,submitLabel:`Comment`,suggestionSeed:r===`R`&&!n?o.slice(i-1,a).join(`
|
|
60
|
+
`):void 0,onSubmit:e=>lt(t,e),onCancel:()=>ot(t)},`composer:${S0(t)}`)},dt=(0,f.useMemo)(()=>{let t=new Map,n=(e,n)=>t.set(e,[...t.get(e)??[],n]);for(let t of Ze)n(`${t.side}${t.endLine}`,(0,_.jsx)(Q_,{repoId:e,thread:t,actions:fe},t.id));for(let e of nt)it(e)||n(`${e.side}${e.endLine}`,ut(e,!1));return t},[Ze,nt,e,fe,pe,s,Ie,Ve.lines,He.lines,n.path,n.oldPath,_e,ve,h]);(0,f.useEffect)(()=>{if(w===void 0)return;E(!0),O(!1),k(!0),ce(!1);let e=()=>E(!1);return window.addEventListener(`keydown`,e,!0),window.addEventListener(`pointerdown`,e,!0),()=>{window.removeEventListener(`keydown`,e,!0),window.removeEventListener(`pointerdown`,e,!0),e()}},[w]);let ft=(0,f.useRef)(void 0),pt=me&&!je&&!Ie;(0,f.useEffect)(()=>{if(!i||!a)return;let e=`${i.side??``}${i.line??``}`;if(ft.current===e)return;let t=null;if(i.side&&i.line){t=document.getElementById(`diff-${n.anchor}${i.side}${i.line}`);let e=ze.length>0&&D1(Ue,i.side,i.line)!==void 0;if(!t&&(pt||e))return}ft.current=e,(t??v.current)?.scrollIntoView({block:t?`center`:`start`})},[i,a,pt,We,Ue,ze.length,n.anchor]),(0,f.useLayoutEffect)(()=>{x.current&&(S.current=x.current.offsetHeight)});let mt=M||A.length>0||i!==void 0||(v.current?.contains(document.activeElement)??!1),_t=!b&&!mt&&S.current!==void 0,vt=[Fe?.oldBlob,Fe?.newBlob].find(e=>e?.tooLarge),yt=F_(n),bt=Math.min(n.additions+n.deletions+6,60)*20,xt=Fe?.newBlob?.lossy===!0,St=I&&ve===m0,Ct=de.canEdit&&me&&St&&!u&&!xt,wt=Ue.some((e,t)=>e.length>(te[t]?.top??0)+(te[t]?.bottom??0)),Tt=Ie&&!D&&!M&&!_t&&ze.length>0&&wt,Et=()=>ne(Object.fromEntries(Ue.map((e,t)=>[t,{top:e.length,bottom:0}]))),Dt=()=>{window.confirm(`Delete ${n.path} from your working tree?\n\nIts content is kept, and "Undo" in the list of changes at the top of the page brings it back.`)&&(ue(void 0),(async()=>{let t=Ee.data??await R.worktreeFile(e,n.path);await de.remove(n.path,t.oid)})().catch(e=>ue(e instanceof Error?e.message:`Could not delete the file`)))},Ot=()=>{ue(void 0),O(!1),re(!0)},kt=[...Tt?[{label:`Show the whole file`,run:Et}]:[],...o.length>0?[{label:ae?`Show comments`:`Hide comments`,run:()=>oe(e=>!e)}]:[],...Ct&&!M?[{label:`Edit file`,run:Ot},{label:`Delete file…`,danger:!0,run:Dt}]:[]],At=P===`image`&&n.oldOid?ht(e,n.oldOid,n.oldPath??n.path):void 0,jt=P!==`image`||!I?void 0:n.newOid?ht(e,n.newOid,n.path):ve===m0?gt(e,n.path,g??0):void 0,Mt,Nt=!1;F&&P===`image`&&!M?Mt=(0,_.jsx)(S1,{before:At,after:jt}):n.kind===`binary`?Mt=(0,_.jsx)(v0,{children:`Binary file not shown.`}):n.kind===`submodule`?Mt=(0,_.jsxs)(v0,{children:[`Submodule `,n.oldOid?(0,_.jsx)(`code`,{children:n.oldOid.slice(0,7)}):`added`,n.oldOid&&n.newOid?` → `:` `,n.newOid?(0,_.jsx)(`code`,{children:n.newOid.slice(0,7)}):n.status===`deleted`?`removed`:`another commit in the working tree`]}):he&&!ee?Mt=(0,_.jsxs)(v0,{children:[(0,_.jsx)(`button`,{type:`button`,className:`link-button`,onClick:()=>k(!0),children:`Load diff`}),(0,_.jsx)(`span`,{children:`Large diffs are not rendered by default.`})]}):je?Mt=(0,_.jsxs)(v0,{children:[(0,_.jsxs)(`span`,{children:[`Could not load this file: `,je.message]}),(0,_.jsx)(`button`,{type:`button`,className:`link-button`,onClick:()=>void Promise.all([we.refetch(),L.refetch(),De.refetch()]),children:`Retry`})]}):Ie?vt?Mt=(0,_.jsxs)(v0,{children:[`This file is too large to show (`,b0(vt.size),`).`]}):Fe.oldBlob?.binary||Fe.newBlob?.binary||Fe.diff?.binary?Mt=(0,_.jsx)(v0,{children:`Binary file not shown.`}):ze.length===0?Mt=(0,_.jsx)(v0,{children:yt?`File mode changed.`:n.status===`renamed`?`File renamed without changes.`:n.untracked||n.status===`added`?`Empty file.`:`No changes to show.`}):F&&P===`markdown`?Mt=(0,_.jsx)(b1,{oldLines:Ve.lines,newLines:He.lines}):_t?Mt=(0,_.jsx)(`div`,{className:`diff-placeholder`,style:{height:S.current}}):(Nt=!0,Mt=(0,_.jsx)(`div`,{ref:x,children:(0,_.jsx)(d0,{items:We,view:r,anchor:n.anchor,old:Ve,next:He,pairs:Ge,target:i,inserts:dt,highlights:nt,label:`Diff of ${n.path}. Arrow keys move between lines, Shift with arrows selects several, C comments, Enter links to the line.`,onExpand:Ke,onSelectLine:qe,onComment:u?void 0:ct})})):Mt=(0,_.jsx)(`div`,{className:`diff-placeholder`,style:{height:bt},"aria-busy":`true`});let Pt=Nt&&!Ye&&!D,Ft=nt.filter(e=>!Pt||it(e));return(0,_.jsxs)(`section`,{ref:v,className:`file-card`,id:`diff-${n.anchor}`,"aria-label":n.path,children:[(0,_.jsxs)(`header`,{className:`file-header`,style:D&&Ye?x0:void 0,children:[(0,_.jsx)(`button`,{type:`button`,className:`icon-button`,"aria-expanded":!D,"aria-label":D?`Expand file`:`Collapse file`,onClick:()=>O(e=>!e),children:D?(0,_.jsx)(dr,{size:16}):(0,_.jsx)(cr,{size:16})}),me&&(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(`span`,{className:`file-header-count`,title:`${n.additions} additions, ${n.deletions} deletions`,children:n.additions+n.deletions}),(0,_.jsx)(P_,{additions:n.additions,deletions:n.deletions})]}),(0,_.jsx)(`a`,{className:`file-header-path`,href:`#diff-${n.anchor}`,children:(0,_.jsx)(I_,{file:n})}),(0,_.jsx)(y0,{path:n.path}),n.untracked&&(0,_.jsx)(`span`,{className:`label`,children:`Untracked`}),yt&&(0,_.jsx)(`span`,{className:`label`,children:yt}),n.status===`deleted`&&(0,_.jsx)(`span`,{className:`label`,children:`Deleted`}),M&&D&&(0,_.jsx)(`span`,{className:`label label-attention`,title:`The editor is still open in this file, with everything typed in it. Unfold the file to go on.`,children:`Editing`}),(0,_.jsxs)(`span`,{className:`file-header-end`,children:[o.length>0&&(0,_.jsx)(`span`,{className:`file-header-threads`,title:`${o.length} ${o.length===1?`conversation`:`conversations`}`,children:o.length}),P&&me&&!M&&(0,_.jsxs)(`span`,{className:`segmented rich-toggle`,role:`group`,"aria-label":`How to show this file`,children:[(0,_.jsx)(`button`,{type:`button`,className:`segmented-button`,"aria-pressed":!se,"aria-label":`Source diff`,title:`Show the source diff`,onClick:()=>ce(!1),children:(0,_.jsx)(mr,{size:16})}),(0,_.jsx)(`button`,{type:`button`,className:`segmented-button`,"aria-pressed":se,"aria-label":`Rich diff`,title:P===`markdown`?`Show the rendered document with changes marked`:`Show the two pictures`,onClick:()=>{O(!1),ce(!0)},children:(0,_.jsx)(Wr,{size:16})})]}),p&&d&&(0,_.jsxs)(`label`,{className:`viewed-toggle stage-toggle`,title:d===`partial`?`Part of this file's changes is staged. Check to stage the rest.`:`Stage this file for the next commit`,children:[(0,_.jsx)(`input`,{type:`checkbox`,checked:d===`staged`,ref:e=>{e&&(e.indeterminate=d===`partial`)},onChange:()=>p(n,d!==`staged`)}),`Staged`]}),l&&(0,_.jsxs)(`label`,{className:`viewed-toggle`,title:`Mark this file as viewed. The mark is dropped when the file changes.`,children:[(0,_.jsx)(`input`,{type:`checkbox`,checked:c,onChange:e=>l(n.path,e.target.checked)}),`Viewed`]}),me&&I&&!u&&(0,_.jsx)(`button`,{type:`button`,className:`icon-button`,"aria-label":`Edit file`,"aria-pressed":M,disabled:!Ct||M,title:Ct?`Edit this file in place`:xt?`This file is not UTF-8 text: editing it here would damage it`:de.canEdit?`This file cannot be edited here`:`Compare with the working tree to edit files in place`,onClick:Ot,children:(0,_.jsx)($i,{size:16})}),!u&&(0,_.jsx)(`button`,{type:`button`,className:`icon-button`,"aria-label":`Comment on this file`,title:`Comment on this file`,onClick:()=>{O(!1),at({side:`file`})},children:(0,_.jsx)(br,{size:16})}),kt.length>0&&(0,_.jsx)($_,{items:kt})]})]}),le&&(0,_.jsx)(`div`,{className:`flash flash-danger file-editor-flash`,role:`alert`,children:le}),!D&&(rt||Ft.length>0||Qe.length>0)&&(0,_.jsxs)(`div`,{className:`card-threads`,children:[rt&&(0,_.jsx)(q_,{repoId:e,draftKey:et(rt),title:`Add a comment on this file`,submitLabel:`Comment`,onSubmit:e=>lt(rt,e),onCancel:()=>ot(rt)},`composer:file`),Ft.map(e=>ut(e,it(e))),Qe.map(t=>(0,_.jsx)(Q_,{repoId:e,thread:t,actions:fe},t.id))]}),Ye&&(0,_.jsx)(`div`,{hidden:D,children:(0,_.jsx)(f.Suspense,{fallback:(0,_.jsx)(`div`,{className:`diff-placeholder`,style:{height:bt},"aria-busy":`true`}),children:(0,_.jsx)(f0,{file:n,old:Ve,initial:ie,view:r,onClose:()=>re(!1)})})}),!D&&!Ye&&Mt]})});function w0({status:e,onStage:t,onUnstage:n,onCommit:r}){let[i,a]=(0,f.useState)(``),[o,s]=(0,f.useState)(!1),[c,l]=(0,f.useState)(void 0),[u,d]=(0,f.useState)(void 0),p=e.files.length,m=e=>{s(!0),l(void 0),e().catch(e=>l(e instanceof Error?e.message:`git refused`)).finally(()=>s(!1))},h=()=>{e.staged===0||i.trim()===``||o||m(()=>r(i).then(e=>{d(e),a(``)}))};return p===0&&!u?null:(0,_.jsxs)(`section`,{className:`commit-panel`,"aria-label":`Commit`,children:[(0,_.jsxs)(`div`,{className:`commit-panel-head`,children:[(0,_.jsx)(mi,{size:16,className:`range-icon`}),(0,_.jsxs)(`span`,{children:[(0,_.jsxs)(`strong`,{children:[e.staged,` of `,p]}),` `,`changed `,p===1?`file`:`files`,` staged for a commit to `,e.branch?(0,_.jsx)(`code`,{children:e.branch}):`a detached HEAD`]}),(0,_.jsxs)(`span`,{className:`commit-panel-actions`,children:[(0,_.jsx)(`button`,{type:`button`,className:`button button-small`,disabled:o||e.staged===p,onClick:()=>m(()=>t()),children:`Stage all`}),(0,_.jsx)(`button`,{type:`button`,className:`button button-small`,disabled:o||e.staged===0,onClick:()=>m(()=>n()),children:`Unstage all`})]})]}),(0,_.jsxs)(`div`,{className:`commit-panel-form`,children:[(0,_.jsx)(`textarea`,{className:`commit-message`,"aria-label":`Commit message`,placeholder:`Commit message: a short summary, then details after an empty line`,rows:i.includes(`
|
|
61
|
+
`)?4:1,value:i,disabled:o,onChange:e=>{a(e.target.value),d(void 0)},onKeyDown:e=>{e.key===`Enter`&&(e.metaKey||e.ctrlKey)&&h()}}),(0,_.jsx)(`button`,{type:`button`,className:`button button-primary`,disabled:o||e.staged===0||i.trim()===``,title:e.staged===0?`Stage the files this commit should contain`:`Runs git commit with your hooks and signing settings`,onClick:h,children:o?`Working…`:`Commit`})]}),u&&(0,_.jsxs)(`p`,{className:`commit-done`,role:`status`,children:[(0,_.jsx)(nr,{size:16,className:`tone-success`}),` Committed `,(0,_.jsx)(`code`,{children:u.oid.slice(0,7)}),` `,u.subject]}),c&&(0,_.jsxs)(`div`,{className:`flash flash-danger`,role:`alert`,children:[(0,_.jsx)(`strong`,{children:`git did not do that`}),(0,_.jsx)(`pre`,{className:`commit-error`,children:c})]})]})}function T0(e){let t={name:``,path:``,directories:[],files:[]},n=new Map([[``,t]]);for(let r of e){let e=r.path.split(`/`),i=t;for(let t=0;t<e.length-1;t+=1){let r=e.slice(0,t+1).join(`/`),a=n.get(r);a||(a={name:e[t],path:r,directories:[],files:[]},n.set(r,a),i.directories.push(a)),i=a}i.files.push(r)}let r=e=>{let n=e;for(;n!==t&&n.files.length===0&&n.directories.length===1;){let e=n.directories[0];n={...e,name:`${n.name}/${e.name}`}}return{...n,directories:n.directories.map(r)}};return r(t)}var E0=e=>e.slice(e.lastIndexOf(`/`)+1),D0=(0,f.memo)(function({files:e,viewed:t,threadCounts:n,activeAnchor:r}){let[i,a]=(0,f.useState)(``),[o,s]=(0,f.useState)(new Set),c=i.trim().toLowerCase(),l=(0,f.useMemo)(()=>c===``?e:e.filter(e=>e.path.toLowerCase().includes(c)),[e,c]),u=(0,f.useMemo)(()=>T0(l),[l]),d=e=>s(t=>{let n=new Set(t);return n.delete(e)||n.add(e),n}),p=(e,i)=>{let{Icon:a,tone:o,label:s}=L_(e),c=n.get(e.path)??0,l=t.has(e.path);return(0,_.jsx)(`li`,{children:(0,_.jsxs)(`a`,{className:`tree-row tree-file${l?` viewed`:``}`,href:`#diff-${e.anchor}`,"aria-current":e.anchor===r?`location`:void 0,style:{paddingLeft:i*12+8},title:e.oldPath?`${e.oldPath} → ${e.path}`:e.path,children:[(0,_.jsx)(`span`,{className:`tree-icon tone-${o}`,children:(0,_.jsx)(a,{size:16,"aria-label":s})}),(0,_.jsx)(`span`,{className:`tree-name`,children:E0(e.path)}),c>0&&(0,_.jsx)(`span`,{className:`tree-count`,title:`${c} ${c===1?`conversation`:`conversations`}`,children:c}),l&&(0,_.jsx)(nr,{size:12,className:`tree-viewed`,"aria-label":`Viewed`})]})},e.path)},m=(e,t)=>{let n=c!==``||!o.has(e.path);return(0,_.jsxs)(`li`,{children:[(0,_.jsxs)(`button`,{type:`button`,className:`tree-row tree-directory`,"aria-expanded":n,style:{paddingLeft:t*12+8},onClick:()=>d(e.path),children:[n?(0,_.jsx)(cr,{size:12}):(0,_.jsx)(dr,{size:12}),(0,_.jsx)(`span`,{className:`tree-icon tree-folder`,children:n?(0,_.jsx)(ni,{size:16}):(0,_.jsx)($r,{size:16})}),(0,_.jsx)(`span`,{className:`tree-name`,children:e.name})]}),n&&(0,_.jsxs)(`ul`,{children:[e.directories.map(e=>m(e,t+1)),e.files.map(e=>p(e,t+1))]})]},e.path)};return(0,_.jsxs)(`nav`,{className:`file-tree`,"aria-label":`File tree`,children:[(0,_.jsxs)(`label`,{className:`tree-filter`,children:[(0,_.jsx)(ga,{size:16}),(0,_.jsx)(`input`,{type:`search`,placeholder:`Filter changed files`,"aria-label":`Filter changed files`,value:i,onChange:e=>a(e.target.value)})]}),l.length===0?(0,_.jsx)(`p`,{className:`tree-empty`,children:`No files match.`}):(0,_.jsxs)(`ul`,{className:`tree-root`,children:[u.directories.map(e=>m(e,0)),u.files.map(e=>p(e,0))]})]})});function O0({repoId:e,spec:t,onClose:n,onOpen:r}){let i=tt({queryKey:[`pull-proposal`,e,t],queryFn:()=>R.pullProposal(e,t),retry:!1,staleTime:0,gcTime:0}),[a,o]=(0,f.useState)(void 0),[s,c]=(0,f.useState)(void 0),[l,u]=(0,f.useState)(!1),[d,p]=(0,f.useState)(!1),[m,h]=(0,f.useState)(void 0),[g,v]=(0,f.useState)(!1),y=(0,f.useRef)(null);Ga(y);let b=i.data,x=a??b?.title??``,S=s??b?.body??``,C=x!==(b?.title??``)||S!==(b?.body??``);(0,f.useEffect)(()=>{let e=e=>{e.key!==`Escape`||e.isComposing||d||C||n()};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[n,d,C]);let w=b!==void 0&&!b.blockedBy&&!b.existing;return(0,_.jsx)(`div`,{className:`modal-backdrop`,children:(0,_.jsxs)(`div`,{ref:y,className:`dialog modal create-pull-dialog`,role:`dialog`,"aria-modal":`true`,"aria-labelledby":`create-pull-title`,children:[(0,_.jsx)(`h2`,{id:`create-pull-title`,className:`dialog-title`,children:`Open a pull request`}),i.isPending&&(0,_.jsx)(`p`,{className:`loading`,children:`Asking the remote and GitHub…`}),i.isError&&(0,_.jsx)(`div`,{className:`flash flash-danger`,role:`alert`,children:i.error.message}),b&&(b.base||b.head)&&(0,_.jsxs)(`p`,{className:`create-pull-branches`,children:[(0,_.jsx)(Ci,{size:16,className:`range-icon`}),` `,(0,_.jsx)(`code`,{children:b.head}),` into `,(0,_.jsx)(`code`,{children:b.base}),b.repository&&(0,_.jsxs)(_.Fragment,{children:[` `,`on `,(0,_.jsx)(`strong`,{children:b.repository})]})]}),b?.existing&&(0,_.jsxs)(_.Fragment,{children:[(0,_.jsxs)(`div`,{className:`flash flash-attention`,role:`status`,children:[`Pull request #`,b.existing.number,` is already open for these branches.`]}),(0,_.jsxs)(`div`,{className:`dialog-actions`,children:[(0,_.jsxs)(`button`,{type:`button`,className:`button button-primary`,autoFocus:!0,onClick:()=>r(b.existing.number),children:[`Open pull request #`,b.existing.number]}),(0,_.jsx)(`button`,{type:`button`,className:`button`,onClick:n,children:`Close`})]})]}),b?.blockedBy&&(0,_.jsxs)(_.Fragment,{children:[(0,_.jsxs)(`div`,{className:`flash flash-attention`,role:`status`,children:[(0,_.jsx)(`strong`,{children:`A pull request cannot be opened yet`}),(0,_.jsx)(`span`,{children:b.blockedBy})]}),b.hint&&(0,_.jsxs)(`div`,{className:`share-row create-pull-hint`,children:[(0,_.jsx)(`input`,{className:`text-input`,readOnly:!0,value:b.hint,"aria-label":`Command to run`,onFocus:e=>e.target.select()}),(0,_.jsx)(`button`,{type:`button`,className:`icon-button`,"aria-label":`Copy command`,onClick:()=>void navigator.clipboard.writeText(b.hint??``).then(()=>{v(!0),window.setTimeout(()=>v(!1),1500)}),children:(0,_.jsx)(Er,{size:16})}),g&&(0,_.jsx)(`span`,{role:`status`,children:`Copied`})]}),(0,_.jsxs)(`div`,{className:`dialog-actions`,children:[(0,_.jsx)(`button`,{type:`button`,className:`button`,onClick:()=>void i.refetch(),disabled:i.isFetching,children:i.isFetching?`Checking…`:`Check again`}),(0,_.jsx)(`button`,{type:`button`,className:`button`,onClick:n,children:`Close`})]})]}),w&&(0,_.jsxs)(_.Fragment,{children:[(0,_.jsxs)(`label`,{className:`create-pull-field`,children:[(0,_.jsx)(`span`,{children:`Title`}),(0,_.jsx)(`input`,{className:`text-input`,value:x,autoFocus:!0,disabled:d,onChange:e=>o(e.target.value)})]}),(0,_.jsxs)(`label`,{className:`create-pull-field`,children:[(0,_.jsx)(`span`,{children:`Description`}),(0,_.jsx)(`textarea`,{className:`review-summary`,value:S,disabled:d,placeholder:`What does this change, and why? Markdown is supported.`,onChange:e=>c(e.target.value)})]}),(0,_.jsxs)(`label`,{className:`checkbox create-pull-draft`,children:[(0,_.jsx)(`input`,{type:`checkbox`,checked:l,disabled:d,onChange:e=>u(e.target.checked)}),`Open as a draft: not ready for review yet`]}),m&&(0,_.jsxs)(`div`,{className:`flash flash-danger`,role:`alert`,children:[(0,_.jsx)(`strong`,{children:`Not created`}),(0,_.jsx)(`span`,{children:m})]}),(0,_.jsxs)(`p`,{className:`dialog-note`,children:[`This opens a pull request on GitHub`,b?.viewer?(0,_.jsxs)(_.Fragment,{children:[` `,`as `,(0,_.jsx)(`strong`,{children:b.viewer})]}):null,`, where everyone with access to the repository sees it and may be notified. It can be closed on GitHub, not taken back from here.`]}),(0,_.jsxs)(`div`,{className:`dialog-actions`,children:[(0,_.jsx)(`button`,{type:`button`,className:`button button-primary`,disabled:d||x.trim()===``,onClick:()=>{p(!0),h(void 0),R.createPull(e,{spec:t,title:x,body:S,draft:l}).then(e=>r(e.number)).catch(e=>{p(!1),h(e instanceof Error?e.message:`Could not create the pull request`)})},children:d?`Creating…`:l?`Create draft pull request`:`Create pull request`}),(0,_.jsx)(`button`,{type:`button`,className:`button`,disabled:d,onClick:n,children:`Cancel`})]})]})]})})}var k0={open:{label:`Open`,tone:`open`,icon:Ci,verb:`wants to merge`},closed:{label:`Closed`,tone:`closed`,icon:Ei,verb:`wanted to merge`},merged:{label:`Merged`,tone:`merged`,icon:bi,verb:`merged`},unknown:{label:`Pull request`,tone:`unknown`,icon:Ci,verb:`wants to merge`}},A0=new Intl.RelativeTimeFormat(`en-US`,{numeric:`auto`});function j0(e){let t=Math.round((new Date(e).getTime()-Date.now())/1e3);return Math.abs(t)<60?`just now`:Math.abs(t)<3600?A0.format(Math.round(t/60),`minute`):Math.abs(t)<86400?A0.format(Math.round(t/3600),`hour`):A0.format(Math.round(t/86400),`day`)}function M0({pull:e,commits:t,refreshing:n,refreshError:r,onRefresh:i,action:a}){let o=e.draft&&e.state===`open`,s=k0[e.state],c=o?ki:s.icon,l=t===void 0?``:` ${t.toLocaleString(`en-US`)} ${t===1?`commit`:`commits`}`;return(0,_.jsxs)(`div`,{className:`pull-header`,children:[(0,_.jsxs)(`h1`,{className:`page-title`,children:[e.title,` `,(0,_.jsxs)(`span`,{className:`pull-number`,children:[`#`,e.number]})]}),(0,_.jsxs)(`div`,{className:`pull-meta`,children:[(0,_.jsxs)(`span`,{className:`state-badge state-${o?`draft`:s.tone}`,children:[(0,_.jsx)(c,{size:16}),` `,o?`Draft`:s.label]}),(0,_.jsxs)(`span`,{className:`pull-merge-line`,children:[e.author?(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(`strong`,{children:e.author}),` `,s.verb]}):`To merge`,l,` into `,(0,_.jsx)(`code`,{children:e.baseRef}),e.headRef&&(0,_.jsxs)(_.Fragment,{children:[` `,`from `,(0,_.jsx)(`code`,{children:e.headRef})]})]}),(0,_.jsxs)(`span`,{className:`pull-meta-end`,children:[e.url&&(0,_.jsxs)(`a`,{href:e.url,target:`_blank`,rel:`noreferrer noopener`,children:[`View on GitHub `,(0,_.jsx)(Wi,{size:12})]}),(0,_.jsxs)(`span`,{className:`pull-imported`,title:new Date(e.importedAt).toLocaleString(`en-US`),children:[`Imported `,j0(e.importedAt)]}),(0,_.jsxs)(`button`,{type:`button`,className:`button button-small`,disabled:n,onClick:i,title:`Fetch the pull request and its conversations again`,children:[(0,_.jsx)(Oa,{size:16}),` `,n?`Refreshing…`:`Refresh`]}),a]})]}),e.notice&&(0,_.jsx)(`div`,{className:`flash flash-attention`,role:`status`,children:e.notice}),r&&(0,_.jsxs)(`div`,{className:`flash flash-danger`,role:`alert`,children:[(0,_.jsx)(`strong`,{children:`Could not refresh`}),(0,_.jsx)(`span`,{children:r})]}),e.body.trim()!==``&&(0,_.jsxs)(`details`,{className:`pull-body`,children:[(0,_.jsx)(`summary`,{children:`Description`}),(0,_.jsx)(Pg,{text:e.body})]})]})}var N0=[{value:`comment`,label:`Comment`,note:`General feedback without explicit approval.`},{value:`approve`,label:`Approve`,note:`Feedback, and approval to merge these changes.`},{value:`request_changes`,label:`Request changes`,note:`Feedback that must be addressed before merging.`}];function P0(e){if(e.placement===`reply`)return`Reply in the conversation on ${e.path}`;if(e.placement===`summary`)return`In the review summary: ${e.path} is not part of this pull request`;if(e.placement===`file`)return`${e.path}, on the file`;let t=e.startLine===e.endLine?`line ${e.side}${e.endLine}`:`lines ${e.side}${e.startLine}–${e.side}${e.endLine}`;return`${e.path}, ${t}`}function F0({repoId:e,pull:t,onClose:n}){let[r,i]=(0,f.useState)(``),[a,o]=(0,f.useState)(`comment`),[s,c]=(0,f.useState)(void 0),[l,u]=(0,f.useState)(!1),[d,p]=(0,f.useState)(void 0),[m,h]=(0,f.useState)(void 0),g=tt({queryKey:[`review-draft`,e,t.number,s],queryFn:()=>R.draftReview(e,t.number,s),placeholderData:me,enabled:m===void 0}),v=(0,f.useRef)(null);Ga(v);let y=r.trim()!==``&&m===void 0;(0,f.useEffect)(()=>{let e=e=>{e.key!==`Escape`||e.isComposing||l||y||n()};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[n,l,y]);let b=g.data?.items??[],x=e=>s?s.includes(e.commentId):e.selected,S=b.filter(x).map(e=>e.commentId),C=e=>c(S.includes(e)?S.filter(t=>t!==e):[...S,e]),w=g.data?.blockedBy,T=g.data?.ownPull===!0,E=S.length===0&&r.trim()===``&&a===`comment`&&d===void 0;return(0,_.jsx)(`div`,{className:`modal-backdrop`,children:(0,_.jsxs)(`div`,{ref:v,className:`dialog modal review-dialog`,role:`dialog`,"aria-modal":`true`,"aria-labelledby":`review-dialog-title`,children:[(0,_.jsxs)(`h2`,{id:`review-dialog-title`,className:`dialog-title`,children:[`Review pull request #`,t.number]}),m?(0,_.jsxs)(_.Fragment,{children:[(0,_.jsxs)(`p`,{className:`review-done`,role:`status`,children:[(0,_.jsx)(ar,{size:16,className:`tone-success`}),` Published to GitHub`,m.comments>0?` with ${m.comments} ${m.comments===1?`comment`:`comments`}`:``,`.`]}),(0,_.jsxs)(`div`,{className:`dialog-actions`,children:[m.url&&(0,_.jsxs)(`a`,{className:`button`,href:m.url,target:`_blank`,rel:`noreferrer noopener`,children:[`View the review on GitHub `,(0,_.jsx)(Wi,{size:12})]}),(0,_.jsx)(`button`,{type:`button`,className:`button button-primary`,autoFocus:!0,onClick:n,children:`Done`})]})]}):(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(`textarea`,{className:`review-summary`,"aria-label":`Review summary`,placeholder:`Leave a summary (optional)`,value:r,autoFocus:!0,disabled:l,onChange:e=>i(e.target.value)}),(0,_.jsxs)(`fieldset`,{className:`review-verdicts`,disabled:l,children:[(0,_.jsx)(`legend`,{className:`sr-only`,children:`Verdict`}),N0.map(e=>(0,_.jsxs)(`label`,{className:`review-verdict`,children:[(0,_.jsx)(`input`,{type:`radio`,name:`review-verdict`,value:e.value,checked:a===e.value,disabled:T&&e.value!==`comment`,onChange:()=>o(e.value)}),(0,_.jsxs)(`span`,{children:[(0,_.jsx)(`strong`,{children:e.label}),(0,_.jsx)(`span`,{className:`review-verdict-note`,children:e.note})]})]},e.value)),T&&(0,_.jsx)(`p`,{className:`dialog-note`,children:`This is your own pull request: GitHub accepts only a comment on it.`})]}),(0,_.jsx)(`h3`,{className:`review-items-title`,children:b.length===0?`No unpublished comments`:`Comments to publish: ${S.length} of ${b.length}`}),g.isPending&&(0,_.jsx)(`p`,{className:`loading`,children:`Loading…`}),g.isError&&(0,_.jsx)(`div`,{className:`flash flash-danger`,role:`alert`,children:g.error.message}),b.length===0&&g.data&&(0,_.jsx)(`p`,{className:`dialog-note`,children:`Comments you write on this pull request wait here until you publish them. A summary or a verdict can be published on its own.`}),(0,_.jsx)(`ul`,{className:`review-items`,children:b.map(e=>(0,_.jsxs)(`li`,{className:`review-item${x(e)?``:` excluded`}`,children:[(0,_.jsxs)(`label`,{className:`review-item-head`,children:[(0,_.jsx)(`input`,{type:`checkbox`,checked:x(e),disabled:l,onChange:()=>C(e.commentId)}),(0,_.jsx)(`span`,{className:`review-item-where`,children:P0(e)}),e.authorKind===`agent`&&(0,_.jsx)(`span`,{className:`label`,children:`Agent`}),e.displaced&&(0,_.jsx)(`span`,{className:`label label-attention`,children:`Not on its line`})]}),(0,_.jsx)(`div`,{className:`review-item-body`,children:(0,_.jsx)(Pg,{text:e.body})})]},e.commentId))}),w&&(0,_.jsxs)(`div`,{className:`flash flash-attention`,role:`status`,children:[(0,_.jsx)(`strong`,{children:`Publishing is not available`}),(0,_.jsx)(`span`,{children:w})]}),d&&(0,_.jsxs)(`div`,{className:`flash flash-danger`,role:`alert`,children:[(0,_.jsx)(`strong`,{children:`Not published`}),(0,_.jsx)(`span`,{children:d})]}),(0,_.jsxs)(`p`,{className:`dialog-note`,children:[`Publishing posts this to GitHub`,t.viewer?(0,_.jsxs)(_.Fragment,{children:[` `,`as `,(0,_.jsx)(`strong`,{children:t.viewer})]}):null,`, where everyone with access to the pull request can read it. It cannot be taken back from here. Each comment ends with an invisible marker, so publishing again never posts it twice.`]}),(0,_.jsxs)(`div`,{className:`dialog-actions`,children:[(0,_.jsx)(`button`,{type:`button`,className:`button button-primary`,disabled:l||w!==void 0||E||g.isFetching,onClick:()=>{u(!0),p(void 0),R.publishReview(e,t.number,{body:r,verdict:a,commentIds:S}).then(h).catch(e=>p(e instanceof Error?e.message:`Could not publish the review`)).finally(()=>u(!1))},children:l?`Publishing…`:`Publish to GitHub`}),(0,_.jsx)(`button`,{type:`button`,className:`button`,disabled:l,onClick:n,children:`Cancel`})]})]})]})})}var I0=100,L0=[{key:vt,value:vt,text:`Working tree`,note:`uncommitted`},{key:yt,value:yt,text:`Staged`,note:`index`}];function R0(e){return{key:`${e.kind}:${e.name}`,value:e.name,text:e.name,note:e.isDefault?`default`:void 0}}var z0=e=>/^(?:HEAD|[A-Z_]+_HEAD)$/.test(e)||/[~^@]/.test(e)||/^[0-9a-f]{7,64}$/i.test(e),B0=(e,t)=>t===``||e.toLowerCase()===t?0:e.toLowerCase().startsWith(t)?1:2;function V0({role:e,label:t,title:n,selected:r,refs:i,commits:a,offerLocalChanges:o,onSelect:s}){let[c,l]=(0,f.useState)(!1),[u,d]=(0,f.useState)(``),[p,m]=(0,f.useState)(`branches`),[h,g]=(0,f.useState)(0),v=(0,f.useRef)(null),y=(0,f.useRef)(null),b=(0,f.useId)(),{options:x,hidden:S}=(0,f.useMemo)(()=>{let e=u.trim().toLowerCase(),t=t=>e===``||t.toLowerCase().includes(e);if(p===`commits`){let n=(a??[]).filter(n=>t(n.subject)||n.oid.startsWith(e)),r=n.slice(0,I0).map(e=>({key:e.oid,value:e.oid,text:e.subject||`(no message)`,note:`${e.oid.slice(0,7)} · ${e.authorDate.slice(0,10)}`})),i=u.trim();return i!==``&&z0(i)&&!n.some(e=>e.oid.startsWith(i.toLowerCase()))&&r.push({key:`typed`,value:i,text:i,note:`use this revision`}),{options:r,hidden:Math.max(0,n.length-I0)}}let n=(p===`branches`?i?.branches??[]:i?.tags??[]).filter(e=>t(e.name)).map((t,n)=>({ref:t,index:n,rank:B0(t.name,e)})).sort((e,t)=>e.rank-t.rank||e.index-t.index).map(e=>e.ref),r=[];o&&p===`branches`&&r.push(...L0.filter(e=>t(e.text))),r.push(...n.slice(0,I0).map(R0));let s=u.trim();if(s!==``&&!n.some(e=>e.name===s)){let t=Mt(s),i={key:`typed`,value:s,text:t===void 0?s:`Pull request #${t}`,note:t===void 0?`use this revision`:`fetch and open`},a=n.some(t=>t.name.toLowerCase().startsWith(e));t!==void 0||z0(s)&&!a?r.unshift(i):r.push(i)}return{options:r,hidden:Math.max(0,n.length-I0)}},[u,p,i,a,o]);(0,f.useEffect)(()=>g(0),[u,p]);let C=e=>`${b}-option-${e}`;(0,f.useEffect)(()=>{c&&document.getElementById(`${b}-option-${h}`)?.scrollIntoView({block:`nearest`})},[c,h,b]);let w=e=>{l(!1),d(``),e&&y.current?.focus()};(0,f.useEffect)(()=>{if(!c)return;let e=e=>{v.current?.contains(e.target)||w(!1)};return document.addEventListener(`mousedown`,e),()=>document.removeEventListener(`mousedown`,e)},[c]);let T=e=>{e&&(w(!0),e.value!==r&&s(e.value))},E=e=>{e.key===`Escape`?(e.preventDefault(),w(!0)):e.key===`ArrowDown`?(e.preventDefault(),g(e=>Math.min(e+1,x.length-1))):e.key===`ArrowUp`?(e.preventDefault(),g(e=>Math.max(e-1,0))):e.key===`Enter`&&e.target instanceof HTMLInputElement&&(e.preventDefault(),T(x[h]))},D=e===`base`?`Choose a base ref`:`Choose a head ref`;return(0,_.jsxs)(`div`,{className:`picker`,ref:v,children:[(0,_.jsxs)(`button`,{ref:y,type:`button`,className:`ref-pill`,title:n,"aria-haspopup":`dialog`,"aria-expanded":c,onClick:()=>c?w(!1):l(!0),children:[(0,_.jsxs)(`span`,{className:`ref-pill-role`,children:[e,`:`]}),` `,(0,_.jsx)(`strong`,{children:t}),(0,_.jsx)(La,{size:16,className:`ref-pill-caret`})]}),c&&(0,_.jsxs)(`div`,{className:`picker-panel`,role:`dialog`,"aria-label":D,onKeyDown:E,children:[(0,_.jsxs)(`div`,{className:`picker-header`,children:[(0,_.jsx)(`span`,{children:D}),(0,_.jsx)(`button`,{type:`button`,className:`icon-button`,"aria-label":`Close`,onClick:()=>w(!0),children:(0,_.jsx)(Ua,{size:16})})]}),(0,_.jsx)(`div`,{className:`picker-search`,children:(0,_.jsx)(`input`,{autoFocus:!0,type:`text`,className:`text-input`,placeholder:p===`branches`?`Find a branch or type a revision`:p===`tags`?`Find a tag`:`Find a commit by its message or id`,"aria-label":`Filter refs`,role:`combobox`,"aria-expanded":`true`,"aria-autocomplete":`list`,"aria-controls":b,"aria-activedescendant":x.length>0?C(h):void 0,value:u,onChange:e=>d(e.target.value)})}),(0,_.jsx)(`div`,{className:`picker-tabs`,role:`tablist`,children:[`branches`,`tags`,`commits`].map(e=>(0,_.jsx)(`button`,{type:`button`,role:`tab`,"aria-selected":p===e,className:`picker-tab`,onClick:()=>m(e),children:e===`branches`?`Branches`:e===`tags`?`Tags`:`Commits`},e))}),(0,_.jsxs)(`ul`,{className:`picker-list`,id:b,role:`listbox`,"aria-label":D,children:[x.map((e,t)=>(0,_.jsxs)(`li`,{id:C(t),role:`option`,"aria-selected":e.value===r||e.value===n,className:`picker-option${t===h?` active`:``}`,onMouseEnter:()=>g(t),onClick:()=>T(e),children:[(0,_.jsx)(`span`,{className:`picker-check`,children:(e.value===r||e.value===n)&&(0,_.jsx)(nr,{size:16})}),(0,_.jsx)(`span`,{className:`picker-option-text`,children:e.text}),e.note&&(0,_.jsx)(`span`,{className:`label`,children:e.note})]},e.key)),(p===`commits`?a===void 0:i===void 0)&&(0,_.jsx)(`li`,{className:`picker-empty`,children:`Loading…`}),(p===`commits`?a!==void 0:i!==void 0)&&x.length===0&&(0,_.jsx)(`li`,{className:`picker-empty`,children:`Nothing to show.`}),S>0&&(0,_.jsxs)(`li`,{className:`picker-empty`,children:[S.toLocaleString(`en-US`),` more. Keep typing to narrow the list.`]})]})]})]})}var H0=[],U0=(e,t)=>`${e.toLocaleString(`en-US`)} ${t}${e===1?``:`s`}`,W0=e=>/^[0-9a-f]{40}$|^[0-9a-f]{64}$/.test(e);function G0(e){return e.kind===`worktree`?vt:e.kind===`index`?yt:e.expr}function K0(e){return e.kind===`worktree`?`Working tree`:e.kind===`index`?`Staged`:W0(e.expr)?e.expr.slice(0,7):e.expr.replace(/^refs\/agentic-diff\/(?:shared\/|pr\/(\d+)\/(head|base)$)/,(e,t,n)=>t?n===`base`?`base of pull request #${t}`:`pull request #${t}`:``)}function q0(e){return e===`:worktree`?{kind:`worktree`}:e===`:staged`?{kind:`index`}:{kind:`rev`,expr:e}}var J0=e=>e?.kind===`rev`?e.oid:void 0;function Y0({status:e}){return e.state===`clean`?(0,_.jsxs)(`span`,{className:`merge-note`,children:[(0,_.jsx)(nr,{size:16,className:`tone-success`}),(0,_.jsx)(`strong`,{className:`tone-success`,children:`Able to merge.`}),` These branches can be automatically merged.`]}):e.state===`unrelated`?(0,_.jsxs)(`span`,{className:`merge-note`,children:[(0,_.jsx)(Ua,{size:16,className:`tone-danger`}),(0,_.jsx)(`strong`,{className:`tone-danger`,children:`Nothing in common.`}),` These histories share no commit, so they cannot be merged as they are.`]}):(0,_.jsxs)(`span`,{className:`merge-note`,title:e.files.join(`
|
|
62
|
+
`),children:[(0,_.jsx)(Ua,{size:16,className:`tone-danger`}),(0,_.jsx)(`strong`,{className:`tone-danger`,children:`Can’t automatically merge.`}),` `,U0(e.files.length,`file`),` would conflict.`]})}function X0({error:e,pull:t}){let n=e instanceof Error?e.message:`Something went wrong`,r=(e instanceof lt?e.code:void 0)===`rev_not_found`?`Revision not found`:t===void 0?`Cannot show this comparison`:`Cannot show pull request #${t}`;return(0,_.jsxs)(`div`,{className:`flash flash-danger`,role:`alert`,children:[(0,_.jsx)(`strong`,{children:r}),(0,_.jsx)(`span`,{children:n})]})}function Z0({view:e,onChange:t}){return(0,_.jsx)(`div`,{className:`segmented`,role:`group`,"aria-label":`Diff view`,children:[`split`,`unified`].map(n=>(0,_.jsx)(`button`,{type:`button`,className:`segmented-button`,"aria-pressed":e===n,onClick:()=>t(n),children:n===`split`?`Split`:`Unified`},n))})}function Q0({label:e,text:t}){let[n,r]=(0,f.useState)(!1);return(0,_.jsxs)(`div`,{className:`share-row`,children:[(0,_.jsx)(`span`,{className:`share-label`,children:e}),(0,_.jsx)(`input`,{className:`text-input`,readOnly:!0,value:t,"aria-label":e,onFocus:e=>e.target.select()}),(0,_.jsx)(`button`,{type:`button`,className:`icon-button`,"aria-label":`Copy ${e.toLowerCase()}`,onClick:()=>{navigator.clipboard.writeText(t).then(()=>{r(!0),window.setTimeout(()=>r(!1),1500)})},children:n?(0,_.jsx)(nr,{size:16}):(0,_.jsx)(Er,{size:16})})]})}function $0({route:e,pull:t}){let[n,r]=(0,f.useState)(!1),i=tt({queryKey:[`share`,e.repoId,e.spec,e.view,e.ignoreWhitespace],queryFn:()=>R.share(e.repoId,e.spec,e.view,e.ignoreWhitespace),enabled:n&&e.pull===void 0});return e.pull===void 0?(0,_.jsxs)(`details`,{className:`share`,onToggle:e=>r(e.currentTarget.open),children:[(0,_.jsxs)(`summary`,{className:`button`,children:[(0,_.jsx)(Vi,{size:16}),` Copy link`]}),(0,_.jsxs)(`div`,{className:`share-panel`,children:[i.isPending&&(0,_.jsx)(`p`,{className:`loading`,children:`Loading…`}),i.isError&&(0,_.jsx)(`p`,{children:i.error.message}),i.data?.available===!1&&(0,_.jsx)(`p`,{children:i.data.reason}),i.data?.available&&(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(Q0,{label:`Command`,text:i.data.command}),(0,_.jsx)(Q0,{label:`Link`,text:i.data.link}),(0,_.jsx)(`p`,{className:`share-note`,children:`The command works anywhere. The link works when the other person already has agentic-diff running. Both carry the repository address and the commits, never code or comments.`})]}),(0,_.jsx)(Zg,{repoId:e.repoId,spec:e.spec})]})]}):t?.url?(0,_.jsxs)(`details`,{className:`share`,children:[(0,_.jsxs)(`summary`,{className:`button`,children:[(0,_.jsx)(Vi,{size:16}),` Copy link`]}),(0,_.jsxs)(`div`,{className:`share-panel`,children:[(0,_.jsx)(Q0,{label:`Command`,text:It(t.url)}),(0,_.jsx)(Q0,{label:`Link`,text:t.url}),(0,_.jsx)(`p`,{className:`share-note`,children:`The command opens this pull request in agentic-diff on another machine. Comments that are not published stay on this one.`})]})]}):null}var ev=`agentic-diff.tree`;function tv(){try{return window.localStorage.getItem(ev)!==`closed`}catch{return!0}}var nv=new Set;function rv(){let e=(0,f.useRef)(Promise.resolve());return(0,f.useCallback)(t=>{let n=e.current.then(t,t);return e.current=n.catch(()=>void 0),n},[])}function iv({route:e,hash:t}){let{repoId:n,spec:r,ignoreWhitespace:i,view:a,pull:o,range:s}=e;Xa(n);let c=y(),[l]=(0,f.useState)(()=>({spec:r,pull:o,list:b_()})),u=l.spec===r&&l.pull===o?l.list:[],d=tt({queryKey:[`pull`,n,o],queryFn:async()=>{try{return await R.pull(n,o)}catch(t){if(t instanceof lt&&t.code===`pull_not_imported`)return R.importPull(n,o,e.remote);throw t}},enabled:o!==void 0,retry:!1}),p=nt({mutationFn:t=>R.importPull(n,t,e.remote),onSuccess:e=>c.setQueryData([`pull`,n,e.number],e)}),m=p.variables===o,h=(0,f.useMemo)(()=>{try{return Ct(r)}catch{return}},[r]),g=tt({queryKey:[`repo`,n],queryFn:()=>R.repo(n)}),v=tt({queryKey:[`refs`,n],queryFn:()=>R.refs(n)}),b=tt({queryKey:[`resolve`,n,r,i,s],queryFn:()=>R.resolve(n,r,i,s),enabled:o===void 0||d.data!==void 0,placeholderData:me}),x=b.data,S=tt({queryKey:[`files`,n,x?.diffFrom,x?.diffTo,i],queryFn:()=>R.files(n,x.diffFrom,x.diffTo,i),enabled:x!==void 0,placeholderData:me}),C=b.isPlaceholderData||S.isPlaceholderData,w=(0,f.useRef)(void 0);x&&S.data&&!C&&(w.current={sides:x,list:S.data});let T=!b.isError&&!(o!==void 0&&d.isError),E=C?T?w.current?.sides??x:void 0:x,D=C?T?w.current?.list:void 0:S.data,O=(0,f.useRef)(C);O.current=C;let ee=(0,f.useCallback)(()=>O.current,[]),k=J0(E?.base),te=J0(E?.head)??(E?g.data?.head.oid:void 0),ne=[...new Set([te,k,g.data?.head.oid].filter(e=>typeof e==`string`&&/^[0-9a-f]{40,64}$/.test(e)))],A=tt({queryKey:[`recent-commits`,n,ne.join(`,`)],queryFn:()=>R.recentCommits(n,ne),enabled:ne.length>0,staleTime:3e4}),j=tt({queryKey:[`commits`,n,k,te],queryFn:()=>R.commits(n,k,te),enabled:k!==void 0&&te!==void 0,staleTime:1/0,placeholderData:me}),M={data:k!==void 0&&te!==void 0?j.data:void 0},re=E?.mode===`merge-base`&&k!==void 0&&J0(E.head)!==void 0,ie=tt({queryKey:[`merge-status`,n,k,J0(E?.head)],queryFn:()=>R.mergeStatus(n,k,J0(E?.head)),enabled:re,staleTime:1/0}),N=E?Nt(E):void 0,ae=E?.range!==void 0,oe=tt({queryKey:[`threads`,n,N,E?.diffFrom,E?.diffTo],queryFn:()=>R.syncThreads(n,N,E.diffFrom,E.diffTo),enabled:N!==void 0&&D!==void 0&&!ae,placeholderData:me}),se=ae?void 0:oe.data?.threads,ce=J_(n),{threadsByFile:le,threadCounts:ue,detached:de,unresolved:fe,unpublished:pe}=(0,f.useMemo)(()=>{let e=new Map,t=[],n=se??[];for(let r of n){let n=r.detached?void 0:D?.files.find(e=>(r.side===`L`?e.oldPath??e.path:e.path)===r.path);n?e.set(n.path,[...e.get(n.path)??[],r]):t.push(r)}return{threadsByFile:e,threadCounts:new Map([...e].map(([e,t])=>[e,t.length])),detached:t,unresolved:n.filter(e=>e.state===`open`).length,unpublished:n.reduce((e,t)=>e+t.comments.filter(e=>!e.published).length,0)}},[se,D]),P=rv(),F=(0,f.useMemo)(()=>[`viewed`,n,N,E?.diffFrom,E?.diffTo],[n,N,E?.diffFrom,E?.diffTo]),he=tt({queryKey:F,queryFn:()=>R.viewed(n,N,E.diffFrom,E.diffTo),enabled:N!==void 0&&E!==void 0&&!ae,placeholderData:me}),ge=(0,f.useMemo)(()=>ae||!he.data?nv:new Set(he.data.paths),[ae,he.data]),_e=(0,f.useCallback)((e,t)=>{if(!N||!E||O.current)return;c.setQueryData(F,n=>{let r=new Set(n?.paths);return t?r.add(e):r.delete(e),{paths:[...r]}});let r={scope:N,from:E.diffFrom,to:E.diffTo,path:e,viewed:t};P(()=>R.setViewed(n,r)).then(e=>c.setQueryData(F,e),()=>c.invalidateQueries({queryKey:F}))},[c,P,n,N,E,F]),ve=E!==void 0&&!ae&&(E.diffTo===`:worktree`||E.diffTo===`:staged`),ye=(0,f.useMemo)(()=>[`staging`,n],[n]),I=tt({queryKey:ye,queryFn:()=>R.staging(n),enabled:ve}),[be,xe]=(0,f.useState)(void 0),Se=be?.spec===r?be.message:void 0,Ce=(0,f.useCallback)(e=>{c.setQueryData(ye,e),Ja(c,[`index`])},[c,ye]),we=(0,f.useMemo)(()=>new Map((I.data?.files??[]).map(e=>[e.path,e])),[I.data]),L=E!==void 0&&E.diffFrom===g.data?.head.oid,Te=e=>{if(!ve||!I.data)return;let t=we.get(e.path);return t?t.staged?t.unstaged?`partial`:`staged`:`unstaged`:L?E?.diffTo===`:staged`?`staged`:`unstaged`:void 0},Ee=(0,f.useCallback)((e,t)=>{let i=e.oldPath?[e.path,e.oldPath]:[e.path];xe(void 0),P(()=>t?R.stage(n,i):R.unstage(n,i)).then(Ce,e=>xe({spec:r,message:e instanceof Error?e.message:`git refused`}))},[P,n,Ce,r]),[De,Oe]=(0,f.useState)(void 0),ke=(0,f.useRef)(void 0),Ae=t!==ke.current,je=Ae?c_(t):De;(0,f.useEffect)(()=>{Ae&&Oe(void 0)},[Ae]);let Me=(0,f.useCallback)((e,t,n)=>{let r={anchor:e,side:t,line:n};ke.current=l_(r),Oe(r),h_(`${window.location.pathname}${window.location.search}${ke.current}`,{replace:!0})},[]),Ne=t=>h_(a_({...e,pull:void 0,remote:void 0,range:void 0,spec:Tt(t)})),Pe=e=>t=>{let r=Mt(t);r===void 0?Ne(e(q0(t))):h_(o_(n,r,a))},Fe=(0,f.useCallback)(t=>`${a_({...e,range:t})}`,[e]),Ie=t=>{r_(t),h_(`${a_({...e,view:t})}${window.location.hash}`,{replace:!0})},Le=t=>{h_(`${a_({...e,ignoreWhitespace:t})}${window.location.hash}`,{replace:!0})},[Re,ze]=(0,f.useState)(!1),[Be,Ve]=(0,f.useState)(!1),[He,Ue]=(0,f.useState)(!1),[We,Ge]=(0,f.useState)(!1),[Ke,qe]=(0,f.useState)(!1),[Je,Ye]=(0,f.useState)(!1),[Xe,Ze]=(0,f.useState)(tv),Qe=()=>Ze(e=>{try{window.localStorage.setItem(ev,e?`closed`:`open`)}catch{}return!e});B1({"?":()=>qe(!0),f:()=>Ue(!0),n:()=>U1(1),p:()=>U1(-1),t:()=>{Xe||Qe(),window.setTimeout(()=>document.querySelector(`.tree-filter input`)?.focus(),0)},v:()=>{let e=V1()?.getAttribute(`aria-label`);e&&!ae&&_e(e,!ge.has(e))},s:()=>{let e=V1()?.getAttribute(`aria-label`),t=D?.files.find(t=>t.path===e),n=t?Te(t):void 0;t&&n&&Ee(t,n!==`staged`)}});let $e=J0(E?.head),et=E?.diffTo===`:worktree`&&!ae,rt=E!==void 0&&!ae&&($e===void 0||$e===g.data?.head.oid),it=rt||!E?void 0:`Check out ${K0(h?.head??{kind:`worktree`})} to apply suggestions to it.`,at=d.error??g.error??b.error??S.error,ot=S.dataUpdatedAt,st=(0,f.useMemo)(()=>{let e=E?.range,t=M.data?.commits;if(!e||!t)return;let n=t.findIndex(t=>t.oid===e.to),r=t.findIndex(t=>t.oid===e.from);return n<0||r<n?void 0:t.slice(n,r+1)},[E?.range,M.data]),ct=D?.totals,ut=h?.base.kind===`rev`&&h.head.kind===`rev`,dt=h?.mode===`merge-base`;return(0,_.jsx)(co,{repoId:n,repoRoot:g.data?.root,spec:r,scope:N,scratch:E?.head.kind===`rev`,children:(0,_.jsxs)(k_,{repoId:n,canEdit:et,canApply:rt,applyBlockedBy:it,children:[(0,_.jsxs)(`header`,{className:`app-header`,children:[(0,_.jsx)(`span`,{className:`app-name`,children:`agentic-diff`}),g.data&&(0,_.jsxs)(`span`,{className:`app-repo`,title:g.data.root,children:[(0,_.jsx)(pa,{size:16}),` `,g.data.name]}),(0,_.jsx)(`button`,{type:`button`,className:`icon-button app-header-end`,"aria-label":`Keyboard shortcuts`,title:`Keyboard shortcuts (?)`,onClick:()=>qe(!0),children:(0,_.jsx)(sa,{size:16})}),(0,_.jsxs)(`button`,{type:`button`,className:`button`,"aria-pressed":Be,disabled:N===void 0,onClick:()=>Ve(e=>!e),children:[(0,_.jsx)(Cr,{size:16}),` Agent`]})]}),(0,_.jsxs)(`main`,{className:`page${Be?` with-chat`:``}`,children:[(0,_.jsxs)(`div`,{className:`page-narrow`,children:[o===void 0?(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(`h1`,{className:`page-title`,children:`Comparing changes`}),(0,_.jsx)(`p`,{className:`page-subtitle`,children:`Choose two branches, tags or commits to see what changed, or compare with your uncommitted work.`})]}):d.data?(0,_.jsx)(M0,{pull:d.data,commits:M.data?.total,refreshing:p.isPending&&m,refreshError:m?p.error?.message:void 0,onRefresh:()=>p.mutate(o),action:s===void 0&&(0,_.jsxs)(`button`,{type:`button`,className:`button button-small button-primary`,onClick:()=>Ge(!0),title:`See what would be published to GitHub, then publish it`,children:[(0,_.jsx)(_r,{size:16}),` Review changes`,pe>0&&(0,_.jsx)(`span`,{className:`counter`,children:pe})]})}):!d.error&&(0,_.jsxs)(`p`,{className:`loading`,children:[`Fetching pull request #`,o,`…`]}),u.map(e=>(0,_.jsx)(`div`,{className:`flash flash-attention`,role:`status`,children:e},e)),o!==void 0&&re&&ie.data&&d.data?.state!==`merged`&&d.data?.state!==`closed`&&(0,_.jsx)(`div`,{className:`range-bar`,children:(0,_.jsx)(Y0,{status:ie.data})}),h&&o===void 0&&(0,_.jsxs)(`div`,{className:`range-bar`,children:[(0,_.jsx)(_i,{size:16,className:`range-icon`}),(0,_.jsx)(V0,{role:`base`,label:K0(h.base),title:J0(E?.base),selected:G0(h.base),refs:v.data,commits:A.data?.commits,offerLocalChanges:!1,onSelect:Pe(e=>({...h,base:e}))}),(0,_.jsxs)(`button`,{type:`button`,className:`mode-toggle`,disabled:h.base.kind!==`rev`,"aria-label":dt?`Three-dot comparison. Switch to two-dot.`:`Two-dot comparison. Switch to three-dot.`,title:dt?`Three dots: what the compare side changed since it branched off. Click for a direct two-dot diff.`:`Two dots: the direct difference between the two sides. Click for a three-dot comparison.`,onClick:()=>Ne({...h,mode:dt?`direct`:`merge-base`}),children:[(0,_.jsx)(qn,{size:16}),(0,_.jsx)(`span`,{"aria-hidden":`true`,children:dt?`...`:`..`})]}),(0,_.jsx)(V0,{role:`compare`,label:K0(h.head),title:J0(E?.head),selected:G0(h.head),refs:v.data,commits:A.data?.commits,offerLocalChanges:!0,onSelect:Pe(e=>({...h,head:e}))}),ut&&(0,_.jsx)(`button`,{type:`button`,className:`icon-button`,"aria-label":`Swap base and compare`,title:`Swap base and compare`,onClick:()=>Ne({...h,base:h.head,head:h.base}),children:(0,_.jsx)(Xn,{size:16})}),re&&ie.data&&(0,_.jsx)(Y0,{status:ie.data}),E&&!re&&(0,_.jsx)(`span`,{className:`range-note`,children:E.mode===`merge-base`&&E.mergeBase?(0,_.jsxs)(_.Fragment,{children:[`Changes since the merge base `,(0,_.jsx)(`code`,{children:E.mergeBase.slice(0,7)})]}):`Direct comparison of the two sides`}),ut&&E&&(ct?.files??0)>0&&(0,_.jsxs)(`button`,{type:`button`,className:`button range-bar-end`,onClick:()=>Ye(!0),title:`Open a pull request on GitHub for these two branches`,children:[(0,_.jsx)(Ci,{size:16}),` Create pull request`]})]}),at?(0,_.jsx)(X0,{error:at,pull:o}):null,(0,_.jsx)(Lg,{}),(0,_.jsx)(M_,{}),ve&&I.data&&(0,_.jsx)(w0,{status:I.data,onStage:e=>P(()=>R.stage(n,e)).then(Ce),onUnstage:e=>P(()=>R.unstage(n,e)).then(Ce),onCommit:e=>P(()=>R.commit(n,e)).then(e=>(Ja(c,[`refs`,`index`]),e))}),Se&&(0,_.jsxs)(`div`,{className:`flash flash-danger`,role:`alert`,children:[(0,_.jsx)(`strong`,{children:`git did not do that`}),(0,_.jsx)(`span`,{children:Se})]}),ct&&M.data&&(0,_.jsxs)(`div`,{className:`stats-bar`,children:[(0,_.jsxs)(`span`,{children:[(0,_.jsx)(mi,{size:16,className:`range-icon`}),` `,(0,_.jsx)(`strong`,{children:M.data.total.toLocaleString(`en-US`)}),` `,M.data.total===1?`commit`:`commits`]}),(0,_.jsxs)(`span`,{children:[(0,_.jsx)(Xr,{size:16,className:`range-icon`}),` `,(0,_.jsx)(`strong`,{children:ct.files.toLocaleString(`en-US`)}),` `,ct.files===1?`file`:`files`,` changed`]}),(0,_.jsxs)(`span`,{children:[(0,_.jsx)(na,{size:16,className:`range-icon`}),` `,(0,_.jsxs)(`strong`,{children:[M.data.contributors.toLocaleString(`en-US`),M.data.truncated?`+`:``]}),` `,M.data.contributors===1?`contributor`:`contributors`]})]}),M.data&&(0,_.jsx)(E_,{list:M.data,range:E?.range,hrefFor:E?.head.kind===`rev`?Fe:void 0}),E?.range&&(0,_.jsxs)(`div`,{className:`flash flash-attention range-flash`,role:`status`,children:[(0,_.jsxs)(`span`,{children:[st?.length===1?(0,_.jsxs)(_.Fragment,{children:[`Showing only the changes of commit `,(0,_.jsx)(`code`,{children:E.range.to.slice(0,7)}),` `,(0,_.jsx)(`em`,{children:st[0]?.subject}),`.`]}):(0,_.jsxs)(_.Fragment,{children:[`Showing only the changes of `,st?`${st.length} commits`:`the commits`,`, `,(0,_.jsx)(`code`,{children:E.range.from.slice(0,7)}),` to`,` `,(0,_.jsx)(`code`,{children:E.range.to.slice(0,7)}),`.`]}),` `,`Conversations, viewed marks and editing belong to the whole comparison and are hidden here.`]}),(0,_.jsx)(`a`,{href:Fe(void 0),onClick:e=>{e.metaKey||e.ctrlKey||e.shiftKey||e.button!==0||(e.preventDefault(),h_(Fe(void 0)))},children:`Show all changes`})]})]}),ct&&D&&E&&(0,_.jsxs)(_.Fragment,{children:[(0,_.jsxs)(`div`,{className:`toolbar`,children:[(0,_.jsx)(`button`,{type:`button`,className:`icon-button tree-toggle`,"aria-pressed":Xe,"aria-label":Xe?`Hide file tree`:`Show file tree`,title:Xe?`Hide file tree`:`Show file tree`,onClick:Qe,children:Xe?(0,_.jsx)(Sa,{size:16}):(0,_.jsx)(ya,{size:16})}),(0,_.jsxs)(`details`,{className:`toc`,onToggle:e=>ze(e.currentTarget.open),children:[(0,_.jsxs)(`summary`,{"aria-live":`polite`,children:[(0,_.jsx)(Xr,{size:16,className:`range-icon`}),(0,_.jsxs)(`span`,{children:[`Showing `,(0,_.jsx)(`strong`,{className:`toc-link`,children:U0(ct.files,`changed file`)}),` with`,` `,(0,_.jsx)(`strong`,{children:U0(ct.additions,`addition`)}),` and`,` `,(0,_.jsx)(`strong`,{children:U0(ct.deletions,`deletion`)}),`.`]})]}),Re&&(0,_.jsx)(z_,{files:D.files})]}),se&&se.length>0&&(0,_.jsxs)(`span`,{className:`conversation-count`,children:[U0(se.length,`conversation`),fe>0?`, ${fe} unresolved`:`, all resolved`]}),!ae&&ct.files>0&&(0,_.jsxs)(`span`,{className:`viewed-count`,title:`Files you have marked as viewed`,children:[(0,_.jsx)(`progress`,{max:ct.files,value:ge.size,"aria-hidden":`true`}),ge.size,` / `,ct.files,` viewed`]}),(0,_.jsxs)(`label`,{className:`checkbox`,children:[(0,_.jsx)(`input`,{type:`checkbox`,checked:i,onChange:e=>Le(e.target.checked)}),`Hide whitespace`]}),(0,_.jsx)($0,{route:e,pull:d.data}),(0,_.jsx)(Z0,{view:a,onChange:Ie})]}),ct.files===0?(0,_.jsxs)(`div`,{className:`blankslate`,children:[(0,_.jsx)(`h2`,{className:`blankslate-title`,children:`There isn’t anything to compare.`}),(0,_.jsx)(`div`,{className:`blankslate-body`,children:(0,_.jsx)(`p`,{children:`The two sides are identical. Pick different revisions or make a change.`})})]}):(0,_.jsxs)(`div`,{className:`diff-layout${Xe?` with-tree`:``}`,children:[Xe&&(0,_.jsx)(D0,{files:D.files,viewed:ge,threadCounts:ue,activeAnchor:je?.anchor}),(0,_.jsx)(`div`,{className:`file-cards`,children:D.files.map(e=>(0,_.jsx)(C0,{repoId:n,comparison:E,file:e,view:a,target:je?.anchor===e.anchor?je:void 0,scrollToTarget:Ae,threads:le.get(e.path)??H0,scope:N,viewed:ge.has(e.path),onViewed:ae?void 0:_e,readOnly:ae,staging:Te(e),onStage:ve?Ee:void 0,onSelectLine:Me,isSettling:ee,listedAt:E.diffTo===`:worktree`&&!e.newOid&&On(e.path)!==void 0?ot:void 0},e.path))})]}),de.length>0&&(0,_.jsxs)(`section`,{className:`detached-threads`,"aria-label":`Conversations on files no longer in this comparison`,children:[(0,_.jsx)(`h2`,{className:`detached-title`,children:`Conversations on files that are no longer part of this comparison`}),de.map(e=>(0,_.jsx)(Q_,{repoId:n,thread:e,actions:ce,showPath:!0},e.id))]})]}),!at&&(o===void 0||d.data)&&(b.isPending||S.isPending)&&(0,_.jsx)(`p`,{className:`loading`,children:`Loading…`})]}),Je&&(0,_.jsx)(O0,{repoId:n,spec:r,onClose:()=>Ye(!1),onOpen:e=>{Ye(!1),h_(o_(n,e,a)),window.scrollTo(0,0)}}),Ke&&(0,_.jsx)(K1,{onClose:()=>qe(!1)}),(0,_.jsx)(Vg,{repoId:n,rev:E?.diffTo,searchOpen:He,onSearchClose:()=>Ue(!1)}),We&&d.data&&(0,_.jsx)(F0,{repoId:n,pull:d.data,onClose:()=>Ge(!1)}),Be&&N&&(0,_.jsx)(zg,{repoId:n,scope:N,onClose:()=>Ve(!1)})]})})}function av({input:e}){let t=tt({queryKey:[`link`,e],queryFn:()=>R.resolveLink(e),retry:!1,refetchOnWindowFocus:!1}),n=nt({mutationFn:e=>R.cloneForLink(e),onSuccess:()=>t.refetch()}),r=t.data;return(0,f.useEffect)(()=>{r?.status===`ready`&&(y_(r.notices),h_(r.path,{replace:!0}))},[r]),t.isError?(0,_.jsx)(`main`,{className:`page`,children:(0,_.jsx)(`div`,{className:`page-narrow`,children:(0,_.jsxs)(`div`,{className:`flash flash-danger`,role:`alert`,children:[(0,_.jsx)(`strong`,{children:`Cannot open this link`}),(0,_.jsx)(`span`,{children:t.error.message})]})})}):r?.status===`needs-clone`?(0,_.jsx)(`main`,{className:`page`,children:(0,_.jsxs)(`div`,{className:`dialog`,role:`dialog`,"aria-labelledby":`clone-title`,children:[(0,_.jsx)(`h1`,{id:`clone-title`,className:`dialog-title`,children:`Clone this repository?`}),(0,_.jsx)(`p`,{children:`This link points to a repository that is not on this machine yet.`}),(0,_.jsxs)(`dl`,{className:`dialog-facts`,children:[(0,_.jsx)(`dt`,{children:`Repository`}),(0,_.jsx)(`dd`,{children:(0,_.jsx)(`code`,{children:r.repoUrl})}),(0,_.jsx)(`dt`,{children:`Will be cloned to`}),(0,_.jsx)(`dd`,{children:(0,_.jsx)(`code`,{children:r.destination})})]}),(0,_.jsx)(`p`,{className:`dialog-note`,children:`Only clone repositories you expect. Nothing in it is run: agentic-diff reads the files and shows the comparison.`}),n.isError&&(0,_.jsx)(`div`,{className:`flash flash-danger`,role:`alert`,children:(0,_.jsx)(`span`,{children:n.error.message})}),(0,_.jsxs)(`div`,{className:`dialog-actions`,children:[(0,_.jsx)(`button`,{type:`button`,className:`button button-primary`,disabled:n.isPending,onClick:()=>n.mutate(r.repoUrl),children:n.isPending?`Cloning…`:`Clone and open`}),(0,_.jsx)(`button`,{type:`button`,className:`button`,disabled:n.isPending,onClick:()=>h_(`/`,{replace:!0}),children:`Cancel`})]}),n.isPending&&(0,_.jsx)(`p`,{className:`dialog-note`,children:`Large repositories can take a few minutes.`})]})}):(0,_.jsx)(`main`,{className:`page`,children:(0,_.jsx)(`p`,{className:`loading`,children:`Opening the link…`})})}function ov({title:e,children:t}){return(0,_.jsx)(`main`,{className:`page`,children:(0,_.jsxs)(`div`,{className:`blankslate`,children:[(0,_.jsx)(`h1`,{className:`blankslate-title`,children:e}),(0,_.jsx)(`div`,{className:`blankslate-body`,children:t})]})})}var sv=()=>(0,_.jsxs)(`p`,{children:[`Run `,(0,_.jsx)(`code`,{children:`agentic-diff`}),` in a git repository to open a comparison.`]});function cv(){let e=m_(),t=i_(e.pathname,e.search,n_()),n=tt({queryKey:[`session`],queryFn:async()=>{let e=__();if(e)try{return await R.signIn(e)}catch{}return R.session()},staleTime:1/0});return n.isPending?null:n.isError?(0,_.jsx)(ov,{title:`Cannot reach agentic-diff`,children:`The local server did not answer. Start it again from the terminal.`}):n.data.authenticated?t.name===`open`?(0,_.jsx)(av,{input:t.input}):t.name===`compare`?(0,_.jsx)(iv,{route:t,hash:e.hash}):t.name===`home`?(0,_.jsx)(ov,{title:`agentic-diff`,children:(0,_.jsx)(sv,{})}):(0,_.jsx)(ov,{title:`Page not found`,children:`This address does not match any agentic-diff page.`}):(0,_.jsxs)(ov,{title:`Not signed in`,children:[(0,_.jsx)(`p`,{children:`This browser has no session with your local agentic-diff server.`}),t.name===`open`?(0,_.jsxs)(`p`,{children:[`To open this link, run `,(0,_.jsx)(`code`,{children:It(t.input)})]}):(0,_.jsx)(sv,{})]})}var lv=new qe({defaultOptions:{queries:{refetchOnWindowFocus:!1,retry:(e,t)=>!(t instanceof lt&&t.status<500)&&e<2}}});(0,ct.createRoot)(document.getElementById(`root`)).render((0,_.jsx)(f.StrictMode,{children:(0,_.jsx)(b,{client:lv,children:(0,_.jsx)(cv,{})})}));export{F1 as a,i1 as c,Lt as d,lt as f,l as h,k1 as i,O_ as l,d as m,M1 as n,h1 as o,g as p,E1 as r,a1 as s,d0 as t,Tn as u};
|