@hamsterbase/evidra 0.10.0 → 0.10.1

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.
Files changed (29) hide show
  1. package/dist/web/assets/{ProjectFileEditor-UNmdSuZe.js → ProjectFileEditor-DEBN7kPz.js} +4 -4
  2. package/dist/web/assets/{cssMode-COmaLUNq.js → cssMode-Caowesyg.js} +1 -1
  3. package/dist/web/assets/{editor.api-R6KlZzbe.js → editor.api-DMnYGpPP.js} +1 -1
  4. package/dist/web/assets/{freemarker2-C2m-mHQ4.js → freemarker2-C0UBjyst.js} +1 -1
  5. package/dist/web/assets/{handlebars-B-bKPSy7.js → handlebars-5l9KZKlp.js} +1 -1
  6. package/dist/web/assets/{html-BYid8-Cb.js → html-B2QgDAL8.js} +1 -1
  7. package/dist/web/assets/{htmlMode-lEy3S6z-.js → htmlMode-CdmTuW2i.js} +1 -1
  8. package/dist/web/assets/{index-BLsK0GTs.js → index-6yaKzt_o.js} +2 -2
  9. package/dist/web/assets/{javascript-CNaeXfpz.js → javascript-DRAlmbdb.js} +1 -1
  10. package/dist/web/assets/{jsonMode-BsNOuD0Y.js → jsonMode-CZjCdzPs.js} +1 -1
  11. package/dist/web/assets/{liquid-SzSPMyv0.js → liquid-Be4Fmczw.js} +1 -1
  12. package/dist/web/assets/{lspLanguageFeatures-D2OMTqkm.js → lspLanguageFeatures-CiRiWhMn.js} +1 -1
  13. package/dist/web/assets/main-2eYLQy9d.js +13 -0
  14. package/dist/web/assets/main-B1hsTP9L.js +18 -0
  15. package/dist/web/assets/main-Dy19lr3f.css +1 -0
  16. package/dist/web/assets/{mdx-CSLOm-fY.js → mdx-Ddx7Huhf.js} +1 -1
  17. package/dist/web/assets/{monaco-C6LT02vG.js → monaco-Cz8BFbYv.js} +4 -4
  18. package/dist/web/assets/{python-CLBR4tu8.js → python-CySqb4fG.js} +1 -1
  19. package/dist/web/assets/{razor-DWz4AW4u.js → razor-C3cWFuK9.js} +1 -1
  20. package/dist/web/assets/{tsMode-DcC4a-WA.js → tsMode-D_ho-gbH.js} +1 -1
  21. package/dist/web/assets/{typescript-k3VpdHf7.js → typescript-B1K0F7Kw.js} +1 -1
  22. package/dist/web/assets/{workers-RoPzlvIe.js → workers-C8wlLBE0.js} +1 -1
  23. package/dist/web/assets/{xml-C865YqIc.js → xml-DCJLY8-r.js} +1 -1
  24. package/dist/web/assets/{yaml-C-uEIEiM.js → yaml-DQdyHjuy.js} +1 -1
  25. package/dist/web/index.html +1 -1
  26. package/package.json +2 -2
  27. package/dist/web/assets/main-BWSeza8V.css +0 -1
  28. package/dist/web/assets/main-BubCpOes.js +0 -13
  29. package/dist/web/assets/main-DKZY1u0y.js +0 -18
@@ -1,5 +1,5 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/monaco-C6LT02vG.js","assets/index-BLsK0GTs.js","assets/editor.api-R6KlZzbe.js","assets/editor-DjpsE8to.css","assets/monaco-n7clI0si.css"])))=>i.map(i=>d[i]);
2
- import{t as e}from"./index-BLsK0GTs.js";var t=Object.create,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,a=Object.getPrototypeOf,o=Object.prototype.hasOwnProperty,s=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t,t.exports),e=null),t.exports),c=(e,t)=>{let r={};for(var i in e)n(r,i,{get:e[i],enumerable:!0});return t||n(r,Symbol.toStringTag,{value:`Module`}),r},l=(e,t,a,s)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var c=i(t),l=0,u=c.length,d;l<u;l++)d=c[l],!o.call(e,d)&&d!==a&&n(e,d,{get:(e=>t[e]).bind(null,d),enumerable:!(s=r(t,d))||s.enumerable});return e},u=(e,r,i)=>(i=e==null?{}:t(a(e)),l(r||!e||!e.__esModule||!o.call(e,`default`)?n(i,`default`,{value:e,enumerable:!0}):i,e)),d=s((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.iterator;function m(e){return typeof e!=`object`||!e?null:(e=p&&e[p]||e[`@@iterator`],typeof e==`function`?e:null)}var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,_={};function v(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}v.prototype.isReactComponent={},v.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`)},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function y(){}y.prototype=v.prototype;function b(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}var x=b.prototype=new y;x.constructor=b,g(x,v.prototype),x.isPureReactComponent=!0;var S=Array.isArray;function C(){}var w={H:null,A:null,T:null,S:null},T=Object.prototype.hasOwnProperty;function E(e,n,r){var i=r.ref;return{$$typeof:t,type:e,key:n,ref:i===void 0?null:i,props:r}}function D(e,t){return E(e.type,t,e.props)}function O(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 A=/\/+/g;function j(e,t){return typeof e==`object`&&e&&e.key!=null?k(``+e.key):t.toString(36)}function M(e){switch(e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason;default:switch(typeof e.status==`string`?e.then(C,C):(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 ee(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,ee(c(e._payload),r,i,a,o)}}if(c)return o=o(e),c=a===``?`.`+j(e,0):a,S(o)?(i=``,c!=null&&(i=c.replace(A,`$&/`)+`/`),ee(o,r,i,``,function(e){return e})):o!=null&&(O(o)&&(o=D(o,i+(o.key==null||e&&e.key===o.key?``:(``+o.key).replace(A,`$&/`)+`/`)+c)),r.push(o)),1;c=0;var l=a===``?`.`:a+`:`;if(S(e))for(var u=0;u<e.length;u++)a=e[u],s=l+j(a,u),c+=ee(a,r,i,s,o);else if(u=m(e),typeof u==`function`)for(e=u.call(e),u=0;!(a=e.next()).done;)a=a.value,s=l+j(a,u++),c+=ee(a,r,i,s,o);else if(s===`object`){if(typeof e.then==`function`)return ee(M(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 N(e,t,n){if(e==null)return e;var r=[],i=0;return ee(e,r,``,``,function(e){return t.call(n,e,i++)}),r}function P(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(t){(e._status===0||e._status===-1)&&(e._status=1,e._result=t)},function(t){(e._status===0||e._status===-1)&&(e._status=2,e._result=t)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var F=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)},te={map:N,forEach:function(e,t,n){N(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return N(e,function(){t++}),t},toArray:function(e){return N(e,function(e){return e})||[]},only:function(e){if(!O(e))throw Error(`React.Children.only expected to receive a single React element child.`);return e}};e.Activity=f,e.Children=te,e.Component=v,e.Fragment=r,e.Profiler=a,e.PureComponent=b,e.StrictMode=i,e.Suspense=l,e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=w,e.__COMPILER_RUNTIME={__proto__:null,c:function(e){return w.H.useMemoCache(e)}},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=g({},e.props),i=e.key;if(t!=null)for(a in t.key!==void 0&&(i=``+t.key),t)!T.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 E(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)T.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 E(e,a,i)},e.createRef=function(){return{current:null}},e.forwardRef=function(e){return{$$typeof:c,render:e}},e.isValidElement=O,e.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:P}},e.memo=function(e,t){return{$$typeof:u,type:e,compare:t===void 0?null:t}},e.startTransition=function(e){var t=w.T,n={};w.T=n;try{var r=e(),i=w.S;i!==null&&i(n,r),typeof r==`object`&&r&&typeof r.then==`function`&&r.then(C,F)}catch(e){F(e)}finally{t!==null&&n.types!==null&&(t.types=n.types),w.T=t}},e.unstable_useCacheRefresh=function(){return w.H.useCacheRefresh()},e.use=function(e){return w.H.use(e)},e.useActionState=function(e,t,n){return w.H.useActionState(e,t,n)},e.useCallback=function(e,t){return w.H.useCallback(e,t)},e.useContext=function(e){return w.H.useContext(e)},e.useDebugValue=function(){},e.useDeferredValue=function(e,t){return w.H.useDeferredValue(e,t)},e.useEffect=function(e,t){return w.H.useEffect(e,t)},e.useEffectEvent=function(e){return w.H.useEffectEvent(e)},e.useId=function(){return w.H.useId()},e.useImperativeHandle=function(e,t,n){return w.H.useImperativeHandle(e,t,n)},e.useInsertionEffect=function(e,t){return w.H.useInsertionEffect(e,t)},e.useLayoutEffect=function(e,t){return w.H.useLayoutEffect(e,t)},e.useMemo=function(e,t){return w.H.useMemo(e,t)},e.useOptimistic=function(e,t){return w.H.useOptimistic(e,t)},e.useReducer=function(e,t,n){return w.H.useReducer(e,t,n)},e.useRef=function(e){return w.H.useRef(e)},e.useState=function(e){return w.H.useState(e)},e.useSyncExternalStore=function(e,t,n){return w.H.useSyncExternalStore(e,t,n)},e.useTransition=function(){return w.H.useTransition()},e.version=`19.2.8`})),f=s(((e,t)=>{t.exports=d()})),p=u(f(),1),m=e=>{throw TypeError(e)},h=(e,t,n)=>t.has(e)||m(`Cannot `+n),g=(e,t,n)=>(h(e,t,`read from private field`),n?n.call(e):t.get(e)),_=(e,t,n)=>t.has(e)?m(`Cannot add the same private member more than once`):t instanceof WeakSet?t.add(e):t.set(e,n),v=(e,t,n,r)=>(h(e,t,`write to private field`),r?r.call(e,n):t.set(e,n),n),y=/^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i,b=/^[\\/]{2}/;function x(e,t){return t+e.replace(/\\/g,`/`)}var S=`popstate`;function C(e){return typeof e==`object`&&!!e&&`pathname`in e&&`search`in e&&`hash`in e&&`state`in e&&`key`in e}function w(e={}){function t(e,t){let n=t.state?.masked,{pathname:r,search:i,hash:a}=n||e.location;return k(``,{pathname:r,search:i,hash:a},t.state&&t.state.usr||null,t.state&&t.state.key||`default`,n?{pathname:e.location.pathname,search:e.location.search,hash:e.location.hash}:void 0)}function n(e,t){return typeof t==`string`?t:A(t)}return M(t,n,null,e)}function T(e,t){if(e===!1||e==null)throw Error(t)}function E(e,t){if(!e){typeof console<`u`&&console.warn(t);try{throw Error(t)}catch{}}}function D(){return Math.random().toString(36).substring(2,10)}function O(e,t){return{usr:e.state,key:e.key,idx:t,masked:e.mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}function k(e,t,n=null,r,i){return{pathname:typeof e==`string`?e:e.pathname,search:``,hash:``,...typeof t==`string`?j(t):t,state:n,key:t&&t.key||r||D(),mask:i}}function A({pathname:e=`/`,search:t=``,hash:n=``}){return t&&t!==`?`&&(e+=t.charAt(0)===`?`?t:`?`+t),n&&n!==`#`&&(e+=n.charAt(0)===`#`?n:`#`+n),e}function j(e){let t={};if(e){let n=e.indexOf(`#`);n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf(`?`);r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function M(e,t,n,r={}){let{window:i=document.defaultView,v5Compat:a=!1}=r,o=i.history,s=`POP`,c=null,l=u();l??(l=0,o.replaceState({...o.state,idx:l},``));function u(){return(o.state||{idx:null}).idx}function d(){s=`POP`;let e=u(),t=e==null?null:e-l;l=e,c&&c({action:s,location:h.location,delta:t})}function f(e,t){s=`PUSH`;let r=C(e)?e:k(h.location,e,t);n&&n(r,e),l=u()+1;let d=O(r,l),f=h.createHref(r.mask||r);try{o.pushState(d,``,f)}catch(e){if(e instanceof DOMException&&e.name===`DataCloneError`)throw e;i.location.assign(f)}a&&c&&c({action:s,location:h.location,delta:1})}function p(e,t){s=`REPLACE`;let r=C(e)?e:k(h.location,e,t);n&&n(r,e),l=u();let i=O(r,l),d=h.createHref(r.mask||r);o.replaceState(i,``,d),a&&c&&c({action:s,location:h.location,delta:0})}function m(e){return ee(i,e)}let h={get action(){return s},get location(){return e(i,o)},listen(e){if(c)throw Error(`A history only accepts one active listener`);return i.addEventListener(S,d),c=e,()=>{i.removeEventListener(S,d),c=null}},createHref(e){return t(i,e)},createURL:m,encodeLocation(e){let t=m(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:f,replace:p,go(e){return o.go(e)}};return h}function ee(e,t,n=!1){let r=`http://localhost`;e&&(r=e.location.origin===`null`?e.location.href:e.location.origin),T(r,`No window.location.(origin|href) available to create URL`);let i=typeof t==`string`?t:A(t);return i=i.replace(/ $/,`%20`),!n&&b.test(i)&&(i=r+i),new URL(i,r)}var N,P=class{constructor(e){if(_(this,N,new Map),e)for(let[t,n]of e)this.set(t,n)}get(e){if(g(this,N).has(e))return g(this,N).get(e);if(e.defaultValue!==void 0)return e.defaultValue;throw Error(`No value found for context`)}set(e,t){g(this,N).set(e,t)}};N=new WeakMap;var F=new Set([`lazy`,`caseSensitive`,`path`,`id`,`index`,`children`]);function te(e){return F.has(e)}var ne=new Set([`lazy`,`caseSensitive`,`path`,`id`,`index`,`middleware`,`children`]);function re(e){return ne.has(e)}function ie(e){return e.index===!0}function I(e,t,n=[],r={},i=!1){return e.map((e,a)=>{let o=[...n,String(a)],s=typeof e.id==`string`?e.id:o.join(`-`);if(T(e.index!==!0||!e.children,`Cannot specify children on an index route`),T(i||!r[s],`Found a route id collision on id "${s}". Route id's must be globally unique within Data Router usages`),ie(e)){let n={...e,id:s};return r[s]=ae(n,t(n)),n}{let n={...e,id:s,children:void 0};return r[s]=ae(n,t(n)),e.children&&(n.children=I(e.children,t,o,r,i)),n}})}function ae(e,t){return Object.assign(e,{...t,...typeof t.lazy==`object`&&t.lazy!=null?{lazy:{...e.lazy,...t.lazy}}:{}})}function oe(e,t,n=`/`){return se(e,t,n,!1)}function se(e,t,n,r,i){let a=De((typeof t==`string`?j(t):t).pathname||`/`,n);if(a==null)return null;let o=i??le(e),s=null,c=Ee(a);for(let e=0;s==null&&e<o.length;++e)s=Se(o[e],c,r);return s}function ce(e,t){let{route:n,pathname:r,params:i}=e;return{id:n.id,pathname:r,params:i,data:t[n.id],loaderData:t[n.id],handle:n.handle}}function le(e){let t=ue(e);return fe(t),t}function ue(e,t=[],n=[],r=``,i=!1){let a=(e,a,o=i,s)=>{let c={relativePath:s===void 0?e.path||``:s,caseSensitive:e.caseSensitive===!0,childrenIndex:a,route:e};if(c.relativePath.startsWith(`/`)){if(!c.relativePath.startsWith(r)&&o)return;T(c.relativePath.startsWith(r),`Absolute route path "${c.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),c.relativePath=c.relativePath.slice(r.length)}let l=Le([r,c.relativePath]),u=n.concat(c);e.children&&e.children.length>0&&(T(e.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${l}".`),ue(e.children,t,u,l,o)),(e.path!=null||e.index)&&t.push({path:l,score:be(l,e.index),routesMeta:u.map((e,t)=>{let[n,r]=Te(e.relativePath,e.caseSensitive,t===u.length-1);return{...e,matcher:n,compiledParams:r}})})};return e.forEach((e,t)=>{if(e.path===``||!e.path?.includes(`?`))a(e,t);else for(let n of de(e.path))a(e,t,!0,n)}),t}function de(e){let t=e.split(`/`);if(t.length===0)return[];let[n,...r]=t,i=n.endsWith(`?`),a=n.replace(/\?$/,``);if(r.length===0)return i?[a,``]:[a];let o=de(r.join(`/`)),s=[];return s.push(...o.map(e=>e===``?a:[a,e].join(`/`))),i&&s.push(...o),s.map(t=>e.startsWith(`/`)&&t===``?`/`:t)}function fe(e){e.sort((e,t)=>e.score===t.score?xe(e.routesMeta.map(e=>e.childrenIndex),t.routesMeta.map(e=>e.childrenIndex)):t.score-e.score)}var pe=/^:[\w-]+$/,me=3,he=2,ge=1,_e=10,ve=-2,ye=e=>e===`*`;function be(e,t){let n=e.split(`/`),r=n.length;return n.some(ye)&&(r+=ve),t&&(r+=he),n.filter(e=>!ye(e)).reduce((e,t)=>e+(pe.test(t)?me:t===``?ge:_e),r)}function xe(e,t){return e.length===t.length&&e.slice(0,-1).every((e,n)=>e===t[n])?e[e.length-1]-t[t.length-1]:0}function Se(e,t,n=!1){let{routesMeta:r}=e,i={},a=`/`,o=[];for(let e=0;e<r.length;++e){let s=r[e],c=e===r.length-1,l=a===`/`?t:t.slice(a.length)||`/`,u={path:s.relativePath,caseSensitive:s.caseSensitive,end:c},d=s.matcher&&s.compiledParams?we(u,l,s.matcher,s.compiledParams):Ce(u,l),f=s.route;if(!d&&c&&n&&!r[r.length-1].route.index&&(d=Ce({path:s.relativePath,caseSensitive:s.caseSensitive,end:!1},l)),!d)return null;Object.assign(i,d.params),o.push({params:i,pathname:Le([a,d.pathname]),pathnameBase:ze(Le([a,d.pathnameBase])),route:f}),d.pathnameBase!==`/`&&(a=Le([a,d.pathnameBase]))}return o}function Ce(e,t){typeof e==`string`&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=Te(e.path,e.caseSensitive,e.end);return we(e,t,n,r)}function we(e,t,n,r){let i=t.match(n);if(!i)return null;let a=i[0],o=Re(a,1),s=i.slice(1);return{params:r.reduce((e,{paramName:t,isOptional:n},r)=>{if(t===`*`){let e=s[r]||``;o=Re(a.slice(0,a.length-e.length),1)}let i=s[r];return e[t]=n&&!i?void 0:(i||``).replace(/%2F/g,`/`),e},{}),pathname:a,pathnameBase:o,pattern:e}}function Te(e,t=!1,n=!0){E(e===`*`||!e.endsWith(`*`)||e.endsWith(`/*`),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,`/*`)}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,`/*`)}".`);let r=[],i=`^`+e.replace(/\/*\*?$/,``).replace(/^\/*/,`/`).replace(/[\\.*+^${}|()[\]]/g,`\\$&`).replace(/\/:([\w-]+)(\?)?/g,(e,t,n,i,a)=>{if(r.push({paramName:t,isOptional:n!=null}),n){let t=a.charAt(i+e.length);return t&&t!==`/`?`/([^\\/]*)`:`(?:/([^\\/]*))?`}return`/([^\\/]+)`}).replace(/\/([\w-]+)\?(\/|$)/g,`(/$1)?$2`);return e.endsWith(`*`)?(r.push({paramName:`*`}),i+=e===`*`||e===`/*`?`(.*)$`:`(?:\\/(.+)|\\/*)$`):n?i+=`\\/*$`:e!==``&&e!==`/`&&(i+=`(?:(?=\\/|$))`),[new RegExp(i,t?void 0:`i`),r]}function Ee(e){try{return e.split(`/`).map(e=>decodeURIComponent(e).replace(/\//g,`%2F`)).join(`/`)}catch(t){return E(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function De(e,t){if(t===`/`)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith(`/`)?t.length-1:t.length,r=e.charAt(n);return r&&r!==`/`?null:e.slice(n)||`/`}function Oe({basename:e,pathname:t}){return t===`/`?e:Le([e,t])}var ke=e=>y.test(e);function Ae(e,t=`/`){let{pathname:n,search:r=``,hash:i=``}=typeof e==`string`?j(e):e,a;return n?(n=Ie(n),a=n.startsWith(`/`)||n.startsWith(`\\`)?je(n.substring(1),`/`):je(n,t)):a=t,{pathname:a,search:Be(r),hash:Ve(i)}}function je(e,t){let n=Re(t).split(`/`);return e.split(`/`).forEach(e=>{e===`..`?n.length>1&&n.pop():e!==`.`&&n.push(e)}),n.length>1?n.join(`/`):`/`}function Me(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function Ne(e){return e.filter((e,t)=>t===0||e.route.path&&e.route.path.length>0)}function Pe(e){let t=Ne(e);return t.map((e,n)=>n===t.length-1?e.pathname:e.pathnameBase)}function Fe(e,t,n,r=!1){let i;typeof e==`string`?i=j(e):(i={...e},T(!i.pathname||!i.pathname.includes(`?`),Me(`?`,`pathname`,`search`,i)),T(!i.pathname||!i.pathname.includes(`#`),Me(`#`,`pathname`,`hash`,i)),T(!i.search||!i.search.includes(`#`),Me(`#`,`search`,`hash`,i)));let a=e===``||i.pathname===``,o=a?`/`:i.pathname,s;if(o==null)s=n;else{let e=t.length-1;if(!r&&o.startsWith(`..`)){let t=o.split(`/`);for(;t[0]===`..`;)t.shift(),--e;i.pathname=t.join(`/`)}s=e>=0?t[e]:`/`}let c=Ae(i,s),l=o&&o!==`/`&&o.endsWith(`/`),u=(a||o===`.`)&&n.endsWith(`/`);return!c.pathname.endsWith(`/`)&&(l||u)&&(c.pathname+=`/`),c}var Ie=e=>e.replace(/[\\/]{2,}/g,`/`),Le=e=>Ie(e.join(`/`));function Re(e,t=0){let n=e.length;for(;n>t&&e.charCodeAt(n-1)===47;)n--;return n===e.length?e:e.slice(0,n)}var ze=e=>Re(e).replace(/^\/*/,`/`),Be=e=>!e||e===`?`?``:e.startsWith(`?`)?e:`?`+e,Ve=e=>!e||e===`#`?``:e.startsWith(`#`)?e:`#`+e,He=(e,t=302)=>{let n=t;typeof n==`number`?n={status:n}:n.status===void 0&&(n.status=302);let r=new Headers(n.headers);return r.set(`Location`,e),new Response(null,{...n,headers:r})},Ue=(e,t)=>{let n=He(e,t);return n.headers.set(`X-Remix-Replace`,`true`),n},We=[`EvalError`,`RangeError`,`ReferenceError`,`SyntaxError`,`TypeError`,`URIError`],Ge=class{constructor(e,t,n,r=!1){this.status=e,this.statusText=t||``,this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function Ke(e){return e!=null&&typeof e.status==`number`&&typeof e.statusText==`string`&&typeof e.internal==`boolean`&&`data`in e}function qe(e){return Le(e.map(e=>e.route.path).filter(Boolean))||`/`}var Je=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;function Ye(e,t){let n=e;if(typeof n!=`string`||!y.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,i=!1;if(Je)try{let e=new URL(window.location.href),r=b.test(n)?new URL(x(n,e.protocol)):new URL(n),a=De(r.pathname,t);r.origin===e.origin&&a!=null?n=a+r.search+r.hash:i=!0}catch{E(!1,`<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:i,to:n}}var Xe=Symbol(`Uninstrumented`);function Ze(e,t){let n={lazy:[],"lazy.loader":[],"lazy.action":[],"lazy.middleware":[],middleware:[],loader:[],action:[]};e.forEach(e=>e({id:t.id,index:t.index,path:t.path,instrument(e){let t=Object.keys(n);for(let r of t)e[r]&&n[r].push(e[r])}}));let r={};if(typeof t.lazy==`function`&&n.lazy.length>0){let e=$e(n.lazy,t.lazy,()=>void 0);e&&(r.lazy=e)}if(typeof t.lazy==`object`){let e=t.lazy;[`middleware`,`loader`,`action`].forEach(t=>{let i=e[t],a=n[`lazy.${t}`];if(typeof i==`function`&&a.length>0){let e=$e(a,i,()=>void 0);e&&(r.lazy=Object.assign(r.lazy||{},{[t]:e}))}})}return[`loader`,`action`].forEach(e=>{let i=t[e];if(typeof i==`function`&&n[e].length>0){let t=i[Xe]??i,a=$e(n[e],t,(...e)=>tt(e[0]));a&&(e===`loader`&&t.hydrate===!0&&(a.hydrate=!0),a[Xe]=t,r[e]=a)}}),t.middleware&&t.middleware.length>0&&n.middleware.length>0&&(r.middleware=t.middleware.map(e=>{let t=e[Xe]??e,r=$e(n.middleware,t,(...e)=>tt(e[0]));return r?(r[Xe]=t,r):e})),r}function Qe(e,t){let n={navigate:[],fetch:[]};if(t.forEach(e=>e({instrument(e){let t=Object.keys(e);for(let r of t)e[r]&&n[r].push(e[r])}})),n.navigate.length>0){let t=e.navigate[Xe]??e.navigate,r=$e(n.navigate,t,(...t)=>{let[n,r]=t;return{to:typeof n==`number`||typeof n==`string`?n:n?A(n):`.`,...nt(e,r??{})}});r&&(r[Xe]=t,e.navigate=r)}if(n.fetch.length>0){let t=e.fetch[Xe]??e.fetch,r=$e(n.fetch,t,(...t)=>{let[n,,r,i]=t;return{href:r??`.`,fetcherKey:n,...nt(e,i??{})}});r&&(r[Xe]=t,e.fetch=r)}return e}function $e(e,t,n){return e.length===0?null:async(...r)=>{let i=await et(e,n(...r),()=>t(...r),e.length-1);if(i.type===`error`)throw i.value;return i.value}}async function et(e,t,n,r){let i=e[r],a;if(i){let o,s=async()=>(o?console.error(`You cannot call instrumented handlers more than once`):o=et(e,t,n,r-1),a=await o,T(a,`Expected a result`),a.type===`error`&&a.value instanceof Error?{status:`error`,error:a.value}:{status:`success`,error:void 0});try{await i(s,t)}catch(e){console.error(`An instrumentation function threw an error:`,e)}o||await s(),await o}else try{a={type:`success`,value:await n()}}catch(e){a={type:`error`,value:e}}return a||{type:`error`,value:Error(`No result assigned in instrumentation chain.`)}}function tt(e){let{request:t,context:n,params:r,pattern:i}=e;return{request:rt(t),params:{...r},pattern:i,context:it(n)}}function nt(e,t){return{currentUrl:A(e.state.location),...`formMethod`in t?{formMethod:t.formMethod}:{},...`formEncType`in t?{formEncType:t.formEncType}:{},...`formData`in t?{formData:t.formData}:{},...`body`in t?{body:t.body}:{}}}function rt(e){return{method:e.method,url:e.url,headers:{get:(...t)=>e.headers.get(...t)}}}function it(e){if(ot(e)){let t={...e};return Object.freeze(t),t}return{get:t=>e.get(t)}}var at=Object.getOwnPropertyNames(Object.prototype).sort().join(`\0`);function ot(e){if(typeof e!=`object`||!e)return!1;let t=Object.getPrototypeOf(e);return t===Object.prototype||t===null||Object.getOwnPropertyNames(t).sort().join(`\0`)===at}var st=new URL(`http://localhost`);function ct(e){if(e.createURL)return e.createURL(`/`);try{return new URL(e.createHref(`/`),st)}catch{return st}}function lt(e,t){return e.origin===t.origin&&(e.origin!==`null`||e.protocol===t.protocol&&e.host===t.host)}function ut(e,t){if(e.startsWith(`//`))return!0;let n=t.protocol.toLowerCase();return e.toLowerCase().startsWith(n)?t.host===``||e.slice(n.length).startsWith(`//`):!1}function dt(e,t,n,r){let i=null;try{i=e==null?null:new URL(e,n)}catch{}let a=new URL(t,n),o=i!=null&&!lt(i,n),s=!lt(a,n);if(r===`reject`){if(o||s)throw Error(`External navigation is not allowed`)}else if(s&&(i==null||!ut(e,i)||!lt(i,a)))throw Error(`External navigation is not allowed`)}var ft=[`POST`,`PUT`,`PATCH`,`DELETE`],pt=new Set(ft),mt=[`GET`,...ft],ht=new Set(mt),gt=new Set([301,302,303,307,308]),_t=new Set([307,308]),vt={state:`idle`,location:void 0,matches:void 0,historyAction:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},yt={state:`idle`,data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},bt={state:`unblocked`,proceed:void 0,reset:void 0,location:void 0},xt=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),St=`remix-router-transitions`,Ct=Symbol(`ResetLoaderData`),wt,Tt,Et,Dt,Ot=class{constructor(e){_(this,wt),_(this,Tt),_(this,Et),_(this,Dt),v(this,wt,e),v(this,Tt,le(e))}get stableRoutes(){return g(this,wt)}get activeRoutes(){return g(this,Et)??g(this,wt)}get branches(){return g(this,Dt)??g(this,Tt)}get hasHMRRoutes(){return g(this,Et)!=null}setRoutes(e){v(this,wt,e),v(this,Tt,le(e))}setHmrRoutes(e){v(this,Et,e),v(this,Dt,le(e))}commitHmrRoutes(){g(this,Et)&&(v(this,wt,g(this,Et)),v(this,Tt,g(this,Dt)),v(this,Et,void 0),v(this,Dt,void 0))}};wt=new WeakMap,Tt=new WeakMap,Et=new WeakMap,Dt=new WeakMap;function kt(e){let t=e.window?e.window:typeof window<`u`?window:void 0,n=t!==void 0&&t.document!==void 0&&t.document.createElement!==void 0;T(e.routes.length>0,`You must provide a non-empty routes array to createRouter`);let r=e.hydrationRouteProperties||[],i=e.mapRouteProperties||xt,a=i;if(e.instrumentations){let t=e.instrumentations;a=e=>({...i(e),...Ze(t.map(e=>e.route).filter(Boolean),e)})}let o={},s=new Ot(I(e.routes,a,void 0,o)),c=e.basename||`/`;c.startsWith(`/`)||(c=`/${c}`);let l=e.dataStrategy||Kt,u={...e.future},d=null,f=new Set,p=null,m=null,h=null,g=null,_=e.hydrationData!=null,v=se(s.activeRoutes,e.history.location,c,!1,s.branches),y=!1,x=null,S,C;if(v==null&&!e.patchRoutesOnNavigation){let t=vn(404,{pathname:e.history.location.pathname}),{matches:n,route:r}=_n(s.activeRoutes);S=!0,C=!S,v=n,x={[r.id]:t}}else if(v&&!e.hydrationData&&lt(v,s.activeRoutes,e.history.location.pathname).active&&(v=null),!v){S=!1,C=!S,v=[];let t=lt(null,s.activeRoutes,e.history.location.pathname);t.active&&t.matches&&(y=!0,v=t.matches)}else if(v.some(e=>e.route.lazy))S=!1,C=!S;else if(!v.some(e=>Pt(e.route)))S=!0,C=!S;else{let t=e.hydrationData?e.hydrationData.loaderData:null,n=e.hydrationData?e.hydrationData.errors:null,r=v;if(n){let e=v.findIndex(e=>n[e.route.id]!==void 0);r=r.slice(0,e+1)}C=!1,S=!0,r.forEach(e=>{let r=Ft(e.route,t,n);C||=r.renderFallback,S&&=!r.shouldLoad})}let w,D={historyAction:e.history.action,location:e.history.location,matches:v,initialized:S,renderFallback:C,navigation:vt,restoreScrollPosition:e.hydrationData==null&&null,preventScrollReset:!1,revalidation:`idle`,loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||x,fetchers:new Map,blockers:new Map},O=`POP`,M=null,N=!1,F,te=!1,ne=new Map,re=null,ie=!1,ae=!1,oe=new Set,le=new Map,ue=0,de=-1,fe=new Map,pe=new Set,me=new Map,he=new Map,ge=new Set,_e=new Map,ve,ye=null;function be(){if(d=e.history.listen(({action:t,location:n,delta:r})=>{if(ve){ve(),ve=void 0;return}E(_e.size===0||r!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let i=rt({currentLocation:D.location,nextLocation:n,historyAction:t});if(i&&r!=null){let t=new Promise(e=>{ve=e});e.history.go(r*-1),nt(i,{state:`blocked`,location:n,proceed(){nt(i,{state:`proceeding`,proceed:void 0,reset:void 0,location:n}),t.then(()=>e.history.go(r))},reset(){let e=new Map(D.blockers);e.set(i,bt),Ce({blockers:e})}}),M?.resolve(),M=null}else return Oe(t,n)}),n){Hn(t,ne);let e=()=>Un(t,ne);t.addEventListener(`pagehide`,e),re=()=>t.removeEventListener(`pagehide`,e)}return D.initialized||Oe(`POP`,D.location,{initialHydration:!0}),w}function xe(){d&&d(),re&&re(),f.clear(),F&&F.abort(),D.fetchers.forEach((e,t)=>Ge(D.fetchers,t)),D.blockers.forEach((e,t)=>tt(t))}function Se(e){if(f.add(e),p){let{newErrors:t}=p;p=null,e(D,{deletedFetchers:[],newErrors:t,viewTransitionOpts:void 0,flushSync:!1})}return()=>f.delete(e)}function Ce(e,t={}){e.matches&&=e.matches.map(e=>{let t=o[e.route.id],n=e.route;return n.element!==t.element||n.errorElement!==t.errorElement||n.hydrateFallbackElement!==t.hydrateFallbackElement?{...e,route:t}:e}),D={...D,...e};let n=[],r=[];D.fetchers.forEach((e,t)=>{e.state===`idle`&&(ge.has(t)?n.push(t):r.push(t))}),ge.forEach(e=>{!D.fetchers.has(e)&&!le.has(e)&&n.push(e)}),f.size===0&&(p={newErrors:e.errors??null}),[...f].forEach(r=>r(D,{deletedFetchers:n,newErrors:e.errors??null,viewTransitionOpts:t.viewTransitionOpts,flushSync:t.flushSync===!0})),n.forEach(e=>Ge(D.fetchers,e)),r.forEach(e=>D.fetchers.delete(e))}function we(t,n,{flushSync:r}={}){let i=D.actionData!=null&&D.navigation.formMethod!=null&&Nn(D.navigation.formMethod)&&D.navigation.state===`loading`&&t.state?._isRedirect!==!0,a;a=n.actionData?Object.keys(n.actionData).length>0?n.actionData:null:i?D.actionData:null;let o=n.loaderData?mn(D.loaderData,n.loaderData,n.matches||[],n.errors):D.loaderData,c=D.blockers;c.size>0&&(c=new Map(c),c.forEach((e,t)=>c.set(t,bt)));let l=!ie&&ct(t,n.matches||D.matches),u=N===!0||D.navigation.formMethod!=null&&Nn(D.navigation.formMethod)&&t.state?._isRedirect!==!0;s.commitHmrRoutes(),ie||O===`POP`||(O===`PUSH`?e.history.push(t,t.state):O===`REPLACE`&&e.history.replace(t,t.state));let d;if(O===`POP`&&!ie&&t!==D.location){let e=ne.get(D.location.pathname);e&&e.has(t.pathname)?d={currentLocation:D.location,nextLocation:t}:ne.has(t.pathname)&&(d={currentLocation:t,nextLocation:D.location})}else if(te){let e=ne.get(D.location.pathname);e?e.add(t.pathname):(e=new Set([t.pathname]),ne.set(D.location.pathname,e)),d={currentLocation:D.location,nextLocation:t}}Ce({...n,actionData:a,loaderData:o,historyAction:O,location:t,initialized:!0,renderFallback:!1,navigation:vt,revalidation:`idle`,restoreScrollPosition:l,preventScrollReset:u,blockers:c},{viewTransitionOpts:d,flushSync:r===!0}),O=`POP`,N=!1,te=!1,ie=!1,ae=!1,M?.resolve(),M=null,ye?.resolve(),ye=null}async function Te(t,n){if(M?.resolve(),M=null,typeof t==`number`){M||=Wn();let n=M.promise;return e.history.go(t),n}let{path:r,submission:i,error:a}=Mt(!1,jt(D.location,D.matches,c,t,n?.fromRouteId,n?.relative),n),o;if(n?.mask){let t=typeof n.mask==`string`?j(n.mask):{...D.location.mask,...n.mask};if(o={pathname:t.pathname??``,search:t.search??``,hash:t.hash??``},b.test(o.pathname))throw Error(`External navigation is not allowed`);o.pathname.startsWith(`\\`)&&(o.pathname=o.pathname.replace(/^\\+/,`/`)),dt(typeof n.mask==`string`?n.mask:A(n.mask),A(o),e.history.createURL(`/`),`reject`)}let s=D.location,l=k(s,r,n&&n.state,void 0,o);l={...l,...e.history.encodeLocation(l)},dt(t==null?e.history.createHref(D.location):typeof t==`string`?t:A(t),e.history.createHref(l.mask||l),e.history.createURL(`/`),`reject`);let u=n&&n.replace!=null?n.replace:void 0,d=`PUSH`;u===!0?d=`REPLACE`:u===!1||i!=null&&Nn(i.formMethod)&&i.formAction===D.location.pathname+D.location.search&&(d=`REPLACE`);let f=n&&`preventScrollReset`in n?n.preventScrollReset===!0:void 0,p=(n&&n.flushSync)===!0,m=rt({currentLocation:s,nextLocation:l,historyAction:d});m?nt(m,{state:`blocked`,location:l,proceed(){nt(m,{state:`proceeding`,proceed:void 0,reset:void 0,location:l}),Te(t,n)},reset(){let e=new Map(D.blockers);e.set(m,bt),Ce({blockers:e})}}):await Oe(d,l,{submission:i,pendingError:a,preventScrollReset:f,replace:n&&n.replace,enableViewTransition:n&&n.viewTransition,flushSync:p,callSiteDefaultShouldRevalidate:n&&n.defaultShouldRevalidate})}function Ee(){ye||=Wn(),Be(),Ce({revalidation:`loading`});let e=ye.promise;return D.navigation.state===`submitting`?e:D.navigation.state===`idle`?(Oe(D.historyAction,D.location,{startUninterruptedRevalidation:!0}),e):(Oe(O||D.historyAction,D.navigation.location,{overrideNavigation:D.navigation,enableViewTransition:te===!0}),e)}async function Oe(t,n,r){F&&F.abort(),F=null,O=t,ie=(r&&r.startUninterruptedRevalidation)===!0,st(D.location,D.matches),N=(r&&r.preventScrollReset)===!0,te=(r&&r.enableViewTransition)===!0;let i=s.activeRoutes,a=r?.initialHydration&&D.matches&&D.matches.length>0&&!y?D.matches:se(i,n,c,!1,s.branches),o=(r&&r.flushSync)===!0;if(a&&D.initialized&&!ae&&xn(D.location,n)&&!(r&&r.submission&&Nn(r.submission.formMethod))){we(n,{matches:a},{flushSync:o});return}let l=lt(a,i,n.pathname);if(l.active&&l.matches&&(a=l.matches),!a){let{error:e,notFoundMatches:t,route:r}=it(n.pathname);we(n,{matches:t,loaderData:{},errors:{[r.id]:e}},{flushSync:o});return}let u=r&&r.overrideNavigation?{...r.overrideNavigation,matches:a,historyAction:t}:void 0;F=new AbortController;let d=cn(e.history,n,F.signal,r&&r.submission),f=e.getContext?await e.getContext():new P,p;if(r&&r.pendingError)p=[gn(a).route.id,{type:`error`,error:r.pendingError}];else if(r&&r.submission&&Nn(r.submission.formMethod)){let i=await Ae(d,n,r.submission,a,t,f,l.active,r&&r.initialHydration===!0,{replace:r.replace,flushSync:o});if(i.shortCircuited)return;if(i.pendingActionResult){let[e,t]=i.pendingActionResult;if(En(t)&&Ke(t.error)&&t.error.status===404){F=null,we(n,{matches:i.matches,loaderData:{},errors:{[e]:t.error}});return}}a=i.matches||a,p=i.pendingActionResult,u=Ln(n,a,t,r.submission),o=!1,l.active=!1,d=cn(e.history,d.url,d.signal)}let{shortCircuited:m,matches:h,loaderData:g,errors:_,workingFetchers:v}=await je(d,n,a,t,f,l.active,u,r&&r.submission,r&&r.fetcherSubmission,r&&r.replace,r&&r.initialHydration===!0,o,p,r&&r.callSiteDefaultShouldRevalidate);m||(F=null,we(n,{matches:h||a,...hn(p),loaderData:g,errors:_,...v?{fetchers:v}:{}}))}async function Ae(t,n,i,l,u,d,f,p,m={}){if(Be(),Ce({navigation:Rn(n,l,u,i)},{flushSync:m.flushSync===!0}),f){let e=await ut(l,n.pathname,t.signal);if(e.type===`aborted`)return{shortCircuited:!0};if(e.type===`error`){if(e.partialMatches.length===0){let{matches:t,route:n}=_n(s.activeRoutes);return{matches:t,pendingActionResult:[n.id,{type:`error`,error:e.error}]}}let t=gn(e.partialMatches).route.id;return{matches:e.partialMatches,pendingActionResult:[t,{type:`error`,error:e.error}]}}if(e.matches)l=e.matches;else{let{notFoundMatches:e,error:t,route:r}=it(n.pathname);return{matches:e,pendingActionResult:[r.id,{type:`error`,error:t}]}}}let h,g=Fn(l,n);if(!g.route.action&&!g.route.lazy)h={type:`error`,error:vn(405,{method:t.method,pathname:n.pathname,routeId:g.route.id})};else{let e=await Re(t,n,Qt(a,o,t,n,l,g,p?[]:r,d),d,null);if(h=e[g.route.id],!h){for(let t of l)if(e[t.route.id]){h=e[t.route.id];break}}if(t.signal.aborted)return{shortCircuited:!0}}if(Dn(h)){let n;return n=m&&m.replace!=null?m.replace:sn(h.response.headers.get(`Location`),new URL(t.url),c,e.history)===D.location.pathname+D.location.search,await Le(t,h,!0,{submission:i,replace:n}),{shortCircuited:!0}}if(En(h)){let e=gn(l,g.route.id);return(m&&m.replace)!==!0&&(O=`PUSH`),{matches:l,pendingActionResult:[e.route.id,h,g.route.id]}}return{matches:l,pendingActionResult:[g.route.id,h]}}async function je(t,n,i,l,u,d,f,p,m,h,g,_,v,y){let b=f||Ln(n,i,l,p),x=p||m||In(b),S=!ie&&!g;if(d){if(S){let e=Me(v);Ce({navigation:b,...e===void 0?{}:{actionData:e}},{flushSync:_})}let e=await ut(i,n.pathname,t.signal);if(e.type===`aborted`)return{shortCircuited:!0};if(e.type===`error`){if(e.partialMatches.length===0){let{matches:t,route:n}=_n(s.activeRoutes);return{matches:t,loaderData:{},errors:{[n.id]:e.error}}}let t=gn(e.partialMatches).route.id;return{matches:e.partialMatches,loaderData:{},errors:{[t]:e.error}}}if(e.matches)i=e.matches;else{let{error:e,notFoundMatches:t,route:r}=it(n.pathname);return{matches:t,loaderData:{},errors:{[r.id]:e}}}}let C=s.activeRoutes,{dsMatches:w,revalidatingFetchers:T}=Nt(t,u,a,o,e.history,D,i,x,n,g?[]:r,g===!0,ae,oe,ge,me,pe,C,c,e.patchRoutesOnNavigation!=null,s.branches,v,y);if(de=++ue,!e.dataStrategy&&!w.some(e=>e.shouldLoad)&&!w.some(e=>e.route.middleware&&e.route.middleware.length>0)&&T.length===0){let e=new Map(D.fetchers),t=Xe(e);return we(n,{matches:i,loaderData:{},errors:v&&En(v[1])?{[v[0]]:v[1].error}:null,...hn(v),...t?{fetchers:e}:{}},{flushSync:_}),{shortCircuited:!0}}if(S){let e={};if(!d){e.navigation=b;let t=Me(v);t!==void 0&&(e.actionData=t)}T.length>0&&(e.fetchers=Ne(T)),Ce(e,{flushSync:_})}T.forEach(e=>{Je(e.key),e.controller&&le.set(e.key,e.controller)});let E=()=>T.forEach(e=>Je(e.key));F&&F.signal.addEventListener(`abort`,E);let{loaderResults:O,fetcherResults:k}=await ze(w,T,t,n,u);if(t.signal.aborted)return{shortCircuited:!0};F&&F.signal.removeEventListener(`abort`,E),T.forEach(e=>le.delete(e.key));let A=yn(O);if(A)return await Le(t,A.result,!0,{replace:h}),{shortCircuited:!0};if(A=yn(k),A)return pe.add(A.key),await Le(t,A.result,!0,{replace:h}),{shortCircuited:!0};let j=new Map(D.fetchers),{loaderData:M,errors:ee}=pn(D,i,O,v,T,k,j);g&&D.errors&&(ee={...D.errors,...ee});let N=Xe(j),P=$e(de,j),te=N||P||T.length>0;return{matches:i,loaderData:M,errors:ee,...te?{workingFetchers:j}:{}}}function Me(e){if(e&&!En(e[1]))return{[e[0]]:e[1].data};if(D.actionData)return Object.keys(D.actionData).length===0?null:D.actionData}function Ne(e){let t=new Map(D.fetchers);return e.forEach(e=>{let n=t.get(e.key),r=zn(void 0,n?n.data:void 0);t.set(e.key,r)}),t}async function Pe(t,n,r,i){Je(t);let a=(i&&i.flushSync)===!0,o=s.activeRoutes,l=jt(D.location,D.matches,c,r,n,i?.relative),u=se(o,l,c,!1,s.branches),d=lt(u,o,l);if(d.active&&d.matches&&(u=d.matches),!u){He(t,n,vn(404,{pathname:l}),{flushSync:a});return}let{path:f,submission:p,error:m}=Mt(!0,l,i);if(m){He(t,n,m,{flushSync:a});return}let h=e.getContext?await e.getContext():new P,g=(i&&i.preventScrollReset)===!0;p&&Nn(p.formMethod)?await Fe(t,n,f,u,h,d.active,a,g,p,i&&i.defaultShouldRevalidate):(me.set(t,{routeId:n,path:f}),await Ie(t,n,f,u,h,d.active,a,g,p))}async function Fe(t,n,i,l,u,d,f,p,m,h){Be(),me.delete(t),Ve(t,Bn(m,D.fetchers.get(t)),{flushSync:f});let g=new AbortController,_=cn(e.history,i,g.signal,m);if(d){let e=await ut(l,new URL(_.url).pathname,_.signal,t);if(e.type===`aborted`)return;if(e.type===`error`){He(t,n,e.error,{flushSync:f});return}if(e.matches)l=e.matches;else{He(t,n,vn(404,{pathname:i}),{flushSync:f});return}}let v=Fn(l,i);if(!v.route.action&&!v.route.lazy){He(t,n,vn(405,{method:m.formMethod,pathname:i,routeId:n}),{flushSync:f});return}le.set(t,g);let y=ue,b=Qt(a,o,_,i,l,v,r,u),x=await Re(_,i,b,u,t),S=x[v.route.id];if(!S){for(let e of b)if(x[e.route.id]){S=x[e.route.id];break}}if(_.signal.aborted){le.get(t)===g&&le.delete(t);return}if(ge.has(t)){if(Dn(S)||En(S)){Ve(t,Vn(void 0));return}}else{if(Dn(S)){if(le.delete(t),de>y){Ve(t,Vn(void 0));return}return pe.add(t),Ve(t,zn(m)),Le(_,S,!1,{fetcherSubmission:m,preventScrollReset:p})}if(En(S)){He(t,n,S.error);return}}let C=D.navigation.location||D.location,w=cn(e.history,C,g.signal),E=s.activeRoutes,k=D.navigation.state===`idle`?D.matches:se(E,D.navigation.location,c,!1,s.branches);T(k,`Didn't find any matches after fetcher action`);let A=++ue;fe.set(t,A);let{dsMatches:j,revalidatingFetchers:M}=Nt(w,u,a,o,e.history,D,k,m,C,r,!1,ae,oe,ge,me,pe,E,c,e.patchRoutesOnNavigation!=null,s.branches,[v.route.id,S],h),ee=zn(m,S.data),N=new Map(D.fetchers);N.set(t,ee),M.filter(e=>e.key!==t).forEach(e=>{let t=e.key,n=N.get(t),r=zn(void 0,n?n.data:void 0);N.set(t,r),Je(t),e.controller&&le.set(t,e.controller)}),Ce({fetchers:N});let P=()=>M.forEach(e=>Je(e.key));g.signal.addEventListener(`abort`,P);let{loaderResults:te,fetcherResults:ne}=await ze(j,M,w,C,u);if(g.signal.aborted)return;g.signal.removeEventListener(`abort`,P),fe.delete(t),le.delete(t),M.forEach(e=>le.delete(e.key));let re=D.fetchers.has(t),ie=e=>{if(!re)return e;let n=new Map(e.fetchers);return n.set(t,Vn(S.data)),{...e,fetchers:n}},I=yn(te);if(I)return D=ie(D),Le(w,I.result,!1,{preventScrollReset:p});if(I=yn(ne),I)return pe.add(I.key),D=ie(D),Le(w,I.result,!1,{preventScrollReset:p});let ce=new Map(D.fetchers);re&&ce.set(t,Vn(S.data));let{loaderData:he,errors:_e}=pn(D,k,te,void 0,M,ne,ce);$e(A,ce),D.navigation.state===`loading`&&A>de?(T(O,`Expected pending action`),F&&F.abort(),we(D.navigation.location,{matches:k,loaderData:he,errors:_e,fetchers:ce})):(Ce({errors:_e,loaderData:mn(D.loaderData,he,k,_e),fetchers:ce}),ae=!1)}async function Ie(t,n,i,s,c,l,u,d,f){let p=D.fetchers.get(t);Ve(t,zn(f,p?p.data:void 0),{flushSync:u});let m=new AbortController,h=cn(e.history,i,m.signal);if(l){let e=await ut(s,new URL(h.url).pathname,h.signal,t);if(e.type===`aborted`)return;if(e.type===`error`){He(t,n,e.error,{flushSync:u});return}if(e.matches)s=e.matches;else{He(t,n,vn(404,{pathname:i}),{flushSync:u});return}}let g=Fn(s,i);le.set(t,m);let _=ue,v=await Re(h,i,Qt(a,o,h,i,s,g,r,c),c,t),y=v[g.route.id];if(!y){for(let e of s)if(v[e.route.id]){y=v[e.route.id];break}}if(le.get(t)===m&&le.delete(t),!h.signal.aborted){if(ge.has(t))Ve(t,Vn(void 0));else if(Dn(y)){if(de>_){Ve(t,Vn(void 0));return}pe.add(t),await Le(h,y,!1,{preventScrollReset:d})}else En(y)?He(t,n,y.error):Ve(t,Vn(y.data))}}async function Le(r,i,a,{submission:o,fetcherSubmission:s,preventScrollReset:l,replace:u}={}){a||(M?.resolve(),M=null),i.response.headers.has(`X-Remix-Revalidate`)&&(ae=!0);let d=i.response.headers.get(`Location`);T(d,`Expected a Location header on the redirect Response`);let f=d,p=new URL(r.url);d=sn(d,p,c,e.history),dt(f,d,p,`allow-explicit`);let m=k(D.location,d,{_isRedirect:!0});if(n){let e=!1;if(i.response.headers.has(`X-Remix-Reload-Document`))e=!0;else if(ke(d)){let n=ee(t,d,!0);e=n.origin!==t.location.origin||De(n.pathname,c)==null}if(e){u?t.location.replace(d):t.location.assign(d);return}}F=null;let h=u===!0||i.response.headers.has(`X-Remix-Replace`)?`REPLACE`:`PUSH`,{formMethod:g,formAction:_,formEncType:v}=D.navigation;!o&&!s&&g&&_&&v&&(o=In(D.navigation));let y=o||s;_t.has(i.response.status)&&y&&Nn(y.formMethod)?await Oe(h,m,{submission:{...y,formAction:d},preventScrollReset:l||N,enableViewTransition:a?te:void 0}):await Oe(h,m,{overrideNavigation:Ln(m,[],h,o),fetcherSubmission:s,preventScrollReset:l||N,enableViewTransition:a?te:void 0})}async function Re(e,t,n,r,i){let a,o={};try{a=await $t(l,e,t,n,i,r,!1)}catch(e){return n.filter(e=>e.shouldLoad).forEach(t=>{o[t.route.id]={type:`error`,error:e}}),o}if(e.signal.aborted)return o;if(!Nn(e.method))for(let e of n){if(a[e.route.id]?.type===`error`)break;a.hasOwnProperty(e.route.id)||D.loaderData.hasOwnProperty(e.route.id)||D.errors&&D.errors.hasOwnProperty(e.route.id)||!e.shouldCallHandler()||(a[e.route.id]={type:`error`,result:Error(`No result returned from dataStrategy for route ${e.route.id}`)})}for(let[t,r]of Object.entries(a))if(Tn(r)){let i=r.result;o[t]={type:`redirect`,response:rn(i,e,t,n,c)}}else o[t]=await nn(r);return o}async function ze(e,t,n,r,i){let a=Re(n,r,e,i,null),o=Promise.all(t.map(async e=>{if(e.matches&&e.match&&e.request&&e.controller){let t=(await Re(e.request,e.path,e.matches,i,e.key))[e.match.route.id];return{[e.key]:t}}return Promise.resolve({[e.key]:{type:`error`,error:vn(404,{pathname:e.path})}})}));return{loaderResults:await a,fetcherResults:(await o).reduce((e,t)=>Object.assign(e,t),{})}}function Be(){ae=!0,me.forEach((e,t)=>{le.has(t)&&oe.add(t),Je(t)})}function Ve(e,t,n={}){let r=new Map(D.fetchers);r.set(e,t),Ce({fetchers:r},{flushSync:(n&&n.flushSync)===!0})}function He(e,t,n,r={}){let i=gn(D.matches,t),a=new Map(D.fetchers);Ge(a,e),Ce({errors:{[i.route.id]:n},fetchers:a},{flushSync:(r&&r.flushSync)===!0})}function Ue(e){return he.set(e,(he.get(e)||0)+1),ge.has(e)&&ge.delete(e),D.fetchers.get(e)||yt}function We(e,t){Je(e,t?.reason),Ve(e,Vn(null))}function Ge(e,t){let n=D.fetchers.get(t);le.has(t)&&!(n&&n.state===`loading`&&fe.has(t))&&Je(t),me.delete(t),fe.delete(t),pe.delete(t),ge.delete(t),oe.delete(t),e.delete(t)}function qe(e){let t=(he.get(e)||0)-1;t<=0?(he.delete(e),ge.add(e)):he.set(e,t),Ce({fetchers:new Map(D.fetchers)})}function Je(e,t){let n=le.get(e);n&&(n.abort(t),le.delete(e))}function Ye(e,t){for(let n of e){let e=t.get(n);T(e,`Expected fetcher: ${n}`);let r=Vn(e.data);t.set(n,r)}}function Xe(e){let t=[],n=!1;for(let r of pe){let i=e.get(r);T(i,`Expected fetcher: ${r}`),i.state===`loading`&&(pe.delete(r),t.push(r),n=!0)}return Ye(t,e),n}function $e(e,t){let n=[];for(let[r,i]of fe)if(i<e){let e=t.get(r);T(e,`Expected fetcher: ${r}`),e.state===`loading`&&(Je(r),fe.delete(r),n.push(r))}return Ye(n,t),n.length>0}function et(e,t){let n=D.blockers.get(e)||bt;return _e.get(e)!==t&&_e.set(e,t),n}function tt(e){D.blockers.delete(e),_e.delete(e)}function nt(e,t){let n=D.blockers.get(e)||bt;T(n.state===`unblocked`&&t.state===`blocked`||n.state===`blocked`&&t.state===`blocked`||n.state===`blocked`&&t.state===`proceeding`||n.state===`blocked`&&t.state===`unblocked`||n.state===`proceeding`&&t.state===`unblocked`,`Invalid blocker state transition: ${n.state} -> ${t.state}`);let r=new Map(D.blockers);r.set(e,t),Ce({blockers:r})}function rt({currentLocation:e,nextLocation:t,historyAction:n}){if(_e.size===0)return;_e.size>1&&E(!1,`A router only supports one blocker at a time`);let r=Array.from(_e.entries()),[i,a]=r[r.length-1],o=D.blockers.get(i);if(!(o&&o.state===`proceeding`)&&a({currentLocation:e,nextLocation:t,historyAction:n}))return i}function it(e){let t=vn(404,{pathname:e}),n=s.activeRoutes,{matches:r,route:i}=_n(n);return{notFoundMatches:r,route:i,error:t}}function at(e,t,n){if(m=e,g=t,h=n||null,!_&&D.navigation===vt){_=!0;let e=ct(D.location,D.matches);e!=null&&Ce({restoreScrollPosition:e})}return()=>{m=null,g=null,h=null}}function ot(e,t){return h&&h(e,t.map(e=>ce(e,D.loaderData)))||e.key}function st(e,t){if(m&&g){let n=ot(e,t);m[n]=g()}}function ct(e,t){if(m){let n=ot(e,t),r=m[n];if(typeof r==`number`)return r}return null}function lt(t,n,r){if(e.patchRoutesOnNavigation){let e=s.branches;if(!t)return{active:!0,matches:se(n,r,c,!0,e)||[]};if(Object.keys(t[0].params).length>0)return{active:!0,matches:se(n,r,c,!0,e)}}return{active:!1,matches:null}}async function ut(t,n,r,i){if(!e.patchRoutesOnNavigation)return{type:`success`,matches:t};let l=t;for(;;){let t=o;try{await e.patchRoutesOnNavigation({signal:r,path:n,matches:l,fetcherKey:i,patch:(e,n)=>{r.aborted||zt(e,n,s,t,a,!1)}})}catch(e){return{type:`error`,error:e,partialMatches:l}}if(r.aborted)return{type:`aborted`};let u=s.branches,d=se(s.activeRoutes,n,c,!1,u),f=null;if(d&&(Object.keys(d[0].params).length===0||(f=se(s.activeRoutes,n,c,!0,u),!(f&&l.length<f.length&&ft(l,f.slice(0,l.length))))))return{type:`success`,matches:d};if(f||=se(s.activeRoutes,n,c,!0,u),!f||ft(l,f))return{type:`success`,matches:null};l=f}}function ft(e,t){return e.length===t.length&&e.every((e,n)=>e.route.id===t[n].route.id)}function pt(e){o={},s.setHmrRoutes(I(e,a,void 0,o))}function mt(e,t,n=!1){zt(e,t,s,o,a,n),s.hasHMRRoutes||Ce({})}return w={get basename(){return c},get future(){return u},get state(){return D},get routes(){return s.stableRoutes},get branches(){return s.branches},get manifest(){return o},get window(){return t},initialize:be,subscribe:Se,enableScrollRestoration:at,navigate:Te,fetch:Pe,revalidate:Ee,createHref:t=>e.history.createHref(t),createURL:t=>e.history.createURL(t),encodeLocation:t=>e.history.encodeLocation(t),getFetcher:Ue,resetFetcher:We,deleteFetcher:qe,dispose:xe,getBlocker:et,deleteBlocker:tt,patchRoutes:mt,_internalFetchControllers:le,_internalSetRoutes:pt,_internalSetStateDoNotUseOrYouWillBreakYourApp(e){Ce(e)}},e.instrumentations&&(w=Qe(w,e.instrumentations.map(e=>e.router).filter(Boolean))),w}function At(e){return e!=null&&(`formData`in e&&e.formData!=null||`body`in e&&e.body!==void 0)}function jt(e,t,n,r,i,a){let o,s;if(i){o=[];for(let e of t)if(o.push(e),e.route.id===i){s=e;break}}else o=t,s=t[t.length-1];let c=Fe(r||`.`,Pe(o),De(e.pathname,n)||e.pathname,a===`path`);if(r??(c.search=e.search,c.hash=e.hash),(r==null||r===``||r===`.`)&&s){let e=Pn(c.search);if(s.route.index&&!e)c.search=c.search?c.search.replace(/^\?/,`?index&`):`?index`;else if(!s.route.index&&e){let e=new URLSearchParams(c.search),t=e.getAll(`index`);e.delete(`index`),t.filter(e=>e).forEach(t=>e.append(`index`,t));let n=e.toString();c.search=n?`?${n}`:``}}return n!==`/`&&(c.pathname=Oe({basename:n,pathname:c.pathname})),A(c)}function Mt(e,t,n){if(!n||!At(n))return{path:t};if(n.formMethod&&!Mn(n.formMethod))return{path:t,error:vn(405,{method:n.formMethod})};let r=()=>({path:t,error:vn(400,{type:`invalid-body`})}),i=(n.formMethod||`get`).toUpperCase(),a=bn(t);if(n.body!==void 0){if(n.formEncType===`text/plain`){if(!Nn(i))return r();let e=typeof n.body==`string`?n.body:n.body instanceof FormData||n.body instanceof URLSearchParams?Array.from(n.body.entries()).reduce((e,[t,n])=>`${e}${t}=${n}
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/monaco-Cz8BFbYv.js","assets/index-6yaKzt_o.js","assets/editor.api-DMnYGpPP.js","assets/editor-DjpsE8to.css","assets/monaco-n7clI0si.css"])))=>i.map(i=>d[i]);
2
+ import{t as e}from"./index-6yaKzt_o.js";var t=Object.create,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,a=Object.getPrototypeOf,o=Object.prototype.hasOwnProperty,s=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t,t.exports),e=null),t.exports),c=(e,t)=>{let r={};for(var i in e)n(r,i,{get:e[i],enumerable:!0});return t||n(r,Symbol.toStringTag,{value:`Module`}),r},l=(e,t,a,s)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var c=i(t),l=0,u=c.length,d;l<u;l++)d=c[l],!o.call(e,d)&&d!==a&&n(e,d,{get:(e=>t[e]).bind(null,d),enumerable:!(s=r(t,d))||s.enumerable});return e},u=(e,r,i)=>(i=e==null?{}:t(a(e)),l(r||!e||!e.__esModule||!o.call(e,`default`)?n(i,`default`,{value:e,enumerable:!0}):i,e)),d=s((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.iterator;function m(e){return typeof e!=`object`||!e?null:(e=p&&e[p]||e[`@@iterator`],typeof e==`function`?e:null)}var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,_={};function v(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}v.prototype.isReactComponent={},v.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`)},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function y(){}y.prototype=v.prototype;function b(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}var x=b.prototype=new y;x.constructor=b,g(x,v.prototype),x.isPureReactComponent=!0;var S=Array.isArray;function C(){}var w={H:null,A:null,T:null,S:null},T=Object.prototype.hasOwnProperty;function E(e,n,r){var i=r.ref;return{$$typeof:t,type:e,key:n,ref:i===void 0?null:i,props:r}}function D(e,t){return E(e.type,t,e.props)}function O(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 A=/\/+/g;function j(e,t){return typeof e==`object`&&e&&e.key!=null?k(``+e.key):t.toString(36)}function M(e){switch(e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason;default:switch(typeof e.status==`string`?e.then(C,C):(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 ee(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,ee(c(e._payload),r,i,a,o)}}if(c)return o=o(e),c=a===``?`.`+j(e,0):a,S(o)?(i=``,c!=null&&(i=c.replace(A,`$&/`)+`/`),ee(o,r,i,``,function(e){return e})):o!=null&&(O(o)&&(o=D(o,i+(o.key==null||e&&e.key===o.key?``:(``+o.key).replace(A,`$&/`)+`/`)+c)),r.push(o)),1;c=0;var l=a===``?`.`:a+`:`;if(S(e))for(var u=0;u<e.length;u++)a=e[u],s=l+j(a,u),c+=ee(a,r,i,s,o);else if(u=m(e),typeof u==`function`)for(e=u.call(e),u=0;!(a=e.next()).done;)a=a.value,s=l+j(a,u++),c+=ee(a,r,i,s,o);else if(s===`object`){if(typeof e.then==`function`)return ee(M(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 N(e,t,n){if(e==null)return e;var r=[],i=0;return ee(e,r,``,``,function(e){return t.call(n,e,i++)}),r}function P(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(t){(e._status===0||e._status===-1)&&(e._status=1,e._result=t)},function(t){(e._status===0||e._status===-1)&&(e._status=2,e._result=t)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var F=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)},te={map:N,forEach:function(e,t,n){N(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return N(e,function(){t++}),t},toArray:function(e){return N(e,function(e){return e})||[]},only:function(e){if(!O(e))throw Error(`React.Children.only expected to receive a single React element child.`);return e}};e.Activity=f,e.Children=te,e.Component=v,e.Fragment=r,e.Profiler=a,e.PureComponent=b,e.StrictMode=i,e.Suspense=l,e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=w,e.__COMPILER_RUNTIME={__proto__:null,c:function(e){return w.H.useMemoCache(e)}},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=g({},e.props),i=e.key;if(t!=null)for(a in t.key!==void 0&&(i=``+t.key),t)!T.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 E(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)T.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 E(e,a,i)},e.createRef=function(){return{current:null}},e.forwardRef=function(e){return{$$typeof:c,render:e}},e.isValidElement=O,e.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:P}},e.memo=function(e,t){return{$$typeof:u,type:e,compare:t===void 0?null:t}},e.startTransition=function(e){var t=w.T,n={};w.T=n;try{var r=e(),i=w.S;i!==null&&i(n,r),typeof r==`object`&&r&&typeof r.then==`function`&&r.then(C,F)}catch(e){F(e)}finally{t!==null&&n.types!==null&&(t.types=n.types),w.T=t}},e.unstable_useCacheRefresh=function(){return w.H.useCacheRefresh()},e.use=function(e){return w.H.use(e)},e.useActionState=function(e,t,n){return w.H.useActionState(e,t,n)},e.useCallback=function(e,t){return w.H.useCallback(e,t)},e.useContext=function(e){return w.H.useContext(e)},e.useDebugValue=function(){},e.useDeferredValue=function(e,t){return w.H.useDeferredValue(e,t)},e.useEffect=function(e,t){return w.H.useEffect(e,t)},e.useEffectEvent=function(e){return w.H.useEffectEvent(e)},e.useId=function(){return w.H.useId()},e.useImperativeHandle=function(e,t,n){return w.H.useImperativeHandle(e,t,n)},e.useInsertionEffect=function(e,t){return w.H.useInsertionEffect(e,t)},e.useLayoutEffect=function(e,t){return w.H.useLayoutEffect(e,t)},e.useMemo=function(e,t){return w.H.useMemo(e,t)},e.useOptimistic=function(e,t){return w.H.useOptimistic(e,t)},e.useReducer=function(e,t,n){return w.H.useReducer(e,t,n)},e.useRef=function(e){return w.H.useRef(e)},e.useState=function(e){return w.H.useState(e)},e.useSyncExternalStore=function(e,t,n){return w.H.useSyncExternalStore(e,t,n)},e.useTransition=function(){return w.H.useTransition()},e.version=`19.2.8`})),f=s(((e,t)=>{t.exports=d()})),p=u(f(),1),m=e=>{throw TypeError(e)},h=(e,t,n)=>t.has(e)||m(`Cannot `+n),g=(e,t,n)=>(h(e,t,`read from private field`),n?n.call(e):t.get(e)),_=(e,t,n)=>t.has(e)?m(`Cannot add the same private member more than once`):t instanceof WeakSet?t.add(e):t.set(e,n),v=(e,t,n,r)=>(h(e,t,`write to private field`),r?r.call(e,n):t.set(e,n),n),y=/^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i,b=/^[\\/]{2}/;function x(e,t){return t+e.replace(/\\/g,`/`)}var S=`popstate`;function C(e){return typeof e==`object`&&!!e&&`pathname`in e&&`search`in e&&`hash`in e&&`state`in e&&`key`in e}function w(e={}){function t(e,t){let n=t.state?.masked,{pathname:r,search:i,hash:a}=n||e.location;return k(``,{pathname:r,search:i,hash:a},t.state&&t.state.usr||null,t.state&&t.state.key||`default`,n?{pathname:e.location.pathname,search:e.location.search,hash:e.location.hash}:void 0)}function n(e,t){return typeof t==`string`?t:A(t)}return M(t,n,null,e)}function T(e,t){if(e===!1||e==null)throw Error(t)}function E(e,t){if(!e){typeof console<`u`&&console.warn(t);try{throw Error(t)}catch{}}}function D(){return Math.random().toString(36).substring(2,10)}function O(e,t){return{usr:e.state,key:e.key,idx:t,masked:e.mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}function k(e,t,n=null,r,i){return{pathname:typeof e==`string`?e:e.pathname,search:``,hash:``,...typeof t==`string`?j(t):t,state:n,key:t&&t.key||r||D(),mask:i}}function A({pathname:e=`/`,search:t=``,hash:n=``}){return t&&t!==`?`&&(e+=t.charAt(0)===`?`?t:`?`+t),n&&n!==`#`&&(e+=n.charAt(0)===`#`?n:`#`+n),e}function j(e){let t={};if(e){let n=e.indexOf(`#`);n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf(`?`);r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function M(e,t,n,r={}){let{window:i=document.defaultView,v5Compat:a=!1}=r,o=i.history,s=`POP`,c=null,l=u();l??(l=0,o.replaceState({...o.state,idx:l},``));function u(){return(o.state||{idx:null}).idx}function d(){s=`POP`;let e=u(),t=e==null?null:e-l;l=e,c&&c({action:s,location:h.location,delta:t})}function f(e,t){s=`PUSH`;let r=C(e)?e:k(h.location,e,t);n&&n(r,e),l=u()+1;let d=O(r,l),f=h.createHref(r.mask||r);try{o.pushState(d,``,f)}catch(e){if(e instanceof DOMException&&e.name===`DataCloneError`)throw e;i.location.assign(f)}a&&c&&c({action:s,location:h.location,delta:1})}function p(e,t){s=`REPLACE`;let r=C(e)?e:k(h.location,e,t);n&&n(r,e),l=u();let i=O(r,l),d=h.createHref(r.mask||r);o.replaceState(i,``,d),a&&c&&c({action:s,location:h.location,delta:0})}function m(e){return ee(i,e)}let h={get action(){return s},get location(){return e(i,o)},listen(e){if(c)throw Error(`A history only accepts one active listener`);return i.addEventListener(S,d),c=e,()=>{i.removeEventListener(S,d),c=null}},createHref(e){return t(i,e)},createURL:m,encodeLocation(e){let t=m(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:f,replace:p,go(e){return o.go(e)}};return h}function ee(e,t,n=!1){let r=`http://localhost`;e&&(r=e.location.origin===`null`?e.location.href:e.location.origin),T(r,`No window.location.(origin|href) available to create URL`);let i=typeof t==`string`?t:A(t);return i=i.replace(/ $/,`%20`),!n&&b.test(i)&&(i=r+i),new URL(i,r)}var N,P=class{constructor(e){if(_(this,N,new Map),e)for(let[t,n]of e)this.set(t,n)}get(e){if(g(this,N).has(e))return g(this,N).get(e);if(e.defaultValue!==void 0)return e.defaultValue;throw Error(`No value found for context`)}set(e,t){g(this,N).set(e,t)}};N=new WeakMap;var F=new Set([`lazy`,`caseSensitive`,`path`,`id`,`index`,`children`]);function te(e){return F.has(e)}var ne=new Set([`lazy`,`caseSensitive`,`path`,`id`,`index`,`middleware`,`children`]);function re(e){return ne.has(e)}function ie(e){return e.index===!0}function I(e,t,n=[],r={},i=!1){return e.map((e,a)=>{let o=[...n,String(a)],s=typeof e.id==`string`?e.id:o.join(`-`);if(T(e.index!==!0||!e.children,`Cannot specify children on an index route`),T(i||!r[s],`Found a route id collision on id "${s}". Route id's must be globally unique within Data Router usages`),ie(e)){let n={...e,id:s};return r[s]=ae(n,t(n)),n}{let n={...e,id:s,children:void 0};return r[s]=ae(n,t(n)),e.children&&(n.children=I(e.children,t,o,r,i)),n}})}function ae(e,t){return Object.assign(e,{...t,...typeof t.lazy==`object`&&t.lazy!=null?{lazy:{...e.lazy,...t.lazy}}:{}})}function oe(e,t,n=`/`){return se(e,t,n,!1)}function se(e,t,n,r,i){let a=De((typeof t==`string`?j(t):t).pathname||`/`,n);if(a==null)return null;let o=i??le(e),s=null,c=Ee(a);for(let e=0;s==null&&e<o.length;++e)s=Se(o[e],c,r);return s}function ce(e,t){let{route:n,pathname:r,params:i}=e;return{id:n.id,pathname:r,params:i,data:t[n.id],loaderData:t[n.id],handle:n.handle}}function le(e){let t=ue(e);return fe(t),t}function ue(e,t=[],n=[],r=``,i=!1){let a=(e,a,o=i,s)=>{let c={relativePath:s===void 0?e.path||``:s,caseSensitive:e.caseSensitive===!0,childrenIndex:a,route:e};if(c.relativePath.startsWith(`/`)){if(!c.relativePath.startsWith(r)&&o)return;T(c.relativePath.startsWith(r),`Absolute route path "${c.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),c.relativePath=c.relativePath.slice(r.length)}let l=Le([r,c.relativePath]),u=n.concat(c);e.children&&e.children.length>0&&(T(e.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${l}".`),ue(e.children,t,u,l,o)),(e.path!=null||e.index)&&t.push({path:l,score:be(l,e.index),routesMeta:u.map((e,t)=>{let[n,r]=Te(e.relativePath,e.caseSensitive,t===u.length-1);return{...e,matcher:n,compiledParams:r}})})};return e.forEach((e,t)=>{if(e.path===``||!e.path?.includes(`?`))a(e,t);else for(let n of de(e.path))a(e,t,!0,n)}),t}function de(e){let t=e.split(`/`);if(t.length===0)return[];let[n,...r]=t,i=n.endsWith(`?`),a=n.replace(/\?$/,``);if(r.length===0)return i?[a,``]:[a];let o=de(r.join(`/`)),s=[];return s.push(...o.map(e=>e===``?a:[a,e].join(`/`))),i&&s.push(...o),s.map(t=>e.startsWith(`/`)&&t===``?`/`:t)}function fe(e){e.sort((e,t)=>e.score===t.score?xe(e.routesMeta.map(e=>e.childrenIndex),t.routesMeta.map(e=>e.childrenIndex)):t.score-e.score)}var pe=/^:[\w-]+$/,me=3,he=2,ge=1,_e=10,ve=-2,ye=e=>e===`*`;function be(e,t){let n=e.split(`/`),r=n.length;return n.some(ye)&&(r+=ve),t&&(r+=he),n.filter(e=>!ye(e)).reduce((e,t)=>e+(pe.test(t)?me:t===``?ge:_e),r)}function xe(e,t){return e.length===t.length&&e.slice(0,-1).every((e,n)=>e===t[n])?e[e.length-1]-t[t.length-1]:0}function Se(e,t,n=!1){let{routesMeta:r}=e,i={},a=`/`,o=[];for(let e=0;e<r.length;++e){let s=r[e],c=e===r.length-1,l=a===`/`?t:t.slice(a.length)||`/`,u={path:s.relativePath,caseSensitive:s.caseSensitive,end:c},d=s.matcher&&s.compiledParams?we(u,l,s.matcher,s.compiledParams):Ce(u,l),f=s.route;if(!d&&c&&n&&!r[r.length-1].route.index&&(d=Ce({path:s.relativePath,caseSensitive:s.caseSensitive,end:!1},l)),!d)return null;Object.assign(i,d.params),o.push({params:i,pathname:Le([a,d.pathname]),pathnameBase:ze(Le([a,d.pathnameBase])),route:f}),d.pathnameBase!==`/`&&(a=Le([a,d.pathnameBase]))}return o}function Ce(e,t){typeof e==`string`&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=Te(e.path,e.caseSensitive,e.end);return we(e,t,n,r)}function we(e,t,n,r){let i=t.match(n);if(!i)return null;let a=i[0],o=Re(a,1),s=i.slice(1);return{params:r.reduce((e,{paramName:t,isOptional:n},r)=>{if(t===`*`){let e=s[r]||``;o=Re(a.slice(0,a.length-e.length),1)}let i=s[r];return e[t]=n&&!i?void 0:(i||``).replace(/%2F/g,`/`),e},{}),pathname:a,pathnameBase:o,pattern:e}}function Te(e,t=!1,n=!0){E(e===`*`||!e.endsWith(`*`)||e.endsWith(`/*`),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,`/*`)}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,`/*`)}".`);let r=[],i=`^`+e.replace(/\/*\*?$/,``).replace(/^\/*/,`/`).replace(/[\\.*+^${}|()[\]]/g,`\\$&`).replace(/\/:([\w-]+)(\?)?/g,(e,t,n,i,a)=>{if(r.push({paramName:t,isOptional:n!=null}),n){let t=a.charAt(i+e.length);return t&&t!==`/`?`/([^\\/]*)`:`(?:/([^\\/]*))?`}return`/([^\\/]+)`}).replace(/\/([\w-]+)\?(\/|$)/g,`(/$1)?$2`);return e.endsWith(`*`)?(r.push({paramName:`*`}),i+=e===`*`||e===`/*`?`(.*)$`:`(?:\\/(.+)|\\/*)$`):n?i+=`\\/*$`:e!==``&&e!==`/`&&(i+=`(?:(?=\\/|$))`),[new RegExp(i,t?void 0:`i`),r]}function Ee(e){try{return e.split(`/`).map(e=>decodeURIComponent(e).replace(/\//g,`%2F`)).join(`/`)}catch(t){return E(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function De(e,t){if(t===`/`)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith(`/`)?t.length-1:t.length,r=e.charAt(n);return r&&r!==`/`?null:e.slice(n)||`/`}function Oe({basename:e,pathname:t}){return t===`/`?e:Le([e,t])}var ke=e=>y.test(e);function Ae(e,t=`/`){let{pathname:n,search:r=``,hash:i=``}=typeof e==`string`?j(e):e,a;return n?(n=Ie(n),a=n.startsWith(`/`)||n.startsWith(`\\`)?je(n.substring(1),`/`):je(n,t)):a=t,{pathname:a,search:Be(r),hash:Ve(i)}}function je(e,t){let n=Re(t).split(`/`);return e.split(`/`).forEach(e=>{e===`..`?n.length>1&&n.pop():e!==`.`&&n.push(e)}),n.length>1?n.join(`/`):`/`}function Me(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function Ne(e){return e.filter((e,t)=>t===0||e.route.path&&e.route.path.length>0)}function Pe(e){let t=Ne(e);return t.map((e,n)=>n===t.length-1?e.pathname:e.pathnameBase)}function Fe(e,t,n,r=!1){let i;typeof e==`string`?i=j(e):(i={...e},T(!i.pathname||!i.pathname.includes(`?`),Me(`?`,`pathname`,`search`,i)),T(!i.pathname||!i.pathname.includes(`#`),Me(`#`,`pathname`,`hash`,i)),T(!i.search||!i.search.includes(`#`),Me(`#`,`search`,`hash`,i)));let a=e===``||i.pathname===``,o=a?`/`:i.pathname,s;if(o==null)s=n;else{let e=t.length-1;if(!r&&o.startsWith(`..`)){let t=o.split(`/`);for(;t[0]===`..`;)t.shift(),--e;i.pathname=t.join(`/`)}s=e>=0?t[e]:`/`}let c=Ae(i,s),l=o&&o!==`/`&&o.endsWith(`/`),u=(a||o===`.`)&&n.endsWith(`/`);return!c.pathname.endsWith(`/`)&&(l||u)&&(c.pathname+=`/`),c}var Ie=e=>e.replace(/[\\/]{2,}/g,`/`),Le=e=>Ie(e.join(`/`));function Re(e,t=0){let n=e.length;for(;n>t&&e.charCodeAt(n-1)===47;)n--;return n===e.length?e:e.slice(0,n)}var ze=e=>Re(e).replace(/^\/*/,`/`),Be=e=>!e||e===`?`?``:e.startsWith(`?`)?e:`?`+e,Ve=e=>!e||e===`#`?``:e.startsWith(`#`)?e:`#`+e,He=(e,t=302)=>{let n=t;typeof n==`number`?n={status:n}:n.status===void 0&&(n.status=302);let r=new Headers(n.headers);return r.set(`Location`,e),new Response(null,{...n,headers:r})},Ue=(e,t)=>{let n=He(e,t);return n.headers.set(`X-Remix-Replace`,`true`),n},We=[`EvalError`,`RangeError`,`ReferenceError`,`SyntaxError`,`TypeError`,`URIError`],Ge=class{constructor(e,t,n,r=!1){this.status=e,this.statusText=t||``,this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function Ke(e){return e!=null&&typeof e.status==`number`&&typeof e.statusText==`string`&&typeof e.internal==`boolean`&&`data`in e}function qe(e){return Le(e.map(e=>e.route.path).filter(Boolean))||`/`}var Je=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;function Ye(e,t){let n=e;if(typeof n!=`string`||!y.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,i=!1;if(Je)try{let e=new URL(window.location.href),r=b.test(n)?new URL(x(n,e.protocol)):new URL(n),a=De(r.pathname,t);r.origin===e.origin&&a!=null?n=a+r.search+r.hash:i=!0}catch{E(!1,`<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:i,to:n}}var Xe=Symbol(`Uninstrumented`);function Ze(e,t){let n={lazy:[],"lazy.loader":[],"lazy.action":[],"lazy.middleware":[],middleware:[],loader:[],action:[]};e.forEach(e=>e({id:t.id,index:t.index,path:t.path,instrument(e){let t=Object.keys(n);for(let r of t)e[r]&&n[r].push(e[r])}}));let r={};if(typeof t.lazy==`function`&&n.lazy.length>0){let e=$e(n.lazy,t.lazy,()=>void 0);e&&(r.lazy=e)}if(typeof t.lazy==`object`){let e=t.lazy;[`middleware`,`loader`,`action`].forEach(t=>{let i=e[t],a=n[`lazy.${t}`];if(typeof i==`function`&&a.length>0){let e=$e(a,i,()=>void 0);e&&(r.lazy=Object.assign(r.lazy||{},{[t]:e}))}})}return[`loader`,`action`].forEach(e=>{let i=t[e];if(typeof i==`function`&&n[e].length>0){let t=i[Xe]??i,a=$e(n[e],t,(...e)=>tt(e[0]));a&&(e===`loader`&&t.hydrate===!0&&(a.hydrate=!0),a[Xe]=t,r[e]=a)}}),t.middleware&&t.middleware.length>0&&n.middleware.length>0&&(r.middleware=t.middleware.map(e=>{let t=e[Xe]??e,r=$e(n.middleware,t,(...e)=>tt(e[0]));return r?(r[Xe]=t,r):e})),r}function Qe(e,t){let n={navigate:[],fetch:[]};if(t.forEach(e=>e({instrument(e){let t=Object.keys(e);for(let r of t)e[r]&&n[r].push(e[r])}})),n.navigate.length>0){let t=e.navigate[Xe]??e.navigate,r=$e(n.navigate,t,(...t)=>{let[n,r]=t;return{to:typeof n==`number`||typeof n==`string`?n:n?A(n):`.`,...nt(e,r??{})}});r&&(r[Xe]=t,e.navigate=r)}if(n.fetch.length>0){let t=e.fetch[Xe]??e.fetch,r=$e(n.fetch,t,(...t)=>{let[n,,r,i]=t;return{href:r??`.`,fetcherKey:n,...nt(e,i??{})}});r&&(r[Xe]=t,e.fetch=r)}return e}function $e(e,t,n){return e.length===0?null:async(...r)=>{let i=await et(e,n(...r),()=>t(...r),e.length-1);if(i.type===`error`)throw i.value;return i.value}}async function et(e,t,n,r){let i=e[r],a;if(i){let o,s=async()=>(o?console.error(`You cannot call instrumented handlers more than once`):o=et(e,t,n,r-1),a=await o,T(a,`Expected a result`),a.type===`error`&&a.value instanceof Error?{status:`error`,error:a.value}:{status:`success`,error:void 0});try{await i(s,t)}catch(e){console.error(`An instrumentation function threw an error:`,e)}o||await s(),await o}else try{a={type:`success`,value:await n()}}catch(e){a={type:`error`,value:e}}return a||{type:`error`,value:Error(`No result assigned in instrumentation chain.`)}}function tt(e){let{request:t,context:n,params:r,pattern:i}=e;return{request:rt(t),params:{...r},pattern:i,context:it(n)}}function nt(e,t){return{currentUrl:A(e.state.location),...`formMethod`in t?{formMethod:t.formMethod}:{},...`formEncType`in t?{formEncType:t.formEncType}:{},...`formData`in t?{formData:t.formData}:{},...`body`in t?{body:t.body}:{}}}function rt(e){return{method:e.method,url:e.url,headers:{get:(...t)=>e.headers.get(...t)}}}function it(e){if(ot(e)){let t={...e};return Object.freeze(t),t}return{get:t=>e.get(t)}}var at=Object.getOwnPropertyNames(Object.prototype).sort().join(`\0`);function ot(e){if(typeof e!=`object`||!e)return!1;let t=Object.getPrototypeOf(e);return t===Object.prototype||t===null||Object.getOwnPropertyNames(t).sort().join(`\0`)===at}var st=new URL(`http://localhost`);function ct(e){if(e.createURL)return e.createURL(`/`);try{return new URL(e.createHref(`/`),st)}catch{return st}}function lt(e,t){return e.origin===t.origin&&(e.origin!==`null`||e.protocol===t.protocol&&e.host===t.host)}function ut(e,t){if(e.startsWith(`//`))return!0;let n=t.protocol.toLowerCase();return e.toLowerCase().startsWith(n)?t.host===``||e.slice(n.length).startsWith(`//`):!1}function dt(e,t,n,r){let i=null;try{i=e==null?null:new URL(e,n)}catch{}let a=new URL(t,n),o=i!=null&&!lt(i,n),s=!lt(a,n);if(r===`reject`){if(o||s)throw Error(`External navigation is not allowed`)}else if(s&&(i==null||!ut(e,i)||!lt(i,a)))throw Error(`External navigation is not allowed`)}var ft=[`POST`,`PUT`,`PATCH`,`DELETE`],pt=new Set(ft),mt=[`GET`,...ft],ht=new Set(mt),gt=new Set([301,302,303,307,308]),_t=new Set([307,308]),vt={state:`idle`,location:void 0,matches:void 0,historyAction:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},yt={state:`idle`,data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},bt={state:`unblocked`,proceed:void 0,reset:void 0,location:void 0},xt=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),St=`remix-router-transitions`,Ct=Symbol(`ResetLoaderData`),wt,Tt,Et,Dt,Ot=class{constructor(e){_(this,wt),_(this,Tt),_(this,Et),_(this,Dt),v(this,wt,e),v(this,Tt,le(e))}get stableRoutes(){return g(this,wt)}get activeRoutes(){return g(this,Et)??g(this,wt)}get branches(){return g(this,Dt)??g(this,Tt)}get hasHMRRoutes(){return g(this,Et)!=null}setRoutes(e){v(this,wt,e),v(this,Tt,le(e))}setHmrRoutes(e){v(this,Et,e),v(this,Dt,le(e))}commitHmrRoutes(){g(this,Et)&&(v(this,wt,g(this,Et)),v(this,Tt,g(this,Dt)),v(this,Et,void 0),v(this,Dt,void 0))}};wt=new WeakMap,Tt=new WeakMap,Et=new WeakMap,Dt=new WeakMap;function kt(e){let t=e.window?e.window:typeof window<`u`?window:void 0,n=t!==void 0&&t.document!==void 0&&t.document.createElement!==void 0;T(e.routes.length>0,`You must provide a non-empty routes array to createRouter`);let r=e.hydrationRouteProperties||[],i=e.mapRouteProperties||xt,a=i;if(e.instrumentations){let t=e.instrumentations;a=e=>({...i(e),...Ze(t.map(e=>e.route).filter(Boolean),e)})}let o={},s=new Ot(I(e.routes,a,void 0,o)),c=e.basename||`/`;c.startsWith(`/`)||(c=`/${c}`);let l=e.dataStrategy||Kt,u={...e.future},d=null,f=new Set,p=null,m=null,h=null,g=null,_=e.hydrationData!=null,v=se(s.activeRoutes,e.history.location,c,!1,s.branches),y=!1,x=null,S,C;if(v==null&&!e.patchRoutesOnNavigation){let t=vn(404,{pathname:e.history.location.pathname}),{matches:n,route:r}=_n(s.activeRoutes);S=!0,C=!S,v=n,x={[r.id]:t}}else if(v&&!e.hydrationData&&lt(v,s.activeRoutes,e.history.location.pathname).active&&(v=null),!v){S=!1,C=!S,v=[];let t=lt(null,s.activeRoutes,e.history.location.pathname);t.active&&t.matches&&(y=!0,v=t.matches)}else if(v.some(e=>e.route.lazy))S=!1,C=!S;else if(!v.some(e=>Pt(e.route)))S=!0,C=!S;else{let t=e.hydrationData?e.hydrationData.loaderData:null,n=e.hydrationData?e.hydrationData.errors:null,r=v;if(n){let e=v.findIndex(e=>n[e.route.id]!==void 0);r=r.slice(0,e+1)}C=!1,S=!0,r.forEach(e=>{let r=Ft(e.route,t,n);C||=r.renderFallback,S&&=!r.shouldLoad})}let w,D={historyAction:e.history.action,location:e.history.location,matches:v,initialized:S,renderFallback:C,navigation:vt,restoreScrollPosition:e.hydrationData==null&&null,preventScrollReset:!1,revalidation:`idle`,loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||x,fetchers:new Map,blockers:new Map},O=`POP`,M=null,N=!1,F,te=!1,ne=new Map,re=null,ie=!1,ae=!1,oe=new Set,le=new Map,ue=0,de=-1,fe=new Map,pe=new Set,me=new Map,he=new Map,ge=new Set,_e=new Map,ve,ye=null;function be(){if(d=e.history.listen(({action:t,location:n,delta:r})=>{if(ve){ve(),ve=void 0;return}E(_e.size===0||r!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let i=rt({currentLocation:D.location,nextLocation:n,historyAction:t});if(i&&r!=null){let t=new Promise(e=>{ve=e});e.history.go(r*-1),nt(i,{state:`blocked`,location:n,proceed(){nt(i,{state:`proceeding`,proceed:void 0,reset:void 0,location:n}),t.then(()=>e.history.go(r))},reset(){let e=new Map(D.blockers);e.set(i,bt),Ce({blockers:e})}}),M?.resolve(),M=null}else return Oe(t,n)}),n){Hn(t,ne);let e=()=>Un(t,ne);t.addEventListener(`pagehide`,e),re=()=>t.removeEventListener(`pagehide`,e)}return D.initialized||Oe(`POP`,D.location,{initialHydration:!0}),w}function xe(){d&&d(),re&&re(),f.clear(),F&&F.abort(),D.fetchers.forEach((e,t)=>Ge(D.fetchers,t)),D.blockers.forEach((e,t)=>tt(t))}function Se(e){if(f.add(e),p){let{newErrors:t}=p;p=null,e(D,{deletedFetchers:[],newErrors:t,viewTransitionOpts:void 0,flushSync:!1})}return()=>f.delete(e)}function Ce(e,t={}){e.matches&&=e.matches.map(e=>{let t=o[e.route.id],n=e.route;return n.element!==t.element||n.errorElement!==t.errorElement||n.hydrateFallbackElement!==t.hydrateFallbackElement?{...e,route:t}:e}),D={...D,...e};let n=[],r=[];D.fetchers.forEach((e,t)=>{e.state===`idle`&&(ge.has(t)?n.push(t):r.push(t))}),ge.forEach(e=>{!D.fetchers.has(e)&&!le.has(e)&&n.push(e)}),f.size===0&&(p={newErrors:e.errors??null}),[...f].forEach(r=>r(D,{deletedFetchers:n,newErrors:e.errors??null,viewTransitionOpts:t.viewTransitionOpts,flushSync:t.flushSync===!0})),n.forEach(e=>Ge(D.fetchers,e)),r.forEach(e=>D.fetchers.delete(e))}function we(t,n,{flushSync:r}={}){let i=D.actionData!=null&&D.navigation.formMethod!=null&&Nn(D.navigation.formMethod)&&D.navigation.state===`loading`&&t.state?._isRedirect!==!0,a;a=n.actionData?Object.keys(n.actionData).length>0?n.actionData:null:i?D.actionData:null;let o=n.loaderData?mn(D.loaderData,n.loaderData,n.matches||[],n.errors):D.loaderData,c=D.blockers;c.size>0&&(c=new Map(c),c.forEach((e,t)=>c.set(t,bt)));let l=!ie&&ct(t,n.matches||D.matches),u=N===!0||D.navigation.formMethod!=null&&Nn(D.navigation.formMethod)&&t.state?._isRedirect!==!0;s.commitHmrRoutes(),ie||O===`POP`||(O===`PUSH`?e.history.push(t,t.state):O===`REPLACE`&&e.history.replace(t,t.state));let d;if(O===`POP`&&!ie&&t!==D.location){let e=ne.get(D.location.pathname);e&&e.has(t.pathname)?d={currentLocation:D.location,nextLocation:t}:ne.has(t.pathname)&&(d={currentLocation:t,nextLocation:D.location})}else if(te){let e=ne.get(D.location.pathname);e?e.add(t.pathname):(e=new Set([t.pathname]),ne.set(D.location.pathname,e)),d={currentLocation:D.location,nextLocation:t}}Ce({...n,actionData:a,loaderData:o,historyAction:O,location:t,initialized:!0,renderFallback:!1,navigation:vt,revalidation:`idle`,restoreScrollPosition:l,preventScrollReset:u,blockers:c},{viewTransitionOpts:d,flushSync:r===!0}),O=`POP`,N=!1,te=!1,ie=!1,ae=!1,M?.resolve(),M=null,ye?.resolve(),ye=null}async function Te(t,n){if(M?.resolve(),M=null,typeof t==`number`){M||=Wn();let n=M.promise;return e.history.go(t),n}let{path:r,submission:i,error:a}=Mt(!1,jt(D.location,D.matches,c,t,n?.fromRouteId,n?.relative),n),o;if(n?.mask){let t=typeof n.mask==`string`?j(n.mask):{...D.location.mask,...n.mask};if(o={pathname:t.pathname??``,search:t.search??``,hash:t.hash??``},b.test(o.pathname))throw Error(`External navigation is not allowed`);o.pathname.startsWith(`\\`)&&(o.pathname=o.pathname.replace(/^\\+/,`/`)),dt(typeof n.mask==`string`?n.mask:A(n.mask),A(o),e.history.createURL(`/`),`reject`)}let s=D.location,l=k(s,r,n&&n.state,void 0,o);l={...l,...e.history.encodeLocation(l)},dt(t==null?e.history.createHref(D.location):typeof t==`string`?t:A(t),e.history.createHref(l.mask||l),e.history.createURL(`/`),`reject`);let u=n&&n.replace!=null?n.replace:void 0,d=`PUSH`;u===!0?d=`REPLACE`:u===!1||i!=null&&Nn(i.formMethod)&&i.formAction===D.location.pathname+D.location.search&&(d=`REPLACE`);let f=n&&`preventScrollReset`in n?n.preventScrollReset===!0:void 0,p=(n&&n.flushSync)===!0,m=rt({currentLocation:s,nextLocation:l,historyAction:d});m?nt(m,{state:`blocked`,location:l,proceed(){nt(m,{state:`proceeding`,proceed:void 0,reset:void 0,location:l}),Te(t,n)},reset(){let e=new Map(D.blockers);e.set(m,bt),Ce({blockers:e})}}):await Oe(d,l,{submission:i,pendingError:a,preventScrollReset:f,replace:n&&n.replace,enableViewTransition:n&&n.viewTransition,flushSync:p,callSiteDefaultShouldRevalidate:n&&n.defaultShouldRevalidate})}function Ee(){ye||=Wn(),Be(),Ce({revalidation:`loading`});let e=ye.promise;return D.navigation.state===`submitting`?e:D.navigation.state===`idle`?(Oe(D.historyAction,D.location,{startUninterruptedRevalidation:!0}),e):(Oe(O||D.historyAction,D.navigation.location,{overrideNavigation:D.navigation,enableViewTransition:te===!0}),e)}async function Oe(t,n,r){F&&F.abort(),F=null,O=t,ie=(r&&r.startUninterruptedRevalidation)===!0,st(D.location,D.matches),N=(r&&r.preventScrollReset)===!0,te=(r&&r.enableViewTransition)===!0;let i=s.activeRoutes,a=r?.initialHydration&&D.matches&&D.matches.length>0&&!y?D.matches:se(i,n,c,!1,s.branches),o=(r&&r.flushSync)===!0;if(a&&D.initialized&&!ae&&xn(D.location,n)&&!(r&&r.submission&&Nn(r.submission.formMethod))){we(n,{matches:a},{flushSync:o});return}let l=lt(a,i,n.pathname);if(l.active&&l.matches&&(a=l.matches),!a){let{error:e,notFoundMatches:t,route:r}=it(n.pathname);we(n,{matches:t,loaderData:{},errors:{[r.id]:e}},{flushSync:o});return}let u=r&&r.overrideNavigation?{...r.overrideNavigation,matches:a,historyAction:t}:void 0;F=new AbortController;let d=cn(e.history,n,F.signal,r&&r.submission),f=e.getContext?await e.getContext():new P,p;if(r&&r.pendingError)p=[gn(a).route.id,{type:`error`,error:r.pendingError}];else if(r&&r.submission&&Nn(r.submission.formMethod)){let i=await Ae(d,n,r.submission,a,t,f,l.active,r&&r.initialHydration===!0,{replace:r.replace,flushSync:o});if(i.shortCircuited)return;if(i.pendingActionResult){let[e,t]=i.pendingActionResult;if(En(t)&&Ke(t.error)&&t.error.status===404){F=null,we(n,{matches:i.matches,loaderData:{},errors:{[e]:t.error}});return}}a=i.matches||a,p=i.pendingActionResult,u=Ln(n,a,t,r.submission),o=!1,l.active=!1,d=cn(e.history,d.url,d.signal)}let{shortCircuited:m,matches:h,loaderData:g,errors:_,workingFetchers:v}=await je(d,n,a,t,f,l.active,u,r&&r.submission,r&&r.fetcherSubmission,r&&r.replace,r&&r.initialHydration===!0,o,p,r&&r.callSiteDefaultShouldRevalidate);m||(F=null,we(n,{matches:h||a,...hn(p),loaderData:g,errors:_,...v?{fetchers:v}:{}}))}async function Ae(t,n,i,l,u,d,f,p,m={}){if(Be(),Ce({navigation:Rn(n,l,u,i)},{flushSync:m.flushSync===!0}),f){let e=await ut(l,n.pathname,t.signal);if(e.type===`aborted`)return{shortCircuited:!0};if(e.type===`error`){if(e.partialMatches.length===0){let{matches:t,route:n}=_n(s.activeRoutes);return{matches:t,pendingActionResult:[n.id,{type:`error`,error:e.error}]}}let t=gn(e.partialMatches).route.id;return{matches:e.partialMatches,pendingActionResult:[t,{type:`error`,error:e.error}]}}if(e.matches)l=e.matches;else{let{notFoundMatches:e,error:t,route:r}=it(n.pathname);return{matches:e,pendingActionResult:[r.id,{type:`error`,error:t}]}}}let h,g=Fn(l,n);if(!g.route.action&&!g.route.lazy)h={type:`error`,error:vn(405,{method:t.method,pathname:n.pathname,routeId:g.route.id})};else{let e=await Re(t,n,Qt(a,o,t,n,l,g,p?[]:r,d),d,null);if(h=e[g.route.id],!h){for(let t of l)if(e[t.route.id]){h=e[t.route.id];break}}if(t.signal.aborted)return{shortCircuited:!0}}if(Dn(h)){let n;return n=m&&m.replace!=null?m.replace:sn(h.response.headers.get(`Location`),new URL(t.url),c,e.history)===D.location.pathname+D.location.search,await Le(t,h,!0,{submission:i,replace:n}),{shortCircuited:!0}}if(En(h)){let e=gn(l,g.route.id);return(m&&m.replace)!==!0&&(O=`PUSH`),{matches:l,pendingActionResult:[e.route.id,h,g.route.id]}}return{matches:l,pendingActionResult:[g.route.id,h]}}async function je(t,n,i,l,u,d,f,p,m,h,g,_,v,y){let b=f||Ln(n,i,l,p),x=p||m||In(b),S=!ie&&!g;if(d){if(S){let e=Me(v);Ce({navigation:b,...e===void 0?{}:{actionData:e}},{flushSync:_})}let e=await ut(i,n.pathname,t.signal);if(e.type===`aborted`)return{shortCircuited:!0};if(e.type===`error`){if(e.partialMatches.length===0){let{matches:t,route:n}=_n(s.activeRoutes);return{matches:t,loaderData:{},errors:{[n.id]:e.error}}}let t=gn(e.partialMatches).route.id;return{matches:e.partialMatches,loaderData:{},errors:{[t]:e.error}}}if(e.matches)i=e.matches;else{let{error:e,notFoundMatches:t,route:r}=it(n.pathname);return{matches:t,loaderData:{},errors:{[r.id]:e}}}}let C=s.activeRoutes,{dsMatches:w,revalidatingFetchers:T}=Nt(t,u,a,o,e.history,D,i,x,n,g?[]:r,g===!0,ae,oe,ge,me,pe,C,c,e.patchRoutesOnNavigation!=null,s.branches,v,y);if(de=++ue,!e.dataStrategy&&!w.some(e=>e.shouldLoad)&&!w.some(e=>e.route.middleware&&e.route.middleware.length>0)&&T.length===0){let e=new Map(D.fetchers),t=Xe(e);return we(n,{matches:i,loaderData:{},errors:v&&En(v[1])?{[v[0]]:v[1].error}:null,...hn(v),...t?{fetchers:e}:{}},{flushSync:_}),{shortCircuited:!0}}if(S){let e={};if(!d){e.navigation=b;let t=Me(v);t!==void 0&&(e.actionData=t)}T.length>0&&(e.fetchers=Ne(T)),Ce(e,{flushSync:_})}T.forEach(e=>{Je(e.key),e.controller&&le.set(e.key,e.controller)});let E=()=>T.forEach(e=>Je(e.key));F&&F.signal.addEventListener(`abort`,E);let{loaderResults:O,fetcherResults:k}=await ze(w,T,t,n,u);if(t.signal.aborted)return{shortCircuited:!0};F&&F.signal.removeEventListener(`abort`,E),T.forEach(e=>le.delete(e.key));let A=yn(O);if(A)return await Le(t,A.result,!0,{replace:h}),{shortCircuited:!0};if(A=yn(k),A)return pe.add(A.key),await Le(t,A.result,!0,{replace:h}),{shortCircuited:!0};let j=new Map(D.fetchers),{loaderData:M,errors:ee}=pn(D,i,O,v,T,k,j);g&&D.errors&&(ee={...D.errors,...ee});let N=Xe(j),P=$e(de,j),te=N||P||T.length>0;return{matches:i,loaderData:M,errors:ee,...te?{workingFetchers:j}:{}}}function Me(e){if(e&&!En(e[1]))return{[e[0]]:e[1].data};if(D.actionData)return Object.keys(D.actionData).length===0?null:D.actionData}function Ne(e){let t=new Map(D.fetchers);return e.forEach(e=>{let n=t.get(e.key),r=zn(void 0,n?n.data:void 0);t.set(e.key,r)}),t}async function Pe(t,n,r,i){Je(t);let a=(i&&i.flushSync)===!0,o=s.activeRoutes,l=jt(D.location,D.matches,c,r,n,i?.relative),u=se(o,l,c,!1,s.branches),d=lt(u,o,l);if(d.active&&d.matches&&(u=d.matches),!u){He(t,n,vn(404,{pathname:l}),{flushSync:a});return}let{path:f,submission:p,error:m}=Mt(!0,l,i);if(m){He(t,n,m,{flushSync:a});return}let h=e.getContext?await e.getContext():new P,g=(i&&i.preventScrollReset)===!0;p&&Nn(p.formMethod)?await Fe(t,n,f,u,h,d.active,a,g,p,i&&i.defaultShouldRevalidate):(me.set(t,{routeId:n,path:f}),await Ie(t,n,f,u,h,d.active,a,g,p))}async function Fe(t,n,i,l,u,d,f,p,m,h){Be(),me.delete(t),Ve(t,Bn(m,D.fetchers.get(t)),{flushSync:f});let g=new AbortController,_=cn(e.history,i,g.signal,m);if(d){let e=await ut(l,new URL(_.url).pathname,_.signal,t);if(e.type===`aborted`)return;if(e.type===`error`){He(t,n,e.error,{flushSync:f});return}if(e.matches)l=e.matches;else{He(t,n,vn(404,{pathname:i}),{flushSync:f});return}}let v=Fn(l,i);if(!v.route.action&&!v.route.lazy){He(t,n,vn(405,{method:m.formMethod,pathname:i,routeId:n}),{flushSync:f});return}le.set(t,g);let y=ue,b=Qt(a,o,_,i,l,v,r,u),x=await Re(_,i,b,u,t),S=x[v.route.id];if(!S){for(let e of b)if(x[e.route.id]){S=x[e.route.id];break}}if(_.signal.aborted){le.get(t)===g&&le.delete(t);return}if(ge.has(t)){if(Dn(S)||En(S)){Ve(t,Vn(void 0));return}}else{if(Dn(S)){if(le.delete(t),de>y){Ve(t,Vn(void 0));return}return pe.add(t),Ve(t,zn(m)),Le(_,S,!1,{fetcherSubmission:m,preventScrollReset:p})}if(En(S)){He(t,n,S.error);return}}let C=D.navigation.location||D.location,w=cn(e.history,C,g.signal),E=s.activeRoutes,k=D.navigation.state===`idle`?D.matches:se(E,D.navigation.location,c,!1,s.branches);T(k,`Didn't find any matches after fetcher action`);let A=++ue;fe.set(t,A);let{dsMatches:j,revalidatingFetchers:M}=Nt(w,u,a,o,e.history,D,k,m,C,r,!1,ae,oe,ge,me,pe,E,c,e.patchRoutesOnNavigation!=null,s.branches,[v.route.id,S],h),ee=zn(m,S.data),N=new Map(D.fetchers);N.set(t,ee),M.filter(e=>e.key!==t).forEach(e=>{let t=e.key,n=N.get(t),r=zn(void 0,n?n.data:void 0);N.set(t,r),Je(t),e.controller&&le.set(t,e.controller)}),Ce({fetchers:N});let P=()=>M.forEach(e=>Je(e.key));g.signal.addEventListener(`abort`,P);let{loaderResults:te,fetcherResults:ne}=await ze(j,M,w,C,u);if(g.signal.aborted)return;g.signal.removeEventListener(`abort`,P),fe.delete(t),le.delete(t),M.forEach(e=>le.delete(e.key));let re=D.fetchers.has(t),ie=e=>{if(!re)return e;let n=new Map(e.fetchers);return n.set(t,Vn(S.data)),{...e,fetchers:n}},I=yn(te);if(I)return D=ie(D),Le(w,I.result,!1,{preventScrollReset:p});if(I=yn(ne),I)return pe.add(I.key),D=ie(D),Le(w,I.result,!1,{preventScrollReset:p});let ce=new Map(D.fetchers);re&&ce.set(t,Vn(S.data));let{loaderData:he,errors:_e}=pn(D,k,te,void 0,M,ne,ce);$e(A,ce),D.navigation.state===`loading`&&A>de?(T(O,`Expected pending action`),F&&F.abort(),we(D.navigation.location,{matches:k,loaderData:he,errors:_e,fetchers:ce})):(Ce({errors:_e,loaderData:mn(D.loaderData,he,k,_e),fetchers:ce}),ae=!1)}async function Ie(t,n,i,s,c,l,u,d,f){let p=D.fetchers.get(t);Ve(t,zn(f,p?p.data:void 0),{flushSync:u});let m=new AbortController,h=cn(e.history,i,m.signal);if(l){let e=await ut(s,new URL(h.url).pathname,h.signal,t);if(e.type===`aborted`)return;if(e.type===`error`){He(t,n,e.error,{flushSync:u});return}if(e.matches)s=e.matches;else{He(t,n,vn(404,{pathname:i}),{flushSync:u});return}}let g=Fn(s,i);le.set(t,m);let _=ue,v=await Re(h,i,Qt(a,o,h,i,s,g,r,c),c,t),y=v[g.route.id];if(!y){for(let e of s)if(v[e.route.id]){y=v[e.route.id];break}}if(le.get(t)===m&&le.delete(t),!h.signal.aborted){if(ge.has(t))Ve(t,Vn(void 0));else if(Dn(y)){if(de>_){Ve(t,Vn(void 0));return}pe.add(t),await Le(h,y,!1,{preventScrollReset:d})}else En(y)?He(t,n,y.error):Ve(t,Vn(y.data))}}async function Le(r,i,a,{submission:o,fetcherSubmission:s,preventScrollReset:l,replace:u}={}){a||(M?.resolve(),M=null),i.response.headers.has(`X-Remix-Revalidate`)&&(ae=!0);let d=i.response.headers.get(`Location`);T(d,`Expected a Location header on the redirect Response`);let f=d,p=new URL(r.url);d=sn(d,p,c,e.history),dt(f,d,p,`allow-explicit`);let m=k(D.location,d,{_isRedirect:!0});if(n){let e=!1;if(i.response.headers.has(`X-Remix-Reload-Document`))e=!0;else if(ke(d)){let n=ee(t,d,!0);e=n.origin!==t.location.origin||De(n.pathname,c)==null}if(e){u?t.location.replace(d):t.location.assign(d);return}}F=null;let h=u===!0||i.response.headers.has(`X-Remix-Replace`)?`REPLACE`:`PUSH`,{formMethod:g,formAction:_,formEncType:v}=D.navigation;!o&&!s&&g&&_&&v&&(o=In(D.navigation));let y=o||s;_t.has(i.response.status)&&y&&Nn(y.formMethod)?await Oe(h,m,{submission:{...y,formAction:d},preventScrollReset:l||N,enableViewTransition:a?te:void 0}):await Oe(h,m,{overrideNavigation:Ln(m,[],h,o),fetcherSubmission:s,preventScrollReset:l||N,enableViewTransition:a?te:void 0})}async function Re(e,t,n,r,i){let a,o={};try{a=await $t(l,e,t,n,i,r,!1)}catch(e){return n.filter(e=>e.shouldLoad).forEach(t=>{o[t.route.id]={type:`error`,error:e}}),o}if(e.signal.aborted)return o;if(!Nn(e.method))for(let e of n){if(a[e.route.id]?.type===`error`)break;a.hasOwnProperty(e.route.id)||D.loaderData.hasOwnProperty(e.route.id)||D.errors&&D.errors.hasOwnProperty(e.route.id)||!e.shouldCallHandler()||(a[e.route.id]={type:`error`,result:Error(`No result returned from dataStrategy for route ${e.route.id}`)})}for(let[t,r]of Object.entries(a))if(Tn(r)){let i=r.result;o[t]={type:`redirect`,response:rn(i,e,t,n,c)}}else o[t]=await nn(r);return o}async function ze(e,t,n,r,i){let a=Re(n,r,e,i,null),o=Promise.all(t.map(async e=>{if(e.matches&&e.match&&e.request&&e.controller){let t=(await Re(e.request,e.path,e.matches,i,e.key))[e.match.route.id];return{[e.key]:t}}return Promise.resolve({[e.key]:{type:`error`,error:vn(404,{pathname:e.path})}})}));return{loaderResults:await a,fetcherResults:(await o).reduce((e,t)=>Object.assign(e,t),{})}}function Be(){ae=!0,me.forEach((e,t)=>{le.has(t)&&oe.add(t),Je(t)})}function Ve(e,t,n={}){let r=new Map(D.fetchers);r.set(e,t),Ce({fetchers:r},{flushSync:(n&&n.flushSync)===!0})}function He(e,t,n,r={}){let i=gn(D.matches,t),a=new Map(D.fetchers);Ge(a,e),Ce({errors:{[i.route.id]:n},fetchers:a},{flushSync:(r&&r.flushSync)===!0})}function Ue(e){return he.set(e,(he.get(e)||0)+1),ge.has(e)&&ge.delete(e),D.fetchers.get(e)||yt}function We(e,t){Je(e,t?.reason),Ve(e,Vn(null))}function Ge(e,t){let n=D.fetchers.get(t);le.has(t)&&!(n&&n.state===`loading`&&fe.has(t))&&Je(t),me.delete(t),fe.delete(t),pe.delete(t),ge.delete(t),oe.delete(t),e.delete(t)}function qe(e){let t=(he.get(e)||0)-1;t<=0?(he.delete(e),ge.add(e)):he.set(e,t),Ce({fetchers:new Map(D.fetchers)})}function Je(e,t){let n=le.get(e);n&&(n.abort(t),le.delete(e))}function Ye(e,t){for(let n of e){let e=t.get(n);T(e,`Expected fetcher: ${n}`);let r=Vn(e.data);t.set(n,r)}}function Xe(e){let t=[],n=!1;for(let r of pe){let i=e.get(r);T(i,`Expected fetcher: ${r}`),i.state===`loading`&&(pe.delete(r),t.push(r),n=!0)}return Ye(t,e),n}function $e(e,t){let n=[];for(let[r,i]of fe)if(i<e){let e=t.get(r);T(e,`Expected fetcher: ${r}`),e.state===`loading`&&(Je(r),fe.delete(r),n.push(r))}return Ye(n,t),n.length>0}function et(e,t){let n=D.blockers.get(e)||bt;return _e.get(e)!==t&&_e.set(e,t),n}function tt(e){D.blockers.delete(e),_e.delete(e)}function nt(e,t){let n=D.blockers.get(e)||bt;T(n.state===`unblocked`&&t.state===`blocked`||n.state===`blocked`&&t.state===`blocked`||n.state===`blocked`&&t.state===`proceeding`||n.state===`blocked`&&t.state===`unblocked`||n.state===`proceeding`&&t.state===`unblocked`,`Invalid blocker state transition: ${n.state} -> ${t.state}`);let r=new Map(D.blockers);r.set(e,t),Ce({blockers:r})}function rt({currentLocation:e,nextLocation:t,historyAction:n}){if(_e.size===0)return;_e.size>1&&E(!1,`A router only supports one blocker at a time`);let r=Array.from(_e.entries()),[i,a]=r[r.length-1],o=D.blockers.get(i);if(!(o&&o.state===`proceeding`)&&a({currentLocation:e,nextLocation:t,historyAction:n}))return i}function it(e){let t=vn(404,{pathname:e}),n=s.activeRoutes,{matches:r,route:i}=_n(n);return{notFoundMatches:r,route:i,error:t}}function at(e,t,n){if(m=e,g=t,h=n||null,!_&&D.navigation===vt){_=!0;let e=ct(D.location,D.matches);e!=null&&Ce({restoreScrollPosition:e})}return()=>{m=null,g=null,h=null}}function ot(e,t){return h&&h(e,t.map(e=>ce(e,D.loaderData)))||e.key}function st(e,t){if(m&&g){let n=ot(e,t);m[n]=g()}}function ct(e,t){if(m){let n=ot(e,t),r=m[n];if(typeof r==`number`)return r}return null}function lt(t,n,r){if(e.patchRoutesOnNavigation){let e=s.branches;if(!t)return{active:!0,matches:se(n,r,c,!0,e)||[]};if(Object.keys(t[0].params).length>0)return{active:!0,matches:se(n,r,c,!0,e)}}return{active:!1,matches:null}}async function ut(t,n,r,i){if(!e.patchRoutesOnNavigation)return{type:`success`,matches:t};let l=t;for(;;){let t=o;try{await e.patchRoutesOnNavigation({signal:r,path:n,matches:l,fetcherKey:i,patch:(e,n)=>{r.aborted||zt(e,n,s,t,a,!1)}})}catch(e){return{type:`error`,error:e,partialMatches:l}}if(r.aborted)return{type:`aborted`};let u=s.branches,d=se(s.activeRoutes,n,c,!1,u),f=null;if(d&&(Object.keys(d[0].params).length===0||(f=se(s.activeRoutes,n,c,!0,u),!(f&&l.length<f.length&&ft(l,f.slice(0,l.length))))))return{type:`success`,matches:d};if(f||=se(s.activeRoutes,n,c,!0,u),!f||ft(l,f))return{type:`success`,matches:null};l=f}}function ft(e,t){return e.length===t.length&&e.every((e,n)=>e.route.id===t[n].route.id)}function pt(e){o={},s.setHmrRoutes(I(e,a,void 0,o))}function mt(e,t,n=!1){zt(e,t,s,o,a,n),s.hasHMRRoutes||Ce({})}return w={get basename(){return c},get future(){return u},get state(){return D},get routes(){return s.stableRoutes},get branches(){return s.branches},get manifest(){return o},get window(){return t},initialize:be,subscribe:Se,enableScrollRestoration:at,navigate:Te,fetch:Pe,revalidate:Ee,createHref:t=>e.history.createHref(t),createURL:t=>e.history.createURL(t),encodeLocation:t=>e.history.encodeLocation(t),getFetcher:Ue,resetFetcher:We,deleteFetcher:qe,dispose:xe,getBlocker:et,deleteBlocker:tt,patchRoutes:mt,_internalFetchControllers:le,_internalSetRoutes:pt,_internalSetStateDoNotUseOrYouWillBreakYourApp(e){Ce(e)}},e.instrumentations&&(w=Qe(w,e.instrumentations.map(e=>e.router).filter(Boolean))),w}function At(e){return e!=null&&(`formData`in e&&e.formData!=null||`body`in e&&e.body!==void 0)}function jt(e,t,n,r,i,a){let o,s;if(i){o=[];for(let e of t)if(o.push(e),e.route.id===i){s=e;break}}else o=t,s=t[t.length-1];let c=Fe(r||`.`,Pe(o),De(e.pathname,n)||e.pathname,a===`path`);if(r??(c.search=e.search,c.hash=e.hash),(r==null||r===``||r===`.`)&&s){let e=Pn(c.search);if(s.route.index&&!e)c.search=c.search?c.search.replace(/^\?/,`?index&`):`?index`;else if(!s.route.index&&e){let e=new URLSearchParams(c.search),t=e.getAll(`index`);e.delete(`index`),t.filter(e=>e).forEach(t=>e.append(`index`,t));let n=e.toString();c.search=n?`?${n}`:``}}return n!==`/`&&(c.pathname=Oe({basename:n,pathname:c.pathname})),A(c)}function Mt(e,t,n){if(!n||!At(n))return{path:t};if(n.formMethod&&!Mn(n.formMethod))return{path:t,error:vn(405,{method:n.formMethod})};let r=()=>({path:t,error:vn(400,{type:`invalid-body`})}),i=(n.formMethod||`get`).toUpperCase(),a=bn(t);if(n.body!==void 0){if(n.formEncType===`text/plain`){if(!Nn(i))return r();let e=typeof n.body==`string`?n.body:n.body instanceof FormData||n.body instanceof URLSearchParams?Array.from(n.body.entries()).reduce((e,[t,n])=>`${e}${t}=${n}
3
3
  `,``):String(n.body);return{path:t,submission:{formMethod:i,formAction:a,formEncType:n.formEncType,formData:void 0,json:void 0,text:e}}}if(n.formEncType===`application/json`){if(!Nn(i))return r();try{let e=typeof n.body==`string`?JSON.parse(n.body):n.body;return{path:t,submission:{formMethod:i,formAction:a,formEncType:n.formEncType,formData:void 0,json:e,text:void 0}}}catch{return r()}}}T(typeof FormData==`function`,`FormData is not available in this environment`);let o,s;if(n.formData)o=un(n.formData),s=n.formData;else if(n.body instanceof FormData)o=un(n.body),s=n.body;else if(n.body instanceof URLSearchParams)o=n.body,s=dn(o);else if(n.body==null)o=new URLSearchParams,s=new FormData;else try{o=new URLSearchParams(n.body),s=dn(o)}catch{return r()}let c={formMethod:i,formAction:a,formEncType:n&&n.formEncType||`application/x-www-form-urlencoded`,formData:s,json:void 0,text:void 0};if(Nn(c.formMethod))return{path:t,submission:c};let l=j(t);return e&&l.search&&Pn(l.search)&&o.append(`index`,``),l.search=`?${o}`,{path:A(l),submission:c}}function Nt(e,t,n,r,i,a,o,s,c,l,u,d,f,p,m,h,g,_,v,y,b,x){let S=b?En(b[1])?b[1].error:b[1].data:void 0,C=i.createURL(a.location),w=i.createURL(c),T;if(u&&a.errors){let e=Object.keys(a.errors)[0];T=o.findIndex(t=>t.route.id===e)}else if(b&&En(b[1])){let e=b[0];T=o.findIndex(t=>t.route.id===e)-1}let E=b?b[1].statusCode:void 0,D=E&&E>=400,O={currentUrl:C,currentParams:a.matches[0]?.params||{},nextUrl:w,nextParams:o[0].params,...s,actionResult:S,actionStatus:E},k=qe(o),A=o.map((i,o)=>{let{route:s}=i,f=null;if(T!=null&&o>T)f=!1;else if(s.lazy)f=!0;else if(!Pt(s))f=!1;else if(u){let{shouldLoad:e}=Ft(s,a.loaderData,a.errors);f=e}else It(a.loaderData,a.matches[o],i)&&(f=!0);if(f!==null)return Zt(n,r,e,c,k,i,l,t,f);let p=!1;typeof x==`boolean`?p=x:D?p=!1:d||C.pathname+C.search===w.pathname+w.search?p=!0:C.search===w.search?Lt(a.matches[o],i)&&(p=!0):p=!0;let m={...O,defaultShouldRevalidate:p},h=Rt(i,m);return Zt(n,r,e,c,k,i,l,t,h,m,x)}),j=[];return m.forEach((e,s)=>{if(u||!o.some(t=>t.route.id===e.routeId)||p.has(s))return;let c=a.fetchers.get(s),m=c&&c.state!==`idle`&&c.data===void 0,b=se(g,e.path,_??`/`,!1,y);if(!b){if(v&&m)return;j.push({key:s,routeId:e.routeId,path:e.path,matches:null,match:null,request:null,controller:null});return}if(h.has(s))return;let S=Fn(b,e.path),C=new AbortController,w=cn(i,e.path,C.signal),T=null;if(f.has(s))f.delete(s),T=Qt(n,r,w,e.path,b,S,l,t);else if(m)d&&(T=Qt(n,r,w,e.path,b,S,l,t));else{let i;i=typeof x==`boolean`?x:!D&&d;let a={...O,defaultShouldRevalidate:i};Rt(S,a)&&(T=Qt(n,r,w,e.path,b,S,l,t,a))}T&&j.push({key:s,routeId:e.routeId,path:e.path,matches:T,match:S,request:w,controller:C})}),{dsMatches:A,revalidatingFetchers:j}}function Pt(e){return e.loader!=null||e.middleware!=null&&e.middleware.length>0}function Ft(e,t,n){if(e.lazy)return{shouldLoad:!0,renderFallback:!0};if(!Pt(e))return{shouldLoad:!1,renderFallback:!1};let r=t!=null&&e.id in t,i=n!=null&&n[e.id]!==void 0;if(!r&&i)return{shouldLoad:!1,renderFallback:!1};if(typeof e.loader==`function`&&e.loader.hydrate===!0)return{shouldLoad:!0,renderFallback:!r};let a=!r&&!i;return{shouldLoad:a,renderFallback:a}}function It(e,t,n){let r=!t||n.route.id!==t.route.id,i=!e.hasOwnProperty(n.route.id);return r||i}function Lt(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith(`*`)&&e.params[`*`]!==t.params[`*`]}function Rt(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n==`boolean`)return n}return t.defaultShouldRevalidate}function zt(e,t,n,r,i,a){let o;if(e){let t=r[e];T(t,`No route found to patch children into: routeId = ${e}`),t.children||=[],o=t.children}else o=n.activeRoutes;let s=[],c=[];if(t.forEach(e=>{let t=o.find(t=>Bt(e,t));t?c.push({existingRoute:t,newRoute:e}):s.push(e)}),s.length>0){let t=I(s,i,[e||`_`,`patch`,String(o?.length||`0`)],r);o.push(...t)}if(a&&c.length>0)for(let e=0;e<c.length;e++){let{existingRoute:t,newRoute:n}=c[e],r=t,[a]=I([n],i,[],{},!0);Object.assign(r,{element:a.element?a.element:r.element,errorElement:a.errorElement?a.errorElement:r.errorElement,hydrateFallbackElement:a.hydrateFallbackElement?a.hydrateFallbackElement:r.hydrateFallbackElement})}n.hasHMRRoutes||n.setRoutes([...n.activeRoutes])}function Bt(e,t){return`id`in e&&`id`in t&&e.id===t.id?!0:e.index!==t.index||e.path!==t.path||e.caseSensitive!==t.caseSensitive?!1:(!e.children||e.children.length===0)&&(!t.children||t.children.length===0)?!0:e.children?.every((e,n)=>t.children?.some(t=>Bt(e,t)))??!1}var Vt=new WeakMap,Ht=({key:e,route:t,manifest:n,mapRouteProperties:r})=>{let i=n[t.id];if(T(i,`No route found in manifest`),!i.lazy||typeof i.lazy!=`object`)return;let a=i.lazy[e];if(!a)return;let o=Vt.get(i);o||(o={},Vt.set(i,o));let s=o[e];if(s)return s;let c=(async()=>{let t=te(e),n=i[e]!==void 0&&e!==`hasErrorBoundary`;if(t)E(!t,`Route property `+e+` is not a supported lazy route property. This property will be ignored.`),o[e]=Promise.resolve();else if(n)E(!1,`Route "${i.id}" has a static property "${e}" defined. The lazy property will be ignored.`);else{let t=await a();t!=null&&(Object.assign(i,{[e]:t}),Object.assign(i,r(i)))}typeof i.lazy==`object`&&(i.lazy[e]=void 0,Object.values(i.lazy).every(e=>e===void 0)&&(i.lazy=void 0))})();return o[e]=c,c},Ut=new WeakMap;function Wt(e,t,n,r,i){let a=n[e.id];if(T(a,`No route found in manifest`),!e.lazy)return{lazyRoutePromise:void 0,lazyHandlerPromise:void 0};if(typeof e.lazy==`function`){let t=Ut.get(a);if(t)return{lazyRoutePromise:t,lazyHandlerPromise:t};let n=(async()=>{T(typeof e.lazy==`function`,`No lazy route function found`);let t=await e.lazy(),n={};for(let e in t){let r=t[e];if(r===void 0)continue;let i=re(e),o=a[e]!==void 0&&e!==`hasErrorBoundary`;i?E(!i,`Route property `+e+` is not a supported property to be returned from a lazy route function. This property will be ignored.`):o?E(!o,`Route "${a.id}" has a static property "${e}" defined but its lazy function is also returning a value for this property. The lazy route property "${e}" will be ignored.`):n[e]=r}Object.assign(a,n),Object.assign(a,{...r(a),lazy:void 0})})();return Ut.set(a,n),n.catch(()=>{}),{lazyRoutePromise:n,lazyHandlerPromise:n}}let o=Object.keys(e.lazy),s=[],c;for(let a of o){if(i&&i.includes(a))continue;let o=Ht({key:a,route:e,manifest:n,mapRouteProperties:r});o&&(s.push(o),a===t&&(c=o))}let l=s.length>0?Promise.all(s).then(()=>{}):void 0;return l?.catch(()=>{}),c?.catch(()=>{}),{lazyRoutePromise:l,lazyHandlerPromise:c}}async function Gt(e){let t=e.matches.filter(e=>e.shouldLoad),n={};return(await Promise.all(t.map(e=>e.resolve()))).forEach((e,r)=>{n[t[r].route.id]=e}),n}async function Kt(e){return e.matches.some(e=>e.route.middleware)?qt(e,()=>Gt(e)):Gt(e)}function qt(e,t){return Jt(e,t,e=>{if(jn(e))throw e;return e},Cn,n);function n(t,n,r){if(r)return Promise.resolve(Object.assign(r.value,{[n]:{type:`error`,result:t}}));{let{matches:r}=e,i=gn(r,r[Math.min(Math.max(r.findIndex(e=>e.route.id===n),0),Math.max(r.findIndex(e=>e.shouldCallHandler()),0))].route.id).route.id;return Promise.resolve({[i]:{type:`error`,result:t}})}}}async function Jt(e,t,n,r,i){let{matches:a,...o}=e;return await Yt(o,a.flatMap(e=>e.route.middleware?e.route.middleware.map(t=>[e.route.id,t]):[]),t,n,r,i)}async function Yt(e,t,n,r,i,a,o=0){let{request:s}=e;if(s.signal.aborted)throw s.signal.reason??Error(`Request aborted: ${s.method} ${s.url}`);let c=t[o];if(!c)return await n();let[l,u]=c,d,f=async()=>{if(d)throw Error("You may only call `next()` once per middleware");try{return d={value:await Yt(e,t,n,r,i,a,o+1)},d.value}catch(e){return d={value:await a(e,l,d)},d.value}};try{let t=await u(e,f),n=t==null?void 0:r(t);return i(n)?n:d?n??d.value:(d={value:await f()},d.value)}catch(e){return await a(e,l,d)}}function Xt(e,t,n,r,i){let a=Ht({key:`middleware`,route:r.route,manifest:t,mapRouteProperties:e}),o=Wt(r.route,Nn(n.method)?`action`:`loader`,t,e,i);return{middleware:a,route:o.lazyRoutePromise,handler:o.lazyHandlerPromise}}function Zt(e,t,n,r,i,a,o,s,c,l=null,u){let d=!1,f=Xt(e,t,n,a,o);return{...a,_lazyPromises:f,shouldLoad:c,shouldRevalidateArgs:l,shouldCallHandler(e){return d=!0,l?typeof u==`boolean`?Rt(a,{...l,defaultShouldRevalidate:u}):typeof e==`boolean`?Rt(a,{...l,defaultShouldRevalidate:e}):Rt(a,l):c},resolve(e){let{lazy:t,loader:o,middleware:l}=a.route,u=d||c||e&&!Nn(n.method)&&(t||o),p=l&&l.length>0&&!o&&!t;return u&&(Nn(n.method)||!p)?en({request:n,path:r,pattern:i,match:a,lazyHandlerPromise:f?.handler,lazyRoutePromise:f?.route,handlerOverride:e,scopedContext:s}):Promise.resolve({type:`data`,result:void 0})}}}function Qt(e,t,n,r,i,a,o,s,c=null){return i.map(l=>l.route.id===a.route.id?Zt(e,t,n,r,qe(i),l,o,s,!0,c):{...l,shouldLoad:!1,shouldRevalidateArgs:c,shouldCallHandler:()=>!1,_lazyPromises:Xt(e,t,n,l,o),resolve:()=>Promise.resolve({type:`data`,result:void 0})})}async function $t(e,t,n,r,i,a,o){r.some(e=>e._lazyPromises?.middleware)&&await Promise.all(r.map(e=>e._lazyPromises?.middleware));let s={request:t,url:ln(t,n),pattern:qe(r),params:r[0].params,context:a,matches:r},c=o?()=>{throw Error("You cannot call `runClientMiddleware()` from a static handler `dataStrategy`. Middleware is run outside of `dataStrategy` during SSR in order to bubble up the Response. You can enable middleware via the `respond` API in `query`/`queryRoute`")}:e=>{let t=s;return qt(t,()=>e({...t,fetcherKey:i,runClientMiddleware:()=>{throw Error("Cannot call `runClientMiddleware()` from within an `runClientMiddleware` handler")}}))},l=await e({...s,fetcherKey:i,runClientMiddleware:c});try{await Promise.all(r.flatMap(e=>[e._lazyPromises?.handler,e._lazyPromises?.route]))}catch{}return l}async function en({request:e,path:t,pattern:n,match:r,lazyHandlerPromise:i,lazyRoutePromise:a,handlerOverride:o,scopedContext:s}){let c,l,u=Nn(e.method),d=u?`action`:`loader`,f=i=>{let a,c=new Promise((e,t)=>a=t);l=()=>a(),e.signal.addEventListener(`abort`,l);let u=a=>typeof i==`function`?i({request:e,url:ln(e,t),pattern:n,params:r.params,context:s},...a===void 0?[]:[a]):Promise.reject(Error(`You cannot call the handler for a route which defines a boolean "${d}" [routeId: ${r.route.id}]`)),f=(async()=>{try{return{type:`data`,result:await(o?o(e=>u(e)):u())}}catch(e){return{type:`error`,result:e}}})();return Promise.race([f,c])};try{let t=u?r.route.action:r.route.loader;if(i||a){if(t){let e,[n]=await Promise.all([f(t).catch(t=>{e=t}),i,a]);if(e!==void 0)throw e;c=n}else{await i;let t=u?r.route.action:r.route.loader;if(t)[c]=await Promise.all([f(t),a]);else if(d===`action`){let t=new URL(e.url),n=t.pathname+t.search;throw vn(405,{method:e.method,pathname:n,routeId:r.route.id})}else return{type:`data`,result:void 0}}}else if(t)c=await f(t);else{let t=new URL(e.url);throw vn(404,{pathname:t.pathname+t.search})}}catch(e){return{type:`error`,result:e}}finally{l&&e.signal.removeEventListener(`abort`,l)}return c}async function tn(e){let t=e.headers.get(`Content-Type`);return t&&/\bapplication\/json\b/.test(t)?e.body==null?null:e.json():e.text()}async function nn(e){let{result:t,type:n}=e;if(kn(t)){let e;try{e=await tn(t)}catch(e){return{type:`error`,error:e}}return n===`error`?{type:`error`,error:new Ge(t.status,t.statusText,e),statusCode:t.status,headers:t.headers}:{type:`data`,data:e,statusCode:t.status,headers:t.headers}}return n===`error`?On(t)?t.data instanceof Error?{type:`error`,error:t.data,statusCode:t.init?.status,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:`error`,error:Sn(t),statusCode:Ke(t)?t.status:void 0,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:`error`,error:t,statusCode:Ke(t)?t.status:void 0}:On(t)?{type:`data`,data:t.data,statusCode:t.init?.status,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:`data`,data:t}}function rn(e,t,n,r,i){let a=e.headers.get(`Location`);if(T(a,`Redirects returned/thrown from loaders/actions must have a Location header`),!ke(a)){let o=r.slice(0,r.findIndex(e=>e.route.id===n)+1);a=jt(new URL(t.url),o,i,a),e.headers.set(`Location`,a)}return e}var an=[`about:`,`blob:`,`chrome:`,`chrome-untrusted:`,`content:`,`data:`,`devtools:`,`file:`,`filesystem:`,`javascript:`];function on(e){try{return an.includes(new URL(e).protocol)}catch{return!1}}function sn(e,t,n,r){if(ke(e)){let r=e,i=b.test(r)?new URL(x(r,t.protocol)):new URL(r);if(on(i.toString()))throw Error(`Invalid redirect location`);let a=De(i.pathname,n)!=null;if(i.origin===t.origin&&a)return Ie(i.pathname)+i.search+i.hash}try{if(on(r.createURL(e).toString()))throw Error(`Invalid redirect location`)}catch{}return e}function cn(e,t,n,r){let i=e.createURL(bn(t)).toString(),a={signal:n};if(r&&Nn(r.formMethod)){let{formMethod:e,formEncType:t}=r;a.method=e.toUpperCase(),t===`application/json`?(a.headers=new Headers({"Content-Type":t}),a.body=JSON.stringify(r.json)):a.body=t===`text/plain`?r.text:t===`application/x-www-form-urlencoded`&&r.formData?un(r.formData):r.formData}return new Request(i,a)}function ln(e,t){let n=new URL(e.url),r=typeof t==`string`?j(t):t;if(n.pathname=r.pathname||`/`,r.search){let e=new URLSearchParams(r.search),t=e.getAll(`index`);e.delete(`index`);for(let n of t.filter(Boolean))e.append(`index`,n);n.search=e.size?`?${e.toString()}`:``}else n.search=``;return n.hash=r.hash||``,n}function un(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r==`string`?r:r.name);return t}function dn(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function fn(e,t,n,r=!1,i=!1){let a={},o=null,s,c=!1,l={},u=n&&En(n[1])?n[1].error:void 0;return e.forEach(n=>{if(!(n.route.id in t))return;let d=n.route.id,f=t[d];if(T(!Dn(f),`Cannot handle redirect results in processLoaderData`),En(f)){let t=f.error;if(u!==void 0&&(t=u,u=void 0),o||={},i)o[d]=t;else{let n=gn(e,d);o[n.route.id]??(o[n.route.id]=t)}r||(a[d]=Ct),c||(c=!0,s=Ke(f.error)?f.error.status:500),f.headers&&(l[d]=f.headers)}else a[d]=f.data,f.statusCode&&f.statusCode!==200&&!c&&(s=f.statusCode),f.headers&&(l[d]=f.headers)}),u!==void 0&&n&&(o={[n[0]]:u},n[2]&&(a[n[2]]=void 0)),{loaderData:a,errors:o,statusCode:s||200,loaderHeaders:l}}function pn(e,t,n,r,i,a,o){let{loaderData:s,errors:c}=fn(t,n,r);return i.filter(e=>!e.matches||e.matches.some(e=>e.shouldLoad)).forEach(t=>{let{key:n,match:r,controller:i}=t;if(i&&i.signal.aborted)return;let s=a[n];if(T(s,`Did not find corresponding fetcher result`),En(s)){let t=gn(e.matches,r?.route.id);c&&c[t.route.id]||(c={...c,[t.route.id]:s.error}),o.delete(n)}else if(Dn(s))T(!1,`Unhandled fetcher revalidation redirect`);else{let e=Vn(s.data);o.set(n,e)}}),{loaderData:s,errors:c}}function mn(e,t,n,r){let i=Object.entries(t).filter(([,e])=>e!==Ct).reduce((e,[t,n])=>(e[t]=n,e),{});for(let a of n){let n=a.route.id;if(!t.hasOwnProperty(n)&&e.hasOwnProperty(n)&&a.route.loader&&(i[n]=e[n]),r&&r.hasOwnProperty(n))break}return i}function hn(e){return e?En(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function gn(e,t){return(t?e.slice(0,e.findIndex(e=>e.route.id===t)+1):[...e]).reverse().find(e=>e.route.hasErrorBoundary===!0)||e[0]}function _n(e){let t=e.length===1?e[0]:e.find(e=>e.index||!e.path||e.path===`/`)||{id:`__shim-error-route__`};return{matches:[{params:{},pathname:``,pathnameBase:``,route:t}],route:t}}function vn(e,{pathname:t,routeId:n,method:r,type:i,message:a}={}){let o=`Unknown Server Error`,s=`Unknown @remix-run/router error`;return e===400?(o=`Bad Request`,r&&t&&n?s=`You made a ${r} request to "${t}" but did not provide a \`loader\` for route "${n}", so there is no way to handle the request.`:i===`invalid-body`&&(s=`Unable to encode submission body`)):e===403?(o=`Forbidden`,s=`Route "${n}" does not match URL "${t}"`):e===404?(o=`Not Found`,s=`No route matches URL "${t}"`):e===405&&(o=`Method Not Allowed`,r&&t&&n?s=`You made a ${r.toUpperCase()} request to "${t}" but did not provide an \`action\` for route "${n}", so there is no way to handle the request.`:r&&(s=`Invalid request method "${r.toUpperCase()}"`)),new Ge(e||500,o,Error(s),!0)}function yn(e){let t=Object.entries(e);for(let e=t.length-1;e>=0;e--){let[n,r]=t[e];if(Dn(r))return{key:n,result:r}}}function bn(e){return A({...typeof e==`string`?j(e):e,hash:``})}function xn(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===``?t.hash!==``:e.hash===t.hash||t.hash!==``}function Sn(e){return new Ge(e.init?.status??500,e.init?.statusText??`Internal Server Error`,e.data)}function Cn(e){return typeof e==`object`&&!!e&&Object.entries(e).every(([e,t])=>typeof e==`string`&&wn(t))}function wn(e){return typeof e==`object`&&!!e&&`type`in e&&`result`in e&&(e.type===`data`||e.type===`error`)}function Tn(e){return kn(e.result)&&gt.has(e.result.status)}function En(e){return e.type===`error`}function Dn(e){return(e&&e.type)===`redirect`}function On(e){return typeof e==`object`&&!!e&&`type`in e&&`data`in e&&`init`in e&&e.type===`DataWithResponseInit`}function kn(e){return e!=null&&typeof e.status==`number`&&typeof e.statusText==`string`&&typeof e.headers==`object`&&e.body!==void 0}function An(e){return gt.has(e)}function jn(e){return kn(e)&&An(e.status)&&e.headers.has(`Location`)}function Mn(e){return ht.has(e.toUpperCase())}function Nn(e){return pt.has(e.toUpperCase())}function Pn(e){return new URLSearchParams(e).getAll(`index`).some(e=>e===``)}function Fn(e,t){let n=typeof t==`string`?j(t).search:t.search;if(e[e.length-1].route.index&&Pn(n||``))return e[e.length-1];let r=Ne(e);return r[r.length-1]}function In(e){let{formMethod:t,formAction:n,formEncType:r,text:i,formData:a,json:o}=e;if(t&&n&&r){if(i!=null)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:i};if(a!=null)return{formMethod:t,formAction:n,formEncType:r,formData:a,json:void 0,text:void 0};if(o!==void 0)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:o,text:void 0}}}function Ln(e,t,n,r){return r?{state:`loading`,location:e,matches:t,historyAction:n,formMethod:r.formMethod,formAction:r.formAction,formEncType:r.formEncType,formData:r.formData,json:r.json,text:r.text}:{state:`loading`,location:e,matches:t,historyAction:n,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function Rn(e,t,n,r){return{state:`submitting`,location:e,matches:t,historyAction:n,formMethod:r.formMethod,formAction:r.formAction,formEncType:r.formEncType,formData:r.formData,json:r.json,text:r.text}}function zn(e,t){return e?{state:`loading`,formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:`loading`,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function Bn(e,t){return{state:`submitting`,formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function Vn(e){return{state:`idle`,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function Hn(e,t){try{let n=e.sessionStorage.getItem(St);if(n){let e=JSON.parse(n);for(let[n,r]of Object.entries(e||{}))r&&Array.isArray(r)&&t.set(n,new Set(r||[]))}}catch{}}function Un(e,t){if(t.size>0){let n={};for(let[e,r]of t)n[e]=[...r];try{e.sessionStorage.setItem(St,JSON.stringify(n))}catch(e){E(!1,`Failed to save applied view transitions in sessionStorage (${e}).`)}}}function Wn(){let e,t,n=new Promise((r,i)=>{e=async e=>{r(e);try{await n}catch{}},t=async e=>{i(e);try{await n}catch{}}});return{promise:n,resolve:e,reject:t}}var Gn=p.createContext(null);Gn.displayName=`DataRouter`;var Kn=p.createContext(null);Kn.displayName=`DataRouterState`;var qn=p.createContext(!1);function Jn(){return p.useContext(qn)}var Yn=p.createContext({isTransitioning:!1});Yn.displayName=`ViewTransition`;var Xn=p.createContext(new Map);Xn.displayName=`Fetchers`;var Zn=p.createContext(null);Zn.displayName=`Await`;var Qn=p.createContext(null);Qn.displayName=`Navigation`;var $n=p.createContext(null);$n.displayName=`Location`;var er=p.createContext({outlet:null,matches:[],isDataRoute:!1});er.displayName=`Route`;var tr=p.createContext(null);tr.displayName=`RouteError`;var nr=`REACT_ROUTER_ERROR`,rr=`REDIRECT`,ir=`ROUTE_ERROR_RESPONSE`;function ar(e){if(e.startsWith(`${nr}:${rr}:{`))try{let t=JSON.parse(e.slice(28));if(typeof t==`object`&&t&&typeof t.status==`number`&&typeof t.statusText==`string`&&typeof t.location==`string`&&typeof t.reloadDocument==`boolean`&&typeof t.replace==`boolean`)return t}catch{}}function or(e){if(e.startsWith(`${nr}:${ir}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t==`object`&&t&&typeof t.status==`number`&&typeof t.statusText==`string`)return new Ge(t.status,t.statusText,t.data)}catch{}}function sr(e,{relative:t}={}){T(cr(),`useHref() may be used only in the context of a <Router> component.`);let{basename:n,navigator:r}=p.useContext(Qn),{hash:i,pathname:a,search:o}=vr(e,{relative:t}),s=a;return n!==`/`&&(s=a===`/`?n:Le([n,a])),r.createHref({pathname:s,search:o,hash:i})}function cr(){return p.useContext($n)!=null}function lr(){return T(cr(),`useLocation() may be used only in the context of a <Router> component.`),p.useContext($n).location}var ur=`You should call navigate() in a React.useEffect(), not when your component is first rendered.`;function dr(e){p.useContext(Qn).static||p.useLayoutEffect(e)}function fr(){let{isDataRoute:e}=p.useContext(er);return e?Fr():pr()}function pr(){T(cr(),`useNavigate() may be used only in the context of a <Router> component.`);let e=p.useContext(Gn),{basename:t,navigator:n}=p.useContext(Qn),{matches:r}=p.useContext(er),{pathname:i}=lr(),a=JSON.stringify(Pe(r)),o=p.useRef(!1);return dr(()=>{o.current=!0}),p.useCallback((r,s={})=>{if(E(o.current,ur),!o.current)return;if(typeof r==`number`){n.go(r);return}let c=Fe(r,JSON.parse(a),i,s.relative===`path`);e==null&&t!==`/`&&(c.pathname=c.pathname===`/`?t:Le([t,c.pathname])),dt(typeof r==`string`?r:A(r),n.createHref(c),ct(n),`reject`),(s.replace?n.replace:n.push)(c,s.state,s)},[t,n,a,i,e])}var mr=p.createContext(null);function hr(){return p.useContext(mr)}function gr(e){let t=p.useContext(er).outlet;return p.useMemo(()=>t&&p.createElement(mr.Provider,{value:e},t),[t,e])}function _r(){let{matches:e}=p.useContext(er);return e[e.length-1]?.params??{}}function vr(e,{relative:t}={}){let{matches:n}=p.useContext(er),{pathname:r}=lr(),i=JSON.stringify(Pe(n));return p.useMemo(()=>Fe(e,JSON.parse(i),r,t===`path`),[e,i,r,t])}function yr(e,t,n){T(cr(),`useRoutes() may be used only in the context of a <Router> component.`);let{navigator:r}=p.useContext(Qn),{matches:i}=p.useContext(er),a=i[i.length-1],o=a?a.params:{},s=a?a.pathname:`/`,c=a?a.pathnameBase:`/`,l=a&&a.route;{let e=l&&l.path||``;Lr(s,!l||e.endsWith(`*`)||e.endsWith(`*?`),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${s}" (under <Route path="${e}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
4
4
 
5
5
  Please change the parent <Route path="${e}"> to <Route path="${e===`/`?`*`:`${e}/*`}">.`)}let u=lr(),d;if(t){let e=typeof t==`string`?j(t):t;T(c===`/`||e.pathname?.startsWith(c),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${c}" but pathname "${e.pathname}" was given in the \`location\` prop.`),d=e}else d=u;let f=d.pathname||`/`,m=f;if(c!==`/`){let e=c.replace(/^\//,``).split(`/`);m=`/`+f.replace(/^\//,``).split(`/`).slice(e.length).join(`/`)}let h=n&&n.state.matches.length?n.state.matches.map(e=>Object.assign(e,{route:n.manifest[e.route.id]||e.route})):oe(e,{pathname:m});E(l||h!=null,`No routes matched location "${d.pathname}${d.search}${d.hash}" `),E(h==null||h[h.length-1].route.element!==void 0||h[h.length-1].route.Component!==void 0||h[h.length-1].route.lazy!==void 0,`Matched leaf route at location "${d.pathname}${d.search}${d.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let g=Er(h&&h.map(e=>Object.assign({},e,{params:Object.assign({},o,e.params),pathname:Le([c,r.encodeLocation?r.encodeLocation(e.pathname.replace(/%/g,`%25`).replace(/\?/g,`%3F`).replace(/#/g,`%23`)).pathname:e.pathname]),pathnameBase:e.pathnameBase===`/`?c:Le([c,r.encodeLocation?r.encodeLocation(e.pathnameBase.replace(/%/g,`%25`).replace(/\?/g,`%3F`).replace(/#/g,`%23`)).pathname:e.pathnameBase])})),i,n);return t&&g?p.createElement($n.Provider,{value:{location:{pathname:`/`,search:``,hash:``,state:null,key:`default`,mask:void 0,...d},navigationType:`POP`}},g):g}function br(){let e=Pr(),t=Ke(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r=`rgba(200,200,200, 0.5)`,i={padding:`0.5rem`,backgroundColor:r},a={padding:`2px 4px`,backgroundColor:r},o=null;return console.error(`Error handled by React Router default ErrorBoundary:`,e),o=p.createElement(p.Fragment,null,p.createElement(`p`,null,`💿 Hey developer 👋`),p.createElement(`p`,null,`You can provide a way better UX than this when your app throws errors by providing your own `,p.createElement(`code`,{style:a},`ErrorBoundary`),` or`,` `,p.createElement(`code`,{style:a},`errorElement`),` prop on your route.`)),p.createElement(p.Fragment,null,p.createElement(`h2`,null,`Unexpected Application Error!`),p.createElement(`h3`,{style:{fontStyle:`italic`}},t),n?p.createElement(`pre`,{style:i},n):null,o)}var xr=p.createElement(br,null),Sr=class extends p.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!==`idle`&&e.revalidation===`idle`?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error===void 0?t.error:e.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error(`React Router caught the following error during render`,e)}render(){let e=this.state.error;if(this.context&&typeof e==`object`&&e&&`digest`in e&&typeof e.digest==`string`){let t=or(e.digest);t&&(e=t)}let t=e===void 0?this.props.children:p.createElement(er.Provider,{value:this.props.routeContext},p.createElement(tr.Provider,{value:e,children:this.props.component}));return this.context?p.createElement(wr,{error:e},t):t}};Sr.contextType=qn;var Cr=new WeakMap;function wr({children:e,error:t}){let{basename:n,navigator:r}=p.useContext(Qn);if(typeof t==`object`&&t&&`digest`in t&&typeof t.digest==`string`){let e=ar(t.digest);if(e){let i=Cr.get(t);if(i)throw i;let a=Ye(e.location,n),o=a.absoluteURL||a.to;if(dt(e.location,o,ct(r),`allow-explicit`),on(o))throw Error(`Invalid redirect location`);if(Je&&!Cr.get(t)){if(a.isExternal||e.reloadDocument)window.location.href=o;else{let n=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(a.to,{replace:e.replace}));throw Cr.set(t,n),n}}return p.createElement(`meta`,{httpEquiv:`refresh`,content:`0;url=${o}`})}}return e}function Tr({routeContext:e,match:t,children:n}){let r=p.useContext(Gn);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),p.createElement(er.Provider,{value:e},n)}function Er(e,t=[],n){let r=n?.state;if(e==null){if(!r)return null;if(r.errors)e=r.matches;else if(t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let i=e,a=r?.errors;if(a!=null){let e=i.findIndex(e=>e.route.id&&a?.[e.route.id]!==void 0);T(e>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(a).join(`,`)}`),i=i.slice(0,Math.min(i.length,e+1))}let o=!1,s=-1;if(n&&r){o=r.renderFallback;for(let e=0;e<i.length;e++){let t=i[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(s=e),t.route.id){let{loaderData:e,errors:a}=r,c=t.route.loader&&!e.hasOwnProperty(t.route.id)&&(!a||a[t.route.id]===void 0);if(t.route.lazy||c){n.isStatic&&(o=!0),i=s>=0?i.slice(0,s+1):[i[0]];break}}}}let c=n?.onError,l=r&&c?(e,t)=>{c(e,{location:r.location,params:r.matches?.[0]?.params??{},pattern:qe(r.matches),errorInfo:t})}:void 0;return i.reduceRight((e,n,c)=>{let u,d=!1,f=null,m=null;r&&(u=a&&n.route.id?a[n.route.id]:void 0,f=n.route.errorElement||xr,o&&(s<0&&c===0?(Lr(`route-fallback`,!1,"No `HydrateFallback` element provided to render during initial hydration"),d=!0,m=null):s===c&&(d=!0,m=n.route.hydrateFallbackElement||null)));let h=t.concat(i.slice(0,c+1)),g=()=>{let t;return t=u?f:d?m:n.route.Component?p.createElement(n.route.Component,null):n.route.element?n.route.element:e,p.createElement(Tr,{match:n,routeContext:{outlet:e,matches:h,isDataRoute:r!=null},children:t})};return r&&(n.route.ErrorBoundary||n.route.errorElement||c===0)?p.createElement(Sr,{location:r.location,revalidation:r.revalidation,component:f,error:u,children:g(),routeContext:{outlet:null,matches:h,isDataRoute:!0},onError:l}):g()},null)}function Dr(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Or(e){let t=p.useContext(Gn);return T(t,Dr(e)),t}function kr(e){let t=p.useContext(Kn);return T(t,Dr(e)),t}function Ar(e){let t=p.useContext(er);return T(t,Dr(e)),t}function jr(e){let t=Ar(e),n=t.matches[t.matches.length-1];return T(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function Mr(){return jr(`useRouteId`)}function Nr(){let{matches:e,loaderData:t}=kr(`useMatches`);return p.useMemo(()=>e.map(e=>ce(e,t)),[e,t])}function Pr(){let e=p.useContext(tr),t=kr(`useRouteError`),n=jr(`useRouteError`);return e===void 0?t.errors?.[n]:e}function Fr(){let{router:e}=Or(`useNavigate`),t=jr(`useNavigate`),n=p.useRef(!1);return dr(()=>{n.current=!0}),p.useCallback(async(r,i={})=>{E(n.current,ur),n.current&&(typeof r==`number`?await e.navigate(r):await e.navigate(r,{fromRouteId:t,...i}))},[e,t])}var Ir={};function Lr(e,t,n){!t&&!Ir[e]&&(Ir[e]=!0,E(!1,n))}var Rr={};function zr(e,t){!e&&!Rr[t]&&(Rr[t]=!0,console.warn(t))}var Br=p.useOptimistic,Vr=()=>void 0;function Hr(e){return Br?Br(e):[e,Vr]}function Ur(e){let t={hasErrorBoundary:e.hasErrorBoundary||e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&(e.element&&E(!1,"You should not include both `Component` and `element` on your route - `Component` will be used."),Object.assign(t,{element:p.createElement(e.Component),Component:void 0})),e.HydrateFallback&&(e.hydrateFallbackElement&&E(!1,"You should not include both `HydrateFallback` and `hydrateFallbackElement` on your route - `HydrateFallback` will be used."),Object.assign(t,{hydrateFallbackElement:p.createElement(e.HydrateFallback),HydrateFallback:void 0})),e.ErrorBoundary&&(e.errorElement&&E(!1,"You should not include both `ErrorBoundary` and `errorElement` on your route - `ErrorBoundary` will be used."),Object.assign(t,{errorElement:p.createElement(e.ErrorBoundary),ErrorBoundary:void 0})),t}var Wr=[`HydrateFallback`,`hydrateFallbackElement`],Gr=class{constructor(){this.status=`pending`,this.promise=new Promise((e,t)=>{this.resolve=t=>{this.status===`pending`&&(this.status=`resolved`,e(t))},this.reject=e=>{this.status===`pending`&&(this.status=`rejected`,t(e))}})}};function Kr({router:e,flushSync:t,onError:n,useTransitions:r}){r=Jn()||r;let[i,a]=p.useState(e.state),[o,s]=Hr(i),[c,l]=p.useState(),[u,d]=p.useState({isTransitioning:!1}),[f,m]=p.useState(),[h,g]=p.useState(),[_,v]=p.useState(),y=p.useRef(new Map),b=p.useCallback((i,{deletedFetchers:o,newErrors:c,flushSync:u,viewTransitionOpts:_})=>{c&&n&&Object.values(c).forEach(e=>n(e,{location:i.location,params:i.matches[0]?.params??{},pattern:qe(i.matches)})),i.fetchers.forEach((e,t)=>{e.data!==void 0&&y.current.set(t,e.data)}),o.forEach(e=>y.current.delete(e)),zr(u===!1||t!=null,'You provided the `flushSync` option to a router update, but you are not using the `<RouterProvider>` from `react-router/dom` so `ReactDOM.flushSync()` is unavailable. Please update your app to `import { RouterProvider } from "react-router/dom"` and ensure you have `react-dom` installed as a dependency to use the `flushSync` option.');let b=e.window!=null&&e.window.document!=null&&typeof e.window.document.startViewTransition==`function`;if(zr(_==null||b,"You provided the `viewTransition` option to a router update, but you do not appear to be running in a DOM environment as `window.startViewTransition` is not available."),!_||!b)t&&u?t(()=>a(i)):r===!1?a(i):p.startTransition(()=>{r===!0&&s(e=>qr(e,i)),a(i)});else if(t&&u){t(()=>{h&&(f?.resolve(),h.skipTransition()),d({isTransitioning:!0,flushSync:!0,currentLocation:_.currentLocation,nextLocation:_.nextLocation})});let n=e.window.document.startViewTransition(()=>{t(()=>a(i))});n.finished.finally(()=>{t(()=>{m(void 0),g(void 0),l(void 0),d({isTransitioning:!1})})}),t(()=>g(n))}else h?(f?.resolve(),h.skipTransition(),v({state:i,currentLocation:_.currentLocation,nextLocation:_.nextLocation})):(l(i),d({isTransitioning:!0,flushSync:!1,currentLocation:_.currentLocation,nextLocation:_.nextLocation}))},[e.window,t,h,f,r,s,n]);p.useLayoutEffect(()=>e.subscribe(b),[e,b]),p.useEffect(()=>{u.isTransitioning&&!u.flushSync&&m(new Gr)},[u]),p.useEffect(()=>{if(f&&c&&e.window){let t=c,n=f.promise,i=e.window.document.startViewTransition(async()=>{r===!1?a(t):p.startTransition(()=>{r===!0&&s(e=>qr(e,t)),a(t)}),await n});i.finished.finally(()=>{m(void 0),g(void 0),l(void 0),d({isTransitioning:!1})}),g(i)}},[c,f,e.window,r,s]),p.useEffect(()=>{f&&c&&o.location.key===c.location.key&&f.resolve()},[f,h,o.location,c]),p.useEffect(()=>{!u.isTransitioning&&_&&(l(_.state),d({isTransitioning:!0,flushSync:!1,currentLocation:_.currentLocation,nextLocation:_.nextLocation}),v(void 0))},[u.isTransitioning,_]);let x=p.useMemo(()=>({createHref:e.createHref,createURL:e.createURL,encodeLocation:e.encodeLocation,go:t=>e.navigate(t),push:(t,n,r)=>e.navigate(t,{state:n,preventScrollReset:r?.preventScrollReset}),replace:(t,n,r)=>e.navigate(t,{replace:!0,state:n,preventScrollReset:r?.preventScrollReset})}),[e]),S=e.basename||`/`,C=p.useMemo(()=>({router:e,navigator:x,static:!1,basename:S,onError:n}),[e,x,S,n]);return p.createElement(p.Fragment,null,p.createElement(Gn.Provider,{value:C},p.createElement(Kn.Provider,{value:o},p.createElement(Xn.Provider,{value:y.current},p.createElement(Yn.Provider,{value:u},p.createElement(Zr,{basename:S,location:o.location,navigationType:o.historyAction,navigator:x,useTransitions:r},p.createElement(Jr,{routes:e.routes,manifest:e.manifest,future:e.future,state:o,isStatic:!1,onError:n})))))),null)}function qr(e,t){return{...e,navigation:t.navigation.state===`idle`?e.navigation:t.navigation,revalidation:t.revalidation===`idle`?e.revalidation:t.revalidation,actionData:t.navigation.state===`submitting`?e.actionData:t.actionData,fetchers:t.fetchers}}var Jr=p.memo(Yr);function Yr({routes:e,manifest:t,future:n,state:r,isStatic:i,onError:a}){return yr(e,void 0,{manifest:t,state:r,isStatic:i,onError:a,future:n})}function Xr(e){return gr(e.context)}function Zr({basename:e=`/`,children:t=null,location:n,navigationType:r=`POP`,navigator:i,static:a=!1,useTransitions:o}){T(!cr(),`You cannot render a <Router> inside another <Router>. You should never have more than one in your app.`);let s=e.replace(/^\/*/,`/`),c=p.useMemo(()=>({basename:s,navigator:i,static:a,useTransitions:o,future:{}}),[s,i,a,o]);typeof n==`string`&&(n=j(n));let{pathname:l=`/`,search:u=``,hash:d=``,state:f=null,key:m=`default`,mask:h}=n,g=p.useMemo(()=>{let e=De(l,s);return e==null?null:{location:{pathname:e,search:u,hash:d,state:f,key:m,mask:h},navigationType:r}},[s,l,u,d,f,m,r,h]);return E(g!=null,`<Router basename="${s}"> is not able to match the URL "${l}${u}${d}" because it does not start with the basename, so the <Router> won't render anything.`),g==null?null:p.createElement(Qn.Provider,{value:c},p.createElement($n.Provider,{children:t,value:g}))}p.Component;var Qr=`get`,$r=`application/x-www-form-urlencoded`;function ei(e){return typeof HTMLElement<`u`&&e instanceof HTMLElement}function ti(e){return ei(e)&&e.tagName.toLowerCase()===`button`}function ni(e){return ei(e)&&e.tagName.toLowerCase()===`form`}function ri(e){return ei(e)&&e.tagName.toLowerCase()===`input`}function ii(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function ai(e,t){return e.button===0&&(!t||t===`_self`)&&!ii(e)}function oi(e=``){return new URLSearchParams(typeof e==`string`||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(e=>[n,e]):[[n,r]])},[]))}function si(e,t){let n=oi(e);return t&&t.forEach((e,r)=>{n.has(r)||t.getAll(r).forEach(e=>{n.append(r,e)})}),n}var ci=null;function li(){if(ci===null)try{new FormData(document.createElement(`form`),0),ci=!1}catch{ci=!0}return ci}var ui=new Set([`application/x-www-form-urlencoded`,`multipart/form-data`,`text/plain`]);function di(e){return e!=null&&!ui.has(e)?(E(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${$r}"`),null):e}function fi(e,t){let n,r,i,a,o;if(ni(e)){let o=e.getAttribute(`action`);r=o?De(o,t):null,n=e.getAttribute(`method`)||Qr,i=di(e.getAttribute(`enctype`))||$r,a=new FormData(e)}else if(ti(e)||ri(e)&&(e.type===`submit`||e.type===`image`)){let o=e.form;if(o==null)throw Error(`Cannot submit a <button> or <input type="submit"> without a <form>`);let s=e.getAttribute(`formaction`)||o.getAttribute(`action`);if(r=s?De(s,t):null,n=e.getAttribute(`formmethod`)||o.getAttribute(`method`)||Qr,i=di(e.getAttribute(`formenctype`))||di(o.getAttribute(`enctype`))||$r,a=new FormData(o,e),!li()){let{name:t,type:n,value:r}=e;if(n===`image`){let e=t?`${t}.`:``;a.append(`${e}x`,`0`),a.append(`${e}y`,`0`)}else t&&a.append(t,r)}}else if(ei(e))throw Error(`Cannot submit element that is not <form>, <button>, or <input type="submit|image">`);else n=Qr,r=null,i=$r,o=e;return a&&i===`text/plain`&&(o=a,a=void 0),{action:r,method:n.toLowerCase(),encType:i,formData:a,body:o}}Object.getOwnPropertyNames(Object.prototype).sort().join(`\0`);function pi(e,t){if(e===!1||e==null)throw Error(t)}function mi(e,t,n,r){let i=typeof e==`string`?new URL(e,typeof window>`u`?`server://singlefetch/`:window.location.origin):e;return i.pathname=n?i.pathname.endsWith(`/`)?`${i.pathname}_.${r}`:`${i.pathname}.${r}`:i.pathname===`/`?`_root.${r}`:t&&De(i.pathname,t)===`/`?`${Re(t)}/_root.${r}`:`${Re(i.pathname)}.${r}`,i}async function hi(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(t){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(t),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function gi(e){return e!=null&&typeof e.page==`string`}function _i(e){return e==null?!1:e.href==null?e.rel===`preload`&&typeof e.imageSrcSet==`string`&&typeof e.imageSizes==`string`:typeof e.rel==`string`&&typeof e.href==`string`}async function vi(e,t,n){return Ci((await Promise.all(e.map(async e=>{let r=t.routes[e.route.id];if(r){let e=await hi(r,n);return e.links?e.links():[]}return[]}))).flat(1).filter(_i).filter(e=>e.rel===`stylesheet`||e.rel===`preload`).map(e=>e.rel===`stylesheet`?{...e,rel:`prefetch`,as:`style`}:{...e,rel:`prefetch`}))}function yi(e,t,n,r,i,a){let o=(e,t)=>!n[t]||e.route.id!==n[t].route.id,s=(e,t)=>n[t].pathname!==e.pathname||n[t].route.path?.endsWith(`*`)&&n[t].params[`*`]!==e.params[`*`];return a===`assets`?t.filter((e,t)=>o(e,t)||s(e,t)):a===`data`?t.filter((t,a)=>{let c=r.routes[t.route.id];if(!c||!c.hasLoader)return!1;if(o(t,a)||s(t,a))return!0;if(t.route.shouldRevalidate){let r=t.route.shouldRevalidate({currentUrl:new URL(i.pathname+i.search+i.hash,window.origin),currentParams:n[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:t.params,defaultShouldRevalidate:!0});if(typeof r==`boolean`)return r}return!0}):[]}function bi(e,t,{includeHydrateFallback:n}={}){return xi(e.map(e=>{let r=t.routes[e.route.id];if(!r)return[];let i=[r.module];return r.clientActionModule&&(i=i.concat(r.clientActionModule)),r.clientLoaderModule&&(i=i.concat(r.clientLoaderModule)),n&&r.hydrateFallbackModule&&(i=i.concat(r.hydrateFallbackModule)),r.imports&&(i=i.concat(r.imports)),i}).flat(1))}function xi(e){return[...new Set(e)]}function Si(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function Ci(e,t){let n=new Set,r=new Set(t);return e.reduce((e,i)=>{if(t&&!gi(i)&&i.as===`script`&&i.href&&r.has(i.href))return e;let a=JSON.stringify(Si(i));return n.has(a)||(n.add(a),e.push({key:a,link:i})),e},[])}function wi(){let e=p.useContext(Gn);return pi(e,`You must render this element inside a <DataRouterContext.Provider> element`),e}function Ti(){let e=p.useContext(Kn);return pi(e,`You must render this element inside a <DataRouterStateContext.Provider> element`),e}var Ei=p.createContext(void 0);Ei.displayName=`FrameworkContext`;function Di(){let e=p.useContext(Ei);return pi(e,`You must render this element inside a <HydratedRouter> element`),e}function Oi(e,t){let n=p.useContext(Ei),[r,i]=p.useState(!1),[a,o]=p.useState(!1),{onFocus:s,onBlur:c,onMouseEnter:l,onMouseLeave:u,onTouchStart:d}=t,f=p.useRef(null);p.useEffect(()=>{if(e===`render`&&o(!0),e===`viewport`){let e=new IntersectionObserver(e=>{e.forEach(e=>{o(e.isIntersecting)})},{threshold:.5});return f.current&&e.observe(f.current),()=>{e.disconnect()}}},[e]),p.useEffect(()=>{if(r){let e=setTimeout(()=>{o(!0)},100);return()=>{clearTimeout(e)}}},[r]);let m=()=>{i(!0)},h=()=>{i(!1),o(!1)};return n?e===`intent`?[a,f,{onFocus:ki(s,m),onBlur:ki(c,h),onMouseEnter:ki(l,m),onMouseLeave:ki(u,h),onTouchStart:ki(d,m)}]:[a,f,{}]:[!1,f,{}]}function ki(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function Ai({page:e,...t}){let n=Jn(),{nonce:r}=Di(),{router:i}=wi(),a=p.useMemo(()=>oe(i.routes,e,i.basename),[i.routes,e,i.basename]);return a?(t.nonce==null&&r&&(t={...t,nonce:r}),n?p.createElement(Mi,{page:e,matches:a,...t}):p.createElement(Ni,{page:e,matches:a,...t})):null}function ji(e){let{manifest:t,routeModules:n}=Di(),[r,i]=p.useState([]);return p.useEffect(()=>{let r=!1;return vi(e,t,n).then(e=>{r||i(e)}),()=>{r=!0}},[e,t,n]),r}function Mi({page:e,matches:t,...n}){let r=lr(),{future:i}=Di(),{basename:a}=wi(),o=p.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let n=mi(e,a,i.v8_trailingSlashAwareDataRequests,`rsc`),o=!1,s=[];for(let e of t)typeof e.route.shouldRevalidate==`function`?o=!0:s.push(e.route.id);return o&&s.length>0&&n.searchParams.set(`_routes`,s.join(`,`)),[n.pathname+n.search]},[a,i.v8_trailingSlashAwareDataRequests,e,r,t]);return p.createElement(p.Fragment,null,o.map(e=>p.createElement(`link`,{key:e,rel:`prefetch`,as:`fetch`,href:e,...n})))}function Ni({page:e,matches:t,...n}){let r=lr(),{future:i,manifest:a,routeModules:o}=Di(),{basename:s}=wi(),{loaderData:c,matches:l}=Ti(),u=p.useMemo(()=>yi(e,t,l,a,r,`data`),[e,t,l,a,r]),d=p.useMemo(()=>yi(e,t,l,a,r,`assets`),[e,t,l,a,r]),f=p.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let n=new Set,l=!1;if(t.forEach(e=>{let t=a.routes[e.route.id];t&&t.hasLoader&&(!u.some(t=>t.route.id===e.route.id)&&e.route.id in c&&o[e.route.id]?.shouldRevalidate||t.hasClientLoader?l=!0:n.add(e.route.id))}),n.size===0)return[];let d=mi(e,s,i.v8_trailingSlashAwareDataRequests,`data`);return l&&n.size>0&&d.searchParams.set(`_routes`,t.filter(e=>n.has(e.route.id)).map(e=>e.route.id).join(`,`)),[d.pathname+d.search]},[s,i.v8_trailingSlashAwareDataRequests,c,r,a,u,t,e,o]),m=p.useMemo(()=>bi(d,a),[d,a]),h=ji(d);return p.createElement(p.Fragment,null,f.map(e=>p.createElement(`link`,{key:e,rel:`prefetch`,as:`fetch`,href:e,...n})),m.map(e=>p.createElement(`link`,{key:e,rel:`modulepreload`,href:e,...n})),h.map(({key:e,link:t})=>p.createElement(`link`,{key:e,nonce:n.nonce,...t,crossOrigin:t.crossOrigin??n.crossOrigin})))}function Pi(...e){return t=>{e.forEach(e=>{typeof e==`function`?e(t):e!=null&&(e.current=t)})}}p.Component;var L=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;try{L&&(window.__reactRouterVersion=`7.18.4`)}catch{}function Fi(e,t){return kt({basename:t?.basename,getContext:t?.getContext,future:t?.future,history:w({window:t?.window}),hydrationData:t?.hydrationData||Ii(),routes:e,mapRouteProperties:Ur,hydrationRouteProperties:Wr,dataStrategy:t?.dataStrategy,patchRoutesOnNavigation:t?.patchRoutesOnNavigation,window:t?.window,instrumentations:t?.instrumentations}).initialize()}function Ii(){let e=window?.__staticRouterHydrationData;return e&&e.errors&&(e={...e,errors:Li(e.errors)}),e}function Li(e){if(!e)return null;let t=Object.entries(e),n={};for(let[e,r]of t)if(r&&r.__type===`RouteErrorResponse`)n[e]=new Ge(r.status,r.statusText,r.data,r.internal===!0);else if(r&&r.__type===`Error`){if(typeof r.__subType==`string`&&We.includes(r.__subType)){let t=window[r.__subType];if(typeof t==`function`)try{let i=new t(r.message);i.stack=``,n[e]=i}catch{}}if(n[e]==null){let t=Error(r.message);t.stack=``,n[e]=t}}else n[e]=r;return n}var Ri=p.forwardRef(function({onClick:e,discover:t=`render`,prefetch:n=`none`,relative:r,reloadDocument:i,replace:a,mask:o,state:s,target:c,to:l,preventScrollReset:u,viewTransition:d,defaultShouldRevalidate:f,...m},h){let{basename:g,navigator:_,useTransitions:v}=p.useContext(Qn),b=typeof l==`string`&&y.test(l),x=Ye(l,g);l=x.to;let S=sr(l,{relative:r}),C=lr(),w=null;if(o){let e=Fe(o,[],C.mask?C.mask.pathname:`/`,!0);g!==`/`&&(e.pathname=e.pathname===`/`?g:Le([g,e.pathname])),w=_.createHref(e)}let[T,E,D]=Oi(n,m),O=Ui(l,{replace:a,mask:o,state:s,target:c,preventScrollReset:u,relative:r,viewTransition:d,defaultShouldRevalidate:f,useTransitions:v});function k(t){e&&e(t),t.defaultPrevented||O(t)}let A=!(x.isExternal||i),j=p.createElement(`a`,{...m,...D,href:(A?w:void 0)||x.absoluteURL||S,onClick:A?k:e,ref:Pi(h,E),target:c,"data-discover":!b&&t===`render`?`true`:void 0});return T&&!b?p.createElement(p.Fragment,null,j,p.createElement(Ai,{page:S})):j});Ri.displayName=`Link`;var zi=p.forwardRef(function({"aria-current":e=`page`,caseSensitive:t=!1,className:n=``,end:r=!1,style:i,to:a,viewTransition:o,children:s,...c},l){let u=vr(a,{relative:c.relative}),d=lr(),f=p.useContext(Kn),{navigator:m,basename:h}=p.useContext(Qn),g=f!=null&&Yi(u)&&o===!0,_=m.encodeLocation?m.encodeLocation(u).pathname:u.pathname,v=d.pathname,y=f&&f.navigation&&f.navigation.location?f.navigation.location.pathname:null;t||(v=v.toLowerCase(),y=y?y.toLowerCase():null,_=_.toLowerCase()),y&&h&&(y=De(y,h)||y);let b=_!==`/`&&_.endsWith(`/`)?_.length-1:_.length,x=v===_||!r&&v.startsWith(_)&&v.charAt(b)===`/`,S=y!=null&&(y===_||!r&&y.startsWith(_)&&y.charAt(_.length)===`/`),C={isActive:x,isPending:S,isTransitioning:g},w=x?e:void 0,T;T=typeof n==`function`?n(C):[n,x?`active`:null,S?`pending`:null,g?`transitioning`:null].filter(Boolean).join(` `);let E=typeof i==`function`?i(C):i;return p.createElement(Ri,{...c,"aria-current":w,className:T,ref:l,style:E,to:a,viewTransition:o},typeof s==`function`?s(C):s)});zi.displayName=`NavLink`;var Bi=p.forwardRef(({discover:e=`render`,fetcherKey:t,navigate:n,reloadDocument:r,replace:i,state:a,method:o=Qr,action:s,onSubmit:c,relative:l,preventScrollReset:u,viewTransition:d,defaultShouldRevalidate:f,...m},h)=>{let{useTransitions:g}=p.useContext(Qn),_=qi(),v=Ji(s,{relative:l}),b=o.toLowerCase()===`get`?`get`:`post`,x=typeof s==`string`&&y.test(s);return p.createElement(`form`,{ref:h,method:b,action:v,onSubmit:r?c:e=>{if(c&&c(e),e.defaultPrevented)return;e.preventDefault();let r=e.nativeEvent.submitter,s=r?.getAttribute(`formmethod`)||o,m=()=>_(r||e.currentTarget,{fetcherKey:t,method:s,navigate:n,replace:i,state:a,relative:l,preventScrollReset:u,viewTransition:d,defaultShouldRevalidate:f});g&&n!==!1?p.startTransition(()=>m()):m()},...m,"data-discover":!x&&e===`render`?`true`:void 0})});Bi.displayName=`Form`;function Vi(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Hi(e){let t=p.useContext(Gn);return T(t,Vi(e)),t}function Ui(e,{target:t,replace:n,mask:r,state:i,preventScrollReset:a,relative:o,viewTransition:s,defaultShouldRevalidate:c,useTransitions:l}={}){let u=fr(),d=lr(),f=vr(e,{relative:o});return p.useCallback(m=>{if(ai(m,t)){m.preventDefault();let t=n===void 0?A(d)===A(f):n,h=()=>u(e,{replace:t,mask:r,state:i,preventScrollReset:a,relative:o,viewTransition:s,defaultShouldRevalidate:c});l?p.startTransition(()=>h()):h()}},[d,u,f,n,r,i,t,e,a,o,s,c,l])}function Wi(e){E(typeof URLSearchParams<`u`,"You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let t=p.useRef(oi(e)),n=p.useRef(!1),r=lr(),i=p.useMemo(()=>si(r.search,n.current?null:t.current),[r.search]),a=fr();return[i,p.useCallback((e,t)=>{let r=oi(typeof e==`function`?e(new URLSearchParams(i)):e);n.current=!0,a(`?`+r,t)},[a,i])]}var Gi=0,Ki=()=>`__${String(++Gi)}__`;function qi(){let{router:e}=Hi(`useSubmit`),{basename:t}=p.useContext(Qn),n=Mr(),r=e.fetch,i=e.navigate;return p.useCallback(async(e,a={})=>{let{action:o,method:s,encType:c,formData:l,body:u}=fi(e,t);if(a.navigate===!1){let e=a.fetcherKey||Ki();await r(e,n,a.action||o,{defaultShouldRevalidate:a.defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,formData:l,body:u,formMethod:a.method||s,formEncType:a.encType||c,flushSync:a.flushSync})}else await i(a.action||o,{defaultShouldRevalidate:a.defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,formData:l,body:u,formMethod:a.method||s,formEncType:a.encType||c,replace:a.replace,state:a.state,fromRouteId:n,flushSync:a.flushSync,viewTransition:a.viewTransition})},[r,i,t,n])}function Ji(e,{relative:t}={}){let{basename:n}=p.useContext(Qn),r=p.useContext(er);T(r,`useFormAction must be used inside a RouteContext`);let[i]=r.matches.slice(-1),a={...vr(e||`.`,{relative:t})},o=lr();if(e==null){a.search=o.search;let e=new URLSearchParams(a.search),t=e.getAll(`index`);if(t.some(e=>e===``)){e.delete(`index`),t.filter(e=>e).forEach(t=>e.append(`index`,t));let n=e.toString();a.search=n?`?${n}`:``}}return(!e||e===`.`)&&i.route.index&&(a.search=a.search?a.search.replace(/^\?/,`?index&`):`?index`),n!==`/`&&(a.pathname=a.pathname===`/`?n:Le([n,a.pathname])),A(a)}function Yi(e,{relative:t}={}){let n=p.useContext(Yn);T(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=Hi(`useViewTransitionState`),i=vr(e,{relative:t});if(!n.isTransitioning)return!1;let a=De(n.currentLocation.pathname,r)||n.currentLocation.pathname,o=De(n.nextLocation.pathname,r)||n.nextLocation.pathname;return Ce(i.pathname,o)!=null||Ce(i.pathname,a)!=null}var Xi=class extends Error{status;constructor(e,t){super(t),this.status=e,this.name=`HttpError`}},Zi=class{options;constructor(e){this.options=e}get(e){return this.request(`GET`,e)}post(e,t,n=[200]){return this.request(`POST`,e,t,n)}patch(e,t){return this.request(`PATCH`,e,t)}delete(e){return this.request(`DELETE`,e)}async request(e,t,n,r=[200]){let i=await this.options.requestLib(`${this.options.endpoint??``}/api/${t}`,{method:e,headers:{"Content-Type":`application/json`},body:n===void 0?void 0:JSON.stringify(n)}),a;try{a=i.body?JSON.parse(i.body):void 0}catch{a=void 0}if(!r.includes(i.status)){let e=a&&typeof a==`object`&&`error`in a?String(a.error):i.body||`请求失败 (${i.status})`;throw new Xi(i.status,e)}return a}},Qi=class e{options;static fetchToRequestLib=e=>async(t,n)=>{let r=await e(t,{method:n.method,headers:n.headers,body:n.body});return{status:r.status,body:await r.text()}};client;project;files;conformance;changelog;baselines;tasks;changes;code;constructor(e){this.options=e,this.client=new Zi(e),this.project={get:()=>this.client.get(`project`)},this.files={list:e=>this.client.get(`files?${$i({directory:e})}`),read:(e,t=0)=>this.client.get(`files/content?${$i({path:e,offset:String(t)})}`)},this.conformance={list:()=>this.client.get(`conformance`),readme:e=>this.client.get(`conformance/readme?${$i({rule:e})}`)},this.changelog={list:()=>this.client.get(`changelog`),files:e=>this.client.get(`changelog/${encodeURIComponent(e)}/files`),diff:(e,t)=>this.client.get(`changelog/${encodeURIComponent(e)}/diff?${$i({path:t})}`),update:(e,t)=>this.client.patch(`changelog/${encodeURIComponent(e)}`,t)},this.baselines={list:()=>this.client.get(`baselines`),delete:(e,t,n)=>this.client.delete(`namespaces/${encodeURIComponent(e)}/baselines?${$i({file:t,version:n})}`)},this.tasks={list:()=>this.client.get(`tasks`),detail:e=>this.client.get(`tasks/${encodeURIComponent(e)}`),removable:()=>this.client.get(`tasks/removable`),prune:()=>this.client.delete(`tasks/removable`),approve:(e,t,n)=>this.client.post(`tasks/${encodeURIComponent(e)}/approvals`,{caseIds:t,baselineVersion:n},[200,409])},this.changes={list:e=>this.client.get(`baseline-changes?${$i({ref:e})}`),review:(e,t,n,r)=>this.client.patch(`baseline-changes/reviews`,{ref:e,version:t,items:n,reviewed:r})},this.code={list:e=>this.client.get(`code-changes?${$i({ref:e})}`),diff:(e,t,n)=>this.client.get(`code-changes/diff?${$i({ref:e,path:t,...n?{version:n}:{}})}`),review:(e,t,n,r)=>this.client.patch(`code-changes/reviews`,{ref:e,version:t,items:n,reviewed:r})}}clone(){return new e(this.options)}};function $i(e){return new URLSearchParams(e).toString()}var ea=new EventTarget,ta=new AbortController;function na(){ta.signal.aborted&&(ta=new AbortController)}var ra=new Qi({requestLib:Qi.fetchToRequestLib(async(e,t)=>{let n=ta,r=t?.signal?AbortSignal.any([t.signal,n.signal]):n.signal,i=await fetch(e,{...t,signal:r});if(i.status===401){let e=await i.clone().json().catch(()=>null);if(r.throwIfAborted(),e?.code===`REPORT_PASSWORD_REQUIRED`)throw n.abort(),ea.dispatchEvent(new Event(`unauthorized`)),n.signal.reason}else i.ok&&(r.throwIfAborted(),ea.dispatchEvent(new Event(`authorized`)));return i})}),ia={password:{form:`password.form`,input:`password.input`,submit:`password.submit`,error:`password.error`},ignoredBaseline:`baseline.ignored`,deleteBaseline:`baseline.delete`,module:{root:`module`,loading:`module.loading`,baseline:`view.baseline`,tasks:`view.tasks`,changes:`module.changes`,code:`module.code`,changelog:`module.changelog`,conformance:`module.conformance`,files:`module.files`,tooltip:e=>`module.tooltip.${e}`},conformance:{list:`conformance.list`,enabled:`conformance.enabled`,disabled:`conformance.disabled`,rule:e=>`conformance.rule.${e}`,readme:`conformance.readme`,state:`conformance.state`},changelog:{commits:`changelog.commits`,commit:e=>`changelog.commit.${e}`,review:e=>`changelog.review.${e}`,reviewCount:`changelog.reviewCount`,reviewFilter:`changelog.reviewFilter`,files:`changelog.files`,file:e=>`changelog.file.${e}`,detail:`changelog.detail`,empty:`changelog.empty`,editor:`changelog.editor`,scopes:`changelog.scopes`,entry:e=>`changelog.entry.${e}`,saveState:e=>`changelog.save.${e}`,retry:e=>`changelog.retry.${e}`,tag:e=>`changelog.tag.${e}`},files:{tree:`files.tree`,folderLoading:e=>`files.folderLoading.${e}`,file:e=>`files.file.${e}`,content:`files.content`,editor:`files.editor`,previous:`files.previous`,next:`files.next`},code:{tree:`code.tree`,scroll:`code.scroll`,file:e=>`code.file.${e}`,content:`code.content`,empty:`code.empty`,refresh:`code.refresh`,review:e=>`code.review.${e}`,reviewCount:`code.reviewCount`},changes:{tree:`changes.tree`,review:e=>`changes.review.${e}`,reviewCount:`changes.reviewCount`},visual:{stage:{root:`visual.stage`,image:e=>`visual.stage.image.${e}`,zoom:e=>`visual.stage.zoom.${e}`,approve:`approve`}},dialog:{root:`dialog`,close:`dialog.close`},branches:`changes.branches`,resize:`sidebar.resize`,approveBatch:`approve.batch`,selectionBar:`selection.bar`,pageHeader:`page.header`,headerMetadata:`page.header.metadata`,statusBadge:`status.badge`,taskStatus:e=>`status.task.${e}`,folder:e=>`tree.folder.${e}`,clearSelection:`selection.clear`,previous:`stage.previous`,next:`stage.next`,snapshotTab:e=>`snapshot.tab.${e}`,sourceTab:e=>`source.tab.${e}`,collapse:`source.collapse`,copy:`source.copy`,source:`source.code`,sourceLineNumbers:`source.lineNumbers`,diffUnified:`diff.unified`,diffExpand:`diff.expand`,diffEditor:`diff.editor`,diffOriginal:`diff.original`,diffModified:`diff.modified`,namespace:e=>`namespace.${e}`,view:{baseline:`view.baseline`,tasks:`view.tasks`},tasks:{root:`tasks`,empty:`tasks.empty`,item:e=>`tasks.${e}`,removable:`tasks.removable`,prune:`tasks.prune`},tree:`cases`,case:e=>`case.${e}`,selectFolder:e=>`select.folder.${e}`,select:e=>`select.${e}`,detail:`detail`,snapshotContent:`detail.snapshots`,supplement:`detail.supplement`,taskInfo:`detail.taskInfo`,caseEyebrow:`detail.caseEyebrow`,taskExecutionId:`detail.taskExecutionId`,copyTaskExecutionId:`detail.copyTaskExecutionId`,caseId:`detail.caseId`,copyCaseIds:`detail.copyCaseIds`,taskError:`detail.taskError`,empty:`empty`,approve:`approve`,refresh:`refresh`,message:`message`,previewTab:e=>`preview.tab.${e}`,preview:{tabs:`preview.tabs`,title:`preview.title`,card:`preview.card`,previous:`preview.previous`,next:`preview.next`,left:`preview.left`,right:`preview.right`,position:`preview.position`,version:`preview.version`,hints:`preview.hints`,case:`preview.case`,status:`preview.status`,select:`preview.select`,evidence:`preview.evidence`,evidenceTab:e=>`preview.evidence.${e}`},snapshotPreview:e=>`snapshot.preview.${e}`,imageVersion:(e,t)=>`image.version.${e}.${t}`,snapshotViewLabel:e=>`snapshot.viewLabel.${e}`,snapshotCompare:e=>`snapshot.compare.${e}`,snapshotStatus:e=>`snapshot.status.${e}`,snapshotMetrics:e=>`snapshot.metrics.${e}`,snapshotDiff:e=>`snapshot.diff.${e}`,snapshot:e=>`snapshot.${e}`,image:(e,t)=>`image.${e}.${t}`,text:e=>`text.${e}`,observation:e=>`observation.${e}`,filter:e=>`filter.${e}`,filterGroup:`filter.group`,filterThumb:`filter.thumb`,mobile:{tabbar:`mobile.tabbar`,tab:e=>`mobile.tab.${e}`,more:`mobile.more`,moreSheet:`mobile.moreSheet`,editTabs:`mobile.editTabs`,tabOrder:e=>`mobile.tabOrder.${e}`,tabHandle:e=>`mobile.tabHandle.${e}`,saveTabs:`mobile.saveTabs`,resetTabs:`mobile.resetTabs`,rule:e=>`mobile.rule.${e}`,conformanceEnabled:`mobile.conformance.enabled`,conformanceDisabled:`mobile.conformance.disabled`,ruleReadme:`mobile.conformance.readme`,ruleState:`mobile.conformance.state`,page:e=>`mobile.page.${e}`,back:`mobile.back`,prev:`mobile.prev`,next:`mobile.next`,switchHand:`mobile.switchHand`,empty:`mobile.empty`,toast:`mobile.toast`,diff:e=>`mobile.diff.${e}`,ref:`mobile.ref`,refDialog:`mobile.refDialog`,refOption:e=>`mobile.refOption.${e}`,review:`mobile.review`,file:e=>`mobile.file.${e}`,check:e=>`mobile.check.${e}`,commit:e=>`mobile.commit.${e}`,actionSheet:`mobile.actionSheet`,moreActions:`mobile.moreActions`,caseInfo:`mobile.caseInfo`,copyCaseId:`mobile.copyCaseId`,copyPath:`mobile.copyPath`,pathDisclosure:`mobile.pathDisclosure`,metrics:e=>`mobile.metrics.${e}`,copy:e=>`mobile.copy.${e}`,diagnostics:`mobile.diagnostics`,expandAll:`mobile.expandAll`,tag:e=>`mobile.tag.${e}`,note:e=>`mobile.note.${e}`,noteState:e=>`mobile.noteState.${e}`,task:e=>`mobile.task.${e}`,case:e=>`mobile.case.${e}`,baselineCase:e=>`mobile.baselineCase.${e}`,folder:e=>`mobile.folder.${e}`,evidence:e=>`mobile.evidence.${e}`,filter:e=>`mobile.filter.${e}`,confirm:`mobile.confirm`,confirmOk:`mobile.confirm.ok`,confirmCancel:`mobile.confirm.cancel`,image:e=>`mobile.image.${e}`,fileDiff:`mobile.fileDiff`,approve:`mobile.approve`,approveAll:`mobile.approveAll`,prune:`mobile.prune`,deleteBaseline:`mobile.deleteBaseline`}},aa=s((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})),oa=s(((e,t)=>{t.exports=aa()})),R=oa();function sa(e,t,n){if(!e||!e.startsWith(`/`)||e.startsWith(`//`))return t;try{let r=new URL(e,window.location.origin);if(r.origin!==window.location.origin||r.pathname.startsWith(`//`))return t;let i=oe(n,r.pathname)?.at(-1);return!i||i.route.path===`*`?t:r.pathname+r.search+r.hash}catch{return t}}function ca(e,t){let n=!1,r=()=>{n=!0},i=()=>{if(window.location.pathname===t)return;let r=window.location.pathname+window.location.search+window.location.hash;e.navigate(`${t}?from=${encodeURIComponent(r)}`,{replace:!0,state:{expired:n}}),n=!1};return ea.addEventListener(`authorized`,r),ea.addEventListener(`unauthorized`,i),()=>{ea.removeEventListener(`authorized`,r),ea.removeEventListener(`unauthorized`,i),na()}}function la({variant:e,routes:t,defaultPassword:n=``}){let r=lr(),i=fr(),a=r.state,[o,s]=(0,p.useState)(n),[c,l]=(0,p.useState)(!1),[u,d]=(0,p.useState)(()=>a?.expired?{message:`会话已失效,请重新输入密码。`}:void 0),f=(0,p.useRef)(null),[m]=(0,p.useState)(()=>new AbortController);(0,p.useEffect)(()=>()=>{m.abort(),na()},[m]);let h=e===`mobile`?`/mobile/tasks`:`/tasks`,g=sa(new URLSearchParams(r.search).get(`from`),h,t);async function _(e){if(e.preventDefault(),!c&&o){l(!0),d(void 0);try{let e=await fetch(`/api/session`,{method:`POST`,signal:m.signal,headers:{"Content-Type":`application/json`},body:JSON.stringify({password:o})});if(e.status===401){let t=await e.json().catch(()=>null);t?.code===`REPORT_PASSWORD_INVALID`&&t.error?(d({message:t.error,invalidPassword:!0}),f.current?.focus(),f.current?.select()):d({message:`无法连接服务,请稍后重试。`})}else if(e.ok){na(),await i(g,{replace:!0});return}else throw Error()}catch{if(m.signal.aborted)return;d({message:`无法连接服务,请稍后重试。`})}l(!1)}}return(0,R.jsx)(`main`,{className:`report-access`,"data-variant":e,children:(0,R.jsxs)(`form`,{className:`report-access-panel`,onSubmit:_,"aria-labelledby":`report-access-title`,"aria-describedby":`report-access-description`,"aria-busy":c||void 0,"data-testid":ia.password.form,children:[(0,R.jsxs)(`div`,{className:`report-access-header`,children:[(0,R.jsx)(`h1`,{id:`report-access-title`,className:`report-access-title`,children:`输入访问密码`}),(0,R.jsx)(`p`,{id:`report-access-description`,className:`report-access-description`,children:`此报告受密码保护,请输入密码以继续。`})]}),(0,R.jsxs)(`div`,{className:`report-access-field`,children:[(0,R.jsx)(`label`,{htmlFor:`report-password`,className:`report-access-label`,children:`密码`}),(0,R.jsx)(`input`,{id:`report-password`,ref:f,className:`report-access-input`,type:`password`,autoComplete:`current-password`,autoFocus:!0,required:!0,value:o,onChange:e=>{s(e.target.value),d(void 0)},"aria-describedby":u?`report-access-error`:void 0,"aria-invalid":u?.invalidPassword,"data-testid":ia.password.input}),u&&(0,R.jsx)(`p`,{id:`report-access-error`,className:`report-access-error`,role:`alert`,"data-testid":ia.password.error,children:u.message})]}),(0,R.jsx)(`button`,{type:`submit`,className:`report-access-button is-primary`,disabled:!o||c,"data-pending":c||void 0,"data-testid":ia.password.submit,children:c?`验证中…`:`继续`})]})})}var ua=s((e=>{var t=f();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`);function o(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:a,key:r==null?null:``+r,children:e,containerInfo:t,implementation:n}}var s=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function c(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.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 o(e,t,null,r)},e.flushSync=function(e){var t=s.T,n=i.p;try{if(s.T=null,i.p=2,e)return e()}finally{s.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=c(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=c(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})}}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=c(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=c(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})}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 s.H.useFormState(e,t,n)},e.useFormStatus=function(){return s.H.useHostTransitionStatus()},e.version=`19.2.8`})),da=s(((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=ua()})),fa=u(da(),1);function pa(e){return p.createElement(Kr,{flushSync:fa.flushSync,...e})}function ma(e){let t=(0,p.useCallback)(t=>{let n=e.onDidChange(t);return()=>n.dispose()},[e]);return(0,p.useSyncExternalStore)(t,e.getSnapshot),e}var ha=(0,p.createContext)(null);function ga({createServices:e,children:t}){let[n]=(0,p.useState)(e);return(0,p.useEffect)(()=>()=>n.dispose(),[n]),(0,R.jsx)(ha.Provider,{value:n.instantiationService,children:t})}function _a(e){let t=(0,p.useContext)(ha);if(!t)throw Error(`组件必须位于 ServicesProvider 内`);return t.invokeFunction(t=>t.get(e))}var va=class{ctor;staticArguments;supportsDelayedInstantiation;constructor(e,t=[],n=!1){this.ctor=e,this.staticArguments=t,this.supportsDelayedInstantiation=n}},ya;(function(e){e.serviceIds=new Map,e.DI_TARGET=`$di$target`,e.DI_DEPENDENCIES=`$di$dependencies`;function t(t){return t[e.DI_DEPENDENCIES]||[]}e.getServiceDependencies=t})(ya||={});var ba=Sa(`instantiationService`);function xa(e,t,n){t[ya.DI_TARGET]===t?t[ya.DI_DEPENDENCIES].push({id:e,index:n}):(t[ya.DI_DEPENDENCIES]=[{id:e,index:n}],t[ya.DI_TARGET]=t)}function Sa(e){if(ya.serviceIds.has(e))return ya.serviceIds.get(e);let t=function(e,n,r){if(arguments.length!==3)throw Error(`@IServiceName-decorator can only be used to decorate a parameter`);xa(t,e,r)};return t.toString=()=>e,ya.serviceIds.set(e,t),t}var Ca=new class{unexpectedErrorHandler;listeners;constructor(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout(()=>{throw e.stack?Aa.isErrorNoTelemetry(e)?new Aa(e.message+`
@@ -87,7 +87,7 @@ Error generating stack: `+e.message+`
87
87
  display: none;
88
88
  visibility: hidden;
89
89
  }
90
- `.replace(/\n+/g,` `).replace(/\s+/g,` `).trim();function fh(e,t=`hidden`){return Ys(()=>{let{element:n,manager:r}=e;if(!n||!r)return;let i=ph(n,r.registry.droppables),a=[],o=Tf(n),{remove:s}=o;return mh(i,o,a),hh(o,t),o.remove=()=>{a.forEach(e=>e()),s.call(o)},o})}function ph(e,t){let n=new Map;for(let r of t)if(r.element&&(e===r.element||e.contains(r.element))){let e=`${ih}${om(`dom-id`)}`;r.element.setAttribute(e,``),n.set(r,e)}return n}function mh(e,t,n){for(let[r,i]of e){if(!r.element)continue;let e=`[${i}]`,a=t.matches(e)?t:t.querySelector(e);if(r.element.removeAttribute(i),!a)continue;let o=r.element;r.proxy=a,a.removeAttribute(i),Af.set(o,a),n.push(()=>{Af.delete(o),r.proxy=void 0})}}function hh(e,t=`hidden`){e.setAttribute(`inert`,`true`),e.setAttribute(`tab-index`,`-1`),e.setAttribute(`aria-hidden`,`true`),e.setAttribute(ch,t)}function gh(e,t){return e===t||Nf(e)===Nf(t)}function _h(e){let{target:t}=e;`newState`in e&&e.newState===`closed`&&em(t)&&t.hasAttribute(`popover`)&&requestAnimationFrame(()=>pp(t))}function vh(e){return e.tagName===`TR`}function yh(e,t,n){let r=new MutationObserver(r=>{let i=!1;for(let n of r){if(n.target!==e){i=!0;continue}if(n.type!==`attributes`)continue;let r=n.attributeName;if(r.startsWith(`aria-`)||lh.includes(r))continue;let a=e.getAttribute(r);if(r===`style`){if(Qp(e)&&Qp(t)){let n=e.style;for(let e of Array.from(t.style))n.getPropertyValue(e)===``&&t.style.removeProperty(e);for(let e of Array.from(n)){if(uh.includes(e)||e.startsWith(oh))continue;let r=n.getPropertyValue(e);t.style.setProperty(e,r)}}}else a===null?t.removeAttribute(r):t.setAttribute(r,a)}i&&n&&t.replaceChildren(...e.cloneNode(!0).childNodes)});return r.observe(e,{attributes:!0,subtree:!0,childList:!0}),r}function bh(e,t,n){let r=new MutationObserver(r=>{for(let i of r)if(i.addedNodes.length!==0)for(let r of Array.from(i.addedNodes)){if(r.contains(e)&&e.nextElementSibling!==t){e.insertAdjacentElement(`afterend`,t),pp(n);return}if(r.contains(t)&&t.previousElementSibling!==e){t.insertAdjacentElement(`beforebegin`,e),pp(n);return}}e.isConnected&&t.isConnected&&e.nextElementSibling!==t&&(e.insertAdjacentElement(`afterend`,t),pp(n))});return r.observe(e.ownerDocument.body,{childList:!0,subtree:!0}),r}function xh(e){return new ResizeObserver(()=>{var t;let n=new Xp(e.placeholder,{frameTransform:e.frameTransform,ignoreTransforms:!0}),r=e.transformOrigin??{x:1,y:1},i=(e.width-n.width)*r.x+e.delta.x,a=(e.height-n.height)*r.y+e.delta.y,o=xf();if(e.styles.set({width:n.width-e.widthOffset,height:n.height-e.heightOffset,top:e.top+a+o.y,left:e.left+i+o.x},oh),(t=e.getElementMutationObserver())==null||t.takeRecords(),vh(e.element)&&vh(e.placeholder)){let t=Array.from(e.element.cells),n=Array.from(e.placeholder.cells);e.getSavedCellWidths()||e.setSavedCellWidths(t.map(e=>e.style.width));for(let[e,r]of t.entries()){let t=n[e];r.style.width=`${t.getBoundingClientRect().width}px`}}let s=e.getTranslate()??{x:0,y:0},c=e.left+i+o.x+s.x,l=e.top+a+o.y+s.y,u=n.width-e.widthOffset,d=n.height-e.heightOffset,f=e.frameTransform;e.dragOperation.shape=new Hl(c*f.scaleX+f.x,l*f.scaleY+f.y,u*f.scaleX,d*f.scaleY)})}var Sh=250,Ch=`ease`;function wh(e){var t;let{animation:n}=e;if(typeof n==`function`){let t=n({source:e.source,element:e.element,feedbackElement:e.feedbackElement,placeholder:e.placeholder,translate:e.translate,moved:e.moved});Promise.resolve(t).then(()=>{e.cleanup(),requestAnimationFrame(e.restoreFocus)});return}let{duration:r=Sh,easing:i=Ch}=n??{};pp(e.feedbackElement);let[,a]=rf(e.feedbackElement,e=>`translate`in e)??[];a?.pause();let o=e.placeholder??e.element,s={frameTransform:gh(e.feedbackElement,o)?null:void 0},c=new Xp(e.feedbackElement,s),l=Mp(yp(e.feedbackElement).translate)??e.translate,u=new Xp(o,s),d=Hl.delta(c,u,e.alignment),f={x:l.x-d.x,y:l.y-d.y},p=Math.round(c.intrinsicHeight)===Math.round(u.intrinsicHeight)?{}:{minHeight:[`${c.intrinsicHeight}px`,`${u.intrinsicHeight}px`],maxHeight:[`${c.intrinsicHeight}px`,`${u.intrinsicHeight}px`]},m=Math.round(c.intrinsicWidth)===Math.round(u.intrinsicWidth)?{}:{minWidth:[`${c.intrinsicWidth}px`,`${u.intrinsicWidth}px`],maxWidth:[`${c.intrinsicWidth}px`,`${u.intrinsicWidth}px`]};e.styles.set({transition:e.transition},oh),e.feedbackElement.setAttribute(ah,``),(t=e.getElementMutationObserver())==null||t.takeRecords(),Wp({element:e.feedbackElement,keyframes:Sm(xm(xm({},p),m),{translate:[`${l.x}px ${l.y}px 0`,`${f.x}px ${f.y}px 0`]}),options:{duration:wf(cf(e.feedbackElement))?0:e.moved||e.feedbackElement!==e.element?r:0,easing:i}}).then(()=>{e.feedbackElement.removeAttribute(ah),a?.finish(),e.cleanup(),requestAnimationFrame(e.restoreFocus)})}var Th,Eh,Dh,Oh,kh,Ah,jh,Mh=class extends (Eh=ku,Th=[V],Eh){constructor(e,t){super(e,t),Fm(this,kh),Fm(this,Oh,Am(Dh,8,this)),Am(Dh,11,this),this.state={initial:{},current:{}};let n=e.registry.plugins.get(rh),r=n?.register(dh,{retain:!0});if(r){let e=this.destroy.bind(this);this.destroy=()=>{r(),e()}}this.registerEffect(Lm(this,kh,Ah).bind(this,n)),this.registerEffect(Lm(this,kh,jh))}};Dh=Tm(Eh),Oh=new WeakMap,kh=new WeakSet,Ah=function(e){let{overlay:t}=this;if(!t||!e)return;let n=Cf(t);if(n)return e.addRoot(n)},jh=function(){let{state:e,manager:t,options:n}=this,{dragOperation:r}=t,{position:i,source:a,status:o}=r;if(o.idle){e.current={},e.initial={};return}if(!a)return;let{element:s}=a,c=a.pluginConfig(Mh),l=c?.feedback??n?.feedback??`default`,u=typeof l==`function`?l(a,t):l;if(!s||u===`none`||!o.initialized||o.initializing)return;let{initial:d}=e,f=this.overlay??s,p=kp(f),m=kp(s),h=!gh(s,f),g=new Xp(s,{frameTransform:h?m:null,ignoreTransforms:!h}),_={x:m.scaleX/p.scaleX,y:m.scaleY/p.scaleY},{width:v,height:y,top:b,left:x}=g;h&&(v/=_.x,y/=_.y);let S=new $p(f),C=yp(s),{transition:w,translate:T,boxSizing:E,paddingBlockStart:D,paddingBlockEnd:O,paddingInlineStart:k,paddingInlineEnd:A,borderInlineStartWidth:j,borderInlineEndWidth:M,borderBlockStartWidth:ee,borderBlockEndWidth:N}=C,P=w.split(`,`).filter(e=>!/^\s*(transform|translate|scale)\b/.test(e)).join(`,`),F=Np(C),te=C.transform,ne=u===`clone`,re=E===`content-box`,ie=re?parseInt(k)+parseInt(A)+parseInt(j)+parseInt(M):0,I=re?parseInt(D)+parseInt(O)+parseInt(ee)+parseInt(N):0,ae=u!==`move`&&!this.overlay?fh(a,ne?`clone`:`hidden`):null,oe=Ys(()=>tm(t.dragOperation.activatorEvent));if(!d.translate){if(this.overlay&&F)d.translate={x:F.x,y:F.y};else if(T!==`none`){let e=Mp(T);e&&(d.translate=e)}}if(!d.transformOrigin){let e=Ys(()=>i.current),t=x+(F?.x??0),n=b+(F?.y??0);d.transformOrigin={x:(e.x-t*p.scaleX-p.x)/(v*p.scaleX),y:(e.y-n*p.scaleY-p.y)/(y*p.scaleY)}}let{transformOrigin:se}=d,ce=b*p.scaleY+p.y,le=x*p.scaleX+p.x;if(!d.coordinates&&(d.coordinates={x:le,y:ce},_.x!==1||_.y!==1)){let{scaleX:e,scaleY:t}=m,{x:n,y:r}=se;d.coordinates.x+=(v*e-v)*n,d.coordinates.y+=(y*t-y)*r}d.dimensions||={width:v,height:y},d.frameTransform||=p;let ue={x:d.coordinates.x-le,y:d.coordinates.y-ce},de={width:(d.dimensions.width*d.frameTransform.scaleX-v*p.scaleX)*se.x,height:(d.dimensions.height*d.frameTransform.scaleY-y*p.scaleY)*se.y},fe={x:ue.x/p.scaleX+de.width,y:ue.y/p.scaleY+de.height},pe={left:x+fe.x,top:b+fe.y};f.setAttribute(sh,`true`);let me=Ys(()=>r.transform),he=d.translate??{x:0,y:0},ge=me.x*p.scaleX+he.x,_e=me.y*p.scaleY+he.y,ve=xf();S.set({width:v-ie,height:y-I,top:pe.top+ve.y,left:pe.left+ve.x,translate:`${ge}px ${_e}px 0`,transform:this.overlay?`none`:te,transition:P?`${P}, translate 0ms linear`:`translate 0ms linear`,scale:h?`${_.x} ${_.y}`:``,"transform-origin":`${se.x*100}% ${se.y*100}%`},oh),ae&&(s.insertAdjacentElement(`afterend`,ae),n?.rootElement&&(typeof n.rootElement==`function`?n.rootElement(a):n.rootElement).appendChild(s)),fp(f)&&(f.hasAttribute(`popover`)||f.setAttribute(`popover`,`manual`),pp(f),f.addEventListener(`beforetoggle`,_h));let ye,be,xe,Se=xh({placeholder:ae,element:s,feedbackElement:f,frameTransform:p,transformOrigin:se,width:v,height:y,top:b,left:x,widthOffset:ie,heightOffset:I,delta:fe,styles:S,dragOperation:r,getTranslate:()=>e.current.translate,getElementMutationObserver:()=>ye,getSavedCellWidths:()=>xe,setSavedCellWidths:e=>{xe=e}}),Ce=new Xp(f);Ys(()=>r.shape=Ce);let we=cf(f),Te=e=>{this.manager.actions.stop({event:e})},Ee=wf(we);oe&&we.addEventListener(`resize`,Te),Ys(()=>a.status)===`idle`&&requestAnimationFrame(()=>a.status=`dragging`),ae&&(Se.observe(ae),ye=yh(s,ae,ne),be=bh(s,ae,f));let De=t.dragOperation.source?.id,Oe=()=>{if(!oe||De==null)return;let e=t.registry.draggables.get(De),n=e?.handle??e?.element;uf(n)&&n.focus()},ke=()=>{ye?.disconnect(),be?.disconnect(),Se.disconnect(),we.removeEventListener(`resize`,Te),fp(f)&&(f.removeEventListener(`beforetoggle`,_h),f.removeAttribute(`popover`)),f.removeAttribute(sh),S.reset();let t=()=>{if(xe&&vh(s)){let e=Array.from(s.cells);for(let[t,n]of e.entries())n.style.width=xe[t]??``}a.status=`idle`;let t=e.current.translate!=null,n=r.status.dragging;ae&&(!n&&t||ae.parentElement!==f.parentElement)&&f.isConnected&&ae.replaceWith(f),ae?.remove()};f===this.overlay?setTimeout(t,0):t()},Ae=n?.dropAnimation,je=this,Me=qc(()=>{let{transform:t,status:i}=r;if((t.x||t.y||e.current.translate)&&i.dragging){let i=d.translate??{x:0,y:0},a={x:t.x/p.scaleX+i.x,y:t.y/p.scaleY+i.y},o=e.current.translate,s=Ys(()=>r.modifiers),c=Ys(()=>r.shape?.current),l=n?.keyboardTransition,u=oe&&!Ee&&l!==null?`${l?.duration??250}ms ${l?.easing??`cubic-bezier(0.25, 1, 0.5, 1)`}`:`0ms linear`;if(S.set({transition:P?`${P}, translate ${u}`:`translate ${u}`,translate:`${a.x}px ${a.y}px 0`},oh),ye?.takeRecords(),c&&c!==Ce&&o&&!s.length){let e=Vl.delta(a,o);r.shape=Hl.from(c.boundingRectangle).translate(e.x*p.scaleX,e.y*p.scaleY)}else r.shape=new Xp(f);e.current.translate=a}},function(){if(r.status.dropped){this.dispose(),a.status=`dropping`;let n=c?.dropAnimation===void 0?je.dropAnimation===void 0?Ae:je.dropAnimation:c.dropAnimation,r=e.current.translate,i=r!=null;if(!r&&s!==f&&(r={x:0,y:0}),!r||n===null){ke();return}t.renderer.rendering.then(()=>{wh({source:a,element:s,feedbackElement:f,placeholder:ae,translate:r,moved:i,transition:w,alignment:a.alignment,styles:S,animation:n??void 0,getElementMutationObserver:()=>ye,cleanup:ke,restoreFocus:Oe})})}});return()=>{ke(),Me()}},jm(Dh,4,`overlay`,Th,Mh,Oh),km(Dh,Mh),Mh.configure=Cu(Mh);var Nh=!0,Ph=!1,Fh,Ih,Lh=[V],Rh=Fp.Forward,zh,Bh,Vh;Ih=(Fh=[V],Fp.Reverse);var Hh=class{constructor(){Fm(this,Bh,Am(zh,8,this,Nh)),Am(zh,11,this),Fm(this,Vh,Am(zh,12,this,Nh)),Am(zh,15,this)}isLocked(e){return e===Fp.Idle?!1:e==null?this[Fp.Forward]===Nh&&this[Fp.Reverse]===Nh:this[e]===Nh}unlock(e){e!==Fp.Idle&&(this[e]=Ph)}};zh=Tm(null),Bh=new WeakMap,Vh=new WeakMap,jm(zh,4,Rh,Lh,Hh,Bh),jm(zh,4,Ih,Fh,Hh,Vh),km(zh,Hh);var Uh=[Fp.Forward,Fp.Reverse],Wh=class{constructor(){this.x=new Hh,this.y=new Hh}isLocked(){return this.x.isLocked()&&this.y.isLocked()}},Gh=class extends ku{constructor(e){super(e);let t=ac(new Wh),n=null;this.signal=t,hc(()=>{let{status:r}=e.dragOperation;if(!r.initialized){n=null,t.value=new Wh;return}let{delta:i}=e.dragOperation.position;if(n){let e={x:Kh(i.x,n.x),y:Kh(i.y,n.y)},r=t.peek();Ks(()=>{for(let t of Xl)for(let n of Uh)e[t]===n&&r[t].unlock(n);t.value=r})}n=i})}get current(){return this.signal.peek()}};function Kh(e,t){return Math.sign(e-t)}var qh,Jh,Yh,Xh,Zh,Qh,$h=class extends (Jh=Au,qh=[V],Jh){constructor(e){super(e),Fm(this,Xh,Am(Yh,8,this,!1)),Am(Yh,11,this),Fm(this,Zh),Fm(this,Qh,()=>{if(!Pm(this,Zh))return;let{element:e,by:t}=Pm(this,Zh);t.y&&(e.scrollTop+=t.y),t.x&&(e.scrollLeft+=t.x)}),this.scroll=(e,t)=>{if(this.disabled)return!1;let n=this.getScrollableElements();if(!n)return Im(this,Zh,void 0),!1;let{position:r}=this.manager.dragOperation,i=r?.current;if(i){let{by:r}=e??{},a=r?{x:eg(r.x),y:eg(r.y)}:void 0,o=a?void 0:this.scrollIntentTracker.current;if(o?.isLocked())return!1;for(let e of n){let n=Sp(e),s=wp(e,r,n);if(s.x||s.y){let{speed:s,direction:c}=Rp(e,i,a,t?.acceleration,t?.threshold,void 0,n);if(o)for(let e of Xl)o[e].isLocked(c[e])&&(s[e]=0,c[e]=0);if(c.x||c.y){let{x:t,y:n}=r??c,i=t*s.x,a=n*s.y;if(i||a){let t=Pm(this,Zh)?.by;if(this.autoScrolling&&t&&(t.x&&!i||t.y&&!a))continue;return Im(this,Zh,{element:e,by:{x:i,y:a}}),hp.schedule(Pm(this,Qh)),!0}}}}}return Im(this,Zh,void 0),!1};let t=null,n=null,r=Uc(()=>{let{position:n,source:r}=e.dragOperation;if(!n)return null;let i=Of(Cf(r?.element),n.current);return i&&(t=i),i??t}),i=Uc(()=>{let t=r.value,{documentElement:i}=ff(t);if(!t||t===i){let{target:t}=e.dragOperation,r=t?.element;if(r){let e=Op(r,{excludeElement:!1});return n=e,e}}if(t){let e=Op(t,{excludeElement:!1});return this.autoScrolling&&n&&e.size<n?.size?n:(n=e,e)}return n=null,null},Wc);this.getScrollableElements=()=>i.value,this.scrollIntentTracker=new Gh(e),this.destroy=e.monitor.addEventListener(`dragmove`,t=>{!this.disabled&&!t.defaultPrevented&&tm(e.dragOperation.activatorEvent)&&t.by&&this.scroll({by:t.by})&&t.preventDefault()})}};Yh=Tm(Jh),Xh=new WeakMap,Zh=new WeakMap,Qh=new WeakMap,jm(Yh,4,`autoScrolling`,qh,$h,Xh),km(Yh,$h);function eg(e){return e>0?Fp.Forward:e<0?Fp.Reverse:Fp.Idle}var tg=new class{constructor(e){this.scheduler=e,this.pending=!1,this.tasks=new Set,this.resolvers=new Set,this.flush=()=>{let{tasks:e,resolvers:t}=this;this.pending=!1,this.tasks=new Set,this.resolvers=new Set;for(let t of e)t();for(let e of t)e()}}schedule(e){return this.tasks.add(e),this.pending||(this.pending=!0,this.scheduler(this.flush)),new Promise(e=>this.resolvers.add(e))}}(e=>{typeof requestAnimationFrame==`function`?requestAnimationFrame(e):e()}),ng=10,rg=class extends ku{constructor(e,t){super(e,t);let n=e.registry.plugins.get($h);if(!n)throw Error(`AutoScroller plugin depends on Scroller plugin`);this.destroy=hc(()=>{if(this.disabled)return;let{position:t,status:r}=e.dragOperation;if(r.dragging){let e={acceleration:this.options?.acceleration,threshold:typeof this.options?.threshold==`number`?{x:this.options.threshold,y:this.options.threshold}:this.options?.threshold};if(n.scroll(void 0,e)){n.autoScrolling=!0;let t=setInterval(()=>tg.schedule(()=>n.scroll(void 0,e)),ng);return()=>{clearInterval(t)}}n.autoScrolling=!1}})}};rg.configure=Cu(rg);var ig=rg;function ag(e,t){let n=sg(e.key);return t.some(e=>sg(e)===n)}var og=new Set(`alt.altgraph.backspace.capslock.control.delete.end.enter.escape.home.insert.meta.pagedown.pageup.pause.printscreen.shift.space.tab.arrowdown.arrowleft.arrowright.arrowup.f1.f2.f3.f4.f5.f6.f7.f8.f9.f10.f11.f12`.split(`.`));function sg(e){if(e===` `||e===`Spacebar`)return`space`;if(/^Key[A-Z]$/.test(e))return e.slice(3).toLowerCase();if(/^Digit[0-9]$/.test(e))return e.slice(5);if(e.length===1)return e.toLowerCase();let t=e.toLowerCase();return og.has(t)?t:e}var cg=Object.freeze({offset:10,keyboardCodes:{start:[`Space`,`Enter`],cancel:[`Escape`],end:[`Space`,`Enter`,`Tab`],up:[`ArrowUp`],down:[`ArrowDown`],left:[`ArrowLeft`],right:[`ArrowRight`]},preventActivation(e,t){let n=t.handle??t.element;return e.target!==n}}),lg,ug=class extends Dd{constructor(e,t){super(e),this.manager=e,this.options=t,Fm(this,lg,[]),this.listeners=new Mf,this.handleSourceKeyDown=(e,t,n)=>{if(this.disabled||e.defaultPrevented||!em(e.target)||t.disabled)return;let{keyboardCodes:r=cg.keyboardCodes,preventActivation:i=cg.preventActivation}=n??{};ag(e,r.start)&&this.manager.dragOperation.status.idle&&(i?.(e,t)||this.handleStart(e,t,n))}}bind(e,t=this.options){return hc(()=>{let n=e.handle??e.element,r=n=>{tm(n)&&this.handleSourceKeyDown(n,e,t)};if(n)return n.addEventListener(`keydown`,r),()=>{n.removeEventListener(`keydown`,r)}})}handleStart(e,t,n){let{element:r}=t;if(!r)throw Error(`Source draggable does not have an associated element`);e.preventDefault(),e.stopImmediatePropagation(),zp(r);let{center:i}=new Xp(r);if(this.manager.actions.start({event:e,coordinates:{x:i.x,y:i.y},source:t}).signal.aborted)return this.cleanup();this.sideEffects();let a=ff(r),o=[this.listeners.bind(a,[{type:`keydown`,listener:e=>this.handleKeyDown(e,t,n),options:{capture:!0}}])];Pm(this,lg).push(...o)}handleKeyDown(e,t,n){let{keyboardCodes:r=cg.keyboardCodes}=n??{};if(ag(e,[...r.end,...r.cancel])){e.preventDefault();let t=ag(e,r.cancel);this.handleEnd(e,t)}else ag(e,r.up)?this.handleMove(`up`,e):ag(e,r.down)&&this.handleMove(`down`,e),ag(e,r.left)?this.handleMove(`left`,e):ag(e,r.right)&&this.handleMove(`right`,e)}handleEnd(e,t){this.manager.actions.stop({event:e,canceled:t}),this.cleanup()}handleMove(e,t){let{shape:n}=this.manager.dragOperation,r=t.shiftKey?5:1,i={x:0,y:0},a=this.options?.offset??cg.offset;if(typeof a==`number`&&(a={x:a,y:a}),n){switch(e){case`up`:i={x:0,y:-a.y*r};break;case`down`:i={x:0,y:a.y*r};break;case`left`:i={x:-a.x*r,y:0};break;case`right`:i={x:a.x*r,y:0}}(i.x||i.y)&&(t.preventDefault(),this.manager.actions.move({event:t,by:i}))}}sideEffects(){let e=this.manager.registry.plugins.get(ig);e?.disabled===!1&&(e.disable(),Pm(this,lg).push(()=>{e.enable()}))}cleanup(){Pm(this,lg).forEach(e=>e()),Im(this,lg,[])}destroy(){this.cleanup(),this.listeners.clear()}};lg=new WeakMap,ug.configure=Cu(ug),ug.defaults=cg;var dg,fg=class extends Ad{constructor(){super(...arguments),Fm(this,dg)}onEvent(e){switch(e.type){case`pointerdown`:Im(this,dg,_f(e));break;case`pointermove`:if(!Pm(this,dg))return;let{x:t,y:n}=_f(e),r={x:t-Pm(this,dg).x,y:n-Pm(this,dg).y},{tolerance:i}=this.options;if(i&&Jl(r,i)){this.abort();return}Jl(r,this.options.value)&&this.activate(e);break;case`pointerup`:this.abort()}}abort(){Im(this,dg,void 0)}};dg=new WeakMap;var pg,mg,hg=class extends Ad{constructor(){super(...arguments),Fm(this,pg),Fm(this,mg)}onEvent(e){switch(e.type){case`pointerdown`:Im(this,mg,_f(e)),Im(this,pg,setTimeout(()=>this.activate(e),this.options.value));break;case`pointermove`:if(!Pm(this,mg))return;let{x:t,y:n}=_f(e);Jl({x:t-Pm(this,mg).x,y:n-Pm(this,mg).y},this.options.tolerance)&&this.abort();break;case`pointerup`:this.abort()}}abort(){Pm(this,pg)&&(clearTimeout(Pm(this,pg)),Im(this,mg,void 0),Im(this,pg,void 0))}};pg=new WeakMap,mg=new WeakMap;var gg=class{};gg.Delay=hg,gg.Distance=fg;var _g=Object.freeze({activationConstraints(e,t){let{pointerType:n,target:r}=e;if(n!==`mouse`||!em(r)||t.handle!==r&&!t.handle?.contains(r))return n===`touch`?[new gg.Delay({value:250,tolerance:5})]:rm(r)&&!e.defaultPrevented?[new gg.Delay({value:200,tolerance:0})]:[new gg.Delay({value:200,tolerance:10}),new gg.Distance({value:5})]},preventActivation(e,t){let{target:n}=e;if(n===t.element||n===t.handle||!em(n)||t.handle?.contains(n))return!1;let r=jf(n);return r!==t.element&&!!r}}),vg,yg=class extends Dd{constructor(e,t){super(e),this.manager=e,this.options=t,Fm(this,vg,new Set),this.listeners=new Mf,this.latest={event:void 0,coordinates:void 0},this.handleMove=()=>{let{event:e,coordinates:t}=this.latest;e&&t&&this.manager.actions.move({event:e,to:t})},this.handleCancel=this.handleCancel.bind(this),this.handlePointerUp=this.handlePointerUp.bind(this),this.handleKeyDown=this.handleKeyDown.bind(this)}activationConstraints(e,t,n=this.options){let{activationConstraints:r=_g.activationConstraints}=n??{};return typeof r==`function`?r(e,t):r}bind(e,t=this.options){return hc(()=>{let n=new AbortController,{signal:r}=n,i=n=>{nm(n)&&this.handlePointerDown(n,e,t)},a=[e.handle??e.element];t?.activatorElements&&(a=Array.isArray(t.activatorElements)?t.activatorElements:t.activatorElements(e));for(let e of a)e&&(Tg(e.ownerDocument.defaultView),e.addEventListener(`pointerdown`,i,{signal:r}));return()=>n.abort()})}handlePointerDown(e,t,n){if(this.disabled||!e.isPrimary||e.button!==0||!em(e.target)||t.disabled||xg(e)||!this.manager.dragOperation.status.idle)return;let{preventActivation:r=_g.preventActivation}=n??{};if(r?.(e,t))return;let{target:i}=e,a=uf(i)&&i.draggable&&i.getAttribute(`draggable`)===`true`,o=kp(t.element),{x:s,y:c}=_f(e);this.initialCoordinates={x:s*o.scaleX+o.x,y:c*o.scaleY+o.y};let l=this.activationConstraints(e,t,n);e.sensor=this;let u=new Od(l,e=>this.handleStart(t,e));u.signal.onabort=()=>this.handleCancel(e),u.onEvent(e),this.controller=u;let{pointerId:d}=e,f=e=>t=>{t.pointerId===d&&e(t)},p=yf(),m=this.listeners.bind(p,[{type:`pointermove`,listener:f(e=>this.handlePointerMove(e,t))},{type:`pointerup`,listener:f(this.handlePointerUp),options:{capture:!0}},{type:`pointercancel`,listener:f(this.handleCancel)},{type:`dragstart`,listener:a?this.handleCancel:Sg,options:{capture:!0}}]);Pm(this,vg).add(()=>{m(),this.initialCoordinates=void 0})}handlePointerMove(e,t){var n;this.controller?.activated===!1&&((n=this.controller)==null||n.onEvent(e));let{status:r}=this.manager.dragOperation;if(r.initializing||r.dragging){let n=_f(e),i=kp(t.element);n.x=n.x*i.scaleX+i.x,n.y=n.y*i.scaleY+i.y,e.preventDefault(),e.stopPropagation(),this.latest.event=e,this.latest.coordinates=n,r.dragging&&hp.schedule(this.handleMove)}}handlePointerUp(e){let{status:t}=this.manager.dragOperation;if(!t.idle){e.preventDefault(),e.stopPropagation();let n=!t.initialized,r=ff(e.target),i=r.defaultView;if(!n&&i){let e=e=>{e.target===r.body&&e.detail>0&&(e.preventDefault(),e.stopImmediatePropagation())};i.addEventListener(`click`,e,!0),i.setTimeout(()=>{i.removeEventListener(`click`,e,!0)},0)}this.manager.actions.stop({event:e,canceled:n})}this.cleanup()}handleKeyDown(e){e.key===`Escape`&&(e.preventDefault(),this.handleCancel(e))}handleStart(e,t){let{manager:n,initialCoordinates:r}=this;if(!r||!n.dragOperation.status.idle||t.defaultPrevented)return;let i=n.actions.start({coordinates:r,event:t,source:e});if(i.signal.aborted)return this.cleanup();t.preventDefault();let a=ff(t.target).body;try{a.setPointerCapture(t.pointerId)}catch{this.handleCancel(t);return}let o=em(t.target)?[t.target,a]:a,s=this.listeners.bind(o,[{type:`touchmove`,listener:Sg,options:{passive:!1}},{type:`click`,listener:Sg},{type:`contextmenu`,listener:Sg},{type:`keydown`,listener:this.handleKeyDown}]);Pm(this,vg).add(s),n.renderer.rendering.then(()=>{!i.signal.aborted&&n.dragOperation.status.dragging&&hp.schedule(this.handleMove)})}handleCancel(e){let{dragOperation:t}=this.manager;t.status.initialized&&this.manager.actions.stop({event:e,canceled:!0}),this.cleanup()}cleanup(){let{controller:e}=this;this.controller=void 0,e&&!e.signal.aborted&&e.abort(),this.latest={event:void 0,coordinates:void 0},Pm(this,vg).forEach(e=>e()),Pm(this,vg).clear()}destroy(){this.cleanup(),this.listeners.clear()}};vg=new WeakMap,yg.configure=Cu(yg),yg.defaults=_g;var bg=yg;function xg(e){return`sensor`in e}function Sg(e){e.preventDefault()}function Cg(){}var wg=new WeakSet;function Tg(e){e&&!wg.has(e)&&(e.addEventListener(`touchmove`,Cg,{capture:!1,passive:!1}),wg.add(e))}var Eg,Dg,Og,kg,Ag,jg,Mg=class extends (Og=ed,Dg=[V],Eg=[V],Og){constructor(e,t){var n=e,{element:r,effects:i=()=>[],handle:a}=n,o=wm(n,[`element`,`effects`,`handle`]);super(xm({effects:()=>[...i(),()=>{let{manager:e}=this;if(!e)return;let t=(this.sensors?.map(wu)??[...e.sensors]).map(t=>{let n=t instanceof Dd?t:e.registry.register(t.plugin),r=t instanceof Dd?void 0:t.options;return n.bind(this,r)});return function(){t.forEach(e=>e())}}]},o),t),Fm(this,Ag,Am(kg,8,this)),Am(kg,11,this),Fm(this,jg,Am(kg,12,this)),Am(kg,15,this),this.element=r,this.handle=a}};kg=Tm(Og),Ag=new WeakMap,jg=new WeakMap,jm(kg,4,`handle`,Dg,Mg,Ag),jm(kg,4,`element`,Eg,Mg,jg),km(kg,Mg);var Ng,Pg,Fg,Ig,Lg,Rg,zg,Bg,Vg,Hg,Ug=class extends (Fg=md,Pg=[V],Ng=[V],Fg){constructor(e,t){var n=e,{element:r,effects:i=()=>[]}=n,a=wm(n,[`element`,`effects`]);let{collisionDetector:o=lm}=a,s=e=>{let{manager:t,element:n}=this;if(!n||e===null){this.shape=void 0;return}if(!t)return;let r=new Xp(n),i=Ys(()=>this.shape);return r&&i?.equals(r)?i:(this.shape=r,r)},c=ac(!1);super(Sm(xm({},a),{collisionDetector:o,effects:()=>[...i(),()=>{let{element:e,manager:t}=this;if(!t)return;let{dragOperation:n}=t,{source:r}=n;c.value=!!(r&&n.status.initialized&&e&&!this.disabled&&this.accepts(r))},()=>{let{element:e}=this;if(c.value&&e){let t=new dp(e,s);return()=>{t.disconnect(),this.shape=void 0}}},()=>{if(this.manager?.dragOperation.status.initialized)return()=>{this.shape=void 0}}]}),t),Fm(this,Vg),Fm(this,Lg,Am(Ig,8,this)),Am(Ig,11,this),Fm(this,Hg,Am(Ig,12,this)),Am(Ig,15,this),this.element=r,this.refreshShape=()=>s()}set element(e){Im(this,Vg,e,Bg)}get element(){return this.proxy??Pm(this,Vg,zg)}};Ig=Tm(Fg),Lg=new WeakMap,Vg=new WeakSet,Hg=new WeakMap,Rg=jm(Ig,20,`#element`,Pg,Vg,Lg),zg=Rg.get,Bg=Rg.set,jm(Ig,4,`proxy`,Ng,Ug,Hg),km(Ig,Ug);var Wg={Root:B(`shrink-0`,`animate-[hub-spin_var(--hub-duration-loop)_linear_infinite] motion-reduce:animate-none`)},Gg={sm:14,md:16,lg:20};function Kg({size:e=`md`,label:t,strokeWidth:n=1.8,className:r,...i}){let a=t===void 0&&i[`aria-label`]===void 0&&i[`aria-labelledby`]===void 0;return(0,R.jsx)(zs,{...i,size:Gg[e],strokeWidth:n,role:a?i.role:i.role??`status`,"aria-label":t??i[`aria-label`],"aria-hidden":a?i[`aria-hidden`]??!0:void 0,className:B(Wg.Root,r)})}var qg=`focus-visible:outline-1 focus-visible:outline-solid focus-visible:outline-hub-focus-ring`,Jg=`peer-focus-visible:outline-1 peer-focus-visible:outline-solid peer-focus-visible:outline-offset-2 peer-focus-visible:outline-hub-focus-ring`,Yg={Root:B(`inline-flex items-center justify-center gap-1.5`,`box-border select-none whitespace-nowrap rounded-full`,`border-(length:--hub-hairline) border-solid border-transparent`,`font-sans leading-[normal]`,`transition-colors duration-(--hub-duration-normal) motion-reduce:transition-none`,qg,`disabled:cursor-not-allowed disabled:opacity-50`,`data-loading:pointer-events-none data-loading:opacity-50`),variants:{primary:`bg-hub-primary-solid text-hub-primary-contrast shadow-hub-xs enabled:hover:bg-hub-primary-solid-hover focus-visible:outline-offset-2`,secondary:B(`relative bg-hub-bg-panel text-hub-fg-control focus-visible:outline-offset-0`,`enabled:hover:bg-hub-bg-hover`,`after:pointer-events-none after:absolute after:inset-0 after:rounded-[inherit]`,`after:shadow-hub-sm enabled:hover:after:shadow-hub-sm-hover`),ghost:`bg-transparent text-hub-fg-control enabled:hover:bg-hub-bg-hover focus-visible:outline-offset-0`,danger:`bg-hub-error-solid text-hub-error-contrast shadow-hub-xs enabled:hover:bg-hub-error-solid-hover focus-visible:outline-offset-2`,"danger-ghost":`bg-transparent text-hub-error-solid enabled:hover:bg-hub-error-solid/10 focus-visible:outline-offset-0`,link:`bg-transparent font-normal text-hub-fg-muted enabled:hover:text-hub-fg-title focus-visible:outline-offset-2`},sizes:{sm:`text-hub-sm`,md:`text-hub-sm`,lg:`text-hub-md`},frames:{sm:`h-6 px-2 font-medium`,md:`h-7 px-2.5 font-medium`,lg:`h-8 px-3 font-medium`},spinners:{sm:`size-3`,md:`size-3.25`,lg:`size-3.5`}};function Xg({variant:e=`primary`,size:t=`md`,type:n=`button`,icon:r,loading:i=!1,className:a,children:o,onClick:s,...c}){return(0,R.jsxs)(`button`,{...c,type:n,"aria-busy":i||c[`aria-busy`],"aria-disabled":i||c[`aria-disabled`],"data-loading":i||void 0,onClick:i?e=>e.preventDefault():s,className:B(Yg.Root,Yg.variants[e],Yg.sizes[t],e!==`link`&&Yg.frames[t],a),children:[i?(0,R.jsx)(Kg,{className:Yg.spinners[t]}):r,o]})}var Zg=`duration-(--hub-duration-fast) disabled:cursor-not-allowed disabled:opacity-50`,Qg={Root:B(`flex-none select-none place-items-center border-0 p-0 focus-visible:outline-offset-0`,`transition-colors motion-reduce:transition-none`,qg,`aria-pressed:bg-hub-bg-muted aria-pressed:text-hub-fg-title aria-pressed:shadow-[0_0_0_var(--hub-hairline)_var(--hub-border-emphasized)]`,`aria-pressed:enabled:hover:bg-hub-bg-muted aria-pressed:enabled:hover:text-hub-fg-title aria-pressed:enabled:active:bg-hub-bg-muted`,`aria-pressed:enabled:hover:shadow-[0_0_0_var(--hub-hairline)_var(--hub-border-emphasized)]`,`data-loading:pointer-events-none data-loading:opacity-50`),sizes:{xs:`size-4 [&_svg]:size-3`,sm:`size-6 [&_svg]:size-3.5`,md:B(`size-7 [&_svg]:size-3.5`,`[&_.lucide-search]:scale-90 [&_.lucide-list-filter]:scale-95 [&_.lucide-square-pen]:scale-97`,`[&_.lucide-settings-2]:scale-x-115 [&_.lucide-settings-2]:scale-y-95 [&_.lucide-panel-right]:scale-x-105 [&_.lucide-panel-right]:scale-y-90`),lg:`size-8 [&_svg]:size-4`},variants:{surface:B(`inline-grid rounded-full bg-hub-bg-panel text-hub-fg-muted shadow-hub-sm`,Zg,`enabled:hover:bg-hub-bg-hover enabled:hover:text-hub-fg-control enabled:hover:shadow-hub-sm-hover enabled:active:bg-hub-bg-emphasized`),ghost:B(`inline-grid rounded-full bg-transparent text-hub-fg-secondary`,Zg,`enabled:hover:bg-hub-bg-overlay-hover enabled:hover:text-hub-fg-title enabled:active:bg-hub-bg-muted`),inline:B(`relative inline-flex justify-center rounded-(--hub-radius-compact) bg-transparent align-[-2.5px] text-hub-fg-faint`,`duration-(--hub-duration-normal) disabled:cursor-default disabled:opacity-60`,`enabled:cursor-pointer enabled:hover:bg-hub-bg-muted enabled:hover:text-hub-fg-strong`,`before:absolute before:-inset-0.5 before:content-[""]`)}};function $g({className:e,size:t=`md`,type:n=`button`,variant:r=`surface`,pressed:i,loading:a=!1,children:o,onClick:s,...c}){return(0,R.jsx)(`button`,{...c,type:n,"aria-pressed":i,"aria-busy":a||c[`aria-busy`],"aria-disabled":a||c[`aria-disabled`],"data-loading":a||void 0,onClick:a?e=>e.preventDefault():s,className:B(Qg.Root,Qg.sizes[t],Qg.variants[r],e),children:a?(0,R.jsx)(Kg,{}):o})}var e_=B(`my-0 mx-[calc(var(--spacing,0.25rem)*-1.5-1px)]! box-border min-w-0`,`rounded-(--hub-radius-inner) border border-solid px-1.5 py-0.5`),t_=`col-start-1 row-start-1 min-h-0 min-w-0 whitespace-pre-wrap [overflow-wrap:anywhere]`;B(e_,`hub-inline-edit-row cursor-text border-transparent [overflow-wrap:anywhere]`),B(e_,`grid grid-rows-[minmax(0,1fr)] bg-transparent`),B(t_,`pointer-events-none invisible overflow-hidden`),B(t_,`m-0 block h-full w-full resize-none overflow-y-auto border-0 bg-transparent p-0 outline-none`,`placeholder:text-hub-fg-faint`);var n_={Root:`group/checkbox relative inline-flex size-3.5 flex-none align-middle`,Input:B(`peer absolute inset-0 z-(--hub-z-raised) m-0 size-full cursor-pointer opacity-0`,`disabled:cursor-default`),Surface:B(`pointer-events-none box-border grid size-full place-items-center rounded-hub-sm border border-solid`,`border-hub-border-strong bg-transparent text-hub-primary-contrast`,`transition-colors duration-(--hub-duration-fast) ease-out motion-reduce:transition-none`,`peer-checked:border-hub-primary-solid peer-checked:bg-hub-primary-solid`,`peer-indeterminate:border-hub-primary-solid peer-indeterminate:bg-hub-primary-solid`,`peer-[:enabled:hover]:border-hub-primary-solid-hover`,Jg,`peer-disabled:opacity-50`),Check:`hidden [grid-area:1/1] group-has-[:checked:not(:indeterminate)]/checkbox:block`,Mixed:`hidden [grid-area:1/1] group-has-[:indeterminate]/checkbox:block`};function r_({indeterminate:e=!1,className:t,ref:n,...r}){let i=(0,p.useRef)(null),a=(0,p.useCallback)(e=>{if(i.current=e,typeof n==`function`)return n(e);n&&(n.current=e)},[n]);return(0,p.useLayoutEffect)(()=>{i.current&&(i.current.indeterminate=e)},[e]),(0,R.jsxs)(`span`,{className:B(n_.Root,t),children:[(0,R.jsx)(`input`,{...r,ref:a,type:`checkbox`,className:n_.Input}),(0,R.jsxs)(`span`,{className:n_.Surface,"aria-hidden":`true`,children:[(0,R.jsx)(ks,{className:n_.Check,size:12,strokeWidth:2.5}),(0,R.jsx)(Vs,{className:n_.Mixed,size:12,strokeWidth:2.5})]})]})}var i_={Root:`pointer-events-none block flex-none`,orientations:{horizontal:`h-(--hub-hairline) w-full`,vertical:`w-(--hub-hairline) self-stretch`},tones:{default:`bg-hub-border`,subtle:`bg-hub-border-subtle`}};function a_(e,t,n,r){return t?{[e]:0,left:n,right:n,width:r??`auto`}:{[e]:0,top:n,bottom:n,height:r}}function o_(e,t,n){let r=n===void 0?{}:{alignSelf:`center`};if(!e)return{marginBlock:t,height:n,...r};let i=t?`calc(100% - ${t*2}px)`:void 0;return{marginInline:t,width:n??i,...r}}function s_({orientation:e=`horizontal`,tone:t=`default`,edge:n,inset:r=0,length:i,className:a,style:o,...s}){let c=n?n===`left`||n===`right`?`vertical`:`horizontal`:e,l=c===`horizontal`,u=n?a_(n,l,r,i):o_(l,r,i);return(0,R.jsx)(`span`,{...s,"aria-hidden":`true`,"data-divider":``,"data-orientation":c,"data-tone":t,"data-edge":n,className:B(i_.Root,i_.orientations[c],i_.tones[t],n&&`absolute`,a),style:{...u,...o}})}var c_=`pointer-events-none absolute inset-y-0 left-[calc((var(--hub-hit-area)_-_1px)_/_2)]`,l_={Root:B(`group/resize absolute z-(--hub-z-raised) w-(--hub-hit-area) touch-none select-none cursor-col-resize outline-none`),edges:{left:`left-[calc(var(--hub-hit-area)_/_-2)]`,right:`right-[calc(var(--hub-hit-area)_/_-2)]`},Line:B(c_,`[&]:bg-hub-border-control`),Feedback:B(c_,`w-px origin-left scale-x-50 overflow-hidden bg-hub-border-control opacity-0`,`[mask-image:linear-gradient(transparent,black_10%,black_90%,transparent)]`,`transition-opacity duration-(--hub-duration-slow) ease-in-out motion-reduce:transition-none`,`group-hover/resize:opacity-100 group-data-[dragging=true]/resize:opacity-100`,`group-focus-visible/resize:opacity-100`),Gradient:B(`absolute -top-1/2 left-0 h-[200%] w-full bg-hub-fg`,`[mask-image:linear-gradient(transparent_5%,black_40%,black_60%,transparent_95%)]`),DragShield:`fixed inset-0 z-(--hub-z-overlay) cursor-col-resize`};function u_({label:e,controls:t,value:n,min:r,max:i,defaultValue:a,step:o=16,showDivider:s=!0,inset:c=0,edge:l=`right`,onChange:u,className:d,style:f,...m}){let h=l===`right`?1:-1,g=(0,p.useRef)(void 0),_=(0,p.useRef)(null),v=e=>{let t=e.currentTarget.getBoundingClientRect();_.current&&(_.current.style.transform=`translateY(${e.clientY-t.top-t.height/2}px)`)},[y,b]=(0,p.useState)(!1),x=e=>u(Math.max(r,Math.min(i,e)));return(0,R.jsxs)(`div`,{...m,role:`separator`,"aria-label":e,"aria-controls":t,"aria-orientation":`vertical`,"aria-valuemin":r,"aria-valuemax":i,"aria-valuenow":n,tabIndex:0,className:B(l_.Root,l_.edges[l],d),style:{insetBlock:c,...f},"data-resize-handle":!0,"data-dragging":y,onDoubleClick:()=>{a!==void 0&&x(a)},onKeyDown:e=>{let t={Home:r,End:i,ArrowLeft:n-o*h,ArrowRight:n+o*h}[e.key];t!==void 0&&(e.preventDefault(),e.stopPropagation(),x(t))},onPointerEnter:v,onPointerDown:e=>{e.button===0&&e.isPrimary&&!g.current&&(e.preventDefault(),v(e),e.currentTarget.focus(),e.currentTarget.setPointerCapture(e.pointerId),g.current={pointerId:e.pointerId,x:e.clientX,width:n},b(!0))},onPointerMove:e=>{v(e);let t=g.current;t?.pointerId===e.pointerId&&x(t.width+(e.clientX-t.x)*h)},onPointerUp:e=>{g.current?.pointerId===e.pointerId&&(e.currentTarget.hasPointerCapture(e.pointerId)&&e.currentTarget.releasePointerCapture(e.pointerId),g.current=void 0,b(!1))},onLostPointerCapture:()=>{g.current=void 0,b(!1)},onPointerCancel:()=>{g.current=void 0,b(!1)},children:[s&&(0,R.jsx)(s_,{orientation:`vertical`,className:l_.Line}),(0,R.jsx)(`span`,{"aria-hidden":!0,className:l_.Feedback,children:(0,R.jsx)(`span`,{ref:_,className:l_.Gradient})}),y?(0,R.jsx)(`div`,{"aria-hidden":!0,className:l_.DragShield}):null]})}var d_={Viewport:B(`fixed bottom-6 right-6 z-(--hub-z-toast)`,`flex max-w-[calc(100vw_-_var(--hub-float-gutter)_*_2)] flex-col items-end gap-2`),Root:B(`max-w-full`,`animate-[hub-toast-in_var(--hub-duration-enter)_ease]`,`data-closing:pointer-events-none data-closing:animate-[hub-toast-out_var(--hub-duration-exit)_ease_forwards]`,`motion-reduce:animate-none motion-reduce:data-closing:animate-none`),Card:B(`relative box-border flex w-96 max-w-[min(100%,calc(100vw_-_var(--hub-float-gutter)_*_2))] items-start gap-2`,`rounded-hub-lg border-(length:--hub-hairline) border-solid border-transparent bg-hub-bg-panel p-3`,`after:pointer-events-none after:absolute after:inset-0 after:rounded-[inherit]`,`after:shadow-hub-md after:ring-(length:--hub-hairline) after:ring-hub-border-subtle`,`font-sans text-hub-md leading-4 text-hub-fg-muted antialiased`),icons:{info:B(`size-4 shrink-0 text-hub-fg-muted [&_circle]:fill-current`,`[&_path]:stroke-hub-bg-panel [&_line]:stroke-hub-bg-panel`),success:B(`grid size-4 shrink-0 place-items-center rounded-full`,`bg-hub-success-solid text-hub-success-contrast`),error:`size-4 shrink-0 text-hub-error-solid`},Content:`min-w-0 flex-1 break-words`,Message:`font-medium leading-[normal] text-hub-fg-title`,Description:`mt-2 line-clamp-2 leading-5 text-hub-fg-muted`,Action:B(`mt-3 block cursor-pointer border-0 bg-transparent p-0`,`font-sans text-hub-md leading-5 text-hub-primary-solid`,`enabled:hover:underline`,qg,`disabled:cursor-not-allowed disabled:opacity-50`),Close:`-m-1 enabled:hover:bg-hub-bg-hover-subtle enabled:hover:text-hub-fg-control`};function f_(e,t){return getComputedStyle(e).getPropertyValue(t).trim()}function p_(e,t){return parseFloat(f_(e,t))}function m_(e,t){let n=f_(e,t);return(n.endsWith(`ms`)?parseFloat(n):parseFloat(n)*1e3)||0}var h_=()=>matchMedia(`(prefers-reduced-motion: reduce)`).matches;function g_({message:e,description:t,variant:n=`info`,action:r,duration:i=n===`error`?8e3:4e3,revision:a=0,closeLabel:o,onDismiss:s,className:c,onMouseEnter:l,onMouseLeave:u,onFocus:d,onBlur:f,...m}){let h=(0,p.useRef)(null),g=(0,p.useRef)(a),_=(0,p.useRef)(s);_.current=s;let[v,y]=(0,p.useState)(!1),[b,x]=(0,p.useState)(!1),[S,C]=(0,p.useState)(!1),[w,T]=(0,p.useState)(!1),E=v||b;(0,p.useEffect)(()=>{if(g.current===a)return;g.current=a,T(!1);let e=h.current;if(!e||h_())return;let t=e.animate([{transform:`scale(1)`,easing:`ease-out`,offset:0},{transform:`scale(1.05)`,easing:`linear`,offset:.125},{transform:`scale(1.05)`,easing:`ease-in-out`,offset:.25},{transform:`scale(1)`,offset:1}],{duration:m_(e,`--hub-duration-emphasis`)});return()=>t.cancel()},[a]),(0,p.useEffect)(()=>{if(!i||E||S)return;let e=setTimeout(()=>T(!0),i);return()=>clearTimeout(e)},[i,a,E,S]),(0,p.useEffect)(()=>{if(!w)return;let e=!1,t=h.current?.parentElement?.getAnimations()??[];return Promise.allSettled(t.map(e=>e.finished)).then(()=>{e||_.current()}),()=>{e=!0}},[w]);let D=async()=>{if(!S&&r){C(!0);try{await r.onClick(),T(!0)}finally{C(!1)}}};return(0,R.jsx)(`div`,{...m,className:B(d_.Root,c),"data-closing":w||void 0,onMouseEnter:e=>{y(!0),l?.(e)},onMouseLeave:e=>{y(!1),u?.(e)},onFocus:e=>{x(!0),d?.(e)},onBlur:e=>{e.currentTarget.contains(e.relatedTarget)||x(!1),f?.(e)},children:(0,R.jsxs)(`div`,{ref:h,className:d_.Card,"data-variant":n,"data-expanded":!!(t||r)||void 0,children:[(0,R.jsx)(`span`,{className:d_.icons[n],children:n===`success`?(0,R.jsx)(ks,{size:11,strokeWidth:3,"aria-hidden":!0}):n===`error`?(0,R.jsx)(Fs,{size:16,"aria-hidden":!0}):(0,R.jsx)(Ls,{size:16,"aria-hidden":!0})}),(0,R.jsxs)(`div`,{className:d_.Content,children:[(0,R.jsx)(`div`,{role:n===`error`?`alert`:`status`,"aria-atomic":`true`,className:d_.Message,children:e}),t&&(0,R.jsx)(`div`,{className:d_.Description,children:t}),r&&(0,R.jsx)(`button`,{type:`button`,className:d_.Action,disabled:S,onClick:()=>void D(),children:r.label})]}),(0,R.jsx)($g,{variant:`ghost`,size:`sm`,className:d_.Close,"aria-label":o,disabled:S,onClick:()=>T(!0),children:(0,R.jsx)(Us,{"aria-hidden":!0})})]})})}function __({store:e,closeLabel:t,className:n,...r}){let i=(0,p.useSyncExternalStore)(e.subscribe,e.getSnapshot,e.getSnapshot);return i.length===0?null:(0,R.jsx)(`div`,{role:`region`,...r,className:B(d_.Viewport,n),children:i.map(({id:n,options:{onClose:r,...i},revision:a})=>(0,R.jsx)(g_,{...i,revision:a,closeLabel:t,onDismiss:()=>e.dismiss(n)},n))})}var v_=(e,t)=>e.message===t.message&&e.description===t.description&&(e.variant??`info`)===(t.variant??`info`)&&!e.action&&!t.action,y_=class{items=[];listeners=new Set;max;nextId=0;constructor(e={}){this.max=Math.max(1,e.max??1)}subscribe=e=>(this.listeners.add(e),()=>{this.listeners.delete(e)});getSnapshot=()=>this.items;show(e){let t=this.items.find(t=>v_(t.options,e));if(t)return this.commit(this.items.map(n=>n===t?{...n,options:e,revision:n.revision+1}:n)),t.id;let n=`toast-${++this.nextId}`;return this.commit([...this.items,{id:n,options:e,revision:0}].slice(-this.max)),n}dismiss(e){let t=e===void 0?[]:this.items.filter(t=>t.id!==e);t.length!==this.items.length&&this.commit(t)}commit(e){let t=this.items.filter(t=>!e.some(({id:e})=>e===t.id));this.items=e;for(let e of[...this.listeners])e();for(let e of t)e.options.onClose?.()}};function b_(e){return{gutter:p_(e,`--hub-menu-gutter`),maxHeight:p_(e,`--hub-menu-max-height`),affordance:p_(e,`--hub-scroll-affordance`)}}function x_({placement:e=`auto`,trigger:t,viewport:n,metrics:r,panelWidth:i,borderHeight:a,contentHeight:o,row:s}){let{gutter:c,maxHeight:l,affordance:u}=r,d=s?.height??t.height,f=s?.top??0,p=Math.min(Math.max(t.width,i),n.width-c*2),m=Math.max(c,Math.min(t.left,n.width-p-c)),h=t.top+t.height/2,g=f+d/2,_=h-g,v=Math.min(o,l,n.height-c*2);if(e===`bottom`){let e=Math.max(0,Math.min(v,n.height-t.bottom-c-a));return{placement:`below`,top:t.bottom,left:m,width:p,maxHeight:e,scrollTop:Math.max(0,g-e/2)}}if(h-c>=u+d/2&&n.height-c-h>=u+d/2){let e=Math.max(c,_),t=Math.min(v,o-Math.max(0,e-_)),r=Math.min(t,n.height-c-e),i=s?.hasNext?u:o-(f+d);return h-e>r-i-d/2&&(e=h-r+i+d/2),{placement:`aligned`,top:e,left:m,width:p,maxHeight:Math.max(d,r),scrollTop:Math.max(0,g-(h-e))}}let y=n.height-t.bottom-c,b=t.top-c,x=y>=v||y>=b,S=Math.min(v,x?y:b),C=Math.max(d,S),w=x?t.bottom:t.top-Math.min(o,C)-a;return{placement:x?`below`:`above`,top:w,left:m,width:p,maxHeight:C,scrollTop:Math.max(0,g-S/2)}}var S_={Root:`inline-flex min-w-0 align-middle`,Trigger:B(`relative inline-flex min-w-0 items-center gap-2 box-border cursor-default`,`rounded-(--hub-radius-md) border-(length:--hub-hairline) border-solid border-transparent shadow-hub-sm`,`bg-hub-bg-panel text-hub-fg-control font-sans font-normal`,`px-2.5 outline-none focus-visible:outline-offset-0 enabled:hover:bg-hub-bg-hover enabled:hover:shadow-none aria-expanded:bg-hub-bg-muted`,`after:pointer-events-none after:absolute after:inset-0 after:rounded-[inherit] enabled:hover:after:shadow-hub-sm-hover`,`disabled:opacity-50 disabled:pointer-events-none`,qg),Size:{small:`h-(--hub-control-height-sm) text-hub-sm`,default:`h-(--hub-control-height-md) text-hub-md`},Font:{small:`text-hub-sm`,default:`text-hub-md`},Row:{small:`h-(--hub-control-height-sm)`,default:`h-(--hub-row-height-md)`},Label:`min-w-0 flex-1 truncate text-left`,Icon:`inline-flex shrink-0 items-center justify-center`,Chevron:B(`pointer-events-none h-2 w-2.5 shrink-0 scale-180 text-hub-fg-muted`,`[&>path]:origin-center [&>path]:scale-x-90 [&>path]:scale-y-80 [&>path]:stroke-[3.5]`),Check:`size-4 shrink-0 text-hub-fg-muted`,Popup:B(`fixed inset-auto m-0 p-0 box-border w-max max-w-[calc(100vw-var(--hub-menu-gutter)*2)]`,`overflow-hidden rounded-hub-lg border-0 bg-hub-bg-panel text-hub-fg-control outline-none`,`ring-(length:--hub-hairline) ring-hub-border-control shadow-hub-md`,`font-sans font-normal`),List:`relative box-border overflow-y-auto overscroll-contain p-1 [scrollbar-width:none] [&::-webkit-scrollbar]:hidden`,Option:B(`relative flex box-border cursor-default items-center gap-2 px-2 aria-[selected=false]:pe-8 rounded-(--hub-radius-md)`,`whitespace-nowrap outline-none data-active:bg-hub-bg-hover aria-disabled:opacity-40`,`[&>.lucide-check>path]:origin-center [&>.lucide-check>path]:scale-x-80 [&>.lucide-check>path]:scale-y-89 [&>.lucide-check>path]:translate-y-px`,`[&>.lucide-check>path]:[vector-effect:non-scaling-stroke] [&>.lucide-check>path]:stroke-[1.5]`),Scroll:B(`absolute inset-x-0 z-(--hub-z-raised) flex h-(--hub-scroll-affordance) items-center justify-center`,`cursor-default text-hub-fg-muted backdrop-blur-sm`),ScrollTop:`top-0 bg-linear-to-b from-hub-bg-panel via-hub-bg-panel/90 to-hub-bg-panel/50`,ScrollBottom:`bottom-0 bg-linear-to-t from-hub-bg-panel via-hub-bg-panel/90 to-hub-bg-panel/50`},C_=e=>e.scrollTop<=1,w_=e=>e.scrollTop+e.clientHeight>=e.scrollHeight-1;function T_(e){let[t,n]=(0,p.useState)({top:!1,bottom:!1}),r=(0,p.useRef)(void 0),i=()=>{let t=e.current;if(!t)return;let r=!C_(t),i=!w_(t);n(e=>e.top===r&&e.bottom===i?e:{top:r,bottom:i})},a=()=>{clearInterval(r.current),r.current=void 0};return(0,p.useEffect)(()=>a,[]),{edges:t,update:i,start:t=>{a();let n=t===`top`?-1:1;r.current=setInterval(()=>{let t=e.current;t?(t.scrollBy({top:n*4}),(n<0?t.scrollTop<=0:w_(t))&&a()):a()},16)},stop:a}}function E_({value:e,defaultValue:t,onValueChange:n,trigger:r,form:i}){let[a,o]=(0,p.useState)(t??``),s=e!==void 0,c=e??a;return(0,p.useEffect)(()=>{let e=r.current?.form;if(!e||s)return;let n=new Set,i=e=>{let r=setTimeout(()=>{n.delete(r),e.defaultPrevented||o(t??``)});n.add(r)};return e.addEventListener(`reset`,i),()=>{e.removeEventListener(`reset`,i),n.forEach(clearTimeout)}},[s,t,i,r]),{current:c,commit:e=>{s||o(e),e!==c&&n?.(e)}}}var D_=new Set([`ArrowDown`,`ArrowUp`,`Enter`,` `]),O_=new Set([`ArrowDown`,`ArrowUp`,`Home`,`End`,`Enter`,` `,`Escape`]),k_=[{side:`top`,className:S_.ScrollTop,Icon:Ns},{side:`bottom`,className:S_.ScrollBottom,Icon:js}];function A_({icon:e,label:t}){return(0,R.jsxs)(R.Fragment,{children:[e&&(0,R.jsx)(`span`,{className:S_.Icon,children:e}),(0,R.jsx)(`span`,{className:S_.Label,children:t})]})}function j_({options:e,value:t,defaultValue:n,onValueChange:r,size:i=`default`,placement:a=`auto`,placeholder:o=`请选择`,name:s,disabled:c,className:l,onKeyDown:u,onClick:d,...f}){let m=(0,p.useRef)(null),h=(0,p.useRef)(null),g=(0,p.useRef)(null),_=(0,p.useRef)(void 0),{current:v,commit:y}=E_({value:t,defaultValue:n,onValueChange:r,trigger:m,form:f.form}),b=T_(g),[x,S]=(0,p.useState)(!1),[C,w]=(0,p.useState)(-1),T=(0,p.useId)(),E=e.findIndex(e=>e.value===v),D=e[E],O=c||!e.length,k=e.map((e,t)=>e.disabled?-1:t).filter(e=>e>=0),A=e.map(e=>[e.value,e.label,+!!e.disabled].join(`\0`)).join(``),j=()=>{b.stop(),S(!1)},M=(e=!0)=>{j(),h.current?.matches(`:popover-open`)&&h.current.hidePopover(),e&&m.current?.focus({preventScroll:!0})},ee=t=>{let n=e[t];n&&!n.disabled&&(y(n.value),M())},N=e=>{w(e);let t=g.current,n=t?.children[e];if(!t||!n)return;let r=_.current?.affordance??0,i=n.offsetTop;i<t.scrollTop+r?t.scrollTop=Math.max(0,i-r):i+n.offsetHeight>t.scrollTop+t.clientHeight-r&&(t.scrollTop=i+n.offsetHeight-t.clientHeight+r),b.update()},P=e=>{let{key:t}=e;if(!x)D_.has(t)&&(e.preventDefault(),S(!0));else if(t===`Tab`)M();else if(O_.has(t)){if(e.preventDefault(),e.stopPropagation(),t===`Escape`)M();else if(t===`Enter`||t===` `)ee(C);else if(t===`Home`)N(k[0]??-1);else if(t===`End`)N(k.at(-1)??-1);else{let e=k.indexOf(C)+(t===`ArrowDown`?1:-1);N(k[Math.max(0,Math.min(k.length-1,e))]??-1)}}},F=e=>{d?.(e),!e.defaultPrevented&&(x?M():S(!0))},te=e=>{u?.(e),e.defaultPrevented||P(e)},ne=e=>{e.newState===`closed`&&j()};return(0,p.useLayoutEffect)(()=>{if(!x||O)return;let e=h.current,t=g.current;e.showPopover(),e.style.visibility=`hidden`,e.style.width=``,t.style.maxHeight=``,t.scrollTop=0;let n=D&&!D.disabled?E:k[0]??-1;w(n),_.current=b_(e);let r=t.children[Math.max(0,n)],i=e.getBoundingClientRect(),o=x_({placement:a,trigger:m.current.getBoundingClientRect(),viewport:{width:window.innerWidth,height:window.innerHeight},metrics:_.current,panelWidth:i.width,borderHeight:i.height-t.getBoundingClientRect().height,contentHeight:t.scrollHeight,row:r&&{top:r.offsetTop,height:r.offsetHeight,hasNext:!!r.nextElementSibling}});return e.dataset.placement=o.placement,e.style.top=`${o.top}px`,e.style.left=`${o.left}px`,e.style.width=`${o.width}px`,t.style.maxHeight=`${o.maxHeight}px`,t.scrollTop=o.scrollTop,e.style.visibility=``,e.focus({preventScroll:!0}),b.update(),b.stop},[x,O,A,a]),(0,p.useEffect)(()=>{if(!x||O)return;let e=h.current,t=()=>M(!1),n=n=>{e.contains(n.target)||t()};return window.addEventListener(`resize`,t),window.addEventListener(`scroll`,n,!0),()=>{window.removeEventListener(`resize`,t),window.removeEventListener(`scroll`,n,!0)}},[x,O]),(0,p.useEffect)(()=>{O&&M(!1)},[O]),(0,R.jsxs)(`span`,{className:S_.Root,children:[s&&(0,R.jsx)(`input`,{type:`hidden`,name:s,form:f.form,value:v,disabled:O}),(0,R.jsxs)(`button`,{...f,ref:m,type:`button`,role:`combobox`,"aria-haspopup":`listbox`,"aria-expanded":x,"aria-controls":T,disabled:O,className:B(S_.Trigger,S_.Size[i],l),"data-size":i,onClick:F,onKeyDown:te,children:[(0,R.jsx)(A_,{icon:D?.icon,label:D?.label??o}),(0,R.jsx)(js,{className:S_.Chevron,"aria-hidden":`true`})]}),(0,R.jsxs)(`div`,{ref:h,popover:`auto`,id:T,role:`listbox`,tabIndex:-1,"aria-label":f[`aria-label`],"aria-labelledby":f[`aria-labelledby`],"aria-activedescendant":C>=0?`${T}-${C}`:void 0,className:B(S_.Popup,S_.Font[i]),"data-size":i,onKeyDown:P,onToggle:ne,children:[(0,R.jsx)(`div`,{ref:g,className:S_.List,onScroll:b.update,children:e.map((e,t)=>(0,R.jsxs)(`div`,{id:`${T}-${t}`,role:`option`,"aria-selected":v===e.value,"aria-disabled":e.disabled||void 0,"data-active":C===t||void 0,"data-value":e.value,className:B(S_.Option,S_.Row[i]),onPointerMove:n=>{(n.movementX||n.movementY)&&w(e.disabled?-1:t)},onClick:()=>ee(t),children:[(0,R.jsx)(A_,{icon:e.icon,label:e.label}),v===e.value&&(0,R.jsx)(ks,{className:S_.Check,"aria-hidden":`true`})]},e.value))}),k_.map(({side:e,className:t,Icon:n})=>b.edges[e]&&(0,R.jsx)(`div`,{"aria-hidden":`true`,className:B(S_.Scroll,t),onPointerEnter:()=>b.start(e),onPointerLeave:b.stop,onPointerDown:e=>e.preventDefault(),children:(0,R.jsx)(n,{className:S_.Check})},e))]})]})}var M_=[`Control`,`Alt`,`Shift`,`Meta`],N_={"⌘":`meta`,cmd:`meta`,command:`meta`,meta:`meta`,ctrl:`control`,control:`control`,"⌃":`control`,alt:`alt`,option:`alt`,"⌥":`alt`,shift:`shift`,"⇧":`shift`,esc:`escape`,escape:`escape`,enter:`enter`,return:`enter`,"↵":`enter`,space:` `,spacebar:` `,"␣":` `,"↑":`arrowup`,"↓":`arrowdown`,"←":`arrowleft`,"→":`arrowright`},P_=new Set([`process`,`dead`,`unidentified`]);function F_(e){let t=e.toLowerCase();return N_[t.trim()]??t}var I_=class{coordinator;host;hover=!1;popupHover=!1;focus=!1;shortcut=!1;disabled=!1;openTimer;closeTimer;constructor(e,t){this.coordinator=e,this.host=t}get wanted(){return!this.disabled&&(this.hover||this.popupHover||this.focus)}delay(e){let t=this.host.trigger();return t?m_(t,e):0}clearClose(){window.clearTimeout(this.closeTimer),this.closeTimer=void 0}enter(){this.hover=!0,this.coordinator.request(this,!1)}leave(){this.hover=!1,this.coordinator.release(this,!0)}popupEnter(){this.popupHover=!0,this.coordinator.request(this,!1)}popupLeave(){this.popupHover=!1,this.coordinator.release(this,!0)}focusIn(){this.focus=!0,this.coordinator.request(this,!0)}focusOut(){this.focus=!1,this.coordinator.release(this,!1)}dismiss(){this.coordinator.dismiss(this)}setDisabled(e){this.disabled=e,e&&this.dismiss()}setShortcut(e){this.shortcut!==e&&(this.shortcut=e,this.coordinator.countShortcut(e?1:-1))}isPressed(e){return this.coordinator.isPressed(e)}dispose(){this.coordinator.unregister(this)}},L_=class{document;onEmpty;handles=new Set;visible=null;pending=null;skipUntil=0;shortcuts=0;modifiers=new Set;keys=new Map;composing=!1;constructor(e,t){this.document=e,this.onEmpty=t}register(e){let t=new I_(this,e);return this.handles.size||this.listen(!0),this.handles.add(t),t}unregister(e){this.handles.delete(e)&&(this.dismiss(e),e.setShortcut(!1),!this.handles.size&&(this.listen(!1),this.skipUntil=0,this.onEmpty()))}request(e,t){e.wanted&&(this.visible===e?e.clearClose():t||this.visible||performance.now()<this.skipUntil?this.show(e):this.pending!==e&&(this.cancelPending(),this.pending=e,e.openTimer=window.setTimeout(()=>{this.pending===e&&(this.pending=null,this.handles.has(e)&&e.wanted&&this.show(e))},e.delay(`--hub-delay-open`))))}release(e,t){e.wanted||(this.pending===e&&this.cancelPending(),this.visible===e&&(e.clearClose(),t?e.closeTimer=window.setTimeout(()=>{e.wanted||this.hide(e)},e.delay(`--hub-duration-fast`)):this.hide(e)))}dismiss(e){e.hover=e.popupHover=e.focus=!1,this.pending===e&&this.cancelPending(),this.hide(e)}countShortcut(e){this.shortcuts+=e,this.shortcuts||this.clearKeys()}isPressed(e){let t=F_(e);if(this.modifiers.has(t))return!0;for(let e of this.keys.values())if(e===t)return!0;return!1}show(e){this.cancelPending();let t=this.visible;t!==e&&(this.visible=e,t&&(t.clearClose(),t.host.onOpenChange(!1)),e.host.onOpenChange(!0))}hide(e){e.clearClose(),this.visible===e&&(this.visible=null,this.skipUntil=performance.now()+e.delay(`--hub-delay-skip`),e.host.onOpenChange(!1))}cancelPending(){this.pending&&=(window.clearTimeout(this.pending.openTimer),null)}dismissAll(){this.pending&&this.dismiss(this.pending),this.visible&&this.dismiss(this.visible)}keyState(){return[...this.modifiers,``,...this.keys.values()].join(`\0`)}clearKeys(){(this.modifiers.size||this.keys.size)&&(this.modifiers.clear(),this.keys.clear(),this.visible?.host.onKeysChange())}onKey=e=>{if(!this.shortcuts)return;let t=this.keyState(),n=e.type===`keydown`,r=e.key.toLowerCase(),i=new Set;for(let t of M_)e.getModifierState(t)&&i.add(t.toLowerCase());let a=M_.some(e=>e.toLowerCase()===r);n&&a&&i.add(r),this.modifiers=i;let o=e.code||r;n?a||this.composing||e.isComposing||P_.has(r)||this.keys.set(o,r):(this.keys.delete(o),r===`meta`&&this.keys.clear()),this.keyState()!==t&&this.visible?.host.onKeysChange()};onComposition=e=>{this.composing=e.type===`compositionstart`,this.composing&&this.keys.size&&(this.keys.clear(),this.visible?.host.onKeysChange())};onScroll=e=>{let t=e.target;for(let e of new Set([this.pending,this.visible])){let n=e?.host.trigger();e&&n&&t.contains(n)&&(e===this.visible&&e.focus&&e.host.reposition()||this.dismiss(e))}};onResize=()=>this.dismissAll();onInactive=e=>{e.type===`visibilitychange`&&!this.document.hidden||e.type===`blur`&&e.target!==this.document.defaultView||(this.dismissAll(),this.skipUntil=0,this.composing=!1,this.clearKeys())};listen(e){let t=this.document.defaultView,n=(t,n,r)=>{e?t?.addEventListener(n,r,!0):t?.removeEventListener(n,r,!0)};n(this.document,`keydown`,this.onKey),n(this.document,`keyup`,this.onKey),n(this.document,`compositionstart`,this.onComposition),n(this.document,`compositionend`,this.onComposition),n(this.document,`visibilitychange`,this.onInactive),n(t,`blur`,this.onInactive),n(t,`resize`,this.onResize),n(t,`scroll`,this.onScroll),e||this.clearKeys()}},R_=new WeakMap;function z_(e,t){let n=R_.get(e);return n||(n=new L_(e,()=>R_.delete(e)),R_.set(e,n)),n.register(t)}var B_={top:`bottom`,bottom:`top`,left:`right`,right:`left`};function V_(e,t,n){return Math.round(n<t?t:Math.max(t,Math.min(e,n)))}function H_({trigger:e,panel:t,offset:n,gutter:r,viewport:i,side:a,align:o,rtl:s}){let c={top:e.top-r,bottom:i.height-e.bottom-r,left:e.left-r,right:i.width-e.right-r},l=a===`top`||a===`bottom`,u=(l?t.height:t.width)+n,d=B_[a],f=c[a]<u&&c[d]>c[a]?d:a,p=f===`top`?e.top-n-t.height:f===`bottom`?e.bottom+n:f===`left`?e.left-n-t.width:e.right+n,m=l?e.left:e.top,h=l?e.width:e.height,g=l?t.width:t.height,_=l&&s&&o!==`center`?o===`start`?`end`:`start`:o,v=_===`start`?m:_===`end`?m+h-g:m+(h-g)/2;return{side:f,top:V_(l?p:v,r,i.height-t.height-r),left:V_(l?v:p,r,i.width-t.width-r)}}function U_({trigger:e,panel:t,margin:n,viewport:r,side:i,align:a,rtl:o}){let s=H_({trigger:e,panel:t,offset:n,gutter:n,viewport:r,side:i,align:a,rtl:o});return{side:s.side,top:s.top-n,left:s.left-n}}var W_={Popup:B(`fixed inset-auto m-1.5 box-border w-max border-(length:--hub-hairline) border-solid border-hub-border-panel px-2 py-1.25`,`max-w-[min(var(--hub-float-width),calc(100vw-var(--hub-float-gutter)))]`,`max-h-[calc(100vh-var(--hub-float-gutter))] overflow-x-hidden overflow-y-auto overscroll-contain`,`open:inline-flex items-center-safe gap-2`,`rounded-(--hub-radius-md) bg-hub-bg-panel text-hub-fg-control shadow-hub-xs`,`font-sans font-[450] text-hub-xs leading-normal text-left`,`transition-opacity duration-(--hub-duration-fast) starting:opacity-0 motion-reduce:transition-none`),Content:`min-w-0 whitespace-normal wrap-anywhere`,Keys:`-mr-0.5 inline-flex shrink-0 items-center gap-0.5`,Kbd:B(`inline-flex min-w-4.5 box-border items-center justify-center p-0.5`,`rounded-(--hub-radius-compact) border-(length:--hub-hairline) border-solid border-hub-border-panel`,`bg-transparent text-hub-fg-muted font-sans text-hub-xs font-normal leading-[1.1]`,`transition-colors duration-(--hub-duration-fast) motion-reduce:transition-none`,`data-pressed:bg-hub-bg-emphasized`)};function G_(e,t){return n=>{e?.(n),t(n)}}function K_(e,t,n){let r=Math.max(t.top,0),i=Math.max(t.left,0),a=Math.min(t.bottom,n.height),o=Math.min(t.right,n.width);for(let t=e;t&&t!==e.ownerDocument.documentElement;t=t.parentElement){if(t!==e){let{overflowX:e,overflowY:n}=getComputedStyle(t);if(e!==`visible`||n!==`visible`){let s=t.getBoundingClientRect();n!==`visible`&&(r=Math.max(r,s.top),a=Math.min(a,s.bottom)),e!==`visible`&&(i=Math.max(i,s.left),o=Math.min(o,s.right))}}if(t.matches(`:popover-open, :modal, :fullscreen`))break}return a>r&&o>i}function q_({children:e,content:t,shortcut:n,side:r=`bottom`,align:i=`center`,disabled:a=!1}){let o=(0,p.useRef)(null),s=(0,p.useRef)(null),c=(0,p.useRef)(null),l=(0,p.useRef)(!1),u=(0,p.useRef)(()=>!1),[d,f]=(0,p.useState)(!1),[,m]=(0,p.useState)(0),h=(0,p.useId)(),g=e,_=g.props,v=n?.length?n:void 0,y=_.ref,b=(0,p.useCallback)(e=>{if(o.current=e,typeof y==`function`){let t=y(e);if(typeof t==`function`)return()=>{o.current=null,t()}}else y&&(y.current=e)},[y]);(0,p.useLayoutEffect)(()=>{u.current=()=>{let e=o.current,t=s.current;if(!e||!t)return!1;let n=e.ownerDocument.documentElement,a={width:n.clientWidth,height:n.clientHeight},c=e.getBoundingClientRect(),l=getComputedStyle(t),u=U_({trigger:c,panel:t.getBoundingClientRect(),margin:parseFloat(l.marginTop)||0,viewport:a,side:r,align:i,rtl:l.direction===`rtl`});return t.dataset.side=u.side,t.style.top=`${u.top}px`,t.style.left=`${u.left}px`,K_(e,c,a)}}),(0,p.useLayoutEffect)(()=>{let e=o.current;if(!e)return;let t=z_(e.ownerDocument,{trigger:()=>o.current,onOpenChange:f,onKeysChange:()=>m(e=>e+1),reposition:()=>u.current()});return c.current=t,()=>{c.current=null,t.dispose()}},[]),(0,p.useLayoutEffect)(()=>{c.current?.setShortcut(!!v)},[!!v]),(0,p.useLayoutEffect)(()=>{c.current?.setDisabled(a)},[a]),(0,p.useLayoutEffect)(()=>{let e=s.current;if(!d||!e)return;e.showPopover(),u.current();let t=new ResizeObserver(()=>u.current());return t.observe(e),()=>{t.disconnect(),e.matches(`:popover-open`)&&e.hidePopover()}},[d]),(0,p.useLayoutEffect)(()=>{d&&u.current()},[r,i]);let x=a?_[`aria-describedby`]:[...new Set([..._[`aria-describedby`]?.split(/\s+/).filter(Boolean)??[],h])].join(` `),S=()=>{l.current=!1};return(0,R.jsxs)(R.Fragment,{children:[(0,p.cloneElement)(g,{ref:b,"aria-describedby":x,onPointerEnter:G_(_.onPointerEnter,e=>{e.pointerType!==`touch`&&c.current?.enter()}),onPointerLeave:G_(_.onPointerLeave,()=>{S(),c.current?.leave()}),onPointerDown:G_(_.onPointerDown,()=>{l.current=!0}),onPointerUp:G_(_.onPointerUp,S),onPointerCancel:G_(_.onPointerCancel,S),onFocus:G_(_.onFocus,e=>{!l.current&&e.target.matches(`:focus-visible`)&&c.current?.focusIn()}),onBlur:G_(_.onBlur,e=>{e.currentTarget.contains(e.relatedTarget)||c.current?.focusOut()}),onClick:G_(_.onClick,()=>c.current?.dismiss())}),!a&&(0,R.jsxs)(`span`,{ref:s,id:h,role:`tooltip`,popover:`manual`,tabIndex:-1,className:W_.Popup,onPointerEnter:()=>c.current?.popupEnter(),onPointerLeave:()=>c.current?.popupLeave(),children:[(0,R.jsx)(`span`,{className:W_.Content,children:t}),v&&(0,R.jsx)(`span`,{className:W_.Keys,children:v.map((e,t)=>(0,R.jsx)(`kbd`,{className:W_.Kbd,"data-pressed":d&&c.current?.isPressed(e)||void 0,children:e},t))})]})]})}B(`pointer-events-none box-border flex size-full items-center rounded-full bg-hub-bg-inactive p-0.75`,`transition-colors duration-(--hub-duration-normal) motion-reduce:transition-none`,`peer-checked:bg-hub-primary-solid peer-disabled:opacity-50`,Jg,`peer-[:enabled:hover:not(:checked)]:bg-hub-bg-inactive-hover peer-[:enabled:hover:checked]:bg-hub-primary-solid-hover`),B(`block size-3.5 rounded-full bg-hub-primary-contrast`,`transition-transform duration-(--hub-duration-normal) motion-reduce:transition-none`,`group-has-[:checked]/switch:translate-x-2.5`,`group-has-[:enabled:hover]/switch:w-4 group-has-[:enabled:hover:checked]/switch:translate-x-2`);var J_=`h-(--hub-row-height-md) rounded-(--hub-radius-md) border-(length:--hub-hairline) border-solid border-hub-border-control`,Y_=B(`focus-within:outline-1 focus-within:outline-solid focus-within:-outline-offset-1`,`focus-within:outline-hub-focus-ring aria-invalid:focus-within:outline-hub-error-solid`),X_={Base:B(`box-border min-w-0 w-full bg-hub-bg-control font-sans text-hub-md font-normal text-hub-fg-title`,`outline-none transition-colors duration-(--hub-duration-fast) motion-reduce:transition-none`,`aria-invalid:border-hub-error-solid disabled:cursor-not-allowed disabled:opacity-50`),Frame:J_,Focus:Y_,Input:B(J_,Y_,`block px-3 py-1.5 placeholder:text-hub-fg-placeholder`,`enabled:not-focus:not-aria-invalid:hover:border-hub-border-control-hover`)},Z_=B(`[&_a]:text-hub-fg-title [&_a]:no-underline [&_a:not([data-external-link]):hover]:underline`,`[&_a[data-external-link]]:-ms-0.75 [&_a[data-external-link]]:rounded-(--hub-radius-md)`,`[&_a[data-external-link]]:px-1 [&_a[data-external-link]]:py-px`,`[&_a[data-external-link]:hover]:bg-hub-bg-muted`,`[&_a[data-external-link]]:after:ms-1 [&_a[data-external-link]]:after:content-['↗'_/_'']`);B(`text-hub-md leading-5.5 font-[450] text-hub-fg-muted`,Z_),B(`first:rounded-t-(--hub-radius-card) last:rounded-b-(--hub-radius-card) hover:bg-hub-bg-hover`,`has-[>div>a:focus-visible]:outline-1 has-[>div>a:focus-visible]:outline-solid has-[>div>a:focus-visible]:outline-hub-focus-ring`,`has-[>div>button:focus-visible]:outline-1 has-[>div>button:focus-visible]:outline-solid has-[>div>button:focus-visible]:outline-hub-focus-ring`),B(`grid size-(--hub-row-height-md) shrink-0 place-items-center rounded-(--hub-radius-inner)`,`bg-hub-bg-emphasized text-hub-fg-secondary [&>svg]:size-4`),B(`m-0 text-hub-sm font-[450] leading-[normal] text-hub-fg-muted`,Z_),B(`pointer-events-none relative z-(--hub-z-raised)`,`[&_:where(a,button,input,select,textarea,label,summary,[contenteditable]:not([contenteditable=false]),[tabindex],[role=button],[role=link])]:pointer-events-auto`),B(`inline-flex items-center gap-3 no-underline`,`disabled:cursor-not-allowed disabled:opacity-50 aria-disabled:cursor-not-allowed aria-disabled:opacity-50`),B(`-me-1.5 min-h-(--hub-row-height-md) rounded-full border-(length:--hub-hairline) border-solid border-transparent px-3 py-0`,`enabled:cursor-pointer transition-colors duration-(--hub-duration-normal) motion-reduce:transition-none`,qg),B(`font-medium`,Yg.variants[`danger-ghost`]),B(`fixed inset-auto z-(--hub-z-overlay) m-0 box-border max-w-[calc(100vw-2*var(--hub-menu-gutter))] overflow-y-auto`,`rounded-(--hub-radius-lg) border-(length:--hub-hairline) border-solid border-hub-border-panel bg-hub-bg-panel py-1.5`,`font-sans text-hub-md leading-normal text-hub-fg-control shadow-hub-md outline-none`),B(`w-(--hub-popup-width-md) px-0`,`[&_[role=separator]>[data-divider]]:mx-0! [&_[role=separator]>[data-divider]]:w-full!`,`[&_[role=separator]>[data-divider]]:bg-hub-border-subtle`),B(`relative isolate flex h-8 w-full shrink-0 items-center gap-2 border-0 bg-transparent text-left`,`font-sans text-hub-md font-[450] whitespace-nowrap outline-none`,`disabled:cursor-not-allowed disabled:opacity-40 aria-disabled:cursor-not-allowed aria-disabled:opacity-40`,`[&>svg]:size-4 [&>svg]:shrink-0 [&>span]:min-w-0 [&>span]:truncate`),B(`m-0 py-0 pl-3.5 pr-4.5 leading-[normal]`,`before:pointer-events-none before:absolute before:inset-y-0 before:inset-x-1.5 before:-z-1 before:rounded-(--hub-radius-md) before:content-['']`,`[&:not(:disabled):not([aria-disabled=true]):is(:hover,:focus-visible)]:before:bg-hub-bg-muted`),B(`rounded-(--hub-radius-inner) pl-2.5 pr-3.5 leading-5`,`[&:not(:disabled):not([aria-disabled=true]):is(:hover,:focus-visible)]:bg-hub-bg-muted`),B(`opacity-0 transition-[opacity,color,background-color] duration-(--hub-duration-fast) motion-reduce:transition-none`,`group-hover/sidebar-group:opacity-100 group-focus-within/sidebar-group:opacity-100 focus-visible:opacity-100`,`[@media(hover:none)]:opacity-100`),B(`mb-px box-border flex h-7 w-full flex-none items-center gap-1.5 rounded-(--hub-radius-md)`,`border-0 py-0 pl-2 pr-[9px] text-left font-sans text-hub-md font-medium leading-4 no-underline`,`transition-colors duration-(--hub-duration-normal) motion-reduce:transition-none`,`[&>svg]:size-4 [&>svg]:shrink-0 focus-visible:-outline-offset-1`,qg,`disabled:cursor-default disabled:opacity-50 aria-disabled:cursor-default aria-disabled:opacity-50`),B(`relative data-[dragging=true]:opacity-50`,`data-[drop-edge]:after:pointer-events-none data-[drop-edge]:after:absolute data-[drop-edge]:after:inset-x-2`,`data-[drop-edge]:after:h-0.5 data-[drop-edge]:after:bg-hub-focus-ring`,`data-[drop-edge=top]:after:top-0 data-[drop-edge=bottom]:after:bottom-0`),B(`flex h-full min-w-0 flex-1 items-center gap-1.5 border-0 bg-transparent p-0 text-left text-inherit no-underline`,qg),bg.configure({preventActivation:(e,t)=>{if(!(e.target instanceof Element))return!1;if(e.target.closest(`[data-sidebar-trailing], [role=menu]`))return!0;let n=e.target.closest(`button`);return!!n&&n!==t.element&&!n.hasAttribute(`data-sidebar-control`)}}),B(X_.Base,X_.Frame,X_.Focus,`flex items-center`,`has-disabled:opacity-50 not-has-disabled:not-focus-within:not-aria-invalid:hover:border-hub-border-control-hover`),B(`inline-grid h-full shrink-0 place-items-center rounded-(--hub-radius-md) border-0 bg-transparent px-3`,`text-hub-fg-secondary focus-visible:-outline-offset-1 disabled:cursor-not-allowed`,qg),B(X_.Base,X_.Focus,`block resize-y rounded-(--hub-radius-card) border-0 p-4`,`shadow-hub-sm placeholder:text-hub-fg-placeholder [&[rows="3"]]:min-h-30`,`aria-invalid:ring-1 aria-invalid:ring-hub-error-solid`),B(`relative m-0.5 flex h-7 min-w-0 flex-auto items-center justify-center gap-1.5 rounded-full border-(length:--hub-hairline) border-solid border-transparent px-3 py-1`,`bg-hub-bg-panel font-sans text-hub-sm font-medium leading-[normal] whitespace-nowrap text-hub-fg-muted`,`transition-[border,background-color,color] duration-(--hub-duration-normal)`,`before:absolute before:-inset-0.5 before:content-['']`,`after:pointer-events-none after:absolute after:inset-0 after:rounded-[inherit] after:shadow-hub-sm after:transition-shadow after:duration-(--hub-duration-normal) after:content-['']`,`aria-selected:bg-hub-bg-selected aria-selected:text-hub-fg-title aria-selected:after:shadow-[0_0_0_var(--hub-hairline)_var(--hub-border-emphasized)]`,`[&:not([aria-selected=true]):enabled:hover]:bg-hub-bg-hover-subtle [&:not([aria-selected=true]):enabled:hover]:text-hub-fg-control`,`[&:not([aria-selected=true]):enabled:hover]:duration-0 [&:not([aria-selected=true]):enabled:hover]:after:duration-0`,`[&:not([aria-selected=true]):enabled:hover]:after:shadow-hub-sm-hover`,`focus:outline-none focus-visible:-outline-offset-1`,qg,`disabled:cursor-not-allowed disabled:opacity-40 motion-reduce:transition-none motion-reduce:after:transition-none`);var Q_=B(`box-border flex max-w-full flex-col`,`border-(length:--hub-hairline) border-solid border-hub-border-panel bg-hub-bg-panel`,`font-sans text-hub-fg shadow-hub-lg outline-none`,`animate-[hub-dialog-in_var(--hub-duration-normal)_ease-out] motion-reduce:animate-none`);B(`fixed inset-0 z-(--hub-z-modal) flex items-start justify-center overflow-y-auto`,`bg-hub-bg-overlay px-3 py-[clamp(16px,13vh,108px)]`),B(Q_,`w-[750px] max-h-[calc(100dvh-clamp(16px,13vh,108px)*2)] overflow-hidden rounded-(--hub-radius-xl)`),B(`fixed inset-0 z-(--hub-z-modal) grid grid-rows-[1fr_auto_2fr] justify-items-center`,`bg-hub-bg-overlay px-4`),B(Q_,`row-start-2 w-[480px] max-h-[calc(100dvh-32px)] gap-2.5 overflow-auto rounded-hub-lg p-5`),B(`m-0 max-w-full font-sans text-hub-md leading-5 text-hub-fg-muted [overflow-wrap:anywhere]`),B(`fixed inset-auto z-(--hub-z-overlay) m-0 box-border overflow-visible border-0 bg-transparent p-0`),B(`m-0 box-border`,`max-w-[calc(100vw-2*var(--hub-menu-gutter))] max-h-[calc(100vh-2*var(--hub-menu-gutter))]`,`rounded-(--hub-radius-lg) border-(length:--hub-hairline) border-solid border-hub-border-panel`,`bg-hub-bg-panel font-sans text-hub-md leading-normal text-hub-fg-control shadow-hub-md outline-none`),B(`inline-flex h-6.25 min-w-10 max-w-full box-border cursor-pointer items-center justify-center px-2 text-center`,`rounded-full border border-solid border-hub-border-control bg-transparent`,`font-sans text-hub-md font-medium leading-[normal] text-hub-fg`,`transition-colors duration-(--hub-duration-fast) motion-reduce:transition-none`,`enabled:hover:bg-hub-bg-muted enabled:hover:text-hub-fg-title`,`disabled:cursor-not-allowed disabled:opacity-50`,qg,`focus-visible:outline-offset-2`),B(`inline-flex size-6.25 shrink-0 box-border cursor-pointer items-center justify-center p-0`,`rounded-full border-(length:--hub-hairline) border-solid border-transparent bg-transparent text-hub-fg-muted`,`transition-colors duration-(--hub-duration-fast) motion-reduce:transition-none`,`enabled:hover:bg-hub-bg-muted enabled:hover:text-hub-fg-title`,`data-active:bg-hub-bg-muted data-active:text-hub-fg-title`,`disabled:cursor-not-allowed disabled:opacity-50`,qg,`focus-visible:outline-offset-2`),B(`inline-flex h-7 max-w-full shrink-0 box-border cursor-pointer items-center justify-center gap-1.5 pl-1.5 pr-2.5`,`rounded-full border-0 bg-transparent text-hub-fg-muted`,`font-sans text-hub-md font-medium leading-[normal]`,`transition-colors duration-(--hub-duration-fast) motion-reduce:transition-none`,`enabled:hover:bg-hub-bg-muted enabled:hover:text-hub-fg-title`,`data-active:bg-hub-bg-muted data-active:text-hub-fg-title`,`disabled:cursor-not-allowed disabled:opacity-50`,`[&>svg]:shrink-0 [&>svg]:-rotate-45`,qg,`focus-visible:outline-offset-2`),B(`block h-9 w-full box-border border-0 bg-transparent px-3.5 py-2`,`font-sans text-hub-md font-normal leading-[normal] text-hub-fg-control`,`placeholder:text-hub-fg-placeholder placeholder:opacity-100 focus:outline-none`),B(`relative isolate flex min-h-(--hub-row-height-md) w-full box-border cursor-default select-none items-center gap-2 pl-3.5 pr-4`,`font-sans text-hub-md font-[450] text-hub-fg-control outline-none`,`before:pointer-events-none before:absolute before:inset-y-0 before:inset-x-1.5 before:-z-1 before:rounded-(--hub-radius-md) before:content-['']`,`data-active:text-hub-fg-title data-active:before:bg-hub-bg-muted`,`aria-disabled:cursor-not-allowed aria-disabled:opacity-50`,`[&>svg]:shrink-0`);var $_=Sa(`notificationService`),ev=class extends y_{},tv=e=>e?.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase();function nv(e,t,n=[]){if(t==null)throw Error(`[lucide]: iconNode is required when icon name is used`);return{name:tv(e),size:24,node:t,...n.length>0?{aliases:n}:{}}}var rv=e=>{let t=``,n=!1;for(let r of e)r===`-`||r===`_`||r<=` `?n=t.length>0:(t.length===0?t+=r.toLowerCase():t+=n?r.toUpperCase():r,n=!1);return t},iv=e=>{let t=rv(e);return t.charAt(0).toUpperCase()+t.slice(1)},av=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),ov={xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":2,"stroke-linecap":`round`,"stroke-linejoin":`round`};function sv(e){return e!=null}function cv(e,t={}){let n=t.attributeNames??{},r=e=>n[e]??e,i=e.size??e.width??ov.width,a=e.size??e.height??ov.height,o=e.aliases?.filter(e=>typeof e==`string`&&e.trim()!==``).map(e=>`lucide-${e}`)??[],s=[...e.name?[`lucide-${e.name}`]:[],...o],c=t.className?.split(` `).filter(Boolean)??[],l=t.includeDefaultClasses===!1?av(...c):av(`lucide`,...s,...c),u=t.absoluteStrokeWidth?Number(t.strokeWidth??ov[`stroke-width`])*Number(e.size??e.width??ov.width)/Number(t.size??t.width??ov.width):t.strokeWidth??ov[`stroke-width`];return[`svg`,{...Object.entries(ov).reduce((e,[t,n])=>(e[r(t)]=n,e),{}),...`color`in t&&t.color&&{[r(`stroke`)]:t.color},...`size`in t&&sv(t.size)&&{[r(`width`)]:t.size,[r(`height`)]:t.size},...`width`in t&&sv(t.width)&&{[r(`width`)]:t.width},...`height`in t&&sv(t.height)&&{[r(`height`)]:t.height},[r(`stroke-width`)]:u,...l&&{[r(`class`)]:l},[r(`viewBox`)]:`0 0 ${i} ${a}`,...t.hasA11yProp===!1?{[r(`aria-hidden`)]:`true`}:{},...`attributes`in t&&t.attributes},e.node.map(e=>{let[n,i,a]=e,o=t.nonScalingStroke?{[r(`vector-effect`)]:`non-scaling-stroke`,...i}:i;return a?[n,o,a]:[n,o]})]}function lv(e,t={}){return cv(e,{...t,attributeNames:{...t.attributeNames,class:`className`,"stroke-width":`strokeWidth`,"stroke-linecap":`strokeLinecap`,"stroke-linejoin":`strokeLinejoin`,"vector-effect":`vectorEffect`}})}var uv=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0;return!1},dv=(0,p.createContext)({}),fv=()=>(0,p.useContext)(dv),pv=(0,p.forwardRef)(({color:e,size:t,width:n,height:r,strokeWidth:i,absoluteStrokeWidth:a,nonScalingStroke:o,className:s=``,children:c,iconNode:l=[],icon:u={node:l,aliases:[],size:24},...d},f)=>{let{size:m=24,strokeWidth:h=2,absoluteStrokeWidth:g=!1,nonScalingStroke:_=!1,color:v=`currentColor`,className:y=``}=fv()??{},b=!!c||uv(d),[x,S,C=[]]=lv(u,{color:e??v,width:n??t??m,height:r??t??m,strokeWidth:i??h,absoluteStrokeWidth:a??g,nonScalingStroke:o??_,className:av(y,s),hasA11yProp:b,attributes:d});return(0,p.createElement)(x,{ref:f,...S},[...C.map(([e,t])=>(0,p.createElement)(e,t)),...Array.isArray(c)?c:[c]])});function Y(e,t=[],n=[]){let r=typeof e==`string`?nv(e,t,n):e,i=(0,p.forwardRef)(({className:e,...t},n)=>(0,p.createElement)(pv,{ref:n,icon:r,className:e,...t}));return r.name&&(i.displayName=iv(r.name)),i}var mv={name:`braces`,size:24,node:[[`path`,{d:`M8 3H7a2 2 0 0 0-2 2v5a2 2 0 0 1-2 2 2 2 0 0 1 2 2v5c0 1.1.9 2 2 2h1`,key:`ezmyqa`}],[`path`,{d:`M16 21h1a2 2 0 0 0 2-2v-5c0-1.1.9-2 2-2a2 2 0 0 1-2-2V5a2 2 0 0 0-2-2h-1`,key:`e1hn23`}]],aliases:[`curly-braces`]};mv.node;var hv=Y(mv),gv={name:`chevron-down`,size:24,node:[[`path`,{d:`m6 9 6 6 6-6`,key:`qrunsl`}]]};gv.node;var _v=Y(gv),vv={name:`chevron-left`,size:24,node:[[`path`,{d:`m15 18-6-6 6-6`,key:`1wnfg3`}]]};vv.node;var yv=Y(vv),bv={name:`chevron-right`,size:24,node:[[`path`,{d:`m9 18 6-6-6-6`,key:`mthhwq`}]]};bv.node;var xv=Y(bv),Sv={name:`chevron-up`,size:24,node:[[`path`,{d:`m18 15-6-6-6 6`,key:`153udz`}]]};Sv.node;var Cv=Y(Sv),wv={name:`circle-alert`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`line`,{x1:`12`,x2:`12`,y1:`8`,y2:`12`,key:`1pkeuh`}],[`line`,{x1:`12`,x2:`12.01`,y1:`16`,y2:`16`,key:`4dfq90`}]],aliases:[`alert-circle`]};wv.node;var Tv=Y(wv),Ev={name:`circle-check`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m16 9-5.5 5.5L8 12`,key:`xofnsj`}]],aliases:[`check-circle-2`]};Ev.node;var Dv=Y(Ev),Ov={name:`circle-question-mark`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3`,key:`1u773s`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}]],aliases:[`help-circle`,`circle-help`]};Ov.node;var kv=Y(Ov),Av={name:`circle-x`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m15 9-6 6`,key:`1uzhvr`}],[`path`,{d:`m9 9 6 6`,key:`z0biqf`}]],aliases:[`x-circle`]};Av.node;var jv=Y(Av),Mv={name:`code-xml`,size:24,node:[[`path`,{d:`m18 16 4-4-4-4`,key:`1inbqp`}],[`path`,{d:`m6 8-4 4 4 4`,key:`15zrgr`}],[`path`,{d:`m14.5 4-5 16`,key:`e7oirm`}]],aliases:[`code-2`]};Mv.node;var Nv=Y(Mv),Pv={name:`container`,size:24,node:[[`path`,{d:`M22 7.7c0-.6-.4-1.2-.8-1.5l-6.3-3.9a1.72 1.72 0 0 0-1.7 0l-10.3 6c-.5.2-.9.8-.9 1.4v6.6c0 .5.4 1.2.8 1.5l6.3 3.9a1.72 1.72 0 0 0 1.7 0l10.3-6c.5-.3.9-1 .9-1.5Z`,key:`1t2lqe`}],[`path`,{d:`M10 21.9V14L2.1 9.1`,key:`o7czzq`}],[`path`,{d:`m10 14 11.9-6.9`,key:`zm5e20`}],[`path`,{d:`M14 19.8v-8.1`,key:`159ecu`}],[`path`,{d:`M18 17.5V9.4`,key:`11uown`}]]};Pv.node;var Fv=Y(Pv),Iv={name:`copy`,size:24,node:[[`rect`,{width:`14`,height:`14`,x:`8`,y:`8`,rx:`2`,ry:`2`,key:`17jyea`}],[`path`,{d:`M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2`,key:`zix9uf`}]]};Iv.node;var Lv=Y(Iv),Rv={name:`database`,size:24,node:[[`ellipse`,{cx:`12`,cy:`5`,rx:`9`,ry:`3`,key:`msslwz`}],[`path`,{d:`M3 5V19A9 3 0 0 0 21 19V5`,key:`1wlel7`}],[`path`,{d:`M3 12A9 3 0 0 0 21 12`,key:`mv7ke4`}]]};Rv.node;var zv=Y(Rv),Bv={name:`diamond`,size:24,node:[[`path`,{d:`M2.7 10.3a2.41 2.41 0 0 0 0 3.41l7.59 7.59a2.41 2.41 0 0 0 3.41 0l7.59-7.59a2.41 2.41 0 0 0 0-3.41l-7.59-7.59a2.41 2.41 0 0 0-3.41 0Z`,key:`1f1r0c`}]]};Bv.node;var Vv=Y(Bv),Hv={name:`file-archive`,size:24,node:[[`path`,{d:`M13.659 22H18a2 2 0 0 0 2-2V8a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 14 2H6a2 2 0 0 0-2 2v11.5`,key:`4pqfef`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M8 12v-1`,key:`1ej8lb`}],[`path`,{d:`M8 18v-2`,key:`qcmpov`}],[`path`,{d:`M8 7V6`,key:`1nbb54`}],[`circle`,{cx:`8`,cy:`20`,r:`2`,key:`ckkr5m`}]]};Hv.node;var Uv=Y(Hv),Wv={name:`file-code-corner`,size:24,node:[[`path`,{d:`M4 12.15V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2h-3.35`,key:`1wthlu`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`m5 16-3 3 3 3`,key:`331omg`}],[`path`,{d:`m9 22 3-3-3-3`,key:`lsp7cz`}]],aliases:[`file-code-2`]};Wv.node;var Gv=Y(Wv),Kv={name:`file-diff`,size:24,node:[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M9 10h6`,key:`9gxzsh`}],[`path`,{d:`M12 13V7`,key:`h0r20n`}],[`path`,{d:`M9 17h6`,key:`r8uit2`}]]};Kv.node;var qv=Y(Kv),Jv={name:`file-headphone`,size:24,node:[[`path`,{d:`M4 6.835V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2h-.343`,key:`1vfytu`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M2 19a2 2 0 0 1 4 0v1a2 2 0 0 1-4 0v-4a6 6 0 0 1 12 0v4a2 2 0 0 1-4 0v-1a2 2 0 0 1 4 0`,key:`1etmh7`}]],aliases:[`file-audio`,`file-audio-2`]};Jv.node;var Yv=Y(Jv),Xv={name:`file-play`,size:24,node:[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M15.033 13.44a.647.647 0 0 1 0 1.12l-4.065 2.352a.645.645 0 0 1-.968-.56v-4.704a.645.645 0 0 1 .967-.56z`,key:`1tzo1f`}]],aliases:[`file-video`]};Xv.node;var Zv=Y(Xv),Qv={name:`file-spreadsheet`,size:24,node:[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M8 13h2`,key:`yr2amv`}],[`path`,{d:`M14 13h2`,key:`un5t4a`}],[`path`,{d:`M8 17h2`,key:`2yhykz`}],[`path`,{d:`M14 17h2`,key:`10kma7`}]]};Qv.node;var $v=Y(Qv),ey={name:`file-text`,size:24,node:[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M10 9H8`,key:`b1mrlr`}],[`path`,{d:`M16 13H8`,key:`t4e002`}],[`path`,{d:`M16 17H8`,key:`z1uh3a`}]]};ey.node;var ty=Y(ey),ny={name:`file`,size:24,node:[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}]]};ny.node;var ry=Y(ny),iy={name:`flask-conical`,size:24,node:[[`path`,{d:`M14 2v6a2 2 0 0 0 .245.96l5.51 10.08A2 2 0 0 1 18 22H6a2 2 0 0 1-1.755-2.96l5.51-10.08A2 2 0 0 0 10 8V2`,key:`18mbvz`}],[`path`,{d:`M6.453 15h11.094`,key:`3shlmq`}],[`path`,{d:`M8.5 2h7`,key:`csnxdl`}]]};iy.node;var ay=Y(iy),oy={name:`folder-open`,size:24,node:[[`path`,{d:`m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2`,key:`usdka0`}]]};oy.node;var sy=Y(oy),cy={name:`folder-tree`,size:24,node:[[`path`,{d:`M20 10a1 1 0 0 0 1-1V6a1 1 0 0 0-1-1h-2.5a1 1 0 0 1-.8-.4l-.9-1.2A1 1 0 0 0 15 3h-2a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1Z`,key:`hod4my`}],[`path`,{d:`M20 21a1 1 0 0 0 1-1v-3a1 1 0 0 0-1-1h-2.9a1 1 0 0 1-.88-.55l-.42-.85a1 1 0 0 0-.92-.6H13a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1Z`,key:`w4yl2u`}],[`path`,{d:`M3 5a2 2 0 0 0 2 2h3`,key:`f2jnh7`}],[`path`,{d:`M3 3v13a2 2 0 0 0 2 2h3`,key:`k8epm1`}]]};cy.node;var ly=Y(cy),uy={name:`folder`,size:24,node:[[`path`,{d:`M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z`,key:`1kt360`}]]};uy.node;var dy=Y(uy),fy={name:`gem`,size:24,node:[[`path`,{d:`M10.5 3 8 9l4 13 4-13-2.5-6`,key:`b3dvk1`}],[`path`,{d:`M17 3a2 2 0 0 1 1.6.8l3 4a2 2 0 0 1 .013 2.382l-7.99 10.986a2 2 0 0 1-3.247 0l-7.99-10.986A2 2 0 0 1 2.4 7.8l2.998-3.997A2 2 0 0 1 7 3z`,key:`7w4byz`}],[`path`,{d:`M2 9h20`,key:`16fsjt`}]]};fy.node;var py=Y(fy),my={name:`git-branch`,size:24,node:[[`path`,{d:`M15 6a9 9 0 0 0-9 9V3`,key:`1cii5b`}],[`circle`,{cx:`18`,cy:`6`,r:`3`,key:`1h7g24`}],[`circle`,{cx:`6`,cy:`18`,r:`3`,key:`fqmcym`}]]};my.node;var hy=Y(my),gy={name:`git-compare-arrows`,size:24,node:[[`circle`,{cx:`5`,cy:`6`,r:`3`,key:`1qnov2`}],[`path`,{d:`M12 6h5a2 2 0 0 1 2 2v7`,key:`1yj91y`}],[`path`,{d:`m15 9-3-3 3-3`,key:`1lwv8l`}],[`circle`,{cx:`19`,cy:`18`,r:`3`,key:`1qljk2`}],[`path`,{d:`M12 18H7a2 2 0 0 1-2-2V9`,key:`16sdep`}],[`path`,{d:`m9 15 3 3-3 3`,key:`1m3kbl`}]]};gy.node;var _y=Y(gy),vy={name:`hexagon`,size:24,node:[[`path`,{d:`M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z`,key:`yt0hxn`}]]};vy.node;var yy=Y(vy),by={name:`image`,size:24,node:[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,ry:`2`,key:`1m3agn`}],[`circle`,{cx:`9`,cy:`9`,r:`2`,key:`af1f0g`}],[`path`,{d:`m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21`,key:`1xmnt7`}]]};by.node;var xy=Y(by),Sy={name:`images`,size:24,node:[[`path`,{d:`m22 11-1.296-1.296a2.4 2.4 0 0 0-3.408 0L11 16`,key:`9kzy35`}],[`path`,{d:`M4 8a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2`,key:`1t0f0t`}],[`circle`,{cx:`13`,cy:`7`,r:`1`,fill:`currentColor`,key:`1obus6`}],[`rect`,{x:`8`,y:`2`,width:`14`,height:`14`,rx:`2`,key:`1gvhby`}]]};Sy.node;var Cy=Y(Sy),wy={name:`key-round`,size:24,node:[[`path`,{d:`M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z`,key:`1s6t7t`}],[`circle`,{cx:`16.5`,cy:`7.5`,r:`.5`,fill:`currentColor`,key:`w0ekpg`}]]};wy.node;var Ty=Y(wy),Ey={name:`layers`,size:24,node:[[`path`,{d:`M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z`,key:`zw3jo`}],[`path`,{d:`M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12`,key:`1wduqc`}],[`path`,{d:`M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17`,key:`kqbvx6`}]],aliases:[`layers-3`]};Ey.node;var Dy=Y(Ey),Oy={name:`list-checks`,size:24,node:[[`path`,{d:`M13 5h8`,key:`a7qcls`}],[`path`,{d:`M13 12h8`,key:`h98zly`}],[`path`,{d:`M13 19h8`,key:`c3s6r1`}],[`path`,{d:`m3 17 2 2 4-4`,key:`1jhpwq`}],[`path`,{d:`m3 7 2 2 4-4`,key:`1obspn`}]]};Oy.node;var ky=Y(Oy),Ay={name:`loader-circle`,size:24,node:[[`path`,{d:`M21 12a9 9 0 1 1-6.219-8.56`,key:`13zald`}]],aliases:[`loader-2`]};Ay.node;var jy=Y(Ay),My={name:`lock`,size:24,node:[[`rect`,{width:`18`,height:`11`,x:`3`,y:`11`,rx:`2`,ry:`2`,key:`1w4ew1`}],[`path`,{d:`M7 11V7a5 5 0 0 1 10 0v4`,key:`fwvmzm`}]]};My.node;var Ny=Y(My),Py={name:`minus`,size:24,node:[[`path`,{d:`M5 12h14`,key:`1ays0h`}]]};Py.node;var Fy=Y(Py),Iy={name:`package`,size:24,node:[[`path`,{d:`M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z`,key:`1a0edw`}],[`path`,{d:`M12 22V12`,key:`d0xqtd`}],[`polyline`,{points:`3.29 7 12 12 20.71 7`,key:`ousv84`}],[`path`,{d:`m7.5 4.27 9 5.15`,key:`1c824w`}]]};Iy.node;var Ly=Y(Iy),Ry={name:`plus`,size:24,node:[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`M12 5v14`,key:`s699le`}]]};Ry.node;var zy=Y(Ry),By={name:`rotate-ccw-clock`,size:24,node:[[`path`,{d:`M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8`,key:`1357e3`}],[`path`,{d:`M3 3v5h5`,key:`1xhq8a`}],[`path`,{d:`M12 7v5l4 2`,key:`1fdv2h`}]],aliases:[`history`]};By.node;var Vy=Y(By),Hy={name:`scale`,size:24,node:[[`path`,{d:`M12 3v18`,key:`108xh3`}],[`path`,{d:`m19 8 3 8a5 5 0 0 1-6 0zV7`,key:`zcdpyk`}],[`path`,{d:`M3 7h1a17 17 0 0 0 8-2 17 17 0 0 0 8 2h1`,key:`1yorad`}],[`path`,{d:`m5 8 3 8a5 5 0 0 1-6 0zV7`,key:`eua70x`}],[`path`,{d:`M7 21h10`,key:`1b0cd5`}]]};Hy.node;var Uy=Y(Hy),Wy={name:`scroll-text`,size:24,node:[[`path`,{d:`M15 12h-5`,key:`r7krc0`}],[`path`,{d:`M15 8h-5`,key:`1khuty`}],[`path`,{d:`M19 17V5a2 2 0 0 0-2-2H4`,key:`zz82l3`}],[`path`,{d:`M8 21h12a2 2 0 0 0 2-2v-1a1 1 0 0 0-1-1H11a1 1 0 0 0-1 1v1a2 2 0 1 1-4 0V5a2 2 0 1 0-4 0v2a1 1 0 0 0 1 1h3`,key:`1ph1d7`}]]};Wy.node;var Gy=Y(Wy),Ky={name:`settings`,size:24,node:[[`path`,{d:`M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915`,key:`1i5ecw`}],[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}]]};Ky.node;var qy=Y(Ky),Jy={name:`shapes`,size:24,node:[[`path`,{d:`M8.3 10a.7.7 0 0 1-.626-1.079L11.4 3a.7.7 0 0 1 1.198-.043L16.3 8.9a.7.7 0 0 1-.572 1.1Z`,key:`1bo67w`}],[`rect`,{x:`3`,y:`14`,width:`7`,height:`7`,rx:`1`,key:`1bkyp8`}],[`circle`,{cx:`17.5`,cy:`17.5`,r:`3.5`,key:`w3z12y`}]]};Jy.node;var Yy=Y(Jy),Xy={name:`terminal`,size:24,node:[[`path`,{d:`M12 19h8`,key:`baeox8`}],[`path`,{d:`m4 17 6-6-6-6`,key:`1yngyt`}]]};Xy.node;var Zy=Y(Xy),Qy={name:`type`,size:24,node:[[`path`,{d:`M12 4v16`,key:`1654pz`}],[`path`,{d:`M4 7V5a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1v2`,key:`e0r10z`}],[`path`,{d:`M9 20h6`,key:`s66wpe`}]]};Qy.node;var $y=Y(Qy),eb={name:`wrench`,size:24,node:[[`path`,{d:`M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z`,key:`1ngwbx`}]]};eb.node;var tb=Y(eb);function nb(e,t=[]){let n=(0,p.useRef)(e);n.current=e,(0,p.useEffect)(()=>{let e=()=>{n.current()};return e(),window.addEventListener(`focus`,e),()=>window.removeEventListener(`focus`,e)},t)}function rb(e){if(!e?.width||!e.height)return{};let t=e.scale??1,n=Math.max(1,Math.round(e.width/t));return{width:n,height:Math.max(1,Math.round(e.height/t)),...t>1&&{style:{maxWidth:`min(100%, ${n}px)`}}}}function ib({size:e,...t}){return(0,R.jsx)(`svg`,{width:e,height:e,viewBox:`0 0 16 16`,fill:`none`,"aria-hidden":`true`,...t,children:(0,R.jsx)(`path`,{d:`M2.2 5.1h5.1v1.45H5.55v5.35H3.95V6.55H2.2V5.1Zm8.95 1.55c-.38-.23-.84-.36-1.3-.36-.56 0-.9.22-.9.57 0 .37.33.53 1.13.82 1.24.44 1.92.98 1.92 2.09 0 1.27-.98 2.13-2.55 2.13-.77 0-1.58-.21-2.16-.56l.54-1.33c.48.29 1.04.47 1.59.47.62 0 .97-.24.97-.62 0-.37-.28-.56-1.08-.85-1.26-.46-1.97-1.02-1.97-2.06 0-1.2.96-2.03 2.47-2.03.69 0 1.38.16 1.88.43l-.54 1.3Z`,fill:`currentColor`})})}function ab({size:e,...t}){return(0,R.jsx)(`svg`,{width:e,height:e,viewBox:`0 0 16 16`,fill:`none`,"aria-hidden":`true`,...t,children:(0,R.jsx)(`path`,{d:`M5.95 5.1h1.6v4.6c0 1.48-.88 2.2-2.25 2.2-.73 0-1.36-.18-1.85-.52l.58-1.29c.34.23.7.36 1.09.36.52 0 .83-.27.83-.85V5.1Zm6.4 1.55c-.38-.23-.84-.36-1.3-.36-.56 0-.9.22-.9.57 0 .37.33.53 1.13.82 1.24.44 1.92.98 1.92 2.09 0 1.27-.98 2.13-2.55 2.13-.77 0-1.58-.21-2.16-.56l.54-1.33c.48.29 1.04.47 1.59.47.62 0 .97-.24.97-.62 0-.37-.28-.56-1.08-.85-1.26-.46-1.97-1.02-1.97-2.06 0-1.2.96-2.03 2.47-2.03.69 0 1.38.16 1.88.43l-.54 1.3Z`,fill:`currentColor`})})}function ob({size:e,...t}){return(0,R.jsxs)(`svg`,{width:e,height:e,viewBox:`0 0 16 16`,fill:`none`,"aria-hidden":`true`,...t,children:[(0,R.jsx)(`circle`,{cx:`8`,cy:`8`,r:`1.45`,fill:`currentColor`}),(0,R.jsx)(`ellipse`,{cx:`8`,cy:`8`,rx:`6.2`,ry:`2.45`,stroke:`currentColor`,strokeWidth:`1.2`}),(0,R.jsx)(`ellipse`,{cx:`8`,cy:`8`,rx:`6.2`,ry:`2.45`,stroke:`currentColor`,strokeWidth:`1.2`,transform:`rotate(60 8 8)`}),(0,R.jsx)(`ellipse`,{cx:`8`,cy:`8`,rx:`6.2`,ry:`2.45`,stroke:`currentColor`,strokeWidth:`1.2`,transform:`rotate(120 8 8)`})]})}function sb({size:e,...t}){return(0,R.jsx)(`svg`,{width:e,height:e,viewBox:`0 0 16 16`,fill:`none`,"aria-hidden":`true`,...t,children:(0,R.jsx)(`path`,{d:`M6.4 2.5 4.8 13.5M11.2 2.5 9.6 13.5M2.6 5.7h11.1M2.3 10.3h11.1`,stroke:`currentColor`,strokeWidth:`1.55`,strokeLinecap:`round`})})}function cb({size:e,...t}){return(0,R.jsx)(`svg`,{width:e,height:e,viewBox:`0 0 16 16`,fill:`none`,"aria-hidden":`true`,...t,children:(0,R.jsx)(`path`,{d:`M2.2 11.4V4.8l2.55 3.1L7.3 4.8v6.6M11.6 4.8v6.1m0 0-2-2.1m2 2.1 2-2.1`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`})})}function lb({size:e,...t}){return(0,R.jsxs)(`svg`,{width:e,height:e,viewBox:`0 0 16 16`,fill:`none`,"aria-hidden":`true`,...t,children:[(0,R.jsx)(`path`,{d:`M2 3.2h2.4L8 9.4l3.6-6.2H14L8 13.4 2 3.2Z`,stroke:`currentColor`,strokeWidth:`1.35`,strokeLinejoin:`round`}),(0,R.jsx)(`path`,{d:`M5.1 3.2 8 8.2l2.9-5`,stroke:`currentColor`,strokeWidth:`1.2`,strokeLinejoin:`round`})]})}function ub(e,t,n){return{color:t,icon:({size:t,className:r,style:i})=>(0,R.jsx)(e,{size:t,className:r,style:i,"aria-hidden":`true`,...n})}}function db(e,t){return{color:t,icon:({size:t,className:n,style:r})=>(0,R.jsx)(e,{size:t,className:n,style:r})}}var X={ts:db(ib,`var(--file-icon-ts)`),tsx:db(ob,`var(--file-icon-tsx)`),js:db(ab,`var(--file-icon-js)`),jsx:db(ob,`var(--file-icon-jsx)`),test:ub(ay,`var(--file-icon-test)`),json:ub(hv,`var(--file-icon-json)`),css:db(sb,`var(--file-icon-css)`),scss:db(sb,`var(--file-icon-scss)`),html:ub(Nv,`var(--file-icon-html)`),md:db(cb,`var(--file-icon-md)`),yaml:ub(qy,`var(--file-icon-yaml)`),shell:ub(Zy,`var(--file-icon-shell)`),git:ub(hy,`var(--file-icon-git)`),npm:ub(Ly,`var(--file-icon-npm)`),lock:ub(Ny,`var(--file-icon-lock)`),env:ub(Ty,`var(--file-icon-env)`),config:ub(qy,`var(--file-icon-config)`),image:ub(xy,`var(--file-icon-image)`),svg:ub(Yy,`var(--file-icon-svg)`),font:ub($y,`var(--file-icon-font)`),audio:ub(Yv,`var(--file-icon-font)`),video:ub(Zv,`var(--file-icon-html)`),archive:ub(Uv,`var(--file-icon-archive)`),pdf:ub(ty,`var(--file-icon-pdf)`),text:ub(ty,`var(--file-icon-config)`),spreadsheet:ub($v,`var(--file-icon-shell)`),license:ub(Uy,`var(--file-icon-json)`),vue:db(lb,`var(--file-icon-vue)`),svelte:ub(Gv,`var(--file-icon-svelte)`),python:ub(Gv,`var(--file-icon-python)`),go:ub(Gv,`var(--file-icon-go)`),rust:ub(Gv,`var(--file-icon-rust)`),ruby:ub(py,`var(--file-icon-ruby)`),docker:ub(Fv,`var(--file-icon-docker)`),build:ub(tb,`var(--file-icon-rust)`),db:ub(zv,`var(--file-icon-db)`),graphql:ub(yy,`var(--file-icon-graphql)`),code:ub(Gv,`var(--file-icon-ts)`),default:ub(ry,`var(--file-icon-default)`)},fb={"package.json":X.npm,"package-lock.json":X.lock,"pnpm-lock.yaml":X.lock,"yarn.lock":X.lock,"bun.lock":X.lock,"bun.lockb":X.lock,"cargo.lock":X.lock,"poetry.lock":X.lock,"gemfile.lock":X.lock,".gitignore":X.git,".gitattributes":X.git,".gitmodules":X.git,".gitkeep":X.git,dockerfile:X.docker,".dockerignore":X.docker,makefile:X.build,"cmakelists.txt":X.build,license:X.license,"license.md":X.license,"license.txt":X.license,copying:X.license,".editorconfig":X.config,".npmrc":X.npm,".nvmrc":X.config,".node-version":X.config},pb={ts:X.ts,mts:X.ts,cts:X.ts,tsx:X.tsx,js:X.js,mjs:X.js,cjs:X.js,jsx:X.jsx,json:X.json,jsonc:X.json,json5:X.json,css:X.css,scss:X.scss,sass:X.scss,less:X.scss,styl:X.scss,html:X.html,htm:X.html,xml:X.html,plist:X.html,md:X.md,mdx:X.md,markdown:X.md,yml:X.yaml,yaml:X.yaml,toml:X.config,ini:X.config,conf:X.config,cfg:X.config,properties:X.config,sh:X.shell,bash:X.shell,zsh:X.shell,fish:X.shell,ps1:X.shell,bat:X.shell,cmd:X.shell,png:X.image,jpg:X.image,jpeg:X.image,gif:X.image,webp:X.image,ico:X.image,avif:X.image,bmp:X.image,svg:X.svg,woff:X.font,woff2:X.font,ttf:X.font,otf:X.font,eot:X.font,mp3:X.audio,wav:X.audio,ogg:X.audio,flac:X.audio,m4a:X.audio,mp4:X.video,mov:X.video,webm:X.video,mkv:X.video,avi:X.video,zip:X.archive,tar:X.archive,gz:X.archive,tgz:X.archive,"7z":X.archive,rar:X.archive,bz2:X.archive,pdf:X.pdf,txt:X.text,log:X.text,csv:X.spreadsheet,tsv:X.spreadsheet,vue:X.vue,svelte:X.svelte,astro:X.svelte,py:X.python,pyi:X.python,go:X.go,rs:X.rust,rb:X.ruby,sql:X.db,sqlite:X.db,db:X.db,prisma:X.db,graphql:X.graphql,gql:X.graphql,dockerfile:X.docker,lock:X.lock,java:X.html,kt:X.yaml,kts:X.yaml,swift:X.svelte,c:X.code,h:X.code,cpp:X.code,cc:X.code,cxx:X.code,hpp:X.code,cs:X.code,php:X.yaml};function mb(e){let t=(e.split(`/`).pop()??e).toLowerCase(),n=fb[t];if(n)return n;if(t===`.env`||t.startsWith(`.env.`))return X.env;if(t.startsWith(`tsconfig`)&&t.endsWith(`.json`))return X.ts;if(t.startsWith(`dockerfile.`)||t.startsWith(`docker-compose`)||t.startsWith(`compose.`))return X.docker;if(/\.(test|spec)\.[cm]?[jt]sx?$/.test(t))return X.test;if(t.startsWith(`.`)&&(t.endsWith(`rc`)||t.endsWith(`rc.json`)||t.endsWith(`rc.js`)||t.endsWith(`rc.cjs`)||t.endsWith(`rc.mjs`)))return X.config;let r=t.lastIndexOf(`.`);if(r>0){let e=t.slice(r+1);if(e in pb)return pb[e]}return X.default}function hb({name:e,size:t,muted:n=!1}){let r=mb(e);return r.icon({size:t,className:`file-icon${n?` is-muted`:``}`,style:{color:r.color}})}function gb({open:e=!1,size:t,muted:n=!1}){return(0,R.jsx)(e?sy:dy,{size:t,className:`file-icon${n?` is-muted`:``}`,style:{color:`var(--file-icon-folder)`},fill:`currentColor`,fillOpacity:.14,"aria-hidden":`true`})}function _b(e){let[t,n]=(0,p.useState)(()=>{try{return localStorage.getItem(e)===`true`}catch{return!1}});return(0,p.useEffect)(()=>{try{localStorage.setItem(e,String(t))}catch{}},[e,t]),[t,n]}function vb(e,t){let n=t||{};return(e[e.length-1]===``?[...e,``]:e).join((n.padRight?` `:``)+`,`+(n.padLeft===!1?``:` `)).trim()}var yb=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,bb=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,xb={};function Sb(e,t){return((t||xb).jsx?bb:yb).test(e)}var Cb=/[ \t\n\f\r]/g;function wb(e){return typeof e==`object`?e.type===`text`&&Tb(e.value):Tb(e)}function Tb(e){return e.replace(Cb,``)===``}var Eb=class{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}};Eb.prototype.normal={},Eb.prototype.property={},Eb.prototype.space=void 0;function Db(e,t){let n={},r={};for(let t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new Eb(n,r,t)}function Ob(e){return e.toLowerCase()}var kb=class{constructor(e,t){this.attribute=t,this.property=e}};kb.prototype.attribute=``,kb.prototype.booleanish=!1,kb.prototype.boolean=!1,kb.prototype.commaOrSpaceSeparated=!1,kb.prototype.commaSeparated=!1,kb.prototype.defined=!1,kb.prototype.mustUseProperty=!1,kb.prototype.number=!1,kb.prototype.overloadedBoolean=!1,kb.prototype.property=``,kb.prototype.spaceSeparated=!1,kb.prototype.space=void 0;var Ab=c({boolean:()=>Z,booleanish:()=>Mb,commaOrSpaceSeparated:()=>Ib,commaSeparated:()=>Fb,number:()=>Q,overloadedBoolean:()=>Nb,spaceSeparated:()=>Pb}),jb=0,Z=Lb(),Mb=Lb(),Nb=Lb(),Q=Lb(),Pb=Lb(),Fb=Lb(),Ib=Lb();function Lb(){return 2**++jb}var Rb=Object.keys(Ab),zb=class extends kb{constructor(e,t,n,r){let i=-1;if(super(e,t),Bb(this,`space`,r),typeof n==`number`)for(;++i<Rb.length;){let e=Rb[i];Bb(this,Rb[i],(n&Ab[e])===Ab[e])}}};zb.prototype.defined=!0;function Bb(e,t,n){n&&(e[t]=n)}function Vb(e){let t={},n={};for(let[r,i]of Object.entries(e.properties)){let a=new zb(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[Ob(r)]=r,n[Ob(a.attribute)]=r}return new Eb(t,n,e.space)}var Hb=Vb({properties:{ariaActiveDescendant:null,ariaAtomic:Mb,ariaAutoComplete:null,ariaBusy:Mb,ariaChecked:Mb,ariaColCount:Q,ariaColIndex:Q,ariaColSpan:Q,ariaControls:Pb,ariaCurrent:null,ariaDescribedBy:Pb,ariaDetails:null,ariaDisabled:Mb,ariaDropEffect:Pb,ariaErrorMessage:null,ariaExpanded:Mb,ariaFlowTo:Pb,ariaGrabbed:Mb,ariaHasPopup:null,ariaHidden:Mb,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Pb,ariaLevel:Q,ariaLive:null,ariaModal:Mb,ariaMultiLine:Mb,ariaMultiSelectable:Mb,ariaOrientation:null,ariaOwns:Pb,ariaPlaceholder:null,ariaPosInSet:Q,ariaPressed:Mb,ariaReadOnly:Mb,ariaRelevant:null,ariaRequired:Mb,ariaRoleDescription:Pb,ariaRowCount:Q,ariaRowIndex:Q,ariaRowSpan:Q,ariaSelected:Mb,ariaSetSize:Q,ariaSort:null,ariaValueMax:Q,ariaValueMin:Q,ariaValueNow:Q,ariaValueText:null,role:null},transform(e,t){return t===`role`?t:`aria-`+t.slice(4).toLowerCase()}});function Ub(e,t){return t in e?e[t]:t}function Wb(e,t){return Ub(e,t.toLowerCase())}var Gb=Vb({attributes:{acceptcharset:`accept-charset`,classname:`class`,htmlfor:`for`,httpequiv:`http-equiv`},mustUseProperty:[`checked`,`multiple`,`muted`,`selected`],properties:{abbr:null,accept:Fb,acceptCharset:Pb,accessKey:Pb,action:null,allow:null,allowFullScreen:Z,allowPaymentRequest:Z,allowUserMedia:Z,alpha:Z,alt:null,as:null,async:Z,autoCapitalize:null,autoComplete:Pb,autoFocus:Z,autoPlay:Z,blocking:Pb,capture:null,charSet:null,checked:Z,cite:null,className:Pb,closedBy:null,colorSpace:null,cols:Q,colSpan:Q,command:null,commandFor:null,content:null,contentEditable:Mb,controls:Z,controlsList:Pb,coords:Q|Fb,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Z,defer:Z,dir:null,dirName:null,disabled:Z,download:Nb,draggable:Mb,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Z,formTarget:null,headers:Pb,height:Q,hidden:Nb,high:Q,href:null,hrefLang:null,htmlFor:Pb,httpEquiv:Pb,id:null,imageSizes:null,imageSrcSet:null,inert:Z,inputMode:null,integrity:null,is:null,isMap:Z,itemId:null,itemProp:Pb,itemRef:Pb,itemScope:Z,itemType:Pb,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Z,low:Q,manifest:null,max:null,maxLength:Q,media:null,method:null,min:null,minLength:Q,multiple:Z,muted:Z,name:null,nonce:null,noModule:Z,noValidate:Z,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:Z,optimum:Q,pattern:null,ping:Pb,placeholder:null,playsInline:Z,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Z,referrerPolicy:null,rel:Pb,required:Z,reversed:Z,rows:Q,rowSpan:Q,sandbox:Pb,scope:null,scoped:Z,seamless:Z,selected:Z,shadowRootClonable:Z,shadowRootCustomElementRegistry:Z,shadowRootDelegatesFocus:Z,shadowRootMode:null,shadowRootSerializable:Z,shape:null,size:Q,sizes:null,slot:null,span:Q,spellCheck:Mb,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Q,step:null,style:null,tabIndex:Q,target:null,title:null,translate:null,type:null,typeMustMatch:Z,useMap:null,value:Mb,width:Q,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Pb,axis:null,background:null,bgColor:null,border:Q,borderColor:null,bottomMargin:Q,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Z,declare:Z,event:null,face:null,frame:null,frameBorder:null,hSpace:Q,leftMargin:Q,link:null,longDesc:null,lowSrc:null,marginHeight:Q,marginWidth:Q,noResize:Z,noHref:Z,noShade:Z,noWrap:Z,object:null,profile:null,prompt:null,rev:null,rightMargin:Q,rules:null,scheme:null,scrolling:Mb,standby:null,summary:null,text:null,topMargin:Q,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Q,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:Z,disablePictureInPicture:Z,disableRemotePlayback:Z,exportParts:Fb,part:Pb,prefix:null,property:null,results:Q,security:null,unselectable:null},space:`html`,transform:Wb}),Kb=Vb({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:Ib,accentHeight:Q,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Q,amplitude:Q,arabicForm:null,ascent:Q,attributeName:null,attributeType:null,azimuth:Q,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Q,by:null,calcMode:null,capHeight:Q,className:Pb,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:Q,diffuseConstant:Q,direction:null,display:null,dur:null,divisor:Q,dominantBaseline:null,download:Z,dx:null,dy:null,edgeMode:null,editable:null,elevation:Q,enableBackground:null,end:null,event:null,exponent:Q,externalResourcesRequired:null,fill:null,fillOpacity:Q,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:Fb,g2:Fb,glyphName:Fb,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Q,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Q,horizOriginX:Q,horizOriginY:Q,id:null,ideographic:Q,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Q,k:Q,k1:Q,k2:Q,k3:Q,k4:Q,kernelMatrix:Ib,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Q,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:Q,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:Q,overlineThickness:Q,paintOrder:null,panose1:null,path:null,pathLength:Q,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Pb,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Q,pointsAtY:Q,pointsAtZ:Q,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Ib,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Ib,rev:Ib,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Ib,requiredFeatures:Ib,requiredFonts:Ib,requiredFormats:Ib,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:Q,specularExponent:Q,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Q,strikethroughThickness:Q,string:null,stroke:null,strokeDashArray:Ib,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Q,strokeOpacity:Q,strokeWidth:null,style:null,surfaceScale:Q,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Ib,tabIndex:Q,tableValues:null,target:null,targetX:Q,targetY:Q,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Ib,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Q,underlineThickness:Q,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Q,values:null,vAlphabetic:Q,vMathematical:Q,vectorEffect:null,vHanging:Q,vIdeographic:Q,version:null,vertAdvY:Q,vertOriginX:Q,vertOriginY:Q,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Q,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:`svg`,transform:Ub}),qb=Vb({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()}}),Jb=Vb({attributes:{xmlnsxlink:`xmlns:xlink`},properties:{xmlnsXLink:null,xmlns:null},space:`xmlns`,transform:Wb}),Yb=Vb({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:`xml`,transform(e,t){return`xml:`+t.slice(3).toLowerCase()}}),Xb={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`},Zb=/[A-Z]/g,Qb=/-[a-z]/g,$b=/^data[-\w.:]+$/i;function ex(e,t){let n=Ob(t),r=t,i=kb;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)===`data`&&$b.test(t)){if(t.charAt(4)===`-`){let e=t.slice(5).replace(Qb,nx);r=`data`+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!Qb.test(e)){let n=e.replace(Zb,tx);n.charAt(0)!==`-`&&(n=`-`+n),t=`data`+n}}i=zb}return new i(r,t)}function tx(e){return`-`+e.toLowerCase()}function nx(e){return e.charAt(1).toUpperCase()}var rx=Db([Hb,Gb,qb,Jb,Yb],`html`),ix=Db([Hb,Kb,qb,Jb,Yb],`svg`);function ax(e){return e.join(` `).trim()}var ox=/\/\*(?:[^*]|\*(?!\/))*\*\//g,sx=/\n/g,cx=/^\s*/,lx=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,ux=/^:\s*/,dx=/^((?:'(?:\\.|[^'\\])*'|"(?:\\.|[^"\\])*"|url\((?:'(?:\\.|[^'\\])*'|"(?:\\.|[^"\\])*"|[^)]*)\)|[^};])+)/,fx=/^[;\s]*/,px=`
90
+ `.replace(/\n+/g,` `).replace(/\s+/g,` `).trim();function fh(e,t=`hidden`){return Ys(()=>{let{element:n,manager:r}=e;if(!n||!r)return;let i=ph(n,r.registry.droppables),a=[],o=Tf(n),{remove:s}=o;return mh(i,o,a),hh(o,t),o.remove=()=>{a.forEach(e=>e()),s.call(o)},o})}function ph(e,t){let n=new Map;for(let r of t)if(r.element&&(e===r.element||e.contains(r.element))){let e=`${ih}${om(`dom-id`)}`;r.element.setAttribute(e,``),n.set(r,e)}return n}function mh(e,t,n){for(let[r,i]of e){if(!r.element)continue;let e=`[${i}]`,a=t.matches(e)?t:t.querySelector(e);if(r.element.removeAttribute(i),!a)continue;let o=r.element;r.proxy=a,a.removeAttribute(i),Af.set(o,a),n.push(()=>{Af.delete(o),r.proxy=void 0})}}function hh(e,t=`hidden`){e.setAttribute(`inert`,`true`),e.setAttribute(`tab-index`,`-1`),e.setAttribute(`aria-hidden`,`true`),e.setAttribute(ch,t)}function gh(e,t){return e===t||Nf(e)===Nf(t)}function _h(e){let{target:t}=e;`newState`in e&&e.newState===`closed`&&em(t)&&t.hasAttribute(`popover`)&&requestAnimationFrame(()=>pp(t))}function vh(e){return e.tagName===`TR`}function yh(e,t,n){let r=new MutationObserver(r=>{let i=!1;for(let n of r){if(n.target!==e){i=!0;continue}if(n.type!==`attributes`)continue;let r=n.attributeName;if(r.startsWith(`aria-`)||lh.includes(r))continue;let a=e.getAttribute(r);if(r===`style`){if(Qp(e)&&Qp(t)){let n=e.style;for(let e of Array.from(t.style))n.getPropertyValue(e)===``&&t.style.removeProperty(e);for(let e of Array.from(n)){if(uh.includes(e)||e.startsWith(oh))continue;let r=n.getPropertyValue(e);t.style.setProperty(e,r)}}}else a===null?t.removeAttribute(r):t.setAttribute(r,a)}i&&n&&t.replaceChildren(...e.cloneNode(!0).childNodes)});return r.observe(e,{attributes:!0,subtree:!0,childList:!0}),r}function bh(e,t,n){let r=new MutationObserver(r=>{for(let i of r)if(i.addedNodes.length!==0)for(let r of Array.from(i.addedNodes)){if(r.contains(e)&&e.nextElementSibling!==t){e.insertAdjacentElement(`afterend`,t),pp(n);return}if(r.contains(t)&&t.previousElementSibling!==e){t.insertAdjacentElement(`beforebegin`,e),pp(n);return}}e.isConnected&&t.isConnected&&e.nextElementSibling!==t&&(e.insertAdjacentElement(`afterend`,t),pp(n))});return r.observe(e.ownerDocument.body,{childList:!0,subtree:!0}),r}function xh(e){return new ResizeObserver(()=>{var t;let n=new Xp(e.placeholder,{frameTransform:e.frameTransform,ignoreTransforms:!0}),r=e.transformOrigin??{x:1,y:1},i=(e.width-n.width)*r.x+e.delta.x,a=(e.height-n.height)*r.y+e.delta.y,o=xf();if(e.styles.set({width:n.width-e.widthOffset,height:n.height-e.heightOffset,top:e.top+a+o.y,left:e.left+i+o.x},oh),(t=e.getElementMutationObserver())==null||t.takeRecords(),vh(e.element)&&vh(e.placeholder)){let t=Array.from(e.element.cells),n=Array.from(e.placeholder.cells);e.getSavedCellWidths()||e.setSavedCellWidths(t.map(e=>e.style.width));for(let[e,r]of t.entries()){let t=n[e];r.style.width=`${t.getBoundingClientRect().width}px`}}let s=e.getTranslate()??{x:0,y:0},c=e.left+i+o.x+s.x,l=e.top+a+o.y+s.y,u=n.width-e.widthOffset,d=n.height-e.heightOffset,f=e.frameTransform;e.dragOperation.shape=new Hl(c*f.scaleX+f.x,l*f.scaleY+f.y,u*f.scaleX,d*f.scaleY)})}var Sh=250,Ch=`ease`;function wh(e){var t;let{animation:n}=e;if(typeof n==`function`){let t=n({source:e.source,element:e.element,feedbackElement:e.feedbackElement,placeholder:e.placeholder,translate:e.translate,moved:e.moved});Promise.resolve(t).then(()=>{e.cleanup(),requestAnimationFrame(e.restoreFocus)});return}let{duration:r=Sh,easing:i=Ch}=n??{};pp(e.feedbackElement);let[,a]=rf(e.feedbackElement,e=>`translate`in e)??[];a?.pause();let o=e.placeholder??e.element,s={frameTransform:gh(e.feedbackElement,o)?null:void 0},c=new Xp(e.feedbackElement,s),l=Mp(yp(e.feedbackElement).translate)??e.translate,u=new Xp(o,s),d=Hl.delta(c,u,e.alignment),f={x:l.x-d.x,y:l.y-d.y},p=Math.round(c.intrinsicHeight)===Math.round(u.intrinsicHeight)?{}:{minHeight:[`${c.intrinsicHeight}px`,`${u.intrinsicHeight}px`],maxHeight:[`${c.intrinsicHeight}px`,`${u.intrinsicHeight}px`]},m=Math.round(c.intrinsicWidth)===Math.round(u.intrinsicWidth)?{}:{minWidth:[`${c.intrinsicWidth}px`,`${u.intrinsicWidth}px`],maxWidth:[`${c.intrinsicWidth}px`,`${u.intrinsicWidth}px`]};e.styles.set({transition:e.transition},oh),e.feedbackElement.setAttribute(ah,``),(t=e.getElementMutationObserver())==null||t.takeRecords(),Wp({element:e.feedbackElement,keyframes:Sm(xm(xm({},p),m),{translate:[`${l.x}px ${l.y}px 0`,`${f.x}px ${f.y}px 0`]}),options:{duration:wf(cf(e.feedbackElement))?0:e.moved||e.feedbackElement!==e.element?r:0,easing:i}}).then(()=>{e.feedbackElement.removeAttribute(ah),a?.finish(),e.cleanup(),requestAnimationFrame(e.restoreFocus)})}var Th,Eh,Dh,Oh,kh,Ah,jh,Mh=class extends (Eh=ku,Th=[V],Eh){constructor(e,t){super(e,t),Fm(this,kh),Fm(this,Oh,Am(Dh,8,this)),Am(Dh,11,this),this.state={initial:{},current:{}};let n=e.registry.plugins.get(rh),r=n?.register(dh,{retain:!0});if(r){let e=this.destroy.bind(this);this.destroy=()=>{r(),e()}}this.registerEffect(Lm(this,kh,Ah).bind(this,n)),this.registerEffect(Lm(this,kh,jh))}};Dh=Tm(Eh),Oh=new WeakMap,kh=new WeakSet,Ah=function(e){let{overlay:t}=this;if(!t||!e)return;let n=Cf(t);if(n)return e.addRoot(n)},jh=function(){let{state:e,manager:t,options:n}=this,{dragOperation:r}=t,{position:i,source:a,status:o}=r;if(o.idle){e.current={},e.initial={};return}if(!a)return;let{element:s}=a,c=a.pluginConfig(Mh),l=c?.feedback??n?.feedback??`default`,u=typeof l==`function`?l(a,t):l;if(!s||u===`none`||!o.initialized||o.initializing)return;let{initial:d}=e,f=this.overlay??s,p=kp(f),m=kp(s),h=!gh(s,f),g=new Xp(s,{frameTransform:h?m:null,ignoreTransforms:!h}),_={x:m.scaleX/p.scaleX,y:m.scaleY/p.scaleY},{width:v,height:y,top:b,left:x}=g;h&&(v/=_.x,y/=_.y);let S=new $p(f),C=yp(s),{transition:w,translate:T,boxSizing:E,paddingBlockStart:D,paddingBlockEnd:O,paddingInlineStart:k,paddingInlineEnd:A,borderInlineStartWidth:j,borderInlineEndWidth:M,borderBlockStartWidth:ee,borderBlockEndWidth:N}=C,P=w.split(`,`).filter(e=>!/^\s*(transform|translate|scale)\b/.test(e)).join(`,`),F=Np(C),te=C.transform,ne=u===`clone`,re=E===`content-box`,ie=re?parseInt(k)+parseInt(A)+parseInt(j)+parseInt(M):0,I=re?parseInt(D)+parseInt(O)+parseInt(ee)+parseInt(N):0,ae=u!==`move`&&!this.overlay?fh(a,ne?`clone`:`hidden`):null,oe=Ys(()=>tm(t.dragOperation.activatorEvent));if(!d.translate){if(this.overlay&&F)d.translate={x:F.x,y:F.y};else if(T!==`none`){let e=Mp(T);e&&(d.translate=e)}}if(!d.transformOrigin){let e=Ys(()=>i.current),t=x+(F?.x??0),n=b+(F?.y??0);d.transformOrigin={x:(e.x-t*p.scaleX-p.x)/(v*p.scaleX),y:(e.y-n*p.scaleY-p.y)/(y*p.scaleY)}}let{transformOrigin:se}=d,ce=b*p.scaleY+p.y,le=x*p.scaleX+p.x;if(!d.coordinates&&(d.coordinates={x:le,y:ce},_.x!==1||_.y!==1)){let{scaleX:e,scaleY:t}=m,{x:n,y:r}=se;d.coordinates.x+=(v*e-v)*n,d.coordinates.y+=(y*t-y)*r}d.dimensions||={width:v,height:y},d.frameTransform||=p;let ue={x:d.coordinates.x-le,y:d.coordinates.y-ce},de={width:(d.dimensions.width*d.frameTransform.scaleX-v*p.scaleX)*se.x,height:(d.dimensions.height*d.frameTransform.scaleY-y*p.scaleY)*se.y},fe={x:ue.x/p.scaleX+de.width,y:ue.y/p.scaleY+de.height},pe={left:x+fe.x,top:b+fe.y};f.setAttribute(sh,`true`);let me=Ys(()=>r.transform),he=d.translate??{x:0,y:0},ge=me.x*p.scaleX+he.x,_e=me.y*p.scaleY+he.y,ve=xf();S.set({width:v-ie,height:y-I,top:pe.top+ve.y,left:pe.left+ve.x,translate:`${ge}px ${_e}px 0`,transform:this.overlay?`none`:te,transition:P?`${P}, translate 0ms linear`:`translate 0ms linear`,scale:h?`${_.x} ${_.y}`:``,"transform-origin":`${se.x*100}% ${se.y*100}%`},oh),ae&&(s.insertAdjacentElement(`afterend`,ae),n?.rootElement&&(typeof n.rootElement==`function`?n.rootElement(a):n.rootElement).appendChild(s)),fp(f)&&(f.hasAttribute(`popover`)||f.setAttribute(`popover`,`manual`),pp(f),f.addEventListener(`beforetoggle`,_h));let ye,be,xe,Se=xh({placeholder:ae,element:s,feedbackElement:f,frameTransform:p,transformOrigin:se,width:v,height:y,top:b,left:x,widthOffset:ie,heightOffset:I,delta:fe,styles:S,dragOperation:r,getTranslate:()=>e.current.translate,getElementMutationObserver:()=>ye,getSavedCellWidths:()=>xe,setSavedCellWidths:e=>{xe=e}}),Ce=new Xp(f);Ys(()=>r.shape=Ce);let we=cf(f),Te=e=>{this.manager.actions.stop({event:e})},Ee=wf(we);oe&&we.addEventListener(`resize`,Te),Ys(()=>a.status)===`idle`&&requestAnimationFrame(()=>a.status=`dragging`),ae&&(Se.observe(ae),ye=yh(s,ae,ne),be=bh(s,ae,f));let De=t.dragOperation.source?.id,Oe=()=>{if(!oe||De==null)return;let e=t.registry.draggables.get(De),n=e?.handle??e?.element;uf(n)&&n.focus()},ke=()=>{ye?.disconnect(),be?.disconnect(),Se.disconnect(),we.removeEventListener(`resize`,Te),fp(f)&&(f.removeEventListener(`beforetoggle`,_h),f.removeAttribute(`popover`)),f.removeAttribute(sh),S.reset();let t=()=>{if(xe&&vh(s)){let e=Array.from(s.cells);for(let[t,n]of e.entries())n.style.width=xe[t]??``}a.status=`idle`;let t=e.current.translate!=null,n=r.status.dragging;ae&&(!n&&t||ae.parentElement!==f.parentElement)&&f.isConnected&&ae.replaceWith(f),ae?.remove()};f===this.overlay?setTimeout(t,0):t()},Ae=n?.dropAnimation,je=this,Me=qc(()=>{let{transform:t,status:i}=r;if((t.x||t.y||e.current.translate)&&i.dragging){let i=d.translate??{x:0,y:0},a={x:t.x/p.scaleX+i.x,y:t.y/p.scaleY+i.y},o=e.current.translate,s=Ys(()=>r.modifiers),c=Ys(()=>r.shape?.current),l=n?.keyboardTransition,u=oe&&!Ee&&l!==null?`${l?.duration??250}ms ${l?.easing??`cubic-bezier(0.25, 1, 0.5, 1)`}`:`0ms linear`;if(S.set({transition:P?`${P}, translate ${u}`:`translate ${u}`,translate:`${a.x}px ${a.y}px 0`},oh),ye?.takeRecords(),c&&c!==Ce&&o&&!s.length){let e=Vl.delta(a,o);r.shape=Hl.from(c.boundingRectangle).translate(e.x*p.scaleX,e.y*p.scaleY)}else r.shape=new Xp(f);e.current.translate=a}},function(){if(r.status.dropped){this.dispose(),a.status=`dropping`;let n=c?.dropAnimation===void 0?je.dropAnimation===void 0?Ae:je.dropAnimation:c.dropAnimation,r=e.current.translate,i=r!=null;if(!r&&s!==f&&(r={x:0,y:0}),!r||n===null){ke();return}t.renderer.rendering.then(()=>{wh({source:a,element:s,feedbackElement:f,placeholder:ae,translate:r,moved:i,transition:w,alignment:a.alignment,styles:S,animation:n??void 0,getElementMutationObserver:()=>ye,cleanup:ke,restoreFocus:Oe})})}});return()=>{ke(),Me()}},jm(Dh,4,`overlay`,Th,Mh,Oh),km(Dh,Mh),Mh.configure=Cu(Mh);var Nh=!0,Ph=!1,Fh,Ih,Lh=[V],Rh=Fp.Forward,zh,Bh,Vh;Ih=(Fh=[V],Fp.Reverse);var Hh=class{constructor(){Fm(this,Bh,Am(zh,8,this,Nh)),Am(zh,11,this),Fm(this,Vh,Am(zh,12,this,Nh)),Am(zh,15,this)}isLocked(e){return e===Fp.Idle?!1:e==null?this[Fp.Forward]===Nh&&this[Fp.Reverse]===Nh:this[e]===Nh}unlock(e){e!==Fp.Idle&&(this[e]=Ph)}};zh=Tm(null),Bh=new WeakMap,Vh=new WeakMap,jm(zh,4,Rh,Lh,Hh,Bh),jm(zh,4,Ih,Fh,Hh,Vh),km(zh,Hh);var Uh=[Fp.Forward,Fp.Reverse],Wh=class{constructor(){this.x=new Hh,this.y=new Hh}isLocked(){return this.x.isLocked()&&this.y.isLocked()}},Gh=class extends ku{constructor(e){super(e);let t=ac(new Wh),n=null;this.signal=t,hc(()=>{let{status:r}=e.dragOperation;if(!r.initialized){n=null,t.value=new Wh;return}let{delta:i}=e.dragOperation.position;if(n){let e={x:Kh(i.x,n.x),y:Kh(i.y,n.y)},r=t.peek();Ks(()=>{for(let t of Xl)for(let n of Uh)e[t]===n&&r[t].unlock(n);t.value=r})}n=i})}get current(){return this.signal.peek()}};function Kh(e,t){return Math.sign(e-t)}var qh,Jh,Yh,Xh,Zh,Qh,$h=class extends (Jh=Au,qh=[V],Jh){constructor(e){super(e),Fm(this,Xh,Am(Yh,8,this,!1)),Am(Yh,11,this),Fm(this,Zh),Fm(this,Qh,()=>{if(!Pm(this,Zh))return;let{element:e,by:t}=Pm(this,Zh);t.y&&(e.scrollTop+=t.y),t.x&&(e.scrollLeft+=t.x)}),this.scroll=(e,t)=>{if(this.disabled)return!1;let n=this.getScrollableElements();if(!n)return Im(this,Zh,void 0),!1;let{position:r}=this.manager.dragOperation,i=r?.current;if(i){let{by:r}=e??{},a=r?{x:eg(r.x),y:eg(r.y)}:void 0,o=a?void 0:this.scrollIntentTracker.current;if(o?.isLocked())return!1;for(let e of n){let n=Sp(e),s=wp(e,r,n);if(s.x||s.y){let{speed:s,direction:c}=Rp(e,i,a,t?.acceleration,t?.threshold,void 0,n);if(o)for(let e of Xl)o[e].isLocked(c[e])&&(s[e]=0,c[e]=0);if(c.x||c.y){let{x:t,y:n}=r??c,i=t*s.x,a=n*s.y;if(i||a){let t=Pm(this,Zh)?.by;if(this.autoScrolling&&t&&(t.x&&!i||t.y&&!a))continue;return Im(this,Zh,{element:e,by:{x:i,y:a}}),hp.schedule(Pm(this,Qh)),!0}}}}}return Im(this,Zh,void 0),!1};let t=null,n=null,r=Uc(()=>{let{position:n,source:r}=e.dragOperation;if(!n)return null;let i=Of(Cf(r?.element),n.current);return i&&(t=i),i??t}),i=Uc(()=>{let t=r.value,{documentElement:i}=ff(t);if(!t||t===i){let{target:t}=e.dragOperation,r=t?.element;if(r){let e=Op(r,{excludeElement:!1});return n=e,e}}if(t){let e=Op(t,{excludeElement:!1});return this.autoScrolling&&n&&e.size<n?.size?n:(n=e,e)}return n=null,null},Wc);this.getScrollableElements=()=>i.value,this.scrollIntentTracker=new Gh(e),this.destroy=e.monitor.addEventListener(`dragmove`,t=>{!this.disabled&&!t.defaultPrevented&&tm(e.dragOperation.activatorEvent)&&t.by&&this.scroll({by:t.by})&&t.preventDefault()})}};Yh=Tm(Jh),Xh=new WeakMap,Zh=new WeakMap,Qh=new WeakMap,jm(Yh,4,`autoScrolling`,qh,$h,Xh),km(Yh,$h);function eg(e){return e>0?Fp.Forward:e<0?Fp.Reverse:Fp.Idle}var tg=new class{constructor(e){this.scheduler=e,this.pending=!1,this.tasks=new Set,this.resolvers=new Set,this.flush=()=>{let{tasks:e,resolvers:t}=this;this.pending=!1,this.tasks=new Set,this.resolvers=new Set;for(let t of e)t();for(let e of t)e()}}schedule(e){return this.tasks.add(e),this.pending||(this.pending=!0,this.scheduler(this.flush)),new Promise(e=>this.resolvers.add(e))}}(e=>{typeof requestAnimationFrame==`function`?requestAnimationFrame(e):e()}),ng=10,rg=class extends ku{constructor(e,t){super(e,t);let n=e.registry.plugins.get($h);if(!n)throw Error(`AutoScroller plugin depends on Scroller plugin`);this.destroy=hc(()=>{if(this.disabled)return;let{position:t,status:r}=e.dragOperation;if(r.dragging){let e={acceleration:this.options?.acceleration,threshold:typeof this.options?.threshold==`number`?{x:this.options.threshold,y:this.options.threshold}:this.options?.threshold};if(n.scroll(void 0,e)){n.autoScrolling=!0;let t=setInterval(()=>tg.schedule(()=>n.scroll(void 0,e)),ng);return()=>{clearInterval(t)}}n.autoScrolling=!1}})}};rg.configure=Cu(rg);var ig=rg;function ag(e,t){let n=sg(e.key);return t.some(e=>sg(e)===n)}var og=new Set(`alt.altgraph.backspace.capslock.control.delete.end.enter.escape.home.insert.meta.pagedown.pageup.pause.printscreen.shift.space.tab.arrowdown.arrowleft.arrowright.arrowup.f1.f2.f3.f4.f5.f6.f7.f8.f9.f10.f11.f12`.split(`.`));function sg(e){if(e===` `||e===`Spacebar`)return`space`;if(/^Key[A-Z]$/.test(e))return e.slice(3).toLowerCase();if(/^Digit[0-9]$/.test(e))return e.slice(5);if(e.length===1)return e.toLowerCase();let t=e.toLowerCase();return og.has(t)?t:e}var cg=Object.freeze({offset:10,keyboardCodes:{start:[`Space`,`Enter`],cancel:[`Escape`],end:[`Space`,`Enter`,`Tab`],up:[`ArrowUp`],down:[`ArrowDown`],left:[`ArrowLeft`],right:[`ArrowRight`]},preventActivation(e,t){let n=t.handle??t.element;return e.target!==n}}),lg,ug=class extends Dd{constructor(e,t){super(e),this.manager=e,this.options=t,Fm(this,lg,[]),this.listeners=new Mf,this.handleSourceKeyDown=(e,t,n)=>{if(this.disabled||e.defaultPrevented||!em(e.target)||t.disabled)return;let{keyboardCodes:r=cg.keyboardCodes,preventActivation:i=cg.preventActivation}=n??{};ag(e,r.start)&&this.manager.dragOperation.status.idle&&(i?.(e,t)||this.handleStart(e,t,n))}}bind(e,t=this.options){return hc(()=>{let n=e.handle??e.element,r=n=>{tm(n)&&this.handleSourceKeyDown(n,e,t)};if(n)return n.addEventListener(`keydown`,r),()=>{n.removeEventListener(`keydown`,r)}})}handleStart(e,t,n){let{element:r}=t;if(!r)throw Error(`Source draggable does not have an associated element`);e.preventDefault(),e.stopImmediatePropagation(),zp(r);let{center:i}=new Xp(r);if(this.manager.actions.start({event:e,coordinates:{x:i.x,y:i.y},source:t}).signal.aborted)return this.cleanup();this.sideEffects();let a=ff(r),o=[this.listeners.bind(a,[{type:`keydown`,listener:e=>this.handleKeyDown(e,t,n),options:{capture:!0}}])];Pm(this,lg).push(...o)}handleKeyDown(e,t,n){let{keyboardCodes:r=cg.keyboardCodes}=n??{};if(ag(e,[...r.end,...r.cancel])){e.preventDefault();let t=ag(e,r.cancel);this.handleEnd(e,t)}else ag(e,r.up)?this.handleMove(`up`,e):ag(e,r.down)&&this.handleMove(`down`,e),ag(e,r.left)?this.handleMove(`left`,e):ag(e,r.right)&&this.handleMove(`right`,e)}handleEnd(e,t){this.manager.actions.stop({event:e,canceled:t}),this.cleanup()}handleMove(e,t){let{shape:n}=this.manager.dragOperation,r=t.shiftKey?5:1,i={x:0,y:0},a=this.options?.offset??cg.offset;if(typeof a==`number`&&(a={x:a,y:a}),n){switch(e){case`up`:i={x:0,y:-a.y*r};break;case`down`:i={x:0,y:a.y*r};break;case`left`:i={x:-a.x*r,y:0};break;case`right`:i={x:a.x*r,y:0}}(i.x||i.y)&&(t.preventDefault(),this.manager.actions.move({event:t,by:i}))}}sideEffects(){let e=this.manager.registry.plugins.get(ig);e?.disabled===!1&&(e.disable(),Pm(this,lg).push(()=>{e.enable()}))}cleanup(){Pm(this,lg).forEach(e=>e()),Im(this,lg,[])}destroy(){this.cleanup(),this.listeners.clear()}};lg=new WeakMap,ug.configure=Cu(ug),ug.defaults=cg;var dg,fg=class extends Ad{constructor(){super(...arguments),Fm(this,dg)}onEvent(e){switch(e.type){case`pointerdown`:Im(this,dg,_f(e));break;case`pointermove`:if(!Pm(this,dg))return;let{x:t,y:n}=_f(e),r={x:t-Pm(this,dg).x,y:n-Pm(this,dg).y},{tolerance:i}=this.options;if(i&&Jl(r,i)){this.abort();return}Jl(r,this.options.value)&&this.activate(e);break;case`pointerup`:this.abort()}}abort(){Im(this,dg,void 0)}};dg=new WeakMap;var pg,mg,hg=class extends Ad{constructor(){super(...arguments),Fm(this,pg),Fm(this,mg)}onEvent(e){switch(e.type){case`pointerdown`:Im(this,mg,_f(e)),Im(this,pg,setTimeout(()=>this.activate(e),this.options.value));break;case`pointermove`:if(!Pm(this,mg))return;let{x:t,y:n}=_f(e);Jl({x:t-Pm(this,mg).x,y:n-Pm(this,mg).y},this.options.tolerance)&&this.abort();break;case`pointerup`:this.abort()}}abort(){Pm(this,pg)&&(clearTimeout(Pm(this,pg)),Im(this,mg,void 0),Im(this,pg,void 0))}};pg=new WeakMap,mg=new WeakMap;var gg=class{};gg.Delay=hg,gg.Distance=fg;var _g=Object.freeze({activationConstraints(e,t){let{pointerType:n,target:r}=e;if(n!==`mouse`||!em(r)||t.handle!==r&&!t.handle?.contains(r))return n===`touch`?[new gg.Delay({value:250,tolerance:5})]:rm(r)&&!e.defaultPrevented?[new gg.Delay({value:200,tolerance:0})]:[new gg.Delay({value:200,tolerance:10}),new gg.Distance({value:5})]},preventActivation(e,t){let{target:n}=e;if(n===t.element||n===t.handle||!em(n)||t.handle?.contains(n))return!1;let r=jf(n);return r!==t.element&&!!r}}),vg,yg=class extends Dd{constructor(e,t){super(e),this.manager=e,this.options=t,Fm(this,vg,new Set),this.listeners=new Mf,this.latest={event:void 0,coordinates:void 0},this.handleMove=()=>{let{event:e,coordinates:t}=this.latest;e&&t&&this.manager.actions.move({event:e,to:t})},this.handleCancel=this.handleCancel.bind(this),this.handlePointerUp=this.handlePointerUp.bind(this),this.handleKeyDown=this.handleKeyDown.bind(this)}activationConstraints(e,t,n=this.options){let{activationConstraints:r=_g.activationConstraints}=n??{};return typeof r==`function`?r(e,t):r}bind(e,t=this.options){return hc(()=>{let n=new AbortController,{signal:r}=n,i=n=>{nm(n)&&this.handlePointerDown(n,e,t)},a=[e.handle??e.element];t?.activatorElements&&(a=Array.isArray(t.activatorElements)?t.activatorElements:t.activatorElements(e));for(let e of a)e&&(Tg(e.ownerDocument.defaultView),e.addEventListener(`pointerdown`,i,{signal:r}));return()=>n.abort()})}handlePointerDown(e,t,n){if(this.disabled||!e.isPrimary||e.button!==0||!em(e.target)||t.disabled||xg(e)||!this.manager.dragOperation.status.idle)return;let{preventActivation:r=_g.preventActivation}=n??{};if(r?.(e,t))return;let{target:i}=e,a=uf(i)&&i.draggable&&i.getAttribute(`draggable`)===`true`,o=kp(t.element),{x:s,y:c}=_f(e);this.initialCoordinates={x:s*o.scaleX+o.x,y:c*o.scaleY+o.y};let l=this.activationConstraints(e,t,n);e.sensor=this;let u=new Od(l,e=>this.handleStart(t,e));u.signal.onabort=()=>this.handleCancel(e),u.onEvent(e),this.controller=u;let{pointerId:d}=e,f=e=>t=>{t.pointerId===d&&e(t)},p=yf(),m=this.listeners.bind(p,[{type:`pointermove`,listener:f(e=>this.handlePointerMove(e,t))},{type:`pointerup`,listener:f(this.handlePointerUp),options:{capture:!0}},{type:`pointercancel`,listener:f(this.handleCancel)},{type:`dragstart`,listener:a?this.handleCancel:Sg,options:{capture:!0}}]);Pm(this,vg).add(()=>{m(),this.initialCoordinates=void 0})}handlePointerMove(e,t){var n;this.controller?.activated===!1&&((n=this.controller)==null||n.onEvent(e));let{status:r}=this.manager.dragOperation;if(r.initializing||r.dragging){let n=_f(e),i=kp(t.element);n.x=n.x*i.scaleX+i.x,n.y=n.y*i.scaleY+i.y,e.preventDefault(),e.stopPropagation(),this.latest.event=e,this.latest.coordinates=n,r.dragging&&hp.schedule(this.handleMove)}}handlePointerUp(e){let{status:t}=this.manager.dragOperation;if(!t.idle){e.preventDefault(),e.stopPropagation();let n=!t.initialized,r=ff(e.target),i=r.defaultView;if(!n&&i){let e=e=>{e.target===r.body&&e.detail>0&&(e.preventDefault(),e.stopImmediatePropagation())};i.addEventListener(`click`,e,!0),i.setTimeout(()=>{i.removeEventListener(`click`,e,!0)},0)}this.manager.actions.stop({event:e,canceled:n})}this.cleanup()}handleKeyDown(e){e.key===`Escape`&&(e.preventDefault(),this.handleCancel(e))}handleStart(e,t){let{manager:n,initialCoordinates:r}=this;if(!r||!n.dragOperation.status.idle||t.defaultPrevented)return;let i=n.actions.start({coordinates:r,event:t,source:e});if(i.signal.aborted)return this.cleanup();t.preventDefault();let a=ff(t.target).body;try{a.setPointerCapture(t.pointerId)}catch{this.handleCancel(t);return}let o=em(t.target)?[t.target,a]:a,s=this.listeners.bind(o,[{type:`touchmove`,listener:Sg,options:{passive:!1}},{type:`click`,listener:Sg},{type:`contextmenu`,listener:Sg},{type:`keydown`,listener:this.handleKeyDown}]);Pm(this,vg).add(s),n.renderer.rendering.then(()=>{!i.signal.aborted&&n.dragOperation.status.dragging&&hp.schedule(this.handleMove)})}handleCancel(e){let{dragOperation:t}=this.manager;t.status.initialized&&this.manager.actions.stop({event:e,canceled:!0}),this.cleanup()}cleanup(){let{controller:e}=this;this.controller=void 0,e&&!e.signal.aborted&&e.abort(),this.latest={event:void 0,coordinates:void 0},Pm(this,vg).forEach(e=>e()),Pm(this,vg).clear()}destroy(){this.cleanup(),this.listeners.clear()}};vg=new WeakMap,yg.configure=Cu(yg),yg.defaults=_g;var bg=yg;function xg(e){return`sensor`in e}function Sg(e){e.preventDefault()}function Cg(){}var wg=new WeakSet;function Tg(e){e&&!wg.has(e)&&(e.addEventListener(`touchmove`,Cg,{capture:!1,passive:!1}),wg.add(e))}var Eg,Dg,Og,kg,Ag,jg,Mg=class extends (Og=ed,Dg=[V],Eg=[V],Og){constructor(e,t){var n=e,{element:r,effects:i=()=>[],handle:a}=n,o=wm(n,[`element`,`effects`,`handle`]);super(xm({effects:()=>[...i(),()=>{let{manager:e}=this;if(!e)return;let t=(this.sensors?.map(wu)??[...e.sensors]).map(t=>{let n=t instanceof Dd?t:e.registry.register(t.plugin),r=t instanceof Dd?void 0:t.options;return n.bind(this,r)});return function(){t.forEach(e=>e())}}]},o),t),Fm(this,Ag,Am(kg,8,this)),Am(kg,11,this),Fm(this,jg,Am(kg,12,this)),Am(kg,15,this),this.element=r,this.handle=a}};kg=Tm(Og),Ag=new WeakMap,jg=new WeakMap,jm(kg,4,`handle`,Dg,Mg,Ag),jm(kg,4,`element`,Eg,Mg,jg),km(kg,Mg);var Ng,Pg,Fg,Ig,Lg,Rg,zg,Bg,Vg,Hg,Ug=class extends (Fg=md,Pg=[V],Ng=[V],Fg){constructor(e,t){var n=e,{element:r,effects:i=()=>[]}=n,a=wm(n,[`element`,`effects`]);let{collisionDetector:o=lm}=a,s=e=>{let{manager:t,element:n}=this;if(!n||e===null){this.shape=void 0;return}if(!t)return;let r=new Xp(n),i=Ys(()=>this.shape);return r&&i?.equals(r)?i:(this.shape=r,r)},c=ac(!1);super(Sm(xm({},a),{collisionDetector:o,effects:()=>[...i(),()=>{let{element:e,manager:t}=this;if(!t)return;let{dragOperation:n}=t,{source:r}=n;c.value=!!(r&&n.status.initialized&&e&&!this.disabled&&this.accepts(r))},()=>{let{element:e}=this;if(c.value&&e){let t=new dp(e,s);return()=>{t.disconnect(),this.shape=void 0}}},()=>{if(this.manager?.dragOperation.status.initialized)return()=>{this.shape=void 0}}]}),t),Fm(this,Vg),Fm(this,Lg,Am(Ig,8,this)),Am(Ig,11,this),Fm(this,Hg,Am(Ig,12,this)),Am(Ig,15,this),this.element=r,this.refreshShape=()=>s()}set element(e){Im(this,Vg,e,Bg)}get element(){return this.proxy??Pm(this,Vg,zg)}};Ig=Tm(Fg),Lg=new WeakMap,Vg=new WeakSet,Hg=new WeakMap,Rg=jm(Ig,20,`#element`,Pg,Vg,Lg),zg=Rg.get,Bg=Rg.set,jm(Ig,4,`proxy`,Ng,Ug,Hg),km(Ig,Ug);var Wg={Root:B(`shrink-0`,`animate-[hub-spin_var(--hub-duration-loop)_linear_infinite] motion-reduce:animate-none`)},Gg={sm:14,md:16,lg:20};function Kg({size:e=`md`,label:t,strokeWidth:n=1.8,className:r,...i}){let a=t===void 0&&i[`aria-label`]===void 0&&i[`aria-labelledby`]===void 0;return(0,R.jsx)(zs,{...i,size:Gg[e],strokeWidth:n,role:a?i.role:i.role??`status`,"aria-label":t??i[`aria-label`],"aria-hidden":a?i[`aria-hidden`]??!0:void 0,className:B(Wg.Root,r)})}var qg=`focus-visible:outline-1 focus-visible:outline-solid focus-visible:outline-hub-focus-ring`,Jg=`peer-focus-visible:outline-1 peer-focus-visible:outline-solid peer-focus-visible:outline-offset-2 peer-focus-visible:outline-hub-focus-ring`,Yg={Root:B(`inline-flex items-center justify-center gap-1.5`,`box-border select-none whitespace-nowrap rounded-full`,`border-(length:--hub-hairline) border-solid border-transparent`,`font-sans leading-[normal]`,`transition-colors duration-(--hub-duration-normal) motion-reduce:transition-none`,qg,`disabled:cursor-not-allowed disabled:opacity-50`,`data-loading:pointer-events-none data-loading:opacity-50`),variants:{primary:`bg-hub-primary-solid text-hub-primary-contrast shadow-hub-xs enabled:hover:bg-hub-primary-solid-hover focus-visible:outline-offset-2`,secondary:B(`relative bg-hub-bg-panel text-hub-fg-control focus-visible:outline-offset-0`,`enabled:hover:bg-hub-bg-hover`,`after:pointer-events-none after:absolute after:inset-0 after:rounded-[inherit]`,`after:shadow-hub-sm enabled:hover:after:shadow-hub-sm-hover`),ghost:`bg-transparent text-hub-fg-control enabled:hover:bg-hub-bg-hover focus-visible:outline-offset-0`,danger:`bg-hub-error-solid text-hub-error-contrast shadow-hub-xs enabled:hover:bg-hub-error-solid-hover focus-visible:outline-offset-2`,"danger-ghost":`bg-transparent text-hub-error-solid enabled:hover:bg-hub-error-solid/10 focus-visible:outline-offset-0`,link:`bg-transparent font-normal text-hub-fg-muted enabled:hover:text-hub-fg-title focus-visible:outline-offset-2`},sizes:{sm:`text-hub-sm`,md:`text-hub-sm`,lg:`text-hub-md`},frames:{sm:`h-6 px-2 font-medium`,md:`h-7 px-2.5 font-medium`,lg:`h-8 px-3 font-medium`},spinners:{sm:`size-3`,md:`size-3.25`,lg:`size-3.5`}};function Xg({variant:e=`primary`,size:t=`md`,type:n=`button`,icon:r,loading:i=!1,className:a,children:o,onClick:s,...c}){return(0,R.jsxs)(`button`,{...c,type:n,"aria-busy":i||c[`aria-busy`],"aria-disabled":i||c[`aria-disabled`],"data-loading":i||void 0,onClick:i?e=>e.preventDefault():s,className:B(Yg.Root,Yg.variants[e],Yg.sizes[t],e!==`link`&&Yg.frames[t],a),children:[i?(0,R.jsx)(Kg,{className:Yg.spinners[t]}):r,o]})}var Zg=`duration-(--hub-duration-fast) disabled:cursor-not-allowed disabled:opacity-50`,Qg={Root:B(`flex-none select-none place-items-center border-0 p-0 focus-visible:outline-offset-0`,`transition-colors motion-reduce:transition-none`,qg,`aria-pressed:bg-hub-bg-muted aria-pressed:text-hub-fg-title aria-pressed:shadow-[0_0_0_var(--hub-hairline)_var(--hub-border-emphasized)]`,`aria-pressed:enabled:hover:bg-hub-bg-muted aria-pressed:enabled:hover:text-hub-fg-title aria-pressed:enabled:active:bg-hub-bg-muted`,`aria-pressed:enabled:hover:shadow-[0_0_0_var(--hub-hairline)_var(--hub-border-emphasized)]`,`data-loading:pointer-events-none data-loading:opacity-50`),sizes:{xs:`size-4 [&_svg]:size-3`,sm:`size-6 [&_svg]:size-3.5`,md:B(`size-7 [&_svg]:size-3.5`,`[&_.lucide-search]:scale-90 [&_.lucide-list-filter]:scale-95 [&_.lucide-square-pen]:scale-97`,`[&_.lucide-settings-2]:scale-x-115 [&_.lucide-settings-2]:scale-y-95 [&_.lucide-panel-right]:scale-x-105 [&_.lucide-panel-right]:scale-y-90`),lg:`size-8 [&_svg]:size-4`},variants:{surface:B(`inline-grid rounded-full bg-hub-bg-panel text-hub-fg-muted shadow-hub-sm`,Zg,`enabled:hover:bg-hub-bg-hover enabled:hover:text-hub-fg-control enabled:hover:shadow-hub-sm-hover enabled:active:bg-hub-bg-emphasized`),ghost:B(`inline-grid rounded-full bg-transparent text-hub-fg-secondary`,Zg,`enabled:hover:bg-hub-bg-overlay-hover enabled:hover:text-hub-fg-title enabled:active:bg-hub-bg-muted`),inline:B(`relative inline-flex justify-center rounded-(--hub-radius-compact) bg-transparent align-[-2.5px] text-hub-fg-faint`,`duration-(--hub-duration-normal) disabled:cursor-default disabled:opacity-60`,`enabled:cursor-pointer enabled:hover:bg-hub-bg-muted enabled:hover:text-hub-fg-strong`,`before:absolute before:-inset-0.5 before:content-[""]`)}};function $g({className:e,size:t=`md`,type:n=`button`,variant:r=`surface`,pressed:i,loading:a=!1,children:o,onClick:s,...c}){return(0,R.jsx)(`button`,{...c,type:n,"aria-pressed":i,"aria-busy":a||c[`aria-busy`],"aria-disabled":a||c[`aria-disabled`],"data-loading":a||void 0,onClick:a?e=>e.preventDefault():s,className:B(Qg.Root,Qg.sizes[t],Qg.variants[r],e),children:a?(0,R.jsx)(Kg,{}):o})}var e_=B(`my-0 mx-[calc(var(--spacing,0.25rem)*-1.5-1px)]! box-border min-w-0`,`rounded-(--hub-radius-inner) border border-solid px-1.5 py-0.5`),t_=`col-start-1 row-start-1 min-h-0 min-w-0 whitespace-pre-wrap [overflow-wrap:anywhere]`;B(e_,`hub-inline-edit-row cursor-text border-transparent [overflow-wrap:anywhere]`),B(e_,`grid grid-rows-[minmax(0,1fr)] bg-transparent`),B(t_,`pointer-events-none invisible overflow-hidden`),B(t_,`m-0 block h-full w-full resize-none overflow-y-auto border-0 bg-transparent p-0 outline-none`,`placeholder:text-hub-fg-faint`);var n_={Root:`group/checkbox relative inline-flex size-3.5 flex-none align-middle`,Input:B(`peer absolute inset-0 z-(--hub-z-raised) m-0 size-full cursor-pointer opacity-0`,`disabled:cursor-default`),Surface:B(`pointer-events-none box-border grid size-full place-items-center rounded-hub-sm border border-solid`,`border-hub-border-strong bg-transparent text-hub-primary-contrast`,`transition-colors duration-(--hub-duration-fast) ease-out motion-reduce:transition-none`,`peer-checked:border-hub-primary-solid peer-checked:bg-hub-primary-solid`,`peer-indeterminate:border-hub-primary-solid peer-indeterminate:bg-hub-primary-solid`,`peer-[:enabled:hover]:border-hub-primary-solid-hover`,Jg,`peer-disabled:opacity-50`),Check:`hidden [grid-area:1/1] group-has-[:checked:not(:indeterminate)]/checkbox:block`,Mixed:`hidden [grid-area:1/1] group-has-[:indeterminate]/checkbox:block`};function r_({indeterminate:e=!1,className:t,ref:n,...r}){let i=(0,p.useRef)(null),a=(0,p.useCallback)(e=>{if(i.current=e,typeof n==`function`)return n(e);n&&(n.current=e)},[n]);return(0,p.useLayoutEffect)(()=>{i.current&&(i.current.indeterminate=e)},[e]),(0,R.jsxs)(`span`,{className:B(n_.Root,t),children:[(0,R.jsx)(`input`,{...r,ref:a,type:`checkbox`,className:n_.Input}),(0,R.jsxs)(`span`,{className:n_.Surface,"aria-hidden":`true`,children:[(0,R.jsx)(ks,{className:n_.Check,size:12,strokeWidth:2.5}),(0,R.jsx)(Vs,{className:n_.Mixed,size:12,strokeWidth:2.5})]})]})}var i_={Root:`pointer-events-none block flex-none`,orientations:{horizontal:`h-(--hub-hairline) w-full`,vertical:`w-(--hub-hairline) self-stretch`},tones:{default:`bg-hub-border`,subtle:`bg-hub-border-subtle`}};function a_(e,t,n,r){return t?{[e]:0,left:n,right:n,width:r??`auto`}:{[e]:0,top:n,bottom:n,height:r}}function o_(e,t,n){let r=n===void 0?{}:{alignSelf:`center`};if(!e)return{marginBlock:t,height:n,...r};let i=t?`calc(100% - ${t*2}px)`:void 0;return{marginInline:t,width:n??i,...r}}function s_({orientation:e=`horizontal`,tone:t=`default`,edge:n,inset:r=0,length:i,className:a,style:o,...s}){let c=n?n===`left`||n===`right`?`vertical`:`horizontal`:e,l=c===`horizontal`,u=n?a_(n,l,r,i):o_(l,r,i);return(0,R.jsx)(`span`,{...s,"aria-hidden":`true`,"data-divider":``,"data-orientation":c,"data-tone":t,"data-edge":n,className:B(i_.Root,i_.orientations[c],i_.tones[t],n&&`absolute`,a),style:{...u,...o}})}var c_=`pointer-events-none absolute inset-y-0 left-[calc((var(--hub-hit-area)_-_1px)_/_2)]`,l_={Root:B(`group/resize absolute z-(--hub-z-raised) w-(--hub-hit-area) touch-none select-none cursor-col-resize outline-none`),edges:{left:`left-[calc(var(--hub-hit-area)_/_-2)]`,right:`right-[calc(var(--hub-hit-area)_/_-2)]`},Line:B(c_,`[&]:bg-hub-border-control`),Feedback:B(c_,`w-px origin-left scale-x-50 overflow-hidden bg-hub-border-control opacity-0`,`[mask-image:linear-gradient(transparent,black_10%,black_90%,transparent)]`,`transition-opacity duration-(--hub-duration-slow) ease-in-out motion-reduce:transition-none`,`group-hover/resize:opacity-100 group-data-[dragging=true]/resize:opacity-100`,`group-focus-visible/resize:opacity-100`),Gradient:B(`absolute -top-1/2 left-0 h-[200%] w-full bg-hub-fg`,`[mask-image:linear-gradient(transparent_5%,black_40%,black_60%,transparent_95%)]`),DragShield:`fixed inset-0 z-(--hub-z-overlay) cursor-col-resize`};function u_({label:e,controls:t,value:n,min:r,max:i,defaultValue:a,step:o=16,showDivider:s=!0,inset:c=0,edge:l=`right`,onChange:u,className:d,style:f,...m}){let h=l===`right`?1:-1,g=(0,p.useRef)(void 0),_=(0,p.useRef)(null),v=e=>{let t=e.currentTarget.getBoundingClientRect();_.current&&(_.current.style.transform=`translateY(${e.clientY-t.top-t.height/2}px)`)},[y,b]=(0,p.useState)(!1),x=e=>u(Math.max(r,Math.min(i,e)));return(0,R.jsxs)(`div`,{...m,role:`separator`,"aria-label":e,"aria-controls":t,"aria-orientation":`vertical`,"aria-valuemin":r,"aria-valuemax":i,"aria-valuenow":n,tabIndex:0,className:B(l_.Root,l_.edges[l],d),style:{insetBlock:c,...f},"data-resize-handle":!0,"data-dragging":y,onDoubleClick:()=>{a!==void 0&&x(a)},onKeyDown:e=>{let t={Home:r,End:i,ArrowLeft:n-o*h,ArrowRight:n+o*h}[e.key];t!==void 0&&(e.preventDefault(),e.stopPropagation(),x(t))},onPointerEnter:v,onPointerDown:e=>{e.button===0&&e.isPrimary&&!g.current&&(e.preventDefault(),v(e),e.currentTarget.focus(),e.currentTarget.setPointerCapture(e.pointerId),g.current={pointerId:e.pointerId,x:e.clientX,width:n},b(!0))},onPointerMove:e=>{v(e);let t=g.current;t?.pointerId===e.pointerId&&x(t.width+(e.clientX-t.x)*h)},onPointerUp:e=>{g.current?.pointerId===e.pointerId&&(e.currentTarget.hasPointerCapture(e.pointerId)&&e.currentTarget.releasePointerCapture(e.pointerId),g.current=void 0,b(!1))},onLostPointerCapture:()=>{g.current=void 0,b(!1)},onPointerCancel:()=>{g.current=void 0,b(!1)},children:[s&&(0,R.jsx)(s_,{orientation:`vertical`,className:l_.Line}),(0,R.jsx)(`span`,{"aria-hidden":!0,className:l_.Feedback,children:(0,R.jsx)(`span`,{ref:_,className:l_.Gradient})}),y?(0,R.jsx)(`div`,{"aria-hidden":!0,className:l_.DragShield}):null]})}var d_={Viewport:B(`fixed bottom-6 right-6 z-(--hub-z-toast)`,`flex max-w-[calc(100vw_-_var(--hub-float-gutter)_*_2)] flex-col items-end gap-2`),Root:B(`max-w-full`,`animate-[hub-toast-in_var(--hub-duration-enter)_ease]`,`data-closing:pointer-events-none data-closing:animate-[hub-toast-out_var(--hub-duration-exit)_ease_forwards]`,`motion-reduce:animate-none motion-reduce:data-closing:animate-none`),Card:B(`relative box-border flex w-96 max-w-[min(100%,calc(100vw_-_var(--hub-float-gutter)_*_2))] items-start gap-2`,`rounded-hub-lg border-(length:--hub-hairline) border-solid border-transparent bg-hub-bg-panel p-3`,`after:pointer-events-none after:absolute after:inset-0 after:rounded-[inherit]`,`after:shadow-hub-md after:ring-(length:--hub-hairline) after:ring-hub-border-subtle`,`font-sans text-hub-md leading-4 text-hub-fg-muted antialiased`),icons:{info:B(`size-4 shrink-0 text-hub-fg-muted [&_circle]:fill-current`,`[&_path]:stroke-hub-bg-panel [&_line]:stroke-hub-bg-panel`),success:B(`grid size-4 shrink-0 place-items-center rounded-full`,`bg-hub-success-solid text-hub-success-contrast`),error:`size-4 shrink-0 text-hub-error-solid`},Content:`min-w-0 flex-1 break-words`,Message:`font-medium leading-[normal] text-hub-fg-title`,Description:`mt-2 line-clamp-2 leading-5 text-hub-fg-muted`,Action:B(`mt-3 block cursor-pointer border-0 bg-transparent p-0`,`font-sans text-hub-md leading-5 text-hub-primary-solid`,`enabled:hover:underline`,qg,`disabled:cursor-not-allowed disabled:opacity-50`),Close:`-m-1 enabled:hover:bg-hub-bg-hover-subtle enabled:hover:text-hub-fg-control`};function f_(e,t){return getComputedStyle(e).getPropertyValue(t).trim()}function p_(e,t){return parseFloat(f_(e,t))}function m_(e,t){let n=f_(e,t);return(n.endsWith(`ms`)?parseFloat(n):parseFloat(n)*1e3)||0}var h_=()=>matchMedia(`(prefers-reduced-motion: reduce)`).matches;function g_({message:e,description:t,variant:n=`info`,action:r,duration:i=n===`error`?8e3:4e3,revision:a=0,closeLabel:o,onDismiss:s,className:c,onMouseEnter:l,onMouseLeave:u,onFocus:d,onBlur:f,...m}){let h=(0,p.useRef)(null),g=(0,p.useRef)(a),_=(0,p.useRef)(s);_.current=s;let[v,y]=(0,p.useState)(!1),[b,x]=(0,p.useState)(!1),[S,C]=(0,p.useState)(!1),[w,T]=(0,p.useState)(!1),E=v||b;(0,p.useEffect)(()=>{if(g.current===a)return;g.current=a,T(!1);let e=h.current;if(!e||h_())return;let t=e.animate([{transform:`scale(1)`,easing:`ease-out`,offset:0},{transform:`scale(1.05)`,easing:`linear`,offset:.125},{transform:`scale(1.05)`,easing:`ease-in-out`,offset:.25},{transform:`scale(1)`,offset:1}],{duration:m_(e,`--hub-duration-emphasis`)});return()=>t.cancel()},[a]),(0,p.useEffect)(()=>{if(!i||E||S)return;let e=setTimeout(()=>T(!0),i);return()=>clearTimeout(e)},[i,a,E,S]),(0,p.useEffect)(()=>{if(!w)return;let e=!1,t=h.current?.parentElement?.getAnimations()??[];return Promise.allSettled(t.map(e=>e.finished)).then(()=>{e||_.current()}),()=>{e=!0}},[w]);let D=async()=>{if(!S&&r){C(!0);try{await r.onClick(),T(!0)}finally{C(!1)}}};return(0,R.jsx)(`div`,{...m,className:B(d_.Root,c),"data-closing":w||void 0,onMouseEnter:e=>{y(!0),l?.(e)},onMouseLeave:e=>{y(!1),u?.(e)},onFocus:e=>{x(!0),d?.(e)},onBlur:e=>{e.currentTarget.contains(e.relatedTarget)||x(!1),f?.(e)},children:(0,R.jsxs)(`div`,{ref:h,className:d_.Card,"data-variant":n,"data-expanded":!!(t||r)||void 0,children:[(0,R.jsx)(`span`,{className:d_.icons[n],children:n===`success`?(0,R.jsx)(ks,{size:11,strokeWidth:3,"aria-hidden":!0}):n===`error`?(0,R.jsx)(Fs,{size:16,"aria-hidden":!0}):(0,R.jsx)(Ls,{size:16,"aria-hidden":!0})}),(0,R.jsxs)(`div`,{className:d_.Content,children:[(0,R.jsx)(`div`,{role:n===`error`?`alert`:`status`,"aria-atomic":`true`,className:d_.Message,children:e}),t&&(0,R.jsx)(`div`,{className:d_.Description,children:t}),r&&(0,R.jsx)(`button`,{type:`button`,className:d_.Action,disabled:S,onClick:()=>void D(),children:r.label})]}),(0,R.jsx)($g,{variant:`ghost`,size:`sm`,className:d_.Close,"aria-label":o,disabled:S,onClick:()=>T(!0),children:(0,R.jsx)(Us,{"aria-hidden":!0})})]})})}function __({store:e,closeLabel:t,className:n,...r}){let i=(0,p.useSyncExternalStore)(e.subscribe,e.getSnapshot,e.getSnapshot);return i.length===0?null:(0,R.jsx)(`div`,{role:`region`,...r,className:B(d_.Viewport,n),children:i.map(({id:n,options:{onClose:r,...i},revision:a})=>(0,R.jsx)(g_,{...i,revision:a,closeLabel:t,onDismiss:()=>e.dismiss(n)},n))})}var v_=(e,t)=>e.message===t.message&&e.description===t.description&&(e.variant??`info`)===(t.variant??`info`)&&!e.action&&!t.action,y_=class{items=[];listeners=new Set;max;nextId=0;constructor(e={}){this.max=Math.max(1,e.max??1)}subscribe=e=>(this.listeners.add(e),()=>{this.listeners.delete(e)});getSnapshot=()=>this.items;show(e){let t=this.items.find(t=>v_(t.options,e));if(t)return this.commit(this.items.map(n=>n===t?{...n,options:e,revision:n.revision+1}:n)),t.id;let n=`toast-${++this.nextId}`;return this.commit([...this.items,{id:n,options:e,revision:0}].slice(-this.max)),n}dismiss(e){let t=e===void 0?[]:this.items.filter(t=>t.id!==e);t.length!==this.items.length&&this.commit(t)}commit(e){let t=this.items.filter(t=>!e.some(({id:e})=>e===t.id));this.items=e;for(let e of[...this.listeners])e();for(let e of t)e.options.onClose?.()}};function b_(e){return{gutter:p_(e,`--hub-menu-gutter`),maxHeight:p_(e,`--hub-menu-max-height`),affordance:p_(e,`--hub-scroll-affordance`)}}function x_({placement:e=`auto`,trigger:t,viewport:n,metrics:r,panelWidth:i,borderHeight:a,contentHeight:o,row:s}){let{gutter:c,maxHeight:l,affordance:u}=r,d=s?.height??t.height,f=s?.top??0,p=Math.min(Math.max(t.width,i),n.width-c*2),m=Math.max(c,Math.min(t.left,n.width-p-c)),h=t.top+t.height/2,g=f+d/2,_=h-g,v=Math.min(o,l,n.height-c*2);if(e===`bottom`){let e=Math.max(0,Math.min(v,n.height-t.bottom-c-a));return{placement:`below`,top:t.bottom,left:m,width:p,maxHeight:e,scrollTop:Math.max(0,g-e/2)}}if(h-c>=u+d/2&&n.height-c-h>=u+d/2){let e=Math.max(c,_),t=Math.min(v,o-Math.max(0,e-_)),r=Math.min(t,n.height-c-e),i=s?.hasNext?u:o-(f+d);return h-e>r-i-d/2&&(e=h-r+i+d/2),{placement:`aligned`,top:e,left:m,width:p,maxHeight:Math.max(d,r),scrollTop:Math.max(0,g-(h-e))}}let y=n.height-t.bottom-c,b=t.top-c,x=y>=v||y>=b,S=Math.min(v,x?y:b),C=Math.max(d,S),w=x?t.bottom:t.top-Math.min(o,C)-a;return{placement:x?`below`:`above`,top:w,left:m,width:p,maxHeight:C,scrollTop:Math.max(0,g-S/2)}}var S_={Root:`inline-flex min-w-0 align-middle`,Trigger:B(`relative inline-flex min-w-0 items-center gap-2 box-border cursor-default`,`rounded-(--hub-radius-md) border-(length:--hub-hairline) border-solid border-transparent shadow-hub-sm`,`bg-hub-bg-panel text-hub-fg-control font-sans font-normal`,`px-2.5 outline-none focus-visible:outline-offset-0 enabled:hover:bg-hub-bg-hover enabled:hover:shadow-none aria-expanded:bg-hub-bg-muted`,`after:pointer-events-none after:absolute after:inset-0 after:rounded-[inherit] enabled:hover:after:shadow-hub-sm-hover`,`disabled:opacity-50 disabled:pointer-events-none`,qg),Size:{small:`h-(--hub-control-height-sm) text-hub-sm`,default:`h-(--hub-control-height-md) text-hub-md`},Font:{small:`text-hub-sm`,default:`text-hub-md`},Row:{small:`h-(--hub-control-height-sm)`,default:`h-(--hub-row-height-md)`},Label:`min-w-0 flex-1 truncate text-left`,Icon:`inline-flex shrink-0 items-center justify-center`,Chevron:B(`pointer-events-none h-2 w-2.5 shrink-0 scale-180 text-hub-fg-muted`,`[&>path]:origin-center [&>path]:scale-x-90 [&>path]:scale-y-80 [&>path]:stroke-[3.5]`),Check:`size-4 shrink-0 text-hub-fg-muted`,Popup:B(`fixed inset-auto m-0 p-0 box-border w-max max-w-[calc(100vw-var(--hub-menu-gutter)*2)]`,`overflow-hidden rounded-hub-lg border-0 bg-hub-bg-panel text-hub-fg-control outline-none`,`ring-(length:--hub-hairline) ring-hub-border-control shadow-hub-md`,`font-sans font-normal`),List:`relative box-border overflow-y-auto overscroll-contain p-1 [scrollbar-width:none] [&::-webkit-scrollbar]:hidden`,Option:B(`relative flex box-border cursor-default items-center gap-2 px-2 aria-[selected=false]:pe-8 rounded-(--hub-radius-md)`,`whitespace-nowrap outline-none data-active:bg-hub-bg-hover aria-disabled:opacity-40`,`[&>.lucide-check>path]:origin-center [&>.lucide-check>path]:scale-x-80 [&>.lucide-check>path]:scale-y-89 [&>.lucide-check>path]:translate-y-px`,`[&>.lucide-check>path]:[vector-effect:non-scaling-stroke] [&>.lucide-check>path]:stroke-[1.5]`),Scroll:B(`absolute inset-x-0 z-(--hub-z-raised) flex h-(--hub-scroll-affordance) items-center justify-center`,`cursor-default text-hub-fg-muted backdrop-blur-sm`),ScrollTop:`top-0 bg-linear-to-b from-hub-bg-panel via-hub-bg-panel/90 to-hub-bg-panel/50`,ScrollBottom:`bottom-0 bg-linear-to-t from-hub-bg-panel via-hub-bg-panel/90 to-hub-bg-panel/50`},C_=e=>e.scrollTop<=1,w_=e=>e.scrollTop+e.clientHeight>=e.scrollHeight-1;function T_(e){let[t,n]=(0,p.useState)({top:!1,bottom:!1}),r=(0,p.useRef)(void 0),i=()=>{let t=e.current;if(!t)return;let r=!C_(t),i=!w_(t);n(e=>e.top===r&&e.bottom===i?e:{top:r,bottom:i})},a=()=>{clearInterval(r.current),r.current=void 0};return(0,p.useEffect)(()=>a,[]),{edges:t,update:i,start:t=>{a();let n=t===`top`?-1:1;r.current=setInterval(()=>{let t=e.current;t?(t.scrollBy({top:n*4}),(n<0?t.scrollTop<=0:w_(t))&&a()):a()},16)},stop:a}}function E_({value:e,defaultValue:t,onValueChange:n,trigger:r,form:i}){let[a,o]=(0,p.useState)(t??``),s=e!==void 0,c=e??a;return(0,p.useEffect)(()=>{let e=r.current?.form;if(!e||s)return;let n=new Set,i=e=>{let r=setTimeout(()=>{n.delete(r),e.defaultPrevented||o(t??``)});n.add(r)};return e.addEventListener(`reset`,i),()=>{e.removeEventListener(`reset`,i),n.forEach(clearTimeout)}},[s,t,i,r]),{current:c,commit:e=>{s||o(e),e!==c&&n?.(e)}}}var D_=new Set([`ArrowDown`,`ArrowUp`,`Enter`,` `]),O_=new Set([`ArrowDown`,`ArrowUp`,`Home`,`End`,`Enter`,` `,`Escape`]),k_=[{side:`top`,className:S_.ScrollTop,Icon:Ns},{side:`bottom`,className:S_.ScrollBottom,Icon:js}];function A_({icon:e,label:t}){return(0,R.jsxs)(R.Fragment,{children:[e&&(0,R.jsx)(`span`,{className:S_.Icon,children:e}),(0,R.jsx)(`span`,{className:S_.Label,children:t})]})}function j_({options:e,value:t,defaultValue:n,onValueChange:r,size:i=`default`,placement:a=`auto`,placeholder:o=`请选择`,name:s,disabled:c,className:l,onKeyDown:u,onClick:d,...f}){let m=(0,p.useRef)(null),h=(0,p.useRef)(null),g=(0,p.useRef)(null),_=(0,p.useRef)(void 0),{current:v,commit:y}=E_({value:t,defaultValue:n,onValueChange:r,trigger:m,form:f.form}),b=T_(g),[x,S]=(0,p.useState)(!1),[C,w]=(0,p.useState)(-1),T=(0,p.useId)(),E=e.findIndex(e=>e.value===v),D=e[E],O=c||!e.length,k=e.map((e,t)=>e.disabled?-1:t).filter(e=>e>=0),A=e.map(e=>[e.value,e.label,+!!e.disabled].join(`\0`)).join(``),j=()=>{b.stop(),S(!1)},M=(e=!0)=>{j(),h.current?.matches(`:popover-open`)&&h.current.hidePopover(),e&&m.current?.focus({preventScroll:!0})},ee=t=>{let n=e[t];n&&!n.disabled&&(y(n.value),M())},N=e=>{w(e);let t=g.current,n=t?.children[e];if(!t||!n)return;let r=_.current?.affordance??0,i=n.offsetTop;i<t.scrollTop+r?t.scrollTop=Math.max(0,i-r):i+n.offsetHeight>t.scrollTop+t.clientHeight-r&&(t.scrollTop=i+n.offsetHeight-t.clientHeight+r),b.update()},P=e=>{let{key:t}=e;if(!x)D_.has(t)&&(e.preventDefault(),S(!0));else if(t===`Tab`)M();else if(O_.has(t)){if(e.preventDefault(),e.stopPropagation(),t===`Escape`)M();else if(t===`Enter`||t===` `)ee(C);else if(t===`Home`)N(k[0]??-1);else if(t===`End`)N(k.at(-1)??-1);else{let e=k.indexOf(C)+(t===`ArrowDown`?1:-1);N(k[Math.max(0,Math.min(k.length-1,e))]??-1)}}},F=e=>{d?.(e),!e.defaultPrevented&&(x?M():S(!0))},te=e=>{u?.(e),e.defaultPrevented||P(e)},ne=e=>{e.newState===`closed`&&j()};return(0,p.useLayoutEffect)(()=>{if(!x||O)return;let e=h.current,t=g.current;e.showPopover(),e.style.visibility=`hidden`,e.style.width=``,t.style.maxHeight=``,t.scrollTop=0;let n=D&&!D.disabled?E:k[0]??-1;w(n),_.current=b_(e);let r=t.children[Math.max(0,n)],i=e.getBoundingClientRect(),o=x_({placement:a,trigger:m.current.getBoundingClientRect(),viewport:{width:window.innerWidth,height:window.innerHeight},metrics:_.current,panelWidth:i.width,borderHeight:i.height-t.getBoundingClientRect().height,contentHeight:t.scrollHeight,row:r&&{top:r.offsetTop,height:r.offsetHeight,hasNext:!!r.nextElementSibling}});return e.dataset.placement=o.placement,e.style.top=`${o.top}px`,e.style.left=`${o.left}px`,e.style.width=`${o.width}px`,t.style.maxHeight=`${o.maxHeight}px`,t.scrollTop=o.scrollTop,e.style.visibility=``,e.focus({preventScroll:!0}),b.update(),b.stop},[x,O,A,a]),(0,p.useEffect)(()=>{let e=m.current;if(!x||O||!e)return;let t=()=>M(!1),n=({target:n})=>{(n===window||n instanceof Node&&n.contains(e))&&t()};return window.addEventListener(`resize`,t),window.addEventListener(`scroll`,n,!0),()=>{window.removeEventListener(`resize`,t),window.removeEventListener(`scroll`,n,!0)}},[x,O]),(0,p.useEffect)(()=>{O&&M(!1)},[O]),(0,R.jsxs)(`span`,{className:S_.Root,children:[s&&(0,R.jsx)(`input`,{type:`hidden`,name:s,form:f.form,value:v,disabled:O}),(0,R.jsxs)(`button`,{...f,ref:m,type:`button`,role:`combobox`,"aria-haspopup":`listbox`,"aria-expanded":x,"aria-controls":T,disabled:O,className:B(S_.Trigger,S_.Size[i],l),"data-size":i,onClick:F,onKeyDown:te,children:[(0,R.jsx)(A_,{icon:D?.icon,label:D?.label??o}),(0,R.jsx)(js,{className:S_.Chevron,"aria-hidden":`true`})]}),(0,R.jsxs)(`div`,{ref:h,popover:`auto`,id:T,role:`listbox`,tabIndex:-1,"aria-label":f[`aria-label`],"aria-labelledby":f[`aria-labelledby`],"aria-activedescendant":C>=0?`${T}-${C}`:void 0,className:B(S_.Popup,S_.Font[i]),"data-size":i,onKeyDown:P,onToggle:ne,children:[(0,R.jsx)(`div`,{ref:g,className:S_.List,onScroll:b.update,children:e.map((e,t)=>(0,R.jsxs)(`div`,{id:`${T}-${t}`,role:`option`,"aria-selected":v===e.value,"aria-disabled":e.disabled||void 0,"data-active":C===t||void 0,"data-value":e.value,className:B(S_.Option,S_.Row[i]),onPointerMove:n=>{(n.movementX||n.movementY)&&w(e.disabled?-1:t)},onClick:()=>ee(t),children:[(0,R.jsx)(A_,{icon:e.icon,label:e.label}),v===e.value&&(0,R.jsx)(ks,{className:S_.Check,"aria-hidden":`true`})]},e.value))}),k_.map(({side:e,className:t,Icon:n})=>b.edges[e]&&(0,R.jsx)(`div`,{"aria-hidden":`true`,className:B(S_.Scroll,t),onPointerEnter:()=>b.start(e),onPointerLeave:b.stop,onPointerDown:e=>e.preventDefault(),children:(0,R.jsx)(n,{className:S_.Check})},e))]})]})}var M_=[`Control`,`Alt`,`Shift`,`Meta`],N_={"⌘":`meta`,cmd:`meta`,command:`meta`,meta:`meta`,ctrl:`control`,control:`control`,"⌃":`control`,alt:`alt`,option:`alt`,"⌥":`alt`,shift:`shift`,"⇧":`shift`,esc:`escape`,escape:`escape`,enter:`enter`,return:`enter`,"↵":`enter`,space:` `,spacebar:` `,"␣":` `,"↑":`arrowup`,"↓":`arrowdown`,"←":`arrowleft`,"→":`arrowright`},P_=new Set([`process`,`dead`,`unidentified`]);function F_(e){let t=e.toLowerCase();return N_[t.trim()]??t}var I_=class{coordinator;host;hover=!1;popupHover=!1;focus=!1;shortcut=!1;disabled=!1;openTimer;closeTimer;constructor(e,t){this.coordinator=e,this.host=t}get wanted(){return!this.disabled&&(this.hover||this.popupHover||this.focus)}delay(e){let t=this.host.trigger();return t?m_(t,e):0}clearClose(){window.clearTimeout(this.closeTimer),this.closeTimer=void 0}enter(){this.hover=!0,this.coordinator.request(this,!1)}leave(){this.hover=!1,this.coordinator.release(this,!0)}popupEnter(){this.popupHover=!0,this.coordinator.request(this,!1)}popupLeave(){this.popupHover=!1,this.coordinator.release(this,!0)}focusIn(){this.focus=!0,this.coordinator.request(this,!0)}focusOut(){this.focus=!1,this.coordinator.release(this,!1)}dismiss(){this.coordinator.dismiss(this)}setDisabled(e){this.disabled=e,e&&this.dismiss()}setShortcut(e){this.shortcut!==e&&(this.shortcut=e,this.coordinator.countShortcut(e?1:-1))}isPressed(e){return this.coordinator.isPressed(e)}dispose(){this.coordinator.unregister(this)}},L_=class{document;onEmpty;handles=new Set;visible=null;pending=null;skipUntil=0;shortcuts=0;modifiers=new Set;keys=new Map;composing=!1;constructor(e,t){this.document=e,this.onEmpty=t}register(e){let t=new I_(this,e);return this.handles.size||this.listen(!0),this.handles.add(t),t}unregister(e){this.handles.delete(e)&&(this.dismiss(e),e.setShortcut(!1),!this.handles.size&&(this.listen(!1),this.skipUntil=0,this.onEmpty()))}request(e,t){e.wanted&&(this.visible===e?e.clearClose():t||this.visible||performance.now()<this.skipUntil?this.show(e):this.pending!==e&&(this.cancelPending(),this.pending=e,e.openTimer=window.setTimeout(()=>{this.pending===e&&(this.pending=null,this.handles.has(e)&&e.wanted&&this.show(e))},e.delay(`--hub-delay-open`))))}release(e,t){e.wanted||(this.pending===e&&this.cancelPending(),this.visible===e&&(e.clearClose(),t?e.closeTimer=window.setTimeout(()=>{e.wanted||this.hide(e)},e.delay(`--hub-duration-fast`)):this.hide(e)))}dismiss(e){e.hover=e.popupHover=e.focus=!1,this.pending===e&&this.cancelPending(),this.hide(e)}countShortcut(e){this.shortcuts+=e,this.shortcuts||this.clearKeys()}isPressed(e){let t=F_(e);if(this.modifiers.has(t))return!0;for(let e of this.keys.values())if(e===t)return!0;return!1}show(e){this.cancelPending();let t=this.visible;t!==e&&(this.visible=e,t&&(t.clearClose(),t.host.onOpenChange(!1)),e.host.onOpenChange(!0))}hide(e){e.clearClose(),this.visible===e&&(this.visible=null,this.skipUntil=performance.now()+e.delay(`--hub-delay-skip`),e.host.onOpenChange(!1))}cancelPending(){this.pending&&=(window.clearTimeout(this.pending.openTimer),null)}dismissAll(){this.pending&&this.dismiss(this.pending),this.visible&&this.dismiss(this.visible)}keyState(){return[...this.modifiers,``,...this.keys.values()].join(`\0`)}clearKeys(){(this.modifiers.size||this.keys.size)&&(this.modifiers.clear(),this.keys.clear(),this.visible?.host.onKeysChange())}onKey=e=>{if(!this.shortcuts)return;let t=this.keyState(),n=e.type===`keydown`,r=e.key.toLowerCase(),i=new Set;for(let t of M_)e.getModifierState(t)&&i.add(t.toLowerCase());let a=M_.some(e=>e.toLowerCase()===r);n&&a&&i.add(r),this.modifiers=i;let o=e.code||r;n?a||this.composing||e.isComposing||P_.has(r)||this.keys.set(o,r):(this.keys.delete(o),r===`meta`&&this.keys.clear()),this.keyState()!==t&&this.visible?.host.onKeysChange()};onComposition=e=>{this.composing=e.type===`compositionstart`,this.composing&&this.keys.size&&(this.keys.clear(),this.visible?.host.onKeysChange())};onScroll=e=>{let t=e.target;for(let e of new Set([this.pending,this.visible])){let n=e?.host.trigger();e&&n&&t.contains(n)&&(e===this.visible&&e.focus&&e.host.reposition()||this.dismiss(e))}};onResize=()=>this.dismissAll();onInactive=e=>{e.type===`visibilitychange`&&!this.document.hidden||e.type===`blur`&&e.target!==this.document.defaultView||(this.dismissAll(),this.skipUntil=0,this.composing=!1,this.clearKeys())};listen(e){let t=this.document.defaultView,n=(t,n,r)=>{e?t?.addEventListener(n,r,!0):t?.removeEventListener(n,r,!0)};n(this.document,`keydown`,this.onKey),n(this.document,`keyup`,this.onKey),n(this.document,`compositionstart`,this.onComposition),n(this.document,`compositionend`,this.onComposition),n(this.document,`visibilitychange`,this.onInactive),n(t,`blur`,this.onInactive),n(t,`resize`,this.onResize),n(t,`scroll`,this.onScroll),e||this.clearKeys()}},R_=new WeakMap;function z_(e,t){let n=R_.get(e);return n||(n=new L_(e,()=>R_.delete(e)),R_.set(e,n)),n.register(t)}var B_={top:`bottom`,bottom:`top`,left:`right`,right:`left`};function V_(e,t,n){return Math.round(n<t?t:Math.max(t,Math.min(e,n)))}function H_({trigger:e,panel:t,offset:n,gutter:r,viewport:i,side:a,align:o,rtl:s}){let c={top:e.top-r,bottom:i.height-e.bottom-r,left:e.left-r,right:i.width-e.right-r},l=a===`top`||a===`bottom`,u=(l?t.height:t.width)+n,d=B_[a],f=c[a]<u&&c[d]>c[a]?d:a,p=f===`top`?e.top-n-t.height:f===`bottom`?e.bottom+n:f===`left`?e.left-n-t.width:e.right+n,m=l?e.left:e.top,h=l?e.width:e.height,g=l?t.width:t.height,_=l&&s&&o!==`center`?o===`start`?`end`:`start`:o,v=_===`start`?m:_===`end`?m+h-g:m+(h-g)/2;return{side:f,top:V_(l?p:v,r,i.height-t.height-r),left:V_(l?v:p,r,i.width-t.width-r)}}function U_({trigger:e,panel:t,margin:n,viewport:r,side:i,align:a,rtl:o}){let s=H_({trigger:e,panel:t,offset:n,gutter:n,viewport:r,side:i,align:a,rtl:o});return{side:s.side,top:s.top-n,left:s.left-n}}var W_={Popup:B(`fixed inset-auto m-1.5 box-border w-max border-(length:--hub-hairline) border-solid border-hub-border-panel px-2 py-1.25`,`max-w-[min(var(--hub-float-width),calc(100vw-var(--hub-float-gutter)))]`,`max-h-[calc(100vh-var(--hub-float-gutter))] overflow-x-hidden overflow-y-auto overscroll-contain`,`open:inline-flex items-center-safe gap-2`,`rounded-(--hub-radius-md) bg-hub-bg-panel text-hub-fg-control shadow-hub-xs`,`font-sans font-[450] text-hub-xs leading-normal text-left`,`transition-opacity duration-(--hub-duration-fast) starting:opacity-0 motion-reduce:transition-none`),Content:`min-w-0 whitespace-normal wrap-anywhere`,Keys:`-mr-0.5 inline-flex shrink-0 items-center gap-0.5`,Kbd:B(`inline-flex min-w-4.5 box-border items-center justify-center p-0.5`,`rounded-(--hub-radius-compact) border-(length:--hub-hairline) border-solid border-hub-border-panel`,`bg-transparent text-hub-fg-muted font-sans text-hub-xs font-normal leading-[1.1]`,`transition-colors duration-(--hub-duration-fast) motion-reduce:transition-none`,`data-pressed:bg-hub-bg-emphasized`)};function G_(e,t){return n=>{e?.(n),t(n)}}function K_(e,t,n){let r=Math.max(t.top,0),i=Math.max(t.left,0),a=Math.min(t.bottom,n.height),o=Math.min(t.right,n.width);for(let t=e;t&&t!==e.ownerDocument.documentElement;t=t.parentElement){if(t!==e){let{overflowX:e,overflowY:n}=getComputedStyle(t);if(e!==`visible`||n!==`visible`){let s=t.getBoundingClientRect();n!==`visible`&&(r=Math.max(r,s.top),a=Math.min(a,s.bottom)),e!==`visible`&&(i=Math.max(i,s.left),o=Math.min(o,s.right))}}if(t.matches(`:popover-open, :modal, :fullscreen`))break}return a>r&&o>i}function q_({children:e,content:t,shortcut:n,side:r=`bottom`,align:i=`center`,disabled:a=!1}){let o=(0,p.useRef)(null),s=(0,p.useRef)(null),c=(0,p.useRef)(null),l=(0,p.useRef)(!1),u=(0,p.useRef)(()=>!1),[d,f]=(0,p.useState)(!1),[,m]=(0,p.useState)(0),h=(0,p.useId)(),g=e,_=g.props,v=n?.length?n:void 0,y=_.ref,b=(0,p.useCallback)(e=>{if(o.current=e,typeof y==`function`){let t=y(e);if(typeof t==`function`)return()=>{o.current=null,t()}}else y&&(y.current=e)},[y]);(0,p.useLayoutEffect)(()=>{u.current=()=>{let e=o.current,t=s.current;if(!e||!t)return!1;let n=e.ownerDocument.documentElement,a={width:n.clientWidth,height:n.clientHeight},c=e.getBoundingClientRect(),l=getComputedStyle(t),u=U_({trigger:c,panel:t.getBoundingClientRect(),margin:parseFloat(l.marginTop)||0,viewport:a,side:r,align:i,rtl:l.direction===`rtl`});return t.dataset.side=u.side,t.style.top=`${u.top}px`,t.style.left=`${u.left}px`,K_(e,c,a)}}),(0,p.useLayoutEffect)(()=>{let e=o.current;if(!e)return;let t=z_(e.ownerDocument,{trigger:()=>o.current,onOpenChange:f,onKeysChange:()=>m(e=>e+1),reposition:()=>u.current()});return c.current=t,()=>{c.current=null,t.dispose()}},[]),(0,p.useLayoutEffect)(()=>{c.current?.setShortcut(!!v)},[!!v]),(0,p.useLayoutEffect)(()=>{c.current?.setDisabled(a)},[a]),(0,p.useLayoutEffect)(()=>{let e=s.current;if(!d||!e)return;e.showPopover(),u.current();let t=new ResizeObserver(()=>u.current());return t.observe(e),()=>{t.disconnect(),e.matches(`:popover-open`)&&e.hidePopover()}},[d]),(0,p.useLayoutEffect)(()=>{d&&u.current()},[r,i]);let x=a?_[`aria-describedby`]:[...new Set([..._[`aria-describedby`]?.split(/\s+/).filter(Boolean)??[],h])].join(` `),S=()=>{l.current=!1};return(0,R.jsxs)(R.Fragment,{children:[(0,p.cloneElement)(g,{ref:b,"aria-describedby":x,onPointerEnter:G_(_.onPointerEnter,e=>{e.pointerType!==`touch`&&c.current?.enter()}),onPointerLeave:G_(_.onPointerLeave,()=>{S(),c.current?.leave()}),onPointerDown:G_(_.onPointerDown,()=>{l.current=!0}),onPointerUp:G_(_.onPointerUp,S),onPointerCancel:G_(_.onPointerCancel,S),onFocus:G_(_.onFocus,e=>{!l.current&&e.target.matches(`:focus-visible`)&&c.current?.focusIn()}),onBlur:G_(_.onBlur,e=>{e.currentTarget.contains(e.relatedTarget)||c.current?.focusOut()}),onClick:G_(_.onClick,()=>c.current?.dismiss())}),!a&&(0,R.jsxs)(`span`,{ref:s,id:h,role:`tooltip`,popover:`manual`,tabIndex:-1,className:W_.Popup,onPointerEnter:()=>c.current?.popupEnter(),onPointerLeave:()=>c.current?.popupLeave(),children:[(0,R.jsx)(`span`,{className:W_.Content,children:t}),v&&(0,R.jsx)(`span`,{className:W_.Keys,children:v.map((e,t)=>(0,R.jsx)(`kbd`,{className:W_.Kbd,"data-pressed":d&&c.current?.isPressed(e)||void 0,children:e},t))})]})]})}B(`pointer-events-none box-border flex size-full items-center rounded-full bg-hub-bg-inactive p-0.75`,`transition-colors duration-(--hub-duration-normal) motion-reduce:transition-none`,`peer-checked:bg-hub-primary-solid peer-disabled:opacity-50`,Jg,`peer-[:enabled:hover:not(:checked)]:bg-hub-bg-inactive-hover peer-[:enabled:hover:checked]:bg-hub-primary-solid-hover`),B(`block size-3.5 rounded-full bg-hub-primary-contrast`,`transition-transform duration-(--hub-duration-normal) motion-reduce:transition-none`,`group-has-[:checked]/switch:translate-x-2.5`,`group-has-[:enabled:hover]/switch:w-4 group-has-[:enabled:hover:checked]/switch:translate-x-2`);var J_=`h-(--hub-row-height-md) rounded-(--hub-radius-md) border-(length:--hub-hairline) border-solid border-hub-border-control`,Y_=B(`focus-within:outline-1 focus-within:outline-solid focus-within:-outline-offset-1`,`focus-within:outline-hub-focus-ring aria-invalid:focus-within:outline-hub-error-solid`),X_={Base:B(`box-border min-w-0 w-full bg-hub-bg-control font-sans text-hub-md font-normal text-hub-fg-title`,`outline-none transition-colors duration-(--hub-duration-fast) motion-reduce:transition-none`,`aria-invalid:border-hub-error-solid disabled:cursor-not-allowed disabled:opacity-50`),Frame:J_,Focus:Y_,Input:B(J_,Y_,`block px-3 py-1.5 placeholder:text-hub-fg-placeholder`,`enabled:not-focus:not-aria-invalid:hover:border-hub-border-control-hover`)},Z_=B(`[&_a]:text-hub-fg-title [&_a]:no-underline [&_a:not([data-external-link]):hover]:underline`,`[&_a[data-external-link]]:-ms-0.75 [&_a[data-external-link]]:rounded-(--hub-radius-md)`,`[&_a[data-external-link]]:px-1 [&_a[data-external-link]]:py-px`,`[&_a[data-external-link]:hover]:bg-hub-bg-muted`,`[&_a[data-external-link]]:after:ms-1 [&_a[data-external-link]]:after:content-['↗'_/_'']`);B(`text-hub-md leading-5.5 font-[450] text-hub-fg-muted`,Z_),B(`first:rounded-t-(--hub-radius-card) last:rounded-b-(--hub-radius-card) hover:bg-hub-bg-hover`,`has-[>div>a:focus-visible]:outline-1 has-[>div>a:focus-visible]:outline-solid has-[>div>a:focus-visible]:outline-hub-focus-ring`,`has-[>div>button:focus-visible]:outline-1 has-[>div>button:focus-visible]:outline-solid has-[>div>button:focus-visible]:outline-hub-focus-ring`),B(`grid size-(--hub-row-height-md) shrink-0 place-items-center rounded-(--hub-radius-inner)`,`bg-hub-bg-emphasized text-hub-fg-secondary [&>svg]:size-4`),B(`m-0 text-hub-sm font-[450] leading-[normal] text-hub-fg-muted`,Z_),B(`pointer-events-none relative z-(--hub-z-raised)`,`[&_:where(a,button,input,select,textarea,label,summary,[contenteditable]:not([contenteditable=false]),[tabindex],[role=button],[role=link])]:pointer-events-auto`),B(`inline-flex items-center gap-3 no-underline`,`disabled:cursor-not-allowed disabled:opacity-50 aria-disabled:cursor-not-allowed aria-disabled:opacity-50`),B(`-me-1.5 min-h-(--hub-row-height-md) rounded-full border-(length:--hub-hairline) border-solid border-transparent px-3 py-0`,`enabled:cursor-pointer transition-colors duration-(--hub-duration-normal) motion-reduce:transition-none`,qg),B(`font-medium`,Yg.variants[`danger-ghost`]),B(`fixed inset-auto z-(--hub-z-overlay) m-0 box-border max-w-[calc(100vw-2*var(--hub-menu-gutter))] overflow-y-auto`,`rounded-(--hub-radius-lg) border-(length:--hub-hairline) border-solid border-hub-border-panel bg-hub-bg-panel py-1.5`,`font-sans text-hub-md leading-normal text-hub-fg-control shadow-hub-md outline-none`),B(`w-(--hub-popup-width-md) px-0`,`[&_[role=separator]>[data-divider]]:mx-0! [&_[role=separator]>[data-divider]]:w-full!`,`[&_[role=separator]>[data-divider]]:bg-hub-border-subtle`),B(`relative isolate flex h-8 w-full shrink-0 items-center gap-2 border-0 bg-transparent text-left`,`font-sans text-hub-md font-[450] whitespace-nowrap outline-none`,`disabled:cursor-not-allowed disabled:opacity-40 aria-disabled:cursor-not-allowed aria-disabled:opacity-40`,`[&>svg]:size-4 [&>svg]:shrink-0 [&>span]:min-w-0 [&>span]:truncate`),B(`m-0 py-0 pl-3.5 pr-4.5 leading-[normal]`,`before:pointer-events-none before:absolute before:inset-y-0 before:inset-x-1.5 before:-z-1 before:rounded-(--hub-radius-md) before:content-['']`,`[&:not(:disabled):not([aria-disabled=true]):is(:hover,:focus-visible)]:before:bg-hub-bg-muted`),B(`rounded-(--hub-radius-inner) pl-2.5 pr-3.5 leading-5`,`[&:not(:disabled):not([aria-disabled=true]):is(:hover,:focus-visible)]:bg-hub-bg-muted`),B(`opacity-0 transition-[opacity,color,background-color] duration-(--hub-duration-fast) motion-reduce:transition-none`,`group-hover/sidebar-group:opacity-100 group-focus-within/sidebar-group:opacity-100 focus-visible:opacity-100`,`[@media(hover:none)]:opacity-100`),B(`mb-px box-border flex h-7 w-full flex-none items-center gap-1.5 rounded-(--hub-radius-md)`,`border-0 py-0 pl-2 pr-[9px] text-left font-sans text-hub-md font-medium leading-4 no-underline`,`transition-colors duration-(--hub-duration-normal) motion-reduce:transition-none`,`[&>svg]:size-4 [&>svg]:shrink-0 focus-visible:-outline-offset-1`,qg,`disabled:cursor-default disabled:opacity-50 aria-disabled:cursor-default aria-disabled:opacity-50`),B(`relative data-[dragging=true]:opacity-50`,`data-[drop-edge]:after:pointer-events-none data-[drop-edge]:after:absolute data-[drop-edge]:after:inset-x-2`,`data-[drop-edge]:after:h-0.5 data-[drop-edge]:after:bg-hub-focus-ring`,`data-[drop-edge=top]:after:top-0 data-[drop-edge=bottom]:after:bottom-0`),B(`flex h-full min-w-0 flex-1 items-center gap-1.5 border-0 bg-transparent p-0 text-left text-inherit no-underline`,qg),bg.configure({preventActivation:(e,t)=>{if(!(e.target instanceof Element))return!1;if(e.target.closest(`[data-sidebar-trailing], [role=menu]`))return!0;let n=e.target.closest(`button`);return!!n&&n!==t.element&&!n.hasAttribute(`data-sidebar-control`)}}),B(X_.Base,X_.Frame,X_.Focus,`flex items-center`,`has-disabled:opacity-50 not-has-disabled:not-focus-within:not-aria-invalid:hover:border-hub-border-control-hover`),B(`inline-grid h-full shrink-0 place-items-center rounded-(--hub-radius-md) border-0 bg-transparent px-3`,`text-hub-fg-secondary focus-visible:-outline-offset-1 disabled:cursor-not-allowed`,qg),B(X_.Base,X_.Focus,`block resize-y rounded-(--hub-radius-card) border-0 p-4`,`shadow-hub-sm placeholder:text-hub-fg-placeholder [&[rows="3"]]:min-h-30`,`aria-invalid:ring-1 aria-invalid:ring-hub-error-solid`),B(`relative m-0.5 flex h-7 min-w-0 flex-auto items-center justify-center gap-1.5 rounded-full border-(length:--hub-hairline) border-solid border-transparent px-3 py-1`,`bg-hub-bg-panel font-sans text-hub-sm font-medium leading-[normal] whitespace-nowrap text-hub-fg-muted`,`transition-[border,background-color,color] duration-(--hub-duration-normal)`,`before:absolute before:-inset-0.5 before:content-['']`,`after:pointer-events-none after:absolute after:inset-0 after:rounded-[inherit] after:shadow-hub-sm after:transition-shadow after:duration-(--hub-duration-normal) after:content-['']`,`aria-selected:bg-hub-bg-selected aria-selected:text-hub-fg-title aria-selected:after:shadow-[0_0_0_var(--hub-hairline)_var(--hub-border-emphasized)]`,`[&:not([aria-selected=true]):enabled:hover]:bg-hub-bg-hover-subtle [&:not([aria-selected=true]):enabled:hover]:text-hub-fg-control`,`[&:not([aria-selected=true]):enabled:hover]:duration-0 [&:not([aria-selected=true]):enabled:hover]:after:duration-0`,`[&:not([aria-selected=true]):enabled:hover]:after:shadow-hub-sm-hover`,`focus:outline-none focus-visible:-outline-offset-1`,qg,`disabled:cursor-not-allowed disabled:opacity-40 motion-reduce:transition-none motion-reduce:after:transition-none`);var Q_=B(`box-border flex max-w-full flex-col`,`border-(length:--hub-hairline) border-solid border-hub-border-panel bg-hub-bg-panel`,`font-sans text-hub-fg shadow-hub-lg outline-none`,`animate-[hub-dialog-in_var(--hub-duration-normal)_ease-out] motion-reduce:animate-none`);B(`fixed inset-0 z-(--hub-z-modal) flex items-start justify-center overflow-y-auto`,`bg-hub-bg-overlay px-3 py-[clamp(16px,13vh,108px)]`),B(Q_,`w-[750px] max-h-[calc(100dvh-clamp(16px,13vh,108px)*2)] overflow-hidden rounded-(--hub-radius-xl)`),B(`fixed inset-0 z-(--hub-z-modal) grid grid-rows-[1fr_auto_2fr] justify-items-center`,`bg-hub-bg-overlay px-4`),B(Q_,`row-start-2 w-[480px] max-h-[calc(100dvh-32px)] gap-2.5 overflow-auto rounded-hub-lg p-5`),B(`m-0 max-w-full font-sans text-hub-md leading-5 text-hub-fg-muted [overflow-wrap:anywhere]`),B(`fixed inset-auto z-(--hub-z-overlay) m-0 box-border overflow-visible border-0 bg-transparent p-0`),B(`m-0 box-border`,`max-w-[calc(100vw-2*var(--hub-menu-gutter))] max-h-[calc(100vh-2*var(--hub-menu-gutter))]`,`rounded-(--hub-radius-lg) border-(length:--hub-hairline) border-solid border-hub-border-panel`,`bg-hub-bg-panel font-sans text-hub-md leading-normal text-hub-fg-control shadow-hub-md outline-none`),B(`inline-flex h-6.25 min-w-10 max-w-full box-border cursor-pointer items-center justify-center px-2 text-center`,`rounded-full border border-solid border-hub-border-control bg-transparent`,`font-sans text-hub-md font-medium leading-[normal] text-hub-fg`,`transition-colors duration-(--hub-duration-fast) motion-reduce:transition-none`,`enabled:hover:bg-hub-bg-muted enabled:hover:text-hub-fg-title`,`disabled:cursor-not-allowed disabled:opacity-50`,qg,`focus-visible:outline-offset-2`),B(`inline-flex size-6.25 shrink-0 box-border cursor-pointer items-center justify-center p-0`,`rounded-full border-(length:--hub-hairline) border-solid border-transparent bg-transparent text-hub-fg-muted`,`transition-colors duration-(--hub-duration-fast) motion-reduce:transition-none`,`enabled:hover:bg-hub-bg-muted enabled:hover:text-hub-fg-title`,`data-active:bg-hub-bg-muted data-active:text-hub-fg-title`,`disabled:cursor-not-allowed disabled:opacity-50`,qg,`focus-visible:outline-offset-2`),B(`inline-flex h-7 max-w-full shrink-0 box-border cursor-pointer items-center justify-center gap-1.5 pl-1.5 pr-2.5`,`rounded-full border-0 bg-transparent text-hub-fg-muted`,`font-sans text-hub-md font-medium leading-[normal]`,`transition-colors duration-(--hub-duration-fast) motion-reduce:transition-none`,`enabled:hover:bg-hub-bg-muted enabled:hover:text-hub-fg-title`,`data-active:bg-hub-bg-muted data-active:text-hub-fg-title`,`disabled:cursor-not-allowed disabled:opacity-50`,`[&>svg]:shrink-0 [&>svg]:-rotate-45`,qg,`focus-visible:outline-offset-2`),B(`block h-9 w-full box-border border-0 bg-transparent px-3.5 py-2`,`font-sans text-hub-md font-normal leading-[normal] text-hub-fg-control`,`placeholder:text-hub-fg-placeholder placeholder:opacity-100 focus:outline-none`),B(`relative isolate flex min-h-(--hub-row-height-md) w-full box-border cursor-default select-none items-center gap-2 pl-3.5 pr-4`,`font-sans text-hub-md font-[450] text-hub-fg-control outline-none`,`before:pointer-events-none before:absolute before:inset-y-0 before:inset-x-1.5 before:-z-1 before:rounded-(--hub-radius-md) before:content-['']`,`data-active:text-hub-fg-title data-active:before:bg-hub-bg-muted`,`aria-disabled:cursor-not-allowed aria-disabled:opacity-50`,`[&>svg]:shrink-0`);var $_=Sa(`notificationService`),ev=class extends y_{},tv=e=>e?.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase();function nv(e,t,n=[]){if(t==null)throw Error(`[lucide]: iconNode is required when icon name is used`);return{name:tv(e),size:24,node:t,...n.length>0?{aliases:n}:{}}}var rv=e=>{let t=``,n=!1;for(let r of e)r===`-`||r===`_`||r<=` `?n=t.length>0:(t.length===0?t+=r.toLowerCase():t+=n?r.toUpperCase():r,n=!1);return t},iv=e=>{let t=rv(e);return t.charAt(0).toUpperCase()+t.slice(1)},av=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),ov={xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":2,"stroke-linecap":`round`,"stroke-linejoin":`round`};function sv(e){return e!=null}function cv(e,t={}){let n=t.attributeNames??{},r=e=>n[e]??e,i=e.size??e.width??ov.width,a=e.size??e.height??ov.height,o=e.aliases?.filter(e=>typeof e==`string`&&e.trim()!==``).map(e=>`lucide-${e}`)??[],s=[...e.name?[`lucide-${e.name}`]:[],...o],c=t.className?.split(` `).filter(Boolean)??[],l=t.includeDefaultClasses===!1?av(...c):av(`lucide`,...s,...c),u=t.absoluteStrokeWidth?Number(t.strokeWidth??ov[`stroke-width`])*Number(e.size??e.width??ov.width)/Number(t.size??t.width??ov.width):t.strokeWidth??ov[`stroke-width`];return[`svg`,{...Object.entries(ov).reduce((e,[t,n])=>(e[r(t)]=n,e),{}),...`color`in t&&t.color&&{[r(`stroke`)]:t.color},...`size`in t&&sv(t.size)&&{[r(`width`)]:t.size,[r(`height`)]:t.size},...`width`in t&&sv(t.width)&&{[r(`width`)]:t.width},...`height`in t&&sv(t.height)&&{[r(`height`)]:t.height},[r(`stroke-width`)]:u,...l&&{[r(`class`)]:l},[r(`viewBox`)]:`0 0 ${i} ${a}`,...t.hasA11yProp===!1?{[r(`aria-hidden`)]:`true`}:{},...`attributes`in t&&t.attributes},e.node.map(e=>{let[n,i,a]=e,o=t.nonScalingStroke?{[r(`vector-effect`)]:`non-scaling-stroke`,...i}:i;return a?[n,o,a]:[n,o]})]}function lv(e,t={}){return cv(e,{...t,attributeNames:{...t.attributeNames,class:`className`,"stroke-width":`strokeWidth`,"stroke-linecap":`strokeLinecap`,"stroke-linejoin":`strokeLinejoin`,"vector-effect":`vectorEffect`}})}var uv=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0;return!1},dv=(0,p.createContext)({}),fv=()=>(0,p.useContext)(dv),pv=(0,p.forwardRef)(({color:e,size:t,width:n,height:r,strokeWidth:i,absoluteStrokeWidth:a,nonScalingStroke:o,className:s=``,children:c,iconNode:l=[],icon:u={node:l,aliases:[],size:24},...d},f)=>{let{size:m=24,strokeWidth:h=2,absoluteStrokeWidth:g=!1,nonScalingStroke:_=!1,color:v=`currentColor`,className:y=``}=fv()??{},b=!!c||uv(d),[x,S,C=[]]=lv(u,{color:e??v,width:n??t??m,height:r??t??m,strokeWidth:i??h,absoluteStrokeWidth:a??g,nonScalingStroke:o??_,className:av(y,s),hasA11yProp:b,attributes:d});return(0,p.createElement)(x,{ref:f,...S},[...C.map(([e,t])=>(0,p.createElement)(e,t)),...Array.isArray(c)?c:[c]])});function Y(e,t=[],n=[]){let r=typeof e==`string`?nv(e,t,n):e,i=(0,p.forwardRef)(({className:e,...t},n)=>(0,p.createElement)(pv,{ref:n,icon:r,className:e,...t}));return r.name&&(i.displayName=iv(r.name)),i}var mv={name:`braces`,size:24,node:[[`path`,{d:`M8 3H7a2 2 0 0 0-2 2v5a2 2 0 0 1-2 2 2 2 0 0 1 2 2v5c0 1.1.9 2 2 2h1`,key:`ezmyqa`}],[`path`,{d:`M16 21h1a2 2 0 0 0 2-2v-5c0-1.1.9-2 2-2a2 2 0 0 1-2-2V5a2 2 0 0 0-2-2h-1`,key:`e1hn23`}]],aliases:[`curly-braces`]};mv.node;var hv=Y(mv),gv={name:`chevron-down`,size:24,node:[[`path`,{d:`m6 9 6 6 6-6`,key:`qrunsl`}]]};gv.node;var _v=Y(gv),vv={name:`chevron-left`,size:24,node:[[`path`,{d:`m15 18-6-6 6-6`,key:`1wnfg3`}]]};vv.node;var yv=Y(vv),bv={name:`chevron-right`,size:24,node:[[`path`,{d:`m9 18 6-6-6-6`,key:`mthhwq`}]]};bv.node;var xv=Y(bv),Sv={name:`chevron-up`,size:24,node:[[`path`,{d:`m18 15-6-6-6 6`,key:`153udz`}]]};Sv.node;var Cv=Y(Sv),wv={name:`circle-alert`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`line`,{x1:`12`,x2:`12`,y1:`8`,y2:`12`,key:`1pkeuh`}],[`line`,{x1:`12`,x2:`12.01`,y1:`16`,y2:`16`,key:`4dfq90`}]],aliases:[`alert-circle`]};wv.node;var Tv=Y(wv),Ev={name:`circle-check`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m16 9-5.5 5.5L8 12`,key:`xofnsj`}]],aliases:[`check-circle-2`]};Ev.node;var Dv=Y(Ev),Ov={name:`circle-question-mark`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3`,key:`1u773s`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}]],aliases:[`help-circle`,`circle-help`]};Ov.node;var kv=Y(Ov),Av={name:`circle-x`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m15 9-6 6`,key:`1uzhvr`}],[`path`,{d:`m9 9 6 6`,key:`z0biqf`}]],aliases:[`x-circle`]};Av.node;var jv=Y(Av),Mv={name:`code-xml`,size:24,node:[[`path`,{d:`m18 16 4-4-4-4`,key:`1inbqp`}],[`path`,{d:`m6 8-4 4 4 4`,key:`15zrgr`}],[`path`,{d:`m14.5 4-5 16`,key:`e7oirm`}]],aliases:[`code-2`]};Mv.node;var Nv=Y(Mv),Pv={name:`container`,size:24,node:[[`path`,{d:`M22 7.7c0-.6-.4-1.2-.8-1.5l-6.3-3.9a1.72 1.72 0 0 0-1.7 0l-10.3 6c-.5.2-.9.8-.9 1.4v6.6c0 .5.4 1.2.8 1.5l6.3 3.9a1.72 1.72 0 0 0 1.7 0l10.3-6c.5-.3.9-1 .9-1.5Z`,key:`1t2lqe`}],[`path`,{d:`M10 21.9V14L2.1 9.1`,key:`o7czzq`}],[`path`,{d:`m10 14 11.9-6.9`,key:`zm5e20`}],[`path`,{d:`M14 19.8v-8.1`,key:`159ecu`}],[`path`,{d:`M18 17.5V9.4`,key:`11uown`}]]};Pv.node;var Fv=Y(Pv),Iv={name:`copy`,size:24,node:[[`rect`,{width:`14`,height:`14`,x:`8`,y:`8`,rx:`2`,ry:`2`,key:`17jyea`}],[`path`,{d:`M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2`,key:`zix9uf`}]]};Iv.node;var Lv=Y(Iv),Rv={name:`database`,size:24,node:[[`ellipse`,{cx:`12`,cy:`5`,rx:`9`,ry:`3`,key:`msslwz`}],[`path`,{d:`M3 5V19A9 3 0 0 0 21 19V5`,key:`1wlel7`}],[`path`,{d:`M3 12A9 3 0 0 0 21 12`,key:`mv7ke4`}]]};Rv.node;var zv=Y(Rv),Bv={name:`diamond`,size:24,node:[[`path`,{d:`M2.7 10.3a2.41 2.41 0 0 0 0 3.41l7.59 7.59a2.41 2.41 0 0 0 3.41 0l7.59-7.59a2.41 2.41 0 0 0 0-3.41l-7.59-7.59a2.41 2.41 0 0 0-3.41 0Z`,key:`1f1r0c`}]]};Bv.node;var Vv=Y(Bv),Hv={name:`file-archive`,size:24,node:[[`path`,{d:`M13.659 22H18a2 2 0 0 0 2-2V8a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 14 2H6a2 2 0 0 0-2 2v11.5`,key:`4pqfef`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M8 12v-1`,key:`1ej8lb`}],[`path`,{d:`M8 18v-2`,key:`qcmpov`}],[`path`,{d:`M8 7V6`,key:`1nbb54`}],[`circle`,{cx:`8`,cy:`20`,r:`2`,key:`ckkr5m`}]]};Hv.node;var Uv=Y(Hv),Wv={name:`file-code-corner`,size:24,node:[[`path`,{d:`M4 12.15V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2h-3.35`,key:`1wthlu`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`m5 16-3 3 3 3`,key:`331omg`}],[`path`,{d:`m9 22 3-3-3-3`,key:`lsp7cz`}]],aliases:[`file-code-2`]};Wv.node;var Gv=Y(Wv),Kv={name:`file-diff`,size:24,node:[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M9 10h6`,key:`9gxzsh`}],[`path`,{d:`M12 13V7`,key:`h0r20n`}],[`path`,{d:`M9 17h6`,key:`r8uit2`}]]};Kv.node;var qv=Y(Kv),Jv={name:`file-headphone`,size:24,node:[[`path`,{d:`M4 6.835V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2h-.343`,key:`1vfytu`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M2 19a2 2 0 0 1 4 0v1a2 2 0 0 1-4 0v-4a6 6 0 0 1 12 0v4a2 2 0 0 1-4 0v-1a2 2 0 0 1 4 0`,key:`1etmh7`}]],aliases:[`file-audio`,`file-audio-2`]};Jv.node;var Yv=Y(Jv),Xv={name:`file-play`,size:24,node:[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M15.033 13.44a.647.647 0 0 1 0 1.12l-4.065 2.352a.645.645 0 0 1-.968-.56v-4.704a.645.645 0 0 1 .967-.56z`,key:`1tzo1f`}]],aliases:[`file-video`]};Xv.node;var Zv=Y(Xv),Qv={name:`file-spreadsheet`,size:24,node:[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M8 13h2`,key:`yr2amv`}],[`path`,{d:`M14 13h2`,key:`un5t4a`}],[`path`,{d:`M8 17h2`,key:`2yhykz`}],[`path`,{d:`M14 17h2`,key:`10kma7`}]]};Qv.node;var $v=Y(Qv),ey={name:`file-text`,size:24,node:[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M10 9H8`,key:`b1mrlr`}],[`path`,{d:`M16 13H8`,key:`t4e002`}],[`path`,{d:`M16 17H8`,key:`z1uh3a`}]]};ey.node;var ty=Y(ey),ny={name:`file`,size:24,node:[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}]]};ny.node;var ry=Y(ny),iy={name:`flask-conical`,size:24,node:[[`path`,{d:`M14 2v6a2 2 0 0 0 .245.96l5.51 10.08A2 2 0 0 1 18 22H6a2 2 0 0 1-1.755-2.96l5.51-10.08A2 2 0 0 0 10 8V2`,key:`18mbvz`}],[`path`,{d:`M6.453 15h11.094`,key:`3shlmq`}],[`path`,{d:`M8.5 2h7`,key:`csnxdl`}]]};iy.node;var ay=Y(iy),oy={name:`folder-open`,size:24,node:[[`path`,{d:`m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2`,key:`usdka0`}]]};oy.node;var sy=Y(oy),cy={name:`folder-tree`,size:24,node:[[`path`,{d:`M20 10a1 1 0 0 0 1-1V6a1 1 0 0 0-1-1h-2.5a1 1 0 0 1-.8-.4l-.9-1.2A1 1 0 0 0 15 3h-2a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1Z`,key:`hod4my`}],[`path`,{d:`M20 21a1 1 0 0 0 1-1v-3a1 1 0 0 0-1-1h-2.9a1 1 0 0 1-.88-.55l-.42-.85a1 1 0 0 0-.92-.6H13a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1Z`,key:`w4yl2u`}],[`path`,{d:`M3 5a2 2 0 0 0 2 2h3`,key:`f2jnh7`}],[`path`,{d:`M3 3v13a2 2 0 0 0 2 2h3`,key:`k8epm1`}]]};cy.node;var ly=Y(cy),uy={name:`folder`,size:24,node:[[`path`,{d:`M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z`,key:`1kt360`}]]};uy.node;var dy=Y(uy),fy={name:`gem`,size:24,node:[[`path`,{d:`M10.5 3 8 9l4 13 4-13-2.5-6`,key:`b3dvk1`}],[`path`,{d:`M17 3a2 2 0 0 1 1.6.8l3 4a2 2 0 0 1 .013 2.382l-7.99 10.986a2 2 0 0 1-3.247 0l-7.99-10.986A2 2 0 0 1 2.4 7.8l2.998-3.997A2 2 0 0 1 7 3z`,key:`7w4byz`}],[`path`,{d:`M2 9h20`,key:`16fsjt`}]]};fy.node;var py=Y(fy),my={name:`git-branch`,size:24,node:[[`path`,{d:`M15 6a9 9 0 0 0-9 9V3`,key:`1cii5b`}],[`circle`,{cx:`18`,cy:`6`,r:`3`,key:`1h7g24`}],[`circle`,{cx:`6`,cy:`18`,r:`3`,key:`fqmcym`}]]};my.node;var hy=Y(my),gy={name:`git-compare-arrows`,size:24,node:[[`circle`,{cx:`5`,cy:`6`,r:`3`,key:`1qnov2`}],[`path`,{d:`M12 6h5a2 2 0 0 1 2 2v7`,key:`1yj91y`}],[`path`,{d:`m15 9-3-3 3-3`,key:`1lwv8l`}],[`circle`,{cx:`19`,cy:`18`,r:`3`,key:`1qljk2`}],[`path`,{d:`M12 18H7a2 2 0 0 1-2-2V9`,key:`16sdep`}],[`path`,{d:`m9 15 3 3-3 3`,key:`1m3kbl`}]]};gy.node;var _y=Y(gy),vy={name:`hexagon`,size:24,node:[[`path`,{d:`M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z`,key:`yt0hxn`}]]};vy.node;var yy=Y(vy),by={name:`image`,size:24,node:[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,ry:`2`,key:`1m3agn`}],[`circle`,{cx:`9`,cy:`9`,r:`2`,key:`af1f0g`}],[`path`,{d:`m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21`,key:`1xmnt7`}]]};by.node;var xy=Y(by),Sy={name:`images`,size:24,node:[[`path`,{d:`m22 11-1.296-1.296a2.4 2.4 0 0 0-3.408 0L11 16`,key:`9kzy35`}],[`path`,{d:`M4 8a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2`,key:`1t0f0t`}],[`circle`,{cx:`13`,cy:`7`,r:`1`,fill:`currentColor`,key:`1obus6`}],[`rect`,{x:`8`,y:`2`,width:`14`,height:`14`,rx:`2`,key:`1gvhby`}]]};Sy.node;var Cy=Y(Sy),wy={name:`key-round`,size:24,node:[[`path`,{d:`M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z`,key:`1s6t7t`}],[`circle`,{cx:`16.5`,cy:`7.5`,r:`.5`,fill:`currentColor`,key:`w0ekpg`}]]};wy.node;var Ty=Y(wy),Ey={name:`layers`,size:24,node:[[`path`,{d:`M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z`,key:`zw3jo`}],[`path`,{d:`M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12`,key:`1wduqc`}],[`path`,{d:`M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17`,key:`kqbvx6`}]],aliases:[`layers-3`]};Ey.node;var Dy=Y(Ey),Oy={name:`list-checks`,size:24,node:[[`path`,{d:`M13 5h8`,key:`a7qcls`}],[`path`,{d:`M13 12h8`,key:`h98zly`}],[`path`,{d:`M13 19h8`,key:`c3s6r1`}],[`path`,{d:`m3 17 2 2 4-4`,key:`1jhpwq`}],[`path`,{d:`m3 7 2 2 4-4`,key:`1obspn`}]]};Oy.node;var ky=Y(Oy),Ay={name:`loader-circle`,size:24,node:[[`path`,{d:`M21 12a9 9 0 1 1-6.219-8.56`,key:`13zald`}]],aliases:[`loader-2`]};Ay.node;var jy=Y(Ay),My={name:`lock`,size:24,node:[[`rect`,{width:`18`,height:`11`,x:`3`,y:`11`,rx:`2`,ry:`2`,key:`1w4ew1`}],[`path`,{d:`M7 11V7a5 5 0 0 1 10 0v4`,key:`fwvmzm`}]]};My.node;var Ny=Y(My),Py={name:`minus`,size:24,node:[[`path`,{d:`M5 12h14`,key:`1ays0h`}]]};Py.node;var Fy=Y(Py),Iy={name:`package`,size:24,node:[[`path`,{d:`M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z`,key:`1a0edw`}],[`path`,{d:`M12 22V12`,key:`d0xqtd`}],[`polyline`,{points:`3.29 7 12 12 20.71 7`,key:`ousv84`}],[`path`,{d:`m7.5 4.27 9 5.15`,key:`1c824w`}]]};Iy.node;var Ly=Y(Iy),Ry={name:`plus`,size:24,node:[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`M12 5v14`,key:`s699le`}]]};Ry.node;var zy=Y(Ry),By={name:`rotate-ccw-clock`,size:24,node:[[`path`,{d:`M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8`,key:`1357e3`}],[`path`,{d:`M3 3v5h5`,key:`1xhq8a`}],[`path`,{d:`M12 7v5l4 2`,key:`1fdv2h`}]],aliases:[`history`]};By.node;var Vy=Y(By),Hy={name:`scale`,size:24,node:[[`path`,{d:`M12 3v18`,key:`108xh3`}],[`path`,{d:`m19 8 3 8a5 5 0 0 1-6 0zV7`,key:`zcdpyk`}],[`path`,{d:`M3 7h1a17 17 0 0 0 8-2 17 17 0 0 0 8 2h1`,key:`1yorad`}],[`path`,{d:`m5 8 3 8a5 5 0 0 1-6 0zV7`,key:`eua70x`}],[`path`,{d:`M7 21h10`,key:`1b0cd5`}]]};Hy.node;var Uy=Y(Hy),Wy={name:`scroll-text`,size:24,node:[[`path`,{d:`M15 12h-5`,key:`r7krc0`}],[`path`,{d:`M15 8h-5`,key:`1khuty`}],[`path`,{d:`M19 17V5a2 2 0 0 0-2-2H4`,key:`zz82l3`}],[`path`,{d:`M8 21h12a2 2 0 0 0 2-2v-1a1 1 0 0 0-1-1H11a1 1 0 0 0-1 1v1a2 2 0 1 1-4 0V5a2 2 0 1 0-4 0v2a1 1 0 0 0 1 1h3`,key:`1ph1d7`}]]};Wy.node;var Gy=Y(Wy),Ky={name:`settings`,size:24,node:[[`path`,{d:`M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915`,key:`1i5ecw`}],[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}]]};Ky.node;var qy=Y(Ky),Jy={name:`shapes`,size:24,node:[[`path`,{d:`M8.3 10a.7.7 0 0 1-.626-1.079L11.4 3a.7.7 0 0 1 1.198-.043L16.3 8.9a.7.7 0 0 1-.572 1.1Z`,key:`1bo67w`}],[`rect`,{x:`3`,y:`14`,width:`7`,height:`7`,rx:`1`,key:`1bkyp8`}],[`circle`,{cx:`17.5`,cy:`17.5`,r:`3.5`,key:`w3z12y`}]]};Jy.node;var Yy=Y(Jy),Xy={name:`terminal`,size:24,node:[[`path`,{d:`M12 19h8`,key:`baeox8`}],[`path`,{d:`m4 17 6-6-6-6`,key:`1yngyt`}]]};Xy.node;var Zy=Y(Xy),Qy={name:`type`,size:24,node:[[`path`,{d:`M12 4v16`,key:`1654pz`}],[`path`,{d:`M4 7V5a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1v2`,key:`e0r10z`}],[`path`,{d:`M9 20h6`,key:`s66wpe`}]]};Qy.node;var $y=Y(Qy),eb={name:`wrench`,size:24,node:[[`path`,{d:`M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z`,key:`1ngwbx`}]]};eb.node;var tb=Y(eb);function nb(e,t=[]){let n=(0,p.useRef)(e);n.current=e,(0,p.useEffect)(()=>{let e=()=>{n.current()};return e(),window.addEventListener(`focus`,e),()=>window.removeEventListener(`focus`,e)},t)}function rb(e){if(!e?.width||!e.height)return{};let t=e.scale??1,n=Math.max(1,Math.round(e.width/t));return{width:n,height:Math.max(1,Math.round(e.height/t)),...t>1&&{style:{maxWidth:`min(100%, ${n}px)`}}}}function ib({size:e,...t}){return(0,R.jsx)(`svg`,{width:e,height:e,viewBox:`0 0 16 16`,fill:`none`,"aria-hidden":`true`,...t,children:(0,R.jsx)(`path`,{d:`M2.2 5.1h5.1v1.45H5.55v5.35H3.95V6.55H2.2V5.1Zm8.95 1.55c-.38-.23-.84-.36-1.3-.36-.56 0-.9.22-.9.57 0 .37.33.53 1.13.82 1.24.44 1.92.98 1.92 2.09 0 1.27-.98 2.13-2.55 2.13-.77 0-1.58-.21-2.16-.56l.54-1.33c.48.29 1.04.47 1.59.47.62 0 .97-.24.97-.62 0-.37-.28-.56-1.08-.85-1.26-.46-1.97-1.02-1.97-2.06 0-1.2.96-2.03 2.47-2.03.69 0 1.38.16 1.88.43l-.54 1.3Z`,fill:`currentColor`})})}function ab({size:e,...t}){return(0,R.jsx)(`svg`,{width:e,height:e,viewBox:`0 0 16 16`,fill:`none`,"aria-hidden":`true`,...t,children:(0,R.jsx)(`path`,{d:`M5.95 5.1h1.6v4.6c0 1.48-.88 2.2-2.25 2.2-.73 0-1.36-.18-1.85-.52l.58-1.29c.34.23.7.36 1.09.36.52 0 .83-.27.83-.85V5.1Zm6.4 1.55c-.38-.23-.84-.36-1.3-.36-.56 0-.9.22-.9.57 0 .37.33.53 1.13.82 1.24.44 1.92.98 1.92 2.09 0 1.27-.98 2.13-2.55 2.13-.77 0-1.58-.21-2.16-.56l.54-1.33c.48.29 1.04.47 1.59.47.62 0 .97-.24.97-.62 0-.37-.28-.56-1.08-.85-1.26-.46-1.97-1.02-1.97-2.06 0-1.2.96-2.03 2.47-2.03.69 0 1.38.16 1.88.43l-.54 1.3Z`,fill:`currentColor`})})}function ob({size:e,...t}){return(0,R.jsxs)(`svg`,{width:e,height:e,viewBox:`0 0 16 16`,fill:`none`,"aria-hidden":`true`,...t,children:[(0,R.jsx)(`circle`,{cx:`8`,cy:`8`,r:`1.45`,fill:`currentColor`}),(0,R.jsx)(`ellipse`,{cx:`8`,cy:`8`,rx:`6.2`,ry:`2.45`,stroke:`currentColor`,strokeWidth:`1.2`}),(0,R.jsx)(`ellipse`,{cx:`8`,cy:`8`,rx:`6.2`,ry:`2.45`,stroke:`currentColor`,strokeWidth:`1.2`,transform:`rotate(60 8 8)`}),(0,R.jsx)(`ellipse`,{cx:`8`,cy:`8`,rx:`6.2`,ry:`2.45`,stroke:`currentColor`,strokeWidth:`1.2`,transform:`rotate(120 8 8)`})]})}function sb({size:e,...t}){return(0,R.jsx)(`svg`,{width:e,height:e,viewBox:`0 0 16 16`,fill:`none`,"aria-hidden":`true`,...t,children:(0,R.jsx)(`path`,{d:`M6.4 2.5 4.8 13.5M11.2 2.5 9.6 13.5M2.6 5.7h11.1M2.3 10.3h11.1`,stroke:`currentColor`,strokeWidth:`1.55`,strokeLinecap:`round`})})}function cb({size:e,...t}){return(0,R.jsx)(`svg`,{width:e,height:e,viewBox:`0 0 16 16`,fill:`none`,"aria-hidden":`true`,...t,children:(0,R.jsx)(`path`,{d:`M2.2 11.4V4.8l2.55 3.1L7.3 4.8v6.6M11.6 4.8v6.1m0 0-2-2.1m2 2.1 2-2.1`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`})})}function lb({size:e,...t}){return(0,R.jsxs)(`svg`,{width:e,height:e,viewBox:`0 0 16 16`,fill:`none`,"aria-hidden":`true`,...t,children:[(0,R.jsx)(`path`,{d:`M2 3.2h2.4L8 9.4l3.6-6.2H14L8 13.4 2 3.2Z`,stroke:`currentColor`,strokeWidth:`1.35`,strokeLinejoin:`round`}),(0,R.jsx)(`path`,{d:`M5.1 3.2 8 8.2l2.9-5`,stroke:`currentColor`,strokeWidth:`1.2`,strokeLinejoin:`round`})]})}function ub(e,t,n){return{color:t,icon:({size:t,className:r,style:i})=>(0,R.jsx)(e,{size:t,className:r,style:i,"aria-hidden":`true`,...n})}}function db(e,t){return{color:t,icon:({size:t,className:n,style:r})=>(0,R.jsx)(e,{size:t,className:n,style:r})}}var X={ts:db(ib,`var(--file-icon-ts)`),tsx:db(ob,`var(--file-icon-tsx)`),js:db(ab,`var(--file-icon-js)`),jsx:db(ob,`var(--file-icon-jsx)`),test:ub(ay,`var(--file-icon-test)`),json:ub(hv,`var(--file-icon-json)`),css:db(sb,`var(--file-icon-css)`),scss:db(sb,`var(--file-icon-scss)`),html:ub(Nv,`var(--file-icon-html)`),md:db(cb,`var(--file-icon-md)`),yaml:ub(qy,`var(--file-icon-yaml)`),shell:ub(Zy,`var(--file-icon-shell)`),git:ub(hy,`var(--file-icon-git)`),npm:ub(Ly,`var(--file-icon-npm)`),lock:ub(Ny,`var(--file-icon-lock)`),env:ub(Ty,`var(--file-icon-env)`),config:ub(qy,`var(--file-icon-config)`),image:ub(xy,`var(--file-icon-image)`),svg:ub(Yy,`var(--file-icon-svg)`),font:ub($y,`var(--file-icon-font)`),audio:ub(Yv,`var(--file-icon-font)`),video:ub(Zv,`var(--file-icon-html)`),archive:ub(Uv,`var(--file-icon-archive)`),pdf:ub(ty,`var(--file-icon-pdf)`),text:ub(ty,`var(--file-icon-config)`),spreadsheet:ub($v,`var(--file-icon-shell)`),license:ub(Uy,`var(--file-icon-json)`),vue:db(lb,`var(--file-icon-vue)`),svelte:ub(Gv,`var(--file-icon-svelte)`),python:ub(Gv,`var(--file-icon-python)`),go:ub(Gv,`var(--file-icon-go)`),rust:ub(Gv,`var(--file-icon-rust)`),ruby:ub(py,`var(--file-icon-ruby)`),docker:ub(Fv,`var(--file-icon-docker)`),build:ub(tb,`var(--file-icon-rust)`),db:ub(zv,`var(--file-icon-db)`),graphql:ub(yy,`var(--file-icon-graphql)`),code:ub(Gv,`var(--file-icon-ts)`),default:ub(ry,`var(--file-icon-default)`)},fb={"package.json":X.npm,"package-lock.json":X.lock,"pnpm-lock.yaml":X.lock,"yarn.lock":X.lock,"bun.lock":X.lock,"bun.lockb":X.lock,"cargo.lock":X.lock,"poetry.lock":X.lock,"gemfile.lock":X.lock,".gitignore":X.git,".gitattributes":X.git,".gitmodules":X.git,".gitkeep":X.git,dockerfile:X.docker,".dockerignore":X.docker,makefile:X.build,"cmakelists.txt":X.build,license:X.license,"license.md":X.license,"license.txt":X.license,copying:X.license,".editorconfig":X.config,".npmrc":X.npm,".nvmrc":X.config,".node-version":X.config},pb={ts:X.ts,mts:X.ts,cts:X.ts,tsx:X.tsx,js:X.js,mjs:X.js,cjs:X.js,jsx:X.jsx,json:X.json,jsonc:X.json,json5:X.json,css:X.css,scss:X.scss,sass:X.scss,less:X.scss,styl:X.scss,html:X.html,htm:X.html,xml:X.html,plist:X.html,md:X.md,mdx:X.md,markdown:X.md,yml:X.yaml,yaml:X.yaml,toml:X.config,ini:X.config,conf:X.config,cfg:X.config,properties:X.config,sh:X.shell,bash:X.shell,zsh:X.shell,fish:X.shell,ps1:X.shell,bat:X.shell,cmd:X.shell,png:X.image,jpg:X.image,jpeg:X.image,gif:X.image,webp:X.image,ico:X.image,avif:X.image,bmp:X.image,svg:X.svg,woff:X.font,woff2:X.font,ttf:X.font,otf:X.font,eot:X.font,mp3:X.audio,wav:X.audio,ogg:X.audio,flac:X.audio,m4a:X.audio,mp4:X.video,mov:X.video,webm:X.video,mkv:X.video,avi:X.video,zip:X.archive,tar:X.archive,gz:X.archive,tgz:X.archive,"7z":X.archive,rar:X.archive,bz2:X.archive,pdf:X.pdf,txt:X.text,log:X.text,csv:X.spreadsheet,tsv:X.spreadsheet,vue:X.vue,svelte:X.svelte,astro:X.svelte,py:X.python,pyi:X.python,go:X.go,rs:X.rust,rb:X.ruby,sql:X.db,sqlite:X.db,db:X.db,prisma:X.db,graphql:X.graphql,gql:X.graphql,dockerfile:X.docker,lock:X.lock,java:X.html,kt:X.yaml,kts:X.yaml,swift:X.svelte,c:X.code,h:X.code,cpp:X.code,cc:X.code,cxx:X.code,hpp:X.code,cs:X.code,php:X.yaml};function mb(e){let t=(e.split(`/`).pop()??e).toLowerCase(),n=fb[t];if(n)return n;if(t===`.env`||t.startsWith(`.env.`))return X.env;if(t.startsWith(`tsconfig`)&&t.endsWith(`.json`))return X.ts;if(t.startsWith(`dockerfile.`)||t.startsWith(`docker-compose`)||t.startsWith(`compose.`))return X.docker;if(/\.(test|spec)\.[cm]?[jt]sx?$/.test(t))return X.test;if(t.startsWith(`.`)&&(t.endsWith(`rc`)||t.endsWith(`rc.json`)||t.endsWith(`rc.js`)||t.endsWith(`rc.cjs`)||t.endsWith(`rc.mjs`)))return X.config;let r=t.lastIndexOf(`.`);if(r>0){let e=t.slice(r+1);if(e in pb)return pb[e]}return X.default}function hb({name:e,size:t,muted:n=!1}){let r=mb(e);return r.icon({size:t,className:`file-icon${n?` is-muted`:``}`,style:{color:r.color}})}function gb({open:e=!1,size:t,muted:n=!1}){return(0,R.jsx)(e?sy:dy,{size:t,className:`file-icon${n?` is-muted`:``}`,style:{color:`var(--file-icon-folder)`},fill:`currentColor`,fillOpacity:.14,"aria-hidden":`true`})}function _b(e){let[t,n]=(0,p.useState)(()=>{try{return localStorage.getItem(e)===`true`}catch{return!1}});return(0,p.useEffect)(()=>{try{localStorage.setItem(e,String(t))}catch{}},[e,t]),[t,n]}function vb(e,t){let n=t||{};return(e[e.length-1]===``?[...e,``]:e).join((n.padRight?` `:``)+`,`+(n.padLeft===!1?``:` `)).trim()}var yb=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,bb=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,xb={};function Sb(e,t){return((t||xb).jsx?bb:yb).test(e)}var Cb=/[ \t\n\f\r]/g;function wb(e){return typeof e==`object`?e.type===`text`&&Tb(e.value):Tb(e)}function Tb(e){return e.replace(Cb,``)===``}var Eb=class{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}};Eb.prototype.normal={},Eb.prototype.property={},Eb.prototype.space=void 0;function Db(e,t){let n={},r={};for(let t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new Eb(n,r,t)}function Ob(e){return e.toLowerCase()}var kb=class{constructor(e,t){this.attribute=t,this.property=e}};kb.prototype.attribute=``,kb.prototype.booleanish=!1,kb.prototype.boolean=!1,kb.prototype.commaOrSpaceSeparated=!1,kb.prototype.commaSeparated=!1,kb.prototype.defined=!1,kb.prototype.mustUseProperty=!1,kb.prototype.number=!1,kb.prototype.overloadedBoolean=!1,kb.prototype.property=``,kb.prototype.spaceSeparated=!1,kb.prototype.space=void 0;var Ab=c({boolean:()=>Z,booleanish:()=>Mb,commaOrSpaceSeparated:()=>Ib,commaSeparated:()=>Fb,number:()=>Q,overloadedBoolean:()=>Nb,spaceSeparated:()=>Pb}),jb=0,Z=Lb(),Mb=Lb(),Nb=Lb(),Q=Lb(),Pb=Lb(),Fb=Lb(),Ib=Lb();function Lb(){return 2**++jb}var Rb=Object.keys(Ab),zb=class extends kb{constructor(e,t,n,r){let i=-1;if(super(e,t),Bb(this,`space`,r),typeof n==`number`)for(;++i<Rb.length;){let e=Rb[i];Bb(this,Rb[i],(n&Ab[e])===Ab[e])}}};zb.prototype.defined=!0;function Bb(e,t,n){n&&(e[t]=n)}function Vb(e){let t={},n={};for(let[r,i]of Object.entries(e.properties)){let a=new zb(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[Ob(r)]=r,n[Ob(a.attribute)]=r}return new Eb(t,n,e.space)}var Hb=Vb({properties:{ariaActiveDescendant:null,ariaAtomic:Mb,ariaAutoComplete:null,ariaBusy:Mb,ariaChecked:Mb,ariaColCount:Q,ariaColIndex:Q,ariaColSpan:Q,ariaControls:Pb,ariaCurrent:null,ariaDescribedBy:Pb,ariaDetails:null,ariaDisabled:Mb,ariaDropEffect:Pb,ariaErrorMessage:null,ariaExpanded:Mb,ariaFlowTo:Pb,ariaGrabbed:Mb,ariaHasPopup:null,ariaHidden:Mb,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Pb,ariaLevel:Q,ariaLive:null,ariaModal:Mb,ariaMultiLine:Mb,ariaMultiSelectable:Mb,ariaOrientation:null,ariaOwns:Pb,ariaPlaceholder:null,ariaPosInSet:Q,ariaPressed:Mb,ariaReadOnly:Mb,ariaRelevant:null,ariaRequired:Mb,ariaRoleDescription:Pb,ariaRowCount:Q,ariaRowIndex:Q,ariaRowSpan:Q,ariaSelected:Mb,ariaSetSize:Q,ariaSort:null,ariaValueMax:Q,ariaValueMin:Q,ariaValueNow:Q,ariaValueText:null,role:null},transform(e,t){return t===`role`?t:`aria-`+t.slice(4).toLowerCase()}});function Ub(e,t){return t in e?e[t]:t}function Wb(e,t){return Ub(e,t.toLowerCase())}var Gb=Vb({attributes:{acceptcharset:`accept-charset`,classname:`class`,htmlfor:`for`,httpequiv:`http-equiv`},mustUseProperty:[`checked`,`multiple`,`muted`,`selected`],properties:{abbr:null,accept:Fb,acceptCharset:Pb,accessKey:Pb,action:null,allow:null,allowFullScreen:Z,allowPaymentRequest:Z,allowUserMedia:Z,alpha:Z,alt:null,as:null,async:Z,autoCapitalize:null,autoComplete:Pb,autoFocus:Z,autoPlay:Z,blocking:Pb,capture:null,charSet:null,checked:Z,cite:null,className:Pb,closedBy:null,colorSpace:null,cols:Q,colSpan:Q,command:null,commandFor:null,content:null,contentEditable:Mb,controls:Z,controlsList:Pb,coords:Q|Fb,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Z,defer:Z,dir:null,dirName:null,disabled:Z,download:Nb,draggable:Mb,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Z,formTarget:null,headers:Pb,height:Q,hidden:Nb,high:Q,href:null,hrefLang:null,htmlFor:Pb,httpEquiv:Pb,id:null,imageSizes:null,imageSrcSet:null,inert:Z,inputMode:null,integrity:null,is:null,isMap:Z,itemId:null,itemProp:Pb,itemRef:Pb,itemScope:Z,itemType:Pb,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Z,low:Q,manifest:null,max:null,maxLength:Q,media:null,method:null,min:null,minLength:Q,multiple:Z,muted:Z,name:null,nonce:null,noModule:Z,noValidate:Z,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:Z,optimum:Q,pattern:null,ping:Pb,placeholder:null,playsInline:Z,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Z,referrerPolicy:null,rel:Pb,required:Z,reversed:Z,rows:Q,rowSpan:Q,sandbox:Pb,scope:null,scoped:Z,seamless:Z,selected:Z,shadowRootClonable:Z,shadowRootCustomElementRegistry:Z,shadowRootDelegatesFocus:Z,shadowRootMode:null,shadowRootSerializable:Z,shape:null,size:Q,sizes:null,slot:null,span:Q,spellCheck:Mb,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Q,step:null,style:null,tabIndex:Q,target:null,title:null,translate:null,type:null,typeMustMatch:Z,useMap:null,value:Mb,width:Q,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Pb,axis:null,background:null,bgColor:null,border:Q,borderColor:null,bottomMargin:Q,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Z,declare:Z,event:null,face:null,frame:null,frameBorder:null,hSpace:Q,leftMargin:Q,link:null,longDesc:null,lowSrc:null,marginHeight:Q,marginWidth:Q,noResize:Z,noHref:Z,noShade:Z,noWrap:Z,object:null,profile:null,prompt:null,rev:null,rightMargin:Q,rules:null,scheme:null,scrolling:Mb,standby:null,summary:null,text:null,topMargin:Q,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Q,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:Z,disablePictureInPicture:Z,disableRemotePlayback:Z,exportParts:Fb,part:Pb,prefix:null,property:null,results:Q,security:null,unselectable:null},space:`html`,transform:Wb}),Kb=Vb({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:Ib,accentHeight:Q,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Q,amplitude:Q,arabicForm:null,ascent:Q,attributeName:null,attributeType:null,azimuth:Q,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Q,by:null,calcMode:null,capHeight:Q,className:Pb,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:Q,diffuseConstant:Q,direction:null,display:null,dur:null,divisor:Q,dominantBaseline:null,download:Z,dx:null,dy:null,edgeMode:null,editable:null,elevation:Q,enableBackground:null,end:null,event:null,exponent:Q,externalResourcesRequired:null,fill:null,fillOpacity:Q,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:Fb,g2:Fb,glyphName:Fb,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Q,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Q,horizOriginX:Q,horizOriginY:Q,id:null,ideographic:Q,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Q,k:Q,k1:Q,k2:Q,k3:Q,k4:Q,kernelMatrix:Ib,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Q,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:Q,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:Q,overlineThickness:Q,paintOrder:null,panose1:null,path:null,pathLength:Q,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Pb,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Q,pointsAtY:Q,pointsAtZ:Q,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Ib,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Ib,rev:Ib,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Ib,requiredFeatures:Ib,requiredFonts:Ib,requiredFormats:Ib,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:Q,specularExponent:Q,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Q,strikethroughThickness:Q,string:null,stroke:null,strokeDashArray:Ib,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Q,strokeOpacity:Q,strokeWidth:null,style:null,surfaceScale:Q,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Ib,tabIndex:Q,tableValues:null,target:null,targetX:Q,targetY:Q,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Ib,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Q,underlineThickness:Q,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Q,values:null,vAlphabetic:Q,vMathematical:Q,vectorEffect:null,vHanging:Q,vIdeographic:Q,version:null,vertAdvY:Q,vertOriginX:Q,vertOriginY:Q,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Q,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:`svg`,transform:Ub}),qb=Vb({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()}}),Jb=Vb({attributes:{xmlnsxlink:`xmlns:xlink`},properties:{xmlnsXLink:null,xmlns:null},space:`xmlns`,transform:Wb}),Yb=Vb({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:`xml`,transform(e,t){return`xml:`+t.slice(3).toLowerCase()}}),Xb={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`},Zb=/[A-Z]/g,Qb=/-[a-z]/g,$b=/^data[-\w.:]+$/i;function ex(e,t){let n=Ob(t),r=t,i=kb;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)===`data`&&$b.test(t)){if(t.charAt(4)===`-`){let e=t.slice(5).replace(Qb,nx);r=`data`+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!Qb.test(e)){let n=e.replace(Zb,tx);n.charAt(0)!==`-`&&(n=`-`+n),t=`data`+n}}i=zb}return new i(r,t)}function tx(e){return`-`+e.toLowerCase()}function nx(e){return e.charAt(1).toUpperCase()}var rx=Db([Hb,Gb,qb,Jb,Yb],`html`),ix=Db([Hb,Kb,qb,Jb,Yb],`svg`);function ax(e){return e.join(` `).trim()}var ox=/\/\*(?:[^*]|\*(?!\/))*\*\//g,sx=/\n/g,cx=/^\s*/,lx=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,ux=/^:\s*/,dx=/^((?:'(?:\\.|[^'\\])*'|"(?:\\.|[^"\\])*"|url\((?:'(?:\\.|[^'\\])*'|"(?:\\.|[^"\\])*"|[^)]*)\)|[^};])+)/,fx=/^[;\s]*/,px=`
91
91
  `,mx=`/`,hx=`*`,gx=``,_x=`comment`,vx=`declaration`;function yx(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(sx);t&&(n+=t.length);var i=e.lastIndexOf(px);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(cx)}function u(e){for(var t;t=d();)e.push(t);return e}function d(){var t=a();if(mx==e.charAt(0)&&hx==e.charAt(1)){for(var n=2;gx!=e.charAt(n)&&(hx!=e.charAt(n)||mx!=e.charAt(n+1));)++n;if(n+=2,gx===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:_x,comment:o})}}function f(){var e=a(),t=c(lx);if(t){if(d(),!c(ux))return s(`property missing ':'`);var n=c(dx),r=e({type:vx,property:t[0].replace(ox,gx).trim(),value:n?n[0].replace(ox,gx).trim():gx});return c(fx),r}}function p(){var e=[];u(e);for(var t;t=f();)e.push(t),u(e);return e}return l(),p()}function bx(e,t){let n=null;if(!e||typeof e!=`string`)return n;let r=yx(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 xx=Cx(`end`),Sx=Cx(`start`);function Cx(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 wx(e){let t=Sx(e),n=xx(e);if(t&&n)return{start:t,end:n}}function Tx(e){return!e||typeof e!=`object`?``:`position`in e||`type`in e?Dx(e.position):`start`in e||`end`in e?Dx(e):`line`in e||`column`in e?Ex(e):``}function Ex(e){return Ox(e&&e.line)+`:`+Ox(e&&e.column)}function Dx(e){return Ex(e&&e.start)+`-`+Ex(e&&e.end)}function Ox(e){return e&&typeof e==`number`?e:1}var kx=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=Tx(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(kx.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 Ax={}.hasOwnProperty,jx=new Map,Mx=/[A-Z]/g,Nx=/-([a-z])/g,Px=new Set([`table`,`tbody`,`thead`,`tfoot`,`tr`]),Fx=new Set([`td`,`th`]),Ix=`https://github.com/syntax-tree/hast-util-to-jsx-runtime`;function Lx(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=Jx(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=qx(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`?ix:rx,stylePropertyNameCase:t.stylePropertyNameCase||`dom`,tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=Rx(i,e,void 0);return a&&typeof a!=`string`?a:i.create(e,i.Fragment,{children:a||void 0},void 0)}function Rx(e,t,n){if(t.type===`element`)return zx(e,t,n);if(t.type===`mdxFlowExpression`||t.type===`mdxTextExpression`)return Bx(e,t);if(t.type===`mdxJsxFlowElement`||t.type===`mdxJsxTextElement`)return Hx(e,t,n);if(t.type===`mdxjsEsm`)return Vx(e,t);if(t.type===`root`)return Ux(e,t,n);if(t.type===`text`)return Wx(e,t)}function zx(e,t,n){let r=e.schema,i=r;t.tagName.toLowerCase()===`svg`&&r.space===`html`&&(i=ix,e.schema=i),e.ancestors.push(t);let a=eS(e,t.tagName,!1),o=Yx(e,t),s=Zx(e,t);return Px.has(t.tagName)&&(s=s.filter(function(e){return typeof e!=`string`||!wb(e)})),Gx(e,o,a,t),Kx(o,s),e.ancestors.pop(),e.schema=r,e.create(t,a,o,n)}function Bx(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)}tS(e,t.position)}function Vx(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);tS(e,t.position)}function Hx(e,t,n){let r=e.schema,i=r;t.name===`svg`&&r.space===`html`&&(i=ix,e.schema=i),e.ancestors.push(t);let a=t.name===null?e.Fragment:eS(e,t.name,!0),o=Xx(e,t),s=Zx(e,t);return Gx(e,o,a,t),Kx(o,s),e.ancestors.pop(),e.schema=r,e.create(t,a,o,n)}function Ux(e,t,n){let r={};return Kx(r,Zx(e,t)),e.create(t,e.Fragment,r,n)}function Wx(e,t){return t.value}function Gx(e,t,n,r){typeof n!=`string`&&n!==e.Fragment&&e.passNode&&(t.node=r)}function Kx(e,t){if(t.length>0){let n=t.length>1?t:t[0];n&&(e.children=n)}}function qx(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 Jx(e,t){return n;function n(n,r,i,a){let o=Array.isArray(i.children),s=Sx(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 Yx(e,t){let n={},r,i;for(i in t.properties)if(i!==`children`&&Ax.call(t.properties,i)){let a=Qx(e,i,t.properties[i]);if(a){let[i,o]=a;e.tableCellAlignToStyle&&i===`align`&&typeof o==`string`&&Fx.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 Xx(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 tS(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 tS(e,t.position)}else a=r.value===null||r.value;n[i]=a}return n}function Zx(e,t){let n=[],r=-1,i=e.passKeys?new Map:jx;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=Rx(e,a,o);s!==void 0&&n.push(s)}return n}function Qx(e,t,n){if(n==null||typeof n==`number`&&Number.isNaN(n))return;let r=ex(e.schema,t);return Array.isArray(n)&&(n=r.commaSeparated?vb(n):ax(n)),r.property===`style`?[`style`,typeof n==`object`?e.stylePropertyNameCase===`dom`?n:nS(n):$x(e,String(n))]:[e.elementAttributeNameCase===`react`&&r.space?Xb[r.property]||r.property:r.attribute,n]}function $x(e,t){let n={};try{bx(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(Nx,aS))),n[i]=r}})}catch(t){if(e.ignoreInvalidStyle)return{};let n=t,r=new kx("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=Ix+`#cannot-parse-style-attribute`,r}return n}function eS(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=Sb(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=Sb(t)&&!/^[a-z]/.test(t)?{type:`Identifier`,name:t}:{type:`Literal`,value:t};if(r.type===`Literal`){let t=r.value;return Ax.call(e.components,t)?e.components[t]:t}if(e.evaluater)return e.evaluater.evaluateExpression(r);tS(e)}function tS(e,t){let n=new kx("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=Ix+`#cannot-handle-mdx-estrees-without-createevaluater`,n}function nS(e){let t={},n;for(n in e)Ax.call(e,n)&&(t[rS(n)]=e[n]);return t}function rS(e){if(e.slice(0,2)===`--`)return e;let t=e.replace(Mx,iS);return t.slice(0,3)===`ms-`&&(t=`-`+t),t}function iS(e){return`-`+e.toLowerCase()}function aS(e,t){return t.toUpperCase()}var oS={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`]},sS={};function cS(e,t){let n=t||sS;return lS(e,typeof n.includeImageAlt!=`boolean`||n.includeImageAlt,typeof n.includeHtml!=`boolean`||n.includeHtml)}function lS(e,t,n){if(dS(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 uS(e.children,t,n)}return Array.isArray(e)?uS(e,t,n):``}function uS(e,t,n){let r=[],i=-1;for(;++i<e.length;)r[i]=lS(e[i],t,n);return r.join(``)}function dS(e){return!!(e&&typeof e==`object`)}var fS=document.createElement(`i`);function pS(e){let t=`&`+e+`;`;fS.innerHTML=t;let n=fS.textContent;return n.charCodeAt(n.length-1)===59&&e!==`semi`?!1:n!==t&&n}function mS(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 hS(e,t){return e.length>0?(mS(e,e.length,0,t),e):t}var gS={}.hasOwnProperty;function _S(e){let t={},n=-1;for(;++n<e.length;)vS(t,e[n]);return t}function vS(e,t){let n;for(n in t){let r=(gS.call(e,n)?e[n]:void 0)||(e[n]={}),i=t[n],a;if(i)for(a in i){gS.call(r,a)||(r[a]=[]);let e=i[a];yS(r[a],Array.isArray(e)?e:e?[e]:[])}}}function yS(e,t){let n=-1,r=[];for(;++n<t.length;)(t[n].add===`after`?e:r).push(t[n]);mS(e,0,0,r)}function bS(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 xS(e){return e.replace(/[\t\n\r ]+/g,` `).replace(/^ | $/g,``).toLowerCase().toUpperCase()}var SS=NS(/[A-Za-z]/),CS=NS(/[\dA-Za-z]/),wS=NS(/[#-'*+\--9=?A-Z^-~]/);function TS(e){return e!==null&&(e<32||e===127)}var ES=NS(/\d/),DS=NS(/[\dA-Fa-f]/),OS=NS(/[!-/:-@[-`{-~]/);function $(e){return e!==null&&e<-2}function kS(e){return e!==null&&(e<0||e===32)}function AS(e){return e===-2||e===-1||e===32}var jS=NS(/\p{P}|\p{S}/u),MS=NS(/\s/);function NS(e){return t;function t(t){return t!==null&&t>-1&&e.test(String.fromCharCode(t))}}function PS(e){let t=[],n=-1,r=0,i=0;for(;++n<e.length;){let a=e.charCodeAt(n),o=``;if(a===37&&CS(e.charCodeAt(n+1))&&CS(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 FS(e,t,n,r){let i=r?r-1:1/0,a=0;return o;function o(r){return AS(r)?(e.enter(n),s(r)):t(r)}function s(r){return AS(r)&&a++<i?(e.consume(r),s):(e.exit(n),t(r))}}function IS(e,t,n,r,i,a){let o=0;return s;function s(t){return a>0&&AS(t)?(e.enter(r),c(t)):l(t)}function c(t){return AS(t)&&o<a?(e.consume(t),o++,c):(e.exit(r),l(t))}function l(e){return o>=i?t(e):n(e)}}var LS={tokenize:RS};function RS(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`),FS(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 $(t)?(e.consume(t),e.exit(`chunkText`),a):(e.consume(t),o)}}var zS=class{constructor(){this.index=new Map,this.map=[]}add(e,t,n){BS(this,e,t,n,!1)}addBefore(e,t,n){BS(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 BS(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 VS={tokenize:US},HS={tokenize:WS};function US(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 zS;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(HS,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(HS,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 $(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 zS;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 WS(e,t,n){return FS(e,e.attempt(this.parser.constructs.document,t,n),`linePrefix`,this.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)}function GS(e){if(e===null||kS(e)||MS(e))return 1;if(jS(e))return 2}function KS(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 qS={name:`attention`,resolveAll:JS,tokenize:YS};function JS(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};XS(o,-a),XS(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=hS(r,[[`enter`,e[i][1],t],[`exit`,e[i][1],t]])),r=hS(r,[[`enter`,d,t],[`enter`,c,t],[`exit`,c,t],[`enter`,u,t]]),r=hS(r,KS(t.parser.constructs.insideSpan.null,e.slice(i+1,n),t)),r=hS(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=hS(r,[[`enter`,e[n][1],t],[`exit`,e[n][1],t]])),mS(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 YS(e,t){let n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=GS(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=GS(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 XS(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}var ZS={name:`autolink`,tokenize:QS};function QS(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 SS(t)?(e.consume(t),o):t===64?n(t):l(t)}function o(e){return e===43||e===45||e===46||CS(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||CS(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||TS(r)?n(r):(e.consume(r),c)}function l(t){return t===64?(e.consume(t),u):wS(t)?(e.consume(t),l):n(t)}function u(e){return CS(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||CS(t))&&r++<63){let n=t===45?f:d;return e.consume(t),n}return n(t)}}var $S={partial:!0,tokenize:eC};function eC(e,t,n){return r;function r(t){return AS(t)?FS(e,i,`linePrefix`)(t):i(t)}function i(e){return e===null||$(e)?t(e):n(e)}}var tC={continuation:{tokenize:rC},exit:iC,name:`blockQuote`,tokenize:nC};function nC(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 AS(n)?(e.enter(`blockQuotePrefixWhitespace`),e.consume(n),e.exit(`blockQuotePrefixWhitespace`),e.exit(`blockQuotePrefix`),t):(e.exit(`blockQuotePrefix`),t(n))}}function rC(e,t,n){let r=this;return i;function i(t){return AS(t)?FS(e,a,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):a(t)}function a(r){return e.attempt(tC,t,n)(r)}}function iC(e){e.exit(`blockQuote`)}var aC={name:`characterEscape`,tokenize:oC};function oC(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 OS(r)?(e.enter(`characterEscapeValue`),e.consume(r),e.exit(`characterEscapeValue`),e.exit(`characterEscape`),t):n(r)}}var sC={name:`characterReference`,tokenize:cC};function cC(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=CS,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=DS,u):(e.enter(`characterReferenceValue`),a=7,o=ES,u(t))}function u(s){if(s===59&&i){let i=e.exit(`characterReferenceValue`);return o===CS&&!pS(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 lC={partial:!0,tokenize:uC};function uC(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 dC={concrete:!0,name:`codeFenced`,tokenize:fC};function fC(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`),AS(t)?FS(e,d,`whitespace`)(t):d(t))}function d(n){return n===null||$(n)?(e.exit(`codeFencedFence`),r.interrupt?t(n):e.check(lC,h,b)(n)):(e.enter(`codeFencedFenceInfo`),e.enter(`chunkString`,{contentType:`string`}),f(n))}function f(t){return t===null||$(t)?(e.exit(`chunkString`),e.exit(`codeFencedFenceInfo`),d(t)):AS(t)?(e.exit(`chunkString`),e.exit(`codeFencedFenceInfo`),FS(e,p,`whitespace`)(t)):t===96&&t===s?n(t):(e.consume(t),f)}function p(t){return t===null||$(t)?d(t):(e.enter(`codeFencedFenceMeta`),e.enter(`chunkString`,{contentType:`string`}),m(t))}function m(t){return t===null||$(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&&AS(t)?FS(e,v,`linePrefix`,a+1)(t):v(t)}function v(t){return t===null||$(t)?e.check(lC,h,b)(t):(e.enter(`codeFlowValue`),y(t))}function y(t){return t===null||$(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`),AS(t)?FS(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`),AS(t)?FS(e,d,`whitespace`)(t):d(t)):n(t)}function d(r){return r===null||$(r)?(e.exit(`codeFencedFence`),t(r)):n(r)}}}var pC={name:`codeIndented`,tokenize:hC},mC={partial:!0,tokenize:gC};function hC(e,t,n){return r;function r(t){return e.enter(`codeIndented`),IS(e,i,n,`linePrefix`,4,4)(t)}function i(t){return t===null?o(t):$(t)?e.attempt(mC,i,o)(t):(e.enter(`codeFlowValue`),a(t))}function a(t){return t===null||$(t)?(e.exit(`codeFlowValue`),i(t)):(e.consume(t),a)}function o(n){return e.exit(`codeIndented`),t(n)}}function gC(e,t,n){let r=this;return i;function i(o){return r.parser.lazy[r.now().line]?n(o):$(o)?(e.enter(`lineEnding`),e.consume(o),e.exit(`lineEnding`),i):IS(e,t,a,`linePrefix`,4,4)(o)}function a(e){return $(e)?i(e):n(e)}}var _C={name:`codeText`,previous:yC,resolve:vC,tokenize:bC};function vC(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 yC(e){return e!==96||this.events[this.events.length-1][1].type===`characterEscape`}function bC(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)):$(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||$(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 xC=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&&SC(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),SC(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),SC(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);SC(this.right,t.reverse())}else{let t=this.right.splice(this.left.length+this.right.length-e,1/0);SC(this.left,t.reverse())}}}};function SC(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 CC(e){let t={},n=-1,r,i,a,o,s,c,l,u=new xC(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,wC(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 mS(e,0,1/0,u.slice(0)),!l}function wC(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 TC={resolve:DC,tokenize:OC},EC={partial:!0,tokenize:kC};function DC(e){return CC(e),e}function OC(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):$(t)?e.check(EC,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 kC(e,t,n){let r=this;return i;function i(t){return e.exit(`chunkContent`),e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),FS(e,a,`linePrefix`)}function a(i){if(i===null||$(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 AC(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||TS(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||$(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||kS(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||TS(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 jC(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):$(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||$(t)||s++>999?(e.exit(`chunkString`),u(t)):(e.consume(t),c||=!AS(t),t===92?f:d)}function f(t){return t===91||t===92||t===93?(e.consume(t),s++,d):d(t)}}function MC(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):$(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),FS(e,l,`linePrefix`)):(e.enter(`chunkString`,{contentType:`string`}),u(t))}function u(t){return t===o||t===null||$(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 NC(e,t){let n;return r;function r(i){return $(i)?(e.enter(`lineEnding`),e.consume(i),e.exit(`lineEnding`),n=!0,r):AS(i)?FS(e,r,n?`linePrefix`:`lineSuffix`)(i):t(i)}}var PC={name:`definition`,tokenize:IC},FC={partial:!0,tokenize:LC};function IC(e,t,n){let r=this,i;return a;function a(t){return e.enter(`definition`),o(t)}function o(t){return jC.call(r,e,s,n,`definitionLabel`,`definitionLabelMarker`,`definitionLabelString`)(t)}function s(t){return i=xS(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 kS(t)?NC(e,l)(t):l(t)}function l(t){return AC(e,u,n,`definitionDestination`,`definitionDestinationLiteral`,`definitionDestinationLiteralMarker`,`definitionDestinationRaw`,`definitionDestinationString`)(t)}function u(t){return e.attempt(FC,d,d)(t)}function d(t){return AS(t)?FS(e,f,`whitespace`)(t):f(t)}function f(a){return a===null||$(a)?(e.exit(`definition`),r.parser.defined.push(i),t(a)):n(a)}}function LC(e,t,n){return r;function r(t){return kS(t)?NC(e,i)(t):n(t)}function i(t){return MC(e,a,n,`definitionTitle`,`definitionTitleMarker`,`definitionTitleString`)(t)}function a(t){return AS(t)?FS(e,o,`whitespace`)(t):o(t)}function o(e){return e===null||$(e)?t(e):n(e)}}var RC={name:`hardBreakEscape`,tokenize:zC};function zC(e,t,n){return r;function r(t){return e.enter(`hardBreakEscape`),e.consume(t),i}function i(r){return $(r)?(e.exit(`hardBreakEscape`),t(r)):n(r)}}var BC={name:`headingAtx`,resolve:VC,tokenize:HC};function VC(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`};mS(e,r,n-r+1,[[`enter`,i,t],[`enter`,a,t],[`exit`,a,t],[`exit`,i,t]])}return e}function HC(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||kS(t)?(e.exit(`atxHeadingSequence`),s(t)):n(t)}function s(n){return n===35?(e.enter(`atxHeadingSequence`),c(n)):n===null||$(n)?(e.exit(`atxHeading`),t(n)):AS(n)?FS(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||kS(t)?(e.exit(`atxHeadingText`),s(t)):(e.consume(t),l)}}var UC=`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(`.`),WC=[`pre`,`script`,`style`,`textarea`],GC={concrete:!0,name:`htmlFlow`,resolveTo:qC,tokenize:JC},KC={partial:!0,tokenize:YC};function qC(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 JC(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:F):SS(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):SS(a)?(e.consume(a),i=4,r.interrupt?t:F):n(a)}function p(i){return i===45?(e.consume(i),r.interrupt?t:F):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 SS(t)?(e.consume(t),o=String.fromCharCode(t),g):n(t)}function g(s){if(s===null||s===47||s===62||kS(s)){let c=s===47,l=o.toLowerCase();return!c&&!a&&WC.includes(l)?(i=1,r.interrupt?t(s):O(s)):UC.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||CS(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 AS(t)?(e.consume(t),v):E(t)}function y(t){return t===47?(e.consume(t),E):t===58||t===95||SS(t)?(e.consume(t),b):AS(t)?(e.consume(t),y):E(t)}function b(t){return t===45||t===46||t===58||t===95||CS(t)?(e.consume(t),b):x(t)}function x(t){return t===61?(e.consume(t),S):AS(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):AS(t)?(e.consume(t),S):w(t)}function C(t){return t===c?(e.consume(t),c=null,T):t===null||$(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||kS(t)?x(t):(e.consume(t),w)}function T(e){return e===47||e===62||AS(e)?y(e):n(e)}function E(t){return t===62?(e.consume(t),D):n(t)}function D(t){return t===null||$(t)?O(t):AS(t)?(e.consume(t),D):n(t)}function O(t){return t===45&&i===2?(e.consume(t),M):t===60&&i===1?(e.consume(t),ee):t===62&&i===4?(e.consume(t),te):t===63&&i===3?(e.consume(t),F):t===93&&i===5?(e.consume(t),P):$(t)&&(i===6||i===7)?(e.exit(`htmlFlowData`),e.check(KC,ne,k)(t)):t===null||$(t)?(e.exit(`htmlFlowData`),k(t)):(e.consume(t),O)}function k(t){return e.check(lC,A,ne)(t)}function A(t){return e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),j}function j(t){return t===null||$(t)?k(t):(e.enter(`htmlFlowData`),O(t))}function M(t){return t===45?(e.consume(t),F):O(t)}function ee(t){return t===47?(e.consume(t),o=``,N):O(t)}function N(t){if(t===62){let n=o.toLowerCase();return WC.includes(n)?(e.consume(t),te):O(t)}return SS(t)&&o.length<8?(e.consume(t),o+=String.fromCharCode(t),N):O(t)}function P(t){return t===93?(e.consume(t),F):O(t)}function F(t){return t===62?(e.consume(t),te):t===45&&i===2?(e.consume(t),F):O(t)}function te(t){return t===null||$(t)?(e.exit(`htmlFlowData`),ne(t)):(e.consume(t),te)}function ne(n){return e.exit(`htmlFlow`),t(n)}}function YC(e,t,n){return r;function r(r){return e.enter(`lineEnding`),e.consume(r),e.exit(`lineEnding`),e.attempt($S,t,n)}}var XC={name:`htmlText`,tokenize:ZC};function ZC(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):SS(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):SS(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):$(t)?(o=d,ee(t)):(e.consume(t),d)}function f(t){return t===45?(e.consume(t),p):d(t)}function p(e){return e===62?M(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):$(t)?(o=h,ee(t)):(e.consume(t),h)}function g(t){return t===93?(e.consume(t),_):h(t)}function _(t){return t===62?M(t):t===93?(e.consume(t),_):h(t)}function v(t){return t===null||t===62?M(t):$(t)?(o=v,ee(t)):(e.consume(t),v)}function y(t){return t===null?n(t):t===63?(e.consume(t),b):$(t)?(o=y,ee(t)):(e.consume(t),y)}function b(e){return e===62?M(e):y(e)}function x(t){return SS(t)?(e.consume(t),S):n(t)}function S(t){return t===45||CS(t)?(e.consume(t),S):C(t)}function C(t){return $(t)?(o=C,ee(t)):AS(t)?(e.consume(t),C):M(t)}function w(t){return t===45||CS(t)?(e.consume(t),w):t===47||t===62||kS(t)?T(t):n(t)}function T(t){return t===47?(e.consume(t),M):t===58||t===95||SS(t)?(e.consume(t),E):$(t)?(o=T,ee(t)):AS(t)?(e.consume(t),T):M(t)}function E(t){return t===45||t===46||t===58||t===95||CS(t)?(e.consume(t),E):D(t)}function D(t){return t===61?(e.consume(t),O):$(t)?(o=D,ee(t)):AS(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,k):$(t)?(o=O,ee(t)):AS(t)?(e.consume(t),O):(e.consume(t),A)}function k(t){return t===i?(e.consume(t),i=void 0,j):t===null?n(t):$(t)?(o=k,ee(t)):(e.consume(t),k)}function A(t){return t===null||t===34||t===39||t===60||t===61||t===96?n(t):t===47||t===62||kS(t)?T(t):(e.consume(t),A)}function j(e){return e===47||e===62||kS(e)?T(e):n(e)}function M(r){return r===62?(e.consume(r),e.exit(`htmlTextData`),e.exit(`htmlText`),t):n(r)}function ee(t){return e.exit(`htmlTextData`),e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),N}function N(t){return AS(t)?FS(e,P,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):P(t)}function P(t){return e.enter(`htmlTextData`),o(t)}}var QC={name:`labelEnd`,resolveAll:nw,resolveTo:rw,tokenize:iw},$C={tokenize:aw},ew={tokenize:ow},tw={tokenize:sw};function nw(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&&mS(e,0,e.length,n),e}function rw(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=hS(o,e.slice(i+1,i+r+3)),o=hS(o,[[`enter`,l,t]]),o=hS(o,KS(t.parser.constructs.insideSpan.null,e.slice(i+r+4,a-3),t)),o=hS(o,[[`exit`,l,t],e[a-2],e[a-1],[`exit`,c,t]]),o=hS(o,e.slice(a+1)),o=hS(o,[[`exit`,s,t]]),mS(e,i,e.length,o),e}function iw(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(xS(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($C,u,o?u:d)(t):t===91?e.attempt(ew,u,o?l:d)(t):o?u(t):d(t)}function l(t){return e.attempt(tw,u,d)(t)}function u(e){return i.pop(),t(e)}function d(e){return a._balanced=!0,n(e)}}function aw(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 kS(t)?NC(e,a)(t):a(t)}function a(t){return t===41?u(t):AC(e,o,s,`resourceDestination`,`resourceDestinationLiteral`,`resourceDestinationLiteralMarker`,`resourceDestinationRaw`,`resourceDestinationString`,32)(t)}function o(t){return kS(t)?NC(e,c)(t):u(t)}function s(e){return n(e)}function c(t){return t===34||t===39||t===40?MC(e,l,n,`resourceTitle`,`resourceTitleMarker`,`resourceTitleString`)(t):u(t)}function l(t){return kS(t)?NC(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 ow(e,t,n){let r=this;return i;function i(t){return jC.call(r,e,a,o,`reference`,`referenceMarker`,`referenceString`)(t)}function a(e){return r.parser.defined.includes(xS(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function o(e){return n(e)}}function sw(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 cw={name:`labelStartImage`,resolveAll:QC.resolveAll,tokenize:lw};function lw(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 uw={name:`labelStartLink`,resolveAll:QC.resolveAll,tokenize:dw};function dw(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 fw={name:`lineEnding`,tokenize:pw};function pw(e,t){return n;function n(n){return e.enter(`lineEnding`),e.consume(n),e.exit(`lineEnding`),FS(e,t,`linePrefix`)}}var mw={name:`thematicBreak`,tokenize:hw};function hw(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||$(a))?(e.exit(`thematicBreak`),t(a)):n(a)}function c(t){return t===i?(e.consume(t),r++,c):(e.exit(`thematicBreakSequence`),AS(t)?FS(e,s,`whitespace`)(t):s(t))}}var gw={continuation:{tokenize:bw},exit:Sw,name:`list`,tokenize:yw},_w={partial:!0,tokenize:Cw},vw={partial:!0,tokenize:xw};function yw(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:ES(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(mw,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 ES(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($S,r.interrupt?n:u,e.attempt(_w,f,d))}function u(e){return r.containerState.initialBlankLine=!0,a++,f(e)}function d(t){return AS(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 bw(e,t,n){let r=this;return r.containerState._closeFlow=void 0,e.check($S,i,a);function i(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,FS(e,t,`listItemIndent`,r.containerState.size+1)(n)}function a(n){return r.containerState.furtherBlankLines||!AS(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(vw,t,o)(n))}function o(i){return r.containerState._closeFlow=!0,r.interrupt=void 0,FS(e,e.attempt(gw,t,n),`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(i)}}function xw(e,t,n){let r=this;return FS(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 Sw(e){e.exit(this.containerState.type)}function Cw(e,t,n){let r=this;return FS(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!AS(e)&&i&&i[1].type===`listItemPrefixWhitespace`?t(e):n(e)}}var ww={name:`setextUnderline`,resolveTo:Tw,tokenize:Ew};function Tw(e,t){let n=new zS,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 Ew(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`),AS(t)?FS(e,c,`lineSuffix`)(t):c(t))}function c(r){return r===null||$(r)?(e.exit(`setextHeadingLine`),t(r)):n(r)}}var Dw={tokenize:Ow};function Ow(e){let t=this,n=e.attempt($S,r,e.attempt(this.parser.constructs.flowInitial,i,FS(e,e.attempt(this.parser.constructs.flow,i,e.attempt(TC,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 kw={resolveAll:Nw()},Aw=Mw(`string`),jw=Mw(`text`);function Mw(e){return{resolveAll:Nw(e===`text`?Pw: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 Nw(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 Pw(e,t){let n=new zS,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 Fw=c({attentionMarkers:()=>Uw,contentInitial:()=>Lw,disable:()=>Ww,document:()=>Iw,flow:()=>zw,flowInitial:()=>Rw,insideSpan:()=>Hw,string:()=>Bw,text:()=>Vw}),Iw={42:gw,43:gw,45:gw,48:gw,49:gw,50:gw,51:gw,52:gw,53:gw,54:gw,55:gw,56:gw,57:gw,62:tC},Lw={91:PC},Rw={[-2]:pC,[-1]:pC,32:pC},zw={35:BC,42:mw,45:[ww,mw],60:GC,61:ww,95:mw,96:dC,126:dC},Bw={38:sC,92:aC},Vw={[-5]:fw,[-4]:fw,[-3]:fw,33:cw,38:sC,42:qS,60:[ZS,XC],91:uw,92:[RC,aC],93:QC,95:qS,96:_C},Hw={null:[qS,kw]},Uw={null:[42,95]},Ww={null:[]};function Gw(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=hS(o,e),g(),o[o.length-1]===null?(w(t,0),l.events=KS(a,l.events,l),l.events):[]}function f(e,t){return qw(p(e),t)}function p(e){return Kw(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){$(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&&mS(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 Kw(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 qw(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=`
92
92
  `;break;case-3:o=`\r
93
93
  `;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 Jw(e){let t={constructs:_S([Fw,...(e||{}).extensions||[]]),content:n(LS),defined:[],document:n(VS),flow:n(Dw),lazy:{},string:n(Aw),text:n(jw)};return t;function n(e){return n;function n(n){return Gw(t,e,n)}}}function Yw(e){for(;!CC(e););return e}var Xw=/[\0\t\n\r]/g;function Zw(){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;){Xw.lastIndex=c;let n=Xw.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 Qw=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function $w(e){return e.replace(Qw,eT)}function eT(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){let e=n.charCodeAt(1),t=e===120||e===88;return bS(n.slice(t?2:1),t?16:10)}return pS(n)||e}var tT={}.hasOwnProperty;function nT(e,t,n){return t&&typeof t==`object`&&(n=t,t=void 0),rT(n)(Yw(Jw(n).document().write(Zw()(e,t,!0))))}function rT(e){let t={afterExit:[],beforeEnter:[],transforms:[],canContainEols:[`emphasis`,`fragment`,`heading`,`paragraph`,`strong`],enter:{autolink:o(ye),autolinkProtocol:E,autolinkEmail:E,atxHeading:o(he),blockQuote:o(ue),characterEscape:E,characterReference:E,codeFenced:o(de),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:o(de,s),codeText:o(fe,s),codeTextData:E,data:E,codeFlowValue:E,definition:o(pe),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:o(me),hardBreakEscape:o(ge),hardBreakTrailing:o(ge),htmlFlow:o(_e,s),htmlFlowData:E,htmlText:o(_e,s),htmlTextData:E,image:o(ve),label:s,link:o(ye),listItem:o(xe),listItemValue:p,listOrdered:o(be,f),listUnordered:o(be),paragraph:o(Se),reference:ie,referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:o(he),strong:o(Ce),thematicBreak:o(Te)},exit:{atxHeading:l(),atxHeadingSequence:S,autolink:l(),autolinkEmail:le,autolinkProtocol:ce,blockQuote:l(),characterEscapeValue:D,characterReferenceMarkerHexadecimal:ae,characterReferenceMarkerNumeric:ae,characterReferenceValue:oe,characterReference:se,codeFenced:l(_),codeFencedFence:g,codeFencedFenceInfo:m,codeFencedFenceMeta:h,codeFlowValue:D,codeIndented:l(v),codeText:l(M),codeTextData:D,data:D,definition:l(),definitionDestinationString:x,definitionLabelString:y,definitionTitleString:b,emphasis:l(),hardBreakEscape:l(k),hardBreakTrailing:l(k),htmlFlow:l(A),htmlFlowData:D,htmlText:l(j),htmlTextData:D,image:l(N),label:F,labelText:P,lineEnding:O,link:l(ee),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:I,resourceDestinationString:te,resourceTitleString:ne,resource:re,setextHeading:l(T),setextHeadingLineSequence:w,setextHeadingText:C,strong:l(),thematicBreak:l()}};aT(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]),tT.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]||sT).call(o,void 0,e[0])}for(r.position={start:iT(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:iT(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:iT(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+"` ("+Tx({start:e.start,end:e.end})+`): it’s not open`);r[0].type!==e.type&&(t?t.call(this,e,r[0]):(r[1]||sT).call(this,e,r[0])),n.position.end=iT(e.end)}function d(){return cS(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=xS(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:iT(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=iT(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=iT(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 k(){this.data.atHardBreak=!0}function A(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}function j(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}function M(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}function ee(){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 N(){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 P(e){let t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=$w(t),n.identifier=xS(t).toLowerCase()}function F(){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 te(){let e=this.resume(),t=this.stack[this.stack.length-1];t.url=e}function ne(){let e=this.resume(),t=this.stack[this.stack.length-1];t.title=e}function re(){this.data.inReference=void 0}function ie(){this.data.referenceType=`collapsed`}function I(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=xS(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType=`full`}function ae(e){this.data.characterReferenceType=e.type}function oe(e){let t=this.sliceSerialize(e),n=this.data.characterReferenceType,r;n?(r=bS(t,n===`characterReferenceMarkerNumeric`?10:16),this.data.characterReferenceType=void 0):r=pS(t);let i=this.stack[this.stack.length-1];i.value+=r}function se(e){let t=this.stack.pop();t.position.end=iT(e.end)}function ce(e){D.call(this,e);let t=this.stack[this.stack.length-1];t.url=this.sliceSerialize(e)}function le(e){D.call(this,e);let t=this.stack[this.stack.length-1];t.url=`mailto:`+this.sliceSerialize(e)}function ue(){return{type:`blockquote`,children:[],position:void 0}}function de(){return{type:`code`,lang:null,meta:null,value:``,position:void 0}}function fe(){return{type:`inlineCode`,value:``,position:void 0}}function pe(){return{type:`definition`,identifier:``,label:null,title:null,url:``,position:void 0}}function me(){return{type:`emphasis`,children:[],position:void 0}}function he(){return{type:`heading`,depth:0,children:[],position:void 0}}function ge(){return{type:`break`,position:void 0}}function _e(){return{type:`html`,value:``,position:void 0}}function ve(){return{type:`image`,title:null,url:``,alt:null,position:void 0}}function ye(){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 Te(){return{type:`thematicBreak`,position:void 0}}}function iT(e){return{line:e.line,column:e.column,offset:e.offset}}function aT(e,t){let n=-1;for(;++n<t.length;){let r=t[n];Array.isArray(r)?aT(e,r):oT(e,r)}}function oT(e,t){let n;for(n in t)if(tT.call(t,n))switch(n){case`canContainEols`:{let r=t[n];r&&e[n].push(...r);break}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 sT(e,t){throw Error(e?"Cannot close `"+e.type+"` ("+Tx({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Tx({start:t.start,end:t.end})+`) is open`:"Cannot close document, a token (`"+t.type+"`, "+Tx({start:t.start,end:t.end})+`) is still open`)}function cT(e){let t=this;t.parser=n;function n(n){return nT(n,{...t.data(`settings`),...e,extensions:t.data(`micromarkExtensions`)||[],mdastExtensions:t.data(`fromMarkdownExtensions`)||[]})}}function lT(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 uT(e,t){let n={type:`element`,tagName:`br`,properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:`text`,value:`
@@ -100,4 +100,4 @@ Error generating stack: `+e.message+`
100
100
  `});++r<e.length;)r&&n.push({type:`text`,value:`
101
101
  `}),n.push(e[r]);return t&&e.length>0&&n.push({type:`text`,value:`
102
102
  `}),n}function TE(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function EE(e,t){let n=bE(e,t),r=n.one(e,void 0),i=rE(n),a=Array.isArray(r)?{type:`root`,children:r}:r||{type:`root`,children:[]};return i&&(`children`in a,a.children.push({type:`text`,value:`
103
- `},i)),a}function DE(e,t){return e&&`run`in e?async function(n,r){let i=EE(n,{file:r,...t});await e.run(i,r)}:function(n,r){return EE(n,{file:r,...e||t})}}function OE(e){if(e)throw e}var kE=u(s(((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}}))(),1);function AE(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 jE(){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?ME(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 ME(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 NE={basename:PE,dirname:FE,extname:IE,join:LE,sep:`/`};function PE(e,t){if(t!==void 0&&typeof t!=`string`)throw TypeError(`"ext" argument must be a string`);BE(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 FE(e){if(BE(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 IE(e){BE(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 LE(...e){let t=-1,n;for(;++t<e.length;)BE(e[t]),e[t]&&(n=n===void 0?e[t]:n+`/`+e[t]);return n===void 0?`.`:RE(n)}function RE(e){BE(e);let t=e.codePointAt(0)===47,n=zE(e,!t);return n.length===0&&!t&&(n=`.`),n.length>0&&e.codePointAt(e.length-1)===47&&(n+=`/`),t?`/`+n:n}function zE(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 BE(e){if(typeof e!=`string`)throw TypeError(`Path must be a string. Received `+JSON.stringify(e))}var VE={cwd:HE};function HE(){return`/`}function UE(e){return!!(typeof e==`object`&&e&&`href`in e&&e.href&&`protocol`in e&&e.protocol&&e.auth===void 0)}function WE(e){if(typeof e==`string`)e=new URL(e);else if(!UE(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 GE(e)}function GE(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 KE=[`history`,`path`,`basename`,`stem`,`extname`,`dirname`],qE=class{constructor(e){let t;t=e?UE(e)?{path:e}:typeof e==`string`||ZE(e)?{value:e}:e:{},this.cwd=`cwd`in t?``:VE.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n=-1;for(;++n<KE.length;){let e=KE[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)KE.includes(r)||(this[r]=t[r])}get basename(){return typeof this.path==`string`?NE.basename(this.path):void 0}set basename(e){YE(e,`basename`),JE(e,`basename`),this.path=NE.join(this.dirname||``,e)}get dirname(){return typeof this.path==`string`?NE.dirname(this.path):void 0}set dirname(e){XE(this.basename,`dirname`),this.path=NE.join(e||``,this.basename)}get extname(){return typeof this.path==`string`?NE.extname(this.path):void 0}set extname(e){if(JE(e,`extname`),XE(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=NE.join(this.dirname,this.stem+(e||``))}get path(){return this.history[this.history.length-1]}set path(e){UE(e)&&(e=WE(e)),YE(e,`path`),this.path!==e&&this.history.push(e)}get stem(){return typeof this.path==`string`?NE.basename(this.path,this.extname):void 0}set stem(e){YE(e,`stem`),JE(e,`stem`),this.path=NE.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 kx(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 JE(e,t){if(e&&e.includes(NE.sep))throw Error("`"+t+"` cannot be a path: did not expect `"+NE.sep+"`")}function YE(e,t){if(!e)throw Error("`"+t+"` cannot be empty")}function XE(e,t){if(!e)throw Error("Setting `"+t+"` requires `path` to be set too")}function ZE(e){return!!(e&&typeof e==`object`&&`byteLength`in e&&`byteOffset`in e)}var QE=(function(e){let t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r}),$E={}.hasOwnProperty,eD=new class e extends QE{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=jE()}copy(){let t=new e,n=-1;for(;++n<this.attachers.length;){let e=this.attachers[n];t.use(...e)}return t.data((0,kE.default)(!0,{},this.namespace)),t}data(e,t){return typeof e==`string`?arguments.length===2?(rD(`data`,this.frozen),this.namespace[e]=t,this):$E.call(this.namespace,e)&&this.namespace[e]||void 0:e?(rD(`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=oD(e),n=this.parser||this.Parser;return tD(`parse`,n),n(String(t),t)}process(e,t){let n=this;return this.freeze(),tD(`process`,this.parser||this.Parser),nD(`process`,this.compiler||this.Compiler),t?r(void 0,t):new Promise(r);function r(r,i){let a=oD(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);cD(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(),tD(`processSync`,this.parser||this.Parser),nD(`processSync`,this.compiler||this.Compiler),this.process(e,r),aD(`processSync`,`process`,t),n;function r(e,r){t=!0,OE(e),n=r}}run(e,t,n){iD(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=oD(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),aD(`runSync`,`run`,n),r;function i(e,t){OE(e),r=t,n=!0}}stringify(e,t){this.freeze();let n=oD(t),r=this.compiler||this.Compiler;return nD(`stringify`,r),iD(e),r(e,n)}use(e,...t){let n=this.attachers,r=this.namespace;if(rD(`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,kE.default)(!0,r.settings,e.settings))}function o(e){let t=-1;if(e!=null){if(Array.isArray(e))for(;++t<e.length;){let n=e[t];i(n)}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];AE(o)&&AE(r)&&(r=(0,kE.default)(!0,o,r)),n[i]=[e,r,...a]}}}}().freeze();function tD(e,t){if(typeof t!=`function`)throw TypeError("Cannot `"+e+"` without `parser`")}function nD(e,t){if(typeof t!=`function`)throw TypeError("Cannot `"+e+"` without `compiler`")}function rD(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 iD(e){if(!AE(e)||typeof e.type!=`string`)throw TypeError("Expected node, got `"+e+"`")}function aD(e,t,n){if(!n)throw Error("`"+e+"` finished async. Use `"+t+"` instead")}function oD(e){return sD(e)?e:new qE(e)}function sD(e){return!!(e&&typeof e==`object`&&`message`in e&&`messages`in e)}function cD(e){return typeof e==`string`||lD(e)}function lD(e){return!!(e&&typeof e==`object`&&`byteLength`in e&&`byteOffset`in e)}var uD=[],dD={allowDangerousHtml:!0},fD=/^(https?|ircs?|mailto|xmpp)$/i,pD=[{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 mD(e){let t=hD(e),n=gD(e);return _D(t.runSync(t.parse(n),n),e)}function hD(e){let t=e.rehypePlugins||uD,n=e.remarkPlugins||uD,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...dD}:dD;return eD().use(cT).use(n).use(DE,r).use(t)}function gD(e){let t=e.children||``,n=new qE;return typeof t==`string`?n.value=t:``+t,n}function _D(e,t){let n=t.allowedElements,r=t.allowElement,i=t.components,a=t.disallowedElements,o=t.skipHtml,s=t.unwrapDisallowed,c=t.urlTransform||vD;for(let e of pD)Object.hasOwn(t,e.from)&&``+e.from+(e.to?"use `"+e.to+"` instead":`remove it`)+e.id;return hE(e,l),Lx(e,{Fragment:R.Fragment,components:i,ignoreInvalidStyle:!0,jsx:R.jsx,jsxs:R.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 oS)if(Object.hasOwn(oS,t)&&Object.hasOwn(e.properties,t)){let n=e.properties[t],r=oS[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 vD(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||fD.test(e.slice(0,t))?e:``}function yD(e){let t=ma(_a(os)),[n,r]=(0,p.useState)([0]),i=n.at(-1);nb(()=>t.readFile(e,i),[e,i]);let a=t.content.key===JSON.stringify([e,i])?t.content.state:null,o=a?.data,s=o?.kind===`text`?o.text:void 0,c=o?.kind===`text`?o.nextOffset:void 0;return{offset:i,text:s,loading:!a||a.loading,error:a?.error?.message,note:o?.kind===`binary`?`二进制文件不支持文本预览。`:s===``?`空文件`:void 0,pager:i>0||c!==void 0?{index:n.length-1,hasNext:c!==void 0,onPrev:()=>{i>0&&r(n.slice(0,-1))},onNext:()=>{c!==void 0&&r([...n,c])}}:null}}var bD=e=>`/mobile/${e}`;function xD(e,t={}){let n=new URLSearchParams(Object.entries(t).filter(e=>!!e[1])).toString();return n?`${e}?${n}`:e}function SD(e){let t=ma(_a(os));nb(()=>t.loadDirectory(``));let n=t.directories.get(``)?.state,r=e?16:14,i=n=>(t.directories.get(n)?.state?.data??[]).map(({name:a,directory:o,ignored:s})=>{let c=n?n+`/`+a:a,l=o&&t.directories.has(c),u=o?t.directories.get(c)?.state:void 0;return{key:c,label:a,icon:o?(0,R.jsx)(gb,{open:l,size:r,muted:s}):(0,R.jsx)(hb,{name:a,size:r,muted:s}),muted:s,trailing:u?.loading?(0,R.jsx)(jy,{className:`project-folder-loading`,size:r,role:`status`,"aria-label":`正在读取 ${a}`,"data-testid":ia.files.folderLoading(c)}):u?.error?(0,R.jsx)(`span`,{className:`project-folder-error`,role:`img`,"aria-label":u.error.message,title:u.error.message,children:(0,R.jsx)(Tv,{size:r,"aria-hidden":`true`})}):void 0,testId:o?(e?ia.mobile.folder:ia.folder)(c):(e?ia.mobile.file:ia.files.file)(c),children:o?i(c):void 0,href:e&&!o?xD(`/mobile/files/file`,{path:c}):void 0}});return{nodes:i(``),error:n?.error,loading:n?.loading??!0,isExpanded:e=>t.directories.has(e),onToggle:e=>t.toggleDirectory(e)}}function CD({path:t,text:n,mobile:r=!1}){let i=(0,p.useRef)(null),[a,o]=(0,p.useState)(`loading`);return(0,p.useEffect)(()=>{let a=!0,s;return o(`loading`),e(async()=>{let{monaco:e,languageForPath:t}=await import(`./monaco-C6LT02vG.js`);return{monaco:e,languageForPath:t}},__vite__mapDeps([0,1,2,3,4])).then(async({monaco:e,languageForPath:c})=>{if(!a)return;let l=c(t);await e.editor.colorize(``,l,{}),a&&i.current&&(s=e.editor.create(i.current,{value:n,language:l,theme:`vs`,ariaLabel:t,readOnly:!0,domReadOnly:!0,automaticLayout:!0,minimap:{enabled:!1},renderValidationDecorations:`off`,renderLineHighlight:`none`,overviewRulerLanes:0,overviewRulerBorder:!1,hideCursorInOverviewRuler:!0,scrollBeyondLastLine:!1,lineNumbersMinChars:3,fontSize:12,fontFamily:getComputedStyle(i.current).getPropertyValue(r?`--m-font-mono`:`--font-metadata`).trim(),lineHeight:r?20:22,...r&&{folding:!1,glyphMargin:!1,lineDecorationsWidth:8},padding:{top:8,bottom:8}}),o(`ready`))}).catch(()=>{a&&o(`error`)}),()=>{a=!1,s?.dispose()}},[t,n,r]),(0,R.jsxs)(`div`,{className:`project-file-editor`,"data-testid":ia.files.editor,"aria-busy":a===`loading`,children:[(0,R.jsx)(`div`,{className:`project-file-editor-host`,ref:i}),a!==`ready`&&(0,R.jsx)(`pre`,{className:`project-file-fallback`,tabIndex:0,children:n})]})}export{as as $,Ri as $t,kv as A,Ja as At,Xg as B,ba as Bt,ly as C,bo as Ct,Vv as D,yo as Dt,qv as E,so as Et,yv as F,La as Ft,__ as G,ma as Gt,$g as H,va as Ht,_v as I,Ba as It,ps as J,la as Jt,q_ as K,pa as Kt,Y as L,Ma as Lt,Tv as M,Ha as Mt,Cv as N,Va as Nt,Lv as O,lo as Ot,xv as P,Ua as Pt,os as Q,Xi as Qt,$_ as R,Oa as Rt,dy as S,_o as St,ty as T,co as Tt,u_ as U,ga as Ut,r_ as V,Sa as Vt,j_ as W,_a as Wt,ds as X,oa as Xt,fs as Y,ca as Yt,ss as Z,ia as Zt,ky as _,Co as _t,yD as a,lr as an,$o as at,xy as b,ho as bt,hb as c,hr as cn,Yo as ct,nb as d,f as dn,qo as dt,zi as en,is as et,Gy as f,c as fn,Wo as ft,jy as g,ko as gt,Fy as h,Po as ht,bD as i,Ue as in,es as it,Dv as j,Ka as jt,jv as k,oo as kt,gb as l,_r as ln,Xo as lt,zy as m,Fo as mt,SD as n,Fi as nn,ns as nt,mD as o,Nr as on,Qo as ot,Vy as p,u as pn,Vo as pt,B as q,da as qt,xD as r,He as rn,ts as rt,_b as s,fr as sn,Zo as st,CD as t,Xr as tn,rs as tt,rb as u,Wi as un,Jo as ut,Dy as v,No as vt,sy as w,vo as wt,_y as x,ro as xt,Cy as y,go as yt,ev as z,ka as zt};
103
+ `},i)),a}function DE(e,t){return e&&`run`in e?async function(n,r){let i=EE(n,{file:r,...t});await e.run(i,r)}:function(n,r){return EE(n,{file:r,...e||t})}}function OE(e){if(e)throw e}var kE=u(s(((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}}))(),1);function AE(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 jE(){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?ME(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 ME(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 NE={basename:PE,dirname:FE,extname:IE,join:LE,sep:`/`};function PE(e,t){if(t!==void 0&&typeof t!=`string`)throw TypeError(`"ext" argument must be a string`);BE(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 FE(e){if(BE(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 IE(e){BE(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 LE(...e){let t=-1,n;for(;++t<e.length;)BE(e[t]),e[t]&&(n=n===void 0?e[t]:n+`/`+e[t]);return n===void 0?`.`:RE(n)}function RE(e){BE(e);let t=e.codePointAt(0)===47,n=zE(e,!t);return n.length===0&&!t&&(n=`.`),n.length>0&&e.codePointAt(e.length-1)===47&&(n+=`/`),t?`/`+n:n}function zE(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 BE(e){if(typeof e!=`string`)throw TypeError(`Path must be a string. Received `+JSON.stringify(e))}var VE={cwd:HE};function HE(){return`/`}function UE(e){return!!(typeof e==`object`&&e&&`href`in e&&e.href&&`protocol`in e&&e.protocol&&e.auth===void 0)}function WE(e){if(typeof e==`string`)e=new URL(e);else if(!UE(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 GE(e)}function GE(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 KE=[`history`,`path`,`basename`,`stem`,`extname`,`dirname`],qE=class{constructor(e){let t;t=e?UE(e)?{path:e}:typeof e==`string`||ZE(e)?{value:e}:e:{},this.cwd=`cwd`in t?``:VE.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n=-1;for(;++n<KE.length;){let e=KE[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)KE.includes(r)||(this[r]=t[r])}get basename(){return typeof this.path==`string`?NE.basename(this.path):void 0}set basename(e){YE(e,`basename`),JE(e,`basename`),this.path=NE.join(this.dirname||``,e)}get dirname(){return typeof this.path==`string`?NE.dirname(this.path):void 0}set dirname(e){XE(this.basename,`dirname`),this.path=NE.join(e||``,this.basename)}get extname(){return typeof this.path==`string`?NE.extname(this.path):void 0}set extname(e){if(JE(e,`extname`),XE(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=NE.join(this.dirname,this.stem+(e||``))}get path(){return this.history[this.history.length-1]}set path(e){UE(e)&&(e=WE(e)),YE(e,`path`),this.path!==e&&this.history.push(e)}get stem(){return typeof this.path==`string`?NE.basename(this.path,this.extname):void 0}set stem(e){YE(e,`stem`),JE(e,`stem`),this.path=NE.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 kx(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 JE(e,t){if(e&&e.includes(NE.sep))throw Error("`"+t+"` cannot be a path: did not expect `"+NE.sep+"`")}function YE(e,t){if(!e)throw Error("`"+t+"` cannot be empty")}function XE(e,t){if(!e)throw Error("Setting `"+t+"` requires `path` to be set too")}function ZE(e){return!!(e&&typeof e==`object`&&`byteLength`in e&&`byteOffset`in e)}var QE=(function(e){let t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r}),$E={}.hasOwnProperty,eD=new class e extends QE{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=jE()}copy(){let t=new e,n=-1;for(;++n<this.attachers.length;){let e=this.attachers[n];t.use(...e)}return t.data((0,kE.default)(!0,{},this.namespace)),t}data(e,t){return typeof e==`string`?arguments.length===2?(rD(`data`,this.frozen),this.namespace[e]=t,this):$E.call(this.namespace,e)&&this.namespace[e]||void 0:e?(rD(`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=oD(e),n=this.parser||this.Parser;return tD(`parse`,n),n(String(t),t)}process(e,t){let n=this;return this.freeze(),tD(`process`,this.parser||this.Parser),nD(`process`,this.compiler||this.Compiler),t?r(void 0,t):new Promise(r);function r(r,i){let a=oD(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);cD(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(),tD(`processSync`,this.parser||this.Parser),nD(`processSync`,this.compiler||this.Compiler),this.process(e,r),aD(`processSync`,`process`,t),n;function r(e,r){t=!0,OE(e),n=r}}run(e,t,n){iD(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=oD(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),aD(`runSync`,`run`,n),r;function i(e,t){OE(e),r=t,n=!0}}stringify(e,t){this.freeze();let n=oD(t),r=this.compiler||this.Compiler;return nD(`stringify`,r),iD(e),r(e,n)}use(e,...t){let n=this.attachers,r=this.namespace;if(rD(`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,kE.default)(!0,r.settings,e.settings))}function o(e){let t=-1;if(e!=null){if(Array.isArray(e))for(;++t<e.length;){let n=e[t];i(n)}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];AE(o)&&AE(r)&&(r=(0,kE.default)(!0,o,r)),n[i]=[e,r,...a]}}}}().freeze();function tD(e,t){if(typeof t!=`function`)throw TypeError("Cannot `"+e+"` without `parser`")}function nD(e,t){if(typeof t!=`function`)throw TypeError("Cannot `"+e+"` without `compiler`")}function rD(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 iD(e){if(!AE(e)||typeof e.type!=`string`)throw TypeError("Expected node, got `"+e+"`")}function aD(e,t,n){if(!n)throw Error("`"+e+"` finished async. Use `"+t+"` instead")}function oD(e){return sD(e)?e:new qE(e)}function sD(e){return!!(e&&typeof e==`object`&&`message`in e&&`messages`in e)}function cD(e){return typeof e==`string`||lD(e)}function lD(e){return!!(e&&typeof e==`object`&&`byteLength`in e&&`byteOffset`in e)}var uD=[],dD={allowDangerousHtml:!0},fD=/^(https?|ircs?|mailto|xmpp)$/i,pD=[{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 mD(e){let t=hD(e),n=gD(e);return _D(t.runSync(t.parse(n),n),e)}function hD(e){let t=e.rehypePlugins||uD,n=e.remarkPlugins||uD,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...dD}:dD;return eD().use(cT).use(n).use(DE,r).use(t)}function gD(e){let t=e.children||``,n=new qE;return typeof t==`string`?n.value=t:``+t,n}function _D(e,t){let n=t.allowedElements,r=t.allowElement,i=t.components,a=t.disallowedElements,o=t.skipHtml,s=t.unwrapDisallowed,c=t.urlTransform||vD;for(let e of pD)Object.hasOwn(t,e.from)&&``+e.from+(e.to?"use `"+e.to+"` instead":`remove it`)+e.id;return hE(e,l),Lx(e,{Fragment:R.Fragment,components:i,ignoreInvalidStyle:!0,jsx:R.jsx,jsxs:R.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 oS)if(Object.hasOwn(oS,t)&&Object.hasOwn(e.properties,t)){let n=e.properties[t],r=oS[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 vD(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||fD.test(e.slice(0,t))?e:``}function yD(e){let t=ma(_a(os)),[n,r]=(0,p.useState)([0]),i=n.at(-1);nb(()=>t.readFile(e,i),[e,i]);let a=t.content.key===JSON.stringify([e,i])?t.content.state:null,o=a?.data,s=o?.kind===`text`?o.text:void 0,c=o?.kind===`text`?o.nextOffset:void 0;return{offset:i,text:s,loading:!a||a.loading,error:a?.error?.message,note:o?.kind===`binary`?`二进制文件不支持文本预览。`:s===``?`空文件`:void 0,pager:i>0||c!==void 0?{index:n.length-1,hasNext:c!==void 0,onPrev:()=>{i>0&&r(n.slice(0,-1))},onNext:()=>{c!==void 0&&r([...n,c])}}:null}}var bD=e=>`/mobile/${e}`;function xD(e,t={}){let n=new URLSearchParams(Object.entries(t).filter(e=>!!e[1])).toString();return n?`${e}?${n}`:e}function SD(e){let t=ma(_a(os));nb(()=>t.loadDirectory(``));let n=t.directories.get(``)?.state,r=e?16:14,i=n=>(t.directories.get(n)?.state?.data??[]).map(({name:a,directory:o,ignored:s})=>{let c=n?n+`/`+a:a,l=o&&t.directories.has(c),u=o?t.directories.get(c)?.state:void 0;return{key:c,label:a,icon:o?(0,R.jsx)(gb,{open:l,size:r,muted:s}):(0,R.jsx)(hb,{name:a,size:r,muted:s}),muted:s,trailing:u?.loading?(0,R.jsx)(jy,{className:`project-folder-loading`,size:r,role:`status`,"aria-label":`正在读取 ${a}`,"data-testid":ia.files.folderLoading(c)}):u?.error?(0,R.jsx)(`span`,{className:`project-folder-error`,role:`img`,"aria-label":u.error.message,title:u.error.message,children:(0,R.jsx)(Tv,{size:r,"aria-hidden":`true`})}):void 0,testId:o?(e?ia.mobile.folder:ia.folder)(c):(e?ia.mobile.file:ia.files.file)(c),children:o?i(c):void 0,href:e&&!o?xD(`/mobile/files/file`,{path:c}):void 0}});return{nodes:i(``),error:n?.error,loading:n?.loading??!0,isExpanded:e=>t.directories.has(e),onToggle:e=>t.toggleDirectory(e)}}function CD({path:t,text:n,mobile:r=!1}){let i=(0,p.useRef)(null),[a,o]=(0,p.useState)(`loading`);return(0,p.useEffect)(()=>{let a=!0,s;return o(`loading`),e(async()=>{let{monaco:e,languageForPath:t}=await import(`./monaco-Cz8BFbYv.js`);return{monaco:e,languageForPath:t}},__vite__mapDeps([0,1,2,3,4])).then(async({monaco:e,languageForPath:c})=>{if(!a)return;let l=c(t);await e.editor.colorize(``,l,{}),a&&i.current&&(s=e.editor.create(i.current,{value:n,language:l,theme:`vs`,ariaLabel:t,readOnly:!0,domReadOnly:!0,automaticLayout:!0,minimap:{enabled:!1},renderValidationDecorations:`off`,renderLineHighlight:`none`,overviewRulerLanes:0,overviewRulerBorder:!1,hideCursorInOverviewRuler:!0,scrollBeyondLastLine:!1,lineNumbersMinChars:3,fontSize:12,fontFamily:getComputedStyle(i.current).getPropertyValue(r?`--m-font-mono`:`--font-metadata`).trim(),lineHeight:r?20:22,...r&&{folding:!1,glyphMargin:!1,lineDecorationsWidth:8},padding:{top:8,bottom:8}}),o(`ready`))}).catch(()=>{a&&o(`error`)}),()=>{a=!1,s?.dispose()}},[t,n,r]),(0,R.jsxs)(`div`,{className:`project-file-editor`,"data-testid":ia.files.editor,"aria-busy":a===`loading`,children:[(0,R.jsx)(`div`,{className:`project-file-editor-host`,ref:i}),a!==`ready`&&(0,R.jsx)(`pre`,{className:`project-file-fallback`,tabIndex:0,children:n})]})}export{os as $,Xi as $t,kv as A,oo as At,Xg as B,ka as Bt,ly as C,_o as Ct,Vv as D,so as Dt,qv as E,co as Et,yv as F,Ua as Ft,__ as G,_a as Gt,$g as H,Sa as Ht,_v as I,La as It,B as J,da as Jt,q_ as K,ma as Kt,Y as L,Ba as Lt,Tv as M,Ka as Mt,Cv as N,Ha as Nt,Lv as O,yo as Ot,xv as P,Va as Pt,ss as Q,ia as Qt,$_ as R,Ma as Rt,dy as S,ro as St,ty as T,vo as Tt,u_ as U,va as Ut,r_ as V,ba as Vt,j_ as W,ga as Wt,fs as X,ca as Xt,ps as Y,la as Yt,ds as Z,oa as Zt,ky as _,ko as _t,yD as a,lr as an,es as at,xy as b,go as bt,hb as c,hr as cn,Zo as ct,nb as d,f as dn,Jo as dt,Ri as en,as as et,Gy as f,c as fn,qo as ft,jy as g,Po as gt,Fy as h,Fo as ht,bD as i,Ue as in,ts as it,Dv as j,Ja as jt,jv as k,lo as kt,gb as l,_r as ln,Yo as lt,zy as m,Vo as mt,SD as n,Fi as nn,rs as nt,mD as o,Nr as on,$o as ot,Vy as p,u as pn,Wo as pt,Ds as q,pa as qt,xD as r,He as rn,ns as rt,_b as s,fr as sn,Qo as st,CD as t,Xr as tn,is as tt,rb as u,Wi as un,Xo as ut,Dy as v,Co as vt,sy as w,bo as wt,_y as x,ho as xt,Cy as y,No as yt,ev as z,Oa as zt};