idea-react 2.3.4 → 3.0.0-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -1,15 +1,15 @@
1
- import{_ as e}from"@swc/helpers/_/_object_spread";import{_ as t}from"@swc/helpers/_/_object_without_properties";import{Fragment as n,jsx as r,jsxs as i}from"react/jsx-runtime";import a from"classnames";import{_ as o}from"@swc/helpers/_/_define_property";import{_ as s}from"@swc/helpers/_/_object_spread_props";import{Component as c,PureComponent as l,createRef as u,isValidElement as d}from"react";import f from"@shikijs/langs/javascript";import p from"@shikijs/langs/jsx";import m from"@shikijs/langs/tsx";import h from"@shikijs/langs/typescript";import g from"@shikijs/themes/github-light";import{createHighlighterCoreSync as _}from"shiki/core";import{createJavaScriptRegexEngine as v}from"shiki/engine/javascript";import{_ as y}from"@swc/helpers/_/_apply_decs_2203_r";import{_ as b}from"@swc/helpers/_/_class_private_field_get";import{_ as x}from"@swc/helpers/_/_class_private_field_init";import{_ as S}from"@swc/helpers/_/_class_private_field_set";import{_ as C}from"@swc/helpers/_/_identity";import{computed as w,observable as T}from"mobx";import{observer as E}from"mobx-react";import{ObservedComponent as ee,reaction as te}from"mobx-react-helper";import{Day as ne,Second as D,Timestamp as re,blobOf as ie,changeMonth as ae,diffTime as oe,formatDate as O,makeArray as se,scrollTo as ce,sleep as le,splitArray as ue,uniqueID as k}from"web-utility";import{Defer as de}from"iterable-observer";import{_ as A}from"@swc/helpers/_/_async_to_generator";import{createReactEditorJS as fe}from"react-editor-js";import pe from"editorjs-html";import{LiveEditor as me,LiveError as he,LivePreview as ge,LiveProvider as _e}from"react-live";import{Badge as ve,Button as j,Card as ye,Col as M,Dropdown as N,Image as P,Nav as F,OverlayTrigger as be,Popover as I,Row as xe,Spinner as Se,Table as Ce,Toast as L,ToastContainer as we,Tooltip as Te}from"react-bootstrap";import Ee from"html2canvas";var R=Object.create,De=Object.defineProperty,Oe=Object.getOwnPropertyDescriptor,ke=Object.getOwnPropertyNames,Ae=Object.getPrototypeOf,je=Object.prototype.hasOwnProperty,z=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),Me=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var i=ke(t),a=0,o=i.length,s;a<o;a++)s=i[a],!je.call(e,s)&&s!==n&&De(e,s,{get:(e=>t[e]).bind(null,s),enumerable:!(r=Oe(t,s))||r.enumerable});return e},Ne=(e,t,n)=>(n=e==null?{}:R(Ae(e)),Me(t||!e||!e.__esModule||!je.call(e,`default`)?De(n,`default`,{value:e,enumerable:!0}):n,e)),Pe=(e=>typeof require<`u`?require:typeof Proxy<`u`?new Proxy(e,{get:(e,t)=>(typeof require<`u`?require:e)[t]}):e)(function(e){if(typeof require<`u`)return require.apply(this,arguments);throw Error('Calling `require` for "'+e+"\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.")});function Fe(e){return t=>t&&new IntersectionObserver(([{isIntersecting:t,target:n}],r)=>{if(!t)return;let i=[`animate__animated`,`animate__${e}`];n.classList.add(...i),n.addEventListener(`animationend`,()=>n.classList.remove(...i),{once:!0}),r.disconnect()}).observe(t)}const Ie=n=>{let{className:i,style:o,size:s=3}=n,c=t(n,[`className`,`style`,`size`]);return r(`img`,e({className:a(`object-fit-cover rounded-circle`,i),style:e({width:`${s}rem`,height:`${s}rem`},o)},c))};Ie.displayName=`Avatar`;var Le=class extends l{componentDidMount(){window.addEventListener(`click`,this.switchClick,!0)}componentWillUnmount(){window.removeEventListener(`click`,this.switchClick,!0)}render(){let n=this.props,{children:i,onInnerClick:a,onOuterClick:o}=n,c=t(n,[`children`,`onInnerClick`,`onOuterClick`]);return r(`div`,s(e({ref:this.root},c),{children:i}))}constructor(...e){super(...e),o(this,`root`,u()),o(this,`switchClick`,e=>{var t;let{onInnerClick:n,onOuterClick:r}=this.props;(t=this.root.current)!=null&&t.contains(e.target)?n==null||n(e):r==null||r(e)})}},Re=z((e=>{Object.defineProperty(e,"__esModule",{value:!0});
1
+ import{_ as e}from"@swc/helpers/_/_object_spread";import{_ as t}from"@swc/helpers/_/_object_without_properties";import{Fragment as n,jsx as r,jsxs as i}from"react/jsx-runtime";import a from"classnames";import{_ as o}from"@swc/helpers/_/_object_spread_props";import{_ as s}from"@swc/helpers/_/_define_property";import*as c from"react";import l,{Component as u,Fragment as d,PureComponent as f,createRef as p,isValidElement as m}from"react";import h from"@shikijs/langs/javascript";import g from"@shikijs/langs/jsx";import _ from"@shikijs/langs/tsx";import v from"@shikijs/langs/typescript";import y from"@shikijs/themes/github-light";import{createHighlighterCoreSync as ee}from"shiki/core";import{createJavaScriptRegexEngine as b}from"shiki/engine/javascript";import{_ as x}from"@swc/helpers/_/_apply_decs_2203_r";import{_ as S}from"@swc/helpers/_/_class_private_field_get";import{_ as C}from"@swc/helpers/_/_class_private_field_init";import{_ as w}from"@swc/helpers/_/_class_private_field_set";import{_ as T}from"@swc/helpers/_/_identity";import{action as te,computed as E,observable as D}from"mobx";import{observer as O}from"mobx-react";import{ObservedComponent as ne,reaction as re}from"mobx-react-helper";import{Day as ie,Second as ae,Timestamp as oe,blobOf as se,changeMonth as ce,diffTime as le,formatDate as k,makeArray as ue,scrollTo as de,sleep as fe,splitArray as pe,uniqueID as me}from"web-utility";import{Defer as he}from"iterable-observer";import{_ as A}from"@swc/helpers/_/_async_to_generator";import{createReactEditorJS as ge}from"react-editor-js";import _e from"editorjs-html";import{LiveEditor as ve,LiveError as ye,LivePreview as be,LiveProvider as xe}from"react-live";import{Badge as Se,Button as Ce,Card as we,Col as Te,Dropdown as j,Image as Ee,Nav as M,OverlayTrigger as De,Popover as Oe,Row as ke,Spinner as Ae,Table as je,Toast as Me,ToastContainer as Ne,Tooltip as Pe}from"react-bootstrap";import Fe from"html2canvas";var Ie=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t,t.exports),e=null),t.exports);function Le(e){return t=>t&&new IntersectionObserver(([{isIntersecting:t,target:n}],r)=>{if(!t)return;let i=[`animate__animated`,`animate__${e}`];n.classList.add(...i),n.addEventListener(`animationend`,()=>n.classList.remove(...i),{once:!0}),r.disconnect()}).observe(t)}const Re=n=>{let{className:i,style:o,size:s=3}=n,c=t(n,[`className`,`style`,`size`]);return/*#__PURE__*/ r(`img`,e({className:a(`object-fit-cover rounded-circle`,i),style:e({width:`${s}rem`,height:`${s}rem`},o)},c))};Re.displayName=`Avatar`;const ze=e=>typeof e.href==`string`,Be=n=>{let{variant:i=`solid`,theme:s,pill:c,className:l}=n,u=t(n,[`variant`,`theme`,`pill`,`className`]),d=a(`badge`,i!==`solid`&&`badge-${i}`,s&&`theme-${s}`,{"rounded-pill":c},l);return ze(u)?/*#__PURE__*/ r(`a`,o(e({},u),{className:d})):/*#__PURE__*/ r(`span`,o(e({},u),{className:d}))},Ve=e=>typeof e.href==`string`,He=e=>e.preventDefault(),Ue=n=>{let{variant:i,theme:s,size:c,icon:l,styled:u,disabled:d,className:f}=n,p=t(n,[`variant`,`theme`,`size`,`icon`,`styled`,`disabled`,`className`]),m=a(i?`btn-${i}`:`btn`,s&&`theme-${s}`,c&&`btn-${c}`,{"btn-icon":l,"btn-styled":u,disabled:d},f);return Ve(p)?/*#__PURE__*/ r(`a`,o(e({},p),{className:m,href:d?void 0:p.href,"aria-disabled":d||void 0,tabIndex:d?-1:p.tabIndex,onClick:d?He:p.onClick})):/*#__PURE__*/ r(`button`,o(e({},p),{type:p.type||`button`,className:m,disabled:d}))};var We=class extends f{componentDidMount(){window.addEventListener(`click`,this.switchClick,!0)}componentWillUnmount(){window.removeEventListener(`click`,this.switchClick,!0)}render(){let n=this.props,{children:i,onInnerClick:a,onOuterClick:s}=n,c=t(n,[`children`,`onInnerClick`,`onOuterClick`]);return/*#__PURE__*/ r(`div`,o(e({ref:this.root},c),{children:i}))}constructor(...e){super(...e),s(this,`root`,/*#__PURE__*/ p()),s(this,`switchClick`,e=>{var t;let{onInnerClick:n,onOuterClick:r}=this.props;(t=this.root.current)!=null&&t.contains(e.target)?n==null||n(e):r==null||r(e)})}};
2
2
  /*!
3
3
  * is-plain-object <https://github.com/jonschlinkert/is-plain-object>
4
4
  *
5
5
  * Copyright (c) 2014-2017, Jon Schlinkert.
6
6
  * Released under the MIT License.
7
7
  */
