UNPKG

solvice-vrp-components

Version:

React components library for visualizing VRP problems in Mintlify documentation

21 lines 85.1 kB
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("react")):"function"==typeof define&&define.amd?define(["exports","react"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).SolviceVRP={},e.React)}(this,function(e,t){"use strict";var r=Object.defineProperty,n=Object.defineProperties,o=Object.getOwnPropertyDescriptors,s=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable,l=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),c=(e,t,n)=>t in e?r(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,u=(e,t)=>{for(var r in t||(t={}))i.call(t,r)&&c(e,r,t[r]);if(s)for(var r of s(t))a.call(t,r)&&c(e,r,t[r]);return e},d=(e,t)=>n(e,o(t)),f=(e,t)=>{var r={};for(var n in e)i.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&s)for(var n of s(e))t.indexOf(n)<0&&a.call(e,n)&&(r[n]=e[n]);return r},p=(e,t,r)=>c(e,"symbol"!=typeof t?t+"":t,r),h=(e,t,r)=>new Promise((n,o)=>{var s=e=>{try{a(r.next(e))}catch(t){o(t)}},i=e=>{try{a(r.throw(e))}catch(t){o(t)}},a=e=>e.done?n(e.value):Promise.resolve(e.value).then(s,i);a((r=r.apply(e,t)).next())}),m=function(e,t){this[0]=e,this[1]=t},y=e=>{var t,r=e[l("asyncIterator")],n=!1,o={};return null==r?(r=e[l("iterator")](),t=e=>o[e]=t=>r[e](t)):(r=r.call(e),t=e=>o[e]=t=>{if(n){if(n=!1,"throw"===e)throw t;return t}return n=!0,{done:!1,value:new m(new Promise(n=>{var o=r[e](t);o instanceof Object||(e=>{throw TypeError(e)})("Object expected"),n(o)}),1)}}),o[l("iterator")]=()=>o,t("next"),"throw"in r?t("throw"):o.throw=e=>{throw e},"return"in r&&t("return"),o};function g(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e)for(const r in e)if("default"!==r){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}return t.default=e,Object.freeze(t)}const b=g(t);var v,w={exports:{}},x={};var S,j={};w.exports="production"==={}.NODE_ENV?function(){if(v)return x;v=1;var e=t,r=Symbol.for("react.element"),n=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,s=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function a(e,t,n){var a,l={},c=null,u=null;for(a in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)o.call(t,a)&&!i.hasOwnProperty(a)&&(l[a]=t[a]);if(e&&e.defaultProps)for(a in t=e.defaultProps)void 0===l[a]&&(l[a]=t[a]);return{$$typeof:r,type:e,key:c,ref:u,props:l,_owner:s.current}}return x.Fragment=n,x.jsx=a,x.jsxs=a,x}():(S||(S=1, /** * @license React * react-jsx-runtime.development.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ "production"!=={}.NODE_ENV&&function(){var e,r=t,n=Symbol.for("react.element"),o=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),c=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen"),y=Symbol.iterator,g=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function b(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];!function(e,t,r){var n=g.ReactDebugCurrentFrame.getStackAddendum();""!==n&&(t+="%s",r=r.concat([n]));var o=r.map(function(e){return String(e)});o.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,o)}("error",e,r)}function v(e){return e.displayName||"Context"}function w(e){if(null==e)return null;if("number"==typeof e.tag&&b("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),"function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case s:return"Fragment";case o:return"Portal";case a:return"Profiler";case i:return"StrictMode";case d:return"Suspense";case f:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case c:return v(e)+".Consumer";case l:return v(e._context)+".Provider";case u:return function(e,t,r){var n=e.displayName;if(n)return n;var o=t.displayName||t.name||"";return""!==o?r+"("+o+")":r}(e,e.render,"ForwardRef");case p:var t=e.displayName||null;return null!==t?t:w(e.type)||"Memo";case h:var r=e,n=r._payload,m=r._init;try{return w(m(n))}catch(y){return null}}return null}e=Symbol.for("react.module.reference");var x,S,O,R,k,E,_,N=Object.assign,T=0;function I(){}I.__reactDisabledLog=!0;var L,P=g.ReactCurrentDispatcher;function $(e,t,r){if(void 0===L)try{throw Error()}catch(o){var n=o.stack.trim().match(/\n( *(at )?)/);L=n&&n[1]||""}return"\n"+L+e}var C,D=!1,A="function"==typeof WeakMap?WeakMap:Map;function V(e,t){if(!e||D)return"";var r,n=C.get(e);if(void 0!==n)return n;D=!0;var o,s=Error.prepareStackTrace;Error.prepareStackTrace=void 0,o=P.current,P.current=null,function(){if(0===T){x=console.log,S=console.info,O=console.warn,R=console.error,k=console.group,E=console.groupCollapsed,_=console.groupEnd;var e={configurable:!0,enumerable:!0,value:I,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}T++}();try{if(t){var i=function(){throw Error()};if(Object.defineProperty(i.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(i,[])}catch(h){r=h}Reflect.construct(e,[],i)}else{try{i.call()}catch(h){r=h}e.call(i.prototype)}}else{try{throw Error()}catch(h){r=h}e()}}catch(m){if(m&&r&&"string"==typeof m.stack){for(var a=m.stack.split("\n"),l=r.stack.split("\n"),c=a.length-1,u=l.length-1;c>=1&&u>=0&&a[c]!==l[u];)u--;for(;c>=1&&u>=0;c--,u--)if(a[c]!==l[u]){if(1!==c||1!==u)do{if(c--,--u<0||a[c]!==l[u]){var d="\n"+a[c].replace(" at new "," at ");return e.displayName&&d.includes("<anonymous>")&&(d=d.replace("<anonymous>",e.displayName)),"function"==typeof e&&C.set(e,d),d}}while(c>=1&&u>=0);break}}}finally{D=!1,P.current=o,function(){if(0===--T){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:N({},e,{value:x}),info:N({},e,{value:S}),warn:N({},e,{value:O}),error:N({},e,{value:R}),group:N({},e,{value:k}),groupCollapsed:N({},e,{value:E}),groupEnd:N({},e,{value:_})})}T<0&&b("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}(),Error.prepareStackTrace=s}var f=e?e.displayName||e.name:"",p=f?$(f):"";return"function"==typeof e&&C.set(e,p),p}function z(e,t,r){if(null==e)return"";if("function"==typeof e)return V(e,!(!(n=e.prototype)||!n.isReactComponent));var n;if("string"==typeof e)return $(e);switch(e){case d:return $("Suspense");case f:return $("SuspenseList")}if("object"==typeof e)switch(e.$$typeof){case u:return V(e.render,!1);case p:return z(e.type,t,r);case h:var o=e,s=o._payload,i=o._init;try{return z(i(s),t,r)}catch(a){}}return""}C=new A;var M=Object.prototype.hasOwnProperty,U={},q=g.ReactDebugCurrentFrame;function F(e){if(e){var t=e._owner,r=z(e.type,e._source,t?t.type:null);q.setExtraStackFrame(r)}else q.setExtraStackFrame(null)}var K=Array.isArray;function W(e){return K(e)}function X(e){return""+e}function B(e){if(function(e){try{return X(e),!1}catch(t){return!0}}(e))return b("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",function(e){return"function"==typeof Symbol&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object"}(e)),X(e)}var G,H,J=g.ReactCurrentOwner,Y={key:!0,ref:!0,__self:!0,__source:!0};function Q(e,t,r,o,s){var i,a={},l=null,c=null;for(i in void 0!==r&&(B(r),l=""+r),function(e){if(M.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return void 0!==e.key}(t)&&(B(t.key),l=""+t.key),function(e){if(M.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return!1}return void 0!==e.ref}(t)&&(c=t.ref,function(e){"string"==typeof e.ref&&J.current}(t)),t)M.call(t,i)&&!Y.hasOwnProperty(i)&&(a[i]=t[i]);if(e&&e.defaultProps){var u=e.defaultProps;for(i in u)void 0===a[i]&&(a[i]=u[i])}if(l||c){var d="function"==typeof e?e.displayName||e.name||"Unknown":e;l&&function(e,t){var r=function(){G||(G=!0,b("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};r.isReactWarning=!0,Object.defineProperty(e,"key",{get:r,configurable:!0})}(a,d),c&&function(e,t){var r=function(){H||(H=!0,b("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};r.isReactWarning=!0,Object.defineProperty(e,"ref",{get:r,configurable:!0})}(a,d)}return function(e,t,r,o,s,i,a){var l={$$typeof:n,type:e,key:t,ref:r,props:a,_owner:i,_store:{}};return Object.defineProperty(l._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(l,"_self",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.defineProperty(l,"_source",{configurable:!1,enumerable:!1,writable:!1,value:s}),Object.freeze&&(Object.freeze(l.props),Object.freeze(l)),l}(e,l,c,s,o,J.current,a)}var Z,ee=g.ReactCurrentOwner,te=g.ReactDebugCurrentFrame;function re(e){if(e){var t=e._owner,r=z(e.type,e._source,t?t.type:null);te.setExtraStackFrame(r)}else te.setExtraStackFrame(null)}function ne(e){return"object"==typeof e&&null!==e&&e.$$typeof===n}function oe(){if(ee.current){var e=w(ee.current.type);if(e)return"\n\nCheck the render method of `"+e+"`."}return""}Z=!1;var se={};function ie(e,t){if(e._store&&!e._store.validated&&null==e.key){e._store.validated=!0;var r=function(e){var t=oe();if(!t){var r="string"==typeof e?e:e.displayName||e.name;r&&(t="\n\nCheck the top-level render call using <"+r+">.")}return t}(t);if(!se[r]){se[r]=!0;var n="";e&&e._owner&&e._owner!==ee.current&&(n=" It was passed a child from "+w(e._owner.type)+"."),re(e),b('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',r,n),re(null)}}}function ae(e,t){if("object"==typeof e)if(W(e))for(var r=0;r<e.length;r++){var n=e[r];ne(n)&&ie(n,t)}else if(ne(e))e._store&&(e._store.validated=!0);else if(e){var o=function(e){if(null===e||"object"!=typeof e)return null;var t=y&&e[y]||e["@@iterator"];return"function"==typeof t?t:null}(e);if("function"==typeof o&&o!==e.entries)for(var s,i=o.call(e);!(s=i.next()).done;)ne(s.value)&&ie(s.value,t)}}function le(e){var t,r=e.type;if(null!=r&&"string"!=typeof r){if("function"==typeof r)t=r.propTypes;else{if("object"!=typeof r||r.$$typeof!==u&&r.$$typeof!==p)return;t=r.propTypes}if(t){var n=w(r);!function(e,t,r,n,o){var s=Function.call.bind(M);for(var i in e)if(s(e,i)){var a=void 0;try{if("function"!=typeof e[i]){var l=Error((n||"React class")+": "+r+" type `"+i+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[i]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw l.name="Invariant Violation",l}a=e[i](t,i,n,r,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(c){a=c}!a||a instanceof Error||(F(o),b("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",n||"React class",r,i,typeof a),F(null)),a instanceof Error&&!(a.message in U)&&(U[a.message]=!0,F(o),b("Failed %s type: %s",r,a.message),F(null))}}(t,e.props,"prop",n,e)}else void 0===r.PropTypes||Z||(Z=!0,b("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",w(r)||"Unknown"));"function"!=typeof r.getDefaultProps||r.getDefaultProps.isReactClassApproved||b("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}var ce={};function ue(t,r,o,y,g,v){var x=function(t){return"string"==typeof t||"function"==typeof t||t===s||t===a||t===i||t===d||t===f||t===m||"object"==typeof t&&null!==t&&(t.$$typeof===h||t.$$typeof===p||t.$$typeof===l||t.$$typeof===c||t.$$typeof===u||t.$$typeof===e||void 0!==t.getModuleId)}(t);if(!x){var S,j="";(void 0===t||"object"==typeof t&&null!==t&&0===Object.keys(t).length)&&(j+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),j+=oe(),null===t?S="null":W(t)?S="array":void 0!==t&&t.$$typeof===n?(S="<"+(w(t.type)||"Unknown")+" />",j=" Did you accidentally export a JSX literal instead of a component?"):S=typeof t,b("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",S,j)}var O=Q(t,r,o,g,v);if(null==O)return O;if(x){var R=r.children;if(void 0!==R)if(y)if(W(R)){for(var k=0;k<R.length;k++)ae(R[k],t);Object.freeze&&Object.freeze(R)}else b("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else ae(R,t)}if(M.call(r,"key")){var E=w(t),_=Object.keys(r).filter(function(e){return"key"!==e}),N=_.length>0?"{key: someKey, "+_.join(": ..., ")+": ...}":"{key: someKey}";ce[E+N]||(b('A props object containing a "key" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />',N,E,_.length>0?"{"+_.join(": ..., ")+": ...}":"{}",E),ce[E+N]=!0)}return t===s?function(e){for(var t=Object.keys(e.props),r=0;r<t.length;r++){var n=t[r];if("children"!==n&&"key"!==n){re(e),b("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",n),re(null);break}}null!==e.ref&&(re(e),b("Invalid attribute `ref` supplied to `React.Fragment`."),re(null))}(O):le(O),O}var de=function(e,t,r){return ue(e,t,r,!1)},fe=function(e,t,r){return ue(e,t,r,!0)};j.Fragment=s,j.jsx=de,j.jsxs=fe}()),j);var O=w.exports;function R(e){var t,r,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=R(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function k(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=R(e))&&(n&&(n+=" "),n+=t);return n}const E=(e,t)=>{var r;if(0===e.length)return t.classGroupId;const n=e[0],o=t.nextPart.get(n),s=o?E(e.slice(1),o):void 0;if(s)return s;if(0===t.validators.length)return;const i=e.join("-");return null==(r=t.validators.find(({validator:e})=>e(i)))?void 0:r.classGroupId},_=/^\[(.+)\]$/,N=e=>{if(_.test(e)){const t=_.exec(e)[1],r=null==t?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},T=e=>{const{theme:t,prefix:r}=e,n={nextPart:new Map,validators:[]};return $(Object.entries(e.classGroups),r).forEach(([e,r])=>{I(r,n,e,t)}),n},I=(e,t,r,n)=>{e.forEach(e=>{if("string"==typeof e){return void((""===e?t:L(t,e)).classGroupId=r)}if("function"==typeof e)return P(e)?void I(e(n),t,r,n):void t.validators.push({validator:e,classGroupId:r});Object.entries(e).forEach(([e,o])=>{I(o,L(t,e),r,n)})})},L=(e,t)=>{let r=e;return t.split("-").forEach(e=>{r.nextPart.has(e)||r.nextPart.set(e,{nextPart:new Map,validators:[]}),r=r.nextPart.get(e)}),r},P=e=>e.isThemeGetter,$=(e,t)=>t?e.map(([e,r])=>[e,r.map(e=>"string"==typeof e?t+e:"object"==typeof e?Object.fromEntries(Object.entries(e).map(([e,r])=>[t+e,r])):e)]):e,C=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,n=new Map;const o=(o,s)=>{r.set(o,s),t++,t>e&&(t=0,n=r,r=new Map)};return{get(e){let t=r.get(e);return void 0!==t?t:void 0!==(t=n.get(e))?(o(e,t),t):void 0},set(e,t){r.has(e)?r.set(e,t):o(e,t)}}},D=e=>{const{separator:t,experimentalParseClassName:r}=e,n=1===t.length,o=t[0],s=t.length,i=e=>{const r=[];let i,a=0,l=0;for(let d=0;d<e.length;d++){let c=e[d];if(0===a){if(c===o&&(n||e.slice(d,d+s)===t)){r.push(e.slice(l,d)),l=d+s;continue}if("/"===c){i=d;continue}}"["===c?a++:"]"===c&&a--}const c=0===r.length?e:e.substring(l),u=c.startsWith("!");return{modifiers:r,hasImportantModifier:u,baseClassName:u?c.substring(1):c,maybePostfixModifierPosition:i&&i>l?i-l:void 0}};return r?e=>r({className:e,parseClassName:i}):i},A=e=>{if(e.length<=1)return e;const t=[];let r=[];return e.forEach(e=>{"["===e[0]?(t.push(...r.sort(),e),r=[]):r.push(e)}),t.push(...r.sort()),t},V=e=>u({cache:C(e.cacheSize),parseClassName:D(e)},(e=>{const t=T(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:e=>{const r=e.split("-");return""===r[0]&&1!==r.length&&r.shift(),E(r,t)||N(e)},getConflictingClassGroupIds:(e,t)=>{const o=r[e]||[];return t&&n[e]?[...o,...n[e]]:o}}})(e)),z=/\s+/;function M(){let e,t,r=0,n="";for(;r<arguments.length;)(e=arguments[r++])&&(t=U(e))&&(n&&(n+=" "),n+=t);return n}const U=e=>{if("string"==typeof e)return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=U(e[n]))&&(r&&(r+=" "),r+=t);return r};function q(e,...t){let r,n,o,s=function(a){const l=t.reduce((e,t)=>t(e),e());return r=V(l),n=r.cache.get,o=r.cache.set,s=i,i(a)};function i(e){const t=n(e);if(t)return t;const s=((e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:o}=t,s=[],i=e.trim().split(z);let a="";for(let l=i.length-1;l>=0;l-=1){const e=i[l],{modifiers:t,hasImportantModifier:c,baseClassName:u,maybePostfixModifierPosition:d}=r(e);let f=Boolean(d),p=n(f?u.substring(0,d):u);if(!p){if(!f){a=e+(a.length>0?" "+a:a);continue}if(p=n(u),!p){a=e+(a.length>0?" "+a:a);continue}f=!1}const h=A(t).join(":"),m=c?h+"!":h,y=m+p;if(s.includes(y))continue;s.push(y);const g=o(p,f);for(let r=0;r<g.length;++r){const e=g[r];s.push(m+e)}a=e+(a.length>0?" "+a:a)}return a})(e,r);return o(e,s),s}return function(){return s(M.apply(null,arguments))}}const F=e=>{const t=t=>t[e]||[];return t.isThemeGetter=!0,t},K=/^\[(?:([a-z-]+):)?(.+)\]$/i,W=/^\d+\/\d+$/,X=new Set(["px","full","screen"]),B=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,G=/\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$/,H=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,J=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Y=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Q=e=>ee(e)||X.has(e)||W.test(e),Z=e=>pe(e,"length",he),ee=e=>Boolean(e)&&!Number.isNaN(Number(e)),te=e=>pe(e,"number",ee),re=e=>Boolean(e)&&Number.isInteger(Number(e)),ne=e=>e.endsWith("%")&&ee(e.slice(0,-1)),oe=e=>K.test(e),se=e=>B.test(e),ie=new Set(["length","size","percentage"]),ae=e=>pe(e,ie,me),le=e=>pe(e,"position",me),ce=new Set(["image","url"]),ue=e=>pe(e,ce,ge),de=e=>pe(e,"",ye),fe=()=>!0,pe=(e,t,r)=>{const n=K.exec(e);return!!n&&(n[1]?"string"==typeof t?n[1]===t:t.has(n[1]):r(n[2]))},he=e=>G.test(e)&&!H.test(e),me=()=>!1,ye=e=>J.test(e),ge=e=>Y.test(e),be=q(()=>{const e=F("colors"),t=F("spacing"),r=F("blur"),n=F("brightness"),o=F("borderColor"),s=F("borderRadius"),i=F("borderSpacing"),a=F("borderWidth"),l=F("contrast"),c=F("grayscale"),u=F("hueRotate"),d=F("invert"),f=F("gap"),p=F("gradientColorStops"),h=F("gradientColorStopPositions"),m=F("inset"),y=F("margin"),g=F("opacity"),b=F("padding"),v=F("saturate"),w=F("scale"),x=F("sepia"),S=F("skew"),j=F("space"),O=F("translate"),R=()=>["auto",oe,t],k=()=>[oe,t],E=()=>["",Q,Z],_=()=>["auto",ee,oe],N=()=>["","0",oe],T=()=>[ee,oe];return{cacheSize:500,separator:":",theme:{colors:[fe],spacing:[Q,Z],blur:["none","",se,oe],brightness:T(),borderColor:[e],borderRadius:["none","","full",se,oe],borderSpacing:k(),borderWidth:E(),contrast:T(),grayscale:N(),hueRotate:T(),invert:N(),gap:k(),gradientColorStops:[e],gradientColorStopPositions:[ne,Z],inset:R(),margin:R(),opacity:T(),padding:k(),saturate:T(),scale:T(),sepia:N(),skew:T(),space:k(),translate:k()},classGroups:{aspect:[{aspect:["auto","square","video",oe]}],container:["container"],columns:[{columns:[se]}],"break-after":[{"break-after":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-before":[{"break-before":["auto","avoid","all","avoid-page","page","left","right","column"]}],"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"],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:["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top",oe]}],overflow:[{overflow:["auto","hidden","clip","visible","scroll"]}],"overflow-x":[{"overflow-x":["auto","hidden","clip","visible","scroll"]}],"overflow-y":[{"overflow-y":["auto","hidden","clip","visible","scroll"]}],overscroll:[{overscroll:["auto","contain","none"]}],"overscroll-x":[{"overscroll-x":["auto","contain","none"]}],"overscroll-y":[{"overscroll-y":["auto","contain","none"]}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[m]}],"inset-x":[{"inset-x":[m]}],"inset-y":[{"inset-y":[m]}],start:[{start:[m]}],end:[{end:[m]}],top:[{top:[m]}],right:[{right:[m]}],bottom:[{bottom:[m]}],left:[{left:[m]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",re,oe]}],basis:[{basis:R()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",oe]}],grow:[{grow:N()}],shrink:[{shrink:N()}],order:[{order:["first","last","none",re,oe]}],"grid-cols":[{"grid-cols":[fe]}],"col-start-end":[{col:["auto",{span:["full",re,oe]},oe]}],"col-start":[{"col-start":_()}],"col-end":[{"col-end":_()}],"grid-rows":[{"grid-rows":[fe]}],"row-start-end":[{row:["auto",{span:[re,oe]},oe]}],"row-start":[{"row-start":_()}],"row-end":[{"row-end":_()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",oe]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",oe]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal","start","end","center","between","around","evenly","stretch"]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal","start","end","center","between","around","evenly","stretch","baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":["start","end","center","between","around","evenly","stretch","baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[b]}],px:[{px:[b]}],py:[{py:[b]}],ps:[{ps:[b]}],pe:[{pe:[b]}],pt:[{pt:[b]}],pr:[{pr:[b]}],pb:[{pb:[b]}],pl:[{pl:[b]}],m:[{m:[y]}],mx:[{mx:[y]}],my:[{my:[y]}],ms:[{ms:[y]}],me:[{me:[y]}],mt:[{mt:[y]}],mr:[{mr:[y]}],mb:[{mb:[y]}],ml:[{ml:[y]}],"space-x":[{"space-x":[j]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[j]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",oe,t]}],"min-w":[{"min-w":[oe,t,"min","max","fit"]}],"max-w":[{"max-w":[oe,t,"none","full","min","max","fit","prose",{screen:[se]},se]}],h:[{h:[oe,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[oe,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[oe,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[oe,t,"auto","min","max","fit"]}],"font-size":[{text:["base",se,Z]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",te]}],"font-family":[{font:[fe]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",oe]}],"line-clamp":[{"line-clamp":["none",ee,te]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Q,oe]}],"list-image":[{"list-image":["none",oe]}],"list-style-type":[{list:["none","disc","decimal",oe]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[g]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[g]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:["solid","dashed","dotted","double","none","wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Q,Z]}],"underline-offset":[{"underline-offset":["auto",Q,oe]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:k()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",oe]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",oe]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[g]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top",le]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",ae]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},ue]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[h]}],"gradient-via-pos":[{via:[h]}],"gradient-to-pos":[{to:[h]}],"gradient-from":[{from:[p]}],"gradient-via":[{via:[p]}],"gradient-to":[{to:[p]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[g]}],"border-style":[{border:["solid","dashed","dotted","double","none","hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[g]}],"divide-style":[{divide:["solid","dashed","dotted","double","none"]}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-s":[{"border-s":[o]}],"border-color-e":[{"border-e":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["","solid","dashed","dotted","double","none"]}],"outline-offset":[{"outline-offset":[Q,oe]}],"outline-w":[{outline:[Q,Z]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:E()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[g]}],"ring-offset-w":[{"ring-offset":[Q,Z]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",se,de]}],"shadow-color":[{shadow:[fe]}],opacity:[{opacity:[g]}],"mix-blend":[{"mix-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"]}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[n]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",se,oe]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{invert:[d]}],saturate:[{saturate:[v]}],sepia:[{sepia:[x]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[u]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[g]}],"backdrop-saturate":[{"backdrop-saturate":[v]}],"backdrop-sepia":[{"backdrop-sepia":[x]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",oe]}],duration:[{duration:T()}],ease:[{ease:["linear","in","out","in-out",oe]}],delay:[{delay:T()}],animate:[{animate:["none","spin","ping","pulse","bounce",oe]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[w]}],"scale-x":[{"scale-x":[w]}],"scale-y":[{"scale-y":[w]}],rotate:[{rotate:[re,oe]}],"translate-x":[{"translate-x":[O]}],"translate-y":[{"translate-y":[O]}],"skew-x":[{"skew-x":[S]}],"skew-y":[{"skew-y":[S]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",oe]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],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",oe]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":k()}],"scroll-mx":[{"scroll-mx":k()}],"scroll-my":[{"scroll-my":k()}],"scroll-ms":[{"scroll-ms":k()}],"scroll-me":[{"scroll-me":k()}],"scroll-mt":[{"scroll-mt":k()}],"scroll-mr":[{"scroll-mr":k()}],"scroll-mb":[{"scroll-mb":k()}],"scroll-ml":[{"scroll-ml":k()}],"scroll-p":[{"scroll-p":k()}],"scroll-px":[{"scroll-px":k()}],"scroll-py":[{"scroll-py":k()}],"scroll-ps":[{"scroll-ps":k()}],"scroll-pe":[{"scroll-pe":k()}],"scroll-pt":[{"scroll-pt":k()}],"scroll-pr":[{"scroll-pr":k()}],"scroll-pb":[{"scroll-pb":k()}],"scroll-pl":[{"scroll-pl":k()}],"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",oe]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Q,Z,te]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}});function ve(...e){return be(k(e))}var we,xe={exports:{}},Se={};var je,Oe={};xe.exports="production"==={}.NODE_ENV?function(){if(we)return Se;we=1;var e=t,r="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},n=e.useState,o=e.useEffect,s=e.useLayoutEffect,i=e.useDebugValue;function a(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!r(e,n)}catch(o){return!0}}var l="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var r=t(),l=n({inst:{value:r,getSnapshot:t}}),c=l[0].inst,u=l[1];return s(function(){c.value=r,c.getSnapshot=t,a(c)&&u({inst:c})},[e,r,t]),o(function(){return a(c)&&u({inst:c}),e(function(){a(c)&&u({inst:c})})},[e]),i(r),r};return Se.useSyncExternalStore=void 0!==e.useSyncExternalStore?e.useSyncExternalStore:l,Se}():(je||(je=1, /** * @license React * use-sync-external-store-shim.development.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ "production"!=={}.NODE_ENV&&function(){function e(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!n(e,r)}catch(o){return!0}}"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var r=t,n="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=r.useState,s=r.useEffect,i=r.useLayoutEffect,a=r.useDebugValue,l=!1,c=!1,u="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(t,u){l||void 0===r.startTransition||(l=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var d=u();if(!c){var f=u();n(d,f)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),c=!0)}var p=(f=o({inst:{value:d,getSnapshot:u}}))[0].inst,h=f[1];return i(function(){p.value=d,p.getSnapshot=u,e(p)&&h({inst:p})},[t,d,u]),s(function(){return e(p)&&h({inst:p}),t(function(){e(p)&&h({inst:p})})},[t]),a(d),d};Oe.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:u,"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),Oe);var Re=xe.exports;var ke=Object.prototype.hasOwnProperty;const Ee=new WeakMap,_e=()=>{},Ne=_e(),Te=Object,Ie=e=>e===Ne,Le=e=>"function"==typeof e,Pe=(e,t)=>u(u({},e),t),$e=e=>Le(e.then),Ce={},De={},Ae="undefined",Ve=typeof window!=Ae,ze=typeof document!=Ae,Me=Ve&&"Deno"in window,Ue=(e,t)=>{const r=Ee.get(e);return[()=>!Ie(t)&&e.get(t)||Ce,n=>{if(!Ie(t)){const o=e.get(t);t in De||(De[t]=o),r[5](t,Pe(o,n),o||Ce)}},r[6],()=>!Ie(t)&&t in De?De[t]:!Ie(t)&&e.get(t)||Ce]};let qe=!0;const[Fe,Ke]=Ve&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[_e,_e],We={isOnline:()=>qe,isVisible:()=>{const e=ze&&document.visibilityState;return Ie(e)||"hidden"!==e}},Xe={initFocus:e=>(ze&&document.addEventListener("visibilitychange",e),Fe("focus",e),()=>{ze&&document.removeEventListener("visibilitychange",e),Ke("focus",e)}),initReconnect:e=>{const t=()=>{qe=!0,e()},r=()=>{qe=!1};return Fe("online",t),Fe("offline",r),()=>{Ke("online",t),Ke("offline",r)}}},Be=!t.useId,Ge=!Ve||Me,He=e=>Ve&&typeof window.requestAnimationFrame!=Ae?window.requestAnimationFrame(e):setTimeout(e,1),Je=Ge?t.useEffect:t.useLayoutEffect,Ye="undefined"!=typeof navigator&&navigator.connection,Qe=!Ge&&Ye&&(["slow-2g","2g"].includes(Ye.effectiveType)||Ye.saveData),Ze=new WeakMap,et=(e,t)=>e===`[object ${t}]`;let tt=0;const rt=e=>{const t=typeof e,r=(n=e,Te.prototype.toString.call(n));var n;const o=et(r,"Date"),s=et(r,"RegExp"),i=et(r,"Object");let a,l;if(Te(e)!==e||o||s)a=o?e.toJSON():"symbol"==t?e.toString():"string"==t?JSON.stringify(e):""+e;else{if(a=Ze.get(e),a)return a;if(a=++tt+"~",Ze.set(e,a),Array.isArray(e)){for(a="@",l=0;l<e.length;l++)a+=rt(e[l])+",";Ze.set(e,a)}if(i){a="#";const t=Te.keys(e).sort();for(;!Ie(l=t.pop());)Ie(e[l])||(a+=l+":"+rt(e[l])+",");Ze.set(e,a)}}return a},nt=e=>{if(Le(e))try{e=e()}catch(r){e=""}const t=e;return[e="string"==typeof e?e:(Array.isArray(e)?e.length:e)?rt(e):"",t]};let ot=0;const st=()=>++ot;function it(...e){return h(this,null,function*(){const[t,r,n,o]=e,s=Pe({populateCache:!0,throwOnError:!0},"boolean"==typeof o?{revalidate:o}:o||{});let i=s.populateCache;const a=s.rollbackOnError;let l=s.optimisticData;const c=s.throwOnError;if(Le(r)){const e=r,n=[],o=t.keys();for(const r of o)!/^\$(inf|sub)\$/.test(r)&&e(t.get(r)._k)&&n.push(r);return Promise.all(n.map(u))}return u(r);function u(r){return h(this,null,function*(){const[o]=nt(r);if(!o)return;const[u,d]=Ue(t,o),[f,p,h,m]=Ee.get(t),y=()=>{const e=f[o];return(Le(s.revalidate)?s.revalidate(u().data,r):!1!==s.revalidate)&&(delete h[o],delete m[o],e&&e[0])?e[0](2).then(()=>u().data):u().data};if(e.length<3)return y();let g,b=n,v=!1;const w=st();p[o]=[w,0];const x=!Ie(l),S=u(),j=S.data,O=S._c,R=Ie(O)?j:O;if(x&&(l=Le(l)?l(R,j):l,d({data:l,_c:R})),Le(b))try{b=b(R)}catch(k){g=k,v=!0}if(b&&$e(b)){if(b=yield b.catch(e=>{g=e,v=!0}),w!==p[o][0]){if(v)throw g;return b}v&&x&&(e=>"function"==typeof a?a(e):!1!==a)(g)&&(i=!0,d({data:R,_c:Ne}))}if(i&&!v)if(Le(i)){const e=i(b,R);d({data:e,error:Ne,_c:Ne})}else d({data:b,error:Ne,_c:Ne});if(p[o][1]=st(),Promise.resolve(y()).then(()=>{d({_c:Ne})}),!v)return b;if(c)throw g})}})}const at=(e,t)=>{for(const r in e)e[r][0]&&e[r][0](t)},lt=function e(t,r){var n,o;if(t===r)return!0;if(t&&r&&(n=t.constructor)===r.constructor){if(n===Date)return t.getTime()===r.getTime();if(n===RegExp)return t.toString()===r.toString();if(n===Array){if((o=t.length)===r.length)for(;o--&&e(t[o],r[o]););return-1===o}if(!n||"object"==typeof t){for(n in o=0,t){if(ke.call(t,n)&&++o&&!ke.call(r,n))return!1;if(!(n in r)||!e(t[n],r[n]))return!1}return Object.keys(r).length===o}}return t!=t&&r!=r},[ct,ut]=((e,t)=>{if(!Ee.has(e)){const r=Pe(Xe,t),n=Object.create(null),o=it.bind(Ne,e);let s=_e;const i=Object.create(null),a=(e,t)=>{const r=i[e]||[];return i[e]=r,r.push(t),()=>r.splice(r.indexOf(t),1)},l=(t,r,n)=>{e.set(t,r);const o=i[t];if(o)for(const e of o)e(r,n)},c=()=>{if(!Ee.has(e)&&(Ee.set(e,[n,Object.create(null),Object.create(null),Object.create(null),o,l,a]),!Ge)){const t=r.initFocus(setTimeout.bind(Ne,at.bind(Ne,n,0))),o=r.initReconnect(setTimeout.bind(Ne,at.bind(Ne,n,1)));s=()=>{t&&t(),o&&o(),Ee.delete(e)}}};return c(),[e,o,c,s]}return[e,Ee.get(e)[4]]})(new Map),dt=Pe({onLoadingSlow:_e,onSuccess:_e,onError:_e,onErrorRetry:(e,t,r,n,o)=>{const s=r.errorRetryCount,i=o.retryCount,a=~~((Math.random()+.5)*(1<<(i<8?i:8)))*r.errorRetryInterval;!Ie(s)&&i>s||setTimeout(n,a,o)},onDiscarded:_e,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:Qe?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:Qe?5e3:3e3,compare:lt,isPaused:()=>!1,cache:ct,mutate:ut,fallback:{}},We),ft=t.createContext({}),pt=Ve&&window.__SWR_DEVTOOLS_USE__,ht=pt?window.__SWR_DEVTOOLS_USE__:[],mt=ht.concat(e=>(t,r,n)=>e(t,r&&((...e)=>{const[n]=nt(t),[,,,o]=Ee.get(ct);if(n.startsWith("$inf$"))return r(...e);const s=o[n];return Ie(s)?r(...e):(delete o[n],s)}),n));pt&&(window.__SWR_DEVTOOLS_REACT__=t);const yt=t.use||(e=>{switch(e.status){case"pending":throw e;case"fulfilled":return e.value;case"rejected":throw e.reason;default:throw e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e}}),gt={dedupe:!0},bt=(vt=(e,r,n)=>{const{cache:o,compare:s,suspense:i,fallbackData:a,revalidateOnMount:l,revalidateIfStale:c,refreshInterval:d,refreshWhenHidden:f,refreshWhenOffline:p,keepPreviousData:m}=n,[y,g,b,v]=Ee.get(o),[w,x]=nt(e),S=t.useRef(!1),j=t.useRef(!1),O=t.useRef(w),R=t.useRef(r),k=t.useRef(n),E=()=>k.current,_=()=>E().isVisible()&&E().isOnline(),[N,T,I,L]=Ue(o,w),P=t.useRef({}).current,$=Ie(a)?Ie(n.fallback)?Ne:n.fallback[w]:a,C=(e,t)=>{for(const r in P){const n=r;if("data"===n){if(!s(e[n],t[n])){if(!Ie(e[n]))return!1;if(!s(K,t[n]))return!1}}else if(t[n]!==e[n])return!1}return!0},D=t.useMemo(()=>{const e=!!w&&!!r&&(Ie(l)?!E().isPaused()&&!i&&!1!==c:l),t=t=>{const r=Pe(t);return delete r._k,e?u({isValidating:!0,isLoading:!0},r):r},n=N(),o=L(),s=t(n),a=n===o?s:t(o);let d=s;return[()=>{const e=t(N());return C(e,d)?(d.data=e.data,d.isLoading=e.isLoading,d.isValidating=e.isValidating,d.error=e.error,d):(d=e,e)},()=>a]},[o,w]),A=Re.useSyncExternalStore(t.useCallback(e=>I(w,(t,r)=>{C(r,t)||e()}),[o,w]),D[0],D[1]),V=!S.current,z=y[w]&&y[w].length>0,M=A.data,U=Ie(M)?$&&$e($)?yt($):$:M,q=A.error,F=t.useRef(U),K=m?Ie(M)?Ie(F.current)?U:F.current:M:U,W=!(z&&!Ie(q))&&(V&&!Ie(l)?l:!E().isPaused()&&(i?!Ie(U)&&c:Ie(U)||c)),X=!!(w&&r&&V&&W),B=Ie(A.isValidating)?X:A.isValidating,G=Ie(A.isLoading)?X:A.isLoading,H=t.useCallback(e=>h(this,null,function*(){const t=R.current;if(!w||!t||j.current||E().isPaused())return!1;let r,o,i=!0;const a=e||{},l=!b[w]||!a.dedupe,c=()=>Be?!j.current&&w===O.current&&S.current:w===O.current,u={isValidating:!1,isLoading:!1},d=()=>{T(u)},f=()=>{const e=b[w];e&&e[1]===o&&delete b[w]},p={isValidating:!0};Ie(N().data)&&(p.isLoading=!0);try{if(l&&(T(p),n.loadingTimeout&&Ie(N().data)&&setTimeout(()=>{i&&c()&&E().onLoadingSlow(w,n)},n.loadingTimeout),b[w]=[t(x),st()]),[r,o]=b[w],r=yield r,l&&setTimeout(f,n.dedupingInterval),!b[w]||b[w][1]!==o)return l&&c()&&E().onDiscarded(w),!1;u.error=Ne;const e=g[w];if(!Ie(e)&&(o<=e[0]||o<=e[1]||0===e[1]))return d(),l&&c()&&E().onDiscarded(w),!1;const a=N().data;u.data=s(a,r)?a:r,l&&c()&&E().onSuccess(r,w,n)}catch(h){f();const e=E(),{shouldRetryOnError:t}=e;e.isPaused()||(u.error=h,l&&c()&&(e.onError(h,w,e),(!0===t||Le(t)&&t(h))&&(E().revalidateOnFocus&&E().revalidateOnReconnect&&!_()||e.onErrorRetry(h,w,e,e=>{const t=y[w];t&&t[0]&&t[0](3,e)},{retryCount:(a.retryCount||0)+1,dedupe:!0}))))}return i=!1,d(),!0}),[w,o]),J=t.useCallback((...e)=>it(o,O.current,...e),[]);if(Je(()=>{R.current=r,k.current=n,Ie(M)||(F.current=M)}),Je(()=>{if(!w)return;const e=H.bind(Ne,gt);let t=0;if(E().revalidateOnFocus){const e=Date.now();t=e+E().focusThrottleInterval}const r=((e,t,r)=>{const n=t[e]||(t[e]=[]);return n.push(r),()=>{const e=n.indexOf(r);e>=0&&(n[e]=n[n.length-1],n.pop())}})(w,y,(r,n={})=>{if(0==r){const r=Date.now();E().revalidateOnFocus&&r>t&&_()&&(t=r+E().focusThrottleInterval,e())}else if(1==r)E().revalidateOnReconnect&&_()&&e();else{if(2==r)return H();if(3==r)return H(n)}});return j.current=!1,O.current=w,S.current=!0,T({_k:x}),W&&(b[w]||(Ie(U)||Ge?e():He(e))),()=>{j.current=!0,r()}},[w]),Je(()=>{let e;function t(){const t=Le(d)?d(N().data):d;t&&-1!==e&&(e=setTimeout(r,t))}function r(){N().error||!f&&!E().isVisible()||!p&&!E().isOnline()?t():H(gt).then(t)}return t(),()=>{e&&(clearTimeout(e),e=-1)}},[d,f,p,w]),t.useDebugValue(K),i&&Ie(U)&&w){if(!Be&&Ge)throw new Error("Fallback data is required when using Suspense in SSR.");R.current=r,k.current=n,j.current=!1;const e=v[w];if(!Ie(e)){const t=J(e);yt(t)}if(!Ie(q))throw q;{const e=H(gt);Ie(K)||(e.status="fulfilled",e.value=!0),yt(e)}}return{mutate:J,get data(){return P.data=!0,K},get error(){return P.error=!0,q},get isValidating(){return P.isValidating=!0,B},get isLoading(){return P.isLoading=!0,G}}},function(...e){const r=Pe(dt,t.useContext(ft)),[n,o,s]=(e=>Le(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}])(e),i=((e,t)=>{const r=Pe(e,t);if(t){const{use:n,fallback:o}=e,{use:s,fallback:i}=t;n&&s&&(r.use=n.concat(s)),o&&i&&(r.fallback=Pe(o,i))}return r})(r,s);let a=vt;const{use:l}=i,c=(l||[]).concat(mt);for(let t=c.length;t--;)a=c[t](a);return a(n,o||i.fetcher||null,i)});var vt;function wt(e,t,r,n,o){if("function"==typeof t||!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return t.set(e,r),r}function xt(e,t,r,n){if("a"===r&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)}let St=function(){const{crypto:e}=globalThis;if(null==e?void 0:e.randomUUID)return St=e.randomUUID.bind(e),e.randomUUID();const t=new Uint8Array(1),r=e?()=>e.getRandomValues(t)[0]:()=>255*Math.random()&255;return"10000000-1000-4000-8000-100000000000".replace(/[018]/g,e=>(+e^r()&15>>+e/4).toString(16))};const jt=e=>{if(e instanceof Error)return e;if("object"==typeof e&&null!==e){try{if("[object Error]"===Object.prototype.toString.call(e)){const t=new Error(e.message,e.cause?{cause:e.cause}:{});return e.stack&&(t.stack=e.stack),e.cause&&!t.cause&&(t.cause=e.cause),e.name&&(t.name=e.name),t}}catch(t){}try{return new Error(JSON.stringify(e))}catch(t){}}return new Error(e)};class Ot extends Error{}class Rt extends Ot{constructor(e,t,r,n){super(`${Rt.makeMessage(e,t,r)}`),this.status=e,this.headers=n,this.error=t}static makeMessage(e,t,r){const n=(null==t?void 0:t.message)?"string"==typeof t.message?t.message:JSON.stringify(t.message):t?JSON.stringify(t):r;return e&&n?`${e} ${n}`:e?`${e} status code (no body)`:n||"(no status code or body)"}static generate(e,t,r,n){if(!e||!n)return new Et({message:r,cause:jt(t)});const o=t;return 400===e?new Nt(e,o,r,n):401===e?new Tt(e,o,r,n):403===e?new It(e,o,r,n):404===e?new Lt(e,o,r,n):409===e?new Pt(e,o,r,n):422===e?new $t(e,o,r,n):429===e?new Ct(e,o,r,n):e>=500?new Dt(e,o,r,n):new Rt(e,o,r,n)}}class kt extends Rt{constructor({message:e}={}){super(void 0,void 0,e||"Request was aborted.",void 0)}}class Et extends Rt{constructor({message:e,cause:t}){super(void 0,void 0,e||"Connection error.",void 0),t&&(this.cause=t)}}class _t extends Et{constructor({message:e}={}){super({message:null!=e?e:"Request timed out."})}}class Nt extends Rt{}class Tt extends Rt{}class It extends Rt{}class Lt extends Rt{}class Pt extends Rt{}class $t extends Rt{}class Ct extends Rt{}class Dt extends Rt{}const At=/^[a-z][a-z0-9+.-]*:/i;let Vt=e=>(Vt=Array.isArray,Vt(e)),zt=Vt;const Mt="0.4.0";const Ut=()=>{var e,t,r,n,o;const s="undefined"!=typeof Deno&&null!=Deno.build?"deno":"