xaq-cli 0.0.0 → 0.1.0-nightly.71
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +79 -0
- package/dist/admin-5gThRwgj.js +162 -0
- package/dist/admin-5gThRwgj.js.map +1 -0
- package/dist/admin-Btrm8mCd.js +218 -0
- package/dist/admin-Btrm8mCd.js.map +1 -0
- package/dist/admin-CWofnT_Q.js +2 -0
- package/dist/api-BFpElwqK.js +89 -0
- package/dist/api-BFpElwqK.js.map +1 -0
- package/dist/audit-BB7jK9Z5.js +2 -0
- package/dist/audit-BVYknW2i.js +79 -0
- package/dist/audit-BVYknW2i.js.map +1 -0
- package/dist/auth-CXmBdMqw.js +2 -0
- package/dist/auth-D-GmwNv-.js +550 -0
- package/dist/auth-D-GmwNv-.js.map +1 -0
- package/dist/brand--ZB8jTn1.js +32 -0
- package/dist/brand--ZB8jTn1.js.map +1 -0
- package/dist/bus-Cz0flS37.js +12 -0
- package/dist/bus-Cz0flS37.js.map +1 -0
- package/dist/bus-OKIGut72.js +2 -0
- package/dist/cli.js +234 -0
- package/dist/cli.js.map +1 -0
- package/dist/commands-BNVLjYXA.js +167 -0
- package/dist/commands-BNVLjYXA.js.map +1 -0
- package/dist/commands-CdA6-WE7.js +112 -0
- package/dist/commands-CdA6-WE7.js.map +1 -0
- package/dist/config-C9XmYZWO.js +94 -0
- package/dist/config-C9XmYZWO.js.map +1 -0
- package/dist/config-CNVi0v5t.js +2 -0
- package/dist/connect-TtJ9n0Rw.js +362 -0
- package/dist/connect-TtJ9n0Rw.js.map +1 -0
- package/dist/content-C1lKMxFS.js +1170 -0
- package/dist/content-C1lKMxFS.js.map +1 -0
- package/dist/content-worker.js +28 -0
- package/dist/content-worker.js.map +1 -0
- package/dist/crypto-fv2fj3S8.js +75 -0
- package/dist/crypto-fv2fj3S8.js.map +1 -0
- package/dist/db-BEUEUPyP.js +561 -0
- package/dist/db-BEUEUPyP.js.map +1 -0
- package/dist/db-Q5BQuwga.js +2 -0
- package/dist/errors-FbMS3QBo.js +39 -0
- package/dist/errors-FbMS3QBo.js.map +1 -0
- package/dist/filter-Ck6OMxvu.js +158 -0
- package/dist/filter-Ck6OMxvu.js.map +1 -0
- package/dist/hermes-CKyzt1mH.js +3 -0
- package/dist/hermes-DHnDTYJp.js +1023 -0
- package/dist/hermes-DHnDTYJp.js.map +1 -0
- package/dist/import-DsN5NZT3.js +910 -0
- package/dist/import-DsN5NZT3.js.map +1 -0
- package/dist/instance-CwWbFbJ8.js +2 -0
- package/dist/instance-Dj9TpJB2.js +195 -0
- package/dist/instance-Dj9TpJB2.js.map +1 -0
- package/dist/listen-B9iO7HgQ.js +1568 -0
- package/dist/listen-B9iO7HgQ.js.map +1 -0
- package/dist/listen-CXVKG9XD.js +2 -0
- package/dist/manage-Bo6COB4p.js +477 -0
- package/dist/manage-Bo6COB4p.js.map +1 -0
- package/dist/manage-DoXqvjnU.js +2 -0
- package/dist/mcpheader-B8c5YO1B.js +2 -0
- package/dist/mcpheader-C9H4vudu.js +185 -0
- package/dist/mcpheader-C9H4vudu.js.map +1 -0
- package/dist/mcpsetup-BnHudwpq.js +2 -0
- package/dist/mcpsetup-DXXo2qjf.js +1053 -0
- package/dist/mcpsetup-DXXo2qjf.js.map +1 -0
- package/dist/node-check-CjTk6VNL.js +24 -0
- package/dist/node-check-CjTk6VNL.js.map +1 -0
- package/dist/paths-d-C2kdjo.js +2 -0
- package/dist/paths-yzOKD6ow.js +46 -0
- package/dist/paths-yzOKD6ow.js.map +1 -0
- package/dist/profile-CcMZ4hn7.js +2 -0
- package/dist/profile-NmMKAczz.js +222 -0
- package/dist/profile-NmMKAczz.js.map +1 -0
- package/dist/prompt-CKMQx_MJ.js +114 -0
- package/dist/prompt-CKMQx_MJ.js.map +1 -0
- package/dist/recipes-C7TIDlRj.js +3 -0
- package/dist/recipes-DG_-doGq.js +314 -0
- package/dist/recipes-DG_-doGq.js.map +1 -0
- package/dist/send-Dk-t8ia-.js +108 -0
- package/dist/send-Dk-t8ia-.js.map +1 -0
- package/dist/server-CDqDp1q3.js +20640 -0
- package/dist/server-CDqDp1q3.js.map +1 -0
- package/dist/service-BVn3soZZ.js +766 -0
- package/dist/service-BVn3soZZ.js.map +1 -0
- package/dist/service-BaWGPmSd.js +2 -0
- package/dist/service-C7jfo-Ex.js +457 -0
- package/dist/service-C7jfo-Ex.js.map +1 -0
- package/dist/service-DxDyKDQ-.js +2 -0
- package/dist/settings-B5qSHxRM.js +134 -0
- package/dist/settings-B5qSHxRM.js.map +1 -0
- package/dist/settings-DQvZaMN1.js +2 -0
- package/dist/setup-token-CwuSzfLK.js +48 -0
- package/dist/setup-token-CwuSzfLK.js.map +1 -0
- package/dist/skill/SKILL.md +445 -0
- package/dist/skill-1UQj3qgW.js +69 -0
- package/dist/skill-1UQj3qgW.js.map +1 -0
- package/dist/skill-pelq18JQ.js +2 -0
- package/dist/ssrf-BlVpGZ7C.js +181 -0
- package/dist/ssrf-BlVpGZ7C.js.map +1 -0
- package/dist/types-BhJDbSzE.js +135 -0
- package/dist/types-BhJDbSzE.js.map +1 -0
- package/dist/ui-B8Sd4Y7Y.js +81 -0
- package/dist/ui-B8Sd4Y7Y.js.map +1 -0
- package/dist/urls-Dp8pBGMU.js +2 -0
- package/dist/urls-U_LfYV61.js +27 -0
- package/dist/urls-U_LfYV61.js.map +1 -0
- package/dist/version-BxH7OuWD.js +20 -0
- package/dist/version-BxH7OuWD.js.map +1 -0
- package/dist/web/assets/_agentId-DonOCOlC.js +1 -0
- package/dist/web/assets/_app-B7t5lEia.js +1 -0
- package/dist/web/assets/_app-DMTGqYpM.js +65 -0
- package/dist/web/assets/_connectionId-DR5vFXOg.js +1 -0
- package/dist/web/assets/_webhookId-LfUlsULp.js +1 -0
- package/dist/web/assets/account-status-CEszs13C.js +1 -0
- package/dist/web/assets/accounts-5m7aiXuZ.js +1 -0
- package/dist/web/assets/accounts-list-YfJzThZa.js +1 -0
- package/dist/web/assets/activity-DOIe7SAg.js +1 -0
- package/dist/web/assets/add-connection-C8JR-13R.js +1 -0
- package/dist/web/assets/agent-create-form-CPxnPYH4.js +1 -0
- package/dist/web/assets/agents-B2Qj5KxT.js +1 -0
- package/dist/web/assets/approvals-BGaVaoFy.js +1 -0
- package/dist/web/assets/approve._id-BLrQnzPM.js +1 -0
- package/dist/web/assets/arrow-left-DZVAXoKj.js +1 -0
- package/dist/web/assets/arrow-right-C2zcqRr2.js +1 -0
- package/dist/web/assets/attention-gO9Nw5uW.js +1 -0
- package/dist/web/assets/audit-BPXXre8S.js +1 -0
- package/dist/web/assets/audit-bits-CGyIprzK.js +1 -0
- package/dist/web/assets/bell-ring-ig3zn1iS.js +1 -0
- package/dist/web/assets/bot-Zk76q_39.js +1 -0
- package/dist/web/assets/calendar-notice-DsCfq3VJ.js +1 -0
- package/dist/web/assets/calendar-plus-Cycfkk0y.js +1 -0
- package/dist/web/assets/calendar-setup-Pn61Wj1n.js +2 -0
- package/dist/web/assets/card-GSO5o-Ug.js +1 -0
- package/dist/web/assets/check-check-Ds1bPIGv.js +1 -0
- package/dist/web/assets/checkbox-B937U-Fd.js +1 -0
- package/dist/web/assets/chevron-right-Cqh4mDk1.js +1 -0
- package/dist/web/assets/chips-input-2xWDofmE.js +1 -0
- package/dist/web/assets/choice-cards-CgAIqBGX.js +1 -0
- package/dist/web/assets/circle-x-DcU-0zVh.js +1 -0
- package/dist/web/assets/command-khhto70y.js +1 -0
- package/dist/web/assets/common-BPZV8TFb.js +1 -0
- package/dist/web/assets/connect-agent-guide-CJdw31p2.js +1 -0
- package/dist/web/assets/connect-host-lr2c3xWh.js +6 -0
- package/dist/web/assets/connection-row-DYx_5o0c.js +1 -0
- package/dist/web/assets/connections-C4NOFb5R.js +1 -0
- package/dist/web/assets/data-table-kW1pkRB5.js +1 -0
- package/dist/web/assets/empty-DzTDioBP.js +1 -0
- package/dist/web/assets/events-C9zJnPKK.js +1 -0
- package/dist/web/assets/eye-B9gT1QSq.js +1 -0
- package/dist/web/assets/eye-off-Diktqz_g.js +1 -0
- package/dist/web/assets/field-C6ejurju.js +1 -0
- package/dist/web/assets/geist-cyrillic-ext-wght-normal-DjL33-gN.woff2 +0 -0
- package/dist/web/assets/geist-cyrillic-wght-normal-BEAKL7Jp.woff2 +0 -0
- package/dist/web/assets/geist-latin-ext-wght-normal-DC-KSUi6.woff2 +0 -0
- package/dist/web/assets/geist-latin-wght-normal-BgDaEnEv.woff2 +0 -0
- package/dist/web/assets/geist-mono-cyrillic-ext-wght-normal-X_5orZeX.woff2 +0 -0
- package/dist/web/assets/geist-mono-cyrillic-wght-normal-DiZS0aHC.woff2 +0 -0
- package/dist/web/assets/geist-mono-latin-ext-wght-normal-Bwz-egvJ.woff2 +0 -0
- package/dist/web/assets/geist-mono-latin-wght-normal-XN7g48iV.woff2 +0 -0
- package/dist/web/assets/geist-mono-symbols2-wght-normal-CO5SzqOn.woff2 +0 -0
- package/dist/web/assets/geist-mono-vietnamese-wght-normal-DadHysG0.woff2 +0 -0
- package/dist/web/assets/geist-vietnamese-wght-normal-6IgcOCM7.woff2 +0 -0
- package/dist/web/assets/get-started-C38bq1gZ.js +2 -0
- package/dist/web/assets/hidden-chars-Dr9TxfvF.js +1 -0
- package/dist/web/assets/index-DGzo3kGh.js +11 -0
- package/dist/web/assets/index-zKOCQLGX.css +2 -0
- package/dist/web/assets/input-CWwJgozn.js +1 -0
- package/dist/web/assets/input-group-HG8OXcJ4.js +1 -0
- package/dist/web/assets/label-multi-select-sH8mllw8.js +1 -0
- package/dist/web/assets/labels-B5UqVwFo.js +1 -0
- package/dist/web/assets/laptop-BxJ4Nbj7.js +1 -0
- package/dist/web/assets/last-call-D-O5O94z.js +1 -0
- package/dist/web/assets/listener-handled-HNCuVrQ7.js +1 -0
- package/dist/web/assets/login-DaeKclcf.js +1 -0
- package/dist/web/assets/mail-C5fm2pTC.js +1 -0
- package/dist/web/assets/mcp-call-UoOTPFyh.js +1 -0
- package/dist/web/assets/mcp-call-card-Cr-OEDX2.js +3 -0
- package/dist/web/assets/message-square-quote-se8Bf3RP.js +1 -0
- package/dist/web/assets/mutations-CLPqJ6cj.js +1 -0
- package/dist/web/assets/network-igNw0VVx.js +1 -0
- package/dist/web/assets/pairing-XjuaVr2u.js +1 -0
- package/dist/web/assets/pairing-notifier-KPzOEZSO.js +1 -0
- package/dist/web/assets/paperclip-znS4iTrg.js +1 -0
- package/dist/web/assets/password-input-DV3aqcNf.js +1 -0
- package/dist/web/assets/pause-o-dK3khK.js +1 -0
- package/dist/web/assets/pencil-DkPFAhEq.js +1 -0
- package/dist/web/assets/play-DvCHND93.js +1 -0
- package/dist/web/assets/plug-CXAniEiR.js +1 -0
- package/dist/web/assets/plug-zap-BwR-l5wb.js +1 -0
- package/dist/web/assets/plus-B_TUslu3.js +1 -0
- package/dist/web/assets/preload-helper-Cc_aKyUb.js +1 -0
- package/dist/web/assets/public-url-rF2Xjyel.js +1 -0
- package/dist/web/assets/queries-Cv3nXx0U.js +42 -0
- package/dist/web/assets/refresh-cw-Ch5FNrby.js +1 -0
- package/dist/web/assets/revealed-keys-C_9NtJPY.js +1 -0
- package/dist/web/assets/rolldown-runtime-XKyaHtl9.js +1 -0
- package/dist/web/assets/rotate-ccw-B-mzPDk0.js +1 -0
- package/dist/web/assets/search-CTVKGomS.js +1 -0
- package/dist/web/assets/select-Bb806bpq.js +1 -0
- package/dist/web/assets/send-DuMVuYs1.js +1 -0
- package/dist/web/assets/settings-BWauhfFf.js +1 -0
- package/dist/web/assets/setup-B7bNKQOp.js +1 -0
- package/dist/web/assets/sheet-CYPwpUsH.js +1 -0
- package/dist/web/assets/shield-alert-CSYB-ThV.js +1 -0
- package/dist/web/assets/shield-check-BulpsYqK.js +1 -0
- package/dist/web/assets/sparkles-CUTiob4K.js +1 -0
- package/dist/web/assets/stamp-BNXUGNa3.js +1 -0
- package/dist/web/assets/step-url-51aMNak-.js +1 -0
- package/dist/web/assets/stream-Du7fY5_Y.js +1 -0
- package/dist/web/assets/tag-I5_-1jFL.js +1 -0
- package/dist/web/assets/terminal-BvxDFTJc.js +1 -0
- package/dist/web/assets/test-email-button-DYi7V_6X.js +1 -0
- package/dist/web/assets/toggle-group-Bdo1gmQ1.js +1 -0
- package/dist/web/assets/trash-Ci0aICEl.js +1 -0
- package/dist/web/assets/use-delivery-speed-BBh7W2q6.js +1 -0
- package/dist/web/assets/use-label-names-BXicesnP.js +1 -0
- package/dist/web/assets/use-sign-out-CPrY_oVO.js +1 -0
- package/dist/web/assets/useInfiniteQuery-DJLIM8yJ.js +1 -0
- package/dist/web/assets/useQuery-MrTwwNy5.js +1 -0
- package/dist/web/assets/useRouterState-D4OBK8l5.js +1 -0
- package/dist/web/assets/webhook-DjeeZiNC.js +1 -0
- package/dist/web/assets/webhook-bits-jw-y2D3u.js +1 -0
- package/dist/web/assets/webhook-sheet-B8h0skDe.js +34 -0
- package/dist/web/assets/webhooks-Cfsdpoyd.js +1 -0
- package/dist/web/assets/x-MF2TZ9aG.js +1 -0
- package/dist/web/favicon.svg +1 -0
- package/dist/web/index.html +27 -0
- package/package.json +98 -1
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import{r as e,t}from"./rolldown-runtime-XKyaHtl9.js";var n=t((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.consumer`),s=Symbol.for(`react.context`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.memo`),d=Symbol.for(`react.lazy`),f=Symbol.for(`react.activity`),p=Symbol.for(`react.view_transition`),m=Symbol.iterator;function h(e){return typeof e!=`object`||!e?null:(e=m&&e[m]||e[`@@iterator`],typeof e==`function`?e:null)}var g={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_=Object.assign,v={};function y(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||g}y.prototype.isReactComponent={},y.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=null)throw Error(`takes an object of state variables to update or a function which returns an object of state variables.`);this.updater.enqueueSetState(this,e,t,`setState`)},y.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function b(){}b.prototype=y.prototype;function x(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||g}var S=x.prototype=new b;S.constructor=x,_(S,y.prototype),S.isPureReactComponent=!0;var C=Array.isArray;function w(){}var T={H:null,A:null,T:null,S:null},E=Object.prototype.hasOwnProperty;function D(e,n,r){var i=r.ref;return{$$typeof:t,type:e,key:n,ref:i===void 0?null:i,props:r}}function O(e,t){return D(e.type,t,e.props)}function k(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function A(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var j=/\/+/g;function M(e,t){return typeof e==`object`&&e&&e.key!=null?A(``+e.key):t.toString(36)}function N(e){switch(e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason;default:switch(typeof e.status==`string`?e.then(w,w):(e.status=`pending`,e.then(function(t){e.status===`pending`&&(e.status=`fulfilled`,e.value=t)},function(t){e.status===`pending`&&(e.status=`rejected`,e.reason=t)})),e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason}}throw e}function P(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,P(c(e._payload),r,i,a,o)}}if(c)return o=o(e),c=a===``?`.`+M(e,0):a,C(o)?(i=``,c!=null&&(i=c.replace(j,`$&/`)+`/`),P(o,r,i,``,function(e){return e})):o!=null&&(k(o)&&(o=O(o,i+(o.key==null||e&&e.key===o.key?``:(``+o.key).replace(j,`$&/`)+`/`)+c)),r.push(o)),1;c=0;var l=a===``?`.`:a+`:`;if(C(e))for(var u=0;u<e.length;u++)a=e[u],s=l+M(a,u),c+=P(a,r,i,s,o);else if(u=h(e),typeof u==`function`)for(e=u.call(e),u=0;!(a=e.next()).done;)a=a.value,s=l+M(a,u++),c+=P(a,r,i,s,o);else if(s===`object`){if(typeof e.then==`function`)return P(N(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 F(e,t,n){if(e==null)return e;var r=[],i=0;return P(e,r,``,``,function(e){return t.call(n,e,i++)}),r}function I(e){if(e._status===-1){var t=e._result,n=t();n.then(function(t){(e._status===0||e._status===-1)&&(e._status=1,e._result=t,n.status===void 0&&(n.status=`fulfilled`,n.value=t))},function(t){(e._status===0||e._status===-1)&&(e._status=2,e._result=t,n.status===void 0&&(n.status=`rejected`,n.reason=t))}),e._status===-1&&(e._status=0,e._result=n)}if(e._status===1)return e._result.default;throw e._result}var L=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)};function R(e){var t=T.T,n={};n.types=t===null?null:t.types,T.T=n;try{var r=e(),i=T.S;i!==null&&i(n,r),typeof r==`object`&&r&&typeof r.then==`function`&&r.then(w,L)}catch(e){L(e)}finally{t!==null&&n.types!==null&&(t.types=n.types),T.T=t}}function ee(e){var t=T.T;if(t!==null){var n=t.types;n===null?t.types=[e]:n.indexOf(e)===-1&&n.push(e)}else R(ee.bind(null,e))}var te={map:F,forEach:function(e,t,n){F(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return F(e,function(){t++}),t},toArray:function(e){return F(e,function(e){return e})||[]},only:function(e){if(!k(e))throw Error(`React.Children.only expected to receive a single React element child.`);return e}};e.Activity=f,e.Children=te,e.Component=y,e.Fragment=r,e.Profiler=a,e.PureComponent=x,e.StrictMode=i,e.Suspense=l,e.ViewTransition=p,e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=T,e.__COMPILER_RUNTIME={__proto__:null,c:function(e){return T.H.useMemoCache(e)}},e.addTransitionType=ee,e.cache=function(e){return function(){return e.apply(null,arguments)}},e.cacheSignal=function(){return null},e.cloneElement=function(e,t,n){if(e==null)throw Error(`The argument must be a React element, but you passed `+e+`.`);var r=_({},e.props),i=e.key;if(t!=null)for(a in t.key!==void 0&&(i=``+t.key),t)!E.call(t,a)||a===`key`||a===`__self`||a===`__source`||a===`ref`&&t.ref===void 0||(r[a]=t[a]);var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){for(var o=Array(a),s=0;s<a;s++)o[s]=arguments[s+2];r.children=o}return D(e.type,i,r)},e.createContext=function(e){return e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:o,_context:e},e},e.createElement=function(e,t,n){var r,i={},a=null;if(t!=null)for(r in t.key!==void 0&&(a=``+t.key),t)E.call(t,r)&&r!==`key`&&r!==`__self`&&r!==`__source`&&(i[r]=t[r]);var o=arguments.length-2;if(o===1)i.children=n;else if(1<o){for(var s=Array(o),c=0;c<o;c++)s[c]=arguments[c+2];i.children=s}if(e&&e.defaultProps)for(r in o=e.defaultProps,o)i[r]===void 0&&(i[r]=o[r]);return D(e,a,i)},e.createRef=function(){return{current:null}},e.forwardRef=function(e){return{$$typeof:c,render:e}},e.isValidElement=k,e.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:I}},e.memo=function(e,t){return{$$typeof:u,type:e,compare:t===void 0?null:t}},e.startTransition=R,e.unstable_useCacheRefresh=function(){return T.H.useCacheRefresh()},e.use=function(e){return T.H.use(e)},e.useActionState=function(e,t,n){return T.H.useActionState(e,t,n)},e.useCallback=function(e,t){return T.H.useCallback(e,t)},e.useContext=function(e){return T.H.useContext(e)},e.useDebugValue=function(){},e.useDeferredValue=function(e,t){return T.H.useDeferredValue(e,t)},e.useEffect=function(e,t){return T.H.useEffect(e,t)},e.useEffectEvent=function(e){return T.H.useEffectEvent(e)},e.useId=function(){return T.H.useId()},e.useImperativeHandle=function(e,t,n){return T.H.useImperativeHandle(e,t,n)},e.useInsertionEffect=function(e,t){return T.H.useInsertionEffect(e,t)},e.useLayoutEffect=function(e,t){return T.H.useLayoutEffect(e,t)},e.useMemo=function(e,t){return T.H.useMemo(e,t)},e.useOptimistic=function(e,t){return T.H.useOptimistic(e,t)},e.useReducer=function(e,t,n){return T.H.useReducer(e,t,n)},e.useRef=function(e){return T.H.useRef(e)},e.useState=function(e){return T.H.useState(e)},e.useSyncExternalStore=function(e,t,n){return T.H.useSyncExternalStore(e,t,n)},e.useTransition=function(){return T.H.useTransition()},e.version=`19.3.0`})),r=t(((e,t)=>{t.exports=n()})),i=t((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})),a=t(((e,t)=>{t.exports=i()})),o=e(r(),1),s=a(),c=o.createContext(void 0),l=e=>{let t=o.useContext(c);if(e)return e;if(!t)throw Error(`No QueryClient set, use QueryClientProvider to set one`);return t},u=({client:e,children:t})=>(o.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),(0,s.jsx)(c.Provider,{value:e,children:t}));function d(e){return e}function f(e){return e}function p(e){return e[e.length-1]}function m(e,t){return typeof e==`function`?e(t):e}var h=Object.prototype.hasOwnProperty;function g(e){for(let t in e)if(h.call(e,t))return!0;return!1}var _=()=>Object.create(null),v=(e,t)=>y(e,t,!0);function y(e,t,n,r=0){if(e===t)return e;if(r++>500)return t;let i=Array.isArray(e)&&Array.isArray(t);if(!i&&!(b(e)&&b(t)))return t;let a=Object.keys(e),o=a.length,s=Object.keys(t),c=s.length;if(i?o!==e.length||c!==t.length||o&&p(a)!==`${o-1}`||c&&p(s)!==`${c-1}`:o!==Object.getOwnPropertyNames(e).length||c!==Object.getOwnPropertyNames(t).length||Object.getOwnPropertySymbols(t).length)return t;let l=0,u,d,f;if(i){for(;l<c&&(f=l,d=e[f],u=t[f],u=d===u?d:typeof d==`object`?y(d,u,n,r):u,u===d);l++);if(l===c&&o===c)return e}else{let i=o===c,p=!0;for(;l<c;l++){f=s[l],d=e[f];let o=t[f];u=d===o?d:typeof d==`object`?y(d,o,n,r):o,i&&=u===d&&(a[l]===f||h.call(e,f)),p&&=Object.is(u,o),a[l]=u}if(i)return Object.getOwnPropertySymbols(e).length?t:e;if(p)return t}let m=i?s.fill(0):n?_():{};for(let o=0;o<c;o++)f=i?o:s[o],i?(d=e[f],o>l&&(u=t[f],u=d===u?d:typeof d==`object`?y(d,u,n,r):u),m[f]=o<l?d:u):m[f]=a[o];return m}function b(e){return!e||typeof e!=`object`?!1:(Object.getPrototypeOf(e)?.constructor??Object)===Object}function x(e,t,n,r){if(e===t)return!0;if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(let i=0,a=e.length;i<a;i++){let a=e[i],o=t[i];if(a!==o&&!x(a,o,n,r))return!1}return!0}if(b(e)&&b(t)){if(n){for(let i in t)if((r||t[i]!==void 0)&&!x(e[i],t[i],n,r))return!1;return!0}let i=0;if(r)i=Object.keys(e).length;else for(let t in e)e[t]!==void 0&&i++;for(let a in t)if((r||t[a]!==void 0)&&(i--===0||!x(e[a],t[a],n,r)))return!1;return i===0}return!1}function S(e){return typeof e?.message==`string`?e.message.startsWith(`Failed to fetch dynamically imported module`)||e.message.startsWith(`error loading dynamically imported module`)||e.message.startsWith(`Importing a module script failed`):!1}var C=/[\x00-\x1f\x7f"<>`{}]/g;function w(e){return e.replace(C,e=>`%`+e.charCodeAt(0).toString(16).toUpperCase().padStart(2,`0`))}function T(e){let t;try{t=decodeURI(e)}catch{t=e.replaceAll(/%[0-9A-F]{2}/gi,e=>{try{return decodeURI(e)}catch{return e}})}return w(t)}var E=[`http:`,`https:`,`mailto:`,`tel:`];function D(e){if(e[0]!==`/`&&e.includes(`:`))return/^[\x00-\x20]*([a-z][a-z\d+.\t\n\r-]*:)/i.exec(e)?.[1]?.replace(/[\t\n\r]/g,``).toLowerCase()}var O=/^[\x00-\x20]*[\\/][\t\n\r]*[\\/]/;function k(e,t){if(!e)return!1;if(O.test(e))return!0;let n=D(e);return n?!t.has(n):!1}function A(e){if(!e)return e;let t=e;if(/[%\\\x00-\x1f\x7f]/.test(e)){let n=/%25|%5C/gi,r=0,i;for(t=``;(i=n.exec(e))!==null;)t+=T(e.slice(r,i.index))+i[0],r=n.lastIndex;t+=T(r?e.slice(r):e)}return t}function j(e){return/[\s\u0080-\uFFFF]/.test(e)?e.replace(/\s|[^\u0000-\u007F]/gu,encodeURIComponent):e}function M(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function N(){throw Error(`Invariant failed`)}function P(e){return e.replace(/\/{2,}/g,`/`)}function F(e){return e===`/`?e:e.replace(/^\/+/,``)}function I(e){let t=e.length;return t>1&&e[t-1]===`/`?e.replace(/\/+$/,``):e}function L(e){return I(F(e))}function R(e,t){return e?.endsWith(`/`)&&e!==`/`&&e!==`${t}/`?e.slice(0,-1):e}function ee(e,t,n=`never`,r){if(t.includes(`//`)&&(t=P(t)),t.startsWith(`/`))return t.length===1||n===`preserve`?t:n===`always`?t.endsWith(`/`)?t:`${t}/`:t.endsWith(`/`)?t.slice(0,-1):t;let i=t===`.`,a;if(r){a=i?e:e+`\0`+t;let n=r.get(a);if(n)return n}let o;if(i)o=e.split(`/`);else{for(e.includes(`//`)&&(e=P(e)),o=e.split(`/`);o.length>1&&p(o)===``;)o.pop();let n=t.split(`/`);for(let e=0,t=n.length;e<t;e++){let r=n[e];r===``?e?e===t-1&&o.push(r):o=[r]:r===`..`?o.length>1?o.pop():o=[``]:r===`.`||o.push(r)}}o.length>1&&(p(o)===``?n===`never`&&o.pop():n===`always`&&o.push(``));let s=o.join(`/`),c=(i?P(s):s)||`/`;return a&&r&&r.set(a,c),c}function te(e){let t=new Map(e.map(e=>[encodeURIComponent(e),e])),n=new RegExp([...t.keys()].join(`|`).replace(/[.*()]/g,`\\$&`),`g`);return e=>e.replace(n,e=>t.get(e)??e)}function z(e){return e==null||e===``}function B(e,t,n){if(typeof t!=`string`)return``+(t??void 0);let r=e===`_splat`;if(r&&(!t||/^[a-zA-Z0-9\-._~!/]*$/.test(t)))return t;let i=encodeURIComponent(t);return r&&(i=i.replaceAll(`%2F`,`/`)),n?n(i):i}function ne(e,t,n,r,i){let a=e.endsWith(`/`)?`/`:``,o=``;for(let e of t){if(typeof e==`string`){o+=e;continue}let[t,s,c,l]=e,u=t===2,d=u&&l!==void 0?l+a:l,f=n[s];if(t!==3||f!=null){if(i&&(i[s]=f,u&&(i[`*`]=f)),u&&z(f)){if(c===`/`&&!d)continue;f=``}o+=c+B(s,f,r)+(d||``)}}return o+a||`/`}function re(e){return e?.isNotFound===!0}function V(){try{return sessionStorage}catch{return}}var ie=`tsr-scroll-restoration-v1_3`,H=V();function ae(){try{return JSON.parse(H?.getItem(`tsr-scroll-restoration-v1_3`)||`{}`)}catch{return{}}}var oe=ae(),U=`data-scroll-restoration-id`,se=e=>e.state.__TSR_key||e.href;function ce(e){let t=e.getAttribute(U);if(t)return`[${U}="${t}"]`;let n=``,r=e,i;for(;i=r.parentNode;){let e=1,t=r;for(;t=t.previousElementSibling;)e++;let a=`${r.localName}:nth-child(${e})`;n=n?`${a} > ${n}`:a,r=i}return n}var le=!1,ue=`window`;function de(e){try{return typeof e==`function`?e():document.querySelector(e)}catch{}}function fe(e){let t=new Set;for(let n of e){if(n===ue)continue;let e=de(n);e&&t.add(e)}return t}function pe(e,t){let n=t??e.options.scrollRestoration,r=e._scroll;n&&(r.e=!0);let i=e.options.getScrollRestorationKey||se,a=new Set,o=e=>{let t=oe[e]||={};for(let e of a)e===document?t[ue]={scrollX,scrollY}:e.isConnected&&(t[ce(e)]={scrollX:e.scrollLeft,scrollY:e.scrollTop})};n&&!r.s&&(r.s=!0,le=!1,history.scrollRestoration=`manual`,document.addEventListener(`scroll`,e=>{le||a.add(e.target)},!0),e.subscribe(`onBeforeLoad`,e=>{e.fromLocation&&o(i(e.fromLocation)),a.clear()}),addEventListener(`pagehide`,()=>{history.scrollRestoration=`auto`,o(i(e.stores.resolvedLocation.get()??e.stores.location.get()));try{H?.setItem(ie,JSON.stringify(oe))}catch{}}),addEventListener(`pageshow`,e=>{e.persisted&&(history.scrollRestoration=`manual`)})),!r.r&&(r.r=!0,e.subscribe(`onRendered`,t=>{let n=e.options.scrollRestorationBehavior,o=e.options.scrollToTopSelectors,s=r.n,c=r.h,l;if(a.clear(),r.n=!0,r.h=!1,typeof e.options.scrollRestoration==`function`&&!e.options.scrollRestoration({location:e.latestLocation}))return;let u=i(t.toLocation),d=t.fromLocation&&i(t.fromLocation);if(r.e&&d&&d!==u){let e=oe[d];if(e){let t=oe[u];for(let n in e){if(n===ue){if(s)continue}else{let e=de(n);if(!e||s&&o&&(l??=fe(o),l.has(e)))continue}t||=oe[u]={},t[n]??=e[n]}}}le=!0;try{let e=t.toLocation.hash,i=t.toLocation.state.__hashScrollIntoViewOptions??!0,a=!1;if(s){!e&&o&&(l??=fe(o));let t=e&&i&&c,s=r.e?oe[u]:void 0;if(s)for(let e in s){let{scrollX:r,scrollY:i}=s[e];if(e===ue){if(t)continue;scrollTo({top:i,left:r,behavior:n}),a=!0}else{let t=de(e);t&&(t.scrollLeft=r,t.scrollTop=i,l?.delete(t))}}if(!e){let e={top:0,left:0,behavior:n};if(a||scrollTo(e),l)for(let t of l)t.scrollTo(e)}}!a&&e&&i&&document.getElementById(e)?.scrollIntoView(i)}finally{le=!1}}))}function me(e,t=String){let n;for(let r in e){let i=e[r];i!==void 0&&(n||=new URLSearchParams).set(r,t(i))}return n?n.toString():``}function he(e){return e?e===`false`?!1:e===`true`?!0:e*0==0&&+e+``===e?+e:e:``}function ge(e){let t=new URLSearchParams(e),n=Object.create(null);for(let[e,r]of t.entries()){let t=n[e];t==null?n[e]=he(r):Array.isArray(t)?t.push(he(r)):n[e]=[t,he(r)]}return n}var _e=/^(?:\s|["[{\d-]|fa|nu|tr)/,ve=be(JSON.parse),ye=xe(JSON.stringify,JSON.parse);function be(e){let t=e===JSON.parse;return n=>{n[0]===`?`&&(n=n.slice(1));let r=ge(n);for(let n in r){let i=r[n];if(typeof i==`string`){if(t&&!_e.test(i))continue;try{r[n]=e(i)}catch{}}}return r}}function xe(e,t){let n=t===JSON.parse;function r(r){if(r&&typeof r==`object`)try{return e(r)}catch{}else if(t&&typeof r==`string`){if(n&&!_e.test(r))return r;try{return t(r),e(r)}catch{}}return r}return e=>{let t=me(e,r);return t?`?${t}`:``}}var Se=`__root__`;function Ce(e){e.statusCode=e.statusCode||e.code||307;let t=new Headers(e.headers);e.href&&t.get(`Location`)===null&&t.set(`Location`,e.href);let n=new Response(null,{status:e.statusCode,headers:t});if(n.options=e,e.throw)throw n;return n}function we(e){return e instanceof Response&&!!e.options}function Te(e){let t=new Map,n,r;return{get(e){let n=t.get(e);if(n)return n.visited=!0,n.value},set(i,a){let o=t.get(i);if(o){o.value=a;return}if(t.size>=e){let e=n?.next().value;for(;!e||e.visited;)e?e.visited=!1:n=t.values(),e=n.next().value;e===r&&(n=void 0),t.delete(e.key)}let s={key:i,value:a,visited:!1};r=s,t.set(i,s)},clear(){t.clear(),n=void 0,r=void 0}}}var Ee=4,De=5;function Oe(e){let t=e.names;if(t)return t;let n=[];for(let t of e)typeof t!=`string`&&n.push(t[1]);return e.names=n}function ke(e,t,n){let r=e.slice(t,n);if(r.charCodeAt(0)===36)return r.length===1?[2,`_splat`,``,void 0]:[1,r.slice(1),``,``];let i=r.indexOf(`{`);if(i>=0){let a=r.indexOf(`}`,i),o=r.charCodeAt(i+1)===45,s=i+(o?3:2);if(a>=0&&r.charCodeAt(s-1)===36&&(!o||s<a)){let c=r.slice(s,a);return[o?3:c?1:2,c||`_splat`,r.slice(0,i),e.slice(t+a+1,c?n:e.length)]}}return r}function Ae(e,t,n,r,i,a){let o=n,s=t.fullPath??t.from,c=t.options,l=s.length,u=s.endsWith(`/`)?l-1:l,d=c?.caseSensitive??e,f=c?.params?.parse??c?.parseParams,m,h=a?n-1:0;if(!r||s.includes(`$`)){m=a?.slice()??[];let e=p(m);e&&typeof e!=`string`&&e[0]===2&&(m[m.length-1]=[e[0],e[1],e[2],e[3]===void 0?void 0:e[3]+s.substring(n-(s[n-2]===`/`?2:1),u)],h=l)}for(;o<l;){let e=o,t=s.indexOf(`/`,e),n=t===-1?l:t,a=ke(s,e,n);o=n+1;let c;if(typeof a==`string`){if(!r)continue;let e=a,t;d?t=r.static??=new Map:(e=a.toLowerCase(),t=r.staticInsensitive??=new Map);let n=t.get(e);if(n)c=n;else{let n=Me(r);c=n,t.set(e,n)}}else{let t=a[0],p=a[2],g=a[3]??``;if(t===2&&(n=l,o=n+1),m&&h<n&&(h<e-1&&m.push(s.slice(h,e-1)),a[2]=`/`+p,t===2&&a[3]!==void 0&&u<l&&(a[3]=g.slice(0,-1)),m.push(a),h=n),!r)continue;let _=d&&!!(p||g);d||(p=p.toLowerCase(),g=g.toLowerCase());let v=t===1?r.dynamic??=[]:t===3?r.optional??=[]:r.wildcard??=[],y=t!==2&&!f&&v.find(e=>!e.parse&&e.caseSensitive===_&&e.prefix===p&&e.suffix===g);if(y)c=y;else{let e=Me(r,t,_,p,g);c=e,v.push(e),v.length===2&&i?.push(v)}}r=c}m&&h<u&&m.push(s.slice(h,u));let g=m?.slice();if(!r)return g;if(f&&t.children&&!t.isRoot&&t.id&&t.id.charCodeAt(t.id.lastIndexOf(`/`)+1)===95){let e=Me(r,De);(r.pathless??=[]).push(e),r=e}let _=(t.path||!t.children)&&!t.isRoot;if(_&&u<l){let e=Me(r,Ee);r.index=e,r=e}return r.parse=f??null,r.priority=c?.params?.priority??0,r.route||(r.data=g,_&&(r.route=t)),[r,o,g]}function je(e,t){if(e.parse&&!t.parse)return-1;if(!e.parse&&t.parse)return 1;if(e.parse&&t.parse&&(e.priority||t.priority))return t.priority-e.priority;if(e.prefix&&t.prefix&&e.prefix!==t.prefix){if(e.prefix.startsWith(t.prefix))return-1;if(t.prefix.startsWith(e.prefix))return 1}if(e.suffix&&t.suffix&&e.suffix!==t.suffix){if(e.suffix.endsWith(t.suffix))return-1;if(t.suffix.endsWith(e.suffix))return 1}return e.prefix&&!t.prefix?-1:!e.prefix&&t.prefix?1:e.suffix&&!t.suffix?-1:!e.suffix&&t.suffix?1:e.caseSensitive&&!t.caseSensitive?-1:!e.caseSensitive&&t.caseSensitive?1:0}function Me(e,t=0,n,r,i){return{kind:t,depth:e?e.depth+1:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,data:void 0,parent:e,parse:null,priority:0,caseSensitive:n,prefix:r,suffix:i}}function Ne(e,t){let n=Me(),r=[];function i(e,t,n,a){let[o,s,c]=Ae(!1,e,t,n,r,a);if(e.children)for(let t of e.children)i(t,s,o,c)}for(let t of e)i(t,1,n);for(let e of r)e.sort(je);t.masksTree=n,t.flatCache=Te(1e3)}function Pe(e,t){e||=`/`;let n=t.flatCache.get(e);if(n!==void 0)return n;let r=Re(e,t.masksTree);return t.flatCache.set(e,r),r}function Fe(e,t,n,r,i){e||=`/`,r||=`/`;let a=t?`case\0${e}`:e,o=i.singleCache.get(a);return o||(o=Me(),Ae(t,{from:e},1,o),i.singleCache.set(a,o)),Re(r,o,n)}function Ie(e,t,n=!1){let r=n?e:`nofuzz\0${e}`,i=t.matchCache.get(r);if(i!==void 0)return i;e||=`/`;let a;try{a=Re(e,t.segmentTree,n)}catch(e){if(e instanceof URIError)a=null;else throw e}return a&&(a.branch=Be(a.route)),t.matchCache.set(r,a),a}function Le(e,t=!1){let n=Me(),r=[],i={},a={},o=0;function s(e,n,c,l){if(e.init(o),e.id in i&&N(),i[e.id]=e,o!==0&&e.path){let t=I(e.fullPath);(!a[t]||e.fullPath.endsWith(`/`))&&(a[t]=e)}o++;let[u,d,f]=Ae(t,e,n,c,r,l);if(e._interpolation=f,e.children)for(let t of e.children)s(t,d,u,f)}s(e,1,n);for(let e of r)e.sort(je);return{processedTree:{segmentTree:n,singleCache:Te(1e3),matchCache:Te(1e3),flatCache:null,masksTree:null},routesById:i,routesByPath:a}}function Re(e,t,n=!1){let r=e.split(`/`),i=He(e,r,t,n);if(!i)return null;let[a]=ze(e,r,i);return{route:i.node.route,rawParams:a}}function ze(e,t,n){let r=Ve(n.node),i=n.node.data&&Oe(n.node.data),a=Object.create(null),o=n.extract?.part??0,s=n.extract?.node??0,c=n.extract?.path??0,l=n.extract?.param??0;for(;s<r.length;o++,s++,c++){let u=r[s];if(u.kind===Ee)break;if(u.kind===De){o--,c--;continue}let d=t[o],f=c;if(d&&(c+=d.length),u.kind===1||u.kind===3){let e=i[l++];if(u.kind===3&&n.skipped&1<<s){o--,c=f-1;continue}let t=u.suffix||u.prefix?d.substring(u.prefix.length,d.length-u.suffix.length):d;(t||u.kind===1)&&(a[e]=decodeURIComponent(t))}else if(u.kind===2){let t=u,n=e.substring(f+t.prefix.length,e.length-t.suffix.length),r=decodeURIComponent(n);a[`*`]=r,a._splat=r;break}}return n.rawParams&&Object.assign(a,n.rawParams),[a,{part:o,node:s,path:c,param:l}]}function Be(e){let t=[e];for(;e.parentRoute;)e=e.parentRoute,t.push(e);return t.reverse(),t}function Ve(e){let t=Array(e.depth+1);do t[e.depth]=e,e=e.parent;while(e);return t}function He(e,t,n,r){if(e===`/`&&n.index)return{node:n.index,skipped:0};let i=!p(t),a=i&&e!==`/`,o=t.length-+!!i,s=[{node:n,index:1,skipped:0,statics:0,dynamics:0,optionals:0}],c=null,l=null;for(;s.length;){let n=s.pop(),{node:i,index:u,skipped:d,statics:f,dynamics:p,optionals:m}=n,{extract:h,rawParams:g}=n;if(i.kind===2&&i.route&&!Ke(l,n))continue;if(i.parse){if(!Ge(e,t,n))continue;g=n.rawParams,h=n.extract}r&&i.route&&i.kind!==Ee&&Ke(c,n)&&(c=n);let _=u===o;if(_&&(i.route&&(!a||i.kind===Ee||i.kind===2)&&Ke(l,n)&&(l=n),!i.optional&&!i.wildcard&&!i.index&&!i.pathless))continue;let v=_?void 0:t[u],y;if(_&&i.index){let n={node:i.index,index:u,skipped:d,statics:f,dynamics:p,optionals:m,extract:h,rawParams:g},r=!0;if(i.index.parse&&(Ge(e,t,n)||(r=!1)),r){if(!p&&!m&&!d&&We(f,o))return n;Ke(l,n)&&(l=n)}}if(i.wildcard)for(let e=i.wildcard.length-1;e>=0;e--){let n=i.wildcard[e],{prefix:r,suffix:a}=n;if(!r||!_&&(n.caseSensitive?v:y??=v.toLowerCase()).startsWith(r)){if(a){if(_)continue;let e=t.slice(u).join(`/`),i=e.slice(-a.length);if((n.caseSensitive?i:i.toLowerCase())!==a||e.length-a.length<r.length)continue}s.push({node:n,index:o,skipped:d,statics:f,dynamics:p,optionals:m,extract:h,rawParams:g})}}if(i.optional){let e=d|1<<i.depth+1;for(let t=i.optional.length-1;t>=0;t--){let n=i.optional[t];s.push({node:n,index:u,skipped:e,statics:f,dynamics:p,optionals:m,extract:h,rawParams:g})}if(!_)for(let e=i.optional.length-1;e>=0;e--){let t=i.optional[e],{prefix:n,suffix:r}=t;if(n||r){let e=t.caseSensitive?v:y??=v.toLowerCase();if(n&&!e.startsWith(n)||r&&e.indexOf(r,e.length-r.length)<n.length)continue}s.push({node:t,index:u+1,skipped:d,statics:f,dynamics:p,optionals:m+Ue(o,u),extract:h,rawParams:g})}}if(!_&&i.dynamic&&v)for(let e=i.dynamic.length-1;e>=0;e--){let t=i.dynamic[e],{prefix:n,suffix:r}=t;if(n||r){let e=t.caseSensitive?v:y??=v.toLowerCase();if(n&&!e.startsWith(n)||r&&e.indexOf(r,e.length-r.length)<n.length)continue}s.push({node:t,index:u+1,skipped:d,statics:f,dynamics:p+Ue(o,u),optionals:m,extract:h,rawParams:g})}if(!_&&i.staticInsensitive){let e=i.staticInsensitive.get(y??=v.toLowerCase());e&&s.push({node:e,index:u+1,skipped:d,statics:f+Ue(o,u),dynamics:p,optionals:m,extract:h,rawParams:g})}if(!_&&i.static){let e=i.static.get(v);e&&s.push({node:e,index:u+1,skipped:d,statics:f+Ue(o,u),dynamics:p,optionals:m,extract:h,rawParams:g})}if(i.pathless)for(let e=i.pathless.length-1;e>=0;e--){let t=i.pathless[e];s.push({node:t,index:u,skipped:d,statics:f,dynamics:p,optionals:m,extract:h,rawParams:g})}}if(l)return l;if(r&&c){let n=c.index;for(let e=0;e<c.index;e++)n+=t[e].length;let r=n===e.length?`/`:e.slice(n);return c.rawParams??=Object.create(null),c.rawParams[`**`]=decodeURIComponent(r),c}return null}function Ue(e,t){return 2**(e-t-1)}function We(e,t){return e===2**(t-1)-1}function Ge(e,t,n){let r,i;try{[r,i]=ze(e,t,n)}catch{return null}if(n.rawParams=r,n.extract=i,!n.node.parse)return!0;try{if(n.node.parse(r)===!1)return null}catch{}return!0}function Ke(e,t){return!e||t.statics>e.statics||t.statics===e.statics&&(t.dynamics>e.dynamics||t.dynamics===e.dynamics&&(t.optionals>e.optionals||t.optionals===e.optionals&&((t.node.kind===Ee)>(e.node.kind===Ee)||t.node.kind===Ee==(e.node.kind===Ee)&&t.node.depth>e.node.depth)))}function qe(e,t,n){let r=L(e),i=`/${r}`,a=t?i:i.toLowerCase(),o=`${a}/`,s={input:({url:e})=>{let n=t?e.pathname:e.pathname.toLowerCase();return n===a?e.pathname=`/`:n.startsWith(o)&&(e.pathname=e.pathname.slice(i.length)),e},output:({url:e})=>(e.pathname=P(`/${r}${e.pathname}`),e)};return n?{input:({url:e})=>Je(n,s.input({url:e})),output:({url:e})=>s.output({url:Ye(n,e)})}:s}function Je(e,t){let n=e?.input?.({url:t});if(n){if(typeof n==`string`)return new URL(n);if(n instanceof URL)return n}return t}function Ye(e,t){let n=e?.output?.({url:t});if(n){if(typeof n==`string`)return new URL(n);if(n instanceof URL)return n}return t}function Xe(e){let t=e;return{get(){return t},set(e){t=m(e,t)}}}function Ze(e){return{get(){return e()}}}function Qe(e,t){let{createMutableStore:n,createReadonlyStore:r,batch:i}=t,a=new Map,o=n(`idle`),s=n(e),c=n(void 0),l=n([]),u=r(()=>l.get().map(e=>a.get(e).get())),d=r(()=>({status:o.get(),isLoading:o.get()===`pending`,matches:u.get(),location:s.get(),resolvedLocation:c.get()}));function f(e){let t=a.get(e);return t||(t=n(void 0),a.set(e,t)),t}let p={status:o,location:s,resolvedLocation:c,ids:l,matches:u,byRoute:a,__store:d,getMatchStore:f,setMatches:m};function m(e){let t=l.get(),n=e.map(e=>e.routeId);i(()=>{M(t,n)||l.set(n);for(let e of t)n.includes(e)||a.get(e).set(()=>void 0);for(let t of e){let e=f(t.routeId);e.get()!==t&&e.set(t)}})}return p}var $e=`__TSR_index`,et=`popstate`,tt=`beforeunload`,nt=/^[\x00-\x20]*(?:[\\/][\t\n\r]*){2,}/;function rt(e){let t=nt.exec(e);return t?`/`+e.slice(t[0].length):e}function it(e){return/[\x00-\x1f\x7f]/.test(e)&&(e=e.replace(/[\x00-\x1f\x7f]/g,e=>`
|
|
2
|
+
\r`.includes(e)?``:encodeURIComponent(e))),rt(e)}function at(e){let t=e.getLocation(),n=new Set,r=r=>{t=e.getLocation(),n.forEach(e=>e({location:t,action:r}))},i=n=>{e.notifyOnIndexChange??!0?r(n):t=e.getLocation()},a=async n=>{let r=n.navigateOpts?.ignoreBlocker?void 0:e.getBlockers?.();if(typeof document<`u`&&r?.length&&(n.type===`PUSH`||n.type===`REPLACE`))for(let i of r){let r=ct(n.path,n.state);if(await i.blockerFn({currentLocation:t,nextLocation:r,action:n.type})){e.onBlocked?.();return}}n.task()};return{get location(){return t},get length(){return e.getLength()},subscribers:n,subscribe:e=>(n.add(e),()=>{n.delete(e)}),push:(n,i,o)=>{let s=t.state[$e];i=ot(s+1,i),a({task:()=>{e.pushState(n,i),r({type:`PUSH`})},navigateOpts:o,type:`PUSH`,path:n,state:i})},replace:(n,i,o)=>{let s=t.state[$e];i=ot(s,i),a({task:()=>{e.replaceState(n,i),r({type:`REPLACE`})},navigateOpts:o,type:`REPLACE`,path:n,state:i})},go:(t,n)=>{a({task:()=>{e.go(t,n?.ignoreBlocker??!1),i({type:`GO`,index:t})},navigateOpts:n,type:`GO`})},back:t=>{a({task:()=>{e.back(t?.ignoreBlocker??!1),i({type:`BACK`})},navigateOpts:t,type:`BACK`})},forward:t=>{a({task:()=>{e.forward(t?.ignoreBlocker??!1),i({type:`FORWARD`})},navigateOpts:t,type:`FORWARD`})},canGoBack:()=>t.state[$e]!==0,createHref:t=>e.createHref(t),block:t=>{if(!e.setBlockers)return()=>{};let n=e.getBlockers?.()??[];return e.setBlockers([...n,t]),()=>{let n=e.getBlockers?.()??[];e.setBlockers?.(n.filter(e=>e!==t))}},flush:()=>e.flush?.(),destroy:()=>e.destroy?.(),notify:r,_getBlockers:()=>e.getBlockers?.()??[]}}function ot(e,t){let n=lt();return{...t,key:n,__TSR_key:n,[$e]:e}}function st(e){let t=e?.window??(typeof document<`u`?window:void 0),n=t.history.pushState,r=t.history.replaceState,i=[],a=()=>i,o=e=>i=e,s=t=>it(e?.createHref?e.createHref(t):t),c=e?.parseLocation??(()=>ct(`${t.location.pathname}${t.location.search}${t.location.hash}`,t.history.state));if(!t.history.state?.__TSR_key&&!t.history.state?.key){let e=lt();t.history.replaceState({[$e]:0,key:e,__TSR_key:e},``)}let l=c(),u,d=!1,f=!1,p=!1,m=!1,h=()=>l,g,_=()=>{g&&(S._ignoreSubscribers=!0,(g[2]?t.history.pushState:t.history.replaceState)(g[1],``,g[0]),S._ignoreSubscribers=!1,g=void 0,u=void 0)},v=(t,n,r)=>{let i=e?.createHref?s(n):void 0,a=!!g;a||(u=l),l=ct(n,r),g=[i??l.href,r,g?.[2]||t],a||queueMicrotask(()=>_())},y=e=>{l=c(),S.notify({type:e})},b=async()=>{if(m=!1,f){f=!1;return}let e=c(),n=e.state[$e]-l.state[$e],r=n===1,i=n===-1,o=!r&&!i||d;d=!1;let s=o?`GO`:i?`BACK`:`FORWARD`,u=o?{type:`GO`,index:n}:{type:i?`BACK`:`FORWARD`};if(p)p=!1;else{let r=a();if(typeof document<`u`&&r.length){for(let i of r)if(await i.blockerFn({currentLocation:l,nextLocation:e,action:s})){f=!0,t.history.go(-n),S.notify(u);return}}}l=c(),S.notify(u)},x=e=>{if(m){m=!1;return}let t=!1,n=a();if(typeof document<`u`&&n.length)for(let e of n){let n=e.enableBeforeUnload??!0;if(n===!0||typeof n==`function`&&n()===!0){t=!0;break}}if(t)return e.preventDefault(),e.returnValue=``},S=at({getLocation:h,getLength:()=>t.history.length,pushState:(e,t)=>v(!0,e,t),replaceState:(e,t)=>v(!1,e,t),back:e=>(e&&(p=!0,m=!0),t.history.back()),forward:e=>{e&&(p=!0,m=!0),t.history.forward()},go:(e,n)=>{d=!0,n&&(p=!0,m=!0),t.history.go(e)},createHref:s,flush:_,destroy:()=>{t.history.pushState=n,t.history.replaceState=r,t.removeEventListener(tt,x,{capture:!0}),t.removeEventListener(et,b)},onBlocked:()=>{u&&l!==u&&(l=u)},getBlockers:a,setBlockers:o,notifyOnIndexChange:!1});return S._ignoreNextBeforeUnload=e=>{m=!1;try{e=new URL(e,t.document.baseURI).href,m=/^https?:/.test(e)&&(!e.includes(`#`)||e.split(`#`)[0]!==t.location.href.split(`#`)[0])}catch{}},t.addEventListener(tt,x,{capture:!0}),t.addEventListener(et,b),t.history.pushState=function(...e){let r=n.apply(t.history,e);return S._ignoreSubscribers||y(`PUSH`),r},t.history.replaceState=function(...e){let n=r.apply(t.history,e);return S._ignoreSubscribers||y(`REPLACE`),n},S}function ct(e,t){let n=it(e),r=n.indexOf(`#`),i=n.indexOf(`?`);if(!t){let e=lt();t={[$e]:0,key:e,__TSR_key:e}}return{href:n,pathname:n.slice(0,r>-1?i>-1?Math.min(r,i):r:i>-1?i:n.length),hash:r>-1?n.slice(r):``,search:i>-1?n.slice(i,r===-1?void 0:r):``,state:t}}function lt(){return(Math.random()+1).toString(36).slice(7)}function ut(e,t){return e.protocol!==`http:`&&e.protocol!==`https:`||e.origin!==t||!!e.username||!!e.password}function dt(e){return e.pathname+e.search+e.hash}function ft(e){return e.options.loader||e.options.beforeLoad||e.lazyFn||e.options.component?.preload||e.options.pendingComponent?.preload}function pt(e,t){return{fromLocation:t,toLocation:e,pathChanged:t?.pathname!==e.pathname,hrefChanged:t?.href!==e.href,hashChanged:t?.hash!==e.hash}}function mt({key:e,__TSR_key:t,__TSR_index:n,__hashScrollIntoViewOptions:r,...i}){return i}function ht(e){return e.findIndex(e=>e.status===`error`||e.status===`notFound`||e._notFound)+1}function gt(e,t,n,r,i,a){r&&(t=t.slice(0,r)),i&&(n=n.slice(0,i));for(let r of t){if(a&&e._tx!==a)return;n.some(e=>e.routeId===r.routeId)||e.routesById[r.routeId].options.onLeave?.(r)}for(let r of n){if(a&&e._tx!==a)return;e.routesById[r.routeId].options[t.some(e=>e.routeId===r.routeId)?`onStay`:`onEnter`]?.(r)}}var _t=class{constructor(e,t){this.tempLocationKey=`${Math.round(Math.random()*1e7)}`,this._scroll={n:!0},this.subscribers=new Set,this._cache=new Map,this._committed=[],this.startTransition=async e=>(e(),!1),this.update=e=>{let t=this.options;this.options={...t,...e},this.isServer=this.options.isServer??!1??typeof document>`u`,this.staticLocations=new WeakMap,this.protocolAllowlist=new Set(this.options.protocolAllowlist),(!this.history||this.options.history&&this.options.history!==this.history)&&(this.history=this.options.history?this.options.history:st()),this.origin=this.options.origin,this.origin||=window?.origin&&window.origin!==`null`?window.origin:`http://localhost`;let n=this.options.basepath??`/`,r=this.options.rewrite,i=this.basepath!==n||t?.rewrite!==r||t?.caseSensitive!==this.options.caseSensitive;if(i&&(this.basepath=n,this.rewrite=n!==`/`&&L(n)?qe(n,this.options.caseSensitive,r):r),this.history&&this.updateLatestLocation(),this.options.routeTree!==this.routeTree){this.routeTree=this.options.routeTree;let e;e=this.buildRouteTree(),this.setRoutes(e)}if(this.stores)i&&this.stores.location.set(this.latestLocation);else if(this.latestLocation){let e=this.getStoreConfig(this);this.batch=e.batch,this.stores=Qe(this.latestLocation,e),pe(this)}},this.updateLatestLocation=()=>{this.latestLocation=this.parseLocation(this.history.location,this.latestLocation)},this.buildRouteTree=()=>{let e=Le(this.routeTree,this.options.caseSensitive);return this.options.routeMasks&&Ne(this.options.routeMasks,e.processedTree),{...e,resolvePathCache:Te(1e3)}},this.subscribe=(e,t)=>{let n={eventType:e,fn:t};return this.subscribers.add(n),()=>{this.subscribers.delete(n)}},this.emit=e=>{for(let t of this.subscribers)if(t.eventType===e.type)try{t.fn(e)}catch(e){console.error(e)}},this.parseLocation=(e,t)=>{let n=({pathname:e,search:n,hash:r,href:i},a)=>{if(!this.rewrite&&!/[ \x00-\x1f\x7f\u0080-\uffff]/.test(e)){let i=this.options.parseSearch(n),o=this.options.stringifySearch(i);return{href:e+o+r,publicHref:e+o+r,pathname:A(e),external:!1,searchStr:o,search:v(t?.search,i),hash:A(r.slice(1)),state:y(t?.state,a)}}let o=Je(this.rewrite,new URL(i,this.origin)),s=this.options.parseSearch(o.search),c=this.options.stringifySearch(s);return o.search=c,{href:o.href.replace(o.origin,``),publicHref:i,pathname:A(rt(o.pathname)),external:!!this.rewrite&&ut(o,this.origin),searchStr:c,search:v(t?.search,s),hash:A(o.hash.slice(1)),state:y(t?.state,a)}},r=n(e,e.state),{__tempLocation:i,__tempKey:a}=r.state;if(i&&(!a||a===this.tempLocationKey)){let e=n(i,{...i.state,__tempLocation:void 0,key:r.state.key,__TSR_key:r.state.__TSR_key});return e.maskedLocation=r,e}return r},this.matchRoutes=(e,t,n)=>typeof e==`string`?this.matchRoutesInternal({pathname:e,search:t},n):this.matchRoutesInternal(e,t),this.getMatchedRoutes=e=>{let t=Object.create(null),n=Ie(I(e),this.processedTree,!0);return n&&Object.assign(t,n.rawParams),[n?.branch||[this.routesById.__root__],t,n?.route]},this.buildLocation=e=>{{let t=this.staticLocations.get(e);if(t)return t}let t=!1,n=(n={})=>{if(n.href){let e=ct(n.href,{});n={...n,to:Je(this.rewrite,new URL(e.pathname,this.origin)).pathname,search:this.options.parseSearch(e.search),hash:e.hash.slice(1)}}let r=e._fromLocation||this._pendingLocation||this.latestLocation,i,a=()=>(t=!0,r),o=()=>i??=this.matchRoutesLightweight(a()),s=n.to?`${n.to}`:`.`,c=ee(s[0]===`/`?``:n.unsafeRelative===`path`?a().pathname:n.from??o()[1],s,this.options.trailingSlash,this.resolvePathCache),l=this.routesByPath[I(c)],u=c.includes(`$`),d;if(l)d=l._branch??=Be(l);else if(u)d=[];else{let[e,t,n]=this.getMatchedRoutes(c);d=e,this.options.notFoundRoute&&(!n||n.path!==`/`&&t[`**`])&&(d=[...d,this.options.notFoundRoute])}let f=u?l?._interpolation??Ae(!1,{fullPath:c},0):void 0,p;for(let e of d){let t=e.options.params?.stringify??e.options.stringifyParams;if(t){let e=o()[3];if(p??=St(n.params,e),!g(p))break;p===e&&(p=Object.assign(_(),p));try{Object.assign(p,t(p))}catch{}}}p??=St(n.params,Ct(n.params,f)?o()[3]:wt);let m=e.leaveParams?c:rt(A(f?ne(c,f,p,this.pathParamsDecoder):c)),h=Tt(d,e._includeValidateSearch),v=()=>{let t=o()[2];if(e._includeValidateSearch&&this.options.search?.strict){let e={};d.forEach(n=>{if(n.options.validateSearch)try{Object.assign(e,xt(n.options.validateSearch,{...e,...t}))}catch{}}),t=e}return t},y=h.length?Et(h,v(),n):n.search===!0?v():typeof n.search==`function`?n.search(v()):n.search||wt,b=this.options.stringifySearch(y),x=n.hash===!0?a().hash:typeof n.hash==`function`?n.hash(a().hash):n.hash||void 0,S=x?`#${x}`:``,C=n.state?n.state===!0?a().state:typeof n.state==`function`?n.state(a().state):n.state:wt,w=`${m}${b}${S}`,T,E,D=!1;if(this.rewrite){let e=new URL(w,this.origin),t=e.origin,n=Ye(this.rewrite,e);T=dt(e),ut(n,t)?(E=n.href,D=!0):E=rt(dt(n))}else T=j(w),E=T;return{publicHref:E,href:T,pathname:m,search:y,searchStr:b,state:C,hash:x??``,external:D,unmaskOnReload:n.unmaskOnReload}},r=n(e);if(e.mask)r.maskedLocation=n({from:e.from,...e.mask});else if(this.options.routeMasks){let t=Pe(r.pathname,this.processedTree);if(t){let i=Object.assign(_(),t.rawParams),{from:a,params:o,...s}=t.route,c=St(o,i);r.maskedLocation=n({from:e.from,...s,params:c})}}return!t&&e._fromLocation&&this.staticLocations.set(e,r),r},this.commitLocation=async({viewTransition:e,ignoreBlocker:t,...n})=>{let r=n.maskedLocation??n;if(r.external)return vt(this,r.publicHref,{replace:n.replace,ignoreBlocker:t});let i,a=I(this.latestLocation.href)===I(n.href)&&x(mt(n.state),mt(this.latestLocation.state)),o=this._commitPromise,s,c=new Promise(e=>{s=e});if(c.resolve=()=>{s(),o?.resolve()},this._commitPromise=c,a)this.load();else{let{maskedLocation:r,hashScrollIntoView:a,...o}=n;r&&(o={...r,state:{...r.state,__tempKey:void 0,__tempLocation:{...o,search:o.searchStr,state:{...o.state,__tempKey:void 0,__tempLocation:void 0,__TSR_key:void 0,key:void 0}}}},(o.unmaskOnReload??this.options.unmaskOnReload??!1)&&(o.state.__tempKey=this.tempLocationKey)),o.state={...o.state,__hashScrollIntoViewOptions:a??this.options.defaultHashScrollIntoView??!0},this.shouldViewTransition=e,i=n.replace?`REPLACE`:`PUSH`,this.history[i===`REPLACE`?`replace`:`push`](o.publicHref,o.state,{ignoreBlocker:t}),this.history.subscribers.size||this.load({action:{type:i}})}return this._scroll.n=n.resetScroll??!0,this._commitPromise},this.buildAndCommitLocation=({replace:e,resetScroll:t,hashScrollIntoView:n,viewTransition:r,ignoreBlocker:i,...a}={})=>{let o=this.buildLocation({...a,_includeValidateSearch:!0});this._pendingLocation=o;let s=this.commitLocation({...o,viewTransition:r,replace:e,resetScroll:t,hashScrollIntoView:n,ignoreBlocker:i});return queueMicrotask(()=>{this._pendingLocation===o&&(this._pendingLocation=void 0)}),s},this.navigate=async({to:e,reloadDocument:t,href:n,publicHref:r,...i})=>{let a=n?D(n):void 0;if(a||t){if(e!==void 0||!n){let t=this.buildLocation({to:e,...i}),a=t.maskedLocation??t;n??=a.publicHref,r??=a.publicHref}let t=!a&&r?r:n;return vt(this,t,i)}return this.buildAndCommitLocation({...i,href:n,to:e,_isNavigate:!0})},this.load=async e=>{this.updateLatestLocation(),e?.action&&(this._scroll.h=e.action.type===`PUSH`||e.action.type===`REPLACE`),await yn(this,e)},this.startViewTransition=e=>{let t=this.shouldViewTransition??this.options.defaultViewTransition;if(this.shouldViewTransition=void 0,t&&typeof document.startViewTransition==`function`){let n;if(typeof t==`object`&&window.CSS?.supports?.(`selector(:active-view-transition-type(a))`)){let r=this.latestLocation,i=this.stores.resolvedLocation.get(),a=typeof t.types==`function`?t.types(pt(r,i)):t.types;if(a===!1)return e();n={update:e,types:a}}else n=e;return document.startViewTransition(n).updateCallbackDone}return e()},this.invalidate=e=>{let t=this._committed,n=e?.filter,r=this._preloads,i=new Set,a=e=>{(!n||n(e))&&i.add(e.id)};t.forEach(a),this._cache.forEach(a),r?.forEach(e=>e.forEach(a)),this._tx?.[3].forEach(a);let o=[];for(let[e,t]of r??[])t.some(e=>i.has(e.id))&&(r.delete(e),o.push(e));let s=t=>{if(i.has(t.id)){let n=this.routesById[t.routeId],r={...t,invalid:!0,...(e?.forcePending||t.status===`error`||t.status===`notFound`)&&ft(n)?{status:`pending`,error:void 0}:void 0};return t._flight=void 0,r}return t};this._committed=t.map(s);for(let[t,n]of this._cache)i.has(t)&&(n.invalid=!0,e?.forcePending&&(n.status=`pending`));for(let e of i){let t=this._flights?.get(e);this._flights?.delete(e),t&&!t[2]&&o.push(t[1])}for(let e of o)e.abort();return this.shouldViewTransition=!1,this.load({sync:e?.sync})},this.resolveRedirect=e=>{let t=e.options,n=e.headers.get(`Location`)||t.href;if(!n){let e=this.buildLocation(t);n=(e.maskedLocation??e).publicHref||`/`}let r;if(O.test(n)||(r=D(n))&&!this.protocolAllowlist.has(r))throw Error(`Redirect blocked: unsafe protocol`);if(r===`http:`||r===`https:`){let e=new URL(n);e.pathname.startsWith(`//`)?n=e.href:ut(e,this.origin)||(n=dt(e),r=void 0)}return r&&(t.reloadDocument=!0),t.href=n,e.headers.set(`Location`,n),e},this.clearCache=e=>{let t=this._cache,n=this._preloads,r=e?.filter,i=[],a=[];for(let[e,n]of t)(!r||r(n))&&(a.push(e),i.push(n));let o=[];for(let[e,t]of n??[])(!r||t.some(r))&&(o.push(e),i.push(...t));for(let e of a)t.delete(e);for(let e of o)n.delete(e);for(let e of i){let t=e._flight;e._flight=void 0,t&&!--t[2]&&(this._flights?.get(e.id)===t&&this._flights.delete(e.id),o.push(t[1]))}for(let e of o)e.abort()},this.loadRouteChunk=jt,this.preloadRoute=e=>bn(this,e),this.matchRoute=(e,t)=>{let n={...e,to:e.to?ee(e.from||``,e.to,this.options.trailingSlash,this.resolvePathCache):void 0,params:e.params||{},leaveParams:!0},r=this.buildLocation(n),i=this.stores.status.get()===`pending`;if(t?.pending&&!i)return!1;let a=t?.pending??!i?this.latestLocation:this.stores.resolvedLocation.get()||this.stores.location.get(),o=Fe(r.pathname,t?.caseSensitive??!1,t?.fuzzy??!1,a.pathname,this.processedTree);return!o||e.params&&!x(o.rawParams,e.params,!0)?!1:t?.includeSearch??!0?x(a.search,r.search,!0)?o.rawParams:!1:o.rawParams},this.getStoreConfig=t,e.pathParamsAllowedCharacters?.length&&(this.pathParamsDecoder=te(e.pathParamsAllowedCharacters)),this.update({defaultPreloadDelay:50,defaultPendingMs:1e3,defaultPendingMinMs:500,context:void 0,...e,caseSensitive:e.caseSensitive??!1,notFoundMode:e.notFoundMode??`fuzzy`,stringifySearch:e.stringifySearch??ye,parseSearch:e.parseSearch??ve,protocolAllowlist:e.protocolAllowlist??E}),self.__TSR_ROUTER__=this}isShell(){return!!this.options.isShell}get state(){return this.stores.__store.get()}setRoutes(e){Object.assign(this,e),this.lightweightCache=new WeakMap,this.staticLocations=new WeakMap;let t=this.options.notFoundRoute;t&&(t.init(99999999999),this.routesById[t.id]!==t&&(t._interpolation=Ae(!1,t,0)),this.routesById[t.id]=t)}matchRoutesInternal(e,t){let[n,r,i]=this.getMatchedRoutes(e.pathname),a=n,o=!1;(i?i.path!==`/`&&r[`**`]:I(e.pathname))&&(this.options.notFoundRoute?a=[...a,this.options.notFoundRoute]:o=!0);let s=o?Dt(this.options.notFoundMode,a):void 0,c=Array(a.length),l=this._committed,u=(e,t)=>{let n=l[t];return n?.routeId===e.id?n:e===this.options.notFoundRoute?l.find(t=>t.routeId===e.id):void 0},d;for(let n=0;n<a.length;n++){let i=a[n],o=c[n-1],l,f,p;{let n=o?.search??e.search,r=o?._strictSearch??void 0;try{let e=xt(i.options.validateSearch,{...n})??void 0;l={...n,...e},f={...r,...e}}catch(e){let r=e;if(e instanceof yt||(r=new yt(e.message,{cause:e})),t?.throwOnError)throw r;l=n,f={},p=r}}let m=``,h=``;try{m=i.options.loaderDeps?.({search:l})??``,h=m&&JSON.stringify(m)||``}catch(e){if(t?.throwOnError)throw e;p??=e}let g=_(),b=i._interpolation?ne(i.fullPath,i._interpolation,r,this.pathParamsDecoder,g):i.fullPath,x=i.id+b+h,S=u(i,n),C=this._cache.get(x)??(S?.id===x?S:void 0);d=C?._strictParams??Object.assign(g,d);let w;if(!C)try{Ot(i,d)}catch(e){if(w=re(e)||we(e)?e:new bt(e.message,{cause:e}),t?.throwOnError)throw w}let T=S?`stay`:`enter`,E;if(C)E={...C,cause:T,search:v(S?S.search:C.search,l),_strictSearch:f,searchError:p};else{let e=ft(i)?`pending`:`success`;E={id:x,ssr:i.options.ssr,index:n,routeId:i.id,params:S?.params??d,_strictParams:d,pathname:b,updatedAt:Date.now(),search:S?v(S.search,l):l,_strictSearch:f,searchError:p,status:e,isFetching:!1,error:void 0,paramsError:w,context:{},abortController:t?._controller??new AbortController,cause:T,loaderDeps:S?y(S.loaderDeps,m):m,invalid:!1,preload:!1,staticData:i.options.staticData||{},fullPath:i.fullPath}}let D=s===i.id;E._notFound&&!D&&(E.error=void 0),E._notFound=D,c[n]=E}for(let e=0;e<c.length;e++){let n=c[e];n.params=n.cause===`stay`?v(n.params,d):d,t?._controller&&(n.context={})}return c}matchRoutesLightweight(e){let t=p(this.stores.ids.get()),n=t?this.stores.byRoute.get(t).get():void 0,r=n?.id,i=this.lightweightCache.get(e);if(i&&i[0]===r)return i[1];let[a,o]=this.getMatchedRoutes(e.pathname),s=p(a),c={...e.search};for(let e of a)try{Object.assign(c,xt(e.options.validateSearch,c))}catch{}let l=n&&n.routeId===s.id&&n.pathname===e.pathname,u;if(l)u=n.params;else{let e=o;for(let t of a)try{Ot(t,e)}catch{}u=e}let d=[a,s.fullPath,c,u];return this.lightweightCache.set(e,[r,d]),d}};async function vt(e,t,{replace:n,ignoreBlocker:r}){if(!k(t,e.protocolAllowlist)){if(!r){let t=e.history._getBlockers();for(let r of t)if(r?.blockerFn&&await r.blockerFn({currentLocation:e.history.location,nextLocation:e.history.location,action:n?`REPLACE`:`PUSH`}))return}e.history._ignoreNextBeforeUnload?.(t),n?window.location.replace(t):window.location.href=t}}var yt=class extends Error{},bt=class extends Error{};function xt(e,t){if(e==null)return{};if(`~standard`in e){let n=e[`~standard`].validate(t);if(n instanceof Promise)throw new yt(`Async validation not supported`);if(n.issues)throw new yt(JSON.stringify(n.issues,void 0,2),{cause:n});return n.value}return`parse`in e?e.parse(t):typeof e==`function`?e(t):{}}function St(e,t){if(e===void 0||e===!0)return t;let n=Object.create(null);return e===!1||e===null?n:typeof e==`function`?(Object.assign(n,t),Object.assign(n,e(n))):Object.assign(n,t,e)}function Ct(e,t){return typeof e==`function`?!0:!t||e===!1||e===null?!1:e===void 0||e===!0||t.some(t=>typeof t!=`string`&&!h.call(e,t[1]))}var wt=Object.freeze({});function Tt(e,t){let n=[];for(let r=0;r<e.length;r++){let i=e[r].options;`search`in i?i.search?.middlewares&&n.push(...i.search.middlewares):(i.preSearchFilters||i.postSearchFilters)&&n.push(({search:e,next:t})=>{let n=t(i.preSearchFilters?i.preSearchFilters.reduce((e,t)=>t(e),e):e);return i.postSearchFilters?i.postSearchFilters.reduce((e,t)=>t(e),n):n});let a=i.validateSearch;t&&a&&n.push(({search:e,next:t,meta:n})=>{let r=t(e);try{let e=xt(a,r);if(n&&e)for(let t in e)t in r||(n.defaulted||=new Map).set(t,e[t]);return{...r,...e}}catch{}return r})}return n}function Et(e,t,n){let r=(t,i,a)=>{if(t>=e.length){if(!n.search)return{};if(n.search===!0)return i;let e=m(n.search,i);return a&&(a.explicit=e),e}return e[t]({search:i,next:(e,n)=>{if(n){let n=a||{};return{search:r(t+1,e,n),meta:n}}return r(t+1,e,a)},meta:a})};return r(0,t)}function Dt(e,t){if(e!==`root`){let e;for(let n=t.length-1;n>=0;n--){let r=t[n];if(r.options.notFoundComponent)return r.id;e||=r.children&&r.id}if(e)return e}return Se}function Ot(e,t){let n=e.options.params?.parse??e.options.parseParams;n&&Object.assign(t,n(t))}function kt(e,t){return e.options[t]?.preload?.()}function At(e,t){let n=kt(e,`component`),r=kt(e,`pendingComponent`);return t&&(r?r=r.then(t):t()),n&&r?Promise.all([n,r]).then(()=>{}):n??r}function jt(e,t,n){let r=()=>t===!1?void 0:t?kt(e,t):At(e,n),i=e._lazy;if(i)return i===!0?r():i.then(r);if(!e.lazyFn)return r();let a=e.lazyFn().then(t=>{{let{id:n,...r}=t.options;Object.assign(e.options,r),e._lazy=!0}},t=>{throw e._lazy=void 0,t});return e._lazy=a,a.then(r)}function Mt(e){let t=e.findIndex(e=>e.status!==`success`||e._notFound)+1;return t&&t<e.length?e.slice(0,t):e}function Nt(e,t,n){let r=e._tx;return t&&r?.[2]===n&&!r[3].some(e=>e.routeId===t)}var Pt=0,Ft=1,It=2,W=3,Lt=[4];function Rt(e){return typeof e[0]==`number`}function zt(e,t){return t.aborted?Promise.race([Promise.reject(t),e]):new Promise((n,r)=>{let i=()=>r(t);t.addEventListener(`abort`,i,{once:!0}),Promise.resolve(e).then(n,r).then(()=>t.removeEventListener(`abort`,i))})}function Bt(e,t){return e.routesById[t.routeId]}function Vt(e,t,n){return we(e)?[W,e]:re(e)?(e.routeId||=n,[It,e]):t?(typeof e?.then==`function`&&(e=Error(`A Promise was thrown`,{cause:e})),[Ft,e]):[Pt,e]}function Ht(e,t){let n=Vt(t,!0,e.id);if(n[0]!==Ft)return n;try{e.options.onError?.(n[1])}catch(t){n=Vt(t,!0,e.id)}return n}function Ut(e,t,n,r,i){return i[0].signal.aborted?Lt:on(e,t,n,Ht(n,r),i)}async function Wt(e,t,n,r,i,a){let[o,s]=t,c=n[0].signal,l=!!n[3];for(let i=n[6]??0;i<r;i++){let r=s[i],u=Bt(e,r);r.abortController=n[0];let d=s[i-1]?.context??e.options.context??{},f={params:r.params,location:o,navigate:t=>e.navigate({...t,_fromLocation:o}),buildLocation:e.buildLocation,cause:l?`preload`:r.cause,abortController:n[0],preload:l,matches:s,routeId:u.id};try{let e=r._ctx||=u.options.context?u.options.context({...f,deps:r.loaderDeps,context:d})||{}:void 0;r.context={...d,...e}}catch(a){return Kt(e,r),[i,Ut(e,t,u,a,n)]}if(c.aborted)return[i,Lt];let p=r.paramsError??r.searchError;if(p!==void 0)return Kt(e,r),[i,Ut(e,t,u,p,n)];let m=u.options.beforeLoad;if(!m)continue;let h=r.status;i>=a&&(r.status=`pending`,n[7]?.());try{Yt(e,r,`beforeLoad`,n[0]);let a=m({...f,search:r.search,context:r.context,...e.options.additionalContext}),o=await(typeof a?.then==`function`?zt(a,c):a);if(c.aborted)return[i,Lt];let s=on(e,t,u,Vt(o,!1,u.id),n);if(s[0]!==Pt)return Kt(e,r),[i,s];r.context={...r.context,...o}}catch(a){return Kt(e,r),[i,Ut(e,t,u,a,n)]}finally{r.status=h,Yt(e,r,!1,n[0])}}i()}function Gt(e,t,n){if(!(!n||--n[2])){if(e._flights?.get(t.id)===n){let n=e._tx;if(n&&!n[0].signal.aborted&&!n[3].includes(t)&&n[3].some(e=>e.id===t.id)&&n[3].some(e=>e.isFetching===`beforeLoad`))return;e._flights.delete(t.id)}return n[1]}}function Kt(e,t){let n=t._flight;t._flight=void 0,Gt(e,t,n)?.abort()}function qt(e,t,n,r){let i=[];for(let a of t)if(!n?.includes(a)){let t=a._flight;if(a._flight=void 0,r&&t?.[2]===1&&e._flights?.get(a.id)===t&&n?.some(e=>e.id===a.id))t[2]=0;else{let n=Gt(e,a,t);n&&i.push(n)}}for(let e of i)e.abort()}function Jt(e){for(let t of e){let e=t._flight;e&&e[2]++}}function Yt(e,t,n,r){if(t.isFetching=n,r&&e._tx?.[0]!==r)return;let i=e.stores.byRoute.get(t.routeId),a=i?.get();a?.id===t.id&&i.set({...a,isFetching:n})}function Xt(e,t,n,r,i,a,o){let s=t[0];return{params:n.params,location:s,navigate:t=>e.navigate({...t,_fromLocation:s}),cause:o?`preload`:n.cause,abortController:i,preload:o,deps:n.loaderDeps,parentMatchPromise:a,context:n.context,route:r,...e.options.additionalContext}}async function Zt(e,t,n,r,i,a,o){let s=o[0],c=s.signal;if(c.aborted)return Lt;if(!i)return[Pt,void 0];let l=n._flight;Yt(e,n,`loader`,s);try{if(!l){let s=new AbortController;l=[Promise.resolve().then(()=>i(Xt(e,t,n,r,s,a,!!o[3]))).then(e=>Vt(e,!1,r.id),e=>Vt(e,!0,r.id)).then(t=>(t[0]!==Pt&&e._flights?.get(n.id)===l&&(e._flights.delete(n.id),l[2]||s.abort()),t[0]===Ft&&l[2]?Ht(r,t[1]):t)),s,1],(e._flights??=new Map).set(n.id,l)}return n._flight=l,n.abortController=l[1],on(e,t,r,await zt(l[0],c),o)}catch(t){if(t!==c||!c.aborted)throw t;return Kt(e,n),Lt}finally{Yt(e,n,!1,s)}}function Qt(e,t,n){t[0]!==W&&(e.status=`success`,e.error=void 0,t[0]===Pt?(e.loaderData=t[1],e.invalid=!1,e.updatedAt=Date.now(),e.preload=n):e.invalid=!0)}function $t(e,t,n){let r=e._cache.get(t.id);if(r!==n||e._committed.some(e=>e.id===t.id&&e._flight===t._flight))return;let i={...t,_notFound:void 0,context:{}};i._flight&&i._flight[2]++,e._cache.set(t.id,i),r&&Kt(e,r)}function en(e,t){return t[0]===Ft||t[0]===It?{...e,status:t[0]===Ft?`error`:`notFound`,error:t[1],_flight:void 0}:e}function tn(e,t,n,r,i,a,o){let s=t[1][n],c=Bt(e,s),l=!!a[3],u=e._cache.get(s.id),d,f=!1,p;try{if(s.status===`success`&&(d=c.options.shouldReload,typeof d==`function`&&(d=d(Xt(e,t,s,c,a[0],i,l))),a[0].signal.aborted&&(p=Lt)),!p){if(s.status!==`success`)f=!0;else{let t=l||s.preload?c.options.preloadStaleTime??e.options.defaultPreloadStaleTime??3e4:c.options.staleTime??e.options.defaultStaleTime??0;f=!!(s.invalid||d||d===void 0&&Date.now()-s.updatedAt>=t&&(a[5]||s.cause===`enter`||a[2].some(e=>e.routeId===s.routeId&&e.id!==s.id)))}}}catch(n){s.invalid=!0,Kt(e,s),p=Ut(e,t,c,n,a)}let m=c.options.loader,h=typeof m==`function`,g=h?m:m?.handler,_=!l||c.options.preload!==!1,v=_&&m?e._flights?.get(s.id):void 0;v===s._flight||p?v=void 0:v&&!f&&!l&&d===void 0?f=!0:f||(v=void 0);let y=!(!m||!f||s.status!==`success`||l||a[4]||((h?void 0:m.staleReloadMode)??e.options.defaultStaleReloadMode)===`blocking`),b=f&&_,x=b&&!y&&(s.status!==`success`||!!m),S=n>=o?a[7]:void 0,C=c.lazyFn&&c._lazy!==!0?S:void 0;if(b&&!m&&(s.invalid=!1,s.updatedAt=Date.now()),v&&v[2]++,x){let t=s._flight;s._flight=v,Gt(e,s,t)?.abort(),n>=o&&(s.status=`pending`),S?.()}b||(s.isFetching=!1);let w=!p&&x?Zt(e,t,s,c,g,i,a).then(t=>(Qt(s,t,l),t[0]===Pt&&(m&&!a[0].signal.aborted&&$t(e,s,u),n>=o&&(s.status=`pending`)),t)):Promise.resolve(p??[Pt,s.loaderData]),T=(async()=>{try{let e=jt(c,void 0,C);e&&await zt(e,a[0].signal)}catch(r){if(!t[1].some((e,t)=>t<=n&&(e.status===`error`||e.status===`notFound`||e._notFound)))return[n,Ut(e,t,c,r,a)]}let r=await w;x&&r[0]===Pt&&s.status===`pending`&&!a[0].signal.aborted&&(s.status=`success`,S?.())})();if(r.push([n,w,T]),!y)return w.then(e=>en(s,e));let E={...s,status:`pending`,preload:!1,_flight:v};s.invalid=!1,s.isFetching=`loader`;let D=Zt(e,t,E,c,g,i,a).then(e=>(s.isFetching=!1,Qt(E,e,!1),e));return(t[2]??=[]).push([n,D,T,E]),D.then(e=>en(E,e))}async function nn(e,t,n,r,i=0){let a=n?.[1][1],o=a?.routeId?t.findIndex(e=>e.routeId===a.routeId):n?.[0]??t.length-1;o<0&&(o=0);for(let n=o;n>=0;n--){let i=Bt(e,t[n]);try{let e=jt(i,!1);e&&await zt(e,r)}catch(e){if(e===r&&r.aborted)throw e}if(i.options.notFoundComponent)return n}return a?.routeId?o:i}function rn(e,t){t[2]&&=(qt(e,t[2].map(e=>e[3])),void 0)}async function an(e,t,n,r){let i;try{await Promise.all(e.map(e=>e[1].then(async t=>{let a=e[0];if(!(r&&a>=await r)){if(t[0]>=W)throw[a,t];!i&&t[0]!==Pt&&(i=[a,t],await Promise.all((n??[]).map(e=>{if(!(e[0]<=a))return e[1].then(t=>{if(t[0]===W)throw[e[0],t]})})))}})))}catch(e){return e}return t??i}function on(e,t,n,r,i,a){for(;r[0]===W;){let o=r[1],s=o.options;try{if((s.href||o.headers.has(`Location`))&&(e.resolveRedirect(o),s.reloadDocument)||(s.reloadDocument?i[3]:i[1]>=20))return r;let n=e.buildLocation({...s,_fromLocation:t[0],_includeValidateSearch:!0}),a=n.maskedLocation??n;if(a.external){let t=o.clone();return t.options={...s},t.headers.set(`Location`,a.publicHref),e.resolveRedirect(t),i[3]?[W,t]:[W,t,a]}return[W,o,n]}catch(e){r=a?[Ft,e]:Ht(n,e),a=!0}}return r}async function sn(e,t,n,r,i,a){let o=t[1],s=await i,c=!1,l=o.findIndex(e=>e._notFound),u=t=>t[1][0]===It?nn(e,o,t,r.signal):t[0],d=l<0?o.length:l;if((s?.[1][0]??0)>=W)d=0;else if(s){d=s[2]??=await u(s);for(let e of n){if(e[0]>=d)break;let t=await e[1];if(t[0]!==Pt&&t[0]<W&&!(`loaderData`in o[e[0]])){s=[e[0],t],d=s[2]=await u(s);break}}}for(let e of n){if(e[0]>=d)break;let t=await e[2];if(t){s=t;break}}if((s?.[1][0]??0)>=W){let n=s[1];if(n[0]!==W||n[1].options.reloadDocument||n[2])return rn(e,t),n;c=!0,s=[0,[Ft,Error(`Too many redirects`)]]}let f=s?s[2]??await u(s):l;if(f>=0){let i=s?.[1],l=i?.[0],u=o[f],d=i?.[1],p=()=>{i&&(u._notFound=void 0,l===Ft?u.status=`error`:(d.routeId=u.routeId,u.routeId===e.routeTree.id?(u.status=`success`,u._notFound=!0):u.status=`notFound`),u.error=d,u.isFetching=!1)};p(),i||a?.();let m=Bt(e,u);try{await zt(i?Promise.resolve().then(()=>jt(m,l===Ft?`errorComponent`:`notFoundComponent`)):Promise.all([jt(m),jt(m,`notFoundComponent`)]),r.signal)}catch(n){if(n===r.signal&&r.signal.aborted)return rn(e,t),Lt}i?c&&(r.abort(),await Promise.all([...n.map(e=>e[1]),...n.map(e=>e[2]),...(t[2]??[]).map(e=>e[1])]),rn(e,t),qt(e,o),p()):u.status=`success`}return t}async function cn(e,t,n,r=0,i=t[1].length){let a=t[1];for(let t=r;t<i;t++){let r=a[t],i=Bt(e,r).options;if(i.head||i.scripts)try{let t={ssr:e.options.ssr,matches:a,match:r,params:r.params,loaderData:r.loaderData},[o,s]=await zt(Promise.all([i.head?.(t),i.scripts?.(t)]),n);r.meta=o?.meta,r.links=o?.links,r.headScripts=o?.scripts,r.styles=o?.styles,r.scripts=s}catch(e){if(e===n&&n.aborted)break;console.error(e)}if(r.status!==`success`||r._notFound)break}return t}async function ln(e,t,n,r){let i=[t,n],a=r[0].signal,o;try{let t=e.stores.matches.get(),s=n.findIndex(e=>e._notFound);if(e.options.notFoundMode!==`root`&&s>=0){let t=await nn(e,n,void 0,a,s);n[s]._notFound=void 0,n[t]._notFound=!0,s=t}let c=s<0?n.length:s+1,l=0;for(;l<c&&l!==s;){let e=n[l],i=r[2][l],a=t[l];if(i?.id!==e.id||i.status!==`success`||e.preload||a?.id!==e.id||a.status!==`success`||(l++,i._notFound||a._notFound))break}let u=[],d=r[6]??0,f=d?Promise.resolve(n[d-1]):void 0,p=()=>{for(let t=d;t<c&&!a.aborted;t++)f=tn(e,i,t,u,f,r,l)},m=await Wt(e,i,r,c,p,l);if(m){if(r[4]=!0,c=m[0],m[1][0]===It){let t=await nn(e,n,m,a);m[2]=t,c=Math.min(c,t+1)}else m[1][0]>=W&&(c=0);p()}if(!a.aborted&&!r[3]){let t=[];for(let[n,r]of e._flights??[])r[2]||(e._flights.delete(n),t.push(r[1]));for(let e of t)e.abort()}let h=sn(e,i,u,r[0],an(u,m,i[2]),r[7]);i[2]?.length&&(i[3]=an(i[2],void 0,void 0,h.then(e=>Rt(e)?0:Mt(n).length,()=>0))),o=await h}catch(t){if(rn(e,i),t===a&&a.aborted)return Lt;throw t}return Rt(o)?o:cn(e,o,a,r[6]===n.length?r[6]:0)}function un(e,t){if(e._tx!==t)return;let n=t[3],r=e.stores.matches.get(),i=e._pending;for(let a=0;a<n.length;a++){let o=n[a],s=o.status===`success`&&!o._notFound,c=r[a]?.id===o.id&&r[a]?.status===`pending`;if(s&&!c)continue;let l=Bt(e,o),u=s||o.invalid?0:l.options.pendingMs??e.options.defaultPendingMs,d=l.options.pendingComponent??e.options.defaultPendingComponent;if(!d||typeof u!=`number`||u===1/0){i&&(i[0]=t,i[2]=0,i[4]=!0);return}let f=l.options.pendingMinMs??e.options.defaultPendingMinMs??0,p=!1;if(i?.[1]===o.id?(p=i[0]!==t,i[0]=t):(clearTimeout(i?.[3]),e._pending=i=void 0),i||(e._pending=i=[t,o.id,c?Date.now()+f:t[4]+u,void 0,c||void 0,d]),i[4]&&!p&&i[5]===d)return;if(i[5]=d,!i[4]){clearTimeout(i[3]);let n=i[2]-Date.now();if(n>0){i[3]=setTimeout(()=>un(e,t),n);return}i[2]=0}let m=n.map(e=>({...e,_flight:void 0}));m[a].status=`pending`;let h=i[4]=e.startTransition(()=>e.stores.setMatches(m),m).then(t=>(t&&e._pending===i&&i[4]===h&&!i[2]&&(i[2]=Date.now()+f),t));return}}function dn(e,t){let n=e._pending;(e._tx===t||!e._tx?.[3].some(e=>e.id===n?.[1]))&&(clearTimeout(n?.[3]),e._pending=void 0)}async function fn(e,t){let n=e._pending;if(!n)return;clearTimeout(n[3]);let r=n[2]-Date.now();if(!n[4]||r<=0||!Mt(t[3]).some(e=>e.id===n[1]))return;let i;try{await zt(new Promise(e=>{i=setTimeout(e,r)}),t[0].signal)}catch{}clearTimeout(i)}function pn(e,t){e._committed=t,e.stores.setMatches(t)}function mn(e,t,n,r){let i=e._committed,a=e._lifecycleEnd,o=e._cache;for(let e of n)e.preload=!1,r&&(e._assetEnd=void 0);let s=Mt(n).length,c=new Map;{let t=Date.now(),r=new Set;for(let e=0;e<n.length;e++){let t=n[e];(e<s||t.status===`success`)&&r.add(t.id)}for(let n of[...i,...o.values()]){if(n.status!==`success`||r.has(n.id))continue;let i=Bt(e,n);!i.options.loader||t-n.updatedAt>=(n.preload?i.options.preloadGcTime??e.options.defaultPreloadGcTime??3e5:i.options.gcTime??e.options.defaultGcTime??3e5)||c.set(n.id,o.get(n.id)===n?n:{...n,_flight:void 0,isFetching:!1,context:{}})}}t[3]=[],e._cache=c;let l=e._lifecycleEnd=ht(n);pn(e,n),qt(e,[...o.values(),...i].filter(e=>e._flight&&c.get(e.id)!==e),n),gt(e,i,n,a,l,t)}async function hn(e,t){let n=e._tx;for(;n&&n!==t;)t=n,await n[5],n=e._tx}function gn(e,t,n){let r=n[1].options,i=n[2];if(!i)return e.navigate({...r,replace:!0,ignoreBlocker:!0});if(r.reloadDocument)return e.navigate({href:(i.maskedLocation??i).publicHref,reloadDocument:!0,replace:!0,ignoreBlocker:!0});i._redirects=t[1]+1,e._pendingLocation=i;let a=e.commitLocation({...i,viewTransition:r.viewTransition,replace:!0,resetScroll:r.resetScroll,hashScrollIntoView:r.hashScrollIntoView,ignoreBlocker:!0});return queueMicrotask(()=>{e._pendingLocation===i&&(e._pendingLocation=void 0)}),a}async function _n(e,t,n,r,i){let a=n.map(e=>({...e}));Jt(a);for(let t of r)Kt(e,a[t[0]]),a[t[0]]=t[3];let o=[t[2],a],s;try{s=await sn(e,o,r,t[0],i)}catch(t){throw qt(e,a),t}if(Rt(s))qt(e,a),s[0]===W&&e._tx===t&&e._committed===n&&await gn(e,t,s);else if(await cn(e,s,t[0].signal),e._tx!==t||e._committed!==n)qt(e,a);else{for(let t of a){let n=e._cache.get(t.id);n?._flight&&n._flight===t._flight&&(e._cache.delete(t.id),Kt(e,n))}pn(e,a),qt(e,n,a)}}async function vn(e,t,n,r,i,a){let o=await ln(e,t[2],t[3],[t[0],t[1],e._committed,void 0,i,n,a,r]);if(Rt(o)){let n=o[0]===W&&e._tx===t;if((!n||o[1].options.reloadDocument)&&dn(e,t),qt(e,t[3]),t[3]=[],!n)return;if(e._tx!==t){dn(e,t);return}await gn(e,t,o);return}let s=o[1];if(e._tx===t&&await fn(e,t),e._tx!==t){dn(e,t),qt(e,s),rn(e,o);return}let c=t[2],l=pt(c,e.stores.resolvedLocation.get()),u=o[2];await e.startViewTransition(async()=>{if(e._tx===t&&await fn(e,t),e._tx!==t){dn(e,t),qt(e,s),rn(e,o);return}let n=await e.startTransition(()=>{dn(e,t),mn(e,t,s,a),e._tx===t&&(e.emit({type:`onLoad`,...l}),e._tx===t&&e.emit({type:`onBeforeRouteMount`,...l}))},s);e._tx===t?(u?.length&&_n(e,t,s,u,o[3]).catch(console.error),e.batch(()=>{e.stores.resolvedLocation.set(c),e.stores.status.set(`idle`),e._tx===t&&e.emit({type:`onResolved`,...l}),n&&e._tx===t&&e.emit({type:`onRendered`,...l})}),e._tx===t&&(e._commitPromise?.resolve(),e._commitPromise=void 0)):rn(e,o)})}async function yn(e,t){let n=e._tx,r=e.stores.resolvedLocation.get(),i=r??e.stores.location.get(),a=e.latestLocation,o=e._pendingLocation,s=o?.href===a.href?o._redirects??0:0,c=e._handoff,l=c?.[0](),u=new AbortController,d=e._preflight;if(e._preflight=u,l||c?.[1](),d?.abort(),!u.signal.aborted){let t=pt(a,r);e.emit({type:`onBeforeNavigate`,...t}),u.signal.aborted||e.emit({type:`onBeforeLoad`,...t})}if(u.signal.aborted){await hn(e,n);return}let f=i.href===a.href,p=u,m=e.matchRoutes(a,{_controller:u});Jt(m);let h=l?c[1](m):void 0;if(h?p=l:l?.abort(),u.signal.aborted){qt(e,m),await hn(e,n);return}e._preflight=void 0;let g,_=()=>vn(e,y,f,()=>un(e,y),t?.sync,h),v=t?.sync?new Promise(e=>g=e):Promise.resolve().then(_),y=[p,s,a,m,Date.now(),v.then(()=>hn(e,y))];if(e._tx=y,n){for(let t of e.stores.matches.get()){if(e._tx!==y)break;t.isFetching&&Yt(e,t,!1)}n[0].abort(),qt(e,n[3],y[3],!0)}e._tx===y?(e.batch(()=>{e.stores.status.set(`pending`),e.stores.location.set(a)}),(h||!e._committed.length&&m[0]?.status!==`success`&&!m.some(e=>e._notFound))&&un(e,y),g?.(_()),await y[5]):(qt(e,y[3]),y[3]=[],g?.(),await hn(e,y))}async function bn(e,t){let n=e.buildLocation(t);for(let t=0;;t++){let r=e._committed,i=new AbortController,a,o,s;try{try{a=e.matchRoutes(n,{_controller:i}),Jt(a),o=(e._preloads??=new Map).set(i,a),s=await ln(e,n,a,[i,t,r,!0])}finally{o&&(o=o.delete(i),qt(e,a)),i.abort()}if(!Rt(s))return s[1];if(!o||s.length<3)return;n=s[2]}catch(e){re(e)||console.error(e);return}}}var xn=`Error preloading route! ☝️`,Sn=o.createContext(null);function Cn(e){return o.useContext(Sn)}function wn(e,t){let n=e.stores.location,r=new Set,i,a,o=n=>{Nt(e,t,n)||(i=n,r.forEach(e=>e()))};return[()=>i??n.get(),e=>(r.size||(i=n.get(),a=n.subscribe(o).unsubscribe),r.add(e),()=>{r.delete(e),r.size||(a(),i=void 0)})]}var Tn=o.createContext(void 0),En=o.createContext(void 0),Dn=t((e=>{var t=r();function n(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var i=typeof Object.is==`function`?Object.is:n,a=t.useState,o=t.useEffect,s=t.useLayoutEffect,c=t.useDebugValue;function l(e,t){var n=t(),r=a({inst:{value:n,getSnapshot:t}}),i=r[0].inst,l=r[1];return s(function(){i.value=n,i.getSnapshot=t,u(i)&&l({inst:i})},[e,n,t]),o(function(){return u(i)&&l({inst:i}),e(function(){u(i)&&l({inst:i})})},[e]),c(n),n}function u(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!i(e,n)}catch{return!0}}function d(e,t){return t()}var f=typeof window>`u`||window.document===void 0||window.document.createElement===void 0?d:l;e.useSyncExternalStore=t.useSyncExternalStore===void 0?f:t.useSyncExternalStore})),On=t(((e,t)=>{t.exports=Dn()})),kn=t((e=>{var t=r(),n=On();function i(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var a=typeof Object.is==`function`?Object.is:i,o=n.useSyncExternalStore,s=t.useRef,c=t.useEffect,l=t.useMemo,u=t.useDebugValue;e.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var d=s(null);if(d.current===null){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=l(function(){function e(e){if(!o){if(o=!0,s=e,e=r(e),i!==void 0&&f.hasValue){var t=f.value;if(i(t,e))return c=t}return c=e}if(t=c,a(s,e))return t;var n=r(e);return i!==void 0&&i(t,n)?(s=e,t):(s=e,c=n)}var o=!1,s,c,l=n===void 0?null:n;return[function(){return e(t())},l===null?void 0:function(){return e(l())}]},[t,n,r,i]);var p=o(e,d[0],d[1]);return c(function(){f.hasValue=!0,f.value=p},[p]),u(p),p}})),An=t(((e,t)=>{t.exports=kn()})),jn=An();function Mn(e,t){return e===t}function Nn(e,t=e=>e,n){let r=n?.compare??Mn,i=(0,o.useCallback)(t=>{let{unsubscribe:n}=e.subscribe(t);return n},[e]),a=(0,o.useCallback)(()=>e.get(),[e]);return(0,jn.useSyncExternalStoreWithSelector)(i,a,a,t,r)}var Pn={};function Fn(e,t){let n=o.useRef();return r=>{let i=e?.select?e.select(r):r;return e?.structuralSharing??t.options.defaultStructuralSharing?n.current=y(n.current,i):i}}function In(e){let t=Cn(),n=o.useContext(e.from?En:Tn),r=e.from??n,i=t.stores.getMatchStore(r),a=Fn(e,t),s=Nn(i,e=>e?a(e):Pn);if(s!==Pn)return s;(e.shouldThrow??!0)&&N()}function Ln(e){let t=Cn();return o.useCallback(n=>t.navigate({...n,from:n.from??e?.from}),[e?.from,t])}function Rn(...e){let t=o.useRef(e),n=t.current;return e.forEach((e,t)=>{x(n[t],e,!1,!0)||(n[t]=e)}),t.current}function zn(e,t){e.preloadRoute(t).catch(e=>{console.warn(e),console.warn(xn)})}function Bn(e,t){let n=typeof e==`string`&&D(e);if(n)return t.has(n)?e:null}function Vn(e,t,n,r){let i=R(e.pathname,r),a=R(t.pathname,r);return(n?.exact?i!==a:!i.startsWith(a)||i.length!==a.length&&i[a.length]!==`/`)||(n?.includeSearch??!0)&&!x(e.search,t.search,!n?.exact,n?.explicitUndefined)?!1:!n?.includeHash||e.hash===t.hash}function Hn(e,t,n){let r=Cn(),i=o.useRef(null),a=o.useCallback(e=>{if(i.current=e,typeof t==`function`)return t(e);t&&(t.current=e)},[t]),{activeOptions:s,to:c,preload:l,preloadDelay:u,disabled:d,target:f,onClick:p,onBlur:m,onFocus:h,onMouseEnter:g,onMouseLeave:_,onTouchStart:v}=e,[y,b,x]=Rn(e.search,e.params,s),S=o.useContext(Tn),C=(r.stores._linkScopes??={})[S]??=wn(r,S),[w,T,E]=o.useMemo(()=>{let t=Bn(c,r.protocolAllowlist);if(t!==void 0){let n=[t??void 0];return[e,()=>n]}let n={...e},i,a,o,s=()=>{let e=C[0]();if(e!==i){n._fromLocation=e;let t=r.buildLocation(n),o=Xn(t,r,d),s=d||o&&!D(o)?Vn(e,t,x,r.basepath):void 0;(!a||a[0]!==o||a[1]!==s)&&(a=[o,s]),i=e}return a};return[n,s,x?.includeHash&&(()=>{let e=s();return e[1]?o??=[e[0],!1]:e})]},[r,C,e.from,e.hash,e.href,c,y,b,e.state,e.mask,e.unsafeRelative,x,d]),[O,k]=o.useSyncExternalStore(C[1],T,E||T),A=k===void 0&&O,j=d||O===void 0,M=o.useRef(!1),N=e.reloadDocument||A||j?!1:l??r.options.defaultPreload,P=u??r.options.defaultPreloadDelay??0,F=o.useCallback(e=>{let t=e?.isIntersecting;t??N===`intent`?P?i.t??=setTimeout(()=>{i.t=void 0,zn(r,w)},P):zn(r,w):t===!1&&Jn(i)},[r,w,i,N,P]);o.useEffect(()=>{if(!N)return;N===`render`&&!M.current&&(M.current=!0,zn(r,w));let e=!0,t;return N===`viewport`&&i.current&&typeof IntersectionObserver==`function`&&(t=new IntersectionObserver(t=>{e&&F(t.pop())},{rootMargin:`100px`}),t.observe(i.current)),()=>{e=!1,t?.disconnect(),Jn(i)}},[r,w,N,F,i]);let I=Kn(e,n);if(I.ref=t?a:i,A)return I.href=A,I;let L=t=>{let n=f??t.currentTarget.getAttribute(`target`);!j&&!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)&&!t.defaultPrevented&&(!n||n===`_self`)&&t.button===0&&(t.preventDefault(),Jn(i),r.navigate({...e,_fromLocation:w._fromLocation}))},R=()=>{N===`intent`&&zn(r,w)},ee=()=>{N===`intent`&&Jn(i)};return I.onClick=Yn(p,L),I.onBlur=Yn(m,ee),I.onFocus=Yn(h,F),I.onMouseEnter=Yn(g,F),I.onMouseLeave=Yn(_,ee),I.onTouchStart=Yn(v,R),qn(I,e,k,O,j,n)}var Un={},Wn={className:`active`},Gn=new Set([`to`,`params`,`search`,`hash`,`state`,`mask`,`from`,`unsafeRelative`,`reloadDocument`,`preload`,`preloadDelay`,`preloadIntentProximity`,`hashScrollIntoView`,`replace`,`startTransition`,`resetScroll`,`viewTransition`,`ignoreBlocker`,`activeProps`,`inactiveProps`,`activeOptions`,`_asChild`]);function Kn(e,t){let n={};for(let r in e)Gn.has(r)||r===`type`&&t!==void 0||r===`disabled`&&t===`a`||(n[r]=e[r]);return n}function qn(e,t,n,r,i,a){let{activeProps:o,inactiveProps:s,className:c,style:l,target:u}=t,d=m(n?o:s,{})??(n?Wn:Un);Object.assign(e,d),e.href=r,a!==`a`&&(e.disabled=i),e.target=u;let f=d.style;(l||f)&&(e.style=l&&f?{...l,...f}:l||f);let p=d.className;return(c||p)&&(e.className=c?p?`${c} ${p}`:c:p),i&&(e.role=`link`,e[`aria-disabled`]=!0),n&&(e[`data-status`]=`active`,e[`aria-current`]=`page`),e}var Jn=e=>{clearTimeout(e.t),e.t=void 0},Yn=(e,t)=>e?n=>n.defaultPrevented||(e(n),n.defaultPrevented||t(n)):t;function Xn(e,t,n){if(n)return;let r=e.maskedLocation??e,i=r.external?r.publicHref:t.history.createHref(r.publicHref)||`/`;if(!r.external&&i===r.publicHref||!k(i,t.protocolAllowlist))return i}var Zn=o.memo(o.forwardRef((e,t)=>{let n=e._asChild||`a`,r=Hn(e,t,n),i=typeof e.children==`function`?e.children({isActive:r[`data-status`]===`active`}):e.children;return o.createElement(n,r,i)}),Qn);function Qn(e,t){let n=0;for(let r in t)if(n++,e[r]!==t[r]&&(!Gn.has(r)||!x(e[r],t[r],!1,!0)))return!1;for(let t in e)n--;return n===0}var $n=t((e=>{var t=r();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 i(){}var a={d:{f:i,r:function(){throw Error(n(522))},D:i,C:i,L:i,m:i,X:i,S:i,M:i},p:0,findDOMNode:null},o=Symbol.for(`react.portal`),s=Symbol.for(`react.recoverable`),c=Symbol.for(`react.optimistic_key`);function l(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:r==null?null:r===c?c:``+r,children:e,containerInfo:t,implementation:n}}var u=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function d(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=a,e.browser=function(e){return{$$typeof:s,_reason:e}},e.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(n(299));return l(e,t,null,r)},e.flushSync=function(e){var t=u.T,n=a.p;try{if(u.T=null,a.p=2,e)return e()}finally{u.T=t,a.p=n,a.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,a.d.C(e,t))},e.prefetchDNS=function(e){typeof e==`string`&&a.d.D(e)},e.preinit=function(e,t){if(typeof e==`string`&&t&&typeof t.as==`string`){var n=t.as,r=d(n,t.crossOrigin),i=typeof t.integrity==`string`?t.integrity:void 0,o=typeof t.fetchPriority==`string`?t.fetchPriority:void 0;n===`style`?a.d.S(e,typeof t.precedence==`string`?t.precedence:void 0,{crossOrigin:r,integrity:i,fetchPriority:o}):n===`script`&&a.d.X(e,{crossOrigin:r,integrity:i,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=d(t.as,t.crossOrigin);a.d.M(e,{crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0})}}else t??a.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=d(n,t.crossOrigin);a.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=d(t.as,t.crossOrigin);a.d.m(e,{as:typeof t.as==`string`&&t.as!==`script`?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0})}else a.d.m(e)}},e.requestFormReset=function(e){a.d.r(e)},e.unstable_batchedUpdates=function(e,t){return e(t)},e.useFormState=function(e,t,n){return u.H.useFormState(e,t,n)},e.useFormStatus=function(){return u.H.useHostTransitionStatus()},e.version=`19.3.0`})),er=t(((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=$n()})),tr=e=>e?.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase();function nr(e,t,n=[]){if(t==null)throw Error(`[lucide]: iconNode is required when icon name is used`);return{name:tr(e),size:24,node:t,...n.length>0?{aliases:n}:{}}}var rr=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},ir=e=>{let t=rr(e);return t.charAt(0).toUpperCase()+t.slice(1)},ar=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),or={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 sr(e){return e!=null}function cr(e,t={}){let n=t.attributeNames??{},r=e=>n[e]??e,i=e.size??e.width??or.width,a=e.size??e.height??or.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?ar(...c):ar(`lucide`,...s,...c),u=t.absoluteStrokeWidth?Number(t.strokeWidth??or[`stroke-width`])*Number(e.size??e.width??or.width)/Number(t.size??t.width??or.width):t.strokeWidth??or[`stroke-width`];return[`svg`,{...Object.entries(or).reduce((e,[t,n])=>(e[r(t)]=n,e),{}),...`color`in t&&t.color&&{[r(`stroke`)]:t.color},...`size`in t&&sr(t.size)&&{[r(`width`)]:t.size,[r(`height`)]:t.size},...`width`in t&&sr(t.width)&&{[r(`width`)]:t.width},...`height`in t&&sr(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 lr(e,t={}){return cr(e,{...t,attributeNames:{...t.attributeNames,class:`className`,"stroke-width":`strokeWidth`,"stroke-linecap":`strokeLinecap`,"stroke-linejoin":`strokeLinejoin`,"vector-effect":`vectorEffect`}})}var ur=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0;return!1},dr=(0,o.createContext)({}),fr=()=>(0,o.useContext)(dr),pr=(0,o.forwardRef)(({color:e,size:t,width:n,height:r,strokeWidth:i,absoluteStrokeWidth:a,nonScalingStroke:s,className:c=``,children:l,iconNode:u=[],icon:d={node:u,aliases:[],size:24},...f},p)=>{let{size:m=24,strokeWidth:h=2,absoluteStrokeWidth:g=!1,nonScalingStroke:_=!1,color:v=`currentColor`,className:y=``}=fr()??{},b=!!l||ur(f),[x,S,C=[]]=lr(d,{color:e??v,width:n??t??m,height:r??t??m,strokeWidth:i??h,absoluteStrokeWidth:a??g,nonScalingStroke:s??_,className:ar(y,c),hasA11yProp:b,attributes:f});return(0,o.createElement)(x,{ref:p,...S},[...C.map(([e,t])=>(0,o.createElement)(e,t)),...Array.isArray(l)?l:[l]])});function mr(e,t=[],n=[]){let r=typeof e==`string`?nr(e,t,n):e,i=(0,o.forwardRef)(({className:e,...t},n)=>(0,o.createElement)(pr,{ref:n,icon:r,className:e,...t}));return r.name&&(i.displayName=ir(r.name)),i}var hr={name:`check`,size:24,node:[[`path`,{d:`M20 6 9 17l-5-5`,key:`1gmf2c`}]]};hr.node;var gr=mr(hr),_r={name:`loader-circle`,size:24,node:[[`path`,{d:`M21 12a9 9 0 1 1-6.219-8.56`,key:`13zald`}]],aliases:[`loader-2`]};_r.node;var vr=mr(_r),yr=e(er(),1);function br(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`){if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=br(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n)}return r}function xr(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=br(e))&&(r&&(r+=` `),r+=t);return r}var Sr=e=>typeof e==`boolean`?`${e}`:e===0?`0`:e,Cr=xr,wr=(e,t)=>n=>{if(t?.variants==null)return Cr(e,n?.class,n?.className);let{variants:r,defaultVariants:i}=t,a=Object.keys(r).map(e=>{let t=n?.[e],a=i?.[e];if(t===null)return null;let o=Sr(t)||Sr(a);return r[e][o]}),o=n&&Object.entries(n).reduce((e,t)=>{let[n,r]=t;return r===void 0||(e[n]=r),e},{});return Cr(e,a,t?.compoundVariants?.reduce((e,t)=>{let{class:n,className:r,...a}=t;return Object.entries(a).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...i,...o}[t]):{...i,...o}[t]===n})?[...e,n,r]:e},[]),n?.class,n?.className)},Tr=(e,t)=>{let n=Array(e.length+t.length);for(let t=0;t<e.length;t++)n[t]=e[t];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},Er=(e,t)=>({classGroupId:e,validator:t}),Dr=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),Or=`-`,kr=[],Ar=`arbitrary..`,jr=e=>{let t=Pr(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{if(e.startsWith(`[`)&&e.endsWith(`]`))return Nr(e);let n=e.split(Or);return Mr(n,+(n[0]===``&&n.length>1),t)},getConflictingClassGroupIds:(e,t)=>{if(t){let t=r[e],i=n[e];return t?i?Tr(i,t):t:i||kr}return n[e]||kr}}},Mr=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;let r=e[t],i=n.nextPart.get(r);if(i){let n=Mr(e,t+1,i);if(n)return n}let a=n.validators;if(a===null)return;let o=t===0?e.join(Or):e.slice(t).join(Or),s=a.length;for(let e=0;e<s;e++){let t=a[e];if(t.validator(o))return t.classGroupId}},Nr=e=>e.slice(1,-1).indexOf(`:`)===-1?void 0:(()=>{let t=e.slice(1,-1),n=t.indexOf(`:`),r=t.slice(0,n);return r?Ar+r:void 0})(),Pr=e=>{let{theme:t,classGroups:n}=e;return Fr(n,t)},Fr=(e,t)=>{let n=Dr();for(let r in e){let i=e[r];Ir(i,n,r,t)}return n},Ir=(e,t,n,r)=>{let i=e.length;for(let a=0;a<i;a++){let i=e[a];Lr(i,t,n,r)}},Lr=(e,t,n,r)=>{typeof e==`string`?Rr(e,t,n):typeof e==`function`?zr(e,t,n,r):Br(e,t,n,r)},Rr=(e,t,n)=>{let r=e===``?t:Vr(t,e);r.classGroupId=n},zr=(e,t,n,r)=>{Hr(e)?Ir(e(r),t,n,r):(t.validators===null&&(t.validators=[]),t.validators.push(Er(n,e)))},Br=(e,t,n,r)=>{let i=Object.entries(e),a=i.length;for(let e=0;e<a;e++){let[a,o]=i[e];Ir(o,Vr(t,a),n,r)}},Vr=(e,t)=>{let n=e,r=t.split(Or),i=r.length;for(let e=0;e<i;e++){let t=r[e],i=n.nextPart.get(t);i||(i=Dr(),n.nextPart.set(t,i)),n=i}return n},Hr=e=>`isThemeGetter`in e&&e.isThemeGetter===!0,Ur=e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null),i=(i,a)=>{n[i]=a,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(e){let t=n[e];if(t!==void 0)return t;if((t=r[e])!==void 0)return i(e,t),t},set(e,t){e in n?n[e]=t:i(e,t)}}},Wr=`!`,Gr=`:`,Kr=[],qr=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),Jr=e=>{let{prefix:t,experimentalParseClassName:n}=e,r=e=>{let t=[],n=0,r=0,i=0,a,o=e.length;for(let s=0;s<o;s++){let o=e[s];if(n===0&&r===0){if(o===Gr){t.push(e.slice(i,s)),i=s+1;continue}if(o===`/`){a=s;continue}}o===`[`?n++:o===`]`?n--:o===`(`?r++:o===`)`&&r--}let s=t.length===0?e:e.slice(i),c=s,l=!1;s.endsWith(Wr)?(c=s.slice(0,-1),l=!0):s.startsWith(Wr)&&(c=s.slice(1),l=!0);let u=a&&a>i?a-i:void 0;return qr(t,l,c,u)};if(t){let e=t+Gr,n=r;r=t=>t.startsWith(e)?n(t.slice(e.length)):qr(Kr,!1,t,void 0,!0)}if(n){let e=r;r=t=>n({className:t,parseClassName:e})}return r},Yr=e=>{let t=new Map;return e.orderSensitiveModifiers.forEach((e,n)=>{t.set(e,1e6+n)}),e=>{let n=[],r=[];for(let i=0;i<e.length;i++){let a=e[i],o=a[0]===`[`,s=t.has(a);o||s?(r.length>0&&(r.sort(),n.push(...r),r=[]),n.push(a)):r.push(a)}return r.length>0&&(r.sort(),n.push(...r)),n}},Xr=e=>({cache:Ur(e.cacheSize),parseClassName:Jr(e),sortModifiers:Yr(e),postfixLookupClassGroupIds:Zr(e),...jr(e)}),Zr=e=>{let t=Object.create(null),n=e.postfixLookupClassGroups;if(n)for(let e=0;e<n.length;e++)t[n[e]]=!0;return t},Qr=/\s+/,$r=(e,t)=>{let{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:a,postfixLookupClassGroupIds:o}=t,s=[],c=e.trim().split(Qr),l=``;for(let e=c.length-1;e>=0;--e){let t=c[e],{isExternal:u,modifiers:d,hasImportantModifier:f,baseClassName:p,maybePostfixModifierPosition:m}=n(t);if(u){l=t+(l.length>0?` `+l:l);continue}let h=!!m,g;if(h){g=r(p.substring(0,m));let e=g&&o[g]?r(p):void 0;e&&e!==g&&(g=e,h=!1)}else g=r(p);if(!g){if(!h||(g=r(p),!g)){l=t+(l.length>0?` `+l:l);continue}h=!1}let _=d.length===0?``:d.length===1?d[0]:a(d).join(`:`),v=f?_+Wr:_,y=v+g;if(s.indexOf(y)>-1)continue;s.push(y);let b=i(g,h);for(let e=0;e<b.length;++e){let t=b[e];s.push(v+t)}l=t+(l.length>0?` `+l:l)}return l},ei=(...e)=>{let t=0,n,r,i=``;for(;t<e.length;)(n=e[t++])&&(r=ti(n))&&(i&&(i+=` `),i+=r);return i},ti=e=>{if(typeof e==`string`)return e;let t,n=``;for(let r=0;r<e.length;r++)e[r]&&(t=ti(e[r]))&&(n&&(n+=` `),n+=t);return n},ni=(e,...t)=>{let n,r,i,a,o=o=>(n=Xr(t.reduce((e,t)=>t(e),e())),r=n.cache.get,i=n.cache.set,a=s,s(o)),s=e=>{let t=r(e);if(t)return t;let a=$r(e,n);return i(e,a),a};return a=o,(...e)=>a(ei(...e))},ri=[],G=e=>{let t=t=>t[e]||ri;return t.isThemeGetter=!0,t.themeKey=e,t},ii=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,ai=/^\((?:(\w[\w-]*):)?(.+)\)$/i,oi=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,si=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,ci=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,li=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix|color|light-dark)\(.+\)$/,ui=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,di=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,fi=e=>oi.test(e),K=e=>!!e&&!Number.isNaN(Number(e)),pi=e=>!!e&&Number.isInteger(Number(e)),mi=e=>e.endsWith(`%`)&&K(e.slice(0,-1)),hi=e=>si.test(e),gi=()=>!0,_i=e=>ci.test(e)&&!li.test(e),vi=()=>!1,yi=e=>ui.test(e),bi=e=>di.test(e),xi=e=>!q(e)&&!J(e),Si=e=>e.startsWith(`@container`)&&(e[10]===`/`&&e[11]!==void 0||e[11]===`s`&&e[16]!==void 0&&e.startsWith(`-size/`,10)||e[11]===`n`&&e[18]!==void 0&&e.startsWith(`-normal/`,10)),Ci=e=>Ri(e,Hi,vi),q=e=>ii.test(e),wi=e=>Ri(e,Ui,_i),Ti=e=>Ri(e,Wi,K),Ei=e=>Ri(e,Ki,gi),Di=e=>Ri(e,Gi,vi),Oi=e=>Ri(e,Bi,vi),ki=e=>Ri(e,Vi,bi),Ai=e=>Ri(e,qi,yi),J=e=>ai.test(e),ji=e=>zi(e,Ui),Mi=e=>zi(e,Gi),Ni=e=>zi(e,Bi),Pi=e=>zi(e,Hi),Fi=e=>zi(e,Vi),Ii=e=>zi(e,qi,!0),Li=e=>zi(e,Ki,!0),Ri=(e,t,n)=>{let r=ii.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},zi=(e,t,n=!1)=>{let r=ai.exec(e);return r?r[1]?t(r[1]):n:!1},Bi=e=>e===`position`||e===`percentage`,Vi=e=>e===`image`||e===`url`,Hi=e=>e===`length`||e===`size`||e===`bg-size`,Ui=e=>e===`length`,Wi=e=>e===`number`,Gi=e=>e===`family-name`,Ki=e=>e===`number`||e===`weight`,qi=e=>e===`shadow`,Ji=ni(()=>{let e=G(`color`),t=G(`font`),n=G(`text`),r=G(`font-weight`),i=G(`tracking`),a=G(`leading`),o=G(`breakpoint`),s=G(`container`),c=G(`spacing`),l=G(`radius`),u=G(`shadow`),d=G(`inset-shadow`),f=G(`text-shadow`),p=G(`drop-shadow`),m=G(`blur`),h=G(`perspective`),g=G(`aspect`),_=G(`ease`),v=G(`animate`),y=()=>[`auto`,`avoid`,`all`,`avoid-page`,`page`,`left`,`right`,`column`],b=()=>[`center`,`top`,`bottom`,`left`,`right`,`top-left`,`left-top`,`top-right`,`right-top`,`bottom-right`,`right-bottom`,`bottom-left`,`left-bottom`],x=()=>[...b(),J,q],S=()=>[`auto`,`hidden`,`clip`,`visible`,`scroll`],C=()=>[`auto`,`contain`,`none`],w=()=>[J,q,c],T=()=>[fi,`full`,`auto`,...w()],E=()=>[pi,`none`,`subgrid`,J,q],D=()=>[`auto`,{span:[`full`,pi,J,q]},pi,J,q],O=()=>[pi,`auto`,J,q],k=()=>[`auto`,`min`,`max`,`fr`,J,q],A=()=>[`start`,`end`,`center`,`between`,`around`,`evenly`,`stretch`,`baseline`,`center-safe`,`end-safe`],j=()=>[`start`,`end`,`center`,`stretch`,`center-safe`,`end-safe`],M=()=>[`auto`,...w()],N=()=>[fi,`auto`,`full`,`dvw`,`dvh`,`lvw`,`lvh`,`svw`,`svh`,`min`,`max`,`fit`,...w()],P=()=>[s,fi,`screen`,`full`,`dvw`,`lvw`,`svw`,`min`,`max`,`fit`,...w()],F=()=>[fi,`screen`,`full`,`lh`,`dvh`,`lvh`,`svh`,`min`,`max`,`fit`,...w()],I=()=>[e,J,q],L=()=>[...b(),Ni,Oi,{position:[J,q]}],R=()=>[`no-repeat`,{repeat:[``,`x`,`y`,`space`,`round`]}],ee=()=>[`auto`,`cover`,`contain`,Pi,Ci,{size:[J,q]}],te=()=>[mi,ji,wi],z=()=>[``,`none`,`full`,l,J,q],B=()=>[``,K,ji,wi],ne=()=>[`solid`,`dashed`,`dotted`,`double`],re=()=>[`normal`,`multiply`,`screen`,`overlay`,`darken`,`lighten`,`color-dodge`,`color-burn`,`hard-light`,`soft-light`,`difference`,`exclusion`,`hue`,`saturation`,`color`,`luminosity`],V=()=>[K,mi,Ni,Oi],ie=()=>[``,`none`,m,J,q],H=()=>[`none`,K,J,q],ae=()=>[`none`,K,J,q],oe=()=>[K,J,q],U=()=>[fi,`full`,...w()];return{cacheSize:500,theme:{animate:[`spin`,`ping`,`pulse`,`bounce`],aspect:[`video`],blur:[hi],breakpoint:[hi],color:[gi],container:[hi],"drop-shadow":[hi],ease:[`in`,`out`,`in-out`],font:[xi],"font-weight":[`thin`,`extralight`,`light`,`normal`,`medium`,`semibold`,`bold`,`extrabold`,`black`],"inset-shadow":[hi],leading:[`none`,`tight`,`snug`,`normal`,`relaxed`,`loose`],perspective:[`dramatic`,`near`,`normal`,`midrange`,`distant`,`none`],radius:[hi],shadow:[hi],spacing:[`px`,K],text:[hi],"text-shadow":[hi],tracking:[`tighter`,`tight`,`normal`,`wide`,`wider`,`widest`]},classGroups:{aspect:[{aspect:[`auto`,`square`,fi,q,J,g]}],container:[`container`],"container-type":[{"@container":[``,`normal`,`size`,J,q]}],"container-named":[Si],columns:[{columns:[K,`auto`,q,J,s]}],"break-after":[{"break-after":y()}],"break-before":[{"break-before":y()}],"break-inside":[{"break-inside":[`auto`,`avoid`,`avoid-page`,`avoid-column`]}],"box-decoration":[{"box-decoration":[`slice`,`clone`]}],box:[{box:[`border`,`content`]}],display:[`block`,`inline-block`,`inline`,`flex`,`inline-flex`,`table`,`inline-table`,`table-caption`,`table-cell`,`table-column`,`table-column-group`,`table-footer-group`,`table-header-group`,`table-row-group`,`table-row`,`flow-root`,`grid`,`inline-grid`,`contents`,`list-item`,`hidden`],sr:[`sr-only`,`not-sr-only`],float:[{float:[`right`,`left`,`none`,`start`,`end`]}],clear:[{clear:[`left`,`right`,`both`,`none`,`start`,`end`]}],isolation:[`isolate`,`isolation-auto`],"object-fit":[{object:[`contain`,`cover`,`fill`,`none`,`scale-down`]}],"object-position":[{object:x()}],overflow:[{overflow:S()}],"overflow-x":[{"overflow-x":S()}],"overflow-y":[{"overflow-y":S()}],overscroll:[{overscroll:C()}],"overscroll-x":[{"overscroll-x":C()}],"overscroll-y":[{"overscroll-y":C()}],position:[`static`,`fixed`,`absolute`,`relative`,`sticky`],inset:[{inset:T()}],"inset-x":[{"inset-x":T()}],"inset-y":[{"inset-y":T()}],start:[{"inset-s":T(),start:T()}],end:[{"inset-e":T(),end:T()}],"inset-bs":[{"inset-bs":T()}],"inset-be":[{"inset-be":T()}],top:[{top:T()}],right:[{right:T()}],bottom:[{bottom:T()}],left:[{left:T()}],visibility:[`visible`,`invisible`,`collapse`],z:[{z:[pi,`auto`,J,q]}],basis:[{basis:[fi,`full`,`auto`,s,...w()]}],"flex-direction":[{flex:[`row`,`row-reverse`,`col`,`col-reverse`]}],"flex-wrap":[{flex:[`nowrap`,`wrap`,`wrap-reverse`]}],flex:[{flex:[K,fi,`auto`,`initial`,`none`,q]}],grow:[{grow:[``,K,J,q]}],shrink:[{shrink:[``,K,J,q]}],order:[{order:[pi,`first`,`last`,`none`,J,q]}],"grid-cols":[{"grid-cols":E()}],"col-start-end":[{col:D()}],"col-start":[{"col-start":O()}],"col-end":[{"col-end":O()}],"grid-rows":[{"grid-rows":E()}],"row-start-end":[{row:D()}],"row-start":[{"row-start":O()}],"row-end":[{"row-end":O()}],"grid-flow":[{"grid-flow":[`row`,`col`,`dense`,`row-dense`,`col-dense`]}],"auto-cols":[{"auto-cols":k()}],"auto-rows":[{"auto-rows":k()}],gap:[{gap:w()}],"gap-x":[{"gap-x":w()}],"gap-y":[{"gap-y":w()}],"justify-content":[{justify:[...A(),`normal`]}],"justify-items":[{"justify-items":[...j(),`normal`]}],"justify-self":[{"justify-self":[`auto`,...j()]}],"align-content":[{content:[`normal`,...A()]}],"align-items":[{items:[...j(),{baseline:[``,`last`]}]}],"align-self":[{self:[`auto`,...j(),{baseline:[``,`last`]}]}],"place-content":[{"place-content":A()}],"place-items":[{"place-items":[...j(),`baseline`]}],"place-self":[{"place-self":[`auto`,...j()]}],p:[{p:w()}],px:[{px:w()}],py:[{py:w()}],ps:[{ps:w()}],pe:[{pe:w()}],pbs:[{pbs:w()}],pbe:[{pbe:w()}],pt:[{pt:w()}],pr:[{pr:w()}],pb:[{pb:w()}],pl:[{pl:w()}],m:[{m:M()}],mx:[{mx:M()}],my:[{my:M()}],ms:[{ms:M()}],me:[{me:M()}],mbs:[{mbs:M()}],mbe:[{mbe:M()}],mt:[{mt:M()}],mr:[{mr:M()}],mb:[{mb:M()}],ml:[{ml:M()}],"space-x":[{"space-x":w()}],"space-x-reverse":[`space-x-reverse`],"space-y":[{"space-y":w()}],"space-y-reverse":[`space-y-reverse`],size:[{size:N()}],"inline-size":[{inline:[`auto`,...P()]}],"min-inline-size":[{"min-inline":[`auto`,...P()]}],"max-inline-size":[{"max-inline":[`none`,...P()]}],"block-size":[{block:[`auto`,...F()]}],"min-block-size":[{"min-block":[`auto`,...F()]}],"max-block-size":[{"max-block":[`none`,...F()]}],w:[{w:[s,`screen`,...N()]}],"min-w":[{"min-w":[s,`screen`,`none`,...N()]}],"max-w":[{"max-w":[s,`screen`,`none`,`prose`,{screen:[o]},...N()]}],h:[{h:[`screen`,`lh`,...N()]}],"min-h":[{"min-h":[`screen`,`lh`,`none`,...N()]}],"max-h":[{"max-h":[`screen`,`lh`,`none`,...N()]}],"font-size":[{text:[`base`,n,ji,wi]}],"font-smoothing":[`antialiased`,`subpixel-antialiased`],"font-style":[`italic`,`not-italic`],"font-weight":[{font:[r,Li,Ei]}],"font-stretch":[{"font-stretch":[`ultra-condensed`,`extra-condensed`,`condensed`,`semi-condensed`,`normal`,`semi-expanded`,`expanded`,`extra-expanded`,`ultra-expanded`,mi,q]}],"font-family":[{font:[Mi,Di,t]}],"font-features":[{"font-features":[q]}],"fvn-normal":[`normal-nums`],"fvn-ordinal":[`ordinal`],"fvn-slashed-zero":[`slashed-zero`],"fvn-figure":[`lining-nums`,`oldstyle-nums`],"fvn-spacing":[`proportional-nums`,`tabular-nums`],"fvn-fraction":[`diagonal-fractions`,`stacked-fractions`],tracking:[{tracking:[i,J,q]}],"line-clamp":[{"line-clamp":[K,`none`,J,Ti]}],leading:[{leading:[`none`,a,...w()]}],"list-image":[{"list-image":[`none`,J,q]}],"list-style-position":[{list:[`inside`,`outside`]}],"list-style-type":[{list:[`disc`,`decimal`,`none`,J,q]}],"text-alignment":[{text:[`left`,`center`,`right`,`justify`,`start`,`end`]}],"placeholder-color":[{placeholder:I()}],"text-color":[{text:I()}],"text-decoration":[`underline`,`overline`,`line-through`,`no-underline`],"text-decoration-style":[{decoration:[...ne(),`wavy`]}],"text-decoration-thickness":[{decoration:[K,`from-font`,`auto`,J,wi]}],"text-decoration-color":[{decoration:I()}],"underline-offset":[{"underline-offset":[K,`auto`,J,q]}],"text-transform":[`uppercase`,`lowercase`,`capitalize`,`normal-case`],"text-overflow":[`truncate`,`text-ellipsis`,`text-clip`],"text-wrap":[{text:[`wrap`,`nowrap`,`balance`,`pretty`]}],indent:[{indent:w()}],"tab-size":[{tab:[pi,J,q]}],"vertical-align":[{align:[`baseline`,`top`,`middle`,`bottom`,`text-top`,`text-bottom`,`sub`,`super`,J,q]}],whitespace:[{whitespace:[`normal`,`nowrap`,`pre`,`pre-line`,`pre-wrap`,`break-spaces`]}],break:[{break:[`normal`,`words`,`all`,`keep`]}],wrap:[{wrap:[`break-word`,`anywhere`,`normal`]}],hyphens:[{hyphens:[`none`,`manual`,`auto`]}],content:[{content:[`none`,J,q]}],"bg-attachment":[{bg:[`fixed`,`local`,`scroll`]}],"bg-clip":[{"bg-clip":[`border`,`padding`,`content`,`text`]}],"bg-origin":[{"bg-origin":[`border`,`padding`,`content`]}],"bg-position":[{bg:L()}],"bg-repeat":[{bg:R()}],"bg-size":[{bg:ee()}],"bg-image":[{bg:[`none`,{linear:[{to:[`t`,`tr`,`r`,`br`,`b`,`bl`,`l`,`tl`]},pi,J,q],radial:[``,J,q],conic:[``,pi,J,q]},Fi,ki]}],"bg-color":[{bg:I()}],"gradient-from-pos":[{from:te()}],"gradient-via-pos":[{via:te()}],"gradient-to-pos":[{to:te()}],"gradient-from":[{from:I()}],"gradient-via":[{via:I()}],"gradient-to":[{to:I()}],rounded:[{rounded:z()}],"rounded-s":[{"rounded-s":z()}],"rounded-e":[{"rounded-e":z()}],"rounded-t":[{"rounded-t":z()}],"rounded-r":[{"rounded-r":z()}],"rounded-b":[{"rounded-b":z()}],"rounded-l":[{"rounded-l":z()}],"rounded-ss":[{"rounded-ss":z()}],"rounded-se":[{"rounded-se":z()}],"rounded-ee":[{"rounded-ee":z()}],"rounded-es":[{"rounded-es":z()}],"rounded-tl":[{"rounded-tl":z()}],"rounded-tr":[{"rounded-tr":z()}],"rounded-br":[{"rounded-br":z()}],"rounded-bl":[{"rounded-bl":z()}],"border-w":[{border:B()}],"border-w-x":[{"border-x":B()}],"border-w-y":[{"border-y":B()}],"border-w-s":[{"border-s":B()}],"border-w-e":[{"border-e":B()}],"border-w-bs":[{"border-bs":B()}],"border-w-be":[{"border-be":B()}],"border-w-t":[{"border-t":B()}],"border-w-r":[{"border-r":B()}],"border-w-b":[{"border-b":B()}],"border-w-l":[{"border-l":B()}],"divide-x":[{"divide-x":B()}],"divide-x-reverse":[`divide-x-reverse`],"divide-y":[{"divide-y":B()}],"divide-y-reverse":[`divide-y-reverse`],"border-style":[{border:[...ne(),`hidden`,`none`]}],"divide-style":[{divide:[...ne(),`hidden`,`none`]}],"border-color":[{border:I()}],"border-color-x":[{"border-x":I()}],"border-color-y":[{"border-y":I()}],"border-color-s":[{"border-s":I()}],"border-color-e":[{"border-e":I()}],"border-color-bs":[{"border-bs":I()}],"border-color-be":[{"border-be":I()}],"border-color-t":[{"border-t":I()}],"border-color-r":[{"border-r":I()}],"border-color-b":[{"border-b":I()}],"border-color-l":[{"border-l":I()}],"divide-color":[{divide:I()}],"outline-style":[{outline:[...ne(),`none`,`hidden`]}],"outline-offset":[{"outline-offset":[K,J,q]}],"outline-w":[{outline:[``,K,ji,wi]}],"outline-color":[{outline:I()}],shadow:[{shadow:[``,`inner`,`none`,u,Ii,Ai]}],"shadow-color":[{shadow:I()}],"inset-shadow":[{"inset-shadow":[`none`,d,Ii,Ai]}],"inset-shadow-color":[{"inset-shadow":I()}],"ring-w":[{ring:B()}],"ring-w-inset":[`ring-inset`],"ring-color":[{ring:I()}],"ring-offset-w":[{"ring-offset":[K,wi]}],"ring-offset-color":[{"ring-offset":I()}],"inset-ring-w":[{"inset-ring":B()}],"inset-ring-color":[{"inset-ring":I()}],"text-shadow":[{"text-shadow":[`none`,f,Ii,Ai]}],"text-shadow-color":[{"text-shadow":I()}],opacity:[{opacity:[K,J,q]}],"mix-blend":[{"mix-blend":[...re(),`plus-darker`,`plus-lighter`]}],"bg-blend":[{"bg-blend":re()}],"mask-clip":[{"mask-clip":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]},`mask-no-clip`],"mask-composite":[{mask:[`add`,`subtract`,`intersect`,`exclude`]}],"mask-image-linear-pos":[{"mask-linear":[K]}],"mask-image-linear-from-pos":[{"mask-linear-from":V()}],"mask-image-linear-to-pos":[{"mask-linear-to":V()}],"mask-image-linear-from-color":[{"mask-linear-from":I()}],"mask-image-linear-to-color":[{"mask-linear-to":I()}],"mask-image-t-from-pos":[{"mask-t-from":V()}],"mask-image-t-to-pos":[{"mask-t-to":V()}],"mask-image-t-from-color":[{"mask-t-from":I()}],"mask-image-t-to-color":[{"mask-t-to":I()}],"mask-image-r-from-pos":[{"mask-r-from":V()}],"mask-image-r-to-pos":[{"mask-r-to":V()}],"mask-image-r-from-color":[{"mask-r-from":I()}],"mask-image-r-to-color":[{"mask-r-to":I()}],"mask-image-b-from-pos":[{"mask-b-from":V()}],"mask-image-b-to-pos":[{"mask-b-to":V()}],"mask-image-b-from-color":[{"mask-b-from":I()}],"mask-image-b-to-color":[{"mask-b-to":I()}],"mask-image-l-from-pos":[{"mask-l-from":V()}],"mask-image-l-to-pos":[{"mask-l-to":V()}],"mask-image-l-from-color":[{"mask-l-from":I()}],"mask-image-l-to-color":[{"mask-l-to":I()}],"mask-image-x-from-pos":[{"mask-x-from":V()}],"mask-image-x-to-pos":[{"mask-x-to":V()}],"mask-image-x-from-color":[{"mask-x-from":I()}],"mask-image-x-to-color":[{"mask-x-to":I()}],"mask-image-y-from-pos":[{"mask-y-from":V()}],"mask-image-y-to-pos":[{"mask-y-to":V()}],"mask-image-y-from-color":[{"mask-y-from":I()}],"mask-image-y-to-color":[{"mask-y-to":I()}],"mask-image-radial":[{"mask-radial":[J,q]}],"mask-image-radial-from-pos":[{"mask-radial-from":V()}],"mask-image-radial-to-pos":[{"mask-radial-to":V()}],"mask-image-radial-from-color":[{"mask-radial-from":I()}],"mask-image-radial-to-color":[{"mask-radial-to":I()}],"mask-image-radial-shape":[{"mask-radial":[`circle`,`ellipse`]}],"mask-image-radial-size":[{"mask-radial":[{closest:[`side`,`corner`],farthest:[`side`,`corner`]}]}],"mask-image-radial-pos":[{"mask-radial-at":b()}],"mask-image-conic-pos":[{"mask-conic":[K]}],"mask-image-conic-from-pos":[{"mask-conic-from":V()}],"mask-image-conic-to-pos":[{"mask-conic-to":V()}],"mask-image-conic-from-color":[{"mask-conic-from":I()}],"mask-image-conic-to-color":[{"mask-conic-to":I()}],"mask-mode":[{mask:[`alpha`,`luminance`,`match`]}],"mask-origin":[{"mask-origin":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]}],"mask-position":[{mask:L()}],"mask-repeat":[{mask:R()}],"mask-size":[{mask:ee()}],"mask-type":[{"mask-type":[`alpha`,`luminance`]}],"mask-image":[{mask:[`none`,J,q]}],filter:[{filter:[``,`none`,J,q]}],blur:[{blur:ie()}],brightness:[{brightness:[K,J,q]}],contrast:[{contrast:[K,J,q]}],"drop-shadow":[{"drop-shadow":[``,`none`,p,Ii,Ai]}],"drop-shadow-color":[{"drop-shadow":I()}],grayscale:[{grayscale:[``,K,J,q]}],"hue-rotate":[{"hue-rotate":[K,J,q]}],invert:[{invert:[``,K,J,q]}],saturate:[{saturate:[K,J,q]}],sepia:[{sepia:[``,K,J,q]}],"backdrop-filter":[{"backdrop-filter":[``,`none`,J,q]}],"backdrop-blur":[{"backdrop-blur":ie()}],"backdrop-brightness":[{"backdrop-brightness":[K,J,q]}],"backdrop-contrast":[{"backdrop-contrast":[K,J,q]}],"backdrop-grayscale":[{"backdrop-grayscale":[``,K,J,q]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[K,J,q]}],"backdrop-invert":[{"backdrop-invert":[``,K,J,q]}],"backdrop-opacity":[{"backdrop-opacity":[K,J,q]}],"backdrop-saturate":[{"backdrop-saturate":[K,J,q]}],"backdrop-sepia":[{"backdrop-sepia":[``,K,J,q]}],"border-collapse":[{border:[`collapse`,`separate`]}],"border-spacing":[{"border-spacing":w()}],"border-spacing-x":[{"border-spacing-x":w()}],"border-spacing-y":[{"border-spacing-y":w()}],"table-layout":[{table:[`auto`,`fixed`]}],caption:[{caption:[`top`,`bottom`]}],transition:[{transition:[``,`all`,`colors`,`opacity`,`shadow`,`transform`,`none`,J,q]}],"transition-behavior":[{transition:[`normal`,`discrete`]}],duration:[{duration:[K,`initial`,J,q]}],ease:[{ease:[`linear`,`initial`,_,J,q]}],delay:[{delay:[K,J,q]}],animate:[{animate:[`none`,v,J,q]}],backface:[{backface:[`hidden`,`visible`]}],perspective:[{perspective:[h,J,q]}],"perspective-origin":[{"perspective-origin":x()}],rotate:[{rotate:H()}],"rotate-x":[{"rotate-x":H()}],"rotate-y":[{"rotate-y":H()}],"rotate-z":[{"rotate-z":H()}],scale:[{scale:ae()}],"scale-x":[{"scale-x":ae()}],"scale-y":[{"scale-y":ae()}],"scale-z":[{"scale-z":ae()}],"scale-3d":[`scale-3d`],skew:[{skew:oe()}],"skew-x":[{"skew-x":oe()}],"skew-y":[{"skew-y":oe()}],transform:[{transform:[J,q,``,`none`,`gpu`,`cpu`]}],"transform-origin":[{origin:x()}],"transform-style":[{transform:[`3d`,`flat`]}],translate:[{translate:U()}],"translate-x":[{"translate-x":U()}],"translate-y":[{"translate-y":U()}],"translate-z":[{"translate-z":U()}],"translate-none":[`translate-none`],zoom:[{zoom:[pi,J,q]}],accent:[{accent:I()}],appearance:[{appearance:[`none`,`auto`]}],"caret-color":[{caret:I()}],"color-scheme":[{scheme:[`normal`,`dark`,`light`,`light-dark`,`only-dark`,`only-light`]}],cursor:[{cursor:[`auto`,`default`,`pointer`,`wait`,`text`,`move`,`help`,`not-allowed`,`none`,`context-menu`,`progress`,`cell`,`crosshair`,`vertical-text`,`alias`,`copy`,`no-drop`,`grab`,`grabbing`,`all-scroll`,`col-resize`,`row-resize`,`n-resize`,`e-resize`,`s-resize`,`w-resize`,`ne-resize`,`nw-resize`,`se-resize`,`sw-resize`,`ew-resize`,`ns-resize`,`nesw-resize`,`nwse-resize`,`zoom-in`,`zoom-out`,J,q]}],"field-sizing":[{"field-sizing":[`fixed`,`content`]}],"pointer-events":[{"pointer-events":[`auto`,`none`]}],resize:[{resize:[`none`,``,`y`,`x`]}],"scroll-behavior":[{scroll:[`auto`,`smooth`]}],"scrollbar-thumb-color":[{"scrollbar-thumb":I()}],"scrollbar-track-color":[{"scrollbar-track":I()}],"scrollbar-gutter":[{"scrollbar-gutter":[`auto`,`stable`,`both`]}],"scrollbar-w":[{scrollbar:[`auto`,`thin`,`none`]}],"scroll-m":[{"scroll-m":w()}],"scroll-mx":[{"scroll-mx":w()}],"scroll-my":[{"scroll-my":w()}],"scroll-ms":[{"scroll-ms":w()}],"scroll-me":[{"scroll-me":w()}],"scroll-mbs":[{"scroll-mbs":w()}],"scroll-mbe":[{"scroll-mbe":w()}],"scroll-mt":[{"scroll-mt":w()}],"scroll-mr":[{"scroll-mr":w()}],"scroll-mb":[{"scroll-mb":w()}],"scroll-ml":[{"scroll-ml":w()}],"scroll-p":[{"scroll-p":w()}],"scroll-px":[{"scroll-px":w()}],"scroll-py":[{"scroll-py":w()}],"scroll-ps":[{"scroll-ps":w()}],"scroll-pe":[{"scroll-pe":w()}],"scroll-pbs":[{"scroll-pbs":w()}],"scroll-pbe":[{"scroll-pbe":w()}],"scroll-pt":[{"scroll-pt":w()}],"scroll-pr":[{"scroll-pr":w()}],"scroll-pb":[{"scroll-pb":w()}],"scroll-pl":[{"scroll-pl":w()}],"snap-align":[{snap:[`start`,`end`,`center`,`align-none`]}],"snap-stop":[{snap:[`normal`,`always`]}],"snap-type":[{snap:[`none`,`x`,`y`,`both`]}],"snap-strictness":[{snap:[`mandatory`,`proximity`]}],touch:[{touch:[`auto`,`none`,`manipulation`]}],"touch-x":[{"touch-pan":[`x`,`left`,`right`]}],"touch-y":[{"touch-pan":[`y`,`up`,`down`]}],"touch-pz":[`touch-pinch-zoom`],select:[{select:[`none`,`text`,`all`,`auto`]}],"will-change":[{"will-change":[`auto`,`scroll`,`contents`,`transform`,J,q]}],fill:[{fill:[`none`,...I()]}],"stroke-w":[{stroke:[K,ji,wi,Ti]}],stroke:[{stroke:[`none`,...I()]}],"forced-color-adjust":[{"forced-color-adjust":[`auto`,`none`]}]},conflictingClassGroups:{"container-named":[`container-type`],overflow:[`overflow-x`,`overflow-y`],overscroll:[`overscroll-x`,`overscroll-y`],inset:[`inset-x`,`inset-y`,`inset-bs`,`inset-be`,`start`,`end`,`top`,`right`,`bottom`,`left`],"inset-x":[`start`,`end`,`right`,`left`],"inset-y":[`inset-bs`,`inset-be`,`top`,`bottom`],flex:[`basis`,`grow`,`shrink`],gap:[`gap-x`,`gap-y`],p:[`px`,`py`,`ps`,`pe`,`pbs`,`pbe`,`pt`,`pr`,`pb`,`pl`],px:[`ps`,`pe`,`pr`,`pl`],py:[`pbs`,`pbe`,`pt`,`pb`],m:[`mx`,`my`,`ms`,`me`,`mbs`,`mbe`,`mt`,`mr`,`mb`,`ml`],mx:[`ms`,`me`,`mr`,`ml`],my:[`mbs`,`mbe`,`mt`,`mb`],size:[`w`,`h`],"font-size":[`leading`],"fvn-normal":[`fvn-ordinal`,`fvn-slashed-zero`,`fvn-figure`,`fvn-spacing`,`fvn-fraction`],"fvn-ordinal":[`fvn-normal`],"fvn-slashed-zero":[`fvn-normal`],"fvn-figure":[`fvn-normal`],"fvn-spacing":[`fvn-normal`],"fvn-fraction":[`fvn-normal`],"line-clamp":[`display`,`overflow`],rounded:[`rounded-s`,`rounded-e`,`rounded-t`,`rounded-r`,`rounded-b`,`rounded-l`,`rounded-ss`,`rounded-se`,`rounded-ee`,`rounded-es`,`rounded-tl`,`rounded-tr`,`rounded-br`,`rounded-bl`],"rounded-s":[`rounded-ss`,`rounded-es`],"rounded-e":[`rounded-se`,`rounded-ee`],"rounded-t":[`rounded-tl`,`rounded-tr`],"rounded-r":[`rounded-tr`,`rounded-br`],"rounded-b":[`rounded-br`,`rounded-bl`],"rounded-l":[`rounded-tl`,`rounded-bl`],"border-spacing":[`border-spacing-x`,`border-spacing-y`],"border-w":[`border-w-x`,`border-w-y`,`border-w-s`,`border-w-e`,`border-w-bs`,`border-w-be`,`border-w-t`,`border-w-r`,`border-w-b`,`border-w-l`],"border-w-x":[`border-w-s`,`border-w-e`,`border-w-r`,`border-w-l`],"border-w-y":[`border-w-bs`,`border-w-be`,`border-w-t`,`border-w-b`],"border-color":[`border-color-x`,`border-color-y`,`border-color-s`,`border-color-e`,`border-color-bs`,`border-color-be`,`border-color-t`,`border-color-r`,`border-color-b`,`border-color-l`],"border-color-x":[`border-color-s`,`border-color-e`,`border-color-r`,`border-color-l`],"border-color-y":[`border-color-bs`,`border-color-be`,`border-color-t`,`border-color-b`],translate:[`translate-x`,`translate-y`,`translate-none`],"translate-none":[`translate`,`translate-x`,`translate-y`,`translate-z`],"scroll-m":[`scroll-mx`,`scroll-my`,`scroll-ms`,`scroll-me`,`scroll-mbs`,`scroll-mbe`,`scroll-mt`,`scroll-mr`,`scroll-mb`,`scroll-ml`],"scroll-mx":[`scroll-ms`,`scroll-me`,`scroll-mr`,`scroll-ml`],"scroll-my":[`scroll-mbs`,`scroll-mbe`,`scroll-mt`,`scroll-mb`],"scroll-p":[`scroll-px`,`scroll-py`,`scroll-ps`,`scroll-pe`,`scroll-pbs`,`scroll-pbe`,`scroll-pt`,`scroll-pr`,`scroll-pb`,`scroll-pl`],"scroll-px":[`scroll-ps`,`scroll-pe`,`scroll-pr`,`scroll-pl`],"scroll-py":[`scroll-pbs`,`scroll-pbe`,`scroll-pt`,`scroll-pb`],touch:[`touch-x`,`touch-y`,`touch-pz`],"touch-x":[`touch`],"touch-y":[`touch`],"touch-pz":[`touch`]},conflictingClassGroupModifiers:{"font-size":[`leading`]},postfixLookupClassGroups:[`container-type`],orderSensitiveModifiers:[`*`,`**`,`after`,`backdrop`,`before`,`details-content`,`file`,`first-letter`,`first-line`,`marker`,`placeholder`,`selection`]}});function Yi(...e){return Ji(xr(e))}var Xi=Object.defineProperty,Zi=(e,t)=>Xi(e,`name`,{value:t,configurable:!0});function Qi(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}Zi(Qi,`setRef`);function $i(...e){return t=>{let n=!1,r=e.map(e=>{let r=Qi(e,t);return!n&&typeof r==`function`&&(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];typeof n==`function`?n():Qi(e[t],null)}}}}Zi($i,`composeRefs`);function ea(...e){return o.useCallback($i(...e),e)}Zi(ea,`useComposedRefs`);var ta=Object.defineProperty,na=(e,t)=>ta(e,`name`,{value:t,configurable:!0});function ra(e){let t=o.forwardRef((t,n)=>{let{children:r,...i}=t,a=null,s=!1,c=[];r=ma(r),o.Children.forEach(r,e=>{if(ua(e)){s=!0;let t=e,n=`child`in t.props?t.props.child:t.props.children;for(;fa(n)&&typeof va==`function`;)n=va(n._payload);a=sa(t,n),c.push(a?.props?.children)}else c.push(e)}),a?a=o.cloneElement(a,void 0,c):!s&&o.Children.count(r)===1&&o.isValidElement(r)&&(a=r);let l=a?la(a):void 0,u=ea(n,l);if(!a){if(r||r===0)throw Error(s?_a(e):ga(e));return r}let d=ca(i,a.props??{});return a.type!==o.Fragment&&(d.ref=n?u:l),o.cloneElement(a,d)});return t.displayName=`${e}.Slot`,t}na(ra,`createSlot`);var ia=ra(`Slot`),aa=Symbol.for(`radix.slottable`);function oa(e){let t=na(e=>`child`in e?e.children(e.child):e.children,`Slottable`);return t.displayName=`${e}.Slottable`,t.__radixId=aa,t}na(oa,`createSlottable`);var sa=na((e,t)=>`child`in e.props?o.isValidElement(t)?o.cloneElement(t,void 0,e.props.children(t.props.children)):null:o.isValidElement(t)?t:null,`getSlottableElementFromSlottable`);function ca(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`?n[r]=[i,a].filter(Boolean).join(` `):r===`aria-describedby`&&(n[r]=ha(a,i))}return{...e,...n}}na(ca,`mergeProps`);function la(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}na(la,`getElementRef`);function ua(e){return o.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===aa}na(ua,`isSlottable`);var da=Symbol.for(`react.lazy`);function fa(e){return typeof e==`object`&&!!e&&`$$typeof`in e&&e.$$typeof===da&&`_payload`in e&&pa(e._payload)}na(fa,`isLazyComponent`);function pa(e){return typeof e==`object`&&!!e&&`then`in e}na(pa,`isPromiseLike`);function ma(e){let t=e;for(;fa(t)&&typeof va==`function`;)t=va(t._payload);return t}na(ma,`useUnwrappedLazy`);function ha(...e){let t=new Set;for(let n of e)if(typeof n==`string`)for(let e of String(n).trim().split(/\s+/))e&&t.add(e);return t.size>0?Array.from(t).join(` `):void 0}na(ha,`concatAriaDescribedby`);var ga=na(e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,`createSlotError`),_a=na(e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,`createSlottableError`),va=o.use,ya=Object.defineProperty,ba=(e,t)=>ya(e,`name`,{value:t,configurable:!0}),xa=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`].reduce((e,t)=>{let n=ra(`Primitive.${t}`),r=o.forwardRef((e,r)=>{let{asChild:i,...a}=e,o=i?n:t;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),(0,s.jsx)(o,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Sa(e,t){e&&yr.flushSync(()=>e.dispatchEvent(t))}ba(Sa,`dispatchDiscreteCustomEvent`);var Ca=Object.defineProperty,wa=(e,t)=>Ca(e,`name`,{value:t,configurable:!0});function Ta(e,t){let n=o.createContext(t);n.displayName=e+`Context`;let r=wa(e=>{let{children:t,...r}=e,i=o.useMemo(()=>r,Object.values(r));return(0,s.jsx)(n.Provider,{value:i,children:t})},`Provider`);r.displayName=e+`Provider`;function i(r,i={}){let{optional:a=!1}=i,s=o.useContext(n);if(s)return s;if(t!==void 0)return t;if(!a)throw Error(`\`${r}\` must be used within \`${e}\``)}return wa(i,`useContext`),[r,i]}wa(Ta,`createContext`);function Ea(e,t=[]){let n=[];function r(t,r){let i=o.createContext(r);i.displayName=t+`Context`;let a=n.length;n=[...n,r];let c=wa(t=>{let{scope:n,children:r,...c}=t,l=n?.[e]?.[a]||i,u=o.useMemo(()=>c,Object.values(c));return(0,s.jsx)(l.Provider,{value:u,children:r})},`Provider`);c.displayName=t+`Provider`;function l(n,s,c={}){let{optional:l=!1}=c,u=s?.[e]?.[a]||i,d=o.useContext(u);if(d)return d;if(r!==void 0)return r;if(!l)throw Error(`\`${n}\` must be used within \`${t}\``)}return wa(l,`useContext`),[c,l]}wa(r,`createContext`);let i=wa(()=>{let t=n.map(e=>o.createContext(e));return wa(function(n){let r=n?.[e]||t;return o.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])},`useScope`)},`createScope`);return i.scopeName=e,[r,Da(i,...t)]}wa(Ea,`createContextScope`);function Da(...e){let t=e[0];if(e.length===1)return t;let n=wa(()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return wa(function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return o.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])},`useComposedScopes`)},`createScope`);return n.scopeName=t.scopeName,n}wa(Da,`composeContextScopes`);var Oa=globalThis?.document?o.useLayoutEffect:()=>{},ka=Object.defineProperty,Y=(e,t)=>ka(e,`name`,{value:t,configurable:!0});function Aa(e){let t=e+`CollectionProvider`,[n,r]=Ea(t),[i,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),c=Y(e=>{let{scope:t,children:n}=e,r=o.useRef(null),a=o.useRef(new Map).current;return(0,s.jsx)(i,{scope:t,itemMap:a,collectionRef:r,children:n})},`CollectionProvider`);c.displayName=t;let l=e+`CollectionSlot`,u=ra(l),d=o.forwardRef((e,t)=>{let{scope:n,children:r}=e,i=ea(t,a(l,n).collectionRef);return(0,s.jsx)(u,{ref:i,children:r})});d.displayName=l;let f=e+`CollectionItemSlot`,p=`data-radix-collection-item`,m=ra(f),h=o.forwardRef((e,t)=>{let{scope:n,children:r,...i}=e,c=o.useRef(null),l=ea(t,c),u=a(f,n);return o.useEffect(()=>(u.itemMap.set(c,{ref:c,...i}),()=>void u.itemMap.delete(c))),(0,s.jsx)(m,{[p]:``,ref:l,children:r})});h.displayName=f;function g(t){let n=a(e+`CollectionConsumer`,t);return o.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${p}]`));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])}return Y(g,`useCollection`),[{Provider:c,Slot:d,ItemSlot:h},g,r]}Y(Aa,`createCollection`);var ja=new WeakMap,Ma=class e extends Map{static{Y(this,`OrderedDict`)}#e;constructor(e){super(e),this.#e=[...super.keys()],ja.set(this,!0)}set(e,t){return ja.get(this)&&!this.has(e)&&this.#e.push(e),super.set(e,t),this}insert(e,t,n){let r=this.has(t),i=r?this.size:this.size+1,a=Fa(e),o=a>=0?Math.min(a,i-1):Math.max(i+a,0);if(r?this.#e.indexOf(t)===o:o===this.size)return this.set(t,n),this;let s=this.#e.filter(e=>e!==t);s.splice(o,0,t);let c=s.map(e=>[e,e===t?n:this.get(e)]);this.clear();for(let[e,t]of c)this.set(e,t);return this}with(t,n,r){let i=new e(this);return i.insert(t,n,r),i}before(e){let t=this.#e.indexOf(e)-1;if(!(t<0))return this.entryAt(t)}setBefore(e,t,n){let r=this.#e.indexOf(e);if(r===-1)return this;let i=this.#e.indexOf(t),a=i!==-1&&i<r?r-1:r;return this.insert(a,t,n)}after(e){let t=this.#e.indexOf(e);if(t=t===-1||t===this.size-1?-1:t+1,t!==-1)return this.entryAt(t)}setAfter(e,t,n){let r=this.#e.indexOf(e);if(r===-1)return this;let i=this.#e.indexOf(t),a=i!==-1&&i<=r?r:r+1;return this.insert(a,t,n)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return this.#e=[],super.clear()}delete(e){let t=super.delete(e);return t&&this.#e.splice(this.#e.indexOf(e),1),t}deleteAt(e){let t=this.keyAt(e);return t!==void 0&&this.delete(t)}at(e){let t=Na(this.#e,e);if(t!==void 0)return this.get(t)}entryAt(e){let t=Na(this.#e,e);if(t!==void 0)return[t,this.get(t)]}indexOf(e){return this.#e.indexOf(e)}keyAt(e){return Na(this.#e,e)}from(e,t){let n=this.indexOf(e);if(n===-1)return;let r=n+t;return r<0&&(r=0),r>=this.size&&(r=this.size-1),this.at(r)}keyFrom(e,t){let n=this.indexOf(e);if(n===-1)return;let r=n+t;return r<0&&(r=0),r>=this.size&&(r=this.size-1),this.keyAt(r)}find(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return r;n++}}findIndex(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return n;n++}return-1}filter(t,n){let r=[],i=0;for(let e of this)Reflect.apply(t,n,[e,i,this])&&r.push(e),i++;return new e(r)}map(t,n){let r=[],i=0;for(let e of this)r.push([e[0],Reflect.apply(t,n,[e,i,this])]),i++;return new e(r)}reduce(...e){let[t,n]=e,r=e.length>1;if(!r&&this.size===0)throw TypeError(`Reduce of empty OrderedDict with no initial value`);let i=0,a=n;for(let e of this)a=i===0&&!r?e:Reflect.apply(t,this,[a,e,i,this]),i++;return a}reduceRight(...e){let[t,n]=e,r=e.length>1;if(!r&&this.size===0)throw TypeError(`Reduce of empty OrderedDict with no initial value`);let i=n;for(let e=this.size-1;e>=0;e--){let n=this.entryAt(e);i=e===this.size-1&&!r?n:Reflect.apply(t,this,[i,n,e,this])}return i}sort(e){if(typeof e!=`function`)throw TypeError(`OrderedDict.sort requires a compare function`);let t=[...this.entries()].sort(e);this.clear();for(let[e,n]of t)this.set(e,n);return this}toSorted(t){if(typeof t!=`function`)throw TypeError(`OrderedDict.toSorted requires a compare function`);let n=[...this.entries()].sort(t);return new e(n)}toReversed(){let t=new e;for(let e=this.size-1;e>=0;e--){let n=this.keyAt(e),r=this.get(n);t.set(n,r)}return t}toSpliced(...t){let n=[...this.entries()];return n.splice(...t),new e(n)}slice(t,n){let r=new e;for(let e of this.#e.slice(t,n))r.set(e,this.get(e));return r}every(e,t){let n=0;for(let r of this){if(!Reflect.apply(e,t,[r,n,this]))return!1;n++}return!0}some(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return!0;n++}return!1}};function Na(e,t){if(`at`in Array.prototype)return Array.prototype.at.call(e,t);let n=Pa(e,t);return n===-1?void 0:e[n]}Y(Na,`at`);function Pa(e,t){let n=e.length,r=Fa(t),i=r>=0?r:n+r;return i<0||i>=n?-1:i}Y(Pa,`toSafeIndex`);function Fa(e){return e!==e||e===0?0:Math.trunc(e)}Y(Fa,`toSafeInteger`);function Ia(e){let t=e+`CollectionProvider`,[n,r]=Ea(t),[i,a]=n(t);i.displayName=e+`CollectionStableContextProvider`;let[c,l]=n(t);c.displayName=e+`CollectionStatefulContextProvider`;let u=Y(({state:e,...t})=>e?(0,s.jsx)(f,{...t,state:e}):(0,s.jsx)(d,{...t}),`CollectionProvider`);u.displayName=t;let d=Y(e=>{let t=y();return(0,s.jsx)(f,{...e,state:t})},`CollectionInit`);d.displayName=e+`CollectionInit`;let f=Y(e=>{let{scope:t,children:n,state:r}=e,a=o.useRef(null),[l,u]=o.useState(null),d=ea(a,u),[f,p]=r,m=o.useRef(new Ma),h=o.useCallback(()=>{let e=m.current;return za(e)||e.sort(Ba),e},[]);return o.useEffect(()=>{if(!l)return;let e=Va(()=>{p(e=>{let t=e.toSorted(Ba);return t.some(([t],n)=>e.keyAt(n)!==t)?t:e})});return e.observe(l,{childList:!0,subtree:!0}),()=>{e.disconnect()}},[l,p]),(0,s.jsx)(i,{scope:t,collectionElementRef:d,collectionElementRefObject:a,getCollection:h,setCollection:p,registryRef:m,children:(0,s.jsx)(c,{scope:t,collectionElement:l,collection:f,children:n})})},`CollectionProviderImpl`);f.displayName=e+`CollectionProviderImpl`;let p=e+`CollectionSlot`,m=ra(p),h=o.forwardRef((e,t)=>{let{scope:n,children:r}=e,i=ea(t,a(p,n).collectionElementRef);return(0,s.jsx)(m,{ref:i,children:r})});h.displayName=p;let g=e+`CollectionItemSlot`,_=ra(g),v=o.forwardRef((e,t)=>{let{scope:n,children:r,...i}=e,c=o.useRef(null),{setCollection:l,registryRef:u}=a(g,n),d=o.useRef(i);La(d.current,i)||(d.current=i);let f=d.current,p=ea(t,o.useCallback(e=>{let t=u.current;e?t.set(e,{...d.current,element:e}):c.current&&t.delete(c.current)},[u]),c);Oa(()=>{let e=c.current,t=u.current;e&&t.has(e)&&t.set(e,{...f,element:e})},[f,u]);let m=o.useRef(null);return o.useEffect(()=>{let e=c.current,t=m.current;((t?.element??null)!==e||e&&t?.itemData!==f)&&(m.current=e?{element:e,itemData:f}:null,l(n=>{let r=new Ma(n);return t&&t.element!==e&&r.delete(t.element),e&&r.set(e,{...f,element:e}),r.sort(Ba)}))}),o.useEffect(()=>()=>{let e=m.current;m.current=null,e&&l(t=>{if(!t.has(e.element))return t;let n=new Ma(t);return n.delete(e.element),n})},[l]),(0,s.jsx)(_,{"data-radix-collection-item":``,ref:p,children:r})});v.displayName=g;function y(){return o.useState(new Ma)}Y(y,`useInitCollection`);function b(t){let{collection:n}=l(e+`CollectionConsumer`,t);return n}Y(b,`useCollection`);function x(t){let{getCollection:n}=a(e+`CollectionConsumer`,t);return n}return Y(x,`useGetCollection`),[{Provider:u,Slot:h,ItemSlot:v},{createCollectionScope:r,useCollection:b,useGetCollection:x,useInitCollection:y}]}Y(Ia,`createCollection`);function La(e,t){if(e===t)return!0;if(typeof e!=`object`||typeof t!=`object`||e==null||t==null)return!1;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r of n)if(!Object.prototype.hasOwnProperty.call(t,r)||e[r]!==t[r])return!1;return!0}Y(La,`shallowEqual`);function Ra(e,t){return!!(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}Y(Ra,`isElementPreceding`);function za(e){let t;for(let n of e.keys()){if(t){let e=t.compareDocumentPosition(n);if(!(e&Node.DOCUMENT_POSITION_DISCONNECTED)&&e&Node.DOCUMENT_POSITION_PRECEDING)return!1}t=n}return!0}Y(za,`isInDocumentOrder`);function Ba(e,t){return!e[1].element||!t[1].element?0:Ra(e[1].element,t[1].element)?-1:1}Y(Ba,`sortByDocumentPosition`);function Va(e){return new MutationObserver(t=>{for(let n of t)if(n.type===`childList`){e();return}})}Y(Va,`getChildListObserver`);var Ha=Object.defineProperty,Ua=(e,t)=>Ha(e,`name`,{value:t,configurable:!0}),Wa=!!(typeof window<`u`&&window.document&&window.document.createElement);function Ga(e,t,{checkForDefaultPrevented:n=!0}={}){return Ua(function(r){if(e?.(r),n===!1||!r||!r.defaultPrevented)return t?.(r)},`handleEvent`)}Ua(Ga,`composeEventHandlers`);function Ka(e){if(!Wa)throw Error(`Cannot access window outside of the DOM`);return e?.ownerDocument?.defaultView??window}Ua(Ka,`getOwnerWindow`);function qa(e){if(!Wa)throw Error(`Cannot access document outside of the DOM`);return e?.ownerDocument??document}Ua(qa,`getOwnerDocument`);function Ja(e,t=!1){let{activeElement:n}=qa(e);if(!n?.nodeName)return null;if(Ya(n)&&n.contentDocument)return Ja(n.contentDocument.body,t);if(t){let e=n.getAttribute(`aria-activedescendant`);if(e){let t=qa(n).getElementById(e);if(t)return t}}return n}Ua(Ja,`getActiveElement`);function Ya(e){return e.tagName===`IFRAME`}Ua(Ya,`isFrame`);var Xa=Object.defineProperty,Za=(e,t)=>Xa(e,`name`,{value:t,configurable:!0}),Qa=o.useEffectEvent,$a=o.useInsertionEffect;function eo(e){if(typeof Qa==`function`)return Qa(e);let t=o.useRef(()=>{throw Error(`Cannot call an event handler while rendering.`)});return typeof $a==`function`?$a(()=>{t.current=e}):Oa(()=>{t.current=e}),o.useMemo(()=>((...e)=>t.current?.(...e)),[])}Za(eo,`useEffectEvent`);var to=Object.defineProperty,no=(e,t)=>to(e,`name`,{value:t,configurable:!0}),ro=o.useInsertionEffect||Oa;function io({prop:e,defaultProp:t,onChange:n=no(()=>{},`onChange`),caller:r}){let[i,a,s]=ao({defaultProp:t,onChange:n}),c=e!==void 0;return[c?e:i,o.useCallback(t=>{if(c){let n=oo(t)?t(e):t;n!==e&&s.current?.(n)}else a(t)},[c,e,a,s])]}no(io,`useControllableState`);function ao({defaultProp:e,onChange:t}){let[n,r]=o.useState(e),i=o.useRef(n),a=o.useRef(t);return ro(()=>{a.current=t},[t]),o.useEffect(()=>{i.current!==n&&(a.current?.(n),i.current=n)},[n,i]),[n,r,a]}no(ao,`useUncontrolledState`);function oo(e){return typeof e==`function`}no(oo,`isFunction`);var so=Symbol(`RADIX:SYNC_STATE`);function co(e,t,n,r){let{prop:i,defaultProp:a,onChange:s,caller:c}=t,l=i!==void 0,u=eo(s),d=[{...n,state:a}];r&&d.push(r);let[f,p]=o.useReducer((t,n)=>{if(n.type===so)return{...t,state:n.state};let r=e(t,n);return l&&!Object.is(r.state,t.state)&&u(r.state),r},...d),m=f.state,h=o.useRef(m);o.useEffect(()=>{h.current!==m&&(h.current=m,l||u(m))},[m,h,l]);let g=o.useMemo(()=>i===void 0?f:{...f,state:i},[f,i]);return o.useEffect(()=>{l&&!Object.is(i,f.state)&&p({type:so,state:i})},[i,f.state,l]),[g,p]}no(co,`useControllableStateReducer`);var lo=Object.defineProperty,uo=(e,t)=>lo(e,`name`,{value:t,configurable:!0});function fo(e,t){return o.useReducer((e,n)=>t[e][n]??e,e)}uo(fo,`useStateMachine`);var po=uo(e=>{let{present:t,children:n}=e,r=mo(t),i=typeof n==`function`?n({present:r.isPresent}):o.Children.only(n),a=go(r.ref,vo(i));return typeof n==`function`||r.isPresent?o.cloneElement(i,{ref:a}):null},`Presence`);function mo(e){let[t,n]=o.useState(),r=o.useRef(null),i=o.useRef(e),a=o.useRef(`none`),s=o.useRef(void 0),[c,l]=fo(e?`mounted`:`unmounted`,{mounted:{UNMOUNT:`unmounted`,ANIMATION_OUT:`unmountSuspended`},unmountSuspended:{MOUNT:`mounted`,ANIMATION_END:`unmounted`},unmounted:{MOUNT:`mounted`}});return o.useEffect(()=>{c===`mounted`?(a.current=s.current??_o(r.current),s.current=void 0):a.current=`none`},[c]),Oa(()=>{let t=r.current,n=i.current;if(n!==e){let r=a.current,o=_o(t);e?(s.current=o,l(`MOUNT`)):o===`none`||t?.display===`none`?l(`UNMOUNT`):l(n&&r!==o?`ANIMATION_OUT`:`UNMOUNT`),i.current=e}},[e,l]),Oa(()=>{if(t){let e,n=t.ownerDocument.defaultView??window,o=uo(a=>{let o=_o(r.current).includes(CSS.escape(a.animationName));if(a.target===t&&o&&(l(`ANIMATION_END`),!i.current)){let r=t.style.animationFillMode;t.style.animationFillMode=`forwards`,e=n.setTimeout(()=>{t.style.animationFillMode===`forwards`&&(t.style.animationFillMode=r)})}},`handleAnimationEnd`),s=uo(e=>{e.target===t&&(a.current=_o(r.current))},`handleAnimationStart`);return t.addEventListener(`animationstart`,s),t.addEventListener(`animationcancel`,o),t.addEventListener(`animationend`,o),()=>{n.clearTimeout(e),t.removeEventListener(`animationstart`,s),t.removeEventListener(`animationcancel`,o),t.removeEventListener(`animationend`,o)}}l(`ANIMATION_END`)},[t,l]),{isPresent:[`mounted`,`unmountSuspended`].includes(c),ref:o.useCallback(e=>{if(e){let t=getComputedStyle(e);r.current=t,s.current=_o(t)}else r.current=null;n(e)},[])}}uo(mo,`usePresence`);function ho(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}uo(ho,`setRef`);function go(...e){let t=o.useRef(e);return t.current=e,o.useCallback(e=>{let n=t.current,r=!1,i=n.map(t=>{let n=ho(t,e);return!r&&typeof n==`function`&&(r=!0),n});if(r)return()=>{for(let e=0;e<i.length;e++){let t=i[e];typeof t==`function`?t():ho(n[e],null)}}},[])}uo(go,`useStableComposedRefs`);function _o(e){return e?.animationName||`none`}uo(_o,`getAnimationName`);function vo(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}uo(vo,`getElementRef`);var yo=Object.defineProperty,bo=(e,t)=>yo(e,`name`,{value:t,configurable:!0}),xo=o.useId||(()=>void 0),So=0;function Co(e){let[t,n]=o.useState(xo());return Oa(()=>{e||n(e=>e??String(So++))},[e]),e||(t?`radix-${t}`:``)}bo(Co,`useId`);var wo=Object.defineProperty,To=(e,t)=>wo(e,`name`,{value:t,configurable:!0}),Eo={LTR:`ltr`,RTL:`rtl`},Do=o.createContext(void 0);function Oo(e){let t=o.useContext(Do);return e||t||Eo.LTR}To(Oo,`useDirection`);var ko=Object.defineProperty,Ao=(e,t)=>ko(e,`name`,{value:t,configurable:!0}),jo=o.useInsertionEffect;function Mo(e){let t=o.useRef(e);return typeof jo==`function`?jo(()=>{t.current=e}):Oa(()=>{t.current=e}),o.useMemo(()=>((...e)=>t.current?.(...e)),[])}Ao(Mo,`useCallbackRef`);var No=Object.defineProperty,X=(e,t)=>No(e,`name`,{value:t,configurable:!0}),Po=`dismissableLayer.update`,Fo=`dismissableLayer.pointerDownOutside`,Io=`dismissableLayer.focusOutside`,Lo,Ro=o.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),zo=o.forwardRef(X(function(e,t){let{disableOutsidePointerEvents:n=!1,deferPointerDownOutside:r=!1,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:c,onInteractOutside:l,onDismiss:u,...d}=e,f=o.useContext(Ro),[p,m]=o.useState(null),h=p?.ownerDocument??globalThis?.document,[,g]=o.useState({}),_=ea(t,m),v=Array.from(f.layers),[y]=[...f.layersWithOutsidePointerEventsDisabled].slice(-1),b=y?v.indexOf(y):-1,x=p?v.indexOf(p):-1,S=f.layersWithOutsidePointerEventsDisabled.size>0,C=x>=b,w=o.useRef(!1),T=Ho(e=>{a?.(e),l?.(e),e.defaultPrevented||u?.()},{ownerDocument:h,deferPointerDownOutside:r,isDeferredPointerDownOutsideRef:w,dismissableSurfaces:f.dismissableSurfaces,shouldHandlePointerDownOutside:o.useCallback(e=>{if(!(e instanceof Node))return!1;let t=[...f.branches].some(t=>t.contains(e));return C&&!t},[f.branches,C])}),E=Uo(e=>{if(r&&w.current)return;let t=e.target;[...f.branches].some(e=>e.contains(t))||(c?.(e),l?.(e),e.defaultPrevented||u?.())},h),D=p?x===v.length-1:!1,O=Mo(e=>{e.key===`Escape`&&(i?.(e),!e.defaultPrevented&&u&&(e.preventDefault(),u()))});return o.useEffect(()=>{if(D)return h.addEventListener(`keydown`,O,{capture:!0}),()=>h.removeEventListener(`keydown`,O,{capture:!0})},[h,D,O]),o.useEffect(()=>{if(p)return n&&(f.layersWithOutsidePointerEventsDisabled.size===0&&(Lo=h.body.style.pointerEvents,h.body.style.pointerEvents=`none`),f.layersWithOutsidePointerEventsDisabled.add(p)),f.layers.add(p),Wo(),()=>{n&&(f.layersWithOutsidePointerEventsDisabled.delete(p),f.layersWithOutsidePointerEventsDisabled.size===0&&(h.body.style.pointerEvents=Lo))}},[p,h,n,f]),o.useEffect(()=>()=>{p&&(f.layers.delete(p),f.layersWithOutsidePointerEventsDisabled.delete(p),Wo())},[p,f]),o.useEffect(()=>{let e=X(()=>g({}),`handleUpdate`);return document.addEventListener(Po,e),()=>document.removeEventListener(Po,e)},[]),(0,s.jsx)(xa.div,{...d,ref:_,style:{pointerEvents:S?C?`auto`:`none`:void 0,...e.style},onFocusCapture:Ga(e.onFocusCapture,E.onFocusCapture),onBlurCapture:Ga(e.onBlurCapture,E.onBlurCapture),onPointerDownCapture:Ga(e.onPointerDownCapture,T.onPointerDownCapture)})},`DismissableLayer`));function Bo(){let e=o.useContext(Ro),[t,n]=o.useState(null);return o.useEffect(()=>{if(t)return e.dismissableSurfaces.add(t),()=>{e.dismissableSurfaces.delete(t)}},[t,e.dismissableSurfaces]),n}X(Bo,`useDismissableLayerSurface`);var Vo=X(()=>!0,`IS_TRUE`);function Ho(e,t){let{ownerDocument:n=globalThis?.document,deferPointerDownOutside:r=!1,isDeferredPointerDownOutsideRef:i,dismissableSurfaces:a,shouldHandlePointerDownOutside:s=Vo}=t,c=Mo(e),l=o.useRef(!1),u=o.useRef(!1),d=o.useRef(new Map),f=o.useRef(()=>{});return o.useEffect(()=>{function e(){u.current=!1,i.current=!1,d.current.clear()}X(e,`resetOutsideInteraction`);function t(){return Array.from(d.current.values()).some(Boolean)}X(t,`isOutsideInteractionIntercepted`);function o(e){if(!u.current)return;let t=e.target;t instanceof Node&&[...a].some(e=>e.contains(t))||d.current.set(e.type,!0),e.type===`click`&&window.setTimeout(()=>{u.current&&f.current()},0)}X(o,`handleInteractionCapture`);function p(e){u.current&&d.current.set(e.type,!1)}X(p,`handleInteractionBubble`);let m=X(a=>{if(a.target&&!l.current){let o=function(){n.removeEventListener(`click`,f.current);let r=t();e(),r||Go(Fo,c,p,{discrete:!0})};if(X(o,`handleAndDispatchPointerDownOutsideEvent`),!s(a.target)){n.removeEventListener(`click`,f.current),e(),l.current=!1;return}let p={originalEvent:a};u.current=!0,i.current=r&&a.button===0,d.current.clear(),!r||a.button!==0?o():(n.removeEventListener(`click`,f.current),f.current=o,n.addEventListener(`click`,f.current,{once:!0}))}else n.removeEventListener(`click`,f.current),e();l.current=!1},`handlePointerDown`),h=[`pointerup`,`mousedown`,`mouseup`,`touchstart`,`touchend`,`click`];for(let e of h)n.addEventListener(e,o,!0),n.addEventListener(e,p);let g=window.setTimeout(()=>{n.addEventListener(`pointerdown`,m)},0);return()=>{window.clearTimeout(g),n.removeEventListener(`pointerdown`,m),n.removeEventListener(`click`,f.current);for(let e of h)n.removeEventListener(e,o,!0),n.removeEventListener(e,p)}},[n,c,r,i,a,s]),{onPointerDownCapture:X(()=>l.current=!0,`onPointerDownCapture`)}}X(Ho,`usePointerDownOutside`);function Uo(e,t=globalThis?.document){let n=Mo(e),r=o.useRef(!1);return o.useEffect(()=>{let e=X(e=>{e.target&&!r.current&&Go(Io,n,{originalEvent:e},{discrete:!1})},`handleFocus`);return t.addEventListener(`focusin`,e),()=>t.removeEventListener(`focusin`,e)},[t,n]),{onFocusCapture:X(()=>r.current=!0,`onFocusCapture`),onBlurCapture:X(()=>r.current=!1,`onBlurCapture`)}}X(Uo,`useFocusOutside`);function Wo(){let e=new CustomEvent(Po);document.dispatchEvent(e)}X(Wo,`dispatchUpdate`);function Go(e,t,n,{discrete:r}){let i=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?Sa(i,a):i.dispatchEvent(a)}X(Go,`handleAndDispatchCustomEvent`);var Ko=Object.defineProperty,Z=(e,t)=>Ko(e,`name`,{value:t,configurable:!0}),qo=`focusScope.autoFocusOnMount`,Jo=`focusScope.autoFocusOnUnmount`,Yo={bubbles:!1,cancelable:!0},Xo=o.forwardRef(Z(function(e,t){let{loop:n=!1,trapped:r=!1,branches:i,onMountAutoFocus:a,onUnmountAutoFocus:c,...l}=e,[u,d]=o.useState(null),f=Mo(a),p=Mo(c),m=o.useRef(null),h=ea(t,d),g=o.useRef(i);o.useEffect(()=>{g.current=i});let _=o.useCallback(e=>e?u?.contains(e)?!0:!!g.current?.some(t=>t.contains(e)):!1,[u]),v=o.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;o.useEffect(()=>{if(r){let e=function(e){if(v.paused||!u)return;let t=e.target;_(t)?m.current=t:ss(m.current,{select:!0})},t=function(e){if(v.paused||!u)return;let t=e.relatedTarget;t!==null&&(_(t)||ss(m.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&ss(u)};Z(e,`handleFocusIn`),Z(t,`handleFocusOut`),Z(n,`handleMutations`),document.addEventListener(`focusin`,e),document.addEventListener(`focusout`,t);let r=new MutationObserver(n);return u&&r.observe(u,{childList:!0,subtree:!0}),()=>{document.removeEventListener(`focusin`,e),document.removeEventListener(`focusout`,t),r.disconnect()}}},[r,u,v.paused,_]),o.useEffect(()=>{if(u){cs.add(v);let e=document.activeElement;if(!u.contains(e)){let t=new CustomEvent(qo,Yo);u.addEventListener(qo,f),u.dispatchEvent(t),t.defaultPrevented||(ts(ds(rs(u)),{select:!0}),document.activeElement===e&&ss(u))}return()=>{u.removeEventListener(qo,f);let t=u.ownerDocument,n=CustomEvent;setTimeout(()=>{let r=new n(Jo,Yo);u.addEventListener(Jo,p),u.dispatchEvent(r),r.defaultPrevented||ss(e??t.body,{select:!0}),u.removeEventListener(Jo,p),cs.remove(v)},0)}}},[u,f,p,v]);let y=o.useCallback(e=>{if(!n&&!r||v.paused)return;let t=e.key===`Tab`&&!e.altKey&&!e.ctrlKey&&!e.metaKey,i=document.activeElement;if(t&&i){let t=e.currentTarget,[r,a]=ns(t);r&&a?!e.shiftKey&&i===a?(e.preventDefault(),n&&ss(r,{select:!0})):e.shiftKey&&i===r&&(e.preventDefault(),n&&ss(a,{select:!0})):i===t&&e.preventDefault()}},[n,r,v.paused]);return(0,s.jsx)(xa.div,{tabIndex:-1,...l,ref:h,onKeyDown:y})},`FocusScope`)),Zo=o.createContext(null);function Qo({registry:e,children:t}){return e?(0,s.jsx)(Zo.Provider,{value:e,children:t}):t}Z(Qo,`FocusScopeBranchProvider`);function $o(){let[e,t]=o.useState([]);return{nodes:e,registry:o.useMemo(()=>({add:Z(e=>t(t=>t.includes(e)?t:[...t,e]),`add`),remove:Z(e=>t(t=>t.filter(t=>t!==e)),`remove`)}),[])}}Z($o,`useFocusScopeBranchRegistry`);function es(e){let t=o.useContext(Zo);o.useEffect(()=>{if(e&&t)return t.add(e),()=>t.remove(e)},[e,t])}Z(es,`useFocusScopeBranch`);function ts(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(ss(r,{select:t}),document.activeElement!==n)return}Z(ts,`focusFirst`);function ns(e){let t=rs(e);return[is(t,e),is(t.reverse(),e)]}Z(ns,`getTabbableEdges`);function rs(e){let t=[],n=e.ownerDocument.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:Z(e=>{let t=e.tagName===`INPUT`&&e.type===`hidden`;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP},`acceptNode`)});for(;n.nextNode();)t.push(n.currentNode);return t}Z(rs,`getTabbableCandidates`);function is(e,t){let n=typeof t.checkVisibility==`function`&&t.checkVisibility({checkVisibilityCSS:!0});for(let r of e)if(!(n?!r.checkVisibility({checkVisibilityCSS:!0}):as(r,{upTo:t})))return r}Z(is,`findVisible`);function as(e,{upTo:t}){if(getComputedStyle(e).visibility===`hidden`)return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display===`none`)return!0;e=e.parentElement}return!1}Z(as,`isHidden`);function os(e){return e.tagName===`INPUT`&&typeof e.select==`function`}Z(os,`isSelectableInput`);function ss(e,{select:t=!1}={}){if(e&&e.focus){let n=(e.ownerDocument??document).activeElement;e.focus({preventScroll:!0}),e!==n&&os(e)&&t&&e.select()}}Z(ss,`focus`);var cs=ls();function ls(){let e=[];return{add(t){let n=e[0];t!==n&&n?.pause(),e=us(e,t),e.unshift(t)},remove(t){e=us(e,t),e[0]?.resume()}}}Z(ls,`createFocusScopesStack`);function us(e,t){let n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}Z(us,`arrayRemove`);function ds(e){return e.filter(e=>e.tagName!==`A`)}Z(ds,`removeLinks`);var fs=Object.defineProperty,ps=o.forwardRef(((e,t)=>fs(e,`name`,{value:t,configurable:!0}))(function(e,t){let{container:n,...r}=e,[i,a]=o.useState(!1);Oa(()=>a(!0),[]);let c=n||i&&globalThis?.document?.body;return c?yr.createPortal((0,s.jsx)(xa.div,{...r,ref:t}),c):null},`Portal`)),ms=Object.defineProperty,hs=(e,t)=>ms(e,`name`,{value:t,configurable:!0}),gs=0,_s=null;function vs(e){return ys(),e.children}hs(vs,`FocusGuards`);function ys(){o.useEffect(()=>{_s||={start:bs(),end:bs()};let{start:e,end:t}=_s;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement(`afterbegin`,e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement(`beforeend`,t),gs++,()=>{gs===1&&(_s?.start.remove(),_s?.end.remove(),_s=null),gs=Math.max(0,gs-1)}},[])}hs(ys,`useFocusGuards`);function bs(){let e=document.createElement(`span`);return e.setAttribute(`data-radix-focus-guard`,``),e.tabIndex=0,e.style.outline=`none`,e.style.opacity=`0`,e.style.position=`fixed`,e.style.pointerEvents=`none`,e}hs(bs,`createFocusGuard`);var xs=function(){return xs=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},xs.apply(this,arguments)};function Ss(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function Cs(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}var ws=`right-scroll-bar-position`,Ts=`width-before-scroll-bar`,Es=`with-scroll-bars-hidden`,Ds=`--removed-body-scroll-bar-size`;function Os(e,t){return typeof e==`function`?e(t):e&&(e.current=t),e}function ks(e,t){var n=(0,o.useState)(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(e){var t=n.value;t!==e&&(n.value=e,n.callback(e,t))}}}})[0];return n.callback=t,n.facade}var As=typeof window<`u`?o.useLayoutEffect:o.useEffect,js=new WeakMap;function Ms(e,t){var n=ks(t||null,function(t){return e.forEach(function(e){return Os(e,t)})});return As(function(){var t=js.get(n);if(t){var r=new Set(t),i=new Set(e),a=n.current;r.forEach(function(e){i.has(e)||Os(e,null)}),i.forEach(function(e){r.has(e)||Os(e,a)})}js.set(n,e)},[e]),n}function Ns(e){return e}function Ps(e,t){t===void 0&&(t=Ns);var n=[],r=!1;return{read:function(){if(r)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var i=t(e,r);return n.push(i),function(){n=n.filter(function(e){return e!==i})}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var i=n;n=[],i.forEach(e),t=n}var a=function(){var n=t;t=[],n.forEach(e)},o=function(){return Promise.resolve().then(a)};o(),n={push:function(e){t.push(e),o()},filter:function(e){return t=t.filter(e),n}}}}}function Fs(e){e===void 0&&(e={});var t=Ps(null);return t.options=xs({async:!0,ssr:!1},e),t}var Is=function(e){var t=e.sideCar,n=Ss(e,[`sideCar`]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw Error(`Sidecar medium not found`);return o.createElement(r,xs({},n))};Is.isSideCarExport=!0;function Ls(e,t){return e.useMedium(t),Is}var Rs=Fs(),zs=function(){},Bs=o.forwardRef(function(e,t){var n=o.useRef(null),r=o.useState({onScrollCapture:zs,onWheelCapture:zs,onTouchMoveCapture:zs}),i=r[0],a=r[1],s=e.forwardProps,c=e.children,l=e.className,u=e.removeScrollBar,d=e.enabled,f=e.shards,p=e.sideCar,m=e.noRelative,h=e.noIsolation,g=e.inert,_=e.allowPinchZoom,v=e.as,y=v===void 0?`div`:v,b=e.gapMode,x=Ss(e,[`forwardProps`,`children`,`className`,`removeScrollBar`,`enabled`,`shards`,`sideCar`,`noRelative`,`noIsolation`,`inert`,`allowPinchZoom`,`as`,`gapMode`]),S=p,C=Ms([n,t]),w=xs(xs({},x),i);return o.createElement(o.Fragment,null,d&&o.createElement(S,{sideCar:Rs,removeScrollBar:u,shards:f,noRelative:m,noIsolation:h,inert:g,setCallbacks:a,allowPinchZoom:!!_,lockRef:n,gapMode:b}),s?o.cloneElement(o.Children.only(c),xs(xs({},w),{ref:C})):o.createElement(y,xs({},w,{className:l,ref:C}),c))});Bs.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Bs.classNames={fullWidth:Ts,zeroRight:ws};var Vs=function(){if(typeof __webpack_nonce__<`u`)return __webpack_nonce__};function Hs(){if(!document)return null;var e=document.createElement(`style`);e.type=`text/css`;var t=Vs();return t&&e.setAttribute(`nonce`,t),e}function Us(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Ws(e){(document.head||document.getElementsByTagName(`head`)[0]).appendChild(e)}var Gs=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Hs())&&(Us(t,n),Ws(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Ks=function(){var e=Gs();return function(t,n){o.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},qs=function(){var e=Ks();return function(t){var n=t.styles,r=t.dynamic;return e(n,r),null}},Js={left:0,top:0,right:0,gap:0},Ys=function(e){return parseInt(e||``,10)||0},Xs=function(e){var t=window.getComputedStyle(document.body),n=t[e===`padding`?`paddingLeft`:`marginLeft`],r=t[e===`padding`?`paddingTop`:`marginTop`],i=t[e===`padding`?`paddingRight`:`marginRight`];return[Ys(n),Ys(r),Ys(i)]},Zs=function(e){if(e===void 0&&(e=`margin`),typeof window>`u`)return Js;var t=Xs(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},Qs=qs(),$s=`data-scroll-locked`,ec=function(e,t,n,r){var i=e.left,a=e.top,o=e.right,s=e.gap;return n===void 0&&(n=`margin`),`
|
|
3
|
+
.${Es} {
|
|
4
|
+
overflow: hidden ${r};
|
|
5
|
+
padding-right: ${s}px ${r};
|
|
6
|
+
}
|
|
7
|
+
body[${$s}] {
|
|
8
|
+
overflow: hidden ${r};
|
|
9
|
+
overscroll-behavior: contain;
|
|
10
|
+
${[t&&`position: relative ${r};`,n===`margin`&&`
|
|
11
|
+
padding-left: ${i}px;
|
|
12
|
+
padding-top: ${a}px;
|
|
13
|
+
padding-right: ${o}px;
|
|
14
|
+
margin-left:0;
|
|
15
|
+
margin-top:0;
|
|
16
|
+
margin-right: ${s}px ${r};
|
|
17
|
+
`,n===`padding`&&`padding-right: ${s}px ${r};`].filter(Boolean).join(``)}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.${ws} {
|
|
21
|
+
right: ${s}px ${r};
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.${Ts} {
|
|
25
|
+
margin-right: ${s}px ${r};
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.${ws} .${ws} {
|
|
29
|
+
right: 0 ${r};
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.${Ts} .${Ts} {
|
|
33
|
+
margin-right: 0 ${r};
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
body[${$s}] {
|
|
37
|
+
${Ds}: ${s}px;
|
|
38
|
+
}
|
|
39
|
+
`},tc=function(){var e=parseInt(document.body.getAttribute(`data-scroll-locked`)||`0`,10);return isFinite(e)?e:0},nc=function(){o.useEffect(function(){return document.body.setAttribute($s,(tc()+1).toString()),function(){var e=tc()-1;e<=0?document.body.removeAttribute($s):document.body.setAttribute($s,e.toString())}},[])},rc=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?`margin`:r;nc();var a=o.useMemo(function(){return Zs(i)},[i]);return o.createElement(Qs,{styles:ec(a,!t,i,n?``:`!important`)})},ic=!1;if(typeof window<`u`)try{var ac=Object.defineProperty({},"passive",{get:function(){return ic=!0,!0}});window.addEventListener(`test`,ac,ac),window.removeEventListener(`test`,ac,ac)}catch{ic=!1}var oc=ic?{passive:!1}:!1,sc=function(e){return e.tagName===`TEXTAREA`},cc=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!==`hidden`&&!(n.overflowY===n.overflowX&&!sc(e)&&n[t]===`visible`)},lc=function(e){return cc(e,`overflowY`)},uc=function(e){return cc(e,`overflowX`)},dc=function(e,t){var n=t.ownerDocument,r=t;do{if(typeof ShadowRoot<`u`&&r instanceof ShadowRoot&&(r=r.host),mc(e,r)){var i=hc(e,r);if(i[1]>i[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},fc=function(e){return[e.scrollTop,e.scrollHeight,e.clientHeight]},pc=function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]},mc=function(e,t){return e===`v`?lc(t):uc(t)},hc=function(e,t){return e===`v`?fc(t):pc(t)},gc=function(e,t){return e===`h`&&t===`rtl`?-1:1},_c=function(e,t,n,r,i){var a=gc(e,window.getComputedStyle(t).direction),o=a*r,s=n.target,c=t.contains(s),l=!1,u=o>0,d=0,f=0;do{if(!s)break;var p=hc(e,s),m=p[0],h=p[1]-p[2]-a*m;(m||h)&&mc(e,s)&&(d+=h,f+=m);var g=s.parentNode;s=g&&g.nodeType===Node.DOCUMENT_FRAGMENT_NODE?g.host:g}while(!c&&s!==document.body||c&&(t.contains(s)||t===s));return(u&&(i&&Math.abs(d)<1||!i&&o>d)||!u&&(i&&Math.abs(f)<1||!i&&-o>f))&&(l=!0),l},vc=function(e){return`changedTouches`in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},yc=function(e){return[e.deltaX,e.deltaY]},bc=function(e){return e&&`current`in e?e.current:e},xc=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Sc=function(e){return`
|
|
40
|
+
.block-interactivity-${e} {pointer-events: none;}
|
|
41
|
+
.allow-interactivity-${e} {pointer-events: all;}
|
|
42
|
+
`},Cc=0,wc=[];function Tc(e){var t=o.useRef([]),n=o.useRef([0,0]),r=o.useRef(),i=o.useState(Cc++)[0],a=o.useState(qs)[0],s=o.useRef(e);o.useEffect(function(){s.current=e},[e]),o.useEffect(function(){if(e.inert){document.body.classList.add(`block-interactivity-${i}`);var t=Cs([e.lockRef.current],(e.shards||[]).map(bc),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add(`allow-interactivity-${i}`)}),function(){document.body.classList.remove(`block-interactivity-${i}`),t.forEach(function(e){return e.classList.remove(`allow-interactivity-${i}`)})}}},[e.inert,e.lockRef.current,e.shards]);var c=o.useCallback(function(e,t){if(`touches`in e&&e.touches.length===2||e.type===`wheel`&&e.ctrlKey)return!s.current.allowPinchZoom;var i=vc(e),a=n.current,o=`deltaX`in e?e.deltaX:a[0]-i[0],c=`deltaY`in e?e.deltaY:a[1]-i[1],l,u=e.target,d=Math.abs(o)>Math.abs(c)?`h`:`v`;if(`touches`in e&&d===`h`&&u.type===`range`)return!1;var f=window.getSelection(),p=f&&f.anchorNode;if(p&&(p===u||p.contains(u)))return!1;var m=dc(d,u);if(!m)return!0;if(m?l=d:(l=d===`v`?`h`:`v`,m=dc(d,u)),!m)return!1;if(!r.current&&`changedTouches`in e&&(o||c)&&(r.current=l),!l)return!0;var h=r.current||l;return _c(h,t,e,h===`h`?o:c,!0)},[]),l=o.useCallback(function(e){var n=e;if(wc.length&&wc[wc.length-1]===a){var r=`deltaY`in n?yc(n):vc(n),i=t.current.filter(function(e){return e.name===n.type&&(e.target===n.target||n.target===e.shadowParent)&&xc(e.delta,r)})[0];if(i&&i.should)n.cancelable&&n.preventDefault();else if(!i){var o=(s.current.shards||[]).map(bc).filter(Boolean).filter(function(e){return e.contains(n.target)});(o.length>0?c(n,o[0]):!s.current.noIsolation)&&n.cancelable&&n.preventDefault()}}},[]),u=o.useCallback(function(e,n,r,i){var a={name:e,delta:n,target:r,should:i,shadowParent:Ec(r)};t.current.push(a),setTimeout(function(){t.current=t.current.filter(function(e){return e!==a})},1)},[]),d=o.useCallback(function(e){n.current=vc(e),r.current=void 0},[]),f=o.useCallback(function(t){u(t.type,yc(t),t.target,c(t,e.lockRef.current))},[]),p=o.useCallback(function(t){u(t.type,vc(t),t.target,c(t,e.lockRef.current))},[]);o.useEffect(function(){return wc.push(a),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener(`wheel`,l,oc),document.addEventListener(`touchmove`,l,oc),document.addEventListener(`touchstart`,d,oc),function(){wc=wc.filter(function(e){return e!==a}),document.removeEventListener(`wheel`,l,oc),document.removeEventListener(`touchmove`,l,oc),document.removeEventListener(`touchstart`,d,oc)}},[]);var m=e.removeScrollBar,h=e.inert;return o.createElement(o.Fragment,null,h?o.createElement(a,{styles:Sc(i)}):null,m?o.createElement(rc,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Ec(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var Dc=Ls(Rs,Tc),Oc=o.forwardRef(function(e,t){return o.createElement(Bs,xs({},e,{ref:t,sideCar:Dc}))});Oc.classNames=Bs.classNames;var kc=function(e){return typeof document>`u`?null:(Array.isArray(e)?e[0]:e).ownerDocument.body},Ac=new WeakMap,jc=new WeakMap,Mc={},Nc=0,Pc=function(e){return e&&(e.host||Pc(e.parentNode))},Fc=function(e,t){return t.map(function(t){if(e.contains(t))return t;var n=Pc(t);return n&&e.contains(n)?n:(console.error(`aria-hidden`,t,`in not contained inside`,e,`. Doing nothing`),null)}).filter(function(e){return!!e})},Ic=function(e,t,n,r){var i=Fc(t,Array.isArray(e)?e:[e]);Mc[n]||(Mc[n]=new WeakMap);var a=Mc[n],o=[],s=new Set,c=new Set(i),l=function(e){e&&!s.has(e)&&(s.add(e),l(e.parentNode))};i.forEach(l);var u=function(e){e&&!c.has(e)&&Array.prototype.forEach.call(e.children,function(e){if(s.has(e))u(e);else try{var t=e.getAttribute(r),i=t!==null&&t!==`false`,c=(Ac.get(e)||0)+1,l=(a.get(e)||0)+1;Ac.set(e,c),a.set(e,l),o.push(e),c===1&&i&&jc.set(e,!0),l===1&&e.setAttribute(n,`true`),i||e.setAttribute(r,`true`)}catch(t){console.error(`aria-hidden: cannot operate on `,e,t)}})};return u(t),s.clear(),Nc++,function(){o.forEach(function(e){var t=Ac.get(e)-1,i=a.get(e)-1;Ac.set(e,t),a.set(e,i),t||(jc.has(e)||e.removeAttribute(r),jc.delete(e)),i||e.removeAttribute(n)}),Nc--,Nc||(Ac=new WeakMap,Ac=new WeakMap,jc=new WeakMap,Mc={})}},Lc=function(e,t,n){n===void 0&&(n=`data-aria-hidden`);var r=Array.from(Array.isArray(e)?e:[e]),i=t||kc(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll(`[aria-live], script`))),Ic(r,i,n,`aria-hidden`)):function(){return null}},Rc=Object.defineProperty,zc=(e,t)=>Rc(e,`name`,{value:t,configurable:!0});function Bc(e){let[t,n]=o.useState(void 0);return Oa(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=0,r=new ResizeObserver(r=>{if(!Array.isArray(r)||!r.length)return;let i=r[0];window.cancelAnimationFrame(t),t=window.requestAnimationFrame(()=>{let t,r;if(`borderBoxSize`in i){let e=i.borderBoxSize,n=Array.isArray(e)?e[0]:e;t=n.inlineSize,r=n.blockSize}else t=e.offsetWidth,r=e.offsetHeight;n({width:t,height:r})})});return r.observe(e,{box:`border-box`}),()=>{window.cancelAnimationFrame(t),r.unobserve(e)}}n(void 0)},[e]),t}zc(Bc,`useSize`);var Vc=[`top`,`right`,`bottom`,`left`],Hc=Math.min,Uc=Math.max,Wc=Math.round,Gc=Math.floor,Kc=e=>({x:e,y:e}),qc={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function Jc(e,t,n){return Uc(e,Hc(t,n))}function Yc(e,t){return typeof e==`function`?e(t):e}function Xc(e){return e.split(`-`)[0]}function Zc(e){return e.split(`-`)[1]}function Qc(e){return e===`x`?`y`:`x`}function $c(e){return e===`y`?`height`:`width`}function el(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function tl(e){return Qc(el(e))}function nl(e,t,n){n===void 0&&(n=!1);let r=Zc(e),i=tl(e),a=$c(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=dl(o)),[o,dl(o)]}function rl(e){let t=dl(e);return[il(e),t,il(t)]}function il(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var al=[`left`,`right`],ol=[`right`,`left`],sl=[`top`,`bottom`],cl=[`bottom`,`top`];function ll(e,t,n){switch(e){case`top`:case`bottom`:return n?t?ol:al:t?al:ol;case`left`:case`right`:return t?sl:cl;default:return[]}}function ul(e,t,n,r){let i=Zc(e),a=ll(Xc(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(il)))),a}function dl(e){let t=Xc(e);return qc[t]+e.slice(t.length)}function fl(e){return{top:e.top??0,right:e.right??0,bottom:e.bottom??0,left:e.left??0}}function pl(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:fl(e)}function ml(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function hl(e,t,n){let{reference:r,floating:i}=e,a=el(t),o=tl(t),s=$c(o),c=Xc(t),l=a===`y`,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2,p;switch(c){case`top`:p={x:u,y:r.y-i.height};break;case`bottom`:p={x:u,y:r.y+r.height};break;case`right`:p={x:r.x+r.width,y:d};break;case`left`:p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}let m=Zc(t);return m&&(p[o]+=f*(m===`end`?1:-1)*(n&&l?-1:1)),p}async function gl(e,t){t===void 0&&(t={});let{x:n,y:r,platform:i,rects:a,elements:o,strategy:s}=e,{boundary:c=`clippingAncestors`,rootBoundary:l=`viewport`,elementContext:u=`floating`,altBoundary:d=!1,padding:f=0}=Yc(t,e),p=pl(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=ml(await i.getClippingRect({element:await(i.isElement==null?void 0:i.isElement(m))??!0?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:c,rootBoundary:l,strategy:s})),g=u===`floating`?{x:n,y:r,width:a.floating.width,height:a.floating.height}:a.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),v=await(i.isElement==null?void 0:i.isElement(_))&&await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1},y=ml(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:g,offsetParent:_,strategy:s}):g);return{top:(h.top-y.top+p.top)/v.y,bottom:(y.bottom-h.bottom+p.bottom)/v.y,left:(h.left-y.left+p.left)/v.x,right:(y.right-h.right+p.right)/v.x}}var _l=50,vl=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:gl},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=hl(l,r,c),f=r,p=0,m={};for(let n=0;n<a.length;n++){let h=a[n];if(!h)continue;let{name:g,fn:_}=h,{x:v,y,data:b,reset:x}=await _({x:u,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:m,rects:l,platform:s,elements:{reference:e,floating:t}});u=v??u,d=y??d,m[g]={...m[g],...b},x&&p<_l&&(p++,typeof x==`object`&&(x.placement&&(f=x.placement),x.rects&&(l=x.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):x.rects),{x:u,y:d}=hl(l,f,c)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:m}},yl=e=>({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:u=0}=Yc(e,t)||{};if(l==null)return{};let d=pl(u),f={x:n,y:r},p=tl(i),m=$c(p),h=await o.getDimensions(l),g=p===`y`,_=g?`top`:`left`,v=g?`bottom`:`right`,y=g?`clientHeight`:`clientWidth`,b=a.reference[m]+a.reference[p]-f[p]-a.floating[m],x=f[p]-a.reference[p],S=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l)),C=S?S[y]:0;(!C||!await(o.isElement==null?void 0:o.isElement(S)))&&(C=s.floating[y]||a.floating[m]);let w=b/2-x/2,T=C/2-h[m]/2-1,E=Hc(d[_],T),D=Hc(d[v],T),O=C-h[m]-D,k=C/2-h[m]/2+w,A=Jc(E,k,O),j=!c.arrow&&Zc(i)!=null&&k!==A&&a.reference[m]/2-(k<E?E:D)-h[m]/2<0,M=j?k<E?k-E:k-O:0;return{[p]:f[p]+M,data:{[p]:A,centerOffset:k-A-M,...j&&{alignmentOffset:M}},reset:j}}}),bl=function(e){return e===void 0&&(e={}),{name:`flip`,options:e,async fn(t){var n;let{placement:r,middlewareData:i,rects:a,initialPlacement:o,platform:s,elements:c}=t,{mainAxis:l=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:f=`bestFit`,fallbackAxisSideDirection:p=`none`,flipAlignment:m=!0,...h}=Yc(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};let g=Xc(r),_=el(o),v=Xc(o)===o,y=await(s.isRTL==null?void 0:s.isRTL(c.floating)),b=d||(v||!m?[dl(o)]:rl(o)),x=p!==`none`;!d&&x&&b.push(...ul(o,m,p,y));let S=[o,...b],C=await s.detectOverflow(t,h),w=[],T=i.flip?.overflows||[];if(l&&w.push(C[g]),u){let e=nl(r,a,y);w.push(C[e[0]],C[e[1]])}if(T=[...T,{placement:r,overflows:w}],!w.every(e=>e<=0)){let e=(i.flip?.index||0)+1,t=S[e];if(t&&(u!==`alignment`||_===el(t)||T.every(e=>el(e.placement)!==_||e.overflows[0]>0)))return{data:{index:e,overflows:T},reset:{placement:t}};let n=T.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0]?.placement;if(!n)switch(f){case`bestFit`:{let e=T.filter(e=>{if(x){let t=el(e.placement);return t===_||t===`y`}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0]?.[0];e&&(n=e);break}case`initialPlacement`:n=o}if(r!==n)return{reset:{placement:n}}}return{}}}};function xl(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Sl(e){return Vc.some(t=>e[t]>=0)}var Cl=function(e){return e===void 0&&(e={}),{name:`hide`,options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:i=`referenceHidden`,...a}=Yc(e,t);switch(i){case`referenceHidden`:{let e=xl(await r.detectOverflow(t,{...a,elementContext:`reference`}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:Sl(e)}}}case`escaped`:{let e=xl(await r.detectOverflow(t,{...a,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:Sl(e)}}}default:return{}}}}},wl=new Set([`left`,`top`]);async function Tl(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=Xc(n),s=Zc(n),c=el(n)===`y`,l=wl.has(o)?-1:1,u=a&&c?-1:1,d=Yc(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d==`number`?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof m==`number`&&(p=s===`end`?m*-1:m),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}var El=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n;let{x:r,y:i,placement:a,middlewareData:o}=t,s=await Tl(t,e);return a===o.offset?.placement&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},Dl=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i,platform:a}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=Yc(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=el(i),p=Qc(f),m=u[p],h=u[f],g=(e,t)=>Jc(t+d[e===`y`?`top`:`left`],t,t-d[e===`y`?`bottom`:`right`]);o&&(m=g(p,m)),s&&(h=g(f,h));let _=c.fn({...t,[p]:m,[f]:h});return{..._,data:{x:_.x-n,y:_.y-r,enabled:{[p]:o,[f]:s}}}}}},Ol=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:a,middlewareData:o}=t,{offset:s=0,mainAxis:c=!0,crossAxis:l=!0}=Yc(e,t),u={x:n,y:r},d=el(i),f=Qc(d),p=u[f],m=u[d],h=Yc(s,t),g=typeof h==`number`?{mainAxis:h,crossAxis:0}:{mainAxis:h.mainAxis??0,crossAxis:h.crossAxis??0};if(c){let e=f===`y`?`height`:`width`,t=a.reference[f]-a.floating[e]+g.mainAxis,n=a.reference[f]+a.reference[e]-g.mainAxis;p<t?p=t:p>n&&(p=n)}if(l){let e=f===`y`?`width`:`height`,t=wl.has(Xc(i)),n=a.reference[d]-a.floating[e]+(t&&o.offset?.[d]||0)+(t?0:g.crossAxis),r=a.reference[d]+a.reference[e]+(t?0:o.offset?.[d]||0)-(t?g.crossAxis:0);m<n?m=n:m>r&&(m=r)}return{[f]:p,[d]:m}}}},kl=function(e){return e===void 0&&(e={}),{name:`size`,options:e,async fn(t){let{placement:n,rects:r,platform:i,elements:a}=t,{apply:o=()=>{},...s}=Yc(e,t),c=await i.detectOverflow(t,s),l=Xc(n),u=Zc(n),d=el(n)===`y`,{width:f,height:p}=r.floating,m,h;l===`top`||l===`bottom`?(m=l,h=u===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?`start`:`end`)?`left`:`right`):(h=l,m=u===`end`?`top`:`bottom`);let g=p-c.top-c.bottom,_=f-c.left-c.right,v=Hc(p-c[m],g),y=Hc(f-c[h],_),b=t.middlewareData.shift,x=!b,S=v,C=y;b!=null&&b.enabled.x&&(C=_),b!=null&&b.enabled.y&&(S=g),x&&!u&&(d?C=f-2*Uc(c.left,c.right):S=p-2*Uc(c.top,c.bottom)),await o({...t,availableWidth:C,availableHeight:S});let w=await i.getDimensions(a.floating);return f!==w.width||p!==w.height?{reset:{rects:!0}}:{}}}};function Al(){return typeof window<`u`}function jl(e){return Pl(e)?(e.nodeName||``).toLowerCase():`#document`}function Ml(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Nl(e){return((Pl(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function Pl(e){return Al()?e instanceof Node||e instanceof Ml(e).Node:!1}function Fl(e){return Al()?e instanceof Element||e instanceof Ml(e).Element:!1}function Il(e){return Al()?e instanceof HTMLElement||e instanceof Ml(e).HTMLElement:!1}function Ll(e){return!Al()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof Ml(e).ShadowRoot}function Rl(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=Yl(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function zl(e){return/^(table|td|th)$/.test(jl(e))}function Bl(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var Vl=/transform|translate|scale|rotate|perspective|filter/,Hl=/paint|layout|strict|content/,Ul=e=>!!e&&e!==`none`,Wl;function Gl(e){let t=Fl(e)?Yl(e):e;return Ul(t.transform)||Ul(t.translate)||Ul(t.scale)||Ul(t.rotate)||Ul(t.perspective)||!ql()&&(Ul(t.backdropFilter)||Ul(t.filter))||Vl.test(t.willChange||``)||Hl.test(t.contain||``)}function Kl(e){let t=Zl(e);for(;Il(t)&&!Jl(t);){if(Gl(t))return t;if(Bl(t))return null;t=Zl(t)}return null}function ql(){return Wl??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),Wl}function Jl(e){return/^(html|body|#document)$/.test(jl(e))}function Yl(e){return Ml(e).getComputedStyle(e)}function Xl(e){return Fl(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Zl(e){if(jl(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||Ll(e)&&e.host||Nl(e);return Ll(t)?t.host:t}function Ql(e){let t=Zl(e);return Jl(t)?(e.ownerDocument||e).body:Il(t)&&Rl(t)?t:Ql(t)}function $l(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=Ql(e),i=r===e.ownerDocument?.body,a=Ml(r);if(i){let e=eu(a);return t.concat(a,a.visualViewport||[],Rl(r)?r:[],e&&n?$l(e):[])}return t.concat(r,$l(r,[],n))}function eu(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function tu(e){let t=Yl(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=Il(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=Wc(n)!==a||Wc(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function nu(e){return Fl(e)?e:e.contextElement}function ru(e){let t=nu(e);if(!Il(t))return Kc(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=tu(t),o=(a?Wc(n.width):n.width)/r,s=(a?Wc(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}var iu=Kc(0);function au(e){let t=Ml(e);return!ql()||!t.visualViewport?iu:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function ou(e,t,n){return t===void 0&&(t=!1),!!n&&t&&n===Ml(e)}function su(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=nu(e),o=Kc(1);t&&(r?Fl(r)&&(o=ru(r)):o=ru(e));let s=ou(a,n,r)?au(a):Kc(0),c=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a&&r){let e=Ml(a),t=Fl(r)?Ml(r):r,n=e,i=eu(n);for(;i&&t!==n;){let e=ru(i),t=i.getBoundingClientRect(),r=Yl(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=a,l+=o,n=Ml(i),i=eu(n)}}return ml({width:u,height:d,x:c,y:l})}function cu(e,t){let n=Xl(e).scrollLeft;return t?t.left+n:su(Nl(e)).left+n}function lu(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-cu(e,n),y:n.top+t.scrollTop}}function uu(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=Nl(r),s=t?Bl(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=Kc(1),u=Kc(0),d=Il(r);if((d||!a)&&((jl(r)!==`body`||Rl(o))&&(c=Xl(r)),d)){let e=su(r);l=ru(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?lu(o,c):Kc(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}}function du(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function fu(e){let t=Xl(e),n=e.ownerDocument.body,r=Uc(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),i=Uc(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight),a=-t.scrollLeft+cu(e),o=-t.scrollTop;return Yl(n).direction===`rtl`&&(a+=Uc(e.clientWidth,n.clientWidth)-r),{width:r,height:i,x:a,y:o}}var pu=25;function mu(e,t,n){n===void 0&&(n=`viewport`);let r=n===`layoutViewport`,i=Ml(e),a=Nl(e),o=i.visualViewport,s=a.clientWidth,c=a.clientHeight,l=0,u=0;if(o){let e=!ql()||t===`fixed`;r?e||(l=-o.offsetLeft,u=-o.offsetTop):(s=o.width,c=o.height,e&&(l=o.offsetLeft,u=o.offsetTop))}if(cu(a)<=0){let e=a.ownerDocument,t=e.body,n=getComputedStyle(t),r=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,i=Math.abs(a.clientWidth-t.clientWidth-r),o=getComputedStyle(a).scrollbarGutter===`stable both-edges`?i/2:i;o<=pu&&(s-=o)}return{width:s,height:c,x:l,y:u}}function hu(e,t){let n=su(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=ru(e);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function gu(e,t,n){let r;if(t===`viewport`||t===`layoutViewport`)r=mu(e,n,t);else if(t===`document`)r=fu(Nl(e));else if(Fl(t))r=hu(t,n);else{let n=au(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return ml(r)}function _u(e,t){let n=t.get(e);if(n)return n;let r=$l(e,[],!1).filter(e=>Fl(e)&&jl(e)!==`body`),i=null,a=Yl(e).position===`fixed`,o=a?Zl(e):e;for(;Fl(o)&&!Jl(o);){let e=Yl(o),t=Gl(o),n=i?i.position:a?`fixed`:``;!t&&(n===`fixed`||n===`absolute`&&e.position===`static`)?r=r.filter(e=>e!==o):i=e,o=Zl(o)}return t.set(e,r),r}function vu(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?Bl(t)?[]:_u(t,this._c):[].concat(n),r],o=gu(t,a[0],i),s=o.top,c=o.right,l=o.bottom,u=o.left;for(let e=1;e<a.length;e++){let n=gu(t,a[e],i);s=Uc(n.top,s),c=Hc(n.right,c),l=Hc(n.bottom,l),u=Uc(n.left,u)}return{width:c-u,height:l-s,x:u,y:s}}function yu(e){let{width:t,height:n}=tu(e);return{width:t,height:n}}function bu(e,t,n){let r=Il(t),i=Nl(t),a=n===`fixed`,o=su(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=Kc(0);if((r||!a)&&((jl(t)!==`body`||Rl(i))&&(s=Xl(t)),r)){let e=su(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}!r&&i&&(c.x=cu(i));let l=i&&!r&&!a?lu(i,s):Kc(0);return{x:o.left+s.scrollLeft-c.x-l.x,y:o.top+s.scrollTop-c.y-l.y,width:o.width,height:o.height}}function xu(e){return Yl(e).position===`static`}function Su(e,t){if(!Il(e)||Yl(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return Nl(e)===n&&(n=n.ownerDocument.body),n}function Cu(e,t){let n=Ml(e);if(Bl(e))return n;if(!Il(e)){let t=Zl(e);for(;t&&!Jl(t);){if(Fl(t)&&!xu(t))return t;t=Zl(t)}return n}let r=Su(e,t);for(;r&&zl(r)&&xu(r);)r=Su(r,t);return r&&Jl(r)&&xu(r)&&!Gl(r)?n:r||Kl(e)||n}var wu=async function(e){let t=this.getOffsetParent||Cu,n=this.getDimensions,r=await n(e.floating);return{reference:bu(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Tu(e){return Yl(e).direction===`rtl`}var Eu={convertOffsetParentRelativeRectToViewportRelativeRect:uu,getDocumentElement:Nl,getClippingRect:vu,getOffsetParent:Cu,getElementRects:wu,getClientRects:du,getDimensions:yu,getScale:ru,isElement:Fl,isRTL:Tu};function Du(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Ou(e,t,n){let r=null,i,a=Nl(e);function o(){var e;clearTimeout(i),(e=r)==null||e.disconnect(),r=null}function s(n,c){n===void 0&&(n=!1),c===void 0&&(c=1),o();let l=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=l;if(n||t(),!f||!p)return;let m=Gc(d),h=Gc(a.clientWidth-(u+f)),g=Gc(a.clientHeight-(d+p)),_=Gc(u),v={rootMargin:-m+`px `+-h+`px `+-g+`px `+-_+`px`,threshold:Uc(0,Hc(1,c))||1},y=!0;function b(t){let n=t[0].intersectionRatio;if(!Du(l,e.getBoundingClientRect()))return s();if(n!==c){if(!y)return s();n?s(!1,n):i=setTimeout(()=>{s(!1,1e-7)},1e3)}y=!1}try{r=new IntersectionObserver(b,{...v,root:a.ownerDocument})}catch{r=new IntersectionObserver(b,v)}r.observe(e)}let c=Ml(e),l=()=>s(n);return c.addEventListener(`resize`,l),s(!0),()=>{c.removeEventListener(`resize`,l),o()}}function ku(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver==`function`,layoutShift:s=typeof IntersectionObserver==`function`,animationFrame:c=!1}=r,l=nu(e),u=i||a?[...l?$l(l):[],...t?$l(t):[]]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n),a&&e.addEventListener(`resize`,n)});let d=l&&s?Ou(l,n,a):null,f=-1,p=null;o&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&p&&t&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;(e=p)==null||e.observe(t)})),n()}),l&&!c&&p.observe(l),t&&p.observe(t));let m,h=c?su(e):null;c&&g();function g(){let t=su(e);h&&!Du(h,t)&&n(),h=t,m=requestAnimationFrame(g)}return n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener(`scroll`,n),a&&e.removeEventListener(`resize`,n)}),d?.(),(e=p)==null||e.disconnect(),p=null,c&&cancelAnimationFrame(m)}}var Au=El,ju=Dl,Mu=bl,Nu=kl,Pu=Cl,Fu=yl,Iu=Ol,Lu=(e,t,n)=>{let r=new Map,i=n??{},a={...Eu,...i.platform,_c:r};return vl(e,t,{...i,platform:a})},Ru=typeof document<`u`?o.useLayoutEffect:function(){};function zu(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e==`function`&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e==`object`){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!zu(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){let n=i[r];if(!(n===`_owner`&&e.$$typeof)&&!zu(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function Bu(e){return typeof window>`u`?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Vu(e,t){let n=Bu(e);return Math.round(t*n)/n}function Hu(e){let t=o.useRef(e);return Ru(()=>{t.current=e}),t}function Uu(e){e===void 0&&(e={});let{placement:t=`bottom`,strategy:n=`absolute`,middleware:r=[],platform:i,elements:{reference:a,floating:s}={},transform:c=!0,whileElementsMounted:l,open:u}=e,[d,f]=o.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,m]=o.useState(r);zu(p,r)||m(r);let[h,g]=o.useState(null),[_,v]=o.useState(null),y=o.useCallback(e=>{e!==C.current&&(C.current=e,g(e))},[]),b=o.useCallback(e=>{e!==w.current&&(w.current=e,v(e))},[]),x=a||h,S=s||_,C=o.useRef(null),w=o.useRef(null),T=o.useRef(d),E=l!=null,D=Hu(l),O=Hu(i),k=Hu(u),A=o.useCallback(()=>{if(!C.current||!w.current)return;let e={placement:t,strategy:n,middleware:p};O.current&&(e.platform=O.current),Lu(C.current,w.current,e).then(e=>{let t={...e,isPositioned:k.current!==!1};j.current&&!zu(T.current,t)&&(T.current=t,yr.flushSync(()=>{f(t)}))})},[p,t,n,O,k]);Ru(()=>{u===!1&&T.current.isPositioned&&(T.current.isPositioned=!1,f(e=>({...e,isPositioned:!1})))},[u]);let j=o.useRef(!1);Ru(()=>(j.current=!0,()=>{j.current=!1}),[]),Ru(()=>{if(x&&(C.current=x),S&&(w.current=S),x&&S){if(D.current)return D.current(x,S,A);A()}},[x,S,A,D,E]);let M=o.useMemo(()=>({reference:C,floating:w,setReference:y,setFloating:b}),[y,b]),N=o.useMemo(()=>({reference:x,floating:S}),[x,S]),P=o.useMemo(()=>{let e={position:n,left:0,top:0};if(!N.floating)return e;let t=Vu(N.floating,d.x),r=Vu(N.floating,d.y);return c?{...e,transform:`translate(`+t+`px, `+r+`px)`,...Bu(N.floating)>=1.5&&{willChange:`transform`}}:{position:n,left:t,top:r}},[n,c,N.floating,d.x,d.y]);return o.useMemo(()=>({...d,update:A,refs:M,elements:N,floatingStyles:P}),[d,A,M,N,P])}var Wu=e=>{function t(e){return{}.hasOwnProperty.call(e,`current`)}return{name:`arrow`,options:e,fn(n){let{element:r,padding:i}=typeof e==`function`?e(n):e;return r&&t(r)?r.current==null?{}:Fu({element:r.current,padding:i}).fn(n):r?Fu({element:r,padding:i}).fn(n):{}}}},Gu=(e,t)=>{let n=Au(e);return{name:n.name,fn:n.fn,options:[e,t]}},Ku=(e,t)=>{let n=ju(e);return{name:n.name,fn:n.fn,options:[e,t]}},qu=(e,t)=>({fn:Iu(e).fn,options:[e,t]}),Ju=(e,t)=>{let n=Mu(e);return{name:n.name,fn:n.fn,options:[e,t]}},Yu=(e,t)=>{let n=Nu(e);return{name:n.name,fn:n.fn,options:[e,t]}},Xu=(e,t)=>{let n=Pu(e);return{name:n.name,fn:n.fn,options:[e,t]}},Zu=(e,t)=>{let n=Wu(e);return{name:n.name,fn:n.fn,options:[e,t]}},Qu=Object.defineProperty,$u=o.forwardRef(((e,t)=>Qu(e,`name`,{value:t,configurable:!0}))(function(e,t){let{children:n,width:r=10,height:i=5,...a}=e;return(0,s.jsx)(xa.svg,{...a,ref:t,width:r,height:i,viewBox:`0 0 30 10`,preserveAspectRatio:`none`,children:e.asChild?n:(0,s.jsx)(`polygon`,{points:`0,0 30,0 15,10`})})},`Arrow`)),ed=Object.defineProperty,td=(e,t)=>ed(e,`name`,{value:t,configurable:!0}),nd={Partial:`partial`,Always:`always`},rd={Optimized:`optimized`,Always:`always`},id=`Popper`,[ad,od]=Ea(id),[sd,cd]=ad(id),ld=td(e=>{let{__scopePopper:t,children:n}=e,[r,i]=o.useState(null),[a,c]=o.useState(void 0);return(0,s.jsx)(sd,{scope:t,anchor:r,onAnchorChange:i,placementState:a,setPlacementState:c,children:n})},`Popper`),ud=`PopperAnchor`,dd=o.forwardRef(td(function(e,t){let{__scopePopper:n,virtualRef:r,...i}=e,a=cd(ud,n),c=o.useRef(null),l=a.onAnchorChange,u=ea(t,o.useCallback(e=>{c.current=e,e&&l(e)},[l])),d=o.useRef(null);o.useEffect(()=>{if(!r)return;let e=d.current;d.current=r.current,e!==d.current&&l(d.current)});let f=a.placementState&&xd(a.placementState),p=f?.[0],m=f?.[1];return r?null:(0,s.jsx)(xa.div,{"data-radix-popper-side":p,"data-radix-popper-align":m,...i,ref:u})},`PopperAnchor`)),fd=`PopperContent`,[pd,md]=ad(fd),hd=o.forwardRef(td(function(e,t){let{__scopePopper:n,side:r=`bottom`,sideOffset:i=0,align:a=`center`,alignOffset:c=0,arrowPadding:l=0,avoidCollisions:u=!0,collisionBoundary:d=[],collisionPadding:f=0,sticky:p=nd.Partial,hideWhenDetached:m=!1,updatePositionStrategy:h=rd.Optimized,onPlaced:g,..._}=e,v=cd(fd,n),[y,b]=o.useState(null),x=ea(t,b),[S,C]=o.useState(null),w=Bc(S),T=w?.width??0,E=w?.height??0,D=r+(a===`center`?``:`-`+a),O=typeof f==`number`?f:{top:0,right:0,bottom:0,left:0,...f},k=Array.isArray(d)?d:[d],A=k.length>0,j={padding:O,boundary:k.filter(yd),altBoundary:A},{refs:M,floatingStyles:N,placement:P,isPositioned:F,middlewareData:I}=Uu({strategy:`fixed`,placement:D,whileElementsMounted:td((...e)=>ku(...e,{animationFrame:h===rd.Always}),`whileElementsMounted`),elements:{reference:v.anchor},middleware:[Gu({mainAxis:i+E,alignmentAxis:c}),u&&Ku({mainAxis:!0,crossAxis:!1,...p===nd.Partial?{limiter:qu()}:{},...j}),u&&Ju({...j}),Yu({...j,apply:td(({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{let{width:i,height:a}=t.reference,o=e.floating.style;o.setProperty(`--radix-popper-available-width`,`${n}px`),o.setProperty(`--radix-popper-available-height`,`${r}px`),o.setProperty(`--radix-popper-anchor-width`,`${i}px`),o.setProperty(`--radix-popper-anchor-height`,`${a}px`)},`apply`)}),S&&Zu({element:S,padding:l}),bd({arrowWidth:T,arrowHeight:E}),m&&Xu(A?{strategy:`referenceHidden`,...j}:{strategy:`referenceHidden`,padding:j.padding,altBoundary:j.altBoundary})]}),L=v.setPlacementState;Oa(()=>(L(P),()=>{L(void 0)}),[P,L]);let[R,ee]=xd(P),te=Mo(g);Oa(()=>{F&&te?.()},[F,te]);let z=I.arrow?.x,B=I.arrow?.y,ne=I.arrow?.centerOffset!==0,[re,V]=o.useState();return Oa(()=>{y&&V(window.getComputedStyle(y).zIndex)},[y]),(0,s.jsx)(`div`,{ref:M.setFloating,"data-radix-popper-content-wrapper":``,style:{...N,transform:F?N.transform:`translate(0, -200%)`,minWidth:`max-content`,zIndex:re,"--radix-popper-transform-origin":[I.transformOrigin?.x,I.transformOrigin?.y].join(` `),...I.hide?.referenceHidden&&{visibility:`hidden`,pointerEvents:`none`}},dir:e.dir,children:(0,s.jsx)(pd,{scope:n,placedSide:R,placedAlign:ee,onArrowChange:C,arrowX:z,arrowY:B,shouldHideArrow:ne,children:(0,s.jsx)(xa.div,{"data-side":R,"data-align":ee,..._,ref:x,style:{..._.style,animation:F?_.style?.animation:`none`}})})})},`PopperContent`)),gd=`PopperArrow`,_d={top:`bottom`,right:`left`,bottom:`top`,left:`right`},vd=o.forwardRef(td(function(e,t){let{__scopePopper:n,...r}=e,i=md(gd,n),a=_d[i.placedSide];return(0,s.jsx)(`span`,{ref:i.onArrowChange,style:{position:`absolute`,left:i.arrowX,top:i.arrowY,[a]:0,transformOrigin:{top:``,right:`0 0`,bottom:`center 0`,left:`100% 0`}[i.placedSide],transform:{top:`translateY(100%)`,right:`translateY(50%) rotate(90deg) translateX(-50%)`,bottom:`rotate(180deg)`,left:`translateY(50%) rotate(-90deg) translateX(50%)`}[i.placedSide],visibility:i.shouldHideArrow?`hidden`:void 0},children:(0,s.jsx)($u,{...r,ref:t,style:{...r.style,display:`block`}})})},`PopperArrow`));function yd(e){return e!==null}td(yd,`isNotNull`);var bd=td(e=>({name:`transformOrigin`,options:e,fn(t){let{placement:n,rects:r,middlewareData:i}=t,a=i.arrow?.centerOffset!==0,o=a?0:e.arrowWidth,s=a?0:e.arrowHeight,[c,l]=xd(n),u={start:`0%`,center:`50%`,end:`100%`}[l],d=(i.arrow?.x??0)+o/2,f=(i.arrow?.y??0)+s/2,p=``,m=``;return c===`bottom`?(p=a?u:`${d}px`,m=`${-s}px`):c===`top`?(p=a?u:`${d}px`,m=`${r.floating.height+s}px`):c===`right`?(p=`${-s}px`,m=a?u:`${f}px`):c===`left`&&(p=`${r.floating.width+s}px`,m=a?u:`${f}px`),{data:{x:p,y:m}}}}),`transformOrigin`);function xd(e){let[t,n=`center`]=e.split(`-`);return[t,n]}td(xd,`getSideAndAlignFromPlacement`);var Sd=wr(`group/button inline-flex shrink-0 items-center justify-center rounded-lg border border-transparent bg-clip-padding text-sm font-medium whitespace-nowrap transition-all outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring active:not-aria-[haspopup]:translate-y-px disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,{variants:{variant:{default:`bg-primary text-primary-foreground hover:bg-primary/80`,outline:`border-border bg-background hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50`,secondary:`bg-secondary text-secondary-foreground hover:bg-[color-mix(in_oklch,var(--secondary),var(--foreground)_5%)] aria-expanded:bg-secondary aria-expanded:text-secondary-foreground`,ghost:`hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted/50`,destructive:`bg-destructive/10 text-destructive hover:bg-destructive/20 focus-visible:border-destructive/40 focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:hover:bg-destructive/30 dark:focus-visible:ring-destructive/40`,link:`text-primary underline-offset-4 hover:underline`},size:{default:`h-8 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2`,xs:`h-6 gap-1 rounded-[min(var(--radius-md),10px)] px-2 text-xs in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3`,sm:`h-7 gap-1 rounded-[min(var(--radius-md),12px)] px-2.5 text-[0.8rem] in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3.5`,lg:`h-9 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2`,icon:`size-8`,"icon-xs":`size-6 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-lg [&_svg:not([class*='size-'])]:size-3`,"icon-sm":`size-7 rounded-[min(var(--radius-md),12px)] in-data-[slot=button-group]:rounded-lg`,"icon-lg":`size-9`}},defaultVariants:{variant:`default`,size:`default`}});function Cd({className:e,variant:t=`default`,size:n=`default`,asChild:r=!1,...i}){let a=r?ia:`button`;return(0,s.jsx)(a,{"data-slot":`button`,"data-variant":t,"data-size":n,className:Yi(Sd({variant:t,size:n,className:e})),...i})}function wd(e){if(!e||typeof document>`u`)return;let t=document.head||document.getElementsByTagName(`head`)[0],n=document.createElement(`style`);n.type=`text/css`,t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}var Td=e=>{switch(e){case`success`:return Od;case`info`:return Ad;case`warning`:return kd;case`error`:return jd;default:return null}},Ed=Array(12).fill(0),Dd=({visible:e,className:t})=>o.createElement(`div`,{className:[`sonner-loading-wrapper`,t].filter(Boolean).join(` `),"data-visible":e},o.createElement(`div`,{className:`sonner-spinner`},Ed.map((e,t)=>o.createElement(`div`,{className:`sonner-loading-bar`,key:`spinner-bar-${t}`})))),Od=o.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`,fill:`currentColor`,height:`20`,width:`20`,"aria-hidden":`true`},o.createElement(`path`,{fillRule:`evenodd`,d:`M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z`,clipRule:`evenodd`})),kd=o.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,fill:`currentColor`,height:`20`,width:`20`,"aria-hidden":`true`},o.createElement(`path`,{fillRule:`evenodd`,d:`M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z`,clipRule:`evenodd`})),Ad=o.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`,fill:`currentColor`,height:`20`,width:`20`,"aria-hidden":`true`},o.createElement(`path`,{fillRule:`evenodd`,d:`M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z`,clipRule:`evenodd`})),jd=o.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`,fill:`currentColor`,height:`20`,width:`20`,"aria-hidden":`true`},o.createElement(`path`,{fillRule:`evenodd`,d:`M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z`,clipRule:`evenodd`})),Md=o.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`12`,height:`12`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`},o.createElement(`line`,{x1:`18`,y1:`6`,x2:`6`,y2:`18`}),o.createElement(`line`,{x1:`6`,y1:`6`,x2:`18`,y2:`18`})),Nd=()=>{let[e,t]=o.useState(document.hidden);return o.useEffect(()=>{let e=()=>{t(document.hidden)};return document.addEventListener(`visibilitychange`,e),()=>document.removeEventListener(`visibilitychange`,e)},[]),e},Pd=1,Fd=100,Id=e=>typeof e?.id==`number`||e?.id?.length>0?e.id:Pd++,Ld=new class{constructor(){this.subscribe=e=>(this.subscribers.push(e),this.getActiveToasts().forEach(t=>e(t)),()=>{let t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=e=>{this.subscribers.forEach(t=>t(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e],this.trimHistory()},this.trimHistory=()=>{let e=this.toasts.length-Fd;e<=0||(this.toasts=this.toasts.filter(t=>e>0&&this.dismissedToasts.has(t.id)?(this.dismissedToasts.delete(t.id),e--,!1):!0))},this.create=e=>{let{message:t,...n}=e,r=Id(e),i=this.pendingDismissals.get(r);i!==void 0&&(cancelAnimationFrame(i),this.pendingDismissals.delete(r),this.dismissedToasts.delete(r));let a=this.dismissedToasts.has(r),o=e.dismissible===void 0||e.dismissible;return a&&(this.dismissedToasts.delete(r),this.toasts=this.toasts.filter(e=>e.id!==r)),!a&&this.toasts.find(e=>e.id===r)?this.toasts=this.toasts.map(n=>n.id===r?(this.publish({...n,...e,id:r,title:t}),{...n,...e,id:r,dismissible:o,title:t}):n):this.addToast({title:t,...n,dismissible:o,id:r}),r},this.dismiss=e=>{if(e==null)return this.getActiveToasts().forEach(e=>{this.dismissedToasts.add(e.id),this.subscribers.forEach(t=>t({id:e.id,dismiss:!0}))}),e;this.dismissedToasts.add(e);let t=this.pendingDismissals.get(e);return t!==void 0&&cancelAnimationFrame(t),this.pendingDismissals.set(e,requestAnimationFrame(()=>{this.pendingDismissals.delete(e),this.subscribers.forEach(t=>t({id:e,dismiss:!0}))})),e},this.message=(e,t)=>this.create({...t,message:e,type:void 0}),this.error=(e,t)=>this.create({...t,message:e,type:`error`}),this.success=(e,t)=>this.create({...t,type:`success`,message:e}),this.info=(e,t)=>this.create({...t,type:`info`,message:e}),this.warning=(e,t)=>this.create({...t,type:`warning`,message:e}),this.loading=(e,t)=>this.create({...t,type:`loading`,message:e}),this.promise=(e,t)=>{if(!t)return;let n;t.loading!==void 0&&(n=this.create({...t,promise:e,type:`loading`,message:t.loading,description:typeof t.description==`function`?void 0:t.description}));let r=Promise.resolve(e instanceof Function?e():e),i=n!==void 0,a,s=r.then(async e=>{if(a=[`resolve`,e],o.isValidElement(e))i=!1,this.create({id:n,type:`default`,message:e});else if(zd(e)&&!e.ok){i=!1;let r=typeof t.error==`function`?await t.error(`HTTP error! status: ${e.status}`):t.error,a=typeof t.description==`function`?await t.description(`HTTP error! status: ${e.status}`):t.description,s=typeof r==`object`&&!o.isValidElement(r)?r:{message:r};this.create({id:n,type:`error`,description:a,...s})}else if(e instanceof Error){i=!1;let r=typeof t.error==`function`?await t.error(e):t.error,a=typeof t.description==`function`?await t.description(e):t.description,s=typeof r==`object`&&!o.isValidElement(r)?r:{message:r};this.create({id:n,type:`error`,description:a,...s})}else if(t.success!==void 0){i=!1;let r=typeof t.success==`function`?await t.success(e):t.success,a=typeof t.description==`function`?await t.description(e):t.description,s=typeof r==`object`&&!o.isValidElement(r)?r:{message:r};this.create({id:n,type:`success`,description:a,...s})}}).catch(async e=>{if(a=[`reject`,e],t.error!==void 0){i=!1;let r=typeof t.error==`function`?await t.error(e):t.error,a=typeof t.description==`function`?await t.description(e):t.description,s=typeof r==`object`&&!o.isValidElement(r)?r:{message:r};this.create({id:n,type:`error`,description:a,...s})}}).finally(()=>{i&&(this.dismiss(n),n=void 0),t.finally==null||t.finally.call(t)}),c=()=>new Promise((e,t)=>s.then(()=>a[0]===`reject`?t(a[1]):e(a[1])).catch(t));return typeof n!=`string`&&typeof n!=`number`?{unwrap:c}:Object.assign(n,{unwrap:c})},this.custom=(e,t)=>{let n=Id(t);return this.create({...t,jsx:e(n),id:n,type:void 0}),n},this.getActiveToasts=()=>this.toasts.filter(e=>!this.dismissedToasts.has(e.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set,this.pendingDismissals=new Map}},Rd=(e,t)=>Ld.message(e,t),zd=e=>e&&typeof e==`object`&&`ok`in e&&typeof e.ok==`boolean`&&`status`in e&&typeof e.status==`number`,Bd=Object.assign(Rd,{success:Ld.success,info:Ld.info,warning:Ld.warning,error:Ld.error,custom:Ld.custom,message:Ld.message,promise:Ld.promise,dismiss:Ld.dismiss,loading:Ld.loading},{getHistory:()=>Ld.toasts,getToasts:()=>Ld.getActiveToasts()});wd(`[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px;flex:1;min-width:0}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--normal-text);background:var(--normal-bg);border:1px solid var(--normal-border);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{-webkit-user-select:none;user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}`);function Vd(e){return e.label!==void 0}var Hd=3,Ud=`24px`,Wd=`16px`,Gd=4e3,Kd=356,qd=14,Jd=45,Yd=200;function Xd(...e){return e.filter(Boolean).join(` `)}function Zd(e){let[t,n]=e.split(`-`),r=[];return t&&r.push(t),n&&r.push(n),r}var Qd=e=>{let{invert:t,toast:n,unstyled:r,interacting:i,setHeights:a,visibleToasts:s,heights:c,index:l,toasts:u,expanded:d,removeToast:f,defaultRichColors:p,closeButton:m,style:h,cancelButtonStyle:g,actionButtonStyle:_,className:v=``,descriptionClassName:y=``,duration:b,position:x,gap:S,expandByDefault:C,classNames:w,icons:T,closeButtonAriaLabel:E=`Close toast`}=e,[D,O]=o.useState(null),[k,A]=o.useState(null),[j,M]=o.useState(!1),[N,P]=o.useState(!1),[F,I]=o.useState(!1),[L,R]=o.useState(!1),[ee,te]=o.useState(!1),[z,B]=o.useState(0),[ne,re]=o.useState(0),V=o.useRef(n.duration||b||Gd),ie=o.useRef(null),H=o.useRef(null),ae=l===0,oe=l+1<=s,U=n.type,se=U??`default`,ce=n.dismissible!==!1,le=n.className||``,ue=n.descriptionClassName||``,de=o.useMemo(()=>c.findIndex(e=>e.toastId===n.id)||0,[c,n.id]),fe=o.useMemo(()=>n.closeButton??m,[n.closeButton,m]),pe=o.useMemo(()=>n.duration||b||Gd,[n.duration,b]),me=o.useRef(0),he=o.useRef(0),ge=o.useRef(0),_e=o.useRef(null),[ve,ye]=x.split(`-`),be=o.useMemo(()=>c.reduce((e,t,n)=>n>=de?e:e+t.height,0),[c,de]),xe=Nd(),Se=o.useMemo(()=>e.swipeDirections??Zd(x),[e.swipeDirections,x]),Ce=n.invert||t,we=U===`loading`;he.current=o.useMemo(()=>de*S+be,[de,be]),o.useEffect(()=>{V.current=pe},[pe]),o.useEffect(()=>{M(!0)},[]),o.useEffect(()=>{let e=H.current;if(e){let t=e.getBoundingClientRect().height;return re(t),a(e=>[{toastId:n.id,height:t,position:n.position},...e]),()=>a(e=>e.filter(e=>e.toastId!==n.id))}},[a,n.id]),o.useLayoutEffect(()=>{if(!j)return;let e=H.current,t=e.style.height;e.style.height=`auto`;let r=e.getBoundingClientRect().height;e.style.height=t,re(r),a(e=>e.find(e=>e.toastId===n.id)?e.map(e=>e.toastId===n.id?{...e,height:r}:e):[{toastId:n.id,height:r,position:n.position},...e])},[j,n.title,n.description,a,n.id,n.jsx,n.action,n.cancel]);let Te=o.useCallback(()=>{P(!0),B(he.current),a(e=>e.filter(e=>e.toastId!==n.id)),setTimeout(()=>{f(n)},Yd)},[n,f,a,he]);o.useEffect(()=>{if(n.promise&&U===`loading`||n.duration===1/0||n.type===`loading`)return;let e;return d||i||xe?(()=>{if(ge.current<me.current){let e=new Date().getTime()-me.current;V.current-=e}ge.current=new Date().getTime()})():V.current!==1/0&&(me.current=new Date().getTime(),e=setTimeout(()=>{n.onAutoClose==null||n.onAutoClose.call(n,n),Te()},V.current)),()=>clearTimeout(e)},[d,i,n,U,xe,Te]),o.useEffect(()=>{n.delete&&(Te(),n.onDismiss==null||n.onDismiss.call(n,n))},[Te,n.delete]);function Ee(){return T?.loading?o.createElement(`div`,{className:Xd(w?.loader,n?.classNames?.loader,`sonner-loader`),"data-visible":U===`loading`},T.loading):o.createElement(Dd,{className:Xd(w?.loader,n?.classNames?.loader),visible:U===`loading`})}let De=n.icon||T?.[U]||Td(U);return o.createElement(`li`,{tabIndex:0,ref:H,className:Xd(v,le,w?.toast,n?.classNames?.toast,w?.[se],n?.classNames?.[se]),"data-sonner-toast":``,"data-rich-colors":n.richColors??p,"data-styled":!(n.jsx||n.unstyled||r),"data-mounted":j,"data-promise":!!n.promise,"data-swiped":ee,"data-removed":N,"data-visible":oe,"data-y-position":ve,"data-x-position":ye,"data-index":l,"data-front":ae,"data-swiping":F,"data-dismissible":ce,"data-type":U,"data-invert":Ce,"data-swipe-out":L,"data-swipe-direction":k,"data-expanded":!!(d||C&&j),"data-testid":n.testId,style:{"--index":l,"--toasts-before":l,"--z-index":u.length-l,"--offset":`${N?z:he.current}px`,"--initial-height":C?`auto`:`${ne}px`,...h,...n.style},onDragEnd:()=>{I(!1),O(null),_e.current=null},onPointerDown:e=>{e.button!==2&&!we&&ce&&(ie.current=new Date,B(he.current),e.target.setPointerCapture(e.pointerId),e.target.tagName!==`BUTTON`&&(I(!0),_e.current={x:e.clientX,y:e.clientY}))},onPointerUp:()=>{if(L||!ce)return;_e.current=null;let e=Number(H.current?.style.getPropertyValue(`--swipe-amount-x`).replace(`px`,``)||0),t=Number(H.current?.style.getPropertyValue(`--swipe-amount-y`).replace(`px`,``)||0),r=new Date().getTime()-ie.current?.getTime(),i=D===`x`?e:t,a=Math.abs(i)/r;if((D===`x`?Se.includes(e>0?`right`:`left`):Se.includes(t>0?`bottom`:`top`))&&(Math.abs(i)>=Jd||a>.11))B(he.current),n.onDismiss==null||n.onDismiss.call(n,n),A(D===`x`?e>0?`right`:`left`:t>0?`down`:`up`),Te(),R(!0);else{var o,s;(o=H.current)==null||o.style.setProperty(`--swipe-amount-x`,`0px`),(s=H.current)==null||s.style.setProperty(`--swipe-amount-y`,`0px`),te(!1),I(!1),O(null)}},onPointerMove:e=>{var t,n;if(!_e.current||!ce||window.getSelection()?.toString().length>0)return;let r=e.clientY-_e.current.y,i=e.clientX-_e.current.x;!D&&(Math.abs(i)>1||Math.abs(r)>1)&&O(Math.abs(i)>Math.abs(r)?`x`:`y`);let a={x:0,y:0},o=e=>1/(1.5+Math.abs(e)/20);if(D===`y`){if(Se.includes(`top`)||Se.includes(`bottom`)){if(Se.includes(`top`)&&r<0||Se.includes(`bottom`)&&r>0)a.y=r;else{let e=r*o(r);a.y=Math.abs(e)<Math.abs(r)?e:r}}}else if(D===`x`&&(Se.includes(`left`)||Se.includes(`right`))){if(Se.includes(`left`)&&i<0||Se.includes(`right`)&&i>0)a.x=i;else{let e=i*o(i);a.x=Math.abs(e)<Math.abs(i)?e:i}}(Math.abs(a.x)>0||Math.abs(a.y)>0)&&te(!0),(t=H.current)==null||t.style.setProperty(`--swipe-amount-x`,`${a.x}px`),(n=H.current)==null||n.style.setProperty(`--swipe-amount-y`,`${a.y}px`)}},fe&&!n.jsx&&U!==`loading`?o.createElement(`button`,{"aria-label":E,"data-disabled":we,"data-close-button":!0,onClick:we||!ce?()=>{}:()=>{Te(),n.onDismiss==null||n.onDismiss.call(n,n)},className:Xd(w?.closeButton,n?.classNames?.closeButton)},T?.close??Md):null,(U||n.icon||n.promise)&&n.icon!==null&&(T?.[U]!==null||n.icon)?o.createElement(`div`,{"data-icon":``,className:Xd(w?.icon,n?.classNames?.icon)},U===`loading`?n.icon||Ee():n.promise?Ee():null,U===`loading`?null:De):null,o.createElement(`div`,{"data-content":``,className:Xd(w?.content,n?.classNames?.content)},o.createElement(`div`,{"data-title":``,className:Xd(w?.title,n?.classNames?.title)},n.jsx?n.jsx:typeof n.title==`function`?n.title():n.title),n.description?o.createElement(`div`,{"data-description":``,className:Xd(y,ue,w?.description,n?.classNames?.description)},typeof n.description==`function`?n.description():n.description):null),o.isValidElement(n.cancel)?n.cancel:n.cancel&&Vd(n.cancel)?o.createElement(`button`,{"data-button":!0,"data-cancel":!0,style:n.cancelButtonStyle||g,onClick:e=>{Vd(n.cancel)&&ce&&(n.cancel.onClick==null||n.cancel.onClick.call(n.cancel,e),Te())},className:Xd(w?.cancelButton,n?.classNames?.cancelButton)},n.cancel.label):null,o.isValidElement(n.action)?n.action:n.action&&Vd(n.action)?o.createElement(`button`,{"data-button":!0,"data-action":!0,style:n.actionButtonStyle||_,onClick:e=>{Vd(n.action)&&(n.action.onClick==null||n.action.onClick.call(n.action,e),!e.defaultPrevented&&Te())},className:Xd(w?.actionButton,n?.classNames?.actionButton)},n.action.label):null)};function $d(){if(typeof window>`u`||typeof document>`u`)return`ltr`;let e=document.documentElement.getAttribute(`dir`);return e===`auto`||!e?window.getComputedStyle(document.documentElement).direction:e}function ef(e,t){let n={};return[e,t].forEach((e,t)=>{let r=t===1,i=r?`--mobile-offset`:`--offset`,a=r?Wd:Ud;function o(e){[`top`,`right`,`bottom`,`left`].forEach(t=>{n[`${i}-${t}`]=typeof e==`number`?`${e}px`:e})}typeof e==`number`||typeof e==`string`?o(e):typeof e==`object`?[`top`,`right`,`bottom`,`left`].forEach(t=>{e[t]===void 0?n[`${i}-${t}`]=a:n[`${i}-${t}`]=typeof e[t]==`number`?`${e[t]}px`:e[t]}):o(a)}),n}var tf=o.forwardRef(function(e,t){let{id:n,invert:r,position:i=`bottom-right`,hotkey:a=[`altKey`,`KeyT`],expand:s,closeButton:c,className:l,offset:u,mobileOffset:d,theme:f=`light`,richColors:p,duration:m,style:h,visibleToasts:g=Hd,toastOptions:_,dir:v=$d(),gap:y=qd,icons:b,customAriaLabel:x,containerAriaLabel:S=`Notifications`}=e,[C,w]=o.useState([]),T=o.useMemo(()=>n?C.filter(e=>e.toasterId===n):C.filter(e=>!e.toasterId),[C,n]),E=o.useMemo(()=>Array.from(new Set([i].concat(T.filter(e=>e.position).map(e=>e.position)))),[T,i]),[D,O]=o.useState([]),[k,A]=o.useState(!1),[j,M]=o.useState(!1),[N,P]=o.useState(f===`system`?typeof window<`u`&&window.matchMedia&&window.matchMedia(`(prefers-color-scheme: dark)`).matches?`dark`:`light`:f),F=o.useRef(null),I=a.join(`+`).replace(/Key/g,``).replace(/Digit/g,``),L=o.useRef(null),R=o.useRef(!1),ee=o.useCallback(e=>{w(t=>(t.find(t=>t.id===e.id)?.delete||Ld.dismiss(e.id),t.filter(({id:t})=>t!==e.id)))},[]);return o.useEffect(()=>Ld.subscribe(e=>{e.dismiss?requestAnimationFrame(()=>{w(t=>t.map(t=>t.id===e.id?{...t,delete:!0}:t))}):setTimeout(()=>{yr.flushSync(()=>{w(t=>{let n=t.findIndex(t=>t.id===e.id);return n===-1?[e,...t]:[...t.slice(0,n),{...t[n],...e},...t.slice(n+1)]})})})}),[]),o.useEffect(()=>{if(f!==`system`){P(f);return}if(f===`system`&&(window.matchMedia&&window.matchMedia(`(prefers-color-scheme: dark)`).matches?P(`dark`):P(`light`)),typeof window>`u`)return;let e=window.matchMedia(`(prefers-color-scheme: dark)`);try{e.addEventListener(`change`,({matches:e})=>{P(e?`dark`:`light`)})}catch{e.addListener(({matches:e})=>{try{P(e?`dark`:`light`)}catch(e){console.error(e)}})}},[f]),o.useEffect(()=>{C.length<=1&&A(!1)},[C]),o.useEffect(()=>{let e=e=>{if(a.length>0&&a.every(t=>e[t]||e.code===t)){var t;A(!0),(t=F.current)==null||t.focus()}e.code===`Escape`&&(document.activeElement===F.current||F.current?.contains(document.activeElement))&&A(!1)};return document.addEventListener(`keydown`,e),()=>document.removeEventListener(`keydown`,e)},[a]),o.useEffect(()=>{if(F.current)return()=>{L.current&&(L.current.focus({preventScroll:!0}),L.current=null,R.current=!1)}},[F.current]),o.createElement(`section`,{ref:t,"aria-label":x??`${S} ${I}`,tabIndex:-1,"aria-live":`polite`,"aria-relevant":`additions text`,"aria-atomic":`false`,suppressHydrationWarning:!0,"data-react-aria-top-layer":!0},E.map((t,n)=>{let[i,a]=t.split(`-`);return T.length?o.createElement(`ol`,{key:t,dir:v===`auto`?$d():v,tabIndex:-1,ref:F,className:l,"data-sonner-toaster":!0,"data-sonner-theme":N,"data-y-position":i,"data-x-position":a,style:{"--front-toast-height":`${D[0]?.height||0}px`,"--width":`${Kd}px`,"--gap":`${y}px`,...h,...ef(u,d)},onBlur:e=>{R.current&&!e.currentTarget.contains(e.relatedTarget)&&(R.current=!1,L.current&&=(L.current.focus({preventScroll:!0}),null))},onFocus:e=>{e.target instanceof HTMLElement&&e.target.dataset.dismissible===`false`||R.current||(R.current=!0,L.current=e.relatedTarget)},onMouseEnter:()=>A(!0),onMouseMove:()=>A(!0),onMouseLeave:()=>{j||A(!1)},onDragEnd:()=>A(!1),onPointerDown:e=>{e.target instanceof HTMLElement&&e.target.dataset.dismissible===`false`||M(!0)},onPointerUp:()=>M(!1)},T.filter(e=>!e.position&&n===0||e.position===t).map((n,i)=>o.createElement(Qd,{key:n.id,icons:b,index:i,toast:n,defaultRichColors:p,duration:_?.duration??m,className:_?.className,descriptionClassName:_?.descriptionClassName,invert:r,visibleToasts:g,closeButton:_?.closeButton??c,interacting:j,position:t,style:_?.style,unstyled:_?.unstyled,classNames:_?.classNames,cancelButtonStyle:_?.cancelButtonStyle,actionButtonStyle:_?.actionButtonStyle,closeButtonAriaLabel:_?.closeButtonAriaLabel,removeToast:ee,toasts:T.filter(e=>e.position==n.position),heights:D.filter(e=>e.position==n.position),setHeights:O,expandByDefault:s,gap:y,expanded:k,swipeDirections:e.swipeDirections}))):null}))}),nf=class extends Error{status;code;hint;email;constructor(e,t,n,r,i){super(n),this.name=`ApiError`,this.status=e,this.code=t,this.hint=r,this.email=i}},rf=`agentinbox:unauthorized`,af=[`/api/auth/login`,`/api/setup/claim`,`/api/setup/verify-token`,`/api/auth/password`,`/api/setup/status`];function of(e){return!!e&&typeof e==`object`&&`error`in e&&!!e.error&&typeof e.error.message==`string`}async function sf(e,t={}){let n=new URL(e,window.location.origin);for(let[e,r]of Object.entries(t.query??{}))r!=null&&r!==``&&n.searchParams.set(e,String(r));let r=t.method??(t.body===void 0?`GET`:`POST`),i={accept:`application/json`};r!==`GET`&&(i[`x-agentinbox-csrf`]=`1`);let a;t.body!==void 0&&(a=JSON.stringify(t.body),i[`content-type`]=`application/json`);let o;try{o=await fetch(n,{method:r,headers:i,body:a,credentials:`same-origin`,signal:t.signal})}catch(e){throw e.name===`AbortError`?e:new nf(0,`network`,`Can't reach the xaq server`,`Check that the daemon is running, then try again.`)}if(o.status===204)return;let s=await o.text(),c;if(s)try{c=JSON.parse(s)}catch{c=s}if(!o.ok){if(o.status===401&&!af.includes(n.pathname)&&window.dispatchEvent(new Event(rf)),of(c))throw new nf(o.status,c.error.code,c.error.message,c.error.hint,c.error.email);let e=typeof c==`string`&&c.trim()&&c.length<300?c.trim():`Request failed (HTTP ${o.status})`;throw new nf(o.status,`http_`+o.status,e)}return c}var Q=(e,t)=>sf(e,{query:t});function cf(e){return e instanceof nf?{message:e.message,hint:e.hint}:e instanceof Error?{message:e.message}:{message:String(e)}}function lf(e,t){let{message:n,hint:r}=cf(e);t?Bd.error(t,{description:r?`${n} ${r}`:n}):Bd.error(n,{description:r})}function uf({className:e,...t}){return(0,s.jsx)(vr,{"data-slot":`spinner`,role:`status`,"aria-label":`Loading`,className:Yi(`size-4 animate-spin`,e),...t})}var df=864e5,ff=[`full`,`ask`,`read`],pf={full:{label:`Full access`,description:`Agents use every tool without asking you.`},ask:{label:`Ask before risky actions`,description:`Reading, creating and editing go straight through. Deleting, sending, sharing outside and payments wait for your approval.`},read:{label:`Read only`,description:`Agents can only look things up. Tools that change anything are hidden.`},none:{label:`No access`,description:`This agent doesn't see this connection's tools.`}},mf=[`full`,`ask`,`read`,`none`];function hf(e,t){return Math.ceil((Date.parse(e)-t)/df)}function gf(e,t){if(e.toolsCachedAt===null&&(e.tools?.total??0)===0&&(e.status===`needs_reauth`||e.status===`active`&&e.authType===`oauth`))return{label:`Not signed in`,tone:`warn`,description:`The sign-in to ${e.name} wasn't finished. Agents can't use it until you sign in.`,action:`reconnect`};switch(e.status){case`disabled`:return{label:`Disabled`,tone:`idle`,description:`${e.statusReason?`${_f(e.statusReason)}. `:``}Agents don't see its tools. Reconnect to use it again.`,action:`reconnect`};case`needs_reauth`:return{label:`Needs reconnect`,tone:`bad`,description:`${e.statusReason??`Its sign-in stopped working.`} Agents' calls to ${e.name} fail until you reconnect.`,action:`reconnect`};case`error`:return{label:`Error`,tone:`bad`,description:`${e.statusReason??`The server isn't answering.`} Reconnecting often fixes it.`,action:`reconnect`};case`active`:{if(!e.expiresAt)return{label:`Active`,tone:`good`,description:`Working.`,action:null};let n=hf(e.expiresAt,t);return n<=0?{label:`Expired`,tone:`bad`,description:`Its sign-in has expired. Reconnect ${e.name} to keep it working.`,action:`reconnect`}:n<=7?{label:`Expires in ${n} day${n===1?``:`s`}`,tone:n<=1?`bad`:`warn`,description:`Its sign-in stops working ${n===1?`tomorrow`:`in ${n} days`}. Reconnect now so agents aren't interrupted.`,action:`reconnect`}:{label:`Active`,tone:`good`,description:`Working. Needs a reconnect in ${n} days.`,action:null}}}}var _f=e=>e.charAt(0).toUpperCase()+e.slice(1);function vf(e){return e.filter(e=>e.tools.held>0&&e.status!==`disabled`).map(e=>({id:e.id,text:`${e.name} changed ${e.tools.held} tool${e.tools.held===1?``:`s`}`}))}function yf(e,t,n){return t.map(t=>({connectionId:t.id,slug:t.slug,name:t.name,status:t.status,level:n[t.id]?.find(t=>t.agentId===e)?.level??`none`}))}function bf(e,t,n){let r=e.filter(e=>e.agentId!==t).map(e=>({agentId:e.agentId,level:e.level}));return{grants:n===`none`?r:[...r,{agentId:t,level:n}]}}function xf(e,t){if(!e||typeof e!=`object`)return null;let n=e;return n.type!==`agentinbox:connection-oauth`||!t||n.connectionId!==t?null:{ok:n.ok!==!1,error:typeof n.error==`string`?n.error:null}}function Sf(e){let t;try{t=new URL(e.trim())}catch{return`That isn't a full address. Copy everything in the address bar, starting with http.`}let n=t.searchParams.get(`error`);return n?n===`access_denied`?`This address says the sign-in was cancelled. Start again and approve it.`:`The sign-in returned an error: ${n}`:t.searchParams.get(`code`)?null:`This address has no authorization code. Copy it after approving the sign-in.`}var Cf=/^[a-z0-9-]{1,24}$/,wf=new Set([`www`,`mcp`,`api`,`app`,`server`,`com`,`net`,`org`,`io`,`dev`,`sh`,`ai`,`co`]);function Tf(e){let t;try{t=new URL(e)}catch{return``}let n=t.hostname.replace(/^\[|\]$/g,``);if(/^[\d.]+$/.test(n)||n.includes(`:`)||n===`localhost`)return`local${t.port?`-${t.port}`:``}`;let r=n.split(`.`).filter(Boolean);return((r.length>1?r.slice(0,-1):r).filter(e=>!wf.has(e))[0]??r[0]??``).toLowerCase().replace(/[^a-z0-9-]+/g,`-`).replace(/^-+|-+$/g,``).slice(0,24)}function Ef(e){return e.normalize(`NFKD`).replace(/[\u0300-\u036f]/g,``).toLowerCase().replace(/[^a-z0-9]+/g,`-`).replace(/^-+/,``).slice(0,24).replace(/-+$/,``)}function Df(e,t){return e.preset||e.slugEdited?{name:t}:{name:t,slug:Ef(t)||e.slug}}function Of(e,t){return e?Cf.test(e)?t.includes(e)?`You already have a connection named ${e}.`:null:`Use up to 24 lowercase letters, digits and dashes.`:`Give it a short name.`}function kf(e,t){let n={};for(let r of e){if(!r.input)continue;let e=(t[r.input.key]??``).trim();if(!e)n[r.input.key]=`Paste the ${r.input.label.toLowerCase()}.`;else if(r.input.pattern){let t=null;try{t=RegExp(`^(?:${r.input.pattern})$`)}catch{t=null}t&&!t.test(e)&&(n[r.input.key]=`That doesn't look like a ${r.input.label.toLowerCase()}.`)}}return n}function Af(e){if(`preset`in e){let t=e.preset.authType;return t===`oauth`?{kind:`oauth`,issuer:null,manual:!1}:t===`header`?{kind:`header`}:{kind:`none`}}let t=e.probe;return t.blocked===`private_target`?{kind:`private`}:t.auth===`oauth`?{kind:`oauth`,issuer:t.issuer??null,manual:t.registration===`manual`}:t.auth===`header`?{kind:`header`}:t.auth===`none`?{kind:`none`}:{kind:`unknown`}}function jf(e){try{let t=new URL(e);return`${t.hostname}:${t.port||(t.protocol===`https:`?`443`:`80`)}`}catch{return e}}function Mf(e){return`Allowing ${jf(e)} lets xaq connect to a server on this computer or your private network (like Tailscale). Only this connection gets it, only at this exact address, and only you can turn it on. A server there can reach other services on that machine or network, so allow only servers you run or trust.`}function Nf(e){if(e.blocked===`private_target`)return`This server is on this computer or your private network. xaq blocks those addresses unless you allow one.`;if(e.blocked===`ssrf`)return e.message||`xaq can't connect to this address.`;if(!e.reachable)return e.message||`xaq couldn't reach this server.`;if(e.auth===`oauth`){let t=e.issuer?jf(e.issuer).replace(/:443$/,``):`its own sign-in`;return e.registration===`manual`?`Signs in with ${t}, which doesn't register apps automatically. ${e.message}`.trim():`Signs in with ${t}. xaq registers itself automatically, so there's nothing to set up there.`}return e.auth===`header`?`Needs an API key or token. xaq keeps it encrypted and sends it with every request; agents never see it.`:e.auth===`none`?`An MCP server that needs no sign-in.`:e.message}var Pf=(e=null)=>({preset:e,url:e?.url??``,probe:null,createdId:null,privateAllowed:!1,slugEdited:!1,slug:e?.slug??``,name:e?.displayName??``,level:`ask`,agents:`all`,headerName:`Authorization`,headerValue:``,inputs:{}}),Ff=e=>e.preset?Af({preset:e.preset}):e.probe?Af({probe:e.probe}):null;function If(e,t){let n=[];!e.preset&&!e.probe&&n.push(`Check the address first.`);let r=Ff(e);r?.kind===`private`&&n.push(`Allow the private-network address, or use another one.`),!e.preset&&e.probe&&!e.probe.reachable&&!e.probe.blocked&&n.push(`xaq couldn't reach this server.`),e.probe?.blocked===`ssrf`&&n.push(`xaq can't connect to this address.`);let i=Of(e.slug,e.createdId?t.filter(t=>t!==e.slug):t);return i&&n.push(i),r?.kind===`header`&&(!e.headerValue.trim()||!/^[A-Za-z0-9-]{1,100}$/.test(e.headerName.trim()))&&n.push(`Paste the API key or token.`),e.preset&&n.push(...Object.values(kf(e.preset.setupSteps,e.inputs))),Array.isArray(e.agents)&&e.agents.length===0&&n.push(`Pick at least one agent, or all of them.`),n}function Lf(e){let t={slug:e.slug,levelDefault:e.level};return e.preset?t.preset=e.preset.id:t.url=e.url.trim(),e.name.trim()&&e.name.trim()!==e.preset?.displayName&&(t.name=e.name.trim()),Array.isArray(e.agents)&&(t.agentIds=e.agents),t}function Rf(e){let t={};if(Ff(e)?.kind===`header`){let n=e.headerName.trim()||`Authorization`,r=e.headerValue.trim();t.header={name:n,value:n.toLowerCase()===`authorization`&&!/^\w+\s/.test(r)?`Bearer ${r}`:r}}return e.preset&&Object.keys(e.inputs).length&&(t.inputs=Object.fromEntries(Object.entries(e.inputs).map(([e,t])=>[e,t.trim()]))),t}function zf(e,t,n){let r={};e.name.trim()&&e.name.trim()!==t.name&&(r.name=e.name.trim()),e.slug!==t.slug&&(r.slug=e.slug),e.level!==t.levelDefault&&(r.levelDefault=e.level),e.agents===`all`&&(r.allAgents=!0);let i=e.agents===`all`?n:e.agents;return{patch:Object.keys(r).length?r:null,grants:{grants:i.map(t=>({agentId:t,level:e.level}))}}}var $={setupStatus:[`setup-status`],setupState:[`setup-state`],system:[`system`],systemLatest:[`system-latest`],settings:[`settings`],googleClient:[`google-client`],accounts:[`accounts`],labels:e=>[`labels`,e],calendarSetup:[`calendar-setup`],accountCalendars:e=>[`account-calendars`,e],agents:[`agents`],agent:e=>[`agents`,e],webhooks:[`webhooks`],deliveries:[`deliveries`],events:[`events`],approvals:[`approvals`],audit:[`audit`],overview:[`overview`],pairings:[`pairings`],eventHistory:[`event-history`],auditLog:[`audit-log`],connections:[`connections`],connection:e=>[`connections`,e],presets:[`connection-presets`],agentConnections:e=>[`agent-connections`,e],approvalRules:[`approval-rules`]},Bf={setupStatus:()=>d({queryKey:$.setupStatus,queryFn:()=>Q(`/api/setup/status`),staleTime:0}),setupState:()=>d({queryKey:$.setupState,queryFn:()=>Q(`/api/setup/state`)}),system:()=>d({queryKey:$.system,queryFn:()=>Q(`/api/system`),refetchInterval:3e4}),systemLatest:()=>d({queryKey:$.systemLatest,queryFn:()=>Q(`/api/system/latest`),staleTime:18e5,retry:!1}),settings:()=>d({queryKey:$.settings,queryFn:()=>Q(`/api/settings`)}),googleClient:()=>d({queryKey:$.googleClient,queryFn:()=>Q(`/api/google/client`)}),accounts:()=>d({queryKey:$.accounts,queryFn:()=>Q(`/api/accounts`)}),labels:e=>d({queryKey:$.labels(e),queryFn:()=>Q(`/api/accounts/${encodeURIComponent(e)}/labels`),staleTime:3e5}),calendarSetup:()=>d({queryKey:$.calendarSetup,queryFn:()=>Q(`/api/google/calendar`)}),accountCalendars:e=>d({queryKey:$.accountCalendars(e),queryFn:()=>Q(`/api/accounts/${encodeURIComponent(e)}/calendars`),staleTime:3e5,retry:!1}),agents:()=>d({queryKey:$.agents,queryFn:()=>Q(`/api/agents`)}),agent:e=>d({queryKey:$.agent(e),queryFn:()=>Q(`/api/agents/${encodeURIComponent(e)}`)}),webhooks:e=>d({queryKey:[...$.webhooks,{agentId:e??null}],queryFn:()=>Q(`/api/webhooks`,{agentId:e})}),approvals:e=>d({queryKey:[...$.approvals,e??`all`],queryFn:()=>Q(`/api/approvals`,{status:e}),refetchInterval:6e4}),pairings:e=>d({queryKey:[...$.pairings,e??`all`],queryFn:()=>Q(`/api/pairings`,{status:e}),refetchInterval:3e4}),overview:()=>d({queryKey:$.overview,queryFn:()=>Q(`/api/overview`),refetchInterval:6e4}),recentEvents:()=>d({queryKey:[...$.events,`recent`],queryFn:()=>Q(`/api/events`)}),eventHistory:e=>f({queryKey:[...$.eventHistory,e],queryFn:({pageParam:t})=>Q(`/api/events`,{...e,cursor:t}),initialPageParam:null,getNextPageParam:e=>e.nextCursor,staleTime:1/0,refetchOnMount:`always`}),deliveries:(e,t)=>f({queryKey:[...$.deliveries,e,t??`all`],queryFn:({pageParam:n})=>Q(`/api/deliveries`,{webhookId:e,status:t,cursor:n}),initialPageParam:null,getNextPageParam:e=>e.nextCursor}),audit:e=>f({queryKey:[...$.auditLog,e],queryFn:({pageParam:t})=>Q(`/api/audit`,{...e,cursor:t}),initialPageParam:null,getNextPageParam:e=>e.nextCursor,staleTime:1/0,refetchOnMount:`always`}),connections:()=>d({queryKey:$.connections,queryFn:()=>Q(`/api/connections`),refetchInterval:6e4}),connection:e=>d({queryKey:$.connection(e),queryFn:()=>Q(`/api/connections/${encodeURIComponent(e)}`)}),heldTools:e=>d({queryKey:[...$.connection(e),`held`],queryFn:()=>Q(`/api/connections/${encodeURIComponent(e)}/held`)}),presets:()=>d({queryKey:$.presets,queryFn:()=>Q(`/api/connections/presets`),staleTime:6e5}),connectionGrants:e=>d({queryKey:[...$.connection(e),`grants`],queryFn:()=>Q(`/api/connections/${encodeURIComponent(e)}/grants`)}),agentConnections:e=>d({queryKey:$.agentConnections(e),queryFn:async()=>{let t=await Q(`/api/connections`),n=await Promise.all(t.map(e=>Q(`/api/connections/${encodeURIComponent(e.id)}/grants`)));return yf(e,t,Object.fromEntries(t.map((e,t)=>[e.id,n[t]])))}}),approvalRules:e=>d({queryKey:[...$.approvalRules,e],queryFn:()=>Q(`/api/approval-rules`,{agentId:e})}),approval:e=>d({queryKey:[...$.approvals,`one`,e],queryFn:()=>Q(`/api/approvals/${encodeURIComponent(e)}`),retry:!1}),recentAudit:e=>d({queryKey:[...$.audit,`agent`,e],queryFn:()=>Q(`/api/audit`,{agentId:e})})};export{po as $,lf as A,Xe as At,Lc as B,S as Bt,Tf as C,Nn as Ct,sf as D,Sn as Dt,rf as E,Cn as Et,dd as F,P as Ft,Qo as G,ys as H,l as Ht,vd as I,F as It,zo as J,es as K,hd as L,I as Lt,Bd as M,Ce as Mt,Cd as N,Se as Nt,Q as O,_t as Ot,ld as P,re as Pt,Co as Q,od as R,N as Rt,Of as S,Fn as St,nf as T,Tn as Tt,ps as U,a as Ut,Oc as V,u as Vt,Xo as W,r as Wt,Mo as X,Bo as Y,Oo as Z,Df as _,mr as _t,pf as a,xa as at,Mf as b,Ln as bt,Lf as c,ra as ct,Pf as d,ea as dt,io as et,zf as f,Yi as ft,kf as g,gr as gt,jf as h,vr as ht,mf as i,Ea as it,tf as j,Ze as jt,cf as k,pt as kt,Ff as l,oa as lt,vf as m,xr as mt,Bf as n,Aa as nt,Rf as o,Sa as ot,bf as p,wr as pt,$o as q,ff as r,Oa as rt,gf as s,ia as st,$ as t,Ga as tt,If as u,$i as ut,xf as v,er as vt,uf as w,An as wt,Nf as x,In as xt,Sf as y,Zn as yt,Bc as z,g as zt};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{_t as e}from"./queries-Cv3nXx0U.js";var t={name:`refresh-cw`,size:24,node:[[`path`,{d:`M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8`,key:`v9h5vc`}],[`path`,{d:`M21 3v5h-5`,key:`1q7to0`}],[`path`,{d:`M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16`,key:`3uifl3`}],[`path`,{d:`M8 16H3v5`,key:`1cv678`}]]};t.node;var n=e(t);export{n as t};
|