8
- function t(e){return Object.prototype.toString.call(e)===`[object Object]`}function n(e){var n,r;return t(e)!==!1&&(n=e.constructor,n===void 0||(r=n.prototype,t(r)!==!1&&r.hasOwnProperty(`isPrototypeOf`)!==!1))}e.isPlainObject=n})),ze=z((e=>{var t=e&&e.__assign||function(){return t=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},t.apply(this,arguments)},n=e&&e.__spreadArray||function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))};Object.defineProperty(e,"__esModule",{value:!0}),e.prettyPrint=void 0;var r=[];function i(e){var t=typeof e;return e!==null&&(t===`object`||t===`function`)}function a(e){return Object.prototype.toString.call(e)===`[object RegExp]`}function o(e){return Object.getOwnPropertySymbols(e).filter(function(t){return Object.prototype.propertyIsEnumerable.call(e,t)})}function s(e,c,l){l===void 0&&(l=``);var u=t(t({},{indent:` `,singleQuotes:!0}),c),d=u.inlineCharacterLimit===void 0?{newLine:`
8
+ function Ge(e){return Object.prototype.toString.call(e)===`[object Object]`}function Ke(e){var t,n;return Ge(e)!==!1&&(t=e.constructor,t===void 0||(n=t.prototype,Ge(n)!==!1&&n.hasOwnProperty(`isPrototypeOf`)!==!1))}var qe=/* @__PURE__ */ Ie(((e,t,n)=>{var r=n&&n.__assign||function(){return r=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},r.apply(this,arguments)},i=n&&n.__spreadArray||function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))};Object.defineProperty(e,"__esModule",{value:!0}),e.prettyPrint=void 0;var a=[];function o(e){var t=typeof e;return e!==null&&(t===`object`||t===`function`)}function s(e){return Object.prototype.toString.call(e)===`[object RegExp]`}function c(e){return Object.getOwnPropertySymbols(e).filter(function(t){return Object.prototype.propertyIsEnumerable.call(e,t)})}function l(e,t,n){n===void 0&&(n=``);var u=r(r({},{indent:` `,singleQuotes:!0}),t),d=u.inlineCharacterLimit===void 0?{newLine:`
9
9
  `,newLineOrSpace:`
10
- `,pad:l,indent:l+u.indent}:{newLine:`@@__PRETTY_PRINT_NEW_LINE__@@`,newLineOrSpace:`@@__PRETTY_PRINT_NEW_LINE_OR_SPACE__@@`,pad:`@@__PRETTY_PRINT_PAD__@@`,indent:`@@__PRETTY_PRINT_INDENT__@@`},f=function(e){if(u.inlineCharacterLimit===void 0)return e;var t=e.replace(new RegExp(d.newLine,`g`),``).replace(new RegExp(d.newLineOrSpace,`g`),` `).replace(RegExp(d.pad+`|`+d.indent,`g`),``);return t.length<=u.inlineCharacterLimit?t:e.replace(RegExp(d.newLine+`|`+d.newLineOrSpace,`g`),`
11
- `).replace(new RegExp(d.pad,`g`),l).replace(new RegExp(d.indent,`g`),l+u.indent)};if(r.indexOf(e)!==-1)return`"[Circular]"`;if(e==null||typeof e==`number`||typeof e==`boolean`||typeof e==`function`||typeof e==`symbol`||a(e))return String(e);if(e instanceof Date)return`new Date('${e.toISOString()}')`;if(Array.isArray(e)){if(e.length===0)return`[]`;r.push(e);var p=`[`+d.newLine+e.map(function(t,n){var r=e.length-1===n?d.newLine:`,`+d.newLineOrSpace,i=s(t,u,l+u.indent);return u.transform&&(i=u.transform(e,n,i)),d.indent+i+r}).join(``)+d.pad+`]`;return r.pop(),f(p)}if(i(e)){var m=n(n([],Object.keys(e),!0),o(e),!0);if(u.filter&&(m=m.filter(function(t){return u.filter&&u.filter(e,t)})),m.length===0)return`{}`;r.push(e);var p=`{`+d.newLine+m.map(function(t,n){var r=m.length-1===n?d.newLine:`,`+d.newLineOrSpace,i=typeof t==`symbol`,a=!i&&/^[a-z$_][a-z$_0-9]*$/i.test(t.toString()),o=i||a?t:s(t,u),c=s(e[t],u,l+u.indent);return u.transform&&(c=u.transform(e,t,c)),d.indent+String(o)+`: `+c+r}).join(``)+d.pad+`}`;return r.pop(),f(p)}return e=String(e).replace(/[\r\n]/g,function(e){return e===`
12
- `?`\\n`:`\\r`}),u.singleQuotes?(e=e.replace(/\\?'/g,`\\'`),`'${e}'`):(e=e.replace(/"/g,`\\"`),`"${e}"`)}e.prettyPrint=s})),Be=z((e=>{
10
+ `,pad:n,indent:n+u.indent}:{newLine:`@@__PRETTY_PRINT_NEW_LINE__@@`,newLineOrSpace:`@@__PRETTY_PRINT_NEW_LINE_OR_SPACE__@@`,pad:`@@__PRETTY_PRINT_PAD__@@`,indent:`@@__PRETTY_PRINT_INDENT__@@`},f=function(e){if(u.inlineCharacterLimit===void 0)return e;var t=e.replace(new RegExp(d.newLine,`g`),``).replace(new RegExp(d.newLineOrSpace,`g`),` `).replace(RegExp(d.pad+`|`+d.indent,`g`),``);return t.length<=u.inlineCharacterLimit?t:e.replace(RegExp(d.newLine+`|`+d.newLineOrSpace,`g`),`
11
+ `).replace(new RegExp(d.pad,`g`),n).replace(new RegExp(d.indent,`g`),n+u.indent)};if(a.indexOf(e)!==-1)return`"[Circular]"`;if(e==null||typeof e==`number`||typeof e==`boolean`||typeof e==`function`||typeof e==`symbol`||s(e))return String(e);if(e instanceof Date)return`new Date('${e.toISOString()}')`;if(Array.isArray(e)){if(e.length===0)return`[]`;a.push(e);var p=`[`+d.newLine+e.map(function(t,r){var i=e.length-1===r?d.newLine:`,`+d.newLineOrSpace,a=l(t,u,n+u.indent);return u.transform&&(a=u.transform(e,r,a)),d.indent+a+i}).join(``)+d.pad+`]`;return a.pop(),f(p)}if(o(e)){var m=i(i([],Object.keys(e),!0),c(e),!0);if(u.filter&&(m=m.filter(function(t){return u.filter&&u.filter(e,t)})),m.length===0)return`{}`;a.push(e);var p=`{`+d.newLine+m.map(function(t,r){var i=m.length-1===r?d.newLine:`,`+d.newLineOrSpace,a=typeof t==`symbol`,o=!a&&/^[a-z$_][a-z$_0-9]*$/i.test(t.toString()),s=a||o?t:l(t,u),c=l(e[t],u,n+u.indent);return u.transform&&(c=u.transform(e,t,c)),d.indent+String(s)+`: `+c+i}).join(``)+d.pad+`}`;return a.pop(),f(p)}return e=String(e).replace(/[\r\n]/g,function(e){return e===`
12
+ `?`\\n`:`\\r`}),u.singleQuotes?(e=e.replace(/\\?'/g,`\\'`),`'${e}'`):(e=e.replace(/"/g,`\\"`),`"${e}"`)}e.prettyPrint=l})),Je=/* @__PURE__ */ Ie((e=>{
13
13
  /** @license React v16.13.1
14
14
  * react-is.production.min.js
15
15
  *
@@ -18,15 +18,15 @@ function t(e){return Object.prototype.toString.call(e)===`[object Object]`}funct
18
18
  * This source code is licensed under the MIT license found in the
19
19
  * LICENSE file in the root directory of this source tree.
20
20
  */
21
- var t=typeof Symbol==`function`&&Symbol.for,n=t?Symbol.for(`react.element`):60103,r=t?Symbol.for(`react.portal`):60106,i=t?Symbol.for(`react.fragment`):60107,a=t?Symbol.for(`react.strict_mode`):60108,o=t?Symbol.for(`react.profiler`):60114,s=t?Symbol.for(`react.provider`):60109,c=t?Symbol.for(`react.context`):60110,l=t?Symbol.for(`react.async_mode`):60111,u=t?Symbol.for(`react.concurrent_mode`):60111,d=t?Symbol.for(`react.forward_ref`):60112,f=t?Symbol.for(`react.suspense`):60113,p=t?Symbol.for(`react.suspense_list`):60120,m=t?Symbol.for(`react.memo`):60115,h=t?Symbol.for(`react.lazy`):60116,g=t?Symbol.for(`react.block`):60121,_=t?Symbol.for(`react.fundamental`):60117,v=t?Symbol.for(`react.responder`):60118,y=t?Symbol.for(`react.scope`):60119;function b(e){if(typeof e==`object`&&e){var t=e.$$typeof;switch(t){case n:switch(e=e.type,e){case l:case u:case i:case o:case a:case f:return e;default:switch(e=e&&e.$$typeof,e){case c:case d:case h:case m:case s:return e;default:return t}}case r:return t}}}function x(e){return b(e)===u}e.AsyncMode=l,e.ConcurrentMode=u,e.ContextConsumer=c,e.ContextProvider=s,e.Element=n,e.ForwardRef=d,e.Fragment=i,e.Lazy=h,e.Memo=m,e.Portal=r,e.Profiler=o,e.StrictMode=a,e.Suspense=f,e.isAsyncMode=function(e){return x(e)||b(e)===l},e.isConcurrentMode=x,e.isContextConsumer=function(e){return b(e)===c},e.isContextProvider=function(e){return b(e)===s},e.isElement=function(e){return typeof e==`object`&&!!e&&e.$$typeof===n},e.isForwardRef=function(e){return b(e)===d},e.isFragment=function(e){return b(e)===i},e.isLazy=function(e){return b(e)===h},e.isMemo=function(e){return b(e)===m},e.isPortal=function(e){return b(e)===r},e.isProfiler=function(e){return b(e)===o},e.isStrictMode=function(e){return b(e)===a},e.isSuspense=function(e){return b(e)===f},e.isValidElementType=function(e){return typeof e==`string`||typeof e==`function`||e===i||e===u||e===o||e===a||e===f||e===p||typeof e==`object`&&!!e&&(e.$$typeof===h||e.$$typeof===m||e.$$typeof===s||e.$$typeof===c||e.$$typeof===d||e.$$typeof===_||e.$$typeof===v||e.$$typeof===y||e.$$typeof===g)},e.typeOf=b})),Ve=z(((e,t)=>{t.exports=Be()})),He=Ne(z((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=Re(),n=Pe(`react`),r=ze(),i=Ve();function a(e){return e&&typeof e==`object`&&`default`in e?e:{default:e}}function o(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach(function(n){if(n!=="default"){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}}),t.default=e,Object.freeze(t)}var s=o(n),c=a(n),l=(function(e,t){return e===0?``:Array(e*t).fill(` `).join(``)});function u(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function d(e){if(Array.isArray(e))return u(e)}function f(e,t,n){return(t=y(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function p(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function m(){throw TypeError(`Invalid attempt to spread non-iterable instance.
22
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function g(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?h(Object(n),!0).forEach(function(t){f(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function _(e){return d(e)||p(e)||x(e)||m()}function v(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function y(e){var t=v(e,`string`);return typeof t==`symbol`?t:t+``}function b(e){"@babel/helpers - typeof";return b=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},b(e)}function x(e,t){if(e){if(typeof e==`string`)return u(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(e,t):void 0}}function S(e,t){if(e===null||b(e)!==`object`||e instanceof Date||e instanceof RegExp)return e;if(s.isValidElement(e)){var n=g({},e);return delete n._owner,n}return t.add(e),Array.isArray(e)?e.map(function(e){return S(e,t)}):Object.keys(e).sort().reduce(function(n,r){return n[r]=r===`current`||t.has(e[r])?`[Circular]`:S(e[r],t),n},{})}function C(e){return S(e,new WeakSet)}var w=function(e){return{type:`string`,value:e}},T=function(e){return{type:`number`,value:e}},E=function(e,t,n,r){return{type:`ReactElement`,displayName:e,props:t,defaultProps:n,childrens:r}},ee=function(e,t){return{type:`ReactFragment`,key:e,childrens:t}},te=!!n.Fragment,ne=function(e){return!e.name||e.name===`_default`?`No Display Name`:e.name},D=function(e){switch(!0){case!!e.displayName:return e.displayName;case e.$$typeof===i.Memo:return D(e.type);case e.$$typeof===i.ForwardRef:return D(e.render);default:return ne(e)}},re=function(e){switch(!0){case typeof e.type==`string`:return e.type;case typeof e.type==`function`:return e.type.displayName?e.type.displayName:ne(e.type);case i.isForwardRef(e):case i.isMemo(e):return D(e.type);case i.isContextConsumer(e):return`${e.type._context.displayName||`Context`}.Consumer`;case i.isContextProvider(e):return`${e.type.displayName||`Context`}.Provider`;case i.isLazy(e):return`Lazy`;case i.isProfiler(e):return`Profiler`;case i.isStrictMode(e):return`StrictMode`;case i.isSuspense(e):return`Suspense`;default:return`UnknownElementType`}},ie=function(e,t){return t!==`children`},ae=function(e){return e!==!0&&e!==!1&&e!==null&&e!==``},oe=function(e,t){var n={};return Object.keys(e).filter(function(n){return t(e[n],n)}).forEach(function(t){return n[t]=e[t]}),n},O=function(e,t){var r=t.displayName,i=r===void 0?re:r;if(typeof e==`string`)return w(e);if(typeof e==`number`)return T(e);if(!c.default.isValidElement(e))throw Error(`react-element-to-jsx-string: Expected a React.Element, got \`${b(e)}\``);var a=i(e),o=oe(e.props,ie),s=e.key;typeof s==`string`&&s.search(/^\./)&&(o.key=s);var l=oe(e.type.defaultProps||{},ie),u=c.default.Children.toArray(e.props.children).filter(ae).map(function(e){return O(e,t)});return te&&e.type===n.Fragment?ee(s,u):E(a,o,l,u)};function se(){}var ce=function(e){return e.toString().split(`
23
- `).map(function(e){return e.trim()}).join(``)},le=function(e){return e.toString()},ue=ce,k=(function(e,t){var n=t.functionValue,r=n===void 0?ue:n;return!t.showFunctions&&r===ue?r(se):r(e)}),de=(function(e,t,i,a){var o=C(e),s=r.prettyPrint(o,{transform:function(e,t,r){var o=e[t];return o&&n.isValidElement(o)?R(O(o,a),!0,i,a):typeof o==`function`?k(o,a):r}});return t?s.replace(/\s+/g,` `).replace(/{ /g,`{`).replace(/ }/g,`}`).replace(/\[ /g,`[`).replace(/ ]/g,`]`):s.replace(/\t/g,l(1,a.tabStop)).replace(/\n([^$])/g,`
24
- ${l(i+1,a.tabStop)}\$1`)}),A=function(e){return e.replace(/"/g,`&quot;`)},fe=function(e,r,i,a){if(typeof e==`number`)return`{${String(e)}}`;if(typeof e==`string`)return`"${A(e)}"`;if(b(e)===`symbol`){var o=e.valueOf().toString().replace(/Symbol\((.*)\)/,`$1`);return o?`{Symbol('${o}')}`:`{Symbol()}`}return typeof e==`function`?`{${k(e,a)}}`:n.isValidElement(e)?`{${R(O(e,a),!0,i,a)}}`:e instanceof Date?isNaN(e.valueOf())?`{new Date(NaN)}`:`{new Date("${e.toISOString()}")}`:t.isPlainObject(e)||Array.isArray(e)?`{${de(e,r,i,a)}}`:`{${String(e)}}`},pe=(function(e,t,n,r,i,a,o,s){if(!t&&!r)throw Error(`The prop "${e}" has no value and no default: could not be formatted`);var c=t?n:i,u=s.useBooleanShorthandSyntax,d=s.tabStop,f=fe(c,a,o,s),p=` `,m=`
25
- ${l(o+1,d)}`,h=f.includes(`
26
- `);return u&&f===`{false}`&&!r?(p=``,m=``):u&&f===`{true}`?(p+=`${e}`,m+=`${e}`):(p+=`${e}=${f}`,m+=`${e}=${f}`),{attributeFormattedInline:p,attributeFormattedMultiline:m,isMultilineAttribute:h}}),me=(function(e,t){var n=e.slice(0,e.length>0?e.length-1:0),r=e[e.length-1];return r&&(t.type===`string`||t.type===`number`)&&(r.type===`string`||r.type===`number`)?n.push(w(String(r.value)+String(t.value))):(r&&n.push(r),n.push(t)),n}),he=function(e){return[`key`,`ref`].includes(e)},ge=(function(e){return function(t){var n=t.includes(`key`),r=t.includes(`ref`),i=t.filter(function(e){return!he(e)}),a=_(e?i.sort():i);return r&&a.unshift(`ref`),n&&a.unshift(`key`),a}});function _e(e,t){return Array.isArray(t)?function(e){return t.indexOf(e)===-1}:function(n){return t(e[n],n)}}var ve=function(e,t,n,r,i){var a=i.tabStop;return e.type===`string`?t.split(`
27
- `).map(function(e,t){return t===0?e:`${l(r,a)}${e}`}).join(`
28
- `):t},j=function(e,t,n){return function(r){return ve(r,R(r,e,t,n),e,t,n)}},ye=function(e,t){return function(n){var r=Object.keys(e).includes(n);return!r||r&&e[n]!==t[n]}},M=function(e,t,n,r,i){return i?l(n,r).length+t.length>i:e.length>1},N=function(e,t,n,r,i,a,o){return(M(e,t,i,a,o)||n)&&!r},P=(function(e,t,n,r){var i=e.type,a=e.displayName,o=a===void 0?``:a,s=e.childrens,c=e.props,u=c===void 0?{}:c,d=e.defaultProps,f=d===void 0?{}:d;if(i!==`ReactElement`)throw Error(`The "formatReactElementNode" function could only format node of type "ReactElement". Given: ${i}`);var p=r.filterProps,m=r.maxInlineAttributesLineLength,h=r.showDefaultProps,g=r.sortProps,_=r.tabStop,v=`<${o}`,y=v,b=v,x=!1,S=[],C=_e(u,p);Object.keys(u).filter(C).filter(ye(f,u)).forEach(function(e){return S.push(e)}),Object.keys(f).filter(C).filter(function(){return h}).filter(function(e){return!S.includes(e)}).forEach(function(e){return S.push(e)});var w=ge(g)(S);if(w.forEach(function(e){var i=pe(e,Object.keys(u).includes(e),u[e],Object.keys(f).includes(e),f[e],t,n,r),a=i.attributeFormattedInline,o=i.attributeFormattedMultiline;i.isMultilineAttribute&&(x=!0),y+=a,b+=o}),b+=`
29
- ${l(n,_)}`,v=N(w,y,x,t,n,_,m)?b:y,s&&s.length>0){var T=n+1;v+=`>`,t||(v+=`
30
- `,v+=l(T,_)),v+=s.reduce(me,[]).map(j(t,T,r)).join(t?``:`
31
- ${l(T,_)}`),t||(v+=`
32
- `,v+=l(T-1,_)),v+=`</${o}>`}else M(w,y,n,_,m)||(v+=` `),v+=`/>`;return v}),F=``,be=`React.Fragment`,I=function(e,t,n){var r={};return t&&(r={key:t}),{type:`ReactElement`,displayName:e,props:r,defaultProps:{},childrens:n}},xe=function(e){return!!e.key},Se=function(e){return e.childrens.length===0},Ce=(function(e,t,n,r){var i=e.type,a=e.key,o=e.childrens;if(i!==`ReactFragment`)throw Error(`The "formatReactFragmentNode" function could only format node of type "ReactFragment". Given: ${i}`);return P(I(r.useFragmentShortSyntax?Se(e)||xe(e)?be:F:be,a,o),t,n,r)}),L=[`<`,`>`,`{`,`}`],we=function(e){return L.some(function(t){return e.includes(t)})},Te=function(e){return we(e)?`{\`${e}\`}`:e},Ee=function(e){var t=e;return t.endsWith(` `)&&(t=t.replace(/^(.*?)(\s+)$/,`$1{'$2'}`)),t.startsWith(` `)&&(t=t.replace(/^(\s+)(.*)$/,`{'$1'}$2`)),t},R=(function(e,t,n,r){if(e.type===`number`)return String(e.value);if(e.type===`string`)return e.value?`${Ee(Te(String(e.value)))}`:``;if(e.type===`ReactElement`)return P(e,t,n,r);if(e.type===`ReactFragment`)return Ce(e,t,n,r);throw TypeError(`Unknow format type "${e.type}"`)}),De=(function(e,t){return R(e,!1,0,t)});e.default=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.filterProps,r=n===void 0?[]:n,i=t.showDefaultProps,a=i===void 0||i,o=t.showFunctions,s=o!==void 0&&o,c=t.functionValue,l=t.tabStop,u=l===void 0?2:l,d=t.useBooleanShorthandSyntax,f=d===void 0||d,p=t.useFragmentShortSyntax,m=p===void 0||p,h=t.sortProps,g=h===void 0||h,_=t.maxInlineAttributesLineLength,v=t.displayName;if(!e)throw Error(`react-element-to-jsx-string: Expected a ReactElement`);var y={filterProps:r,showDefaultProps:a,showFunctions:s,functionValue:c,tabStop:u,useBooleanShorthandSyntax:f,useFragmentShortSyntax:m,sortProps:g,maxInlineAttributesLineLength:_,displayName:v};return De(O(e,y),y)},e.inlineFunction=ce,e.preserveFunctionLineBreak=le}))());const Ue=_({themes:[g],langs:[f,p,h,m],engine:v()}),We=i=>{let{className:a=``,language:o,children:c}=i,l=t(i,[`className`,`language`,`children`]),u=typeof c==`string`?c:(0,He.default)(d(c)?c:r(n,{children:c})),f=Ue.codeToHtml(u,{lang:o,theme:`github-light`,structure:`inline`});return r(`pre`,s(e({className:`m-0 language-${o} ${a}`},l),{children:r(`code`,{dangerouslySetInnerHTML:{__html:f},className:`language-${o}`})}))},Ge=[`primary`,`secondary`,`success`,`danger`,`warning`,`info`,`dark`,`light`];function Ke(e,t=[]){let n=t[0]?Ge.filter(e=>!t.find(t=>t===e)):Ge;return n[[...e].reduce((e,t)=>e+t.charCodeAt(0),0)%n.length]}let qe;var B,Je,Ye,Xe,Ze,Qe=te(e=>e.observedProps.endTime),$e,et;let tt;new(qe=(B=new WeakMap,Je=class extends (Ze=ee){get rest(){return b(this,B)}set rest(e){S(this,B,e)}get endTimestamp(){return+new Date(this.props.endTime||Date.now())}get timeSections(){let{units:e}=this.observedProps,{rest:t}=this;return e.reduce((n,{label:r},i)=>{let a=e.slice(i).map(({scale:e})=>e).reduce((e,t)=>e*t,1),o=~~(t/a);return t-=o*a,n.push({value:o,label:r}),n},[])}stop(){this.timer&&(window.clearInterval(this.timer),this.timer=0)}componentDidMount(){super.componentDidMount(),this.initTimer()}initTimer(){this.stop(),this.tick(),this.timer=window.setInterval(this.tick,D)}componentWillUnmount(){super.componentWillUnmount(),this.stop()}render(){let n=this.props,{className:a=``,itemClassName:o=`border rounded px-4 py-3 d-flex flex-column justify-content-center align-items-center`,units:c,endTime:l,onEnd:u}=n,d=t(n,[`className`,`itemClassName`,`units`,`endTime`,`onEnd`]),{timeSections:f}=this;return r(`ol`,s(e({className:`list-unstyled m-0 ${a}`},d),{children:f.map(({value:e,label:t})=>i(`li`,{className:o,children:[r(`strong`,{children:(e+``).padStart(2,`0`)}),r(`span`,{children:t})]},t))}))}constructor(...e){super(...e),x(this,B,{writable:!0,value:(et(this),$e(this,0))}),o(this,`timer`,0),o(this,`tick`,()=>{let{onEnd:e,endTime:t}=this.props,n=this.endTimestamp-Date.now();n>0?this.rest=n:(this.rest=0,this.stop(),e==null||e(t))})}},{e:[$e,et],c:[tt,Xe]}=y(Je,[[T,1,`rest`],[w,3,`timeSections`],[Qe,2,`initTimer`]],[E],Ze),Je),Ye=class extends C{constructor(){super(tt),o(this,`displayName`,`Countdown`),Xe()}},o(Ye,qe,void 0),Ye);var nt,rt,it,at=class extends Error{constructor(e=`Dialog closed`){super(e)}},ot=new WeakMap,st=new WeakMap,ct=class{get input(){return b(this,ot)}set input(e){S(this,ot,e)}get defer(){return b(this,st)}set defer(e){S(this,st,e)}open(e){return e&&(this.input=e),this.defer=new de,this.defer.promise.finally(()=>this.defer=void 0),this.defer.promise}constructor(t){x(this,ot,{writable:!0,value:(it(this),nt(this,{}))}),x(this,st,{writable:!0,value:rt(this)}),o(this,`Component`,void 0),this.Component=E(n=>r(t,s(e({},n,this.input),{defer:this.defer}))),this.Component.displayName=`DialogComponent`}};({e:[nt,rt,it]}=y(ct,[[T,1,`input`],[T,1,`defer`]],[]));let lt;var V,ut,dt,ft,pt,mt,ht;const gt=fe();let _t;new(lt=(V=new WeakMap,ut=class extends (pt=c){get innerValue(){return b(this,V)}set innerValue(e){S(this,V,e)}render(){let n=this.props,{name:a,required:o,children:c}=n,l=t(n,[`name`,`required`,`children`]),{innerValue:u}=this;return i(`div`,{className:`form-control`,tabIndex:-1,onBlur:this.save,children:[r(`input`,{hidden:!0,name:a,required:o,value:JSON.stringify(u)}),r(gt,s(e({},l),{onInitialize:e=>{var t;this.core=e,(t=l.onInitialize)==null||t.call(l,e)}}))]})}constructor(...e){var t;super(...e),t=this,o(this,`core`,void 0),x(this,V,{writable:!0,value:(ht(this),mt(this,this.props.defaultValue))}),o(this,`save`,()=>A(function*(){return t.core&&(t.innerValue=yield t.core.save())})())}},{e:[mt,ht],c:[_t,ft]}=y(ut,[[T,1,`innerValue`]],[E],pt),ut),dt=class extends C{constructor(){super(_t),o(this,`displayName`,`Editor`),ft()}},o(dt,lt,void 0),dt);const vt=pe({link:({data:{link:e}})=>`<a href="${e}">${e}</a>`}),yt=n=>{let{data:i}=n,a=t(n,[`data`]);return r(`article`,s(e({},a),{dangerouslySetInnerHTML:{__html:vt.parse(i)}}))};yt.displayName=`EditorHTML`;const H=n=>{let{className:i=``,children:a,maxWidth:o=`100%`,duration:c,height:l}=n,u=t(n,[`className`,`children`,`maxWidth`,`duration`,`height`]);return r(`div`,s(e({className:`overflow-hidden mw-100 ${i}`},u),{children:r(`div`,{className:`d-inline-block align-top text-nowrap lRDfma_scrollWrap`,style:{maxWidth:o,animationDuration:c,height:l,lineHeight:l},children:r(`div`,{className:`d-inline-block lRDfma_scrollItem`,style:{animationDuration:c},children:a})})}))},bt=({children:e,maxWidth:t,duration:n,height:a})=>a?r(`div`,{className:`overflow-hidden lRDfma_scrollHeightWrap`,style:{maxWidth:t,"--scroll-height":a},children:i(`div`,{className:`d-inline-block overflow-hidden mw-100 lRDfma_scrollContainer`,children:[r(`div`,{className:`d-block overflow-hidden text-wrap text-break lRDfma_unScrollItem`,children:e}),r(H,{duration:n,children:e})]})}):r(H,{maxWidth:t,duration:n,height:a,children:e});H.displayName=`HorizontalMarquee`;const U=n=>{let{className:i,style:o,name:s,size:c}=n,l=t(n,[`className`,`style`,`name`,`size`]);return r(`span`,e({className:a(`bi-${s}`,i),style:e({fontSize:c&&`${c}rem`},o)},l))};U.displayName=`Icon`;const xt=({scope:e,children:t})=>{let a=typeof t==`string`?t:(0,He.default)(d(t)?t:r(n,{children:t}));return i(_e,{code:a,scope:e,language:`tsx`,children:[r(ge,{className:`mb-3`}),r(me,{}),r(he,{className:`text-danger small p-2`})]})},St=n=>{let{className:a=``,children:o=`Loading...`}=n,c=t(n,[`className`,`children`]);return i(`div`,s(e({className:`fixed-top h-100 w-100 d-flex justify-content-center align-items-center opacity-25 bg-black ${a}`},c),{children:[r(Se,{animation:`border`,variant:`success`}),r(`span`,{className:`ml-3 text-white`,children:o})]}))};St.displayName=`Loading`;const Ct=n=>{let{title:a,detail:o,children:c}=n,l=t(n,[`title`,`detail`,`children`]);return r(be,s(e({},l),{overlay:o?i(I,{children:[r(I.Header,{children:a}),r(I.Body,{children:o})]}):r(Te,{children:a}),children:c}))};Ct.displayName=`OverlayBox`;let wt;var W,Tt,Et,Dt,Ot,kt,At;let jt;new(wt=(W=new WeakMap,Tt=class extends (Ot=ee){get weekFormatter(){var e;let{locale:t=(e=globalThis.navigator)==null?void 0:e.language}=this.observedProps;return new Intl.DateTimeFormat(t,{weekday:`long`})}get currentDate(){return b(this,W)}set currentDate(e){S(this,W,e)}get dateGrid(){let e=new Date(this.currentDate);e.setDate(1),e=new Date(+e-e.getDay()*ne);let t=Array.from(Array(42),(t,n)=>new Date(+e+n*ne));return ue(t,7)}changeMonth(e){var t,n;this.currentDate=ae(this.currentDate,e),(t=(n=this.props).onChange)==null||t.call(n,this.currentDate)}render(){let{weekFormatter:n,currentDate:a,dateGrid:o}=this,c=this.observedProps,{style:l,variant:u=`primary`,onChange:d,onSelect:f}=c,p=t(c,[`style`,`variant`,`onChange`,`onSelect`]);return i(Ce,s(e({},p),{style:e({tableLayout:`fixed`},l),children:[r(`caption`,{children:i(`div`,{className:`d-flex justify-content-between align-items-center`,children:[r(j,{variant:u,onClick:()=>this.changeMonth(-1),children:`<`}),O(a,`YYYY-MM`),r(j,{variant:u,onClick:()=>this.changeMonth(1),children:`>`})]})}),r(`thead`,{children:r(`tr`,{children:o[0].map((e,t,{length:i})=>r(`td`,{className:`bg-${u} text-white`,style:{width:`calc(100% / ${i})`},children:n.format(e)},t))})}),r(`tbody`,{children:o.map(e=>r(`tr`,{children:e.map(this.renderDate)},e[0]+``))})]}))}constructor(...e){super(...e),x(this,W,{writable:!0,value:(At(this),kt(this,new Date))}),o(this,`renderDate`,e=>{let{variant:t=`primary`,value:n,onSelect:o}=this.observedProps,s=O(e,`YYYY-MM-DD`),c=n==null?void 0:n.filter(({date:e})=>O(e,`YYYY-MM-DD`)===s);return i(`td`,{className:a({"opacity-50":e.getMonth()!==this.currentDate.getMonth(),"fw-bold":s===O(new Date,`YYYY-MM-DD`)}),children:[r(`time`,{className:`d-block`,dateTime:e.toJSON(),children:e.getDate()}),c==null?void 0:c.map(e=>typeof e.content==`object`?e.content:r(Ct,{title:e.content,children:r(ve,{as:`a`,className:`d-inline-block text-decoration-none w-100 text-truncate`,bg:Ke(e.content+``,[`light`]),href:e.link,onClick:()=>o==null?void 0:o(e),children:e.content})},e.date+``))]},e+``)})}},{e:[kt,At],c:[jt,Dt]}=y(Tt,[[w,3,`weekFormatter`],[T,1,`currentDate`],[w,3,`dateGrid`]],[E],Ot),Tt),Et=class extends C{constructor(){super(jt),o(this,`displayName`,`MonthCalendar`),Dt()}},o(Et,wt,void 0),Et);const Mt=({avatar:e,name:t})=>i(n,{children:[r(Ie,{size:2,style:{marginRight:`0.5rem`},src:e}),r(`span`,{className:`align-middle`,children:t})]});Mt.displayName=`Nameplate`;let Nt;var G,K,Pt,Ft,It,Lt,Rt,zt,Bt;const Vt=Array.from([,,,,,,],(e,t)=>`h${++t}`)+``;let Ht;new(Nt=(G=new WeakMap,K=new WeakMap,Pt=class extends (Lt=c){get list(){return b(this,G)}set list(e){S(this,G,e)}get scrollY(){return b(this,K)}set scrollY(e){S(this,K,e)}get currentActiveId(){var e;let{list:t,scrollY:n}=this;return(e=t[t.findIndex(({top:e})=>e>n)-1])==null?void 0:e.id}componentDidMount(){globalThis.document&&(window.addEventListener(`scroll`,this.updateScrollY),this.list=Array.from(document.querySelectorAll(Vt),e=>{var t;(t=e).id||(t.id=k());let{id:n,tagName:r,textContent:i,offsetTop:a}=e;return{id:n,level:+r[1],text:i.trim(),top:a}}))}componentWillUnmount(){var e,t;(e=(t=globalThis).removeEventListener)==null||e.call(t,`scroll`,this.updateScrollY)}render(){let{list:n}=this,i=this.props,{style:a,variant:o=`underline`}=i,c=t(i,[`style`,`variant`]);return r(F,s(e({},c),{variant:o,style:e({flexDirection:`column`},a),children:n.map(this.renderLink)}))}constructor(...e){super(...e),x(this,G,{writable:!0,value:(Bt(this),Rt(this,[]))}),x(this,K,{writable:!0,value:zt(this,0)}),o(this,`updateScrollY`,()=>this.scrollY=window.scrollY),o(this,`scrollTo`,e=>()=>{var t,n;setTimeout(()=>ce(`[id="${e.id}"]`)),(t=(n=this.props).onItemClick)==null||t.call(n,e)}),o(this,`renderLink`,({id:e,level:t,text:n,top:i})=>{let{currentActiveId:a}=this,{depth:o=1/0}=this.props;return t<=o&&r(F.Item,{style:{textIndent:`${t-1}rem`},children:r(F.Link,{href:`#${e}`,active:a===e,onClick:this.scrollTo({id:e,level:t,text:n,top:i}),children:n})},e)})}},{e:[Rt,zt,Bt],c:[Ht,It]}=y(Pt,[[T,1,`list`],[T,1,`scrollY`],[w,3,`currentActiveId`]],[E],Lt),Pt),Ft=class extends C{constructor(){super(Ht),o(this,`displayName`,`PageNav`),It()}},o(Ft,Nt,void 0),Ft);let Ut;var q,J,Y,Wt,Gt,Kt,qt,Jt,Yt,Xt,Zt;let Qt;new(Ut=(q=new WeakMap,J=new WeakMap,Y=new WeakMap,Wt=class extends (qt=c){get scrollLeft(){return b(this,q)}set scrollLeft(e){S(this,q,e)}get scrollWidth(){return b(this,J)}set scrollWidth(e){S(this,J,e)}get clientWidth(){return b(this,Y)}set clientWidth(e){S(this,Y,e)}get canScrollLeft(){return this.scrollLeft>0}get canScrollRight(){return this.scrollLeft+this.clientWidth<this.scrollWidth}componentDidMount(){let e=this.updateScroll();e&&(e.addEventListener(`scroll`,this.updateScroll),this.resizeObserver=new ResizeObserver(this.updateScroll),this.resizeObserver.observe(e))}componentWillUnmount(){var e,t;(e=this.resizeObserver)==null||e.disconnect(),(t=this.scrollerRef.current)==null||t.removeEventListener(`scroll`,this.updateScroll)}render(){let{canScrollLeft:n,canScrollRight:a}=this,o=this.props,{className:c=``,children:l}=o,u=t(o,[`className`,`children`]);return i(`div`,{className:`position-relative overflow-y-hidden ${c}`,children:[n&&r(`button`,{type:`button`,className:`position-absolute top-0 bottom-0 start-0 z-1 border-0 px-2 aEvBXq_scrollButtonLeft`,"aria-label":`Scroll left`,onClick:this.scrollBy(-1),children:r(U,{name:`caret-left-fill`})}),r(`div`,{ref:this.scrollerRef,className:`overflow-x-auto aEvBXq_scrollerInner`,children:r(F,s(e({},u),{className:`flex-nowrap`,children:l}))}),a&&r(`button`,{type:`button`,className:`position-absolute top-0 bottom-0 end-0 z-1 border-0 px-2 aEvBXq_scrollButtonRight`,"aria-label":`Scroll right`,onClick:this.scrollBy(1),children:r(U,{name:`caret-right-fill`})})]})}constructor(...e){super(...e),o(this,`scrollerRef`,(Zt(this),u())),x(this,q,{writable:!0,value:Jt(this,0)}),x(this,J,{writable:!0,value:Yt(this,0)}),x(this,Y,{writable:!0,value:Xt(this,0)}),o(this,`updateScroll`,()=>{let e=this.scrollerRef.current;return e&&(this.scrollLeft=e.scrollLeft,this.scrollWidth=e.scrollWidth,this.clientWidth=e.clientWidth),e}),o(this,`resizeObserver`,void 0),o(this,`scrollBy`,e=>()=>{let t=this.scrollerRef.current;t&&t.scrollBy({left:e*t.clientWidth*.8,behavior:`smooth`})})}},{e:[Jt,Yt,Xt,Zt],c:[Qt,Kt]}=y(Wt,[[T,1,`scrollLeft`],[T,1,`scrollWidth`],[T,1,`clientWidth`],[w,3,`canScrollLeft`],[w,3,`canScrollRight`]],[E],qt),Wt),Gt=class extends C{constructor(){super(Qt),o(this,`displayName`,`ScrollNav`),Kt()}},o(Gt,Ut,void 0),Gt);const $t=n=>{let{value:i,children:a}=n,o=t(n,[`value`,`children`]);return r(N.Item,s(e({},o),{"data-value":i,children:a}))};$t.displayName=`Option`;const en=({className:e,style:t,variant:n,menuVariant:o,children:s,value:c,onChange:l,valueRender:u})=>{let f=se(s).flat(1/0).find(e=>d(e)&&e.type===$t&&e.props.value===c);return i(N,{onClick:({target:e})=>{let t=e.closest(`.dropdown-item`);if(!t)return;let{value:n}=t.dataset;l==null||l(n)},children:[r(N.Toggle,{className:a(`w-100`,`d-flex`,`justify-content-between`,`align-items-center`,!n&&`bg-white text-dark`,e),style:t,variant:n,children:(u==null?void 0:u(c))||r(`div`,{className:f==null?void 0:f.props.className,children:f==null?void 0:f.props.children})}),r(N.Menu,{variant:o,children:s})]})};en.displayName=`Select`;let tn;var X,Z,nn,rn,an,on,sn,cn,ln;function un(e,t,n){return A(function*(){let r=yield Ee(e,{useCORS:!0});return new Promise((e,i)=>r.toBlob(t=>t?e(URL.createObjectURL(t)):i(),t,n))})()}let dn;new(tn=(X=new WeakMap,Z=new WeakMap,nn=class extends (on=c){get loading(){return b(this,X)}set loading(e){S(this,X,e)}get imageURI(){return b(this,Z)}set imageURI(e){S(this,Z,e)}componentDidMount(){var e,t;(e=(t=globalThis).addEventListener)==null||e.call(t,`resize`,this.generateImage)}componentWillUnmount(){var e,t;(e=(t=globalThis).removeEventListener)==null||e.call(t,`resize`,this.generateImage)}render(){let a=this.props,{className:o=``,children:c}=a,l=t(a,[`className`,`children`]),{loading:u,imageURI:d}=this;return i(n,{children:[u&&r(St,{}),i(`div`,s(e({},l),{ref:this.root,className:`position-relative ${o}`,onMouseEnter:d?void 0:this.generateImage,onTouchStart:d?void 0:this.generateImage,children:[c,d&&r(P,{className:`position-absolute start-0 top-0 w-100 h-100`,src:d,alt:`Share Image`,fluid:!0,onClick:this.share})]}))]})}constructor(...t){var n;super(...t),n=this,o(this,`root`,(ln(this),u())),x(this,X,{writable:!0,value:sn(this,!1)}),x(this,Z,{writable:!0,value:cn(this,``)}),o(this,`generateImage`,()=>A(function*(){n.imageURI&&(URL.revokeObjectURL(n.imageURI),n.imageURI=``),n.loading=!0,n.imageURI=yield un(n.root.current),n.loading=!1})()),o(this,`share`,t=>A(function*(){var r,i;t.stopPropagation();let a=yield ie(n.imageURI),o=new File([a],`${n.props.title}.png`,{type:a.type});yield(r=(i=navigator).share)==null?void 0:r.call(i,e({files:[o]},n.props))})())}},{e:[sn,cn,ln],c:[dn,an]}=y(nn,[[T,1,`loading`],[T,1,`imageURI`]],[E],on),nn),rn=class extends C{constructor(){super(dn),o(this,`displayName`,`ShareBox`),an()}},o(rn,tn,void 0),rn);const fn=a=>{let{animation:o,loading:c,disabled:l,children:u}=a,d=t(a,[`animation`,`loading`,`disabled`,`children`]);return i(j,s(e({},d),{disabled:c||l,children:[c&&i(n,{children:[r(Se,{as:`span`,className:u?`me-2`:``,size:`sm`,animation:o,role:`status`,"aria-hidden":`true`}),!u&&r(`span`,{className:`visually-hidden`,children:`Loading...`})]}),u]}))};fn.displayName=`SpinnerButton`;const pn=n=>{let{animation:i=`border`,variant:a=`primary`,size:o,colSpan:c}=n,l=t(n,[`animation`,`variant`,`size`,`colSpan`]);return r(`tr`,s(e({},l),{children:r(`td`,{className:`text-center p-4`,colSpan:c,children:r(Se,{animation:i,variant:a,size:o})})}))};pn.displayName=`TableSpinner`;let mn;var Q,hn,gn,_n,vn,yn,bn,xn,Sn;let Cn;new(mn=(Q=new WeakMap,hn=new WeakMap,gn=class extends (yn=c){get expanded(){return b(this,Q)}set expanded(e){S(this,Q,e)}get overflowed(){return b(this,hn)}set overflowed(e){S(this,hn,e)}componentDidMount(){this.checkOverflow(),window.addEventListener(`resize`,this.checkOverflow)}componentDidUpdate({rows:e,children:t}){!this.expanded&&(t!==this.props.children||e!==this.props.rows)&&this.checkOverflow()}componentWillUnmount(){window.removeEventListener(`resize`,this.checkOverflow)}render(){let n=this.props,{children:a,rows:o=3,expandText:c=`⏬`,collapseText:l=`⏫`}=n,u=t(n,[`children`,`rows`,`expandText`,`collapseText`]),{expanded:d,overflowed:f}=this,p={overflow:`hidden`,display:`-webkit-box`,WebkitBoxOrient:`vertical`,WebkitLineClamp:o};return i(`div`,s(e({},u),{children:[r(`p`,{ref:this.contentRef,style:d?void 0:p,children:a}),(f||d)&&r(`button`,{type:`button`,className:`bg-transparent border-0 p-0`,"aria-expanded":d,onClick:this.toggle,children:d?l:c})]}))}constructor(...e){super(...e),x(this,Q,{writable:!0,value:(Sn(this),bn(this,!1))}),x(this,hn,{writable:!0,value:xn(this,!1)}),o(this,`contentRef`,u()),o(this,`checkOverflow`,()=>{let{current:e}=this.contentRef;e&&(this.overflowed=e.scrollHeight>e.clientHeight)}),o(this,`toggle`,()=>{this.expanded=!this.expanded,this.expanded||requestAnimationFrame(this.checkOverflow)})}},{e:[bn,xn,Sn],c:[Cn,vn]}=y(gn,[[T,1,`expanded`],[T,1,`overflowed`]],[E],yn),gn),_n=class extends C{constructor(){super(Cn),o(this,`displayName`,`TextTruncate`),vn()}},o(_n,mn,void 0),_n);let wn;var Tn,En,Dn,On,kn,An=te(({observedProps:{dateTime:e,format:t}})=>e+t),jn,Mn;let $;new(wn=(Tn=new WeakMap,En=class extends (kn=ee){updateText(){let{dateTime:e,format:t}=this.props;return O(e,t)}get timeText(){return b(this,Tn)}set timeText(e){S(this,Tn,e)}componentDidMount(){super.componentDidMount(),this.timeText=this.updateText()}render(){let n=this.props,{dateTime:i}=n,a=t(n,[`dateTime`]);return r(`time`,s(e({dateTime:new Date(i).toJSON()},a),{children:this.timeText}))}constructor(...e){super(...e),x(this,Tn,{writable:!0,value:(Mn(this),jn(this,this.updateText()))})}},{e:[jn,Mn],c:[$,On]}=y(En,[[An,2,`updateText`],[T,1,`timeText`]],[E],kn),En),Dn=class extends C{constructor(){super($),o(this,`displayName`,`Time`),On()}},o(Dn,wn,void 0),Dn);const Nn={ms:`millisecond(s)`,s:`second(s)`,m:`minute(s)`,H:`hour(s)`,D:`day(s)`,W:`week(s)`,M:`month(s)`,Y:`year(s)`},Pn=n=>{let{date:r,unitWords:a=Nn,beforeWord:o=` before`,afterWord:c=` after`}=n,l=t(n,[`date`,`unitWords`,`beforeWord`,`afterWord`]);r=new Date(r);let{distance:u,unit:d}=oe(r);return i(`time`,s(e({},l),{dateTime:r.toJSON(),title:r.toLocaleString(),children:[Math.abs(u),` `,a[d],u<0?o:c]}))};Pn.displayName=`TimeDistance`;const Fn=n=>{let{className:a,events:o,timeFormat:c}=n,l=t(n,[`className`,`events`,`timeFormat`]);return r(`ol`,s(e({className:`list-unstyled hsu__a_timeline ${a}`},l),{children:o.map(({title:t,summary:n,time:a,link:o,people:s})=>r(`li`,{className:`position-relative hsu__a_timelineItem hsu__a_right`,children:r(ye,{children:i(ye.Body,{className:`p-4 d-flex flex-column gap-3 align-items-center`,children:[r(`h3`,{className:`h5 m-0`,children:r(`a`,{className:`text-decoration-none stretched-link`,href:o,children:t})}),i(`div`,{className:`small text-muted d-flex gap-2`,children:[`⏲️`,r($,{dateTime:a[0],format:c}),a[1]&&`~`,a[1]&&r($,{dateTime:a[1],format:c})]}),r(`ul`,{className:`list-unstyled m-0 d-flex gap-2 flex-wrap justify-content-around`,children:s==null?void 0:s.map(t=>r(`li`,{children:r(Mt,e({},t))},t.name))}),r(`p`,{className:`m-0`,children:n})]})})},t))}))};Fn.displayName=`Timeline`;var In,Ln;const Rn=new Set([`warning`,`info`,`light`]);var zn=new WeakMap,Bn=class{get messages(){return b(this,zn)}set messages(e){S(this,zn,e)}open(t){let n=k(),r=Date.now(),{promise:i,resolve:a}=Promise.withResolvers();return this.messages=[...this.messages,s(e({id:n},t),{openedAt:r,resolve:a})],i}close(n){let r=this.messages.find(e=>e.id===n)||{},{resolve:i}=r,a=t(r,[`resolve`]);i==null||i(s(e({},a),{closedAt:Date.now()})),this.messages=this.messages.filter(e=>e.id!==n)}constructor(e=re){o(this,`TimeScalar`,void 0),x(this,zn,{writable:!0,value:void 0}),o(this,`Component`,void 0),o(this,`renderMessage`,void 0),this.TimeScalar=e,S(this,zn,(Ln(this),In(this,[]))),this.Component=E(({position:e=`top-end`})=>r(we,{position:e,className:`position-fixed p-3`,children:this.messages.map(this.renderMessage)})),this.renderMessage=({id:e,openedAt:t,title:n,body:a,variant:o,delay:s=3e3})=>{let c=o&&!Rn.has(o)?`text-white`:void 0,l=!!n||s===0,u=this.TimeScalar.distanceOf(Date.now(),t).toShortString();return i(L,{bg:o,delay:s,autohide:s!==0,onClose:()=>this.close(e),children:[l&&i(L.Header,{children:[r(`strong`,{className:`me-auto`,children:n}),r(`small`,{children:u})]}),r(L.Body,{className:c,children:a})]},e)},this.Component.displayName=`ToastComponent`}};({e:[In,Ln]}=y(Bn,[[T,1,`messages`]],[]));let Vn;var Hn,Un,Wn,Gn,Kn,qn,Jn;let Yn;new(Vn=(Hn=new WeakMap,Un=class extends (Kn=c){get echoed(){return b(this,Hn)}set echoed(e){S(this,Hn,e)}render(){let n=this.props,{className:i,text:o}=n,c=t(n,[`className`,`text`]),{echoed:l}=this;return r(`pre`,s(e({},c),{ref:this.init,className:a(`text-wrap`,i),children:l+(l===o?``:`_`)}))}constructor(...e){var t;super(...e),t=this,x(this,Hn,{writable:!0,value:(Jn(this),qn(this,``))}),o(this,`init`,e=>e&&new IntersectionObserver(([{isIntersecting:e}],n)=>A(function*(){if(!e)return;n.disconnect();let{text:r,intervals:i=150}=t.props;for(let e of r)yield le(i/1e3),t.echoed+=e})()).observe(e))}},{e:[qn,Jn],c:[Yn,Gn]}=y(Un,[[T,1,`echoed`]],[E],Kn),Un),Wn=class extends C{constructor(){super(Yn),o(this,`displayName`,`TypeEcho`),Gn()}},o(Wn,Vn,void 0),Wn);const Xn=({email:e,website:t})=>i(`address`,{className:`mb-0 d-flex justify-content-around gap-2`,children:[e&&r(`a`,{rel:`noreferrer`,target:`_blank`,href:`mailto:`+e,children:r(U,{name:`envelope`})}),t&&r(`a`,{rel:`noreferrer`,target:`_blank`,href:t,children:r(U,{name:`globe2`})})]}),Zn=`X5DLia_image`;var Qn=class extends l{render(){let n=this.props,{className:a=``,title:o,rank:c=[],linkOf:l}=n,u=t(n,[`className`,`title`,`rank`,`linkOf`]);return i(xe,s(e({className:`X5DLia_rankBox ${a}`},u),{children:[i(M,{sm:12,xs:12,lg:7,children:[i(`div`,{className:`shadow rounded-3 X5DLia_title`,children:[i(`div`,{className:`X5DLia_medal`,children:[r(`i`,{className:`d-inline-block ms-1 overflow-hidden rounded-circle`}),r(`i`,{className:`d-inline-block ms-1 overflow-hidden rounded-circle`}),r(`i`,{className:`d-inline-block ms-1 overflow-hidden rounded-circle`})]}),r(`h3`,{"data-text":o,className:`position-relative m-auto mb-0 fw-bold text-center`,children:o})]}),r(xe,{as:`ul`,className:`mt-2 g-0 align-items-end text-center ps-0 pt-2 list-unstyled X5DLia_topUsers`,children:c.slice(0,3).map(this.renderMedal)})]}),r(M,{xs:12,sm:12,lg:5,children:r(Ce,{className:`my-3 pt-2 X5DLia_restUsers`,responsive:!0,children:r(`tbody`,{children:c.slice(3,10).map(this.renderRow)})})})]}))}constructor(...t){super(...t),o(this,`renderMedal`,t=>{var n,a;return i(M,{as:`li`,children:[r(`div`,{className:`shadow-lg overflow-hidden rounded-circle m-auto ${Zn}`,children:r(P,{src:t.avatar,alt:t.name,loading:`lazy`,fluid:!0})}),i(`div`,{className:`position-relative overflow-hidden X5DLia_topUser`,children:[i(`div`,{className:`position-relative`,children:[r(`i`,{className:`d-block overflow-hidden m-auto mb-1 rounded-circle`}),r(`a`,{className:`d-block mb-0 stretched-link`,href:((n=(a=this.props).linkOf)==null?void 0:n.call(a,t))||`#`,children:t.name}),r(`strong`,{children:t.score})]}),r(Xn,e({},t))]})]},t.id)}),o(this,`renderRow`,(t,n,{length:a})=>{var o,s;return i(`tr`,{className:`position-relative`,children:[r(`td`,{className:`align-middle`,children:r(ve,{className:`fw-bold fst-italic`,children:(n+4+``).padStart((a+``).length,`0`)})}),i(`td`,{className:`position-relative mw-50 text-truncate X5DLia_name`,children:[r(`div`,{className:`d-inline-block overflow-hidden align-middle rounded-circle ${Zn}`,children:r(P,{src:t.avatar,alt:t.name,loading:`lazy`,fluid:!0})}),r(`a`,{className:`ms-2 d-inline-block align-middle stretched-link`,style:{color:`rgb(248, ${(n+2)*15}, ${(n+2)*35})`},href:((o=(s=this.props).linkOf)==null?void 0:o.call(s,t))||`#`,children:t.name})]}),r(`td`,{className:`align-middle`,children:t.score}),r(`td`,{className:`align-middle`,children:r(Xn,e({},t))})]},t.id)})}};o(Qn,`displayName`,`UserRankView`);const $n=n=>{let{className:i=``,children:a,duration:o}=n,c=t(n,[`className`,`children`,`duration`]);return r(`div`,s(e({className:`overflow-hidden ${i}`},c),{children:r(`div`,{className:`d-inline-block mw-100 mh-100 QBd6SG_scrollWrap`,style:{"--duration":o},children:r(`div`,{className:`d-inline-block QBd6SG_scrollItem`,children:a})})}))};$n.displayName=`VerticalMarquee`;const er=[`🐵`,`🐔`,`🐶`,`🐷`,`🐭`,`🐮`,`🐯`,`🐰`,`🐲`,`🐍`,`🐴`,`🐐`],tr=e=>{let t=e<0?e+1:e;return er[(t%12+12)%12]},nr=n=>{let{className:a=``,itemClassName:o=`border rounded px-4 py-3 d-flex flex-column justify-content-center align-items-center`,startYear:c,endYear:l=new Date().getFullYear(),itemOf:u}=n,d=t(n,[`className`,`itemClassName`,`startYear`,`endYear`,`itemOf`]);return r(`ol`,s(e({className:`list-unstyled m-0 d-flex flex-wrap justify-content-center gap-3 ${a}`},d),{children:Array.from({length:l-c+1},(e,t)=>{let n=l-t;if(n===0)return null;let a=tr(n),{link:s=`#`,title:c}=(u==null?void 0:u(n,a))||{};return r(`li`,{className:o,children:i(`a`,{className:`d-inline-block p-3 text-decoration-none text-center`,href:s,children:[r(`div`,{className:`fs-1`,children:a}),c]})},n)})}))};nr.displayName=`ZodiacBar`;export{Ie as Avatar,Le as ClickBoundary,We as CodeBlock,tt as Countdown,ct as Dialog,at as DialogClose,_t as Editor,yt as EditorHTML,H as HorizontalMarquee,bt as HorizontalMarqueeBox,U as Icon,xt as LiveTSX,St as Loading,jt as MonthCalendar,Mt as Nameplate,$t as Option,Ct as OverlayBox,Ht as PageNav,Qt as ScrollNav,en as Select,dn as ShareBox,fn as SpinnerButton,pn as TableSpinner,Cn as TextTruncate,$ as Time,Pn as TimeDistance,Fn as Timeline,Bn as Toast,Yn as TypeEcho,Qn as UserRankView,Ge as VariantColors,$n as VerticalMarquee,nr as ZodiacBar,er as ZodiacSigns,Fe as animate,un as elementToImage,vt as parser,Ke as text2color,tr as zodiacOf};
21
+ var t=typeof Symbol==`function`&&Symbol.for,n=t?Symbol.for(`react.element`):60103,r=t?Symbol.for(`react.portal`):60106,i=t?Symbol.for(`react.fragment`):60107,a=t?Symbol.for(`react.strict_mode`):60108,o=t?Symbol.for(`react.profiler`):60114,s=t?Symbol.for(`react.provider`):60109,c=t?Symbol.for(`react.context`):60110,l=t?Symbol.for(`react.async_mode`):60111,u=t?Symbol.for(`react.concurrent_mode`):60111,d=t?Symbol.for(`react.forward_ref`):60112,f=t?Symbol.for(`react.suspense`):60113,p=t?Symbol.for(`react.memo`):60115,m=t?Symbol.for(`react.lazy`):60116;function h(e){if(typeof e==`object`&&e){var t=e.$$typeof;switch(t){case n:switch(e=e.type,e){case l:case u:case i:case o:case a:case f:return e;default:switch(e=e&&e.$$typeof,e){case c:case d:case m:case p:case s:return e;default:return t}}case r:return t}}}e.ForwardRef=d,e.Memo=p,e.isContextConsumer=function(e){return h(e)===c},e.isContextProvider=function(e){return h(e)===s},e.isForwardRef=function(e){return h(e)===d},e.isLazy=function(e){return h(e)===m},e.isMemo=function(e){return h(e)===p},e.isProfiler=function(e){return h(e)===o},e.isStrictMode=function(e){return h(e)===a},e.isSuspense=function(e){return h(e)===f}})),Ye=/* @__PURE__ */ Ie(((e,t)=>{t.exports=Je()})),Xe=qe(),N=Ye(),P=(function(e,t){return e===0?``:Array(e*t).fill(` `).join(``)});function Ze(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Qe(e){if(Array.isArray(e))return Ze(e)}function $e(e,t,n){return(t=ot(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function et(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function tt(){throw TypeError(`Invalid attempt to spread non-iterable instance.
22
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function nt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function rt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?nt(Object(n),!0).forEach(function(t){$e(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nt(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function it(e){return Qe(e)||et(e)||st(e)||tt()}function at(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function ot(e){var t=at(e,`string`);return typeof t==`symbol`?t:t+``}function F(e){"@babel/helpers - typeof";return F=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},F(e)}function st(e,t){if(e){if(typeof e==`string`)return Ze(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ze(e,t):void 0}}function ct(e,t){if(e===null||F(e)!==`object`||e instanceof Date||e instanceof RegExp)return e;if(/*#__PURE__*/ c.isValidElement(e)){var n=rt({},e);return delete n._owner,n}return t.add(e),Array.isArray(e)?e.map(function(e){return ct(e,t)}):Object.keys(e).sort().reduce(function(n,r){return n[r]=r===`current`||t.has(e[r])?`[Circular]`:ct(e[r],t),n},{})}function lt(e){return ct(e,/* @__PURE__ */ new WeakSet)}var ut=function(e){return{type:`string`,value:e}},dt=function(e){return{type:`number`,value:e}},ft=function(e,t,n,r){return{type:`ReactElement`,displayName:e,props:t,defaultProps:n,childrens:r}},pt=function(e,t){return{type:`ReactFragment`,key:e,childrens:t}},mt=!!d,ht=function(e){return!e.name||e.name===`_default`?`No Display Name`:e.name},gt=function(e){switch(!0){case!!e.displayName:return e.displayName;case e.$$typeof===N.Memo:return gt(e.type);case e.$$typeof===N.ForwardRef:return gt(e.render);default:return ht(e)}},_t=function(e){switch(!0){case typeof e.type==`string`:return e.type;case typeof e.type==`function`:return e.type.displayName?e.type.displayName:ht(e.type);case(0,N.isForwardRef)(e):case(0,N.isMemo)(e):return gt(e.type);case(0,N.isContextConsumer)(e):return`${e.type._context.displayName||`Context`}.Consumer`;case(0,N.isContextProvider)(e):return`${e.type.displayName||`Context`}.Provider`;case(0,N.isLazy)(e):return`Lazy`;case(0,N.isProfiler)(e):return`Profiler`;case(0,N.isStrictMode)(e):return`StrictMode`;case(0,N.isSuspense)(e):return`Suspense`;default:return`UnknownElementType`}},vt=function(e,t){return t!==`children`},yt=function(e){return e!==!0&&e!==!1&&e!==null&&e!==``},bt=function(e,t){var n={};return Object.keys(e).filter(function(n){return t(e[n],n)}).forEach(function(t){return n[t]=e[t]}),n},I=function(e,t){var n=t.displayName,r=n===void 0?_t:n;if(typeof e==`string`)return ut(e);if(typeof e==`number`)return dt(e);if(!/*#__PURE__*/ l.isValidElement(e))throw Error(`react-element-to-jsx-string: Expected a React.Element, got \`${F(e)}\``);var i=r(e),a=bt(e.props,vt),o=e.key;typeof o==`string`&&o.search(/^\./)&&(a.key=o);var s=bt(e.type.defaultProps||{},vt),c=l.Children.toArray(e.props.children).filter(yt).map(function(e){return I(e,t)});return mt&&e.type===d?pt(o,c):ft(i,a,s,c)};function xt(){}var St=function(e){return e.toString().split(`
23
+ `).map(function(e){return e.trim()}).join(``)},Ct=(function(e,t){var n=t.functionValue,r=n===void 0?St:n;return!t.showFunctions&&r===St?r(xt):r(e)}),wt=(function(e,t,n,r){var i=lt(e),a=(0,Xe.prettyPrint)(i,{transform:function(e,t,i){var a=e[t];return a&&/*#__PURE__*/ m(a)?L(I(a,r),!0,n,r):typeof a==`function`?Ct(a,r):i}});return t?a.replace(/\s+/g,` `).replace(/{ /g,`{`).replace(/ }/g,`}`).replace(/\[ /g,`[`).replace(/ ]/g,`]`):a.replace(/\t/g,P(1,r.tabStop)).replace(/\n([^$])/g,`
24
+ ${P(n+1,r.tabStop)}$1`)}),Tt=function(e){return e.replace(/"/g,`&quot;`)},Et=function(e,t,n,r){if(typeof e==`number`)return`{${String(e)}}`;if(typeof e==`string`)return`"${Tt(e)}"`;if(F(e)===`symbol`){var i=e.valueOf().toString().replace(/Symbol\((.*)\)/,`$1`);return i?`{Symbol('${i}')}`:`{Symbol()}`}return typeof e==`function`?`{${Ct(e,r)}}`:/*#__PURE__*/ m(e)?`{${L(I(e,r),!0,n,r)}}`:e instanceof Date?isNaN(e.valueOf())?`{new Date(NaN)}`:`{new Date("${e.toISOString()}")}`:Ke(e)||Array.isArray(e)?`{${wt(e,t,n,r)}}`:`{${String(e)}}`},Dt=(function(e,t,n,r,i,a,o,s){if(!t&&!r)throw Error(`The prop "${e}" has no value and no default: could not be formatted`);var c=t?n:i,l=s.useBooleanShorthandSyntax,u=s.tabStop,d=Et(c,a,o,s),f=` `,p=`
25
+ ${P(o+1,u)}`,m=d.includes(`
26
+ `);return l&&d===`{true}`?(f+=`${e}`,p+=`${e}`):(f+=`${e}=${d}`,p+=`${e}=${d}`),{attributeFormattedInline:f,attributeFormattedMultiline:p,isMultilineAttribute:m}}),Ot=(function(e,t){var n=e.slice(0,e.length>0?e.length-1:0),r=e[e.length-1];return r&&(t.type===`string`||t.type===`number`)&&(r.type===`string`||r.type===`number`)?n.push(ut(String(r.value)+String(t.value))):(r&&n.push(r),n.push(t)),n}),kt=function(e){return[`key`,`ref`].includes(e)},At=(function(e){return function(t){var n=t.includes(`key`),r=t.includes(`ref`),i=t.filter(function(e){return!kt(e)}),a=it(e?i.sort():i);return r&&a.unshift(`ref`),n&&a.unshift(`key`),a}});function jt(e,t){return Array.isArray(t)?function(e){return t.indexOf(e)===-1}:function(n){return t(e[n],n)}}var Mt=function(e,t,n,r,i){var a=i.tabStop;return e.type===`string`?t.split(`
27
+ `).map(function(e,t){return t===0?e:`${P(r,a)}${e}`}).join(`
28
+ `):t},Nt=function(e,t,n){return function(r){return Mt(r,L(r,e,t,n),e,t,n)}},Pt=function(e,t){return function(n){var r=Object.keys(e).includes(n);return!r||r&&e[n]!==t[n]}},Ft=function(e,t,n,r,i){return i?P(n,r).length+t.length>i:e.length>1},It=function(e,t,n,r,i,a,o){return(Ft(e,t,i,a,o)||n)&&!r},Lt=(function(e,t,n,r){var i=e.type,a=e.displayName,o=a===void 0?``:a,s=e.childrens,c=e.props,l=c===void 0?{}:c,u=e.defaultProps,d=u===void 0?{}:u;if(i!==`ReactElement`)throw Error(`The "formatReactElementNode" function could only format node of type "ReactElement". Given: ${i}`);var f=r.filterProps,p=r.maxInlineAttributesLineLength,m=r.showDefaultProps,h=r.sortProps,g=r.tabStop,_=`<${o}`,v=_,y=_,ee=!1,b=[],x=jt(l,f);Object.keys(l).filter(x).filter(Pt(d,l)).forEach(function(e){return b.push(e)}),Object.keys(d).filter(x).filter(function(){return m}).filter(function(e){return!b.includes(e)}).forEach(function(e){return b.push(e)});var S=At(h)(b);if(S.forEach(function(e){var i=Dt(e,Object.keys(l).includes(e),l[e],Object.keys(d).includes(e),d[e],t,n,r),a=i.attributeFormattedInline,o=i.attributeFormattedMultiline;i.isMultilineAttribute&&(ee=!0),v+=a,y+=o}),y+=`
29
+ ${P(n,g)}`,_=It(S,v,ee,t,n,g,p)?y:v,s&&s.length>0){var C=n+1;_+=`>`,t||(_+=`
30
+ `,_+=P(C,g)),_+=s.reduce(Ot,[]).map(Nt(t,C,r)).join(t?``:`
31
+ ${P(C,g)}`),t||(_+=`
32
+ `,_+=P(C-1,g)),_+=`</${o}>`}else Ft(S,v,n,g,p)||(_+=` `),_+=`/>`;return _}),Rt=``,zt=`React.Fragment`,Bt=function(e,t,n){var r={};return t&&(r={key:t}),{type:`ReactElement`,displayName:e,props:r,defaultProps:{},childrens:n}},Vt=function(e){return!!e.key},Ht=function(e){return e.childrens.length===0},Ut=(function(e,t,n,r){var i=e.type,a=e.key,o=e.childrens;if(i!==`ReactFragment`)throw Error(`The "formatReactFragmentNode" function could only format node of type "ReactFragment". Given: ${i}`);return Lt(Bt(r.useFragmentShortSyntax?Ht(e)||Vt(e)?zt:Rt:zt,a,o),t,n,r)}),Wt=[`<`,`>`,`{`,`}`],Gt=function(e){return Wt.some(function(t){return e.includes(t)})},Kt=function(e){return Gt(e)?`{\`${e}\`}`:e},qt=function(e){var t=e;return t.endsWith(` `)&&(t=t.replace(/^(.*?)(\s+)$/,`$1{'$2'}`)),t.startsWith(` `)&&(t=t.replace(/^(\s+)(.*)$/,`{'$1'}$2`)),t},L=(function(e,t,n,r){if(e.type===`number`)return String(e.value);if(e.type===`string`)return e.value?`${qt(Kt(String(e.value)))}`:``;if(e.type===`ReactElement`)return Lt(e,t,n,r);if(e.type===`ReactFragment`)return Ut(e,t,n,r);throw TypeError(`Unknow format type "${e.type}"`)}),Jt=(function(e,t){return L(e,!1,0,t)}),Yt=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.filterProps,r=n===void 0?[]:n,i=t.showDefaultProps,a=i===void 0||i,o=t.showFunctions,s=o!==void 0&&o,c=t.functionValue,l=t.tabStop,u=l===void 0?2:l,d=t.useBooleanShorthandSyntax,f=d===void 0||d,p=t.useFragmentShortSyntax,m=p===void 0||p,h=t.sortProps,g=h===void 0||h,_=t.maxInlineAttributesLineLength,v=t.displayName;if(!e)throw Error(`react-element-to-jsx-string: Expected a ReactElement`);var y={filterProps:r,showDefaultProps:a,showFunctions:s,functionValue:c,tabStop:u,useBooleanShorthandSyntax:f,useFragmentShortSyntax:m,sortProps:g,maxInlineAttributesLineLength:_,displayName:v};return Jt(I(e,y),y)};const Xt=ee({themes:[y],langs:[h,g,v,_],engine:b()}),Zt=i=>{let{className:a=``,language:s,children:c}=i,l=t(i,[`className`,`language`,`children`]),u=typeof c==`string`?c:Yt(/*#__PURE__*/ m(c)?c:/*#__PURE__*/ r(n,{children:c})),d=Xt.codeToHtml(u,{lang:s,theme:`github-light`,structure:`inline`});return/*#__PURE__*/ r(`pre`,o(e({className:`m-0 language-${s} ${a}`},l),{children:/*#__PURE__*/ r(`code`,{dangerouslySetInnerHTML:{__html:d},className:`language-${s}`})}))},Qt=[`primary`,`secondary`,`success`,`danger`,`warning`,`info`,`dark`,`light`];function $t(e,t=[]){let n=t[0]?Qt.filter(e=>!t.find(t=>t===e)):Qt;return n[[...e].reduce((e,t)=>e+t.charCodeAt(0),0)%n.length]}let en;var R,tn,nn,rn,an,on=re(e=>e.observedProps.endTime),sn,cn;let ln;new(en=(R=/*#__PURE__*/ new WeakMap,tn=class extends (an=ne){get rest(){return S(this,R)}set rest(e){w(this,R,e)}get endTimestamp(){return+new Date(this.props.endTime||Date.now())}get timeSections(){let{units:e}=this.observedProps,{rest:t}=this;return e.reduce((n,{label:r},i)=>{let a=e.slice(i).map(({scale:e})=>e).reduce((e,t)=>e*t,1),o=~~(t/a);return t-=o*a,n.push({value:o,label:r}),n},[])}stop(){this.timer&&(window.clearInterval(this.timer),this.timer=0)}componentDidMount(){super.componentDidMount(),this.initTimer()}initTimer(){this.stop(),this.tick(),this.timer=window.setInterval(this.tick,ae)}componentWillUnmount(){super.componentWillUnmount(),this.stop()}render(){let n=this.props,{className:a=``,itemClassName:s=`border rounded px-4 py-3 d-flex flex-column justify-content-center align-items-center`,units:c,endTime:l,onEnd:u}=n,d=t(n,[`className`,`itemClassName`,`units`,`endTime`,`onEnd`]),{timeSections:f}=this;return/*#__PURE__*/ r(`ol`,o(e({className:`list-unstyled m-0 ${a}`},d),{children:f.map(({value:e,label:t})=>/*#__PURE__*/ i(`li`,{className:s,children:[/*#__PURE__*/ r(`strong`,{children:(e+``).padStart(2,`0`)}),/*#__PURE__*/ r(`span`,{children:t})]},t))}))}constructor(...e){super(...e),C(this,R,{writable:!0,value:(cn(this),sn(this,0))}),s(this,`timer`,0),s(this,`tick`,()=>{let{onEnd:e,endTime:t}=this.props,n=this.endTimestamp-Date.now();n>0?this.rest=n:(this.rest=0,this.stop(),e==null||e(t))})}},{e:[sn,cn],c:[ln,rn]}=x(tn,[[D,1,`rest`],[E,3,`timeSections`],[on,2,`initTimer`]],[O],an),tn),nn=class extends T{constructor(){super(ln),s(this,`displayName`,`Countdown`),rn()}},s(nn,en,void 0),nn);var un,dn,fn,pn=class extends Error{constructor(e=`Dialog closed`){super(e)}},mn=/*#__PURE__*/ new WeakMap,hn=/*#__PURE__*/ new WeakMap,gn=class{get input(){return S(this,mn)}set input(e){w(this,mn,e)}get defer(){return S(this,hn)}set defer(e){w(this,hn,e)}open(e){return e&&(this.input=e),this.defer=new he,this.defer.promise.finally(()=>this.defer=void 0),this.defer.promise}constructor(t){C(this,mn,{writable:!0,value:(fn(this),un(this,{}))}),C(this,hn,{writable:!0,value:dn(this)}),s(this,`Component`,void 0),this.Component=O(n=>/*#__PURE__*/ r(t,o(e({},n,this.input),{defer:this.defer}))),this.Component.displayName=`DialogComponent`}};({e:[un,dn,fn]}=x(gn,[[D,1,`input`],[D,1,`defer`]],[]));let _n;var z,vn,yn,bn,xn,Sn,Cn;const wn=ge();let Tn;new(_n=(z=/*#__PURE__*/ new WeakMap,vn=class extends (xn=u){get innerValue(){return S(this,z)}set innerValue(e){w(this,z,e)}render(){let n=this.props,{name:a,required:s,children:c}=n,l=t(n,[`name`,`required`,`children`]),{innerValue:u}=this;return/*#__PURE__*/ i(`div`,{className:`form-control`,tabIndex:-1,onBlur:this.save,children:[/*#__PURE__*/ r(`input`,{hidden:!0,name:a,required:s,value:JSON.stringify(u)}),/*#__PURE__*/ r(wn,o(e({},l),{onInitialize:e=>{var t;this.core=e,(t=l.onInitialize)==null||t.call(l,e)}}))]})}constructor(...e){var t;super(...e),t=this,s(this,`core`,void 0),C(this,z,{writable:!0,value:(Cn(this),Sn(this,this.props.defaultValue))}),s(this,`save`,()=>A(function*(){return t.core&&(t.innerValue=yield t.core.save())})())}},{e:[Sn,Cn],c:[Tn,bn]}=x(vn,[[D,1,`innerValue`]],[O],xn),vn),yn=class extends T{constructor(){super(Tn),s(this,`displayName`,`Editor`),bn()}},s(yn,_n,void 0),yn);const En=_e({link:({data:{link:e}})=>`<a href="${e}">${e}</a>`}),Dn=n=>{let{data:i}=n,a=t(n,[`data`]);return/*#__PURE__*/ r(`article`,o(e({},a),{dangerouslySetInnerHTML:{__html:En.parse(i)}}))};Dn.displayName=`EditorHTML`;const B=n=>{let{className:i=``,children:a,maxWidth:s=`100%`,duration:c,height:l}=n,u=t(n,[`className`,`children`,`maxWidth`,`duration`,`height`]);return/*#__PURE__*/ r(`div`,o(e({className:`overflow-hidden mw-100 ${i}`},u),{children:/*#__PURE__*/ r(`div`,{className:`d-inline-block align-top text-nowrap lRDfma_scrollWrap`,style:{maxWidth:s,animationDuration:c,height:l,lineHeight:l},children:/*#__PURE__*/ r(`div`,{className:`d-inline-block lRDfma_scrollItem`,style:{animationDuration:c},children:a})})}))},On=({children:e,maxWidth:t,duration:n,height:a})=>a?/*#__PURE__*/ r(`div`,{className:`overflow-hidden lRDfma_scrollHeightWrap`,style:{maxWidth:t,"--scroll-height":a},children:/*#__PURE__*/ i(`div`,{className:`d-inline-block overflow-hidden mw-100 lRDfma_scrollContainer`,children:[/*#__PURE__*/ r(`div`,{className:`d-block overflow-hidden text-wrap text-break lRDfma_unScrollItem`,children:e}),/*#__PURE__*/ r(B,{duration:n,children:e})]})}):/*#__PURE__*/ r(B,{maxWidth:t,duration:n,height:a,children:e});B.displayName=`HorizontalMarquee`;const V=n=>{let{className:i,style:o,name:s,size:c}=n,l=t(n,[`className`,`style`,`name`,`size`]);return/*#__PURE__*/ r(`span`,e({className:a(`bi-${s}`,i),style:e({fontSize:c&&`${c}rem`},o)},l))};V.displayName=`Icon`;const kn=({scope:e,children:t})=>{let a=typeof t==`string`?t:Yt(/*#__PURE__*/ m(t)?t:/*#__PURE__*/ r(n,{children:t}));return/*#__PURE__*/ i(xe,{code:a,scope:e,language:`tsx`,children:[/*#__PURE__*/ r(be,{className:`mb-3`}),/*#__PURE__*/ r(ve,{}),/*#__PURE__*/ r(ye,{className:`text-danger small p-2`})]})},An=n=>{let{className:a=``,children:s=`Loading...`}=n,c=t(n,[`className`,`children`]);return/*#__PURE__*/ i(`div`,o(e({className:`fixed-top h-100 w-100 d-flex justify-content-center align-items-center opacity-25 bg-black ${a}`},c),{children:[/*#__PURE__*/ r(Ae,{animation:`border`,variant:`success`}),/*#__PURE__*/ r(`span`,{className:`ml-3 text-white`,children:s})]}))};An.displayName=`Loading`;var jn,Mn,Nn,Pn,Fn;const In=n=>{let{className:i}=n,s=t(n,[`className`]);return/*#__PURE__*/ r(Ue,o(e({},s),{className:a(`menu-item`,i)}))};let Ln;var Rn=/*#__PURE__*/ new WeakMap,zn=class extends (Mn=u){get open(){return S(this,Rn)}set open(e){w(this,Rn,e)}componentDidMount(){document.addEventListener(`pointerdown`,this.handleOutside)}componentWillUnmount(){document.removeEventListener(`pointerdown`,this.handleOutside)}items(){var e,t;return[...(e=(t=this.panel.current)==null?void 0:t.querySelectorAll(`a[href]:not([aria-disabled="true"]), button:not(:disabled):not([aria-disabled="true"])`))==null?[]:e].filter(e=>!e.closest(`[hidden]`))}render(){let n=this.props,{label:s,autoClose:c,align:l=`end`,menuClassName:u,toggleProps:d,onOpenChange:f,onKeyDown:p,onBlur:m,children:h,className:g,id:_}=n,v=t(n,[`label`,`autoClose`,`align`,`menuClassName`,`toggleProps`,`onOpenChange`,`onKeyDown`,`onBlur`,`children`,`className`,`id`]),{open:y}=this;return/*#__PURE__*/ i(`div`,o(e({},v),{ref:this.root,id:_,className:a(`position-relative`,g),onKeyDown:this.handleKeyDown,onBlur:this.handleBlur,children:[/*#__PURE__*/ r(Ue,o(e({},d),{ref:this.trigger,"aria-expanded":y,"aria-controls":_?`${_}-menu`:void 0,onClick:this.handleToggle,children:s})),/*#__PURE__*/ r(`div`,{ref:this.panel,id:_?`${_}-menu`:void 0,className:a(`menu top-100`,l===`end`?`end-0`:`start-0`,{show:y},u),hidden:!y,onClick:this.handleSelect,children:h})]}))}constructor(...e){super(...e),C(this,Rn,{writable:!0,value:(Fn(this),Nn(this,!1))}),s(this,`root`,/*#__PURE__*/ p()),s(this,`trigger`,/*#__PURE__*/ p()),s(this,`panel`,/*#__PURE__*/ p()),s(this,`setOpen`,Pn(this,e=>{var t,n;this.open!==e&&(this.open=e,(t=(n=this.props).onOpenChange)==null||t.call(n,e))})),s(this,`handleOutside`,({target:e})=>{var t;let{autoClose:n=!0}=this.props;n!==!1&&n!==`inside`&&e instanceof Node&&!((t=this.root.current)!=null&&t.contains(e))&&this.setOpen(!1)}),s(this,`handleKeyDown`,e=>{var t,n;(t=(n=this.props).onKeyDown)==null||t.call(n,e);let{key:r,defaultPrevented:i}=e;if(!i){if(r===`Escape`&&this.open){var a;return e.preventDefault(),this.setOpen(!1),(a=this.trigger.current)==null?void 0:a.focus()}if(r===`Tab`)return this.setOpen(!1);[`ArrowDown`,`ArrowUp`,`Home`,`End`].includes(r)&&(e.preventDefault(),this.setOpen(!0),queueMicrotask(()=>{var e;let t=this.items(),n=t.findIndex(e=>e===document.activeElement),i=r===`Home`?0:t.length-1;r===`ArrowDown`&&(i=(n+1)%t.length),r===`ArrowUp`&&(i=n<=0?t.length-1:n-1),(e=t[i])==null||e.focus()}))}}),s(this,`handleBlur`,e=>{let{onBlur:t,autoClose:n=!0}=this.props;t==null||t(e);let{defaultPrevented:r,currentTarget:i,relatedTarget:a}=e;!r&&n!==!1&&n!==`inside`&&!i.contains(a)&&this.setOpen(!1)}),s(this,`handleToggle`,()=>this.setOpen(!this.open)),s(this,`handleSelect`,({target:e})=>{let{autoClose:t=!0}=this.props;t&&t!==`outside`&&e instanceof Element&&e.closest(`a[href], button:not(:disabled)`)&&this.setOpen(!1)})}};({e:[Nn,Pn,Fn],c:[Ln,jn]}=x(zn,[[D,1,`open`],[te,0,`setOpen`]],[O],Mn)),jn();const Bn=n=>{let{title:a,detail:s,children:c}=n,l=t(n,[`title`,`detail`,`children`]);return/*#__PURE__*/ r(De,o(e({},l),{overlay:s?/*#__PURE__*/ i(Oe,{children:[/*#__PURE__*/ r(Oe.Header,{children:a}),/*#__PURE__*/ r(Oe.Body,{children:s})]}):/*#__PURE__*/ r(Pe,{children:a}),children:c}))};Bn.displayName=`OverlayBox`;let Vn;var H,Hn,Un,Wn,Gn,Kn,qn;let Jn;new(Vn=(H=/*#__PURE__*/ new WeakMap,Hn=class extends (Gn=ne){get weekFormatter(){var e;let{locale:t=(e=globalThis.navigator)==null?void 0:e.language}=this.observedProps;return new Intl.DateTimeFormat(t,{weekday:`long`})}get currentDate(){return S(this,H)}set currentDate(e){w(this,H,e)}get dateGrid(){let e=new Date(this.currentDate);e.setDate(1),e=/* @__PURE__ */ new Date(+e-e.getDay()*ie);let t=Array.from(Array(42),(t,n)=>new Date(+e+n*ie));return pe(t,7)}changeMonth(e){var t,n;this.currentDate=ce(this.currentDate,e),(t=(n=this.props).onChange)==null||t.call(n,this.currentDate)}render(){let{weekFormatter:n,currentDate:a,dateGrid:s}=this,c=this.observedProps,{style:l,variant:u=`primary`,onChange:d,onSelect:f}=c,p=t(c,[`style`,`variant`,`onChange`,`onSelect`]);return/*#__PURE__*/ i(je,o(e({},p),{style:e({tableLayout:`fixed`},l),children:[/*#__PURE__*/ r(`caption`,{children:/*#__PURE__*/ i(`div`,{className:`d-flex justify-content-between align-items-center`,children:[/*#__PURE__*/ r(Ce,{variant:u,onClick:()=>this.changeMonth(-1),children:`<`}),k(a,`YYYY-MM`),/*#__PURE__*/ r(Ce,{variant:u,onClick:()=>this.changeMonth(1),children:`>`})]})}),/*#__PURE__*/ r(`thead`,{children:/*#__PURE__*/ r(`tr`,{children:s[0].map((e,t,{length:i})=>/*#__PURE__*/ r(`td`,{className:`bg-${u} text-white`,style:{width:`calc(100% / ${i})`},children:n.format(e)},t))})}),/*#__PURE__*/ r(`tbody`,{children:s.map(e=>/*#__PURE__*/ r(`tr`,{children:e.map(this.renderDate)},e[0]+``))})]}))}constructor(...e){super(...e),C(this,H,{writable:!0,value:(qn(this),Kn(this,/* @__PURE__ */ new Date))}),s(this,`renderDate`,e=>{let{variant:t=`primary`,value:n,onSelect:o}=this.observedProps,s=k(e,`YYYY-MM-DD`),c=n==null?void 0:n.filter(({date:e})=>k(e,`YYYY-MM-DD`)===s);return/*#__PURE__*/ i(`td`,{className:a({"opacity-50":e.getMonth()!==this.currentDate.getMonth(),"fw-bold":s===k(/* @__PURE__ */ new Date,`YYYY-MM-DD`)}),children:[/*#__PURE__*/ r(`time`,{className:`d-block`,dateTime:e.toJSON(),children:e.getDate()}),c==null?void 0:c.map(e=>typeof e.content==`object`?e.content:/*#__PURE__*/ r(Bn,{title:e.content,children:/*#__PURE__*/ r(Se,{as:`a`,className:`d-inline-block text-decoration-none w-100 text-truncate`,bg:$t(e.content+``,[`light`]),href:e.link,onClick:()=>o==null?void 0:o(e),children:e.content})},e.date+``))]},e+``)})}},{e:[Kn,qn],c:[Jn,Wn]}=x(Hn,[[E,3,`weekFormatter`],[D,1,`currentDate`],[E,3,`dateGrid`]],[O],Gn),Hn),Un=class extends T{constructor(){super(Jn),s(this,`displayName`,`MonthCalendar`),Wn()}},s(Un,Vn,void 0),Un);const Yn=({avatar:e,name:t})=>/*#__PURE__*/ i(n,{children:[/*#__PURE__*/ r(Re,{size:2,style:{marginRight:`0.5rem`},src:e}),/*#__PURE__*/ r(`span`,{className:`align-middle`,children:t})]});Yn.displayName=`Nameplate`;var Xn={hiddenBackdrop:`Ocw1GG_hiddenBackdrop`},Zn=class extends u{get open(){var e,t;return(e=(t=this.element.current)==null?void 0:t.open)!=null&&e}componentWillUnmount(){this.close()}render(){let n=this.props,{modal:i,keyboard:s,backdrop:c=!0,className:l,onCancel:u,onClick:d,onKeyDown:f}=n,p=t(n,[`modal`,`keyboard`,`backdrop`,`className`,`onCancel`,`onClick`,`onKeyDown`]);return/*#__PURE__*/ r(`dialog`,o(e({},p),{ref:this.element,className:a(`dialog`,c===!1&&Xn.hiddenBackdrop,l),"data-backdrop":c===!1?`false`:void 0,onCancel:this.handleCancel,onKeyDown:this.handleKeyDown,onClick:this.handleClick}))}constructor(...e){super(...e),s(this,`element`,/*#__PURE__*/ p()),s(this,`returnFocus`,void 0),s(this,`show`,()=>{if(this.open)return;let e=this.element.current;e&&(document.activeElement instanceof HTMLElement&&(this.returnFocus=document.activeElement),this.props.modal===!1?e.show():e.showModal())}),s(this,`close`,()=>{var e,t;this.open&&((e=this.element.current)==null||e.close(),(t=this.returnFocus)==null||t.focus())}),s(this,`handleCancel`,e=>{let{onCancel:t,keyboard:n=!0}=this.props;t==null||t(e);let{defaultPrevented:r}=e;e.preventDefault(),n&&!r&&this.close()}),s(this,`handleKeyDown`,e=>{let{onKeyDown:t,keyboard:n=!0}=this.props;t==null||t(e);let{key:r,defaultPrevented:i}=e;r===`Escape`&&n&&!i&&(e.preventDefault(),this.close())}),s(this,`handleClick`,e=>{let{onClick:t,backdrop:n=!0}=this.props;t==null||t(e);let{defaultPrevented:r,target:i,currentTarget:a,clientX:o,clientY:s}=e;if(n!==!0||r||i!==a)return;let{left:c,right:l,top:u,bottom:d}=a.getBoundingClientRect();(o<c||o>l||s<u||s>d)&&this.close()})}};const Qn=n=>{let{expand:i,className:s}=n,c=t(n,[`expand`,`className`]);return/*#__PURE__*/ r(`nav`,o(e({},c),{className:a(`navbar`,i&&(i===!0?`navbar-expand`:`${i}:navbar-expand`),s)}))};let $n;var U,W,er,tr,nr,rr,ir,ar,or;const sr=Array.from([,,,,,,],(e,t)=>`h${++t}`)+``;let cr;new($n=(U=/*#__PURE__*/ new WeakMap,W=/*#__PURE__*/ new WeakMap,er=class extends (rr=u){get list(){return S(this,U)}set list(e){w(this,U,e)}get scrollY(){return S(this,W)}set scrollY(e){w(this,W,e)}get currentActiveId(){var e;let{list:t,scrollY:n}=this;return(e=t[t.findIndex(({top:e})=>e>n)-1])==null?void 0:e.id}componentDidMount(){globalThis.document&&(window.addEventListener(`scroll`,this.updateScrollY),this.list=Array.from(document.querySelectorAll(sr),e=>{var t;(t=e).id||(t.id=me());let{id:n,tagName:r,textContent:i,offsetTop:a}=e;return{id:n,level:+r[1],text:i.trim(),top:a}}))}componentWillUnmount(){var e,t;(e=(t=globalThis).removeEventListener)==null||e.call(t,`scroll`,this.updateScrollY)}render(){let{list:n}=this,i=this.props,{style:a,variant:s=`underline`}=i,c=t(i,[`style`,`variant`]);return/*#__PURE__*/ r(M,o(e({},c),{variant:s,style:e({flexDirection:`column`},a),children:n.map(this.renderLink)}))}constructor(...e){super(...e),C(this,U,{writable:!0,value:(or(this),ir(this,[]))}),C(this,W,{writable:!0,value:ar(this,0)}),s(this,`updateScrollY`,()=>this.scrollY=window.scrollY),s(this,`scrollTo`,e=>()=>{var t,n;setTimeout(()=>de(`[id="${e.id}"]`)),(t=(n=this.props).onItemClick)==null||t.call(n,e)}),s(this,`renderLink`,({id:e,level:t,text:n,top:i})=>{let{currentActiveId:a}=this,{depth:o=1/0}=this.props;return t<=o&&/*#__PURE__*/ r(M.Item,{style:{textIndent:`${t-1}rem`},children:/*#__PURE__*/ r(M.Link,{href:`#${e}`,active:a===e,onClick:this.scrollTo({id:e,level:t,text:n,top:i}),children:n})},e)})}},{e:[ir,ar,or],c:[cr,nr]}=x(er,[[D,1,`list`],[D,1,`scrollY`],[E,3,`currentActiveId`]],[O],rr),er),tr=class extends T{constructor(){super(cr),s(this,`displayName`,`PageNav`),nr()}},s(tr,$n,void 0),tr);let lr;var G,K,q,ur,dr,fr,pr,mr,hr,gr,_r;let vr;new(lr=(G=/*#__PURE__*/ new WeakMap,K=/*#__PURE__*/ new WeakMap,q=/*#__PURE__*/ new WeakMap,ur=class extends (pr=u){get scrollLeft(){return S(this,G)}set scrollLeft(e){w(this,G,e)}get scrollWidth(){return S(this,K)}set scrollWidth(e){w(this,K,e)}get clientWidth(){return S(this,q)}set clientWidth(e){w(this,q,e)}get canScrollLeft(){return this.scrollLeft>0}get canScrollRight(){return this.scrollLeft+this.clientWidth<this.scrollWidth}componentDidMount(){let e=this.updateScroll();e&&(e.addEventListener(`scroll`,this.updateScroll),this.resizeObserver=new ResizeObserver(this.updateScroll),this.resizeObserver.observe(e))}componentWillUnmount(){var e,t;(e=this.resizeObserver)==null||e.disconnect(),(t=this.scrollerRef.current)==null||t.removeEventListener(`scroll`,this.updateScroll)}render(){let{canScrollLeft:n,canScrollRight:a}=this,s=this.props,{className:c=``,children:l}=s,u=t(s,[`className`,`children`]);return/*#__PURE__*/ i(`div`,{className:`position-relative overflow-y-hidden ${c}`,children:[n&&/*#__PURE__*/ r(`button`,{type:`button`,className:`position-absolute top-0 bottom-0 start-0 z-1 border-0 px-2 aEvBXq_scrollButtonLeft`,"aria-label":`Scroll left`,onClick:this.scrollBy(-1),children:/*#__PURE__*/ r(V,{name:`caret-left-fill`})}),/*#__PURE__*/ r(`div`,{ref:this.scrollerRef,className:`overflow-x-auto aEvBXq_scrollerInner`,children:/*#__PURE__*/ r(M,o(e({},u),{className:`flex-nowrap`,children:l}))}),a&&/*#__PURE__*/ r(`button`,{type:`button`,className:`position-absolute top-0 bottom-0 end-0 z-1 border-0 px-2 aEvBXq_scrollButtonRight`,"aria-label":`Scroll right`,onClick:this.scrollBy(1),children:/*#__PURE__*/ r(V,{name:`caret-right-fill`})})]})}constructor(...e){super(...e),s(this,`scrollerRef`,(_r(this),/*#__PURE__*/ p())),C(this,G,{writable:!0,value:mr(this,0)}),C(this,K,{writable:!0,value:hr(this,0)}),C(this,q,{writable:!0,value:gr(this,0)}),s(this,`updateScroll`,()=>{let e=this.scrollerRef.current;return e&&(this.scrollLeft=e.scrollLeft,this.scrollWidth=e.scrollWidth,this.clientWidth=e.clientWidth),e}),s(this,`resizeObserver`,void 0),s(this,`scrollBy`,e=>()=>{let t=this.scrollerRef.current;t&&t.scrollBy({left:e*t.clientWidth*.8,behavior:`smooth`})})}},{e:[mr,hr,gr,_r],c:[vr,fr]}=x(ur,[[D,1,`scrollLeft`],[D,1,`scrollWidth`],[D,1,`clientWidth`],[E,3,`canScrollLeft`],[E,3,`canScrollRight`]],[O],pr),ur),dr=class extends T{constructor(){super(vr),s(this,`displayName`,`ScrollNav`),fr()}},s(dr,lr,void 0),dr);const yr=n=>{let{value:i,children:a}=n,s=t(n,[`value`,`children`]);return/*#__PURE__*/ r(j.Item,o(e({},s),{"data-value":i,children:a}))};yr.displayName=`Option`;const br=({className:e,style:t,variant:n,menuVariant:o,children:s,value:c,onChange:l,valueRender:u})=>{let d=ue(s).flat(1/0).find(e=>/*#__PURE__*/ m(e)&&e.type===yr&&e.props.value===c);return/*#__PURE__*/ i(j,{onClick:({target:e})=>{let t=e.closest(`.dropdown-item`);if(!t)return;let{value:n}=t.dataset;l==null||l(n)},children:[/*#__PURE__*/ r(j.Toggle,{className:a(`w-100`,`d-flex`,`justify-content-between`,`align-items-center`,!n&&`bg-white text-dark`,e),style:t,variant:n,children:(u==null?void 0:u(c))||/*#__PURE__*/ r(`div`,{className:d==null?void 0:d.props.className,children:d==null?void 0:d.props.children})}),/*#__PURE__*/ r(j.Menu,{variant:o,children:s})]})};br.displayName=`Select`;let xr;var J,Y,Sr,Cr,wr,Tr,Er,Dr,Or;function kr(e,t,n){return A(function*(){let r=yield Fe(e,{useCORS:!0});return new Promise((e,i)=>r.toBlob(t=>t?e(URL.createObjectURL(t)):i(),t,n))})()}let Ar;new(xr=(J=/*#__PURE__*/ new WeakMap,Y=/*#__PURE__*/ new WeakMap,Sr=class extends (Tr=u){get loading(){return S(this,J)}set loading(e){w(this,J,e)}get imageURI(){return S(this,Y)}set imageURI(e){w(this,Y,e)}componentDidMount(){var e,t;(e=(t=globalThis).addEventListener)==null||e.call(t,`resize`,this.generateImage)}componentWillUnmount(){var e,t;(e=(t=globalThis).removeEventListener)==null||e.call(t,`resize`,this.generateImage)}render(){let a=this.props,{className:s=``,children:c}=a,l=t(a,[`className`,`children`]),{loading:u,imageURI:d}=this;return/*#__PURE__*/ i(n,{children:[u&&/*#__PURE__*/ r(An,{}),/*#__PURE__*/ i(`div`,o(e({},l),{ref:this.root,className:`position-relative ${s}`,onMouseEnter:d?void 0:this.generateImage,onTouchStart:d?void 0:this.generateImage,children:[c,d&&/*#__PURE__*/ r(Ee,{className:`position-absolute start-0 top-0 w-100 h-100`,src:d,alt:`Share Image`,fluid:!0,onClick:this.share})]}))]})}constructor(...t){var n;super(...t),n=this,s(this,`root`,(Or(this),/*#__PURE__*/ p())),C(this,J,{writable:!0,value:Er(this,!1)}),C(this,Y,{writable:!0,value:Dr(this,``)}),s(this,`generateImage`,()=>A(function*(){n.imageURI&&(URL.revokeObjectURL(n.imageURI),n.imageURI=``),n.loading=!0,n.imageURI=yield kr(n.root.current),n.loading=!1})()),s(this,`share`,t=>A(function*(){var r,i;t.stopPropagation();let a=yield se(n.imageURI),o=new File([a],`${n.props.title}.png`,{type:a.type});yield(r=(i=navigator).share)==null?void 0:r.call(i,e({files:[o]},n.props))})())}},{e:[Er,Dr,Or],c:[Ar,wr]}=x(Sr,[[D,1,`loading`],[D,1,`imageURI`]],[O],Tr),Sr),Cr=class extends T{constructor(){super(Ar),s(this,`displayName`,`ShareBox`),wr()}},s(Cr,xr,void 0),Cr);const jr=a=>{let{animation:s,loading:c,disabled:l,children:u}=a,d=t(a,[`animation`,`loading`,`disabled`,`children`]);return/*#__PURE__*/ i(Ce,o(e({},d),{disabled:c||l,children:[c&&/*#__PURE__*/ i(n,{children:[/*#__PURE__*/ r(Ae,{as:`span`,className:u?`me-2`:``,size:`sm`,animation:s,role:`status`,"aria-hidden":`true`}),!u&&/*#__PURE__*/ r(`span`,{className:`visually-hidden`,children:`Loading...`})]}),u]}))};jr.displayName=`SpinnerButton`;const Mr=n=>{let{animation:i=`border`,variant:a=`primary`,size:s,colSpan:c}=n,l=t(n,[`animation`,`variant`,`size`,`colSpan`]);return/*#__PURE__*/ r(`tr`,o(e({},l),{children:/*#__PURE__*/ r(`td`,{className:`text-center p-4`,colSpan:c,children:/*#__PURE__*/ r(Ae,{animation:i,variant:a,size:s})})}))};Mr.displayName=`TableSpinner`;let Nr;var X,Z,Pr,Fr,Ir,Lr,Rr,zr,Br;let Vr;new(Nr=(X=/*#__PURE__*/ new WeakMap,Z=/*#__PURE__*/ new WeakMap,Pr=class extends (Lr=u){get expanded(){return S(this,X)}set expanded(e){w(this,X,e)}get overflowed(){return S(this,Z)}set overflowed(e){w(this,Z,e)}componentDidMount(){this.checkOverflow(),window.addEventListener(`resize`,this.checkOverflow)}componentDidUpdate({rows:e,children:t}){this.expanded||t===this.props.children&&e===this.props.rows||this.checkOverflow()}componentWillUnmount(){window.removeEventListener(`resize`,this.checkOverflow)}render(){let n=this.props,{children:a,rows:s=3,expandText:c=`⏬`,collapseText:l=`⏫`}=n,u=t(n,[`children`,`rows`,`expandText`,`collapseText`]),{expanded:d,overflowed:f}=this,p={overflow:`hidden`,display:`-webkit-box`,WebkitBoxOrient:`vertical`,WebkitLineClamp:s};return/*#__PURE__*/ i(`div`,o(e({},u),{children:[/*#__PURE__*/ r(`p`,{ref:this.contentRef,style:d?void 0:p,children:a}),(f||d)&&/*#__PURE__*/ r(`button`,{type:`button`,className:`bg-transparent border-0 p-0`,"aria-expanded":d,onClick:this.toggle,children:d?l:c})]}))}constructor(...e){super(...e),C(this,X,{writable:!0,value:(Br(this),Rr(this,!1))}),C(this,Z,{writable:!0,value:zr(this,!1)}),s(this,`contentRef`,/*#__PURE__*/ p()),s(this,`checkOverflow`,()=>{let{current:e}=this.contentRef;e&&(this.overflowed=e.scrollHeight>e.clientHeight)}),s(this,`toggle`,()=>{this.expanded=!this.expanded,this.expanded||requestAnimationFrame(this.checkOverflow)})}},{e:[Rr,zr,Br],c:[Vr,Ir]}=x(Pr,[[D,1,`expanded`],[D,1,`overflowed`]],[O],Lr),Pr),Fr=class extends T{constructor(){super(Vr),s(this,`displayName`,`TextTruncate`),Ir()}},s(Fr,Nr,void 0),Fr);let Hr;var Q,Ur,Wr,Gr,Kr,qr=re(({observedProps:{dateTime:e,format:t}})=>e+t),Jr,Yr;let $;new(Hr=(Q=/*#__PURE__*/ new WeakMap,Ur=class extends (Kr=ne){updateText(){let{dateTime:e,format:t}=this.props;return k(e,t)}get timeText(){return S(this,Q)}set timeText(e){w(this,Q,e)}componentDidMount(){super.componentDidMount(),this.timeText=this.updateText()}render(){let n=this.props,{dateTime:i}=n,a=t(n,[`dateTime`]);return/*#__PURE__*/ r(`time`,o(e({dateTime:new Date(i).toJSON()},a),{children:this.timeText}))}constructor(...e){super(...e),C(this,Q,{writable:!0,value:(Yr(this),Jr(this,this.updateText()))})}},{e:[Jr,Yr],c:[$,Gr]}=x(Ur,[[qr,2,`updateText`],[D,1,`timeText`]],[O],Kr),Ur),Wr=class extends T{constructor(){super($),s(this,`displayName`,`Time`),Gr()}},s(Wr,Hr,void 0),Wr);const Xr={ms:`millisecond(s)`,s:`second(s)`,m:`minute(s)`,H:`hour(s)`,D:`day(s)`,W:`week(s)`,M:`month(s)`,Y:`year(s)`},Zr=n=>{let{date:r,unitWords:a=Xr,beforeWord:s=` before`,afterWord:c=` after`}=n,l=t(n,[`date`,`unitWords`,`beforeWord`,`afterWord`]);r=new Date(r);let{distance:u,unit:d}=le(r);return/*#__PURE__*/ i(`time`,o(e({},l),{dateTime:r.toJSON(),title:r.toLocaleString(),children:[Math.abs(u),` `,a[d],u<0?s:c]}))};Zr.displayName=`TimeDistance`;const Qr=n=>{let{className:a,events:s,timeFormat:c}=n,l=t(n,[`className`,`events`,`timeFormat`]);return/*#__PURE__*/ r(`ol`,o(e({className:`list-unstyled hsu__a_timeline ${a}`},l),{children:s.map(({title:t,summary:n,time:a,link:o,people:s})=>/*#__PURE__*/ r(`li`,{className:`position-relative hsu__a_timelineItem hsu__a_right`,children:/*#__PURE__*/ r(we,{children:/*#__PURE__*/ i(we.Body,{className:`p-4 d-flex flex-column gap-3 align-items-center`,children:[/*#__PURE__*/ r(`h3`,{className:`h5 m-0`,children:/*#__PURE__*/ r(`a`,{className:`text-decoration-none stretched-link`,href:o,children:t})}),/*#__PURE__*/ i(`div`,{className:`small text-muted d-flex gap-2`,children:[`⏲️`,/*#__PURE__*/ r($,{dateTime:a[0],format:c}),a[1]&&`~`,a[1]&&/*#__PURE__*/ r($,{dateTime:a[1],format:c})]}),/*#__PURE__*/ r(`ul`,{className:`list-unstyled m-0 d-flex gap-2 flex-wrap justify-content-around`,children:s==null?void 0:s.map(t=>/*#__PURE__*/ r(`li`,{children:/*#__PURE__*/ r(Yn,e({},t))},t.name))}),/*#__PURE__*/ r(`p`,{className:`m-0`,children:n})]})})},t))}))};Qr.displayName=`Timeline`;var $r,ei;const ti=/* @__PURE__ */ new Set([`warning`,`info`,`light`]);var ni=/*#__PURE__*/ new WeakMap,ri=class{get messages(){return S(this,ni)}set messages(e){w(this,ni,e)}open(t){let n=me(),r=Date.now(),{promise:i,resolve:a}=Promise.withResolvers();return this.messages=[...this.messages,o(e({id:n},t),{openedAt:r,resolve:a})],i}close(n){let r=this.messages.find(e=>e.id===n)||{},{resolve:i}=r,a=t(r,[`resolve`]);i==null||i(o(e({},a),{closedAt:Date.now()})),this.messages=this.messages.filter(e=>e.id!==n)}constructor(e=oe){s(this,`TimeScalar`,void 0),C(this,ni,{writable:!0,value:void 0}),s(this,`Component`,void 0),s(this,`renderMessage`,void 0),this.TimeScalar=e,w(this,ni,(ei(this),$r(this,[]))),this.Component=O(({position:e=`top-end`})=>/*#__PURE__*/ r(Ne,{position:e,className:`position-fixed p-3`,children:this.messages.map(this.renderMessage)})),this.renderMessage=({id:e,openedAt:t,title:n,body:a,variant:o,delay:s=3e3})=>{let c=o&&!ti.has(o)?`text-white`:void 0,l=!!n||s===0,u=this.TimeScalar.distanceOf(Date.now(),t).toShortString();return/*#__PURE__*/ i(Me,{bg:o,delay:s,autohide:s!==0,onClose:()=>this.close(e),children:[l&&/*#__PURE__*/ i(Me.Header,{children:[/*#__PURE__*/ r(`strong`,{className:`me-auto`,children:n}),/*#__PURE__*/ r(`small`,{children:u})]}),/*#__PURE__*/ r(Me.Body,{className:c,children:a})]},e)},this.Component.displayName=`ToastComponent`}};({e:[$r,ei]}=x(ri,[[D,1,`messages`]],[]));let ii;var ai,oi,si,ci,li,ui,di;let fi;new(ii=(ai=/*#__PURE__*/ new WeakMap,oi=class extends (li=u){get echoed(){return S(this,ai)}set echoed(e){w(this,ai,e)}render(){let n=this.props,{className:i,text:s}=n,c=t(n,[`className`,`text`]),{echoed:l}=this;return/*#__PURE__*/ r(`pre`,o(e({},c),{ref:this.init,className:a(`text-wrap`,i),children:l+(l===s?``:`_`)}))}constructor(...e){var t;super(...e),t=this,C(this,ai,{writable:!0,value:(di(this),ui(this,``))}),s(this,`init`,e=>e&&new IntersectionObserver(([{isIntersecting:e}],n)=>A(function*(){if(!e)return;n.disconnect();let{text:r,intervals:i=150}=t.props;for(let e of r)yield fe(i/1e3),t.echoed+=e})()).observe(e))}},{e:[ui,di],c:[fi,ci]}=x(oi,[[D,1,`echoed`]],[O],li),oi),si=class extends T{constructor(){super(fi),s(this,`displayName`,`TypeEcho`),ci()}},s(si,ii,void 0),si);const pi=({email:e,website:t})=>/*#__PURE__*/ i(`address`,{className:`mb-0 d-flex justify-content-around gap-2`,children:[e&&/*#__PURE__*/ r(`a`,{rel:`noreferrer`,target:`_blank`,href:`mailto:`+e,children:/*#__PURE__*/ r(V,{name:`envelope`})}),t&&/*#__PURE__*/ r(`a`,{rel:`noreferrer`,target:`_blank`,href:t,children:/*#__PURE__*/ r(V,{name:`globe2`})})]}),mi=`X5DLia_image`;var hi=class extends f{render(){let n=this.props,{className:a=``,title:s,rank:c=[],linkOf:l}=n,u=t(n,[`className`,`title`,`rank`,`linkOf`]);return/*#__PURE__*/ i(ke,o(e({className:`X5DLia_rankBox ${a}`},u),{children:[/*#__PURE__*/ i(Te,{sm:12,xs:12,lg:7,children:[/*#__PURE__*/ i(`div`,{className:`shadow rounded-3 X5DLia_title`,children:[/*#__PURE__*/ i(`div`,{className:`X5DLia_medal`,children:[/*#__PURE__*/ r(`i`,{className:`d-inline-block ms-1 overflow-hidden rounded-circle`}),/*#__PURE__*/ r(`i`,{className:`d-inline-block ms-1 overflow-hidden rounded-circle`}),/*#__PURE__*/ r(`i`,{className:`d-inline-block ms-1 overflow-hidden rounded-circle`})]}),/*#__PURE__*/ r(`h3`,{"data-text":s,className:`position-relative m-auto mb-0 fw-bold text-center`,children:s})]}),/*#__PURE__*/ r(ke,{as:`ul`,className:`mt-2 g-0 align-items-end text-center ps-0 pt-2 list-unstyled X5DLia_topUsers`,children:c.slice(0,3).map(this.renderMedal)})]}),/*#__PURE__*/ r(Te,{xs:12,sm:12,lg:5,children:/*#__PURE__*/ r(je,{className:`my-3 pt-2 X5DLia_restUsers`,responsive:!0,children:/*#__PURE__*/ r(`tbody`,{children:c.slice(3,10).map(this.renderRow)})})})]}))}constructor(...t){super(...t),s(this,`renderMedal`,t=>{var n,a;return/*#__PURE__*/ i(Te,{as:`li`,children:[/*#__PURE__*/ r(`div`,{className:`shadow-lg overflow-hidden rounded-circle m-auto ${mi}`,children:/*#__PURE__*/ r(Ee,{src:t.avatar,alt:t.name,loading:`lazy`,fluid:!0})}),/*#__PURE__*/ i(`div`,{className:`position-relative overflow-hidden X5DLia_topUser`,children:[/*#__PURE__*/ i(`div`,{className:`position-relative`,children:[/*#__PURE__*/ r(`i`,{className:`d-block overflow-hidden m-auto mb-1 rounded-circle`}),/*#__PURE__*/ r(`a`,{className:`d-block mb-0 stretched-link`,href:((n=(a=this.props).linkOf)==null?void 0:n.call(a,t))||`#`,children:t.name}),/*#__PURE__*/ r(`strong`,{children:t.score})]}),/*#__PURE__*/ r(pi,e({},t))]})]},t.id)}),s(this,`renderRow`,(t,n,{length:a})=>{var o,s;return/*#__PURE__*/ i(`tr`,{className:`position-relative`,children:[/*#__PURE__*/ r(`td`,{className:`align-middle`,children:/*#__PURE__*/ r(Se,{className:`fw-bold fst-italic`,children:(n+4+``).padStart((a+``).length,`0`)})}),/*#__PURE__*/ i(`td`,{className:`position-relative mw-50 text-truncate X5DLia_name`,children:[/*#__PURE__*/ r(`div`,{className:`d-inline-block overflow-hidden align-middle rounded-circle ${mi}`,children:/*#__PURE__*/ r(Ee,{src:t.avatar,alt:t.name,loading:`lazy`,fluid:!0})}),/*#__PURE__*/ r(`a`,{className:`ms-2 d-inline-block align-middle stretched-link`,style:{color:`rgb(248, ${(n+2)*15}, ${(n+2)*35})`},href:((o=(s=this.props).linkOf)==null?void 0:o.call(s,t))||`#`,children:t.name})]}),/*#__PURE__*/ r(`td`,{className:`align-middle`,children:t.score}),/*#__PURE__*/ r(`td`,{className:`align-middle`,children:/*#__PURE__*/ r(pi,e({},t))})]},t.id)})}};s(hi,`displayName`,`UserRankView`);const gi=n=>{let{className:i=``,children:a,duration:s}=n,c=t(n,[`className`,`children`,`duration`]);return/*#__PURE__*/ r(`div`,o(e({className:`overflow-hidden ${i}`},c),{children:/*#__PURE__*/ r(`div`,{className:`d-inline-block mw-100 mh-100 QBd6SG_scrollWrap`,style:{"--duration":s},children:/*#__PURE__*/ r(`div`,{className:`d-inline-block QBd6SG_scrollItem`,children:a})})}))};gi.displayName=`VerticalMarquee`;const _i=[`🐵`,`🐔`,`🐶`,`🐷`,`🐭`,`🐮`,`🐯`,`🐰`,`🐲`,`🐍`,`🐴`,`🐐`],vi=e=>{let t=e<0?e+1:e;return _i[(t%12+12)%12]},yi=n=>{let{className:a=``,itemClassName:s=`border rounded px-4 py-3 d-flex flex-column justify-content-center align-items-center`,startYear:c,endYear:l=(/* @__PURE__ */ new Date()).getFullYear(),itemOf:u}=n,d=t(n,[`className`,`itemClassName`,`startYear`,`endYear`,`itemOf`]);return/*#__PURE__*/ r(`ol`,o(e({className:`list-unstyled m-0 d-flex flex-wrap justify-content-center gap-3 ${a}`},d),{children:Array.from({length:l-c+1},(e,t)=>{let n=l-t;if(n===0)return null;let a=vi(n),{link:o=`#`,title:c}=(u==null?void 0:u(n,a))||{};return/*#__PURE__*/ r(`li`,{className:s,children:/*#__PURE__*/ i(`a`,{className:`d-inline-block p-3 text-decoration-none text-center`,href:o,children:[/*#__PURE__*/ r(`div`,{className:`fs-1`,children:a}),c]})},n)})}))};yi.displayName=`ZodiacBar`;export{Re as Avatar,Be as Badge,Ue as Button,We as ClickBoundary,Zt as CodeBlock,ln as Countdown,gn as Dialog,pn as DialogClose,Tn as Editor,Dn as EditorHTML,B as HorizontalMarquee,On as HorizontalMarqueeBox,V as Icon,kn as LiveTSX,An as Loading,Ln as Menu,In as MenuItem,Jn as MonthCalendar,Yn as Nameplate,Zn as NativeDialog,Qn as Navbar,yr as Option,Bn as OverlayBox,cr as PageNav,vr as ScrollNav,br as Select,Ar as ShareBox,jr as SpinnerButton,Mr as TableSpinner,Vr as TextTruncate,$ as Time,Zr as TimeDistance,Qr as Timeline,ri as Toast,fi as TypeEcho,hi as UserRankView,Qt as VariantColors,gi as VerticalMarquee,yi as ZodiacBar,_i as ZodiacSigns,Le as animate,kr as elementToImage,En as parser,$t as text2color,vi as zodiacOf};
package/dist/style.css CHANGED
@@ -49,6 +49,10 @@
49
49
  height: var(--scroll-height);
50
50
  line-height: var(--scroll-height);
51
51
  }
52
+ .Ocw1GG_hiddenBackdrop {
53
+ --bs-dialog-backdrop-bg: transparent;
54
+ --bs-dialog-backdrop-blur: 0;
55
+ }
52
56
  .aEvBXq_scrollerInner {
53
57
  -webkit-overflow-scrolling: touch;
54
58
  scrollbar-width: none;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "idea-react",
3
- "version": "2.3.4",
3
+ "version": "3.0.0-alpha.0",
4
4
  "license": "LGPL-3.0-or-later",
5
5
  "author": "shiy2008@gmail.com",
6
6
  "description": "A React advanced components library based on TypeScript & Bootstrap, built by idea2app remote developers team.",
@@ -28,11 +28,11 @@
28
28
  "require": "./dist/index.js"
29
29
  },
30
30
  "dependencies": {
31
- "@editorjs/editorjs": "^2.31.6",
31
+ "@editorjs/editorjs": "^2.31.7",
32
32
  "@editorjs/paragraph": "^2.11.7",
33
33
  "@react-editor-js/core": "^2.1.0",
34
- "@shikijs/langs": "^4.4.2",
35
- "@shikijs/themes": "^4.4.2",
34
+ "@shikijs/langs": "^4.5.0",
35
+ "@shikijs/themes": "^4.5.0",
36
36
  "@swc/helpers": "^0.5.23",
37
37
  "classnames": "^2.5.1",
38
38
  "editorjs-html": "^4.0.5",
@@ -42,9 +42,9 @@
42
42
  "mobx-react-helper": "^0.5.4",
43
43
  "react-bootstrap": "^2.10.10",
44
44
  "react-editor-js": "^2.1.0",
45
- "react-live": "^4.1.8",
46
- "shiki": "^4.4.2",
47
- "web-utility": "^4.7.2"
45
+ "react-live": "^5.0.1",
46
+ "shiki": "^4.5.0",
47
+ "web-utility": "^4.8.1"
48
48
  },
49
49
  "peerDependencies": {
50
50
  "mobx": ">=6",
@@ -54,7 +54,7 @@
54
54
  "react-element-to-jsx-string": ">=15"
55
55
  },
56
56
  "devDependencies": {
57
- "@cspell/eslint-plugin": "^10.0.1",
57
+ "@cspell/eslint-plugin": "^10.4.0",
58
58
  "@eslint/js": "^10.0.1",
59
59
  "@parcel/config-default": "~2.16.4",
60
60
  "@parcel/packager-ts": "~2.16.4",
@@ -62,41 +62,45 @@
62
62
  "@parcel/transformer-typescript-tsc": "~2.16.4",
63
63
  "@parcel/transformer-typescript-types": "~2.16.4",
64
64
  "@softonus/prettier-plugin-duplicate-remover": "^1.1.2",
65
- "@swc/core": "^1.15.47",
66
- "@tsdown/css": "^0.22.14",
67
- "@types/lodash": "^4.17.25",
68
- "@types/node": "^24.13.3",
69
- "@types/react": "^19.2.18",
70
- "@types/react-dom": "^19.2.4",
65
+ "@swc/core": "^1.16.20",
66
+ "@testing-library/dom": "^10.4.2",
67
+ "@testing-library/react": "^16.3.3",
68
+ "@tsdown/css": "^0.23.4",
69
+ "@types/lodash": "^4.17.27",
70
+ "@types/node": "^26.6.6",
71
+ "@types/react": "^19.3.0",
72
+ "@types/react-dom": "^19.3.0",
71
73
  "buffer": "^6.0.3",
72
- "eslint": "^10.8.1",
74
+ "eslint": "^10.14.0",
73
75
  "eslint-config-prettier": "^10.1.8",
74
76
  "eslint-plugin-react": "^7.37.5",
75
77
  "eslint-plugin-simple-import-sort": "^14.0.0",
76
- "globals": "^17.9.0",
78
+ "globals": "^17.13.0",
79
+ "happy-dom": "^21.0.4",
77
80
  "husky": "^9.1.7",
78
81
  "jiti": "^2.7.0",
79
82
  "koapache": "^3.0.0",
80
- "less": "^4.8.1",
81
- "lint-staged": "^17.3.0",
82
- "mobx": "^7.0.0",
83
- "mobx-react": "^10.0.0",
83
+ "less": "^4.9.1",
84
+ "lint-staged": "^17.6.0",
85
+ "mobx": "^7.1.3",
86
+ "mobx-react": "^10.0.3",
84
87
  "parcel": "~2.16.4",
85
- "postcss": "^8.5.26",
86
- "prettier": "^3.9.6",
88
+ "postcss": "^8.5.32",
89
+ "prettier": "^3.9.10",
87
90
  "prettier-plugin-css-order": "^2.2.0",
88
91
  "process": "^0.11.10",
89
92
  "prop-types": "15.8.1",
90
- "react": "^19.2.8",
91
- "react-dom": "^19.2.8",
92
- "react-element-to-jsx-string": "^17.0.1",
93
+ "react": "^19.3.1",
94
+ "react-dom": "^19.3.1",
95
+ "react-element-to-jsx-string": "^18.0.0",
93
96
  "rimraf": "^6.1.3",
94
- "tsdown": "^0.22.14",
97
+ "tsdown": "^0.23.4",
95
98
  "typedoc": "^0.28.20",
96
99
  "typedoc-plugin-mdn-links": "^5.1.1",
97
100
  "typescript": "~5.9.3",
98
- "typescript-eslint": "^8.66.0",
99
- "unplugin-swc": "^1.5.10"
101
+ "typescript-eslint": "^8.72.1",
102
+ "unplugin-swc": "^2.0.0",
103
+ "unrun": "^0.3.1"
100
104
  },
101
105
  "prettier": {
102
106
  "singleQuote": true,
@@ -127,12 +131,12 @@
127
131
  },
128
132
  "scripts": {
129
133
  "prepare": "husky",
130
- "test": "lint-staged",
131
- "pack-preview": "cd preview/ && rimraf ../.parcel-cache dist/ && parcel build --public-url=. --dist-dir=../docs/preview/",
134
+ "test": "lint-staged && node --import ./test/setup.mts --test --test-timeout=10000 test/*.test.tsx",
135
+ "pack-preview": "cd preview/ && rimraf ../.parcel-cache dist/ && parcel build --public-url=. --dist-dir=../docs/preview/ --no-source-maps",
132
136
  "pack-docs": "rimraf docs/ && typedoc source/",
133
137
  "start": "npm run pack-docs && npm run pack-preview && web-server docs/ -p 8080 -o",
134
138
  "build": "npm run pack-docs && npm run pack-preview && tsdown",
135
139
  "prepublishOnly": "npm test && npm run build",
136
- "preview": "cd preview/ && rimraf ../.parcel-cache dist/ && parcel --open"
140
+ "preview": "cd preview/ && rimraf ../.parcel-cache dist/ && parcel"
137
141
  }
138
142
  }
@@ -0,0 +1,34 @@
1
+ import classNames from 'classnames';
2
+ import { ComponentPropsWithRef, FC } from 'react';
3
+
4
+ import type { ComponentTheme } from './Button';
5
+
6
+ interface BadgeStyleProps {
7
+ variant?: 'solid' | 'subtle' | 'outline';
8
+ theme?: ComponentTheme;
9
+ pill?: boolean;
10
+ }
11
+
12
+ type BadgeLinkAttributes = ComponentPropsWithRef<'a'> & { href: string };
13
+ type BadgeElementAttributes =
14
+ (ComponentPropsWithRef<'span'> & { href?: never }) | BadgeLinkAttributes;
15
+ export type BadgeProps = BadgeStyleProps & BadgeElementAttributes;
16
+
17
+ const isBadgeLink = (props: BadgeElementAttributes): props is BadgeLinkAttributes =>
18
+ typeof props.href === 'string';
19
+
20
+ export const Badge: FC<BadgeProps> = ({ variant = 'solid', theme, pill, className, ...props }) => {
21
+ const classes = classNames(
22
+ 'badge',
23
+ variant !== 'solid' && `badge-${variant}`,
24
+ theme && `theme-${theme}`,
25
+ { 'rounded-pill': pill },
26
+ className
27
+ );
28
+
29
+ return isBadgeLink(props) ? (
30
+ <a {...props} className={classes} />
31
+ ) : (
32
+ <span {...props} className={classes} />
33
+ );
34
+ };
@@ -0,0 +1,64 @@
1
+ 'use client';
2
+
3
+ import classNames from 'classnames';
4
+ import { ComponentPropsWithRef, FC, MouseEvent } from 'react';
5
+
6
+ export type ComponentTheme =
7
+ 'primary' | 'accent' | 'secondary' | 'success' | 'danger' | 'warning' | 'info' | 'inverse';
8
+
9
+ interface ButtonStyleProps {
10
+ variant?: 'solid' | 'outline' | 'subtle' | 'text';
11
+ theme?: ComponentTheme;
12
+ size?: 'sm' | 'lg';
13
+ icon?: boolean;
14
+ styled?: boolean;
15
+ disabled?: boolean;
16
+ }
17
+
18
+ type ButtonLinkAttributes = ComponentPropsWithRef<'a'> & { href: string };
19
+ type ButtonAttributes = ComponentPropsWithRef<'button'> & { href?: never };
20
+ type ButtonElementAttributes = ButtonAttributes | ButtonLinkAttributes;
21
+ export type ButtonProps = ButtonStyleProps & ButtonElementAttributes;
22
+
23
+ const isButtonLink = (props: ButtonElementAttributes): props is ButtonLinkAttributes =>
24
+ typeof props.href === 'string';
25
+
26
+ const preventNavigation = (event: MouseEvent<HTMLAnchorElement>) => event.preventDefault();
27
+
28
+ export const Button: FC<ButtonProps> = ({
29
+ variant,
30
+ theme,
31
+ size,
32
+ icon,
33
+ styled,
34
+ disabled,
35
+ className,
36
+ ...props
37
+ }) => {
38
+ const attributes: ButtonElementAttributes = props;
39
+ const classes = classNames(
40
+ variant ? `btn-${variant}` : 'btn',
41
+ theme && `theme-${theme}`,
42
+ size && `btn-${size}`,
43
+ { 'btn-icon': icon, 'btn-styled': styled, disabled },
44
+ className
45
+ );
46
+
47
+ return isButtonLink(attributes) ? (
48
+ <a
49
+ {...attributes}
50
+ className={classes}
51
+ href={disabled ? undefined : attributes.href}
52
+ aria-disabled={disabled || undefined}
53
+ tabIndex={disabled ? -1 : attributes.tabIndex}
54
+ onClick={disabled ? preventNavigation : attributes.onClick}
55
+ />
56
+ ) : (
57
+ <button
58
+ {...attributes}
59
+ type={attributes.type || 'button'}
60
+ className={classes}
61
+ disabled={disabled}
62
+ />
63
+ );
64
+ };