@ribbon-studios/ribbon 1.1.0 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +6 -6
- package/dist/index.css +1 -1
- package/dist/index.js +66 -66
- package/package.json +1 -1
- package/src/Ribbon.module.css +1 -0
package/dist/index.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('./index.css');var
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('./index.css');var Ee={exports:{}},ae={};/**
|
|
2
2
|
* @license React
|
|
3
3
|
* react-jsx-runtime.production.js
|
|
4
4
|
*
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
* This source code is licensed under the MIT license found in the
|
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var Me;function Be(){if(Me)return ae;Me=1;var T=Symbol.for("react.transitional.element"),c=Symbol.for("react.fragment");function N($,w,b){var C=null;if(b!==void 0&&(C=""+b),w.key!==void 0&&(C=""+w.key),"key"in w){b={};for(var k in w)k!=="key"&&(b[k]=w[k])}else b=w;return w=b.ref,{$$typeof:T,type:$,key:C,ref:w!==void 0?w:null,props:b}}return ae.Fragment=c,ae.jsx=N,ae.jsxs=N,ae}var ie={},
|
|
9
|
+
*/var Me;function Be(){if(Me)return ae;Me=1;var T=Symbol.for("react.transitional.element"),c=Symbol.for("react.fragment");function N($,w,b){var C=null;if(b!==void 0&&(C=""+b),w.key!==void 0&&(C=""+w.key),"key"in w){b={};for(var k in w)k!=="key"&&(b[k]=w[k])}else b=w;return w=b.ref,{$$typeof:T,type:$,key:C,ref:w!==void 0?w:null,props:b}}return ae.Fragment=c,ae.jsx=N,ae.jsxs=N,ae}var ie={},ve={exports:{}},p={};/**
|
|
10
10
|
* @license React
|
|
11
11
|
* react.production.js
|
|
12
12
|
*
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
*
|
|
23
23
|
* This source code is licensed under the MIT license found in the
|
|
24
24
|
* LICENSE file in the root directory of this source tree.
|
|
25
|
-
*/ce.exports;var Le;function Qe(){return Le||(Le=1,function(T,c){process.env.NODE_ENV!=="production"&&function(){function N(e,r){Object.defineProperty(b.prototype,e,{get:function(){console.warn("%s(...) is deprecated in plain JavaScript React classes. %s",r[0],r[1])}})}function $(e){return e===null||typeof e!="object"?null:(e=fe&&e[fe]||e["@@iterator"],typeof e=="function"?e:null)}function w(e,r){e=(e=e.constructor)&&(e.displayName||e.name)||"ReactClass";var o=e+"."+r;ge[o]||(console.error("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",r,e),ge[o]=!0)}function b(e,r,o){this.props=e,this.context=r,this.refs=ye,this.updater=o||be}function C(){}function k(e,r,o){this.props=e,this.context=r,this.refs=ye,this.updater=o||be}function W(e){return""+e}function z(e){try{W(e);var r=!1}catch{r=!0}if(r){r=console;var o=r.error,u=typeof Symbol=="function"&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object";return o.call(r,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",u),W(e)}}function I(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===qe?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case t:return"Fragment";case s:return"Profiler";case n:return"StrictMode";case l:return"Suspense";case S:return"SuspenseList";case se:return"Activity"}if(typeof e=="object")switch(typeof e.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),e.$$typeof){case re:return"Portal";case f:return(e.displayName||"Context")+".Provider";case a:return(e._context.displayName||"Context")+".Consumer";case h:var r=e.render;return e=e.displayName,e||(e=r.displayName||r.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case d:return r=e.displayName||null,r!==null?r:I(e.type)||"Memo";case A:r=e._payload,e=e._init;try{return I(e(r))}catch{}}return null}function G(e){if(e===t)return"<>";if(typeof e=="object"&&e!==null&&e.$$typeof===A)return"<...>";try{var r=I(e);return r?"<"+r+">":"<...>"}catch{return"<...>"}}function H(){var e=
|
|
25
|
+
*/ce.exports;var Le;function Qe(){return Le||(Le=1,function(T,c){process.env.NODE_ENV!=="production"&&function(){function N(e,r){Object.defineProperty(b.prototype,e,{get:function(){console.warn("%s(...) is deprecated in plain JavaScript React classes. %s",r[0],r[1])}})}function $(e){return e===null||typeof e!="object"?null:(e=fe&&e[fe]||e["@@iterator"],typeof e=="function"?e:null)}function w(e,r){e=(e=e.constructor)&&(e.displayName||e.name)||"ReactClass";var o=e+"."+r;ge[o]||(console.error("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",r,e),ge[o]=!0)}function b(e,r,o){this.props=e,this.context=r,this.refs=ye,this.updater=o||be}function C(){}function k(e,r,o){this.props=e,this.context=r,this.refs=ye,this.updater=o||be}function W(e){return""+e}function z(e){try{W(e);var r=!1}catch{r=!0}if(r){r=console;var o=r.error,u=typeof Symbol=="function"&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object";return o.call(r,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",u),W(e)}}function I(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===qe?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case t:return"Fragment";case s:return"Profiler";case n:return"StrictMode";case l:return"Suspense";case S:return"SuspenseList";case se:return"Activity"}if(typeof e=="object")switch(typeof e.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),e.$$typeof){case re:return"Portal";case f:return(e.displayName||"Context")+".Provider";case a:return(e._context.displayName||"Context")+".Consumer";case h:var r=e.render;return e=e.displayName,e||(e=r.displayName||r.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case d:return r=e.displayName||null,r!==null?r:I(e.type)||"Memo";case A:r=e._payload,e=e._init;try{return I(e(r))}catch{}}return null}function G(e){if(e===t)return"<>";if(typeof e=="object"&&e!==null&&e.$$typeof===A)return"<...>";try{var r=I(e);return r?"<"+r+">":"<...>"}catch{return"<...>"}}function H(){var e=E.A;return e===null?null:e.getOwner()}function B(){return Error("react-stack-top-frame")}function Z(e){if(pe.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function F(e,r){function o(){Se||(Se=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",r))}o.isReactWarning=!0,Object.defineProperty(e,"key",{get:o,configurable:!0})}function D(){var e=I(this.type);return Ae[e]||(Ae[e]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),e=this.props.ref,e!==void 0?e:null}function Q(e,r,o,u,i,v,_,R){return o=v.ref,e={$$typeof:x,type:e,key:r,props:v,_owner:i},(o!==void 0?o:null)!==null?Object.defineProperty(e,"ref",{enumerable:!1,get:D}):Object.defineProperty(e,"ref",{enumerable:!1,value:null}),e._store={},Object.defineProperty(e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(e,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:_}),Object.defineProperty(e,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:R}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}function J(e,r){return r=Q(e.type,r,void 0,void 0,e._owner,e.props,e._debugStack,e._debugTask),e._store&&(r._store.validated=e._store.validated),r}function P(e){return typeof e=="object"&&e!==null&&e.$$typeof===x}function ne(e){var r={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(o){return r[o]})}function y(e,r){return typeof e=="object"&&e!==null&&e.key!=null?(z(e.key),ne(""+e.key)):r.toString(36)}function ee(){}function te(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch(typeof e.status=="string"?e.then(ee,ee):(e.status="pending",e.then(function(r){e.status==="pending"&&(e.status="fulfilled",e.value=r)},function(r){e.status==="pending"&&(e.status="rejected",e.reason=r)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}function M(e,r,o,u,i){var v=typeof e;(v==="undefined"||v==="boolean")&&(e=null);var _=!1;if(e===null)_=!0;else switch(v){case"bigint":case"string":case"number":_=!0;break;case"object":switch(e.$$typeof){case x:case re:_=!0;break;case A:return _=e._init,M(_(e._payload),r,o,u,i)}}if(_){_=e,i=i(_);var R=u===""?"."+y(_,0):u;return Te(i)?(o="",R!=null&&(o=R.replace(Pe,"$&/")+"/"),M(i,r,o,"",function(K){return K})):i!=null&&(P(i)&&(i.key!=null&&(_&&_.key===i.key||z(i.key)),o=J(i,o+(i.key==null||_&&_.key===i.key?"":(""+i.key).replace(Pe,"$&/")+"/")+R),u!==""&&_!=null&&P(_)&&_.key==null&&_._store&&!_._store.validated&&(o._store.validated=2),i=o),r.push(i)),1}if(_=0,R=u===""?".":u+":",Te(e))for(var m=0;m<e.length;m++)u=e[m],v=R+y(u,m),_+=M(u,r,o,v,i);else if(m=$(e),typeof m=="function")for(m===e.entries&&(Ce||console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),Ce=!0),e=m.call(e),m=0;!(u=e.next()).done;)u=u.value,v=R+y(u,m++),_+=M(u,r,o,v,i);else if(v==="object"){if(typeof e.then=="function")return M(te(e),r,o,u,i);throw r=String(e),Error("Objects are not valid as a React child (found: "+(r==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":r)+"). If you meant to render a collection of children, use an array instead.")}return _}function U(e,r,o){if(e==null)return e;var u=[],i=0;return M(e,u,"","",function(v){return r.call(o,v,i++)}),u}function ue(e){if(e._status===-1){var r=e._result;r=r(),r.then(function(o){(e._status===0||e._status===-1)&&(e._status=1,e._result=o)},function(o){(e._status===0||e._status===-1)&&(e._status=2,e._result=o)}),e._status===-1&&(e._status=0,e._result=r)}if(e._status===1)return r=e._result,r===void 0&&console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
26
26
|
|
|
27
27
|
Your code should look like:
|
|
28
28
|
const MyComponent = lazy(() => import('./MyComponent'))
|
|
@@ -30,11 +30,11 @@ Your code should look like:
|
|
|
30
30
|
Did you accidentally put curly braces around the import?`,r),"default"in r||console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
31
31
|
|
|
32
32
|
Your code should look like:
|
|
33
|
-
const MyComponent = lazy(() => import('./MyComponent'))`,r),r.default;throw e._result}function g(){var e=
|
|
33
|
+
const MyComponent = lazy(() => import('./MyComponent'))`,r),r.default;throw e._result}function g(){var e=E.H;return e===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
|
34
34
|
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
35
35
|
2. You might be breaking the Rules of Hooks
|
|
36
36
|
3. You might have more than one copy of React in the same app
|
|
37
|
-
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),e}function X(){}function q(e){if(de===null)try{var r=("require"+Math.random()).slice(0,7);de=(T&&T[r]).call(T,"timers").setImmediate}catch{de=function(u){Ne===!1&&(Ne=!0,typeof MessageChannel>"u"&&console.error("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var i=new MessageChannel;i.port1.onmessage=u,i.port2.postMessage(void 0)}}return de(e)}function Y(e){return 1<e.length&&typeof AggregateError=="function"?new AggregateError(e):e[0]}function O(e,r){r!==_e-1&&console.error("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),_e=r}function L(e,r,o){var u=v.actQueue;if(u!==null)if(u.length!==0)try{V(u),q(function(){return L(e,r,o)});return}catch(i){v.thrownErrors.push(i)}else v.actQueue=null;0<v.thrownErrors.length?(u=Y(v.thrownErrors),v.thrownErrors.length=0,o(u)):r(e)}function V(e){if(!Re){Re=!0;var r=0;try{for(;r<e.length;r++){var o=e[r];do{v.didUsePromise=!1;var u=o(!1);if(u!==null){if(v.didUsePromise){e[r]=o,e.splice(0,r);return}o=u}else break}while(!0)}e.length=0}catch(i){e.splice(0,r+1),v.thrownErrors.push(i)}finally{Re=!1}}}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var x=Symbol.for("react.transitional.element"),re=Symbol.for("react.portal"),t=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),f=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),S=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),A=Symbol.for("react.lazy"),se=Symbol.for("react.activity"),fe=Symbol.iterator,ge={},be={isMounted:function(){return!1},enqueueForceUpdate:function(e){w(e,"forceUpdate")},enqueueReplaceState:function(e){w(e,"replaceState")},enqueueSetState:function(e){w(e,"setState")}},we=Object.assign,ye={};Object.freeze(ye),b.prototype.isReactComponent={},b.prototype.setState=function(e,r){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,r,"setState")},b.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};var j={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]},le;for(le in j)j.hasOwnProperty(le)&&N(le,j[le]);C.prototype=b.prototype,j=k.prototype=new C,j.constructor=k,we(j,b.prototype),j.isPureReactComponent=!0;var Te=Array.isArray,qe=Symbol.for("react.client.reference"),v={H:null,A:null,T:null,S:null,V:null,actQueue:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1,thrownErrors:[],getCurrentStack:null,recentlyCreatedOwnerStacks:0},pe=Object.prototype.hasOwnProperty,Oe=console.createTask?console.createTask:function(){return null};j={"react-stack-bottom-frame":function(e){return e()}};var Se,ke,Ae={},xe=j["react-stack-bottom-frame"].bind(j,B)(),We=Oe(G(B)),Ce=!1,Pe=/\/+/g,je=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var r=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(r))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},Ne=!1,de=null,_e=0,me=!1,Re=!1,$e=typeof queueMicrotask=="function"?function(e){queueMicrotask(function(){return queueMicrotask(e)})}:q;j=Object.freeze({__proto__:null,c:function(e){return g().useMemoCache(e)}}),c.Children={map:U,forEach:function(e,r,o){U(e,function(){r.apply(this,arguments)},o)},count:function(e){var r=0;return U(e,function(){r++}),r},toArray:function(e){return U(e,function(r){return r})||[]},only:function(e){if(!P(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},c.Component=b,c.Fragment=t,c.Profiler=s,c.PureComponent=k,c.StrictMode=n,c.Suspense=l,c.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=v,c.__COMPILER_RUNTIME=j,c.act=function(e){var r=v.actQueue,o=_e;_e++;var u=v.actQueue=r!==null?r:[],i=!1;try{var E=e()}catch(m){v.thrownErrors.push(m)}if(0<v.thrownErrors.length)throw O(r,o),e=Y(v.thrownErrors),v.thrownErrors.length=0,e;if(E!==null&&typeof E=="object"&&typeof E.then=="function"){var _=E;return $e(function(){i||me||(me=!0,console.error("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))}),{then:function(m,K){i=!0,_.then(function(oe){if(O(r,o),o===0){try{V(u),q(function(){return L(oe,m,K)})}catch(Ge){v.thrownErrors.push(Ge)}if(0<v.thrownErrors.length){var ze=Y(v.thrownErrors);v.thrownErrors.length=0,K(ze)}}else m(oe)},function(oe){O(r,o),0<v.thrownErrors.length&&(oe=Y(v.thrownErrors),v.thrownErrors.length=0),K(oe)})}}}var R=E;if(O(r,o),o===0&&(V(u),u.length!==0&&$e(function(){i||me||(me=!0,console.error("A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\n\nawait act(() => ...)"))}),v.actQueue=null),0<v.thrownErrors.length)throw e=Y(v.thrownErrors),v.thrownErrors.length=0,e;return{then:function(m,K){i=!0,o===0?(v.actQueue=u,q(function(){return L(R,m,K)})):m(R)}}},c.cache=function(e){return function(){return e.apply(null,arguments)}},c.captureOwnerStack=function(){var e=v.getCurrentStack;return e===null?null:e()},c.cloneElement=function(e,r,o){if(e==null)throw Error("The argument must be a React element, but you passed "+e+".");var u=we({},e.props),i=e.key,E=e._owner;if(r!=null){var _;e:{if(pe.call(r,"ref")&&(_=Object.getOwnPropertyDescriptor(r,"ref").get)&&_.isReactWarning){_=!1;break e}_=r.ref!==void 0}_&&(E=H()),Z(r)&&(z(r.key),i=""+r.key);for(R in r)!pe.call(r,R)||R==="key"||R==="__self"||R==="__source"||R==="ref"&&r.ref===void 0||(u[R]=r[R])}var R=arguments.length-2;if(R===1)u.children=o;else if(1<R){_=Array(R);for(var m=0;m<R;m++)_[m]=arguments[m+2];u.children=_}for(u=Q(e.type,i,void 0,void 0,E,u,e._debugStack,e._debugTask),i=2;i<arguments.length;i++)E=arguments[i],P(E)&&E._store&&(E._store.validated=1);return u},c.createContext=function(e){return e={$$typeof:f,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:a,_context:e},e._currentRenderer=null,e._currentRenderer2=null,e},c.createElement=function(e,r,o){for(var u=2;u<arguments.length;u++){var i=arguments[u];P(i)&&i._store&&(i._store.validated=1)}if(u={},i=null,r!=null)for(m in ke||!("__self"in r)||"key"in r||(ke=!0,console.warn("Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform")),Z(r)&&(z(r.key),i=""+r.key),r)pe.call(r,m)&&m!=="key"&&m!=="__self"&&m!=="__source"&&(u[m]=r[m]);var E=arguments.length-2;if(E===1)u.children=o;else if(1<E){for(var _=Array(E),R=0;R<E;R++)_[R]=arguments[R+2];Object.freeze&&Object.freeze(_),u.children=_}if(e&&e.defaultProps)for(m in E=e.defaultProps,E)u[m]===void 0&&(u[m]=E[m]);i&&F(u,typeof e=="function"?e.displayName||e.name||"Unknown":e);var m=1e4>v.recentlyCreatedOwnerStacks++;return Q(e,i,void 0,void 0,H(),u,m?Error("react-stack-top-frame"):xe,m?Oe(G(e)):We)},c.createRef=function(){var e={current:null};return Object.seal(e),e},c.forwardRef=function(e){e!=null&&e.$$typeof===d?console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof e!="function"?console.error("forwardRef requires a render function but was given %s.",e===null?"null":typeof e):e.length!==0&&e.length!==2&&console.error("forwardRef render functions accept exactly two parameters: props and ref. %s",e.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),e!=null&&e.defaultProps!=null&&console.error("forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?");var r={$$typeof:h,render:e},o;return Object.defineProperty(r,"displayName",{enumerable:!1,configurable:!0,get:function(){return o},set:function(u){o=u,e.name||e.displayName||(Object.defineProperty(e,"name",{value:u}),e.displayName=u)}}),r},c.isValidElement=P,c.lazy=function(e){return{$$typeof:A,_payload:{_status:-1,_result:e},_init:ue}},c.memo=function(e,r){e==null&&console.error("memo: The first argument must be a component. Instead received: %s",e===null?"null":typeof e),r={$$typeof:d,type:e,compare:r===void 0?null:r};var o;return Object.defineProperty(r,"displayName",{enumerable:!1,configurable:!0,get:function(){return o},set:function(u){o=u,e.name||e.displayName||(Object.defineProperty(e,"name",{value:u}),e.displayName=u)}}),r},c.startTransition=function(e){var r=v.T,o={};v.T=o,o._updatedFibers=new Set;try{var u=e(),i=v.S;i!==null&&i(o,u),typeof u=="object"&&u!==null&&typeof u.then=="function"&&u.then(X,je)}catch(E){je(E)}finally{r===null&&o._updatedFibers&&(e=o._updatedFibers.size,o._updatedFibers.clear(),10<e&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.")),v.T=r}},c.unstable_useCacheRefresh=function(){return g().useCacheRefresh()},c.use=function(e){return g().use(e)},c.useActionState=function(e,r,o){return g().useActionState(e,r,o)},c.useCallback=function(e,r){return g().useCallback(e,r)},c.useContext=function(e){var r=g();return e.$$typeof===a&&console.error("Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"),r.useContext(e)},c.useDebugValue=function(e,r){return g().useDebugValue(e,r)},c.useDeferredValue=function(e,r){return g().useDeferredValue(e,r)},c.useEffect=function(e,r,o){e==null&&console.warn("React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?");var u=g();if(typeof o=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return u.useEffect(e,r)},c.useId=function(){return g().useId()},c.useImperativeHandle=function(e,r,o){return g().useImperativeHandle(e,r,o)},c.useInsertionEffect=function(e,r){return e==null&&console.warn("React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"),g().useInsertionEffect(e,r)},c.useLayoutEffect=function(e,r){return e==null&&console.warn("React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"),g().useLayoutEffect(e,r)},c.useMemo=function(e,r){return g().useMemo(e,r)},c.useOptimistic=function(e,r){return g().useOptimistic(e,r)},c.useReducer=function(e,r,o){return g().useReducer(e,r,o)},c.useRef=function(e){return g().useRef(e)},c.useState=function(e){return g().useState(e)},c.useSyncExternalStore=function(e,r,o){return g().useSyncExternalStore(e,r,o)},c.useTransition=function(){return g().useTransition()},c.version="19.1.0",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()}(ce,ce.exports)),ce.exports}var Ie;function Xe(){return Ie||(Ie=1,process.env.NODE_ENV==="production"?Ee.exports=Fe():Ee.exports=Qe()),Ee.exports}/**
|
|
37
|
+
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),e}function X(){}function q(e){if(de===null)try{var r=("require"+Math.random()).slice(0,7);de=(T&&T[r]).call(T,"timers").setImmediate}catch{de=function(u){Ne===!1&&(Ne=!0,typeof MessageChannel>"u"&&console.error("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var i=new MessageChannel;i.port1.onmessage=u,i.port2.postMessage(void 0)}}return de(e)}function Y(e){return 1<e.length&&typeof AggregateError=="function"?new AggregateError(e):e[0]}function O(e,r){r!==_e-1&&console.error("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),_e=r}function L(e,r,o){var u=E.actQueue;if(u!==null)if(u.length!==0)try{V(u),q(function(){return L(e,r,o)});return}catch(i){E.thrownErrors.push(i)}else E.actQueue=null;0<E.thrownErrors.length?(u=Y(E.thrownErrors),E.thrownErrors.length=0,o(u)):r(e)}function V(e){if(!Re){Re=!0;var r=0;try{for(;r<e.length;r++){var o=e[r];do{E.didUsePromise=!1;var u=o(!1);if(u!==null){if(E.didUsePromise){e[r]=o,e.splice(0,r);return}o=u}else break}while(!0)}e.length=0}catch(i){e.splice(0,r+1),E.thrownErrors.push(i)}finally{Re=!1}}}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var x=Symbol.for("react.transitional.element"),re=Symbol.for("react.portal"),t=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),f=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),S=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),A=Symbol.for("react.lazy"),se=Symbol.for("react.activity"),fe=Symbol.iterator,ge={},be={isMounted:function(){return!1},enqueueForceUpdate:function(e){w(e,"forceUpdate")},enqueueReplaceState:function(e){w(e,"replaceState")},enqueueSetState:function(e){w(e,"setState")}},we=Object.assign,ye={};Object.freeze(ye),b.prototype.isReactComponent={},b.prototype.setState=function(e,r){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,r,"setState")},b.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};var j={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]},le;for(le in j)j.hasOwnProperty(le)&&N(le,j[le]);C.prototype=b.prototype,j=k.prototype=new C,j.constructor=k,we(j,b.prototype),j.isPureReactComponent=!0;var Te=Array.isArray,qe=Symbol.for("react.client.reference"),E={H:null,A:null,T:null,S:null,V:null,actQueue:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1,thrownErrors:[],getCurrentStack:null,recentlyCreatedOwnerStacks:0},pe=Object.prototype.hasOwnProperty,Oe=console.createTask?console.createTask:function(){return null};j={"react-stack-bottom-frame":function(e){return e()}};var Se,ke,Ae={},xe=j["react-stack-bottom-frame"].bind(j,B)(),We=Oe(G(B)),Ce=!1,Pe=/\/+/g,je=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var r=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(r))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},Ne=!1,de=null,_e=0,me=!1,Re=!1,$e=typeof queueMicrotask=="function"?function(e){queueMicrotask(function(){return queueMicrotask(e)})}:q;j=Object.freeze({__proto__:null,c:function(e){return g().useMemoCache(e)}}),c.Children={map:U,forEach:function(e,r,o){U(e,function(){r.apply(this,arguments)},o)},count:function(e){var r=0;return U(e,function(){r++}),r},toArray:function(e){return U(e,function(r){return r})||[]},only:function(e){if(!P(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},c.Component=b,c.Fragment=t,c.Profiler=s,c.PureComponent=k,c.StrictMode=n,c.Suspense=l,c.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=E,c.__COMPILER_RUNTIME=j,c.act=function(e){var r=E.actQueue,o=_e;_e++;var u=E.actQueue=r!==null?r:[],i=!1;try{var v=e()}catch(m){E.thrownErrors.push(m)}if(0<E.thrownErrors.length)throw O(r,o),e=Y(E.thrownErrors),E.thrownErrors.length=0,e;if(v!==null&&typeof v=="object"&&typeof v.then=="function"){var _=v;return $e(function(){i||me||(me=!0,console.error("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))}),{then:function(m,K){i=!0,_.then(function(oe){if(O(r,o),o===0){try{V(u),q(function(){return L(oe,m,K)})}catch(Ge){E.thrownErrors.push(Ge)}if(0<E.thrownErrors.length){var ze=Y(E.thrownErrors);E.thrownErrors.length=0,K(ze)}}else m(oe)},function(oe){O(r,o),0<E.thrownErrors.length&&(oe=Y(E.thrownErrors),E.thrownErrors.length=0),K(oe)})}}}var R=v;if(O(r,o),o===0&&(V(u),u.length!==0&&$e(function(){i||me||(me=!0,console.error("A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\n\nawait act(() => ...)"))}),E.actQueue=null),0<E.thrownErrors.length)throw e=Y(E.thrownErrors),E.thrownErrors.length=0,e;return{then:function(m,K){i=!0,o===0?(E.actQueue=u,q(function(){return L(R,m,K)})):m(R)}}},c.cache=function(e){return function(){return e.apply(null,arguments)}},c.captureOwnerStack=function(){var e=E.getCurrentStack;return e===null?null:e()},c.cloneElement=function(e,r,o){if(e==null)throw Error("The argument must be a React element, but you passed "+e+".");var u=we({},e.props),i=e.key,v=e._owner;if(r!=null){var _;e:{if(pe.call(r,"ref")&&(_=Object.getOwnPropertyDescriptor(r,"ref").get)&&_.isReactWarning){_=!1;break e}_=r.ref!==void 0}_&&(v=H()),Z(r)&&(z(r.key),i=""+r.key);for(R in r)!pe.call(r,R)||R==="key"||R==="__self"||R==="__source"||R==="ref"&&r.ref===void 0||(u[R]=r[R])}var R=arguments.length-2;if(R===1)u.children=o;else if(1<R){_=Array(R);for(var m=0;m<R;m++)_[m]=arguments[m+2];u.children=_}for(u=Q(e.type,i,void 0,void 0,v,u,e._debugStack,e._debugTask),i=2;i<arguments.length;i++)v=arguments[i],P(v)&&v._store&&(v._store.validated=1);return u},c.createContext=function(e){return e={$$typeof:f,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:a,_context:e},e._currentRenderer=null,e._currentRenderer2=null,e},c.createElement=function(e,r,o){for(var u=2;u<arguments.length;u++){var i=arguments[u];P(i)&&i._store&&(i._store.validated=1)}if(u={},i=null,r!=null)for(m in ke||!("__self"in r)||"key"in r||(ke=!0,console.warn("Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform")),Z(r)&&(z(r.key),i=""+r.key),r)pe.call(r,m)&&m!=="key"&&m!=="__self"&&m!=="__source"&&(u[m]=r[m]);var v=arguments.length-2;if(v===1)u.children=o;else if(1<v){for(var _=Array(v),R=0;R<v;R++)_[R]=arguments[R+2];Object.freeze&&Object.freeze(_),u.children=_}if(e&&e.defaultProps)for(m in v=e.defaultProps,v)u[m]===void 0&&(u[m]=v[m]);i&&F(u,typeof e=="function"?e.displayName||e.name||"Unknown":e);var m=1e4>E.recentlyCreatedOwnerStacks++;return Q(e,i,void 0,void 0,H(),u,m?Error("react-stack-top-frame"):xe,m?Oe(G(e)):We)},c.createRef=function(){var e={current:null};return Object.seal(e),e},c.forwardRef=function(e){e!=null&&e.$$typeof===d?console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof e!="function"?console.error("forwardRef requires a render function but was given %s.",e===null?"null":typeof e):e.length!==0&&e.length!==2&&console.error("forwardRef render functions accept exactly two parameters: props and ref. %s",e.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),e!=null&&e.defaultProps!=null&&console.error("forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?");var r={$$typeof:h,render:e},o;return Object.defineProperty(r,"displayName",{enumerable:!1,configurable:!0,get:function(){return o},set:function(u){o=u,e.name||e.displayName||(Object.defineProperty(e,"name",{value:u}),e.displayName=u)}}),r},c.isValidElement=P,c.lazy=function(e){return{$$typeof:A,_payload:{_status:-1,_result:e},_init:ue}},c.memo=function(e,r){e==null&&console.error("memo: The first argument must be a component. Instead received: %s",e===null?"null":typeof e),r={$$typeof:d,type:e,compare:r===void 0?null:r};var o;return Object.defineProperty(r,"displayName",{enumerable:!1,configurable:!0,get:function(){return o},set:function(u){o=u,e.name||e.displayName||(Object.defineProperty(e,"name",{value:u}),e.displayName=u)}}),r},c.startTransition=function(e){var r=E.T,o={};E.T=o,o._updatedFibers=new Set;try{var u=e(),i=E.S;i!==null&&i(o,u),typeof u=="object"&&u!==null&&typeof u.then=="function"&&u.then(X,je)}catch(v){je(v)}finally{r===null&&o._updatedFibers&&(e=o._updatedFibers.size,o._updatedFibers.clear(),10<e&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.")),E.T=r}},c.unstable_useCacheRefresh=function(){return g().useCacheRefresh()},c.use=function(e){return g().use(e)},c.useActionState=function(e,r,o){return g().useActionState(e,r,o)},c.useCallback=function(e,r){return g().useCallback(e,r)},c.useContext=function(e){var r=g();return e.$$typeof===a&&console.error("Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"),r.useContext(e)},c.useDebugValue=function(e,r){return g().useDebugValue(e,r)},c.useDeferredValue=function(e,r){return g().useDeferredValue(e,r)},c.useEffect=function(e,r,o){e==null&&console.warn("React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?");var u=g();if(typeof o=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return u.useEffect(e,r)},c.useId=function(){return g().useId()},c.useImperativeHandle=function(e,r,o){return g().useImperativeHandle(e,r,o)},c.useInsertionEffect=function(e,r){return e==null&&console.warn("React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"),g().useInsertionEffect(e,r)},c.useLayoutEffect=function(e,r){return e==null&&console.warn("React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"),g().useLayoutEffect(e,r)},c.useMemo=function(e,r){return g().useMemo(e,r)},c.useOptimistic=function(e,r){return g().useOptimistic(e,r)},c.useReducer=function(e,r,o){return g().useReducer(e,r,o)},c.useRef=function(e){return g().useRef(e)},c.useState=function(e){return g().useState(e)},c.useSyncExternalStore=function(e,r,o){return g().useSyncExternalStore(e,r,o)},c.useTransition=function(){return g().useTransition()},c.version="19.1.0",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()}(ce,ce.exports)),ce.exports}var Ie;function Xe(){return Ie||(Ie=1,process.env.NODE_ENV==="production"?ve.exports=Fe():ve.exports=Qe()),ve.exports}/**
|
|
38
38
|
* @license React
|
|
39
39
|
* react-jsx-runtime.development.js
|
|
40
40
|
*
|
|
@@ -47,4 +47,4 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
47
47
|
<%s {...props} />
|
|
48
48
|
React keys must be passed directly to JSX without using spread:
|
|
49
49
|
let props = %s;
|
|
50
|
-
<%s key={someKey} {...props} />`,a,d,A,d),re[d+a]=!0)}if(d=null,s!==void 0&&(N(s),d=""+s),C(n)&&(N(n.key),d=""+n.key),"key"in n){s={};for(var se in n)se!=="key"&&(s[se]=n[se])}else s=n;return d&&k(s,typeof t=="function"?t.displayName||t.name||"Unknown":t),z(t,d,h,f,w(),s,l,S)}function G(t){typeof t=="object"&&t!==null&&t.$$typeof===B&&t._store&&(t._store.validated=1)}var H=Xe(),B=Symbol.for("react.transitional.element"),Z=Symbol.for("react.portal"),F=Symbol.for("react.fragment"),D=Symbol.for("react.strict_mode"),Q=Symbol.for("react.profiler"),J=Symbol.for("react.consumer"),P=Symbol.for("react.context"),ne=Symbol.for("react.forward_ref"),y=Symbol.for("react.suspense"),ee=Symbol.for("react.suspense_list"),te=Symbol.for("react.memo"),M=Symbol.for("react.lazy"),U=Symbol.for("react.activity"),ue=Symbol.for("react.client.reference"),g=H.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,X=Object.prototype.hasOwnProperty,q=Array.isArray,Y=console.createTask?console.createTask:function(){return null};H={"react-stack-bottom-frame":function(t){return t()}};var O,L={},V=H["react-stack-bottom-frame"].bind(H,b)(),x=Y($(b)),re={};ie.Fragment=F,ie.jsx=function(t,n,s,a,f){var h=1e4>g.recentlyCreatedOwnerStacks++;return I(t,n,s,!1,a,f,h?Error("react-stack-top-frame"):V,h?Y($(t)):x)},ie.jsxs=function(t,n,s,a,f){var h=1e4>g.recentlyCreatedOwnerStacks++;return I(t,n,s,!0,a,f,h?Error("react-stack-top-frame"):V,h?Y($(t)):x)}}()),ie}var Ue;function Ke(){return Ue||(Ue=1,process.env.NODE_ENV==="production"?
|
|
50
|
+
<%s key={someKey} {...props} />`,a,d,A,d),re[d+a]=!0)}if(d=null,s!==void 0&&(N(s),d=""+s),C(n)&&(N(n.key),d=""+n.key),"key"in n){s={};for(var se in n)se!=="key"&&(s[se]=n[se])}else s=n;return d&&k(s,typeof t=="function"?t.displayName||t.name||"Unknown":t),z(t,d,h,f,w(),s,l,S)}function G(t){typeof t=="object"&&t!==null&&t.$$typeof===B&&t._store&&(t._store.validated=1)}var H=Xe(),B=Symbol.for("react.transitional.element"),Z=Symbol.for("react.portal"),F=Symbol.for("react.fragment"),D=Symbol.for("react.strict_mode"),Q=Symbol.for("react.profiler"),J=Symbol.for("react.consumer"),P=Symbol.for("react.context"),ne=Symbol.for("react.forward_ref"),y=Symbol.for("react.suspense"),ee=Symbol.for("react.suspense_list"),te=Symbol.for("react.memo"),M=Symbol.for("react.lazy"),U=Symbol.for("react.activity"),ue=Symbol.for("react.client.reference"),g=H.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,X=Object.prototype.hasOwnProperty,q=Array.isArray,Y=console.createTask?console.createTask:function(){return null};H={"react-stack-bottom-frame":function(t){return t()}};var O,L={},V=H["react-stack-bottom-frame"].bind(H,b)(),x=Y($(b)),re={};ie.Fragment=F,ie.jsx=function(t,n,s,a,f){var h=1e4>g.recentlyCreatedOwnerStacks++;return I(t,n,s,!1,a,f,h?Error("react-stack-top-frame"):V,h?Y($(t)):x)},ie.jsxs=function(t,n,s,a,f){var h=1e4>g.recentlyCreatedOwnerStacks++;return I(t,n,s,!0,a,f,h?Error("react-stack-top-frame"):V,h?Y($(t)):x)}}()),ie}var Ue;function Ke(){return Ue||(Ue=1,process.env.NODE_ENV==="production"?Ee.exports=Be():Ee.exports=Ve()),Ee.exports}var He=Ke();const Ze="_ribbon_121d0_1",Je="_content_121d0_18",et="_bottom_121d0_35",tt="_right_121d0_35",rt="_top_121d0_36",nt="_left_121d0_36",he={ribbon:Ze,content:Je,bottom:et,right:tt,top:rt,left:nt};function ot({as:T,children:c,backgroundColor:N="white",color:$="black",position:w="top-right",...b}){const C=T??"div",[k,W]=w.split("-");return He.jsx("div",{className:`${he.ribbon} ${he[k]} ${he[W]}`,"data-testid":"ribbon",children:He.jsx(C,{...b,className:he.content,style:{backgroundColor:N,color:$},"data-testid":"ribbon-content",children:c})})}exports.Ribbon=ot;
|
package/dist/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._ribbon_121d0_1{position:fixed;z-index:9999;width:80px;height:80px;pointer-events:none;-webkit-user-select:none;user-select:none;opacity:1;transform:rotate(45deg);transition:opacity .15s ease-in-out;backface-visibility:hidden}._ribbon_121d0_1:hover{opacity:.75}._content_121d0_18{display:block;font:bold 15px Sans-Serif;text-align:center;position:relative;padding:7px 0;width:150px;box-shadow:0 0 3px #0000004d;pointer-events:all;text-transform:uppercase;transform:translate(-50%,-50%);left:50%;top:50%;background-color:#fafafa;color:#333}._ribbon_121d0_1._bottom_121d0_35._right_121d0_35,._ribbon_121d0_1._top_121d0_36._left_121d0_36{transform:rotate(-45deg)}._ribbon_121d0_1._bottom_121d0_35{bottom:-10px}._ribbon_121d0_1._top_121d0_36{top:-10px}._ribbon_121d0_1._left_121d0_36{left:-10px}._ribbon_121d0_1._right_121d0_35{right:-10px}
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import './index.css';var
|
|
1
|
+
import './index.css';var Ee = { exports: {} }, ae = {};
|
|
2
2
|
/**
|
|
3
3
|
* @license React
|
|
4
4
|
* react-jsx-runtime.production.js
|
|
@@ -30,7 +30,7 @@ function Be() {
|
|
|
30
30
|
}
|
|
31
31
|
return ae.Fragment = c, ae.jsx = N, ae.jsxs = N, ae;
|
|
32
32
|
}
|
|
33
|
-
var ie = {},
|
|
33
|
+
var ie = {}, ve = { exports: {} }, p = {};
|
|
34
34
|
/**
|
|
35
35
|
* @license React
|
|
36
36
|
* react.production.js
|
|
@@ -528,7 +528,7 @@ function Qe() {
|
|
|
528
528
|
}
|
|
529
529
|
}
|
|
530
530
|
function H() {
|
|
531
|
-
var e =
|
|
531
|
+
var e = E.A;
|
|
532
532
|
return e === null ? null : e.getOwner();
|
|
533
533
|
}
|
|
534
534
|
function B() {
|
|
@@ -559,12 +559,12 @@ function Qe() {
|
|
|
559
559
|
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
560
560
|
)), e = this.props.ref, e !== void 0 ? e : null;
|
|
561
561
|
}
|
|
562
|
-
function Q(e, r, o, u, i,
|
|
563
|
-
return o =
|
|
562
|
+
function Q(e, r, o, u, i, v, _, R) {
|
|
563
|
+
return o = v.ref, e = {
|
|
564
564
|
$$typeof: x,
|
|
565
565
|
type: e,
|
|
566
566
|
key: r,
|
|
567
|
-
props:
|
|
567
|
+
props: v,
|
|
568
568
|
_owner: i
|
|
569
569
|
}, (o !== void 0 ? o : null) !== null ? Object.defineProperty(e, "ref", {
|
|
570
570
|
enumerable: !1,
|
|
@@ -641,12 +641,12 @@ function Qe() {
|
|
|
641
641
|
throw e;
|
|
642
642
|
}
|
|
643
643
|
function M(e, r, o, u, i) {
|
|
644
|
-
var
|
|
645
|
-
(
|
|
644
|
+
var v = typeof e;
|
|
645
|
+
(v === "undefined" || v === "boolean") && (e = null);
|
|
646
646
|
var _ = !1;
|
|
647
647
|
if (e === null) _ = !0;
|
|
648
648
|
else
|
|
649
|
-
switch (
|
|
649
|
+
switch (v) {
|
|
650
650
|
case "bigint":
|
|
651
651
|
case "string":
|
|
652
652
|
case "number":
|
|
@@ -683,25 +683,25 @@ function Qe() {
|
|
|
683
683
|
}
|
|
684
684
|
if (_ = 0, R = u === "" ? "." : u + ":", Te(e))
|
|
685
685
|
for (var m = 0; m < e.length; m++)
|
|
686
|
-
u = e[m],
|
|
686
|
+
u = e[m], v = R + y(u, m), _ += M(
|
|
687
687
|
u,
|
|
688
688
|
r,
|
|
689
689
|
o,
|
|
690
|
-
|
|
690
|
+
v,
|
|
691
691
|
i
|
|
692
692
|
);
|
|
693
693
|
else if (m = $(e), typeof m == "function")
|
|
694
694
|
for (m === e.entries && (Ce || console.warn(
|
|
695
695
|
"Using Maps as children is not supported. Use an array of keyed ReactElements instead."
|
|
696
696
|
), Ce = !0), e = m.call(e), m = 0; !(u = e.next()).done; )
|
|
697
|
-
u = u.value,
|
|
697
|
+
u = u.value, v = R + y(u, m++), _ += M(
|
|
698
698
|
u,
|
|
699
699
|
r,
|
|
700
700
|
o,
|
|
701
|
-
|
|
701
|
+
v,
|
|
702
702
|
i
|
|
703
703
|
);
|
|
704
|
-
else if (
|
|
704
|
+
else if (v === "object") {
|
|
705
705
|
if (typeof e.then == "function")
|
|
706
706
|
return M(
|
|
707
707
|
te(e),
|
|
@@ -719,8 +719,8 @@ function Qe() {
|
|
|
719
719
|
function U(e, r, o) {
|
|
720
720
|
if (e == null) return e;
|
|
721
721
|
var u = [], i = 0;
|
|
722
|
-
return M(e, u, "", "", function(
|
|
723
|
-
return r.call(o,
|
|
722
|
+
return M(e, u, "", "", function(v) {
|
|
723
|
+
return r.call(o, v, i++);
|
|
724
724
|
}), u;
|
|
725
725
|
}
|
|
726
726
|
function ue(e) {
|
|
@@ -754,7 +754,7 @@ Your code should look like:
|
|
|
754
754
|
throw e._result;
|
|
755
755
|
}
|
|
756
756
|
function g() {
|
|
757
|
-
var e =
|
|
757
|
+
var e = E.H;
|
|
758
758
|
return e === null && console.error(
|
|
759
759
|
`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
|
760
760
|
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
@@ -793,7 +793,7 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
793
793
|
), _e = r;
|
|
794
794
|
}
|
|
795
795
|
function L(e, r, o) {
|
|
796
|
-
var u =
|
|
796
|
+
var u = E.actQueue;
|
|
797
797
|
if (u !== null)
|
|
798
798
|
if (u.length !== 0)
|
|
799
799
|
try {
|
|
@@ -802,10 +802,10 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
802
802
|
});
|
|
803
803
|
return;
|
|
804
804
|
} catch (i) {
|
|
805
|
-
|
|
805
|
+
E.thrownErrors.push(i);
|
|
806
806
|
}
|
|
807
|
-
else
|
|
808
|
-
0 <
|
|
807
|
+
else E.actQueue = null;
|
|
808
|
+
0 < E.thrownErrors.length ? (u = Y(E.thrownErrors), E.thrownErrors.length = 0, o(u)) : r(e);
|
|
809
809
|
}
|
|
810
810
|
function V(e) {
|
|
811
811
|
if (!Re) {
|
|
@@ -815,10 +815,10 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
815
815
|
for (; r < e.length; r++) {
|
|
816
816
|
var o = e[r];
|
|
817
817
|
do {
|
|
818
|
-
|
|
818
|
+
E.didUsePromise = !1;
|
|
819
819
|
var u = o(!1);
|
|
820
820
|
if (u !== null) {
|
|
821
|
-
if (
|
|
821
|
+
if (E.didUsePromise) {
|
|
822
822
|
e[r] = o, e.splice(0, r);
|
|
823
823
|
return;
|
|
824
824
|
}
|
|
@@ -828,7 +828,7 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
828
828
|
}
|
|
829
829
|
e.length = 0;
|
|
830
830
|
} catch (i) {
|
|
831
|
-
e.splice(0, r + 1),
|
|
831
|
+
e.splice(0, r + 1), E.thrownErrors.push(i);
|
|
832
832
|
} finally {
|
|
833
833
|
Re = !1;
|
|
834
834
|
}
|
|
@@ -871,7 +871,7 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
871
871
|
for (le in j)
|
|
872
872
|
j.hasOwnProperty(le) && N(le, j[le]);
|
|
873
873
|
C.prototype = b.prototype, j = A.prototype = new C(), j.constructor = A, we(j, b.prototype), j.isPureReactComponent = !0;
|
|
874
|
-
var Te = Array.isArray, qe = Symbol.for("react.client.reference"),
|
|
874
|
+
var Te = Array.isArray, qe = Symbol.for("react.client.reference"), E = {
|
|
875
875
|
H: null,
|
|
876
876
|
A: null,
|
|
877
877
|
T: null,
|
|
@@ -945,19 +945,19 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
945
945
|
);
|
|
946
946
|
return e;
|
|
947
947
|
}
|
|
948
|
-
}, c.Component = b, c.Fragment = t, c.Profiler = s, c.PureComponent = A, c.StrictMode = n, c.Suspense = l, c.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE =
|
|
949
|
-
var r =
|
|
948
|
+
}, c.Component = b, c.Fragment = t, c.Profiler = s, c.PureComponent = A, c.StrictMode = n, c.Suspense = l, c.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = E, c.__COMPILER_RUNTIME = j, c.act = function(e) {
|
|
949
|
+
var r = E.actQueue, o = _e;
|
|
950
950
|
_e++;
|
|
951
|
-
var u =
|
|
951
|
+
var u = E.actQueue = r !== null ? r : [], i = !1;
|
|
952
952
|
try {
|
|
953
|
-
var
|
|
953
|
+
var v = e();
|
|
954
954
|
} catch (m) {
|
|
955
|
-
|
|
955
|
+
E.thrownErrors.push(m);
|
|
956
956
|
}
|
|
957
|
-
if (0 <
|
|
958
|
-
throw O(r, o), e = Y(
|
|
959
|
-
if (
|
|
960
|
-
var _ =
|
|
957
|
+
if (0 < E.thrownErrors.length)
|
|
958
|
+
throw O(r, o), e = Y(E.thrownErrors), E.thrownErrors.length = 0, e;
|
|
959
|
+
if (v !== null && typeof v == "object" && typeof v.then == "function") {
|
|
960
|
+
var _ = v;
|
|
961
961
|
return $e(function() {
|
|
962
962
|
i || me || (me = !0, console.error(
|
|
963
963
|
"You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"
|
|
@@ -976,35 +976,35 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
976
976
|
);
|
|
977
977
|
});
|
|
978
978
|
} catch (Ge) {
|
|
979
|
-
|
|
979
|
+
E.thrownErrors.push(Ge);
|
|
980
980
|
}
|
|
981
|
-
if (0 <
|
|
981
|
+
if (0 < E.thrownErrors.length) {
|
|
982
982
|
var ze = Y(
|
|
983
|
-
|
|
983
|
+
E.thrownErrors
|
|
984
984
|
);
|
|
985
|
-
|
|
985
|
+
E.thrownErrors.length = 0, K(ze);
|
|
986
986
|
}
|
|
987
987
|
} else m(oe);
|
|
988
988
|
},
|
|
989
989
|
function(oe) {
|
|
990
|
-
O(r, o), 0 <
|
|
991
|
-
|
|
992
|
-
),
|
|
990
|
+
O(r, o), 0 < E.thrownErrors.length && (oe = Y(
|
|
991
|
+
E.thrownErrors
|
|
992
|
+
), E.thrownErrors.length = 0), K(oe);
|
|
993
993
|
}
|
|
994
994
|
);
|
|
995
995
|
}
|
|
996
996
|
};
|
|
997
997
|
}
|
|
998
|
-
var R =
|
|
998
|
+
var R = v;
|
|
999
999
|
if (O(r, o), o === 0 && (V(u), u.length !== 0 && $e(function() {
|
|
1000
1000
|
i || me || (me = !0, console.error(
|
|
1001
1001
|
"A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\n\nawait act(() => ...)"
|
|
1002
1002
|
));
|
|
1003
|
-
}),
|
|
1004
|
-
throw e = Y(
|
|
1003
|
+
}), E.actQueue = null), 0 < E.thrownErrors.length)
|
|
1004
|
+
throw e = Y(E.thrownErrors), E.thrownErrors.length = 0, e;
|
|
1005
1005
|
return {
|
|
1006
1006
|
then: function(m, K) {
|
|
1007
|
-
i = !0, o === 0 ? (
|
|
1007
|
+
i = !0, o === 0 ? (E.actQueue = u, q(function() {
|
|
1008
1008
|
return L(
|
|
1009
1009
|
R,
|
|
1010
1010
|
m,
|
|
@@ -1018,14 +1018,14 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
1018
1018
|
return e.apply(null, arguments);
|
|
1019
1019
|
};
|
|
1020
1020
|
}, c.captureOwnerStack = function() {
|
|
1021
|
-
var e =
|
|
1021
|
+
var e = E.getCurrentStack;
|
|
1022
1022
|
return e === null ? null : e();
|
|
1023
1023
|
}, c.cloneElement = function(e, r, o) {
|
|
1024
1024
|
if (e == null)
|
|
1025
1025
|
throw Error(
|
|
1026
1026
|
"The argument must be a React element, but you passed " + e + "."
|
|
1027
1027
|
);
|
|
1028
|
-
var u = we({}, e.props), i = e.key,
|
|
1028
|
+
var u = we({}, e.props), i = e.key, v = e._owner;
|
|
1029
1029
|
if (r != null) {
|
|
1030
1030
|
var _;
|
|
1031
1031
|
e: {
|
|
@@ -1038,7 +1038,7 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
1038
1038
|
}
|
|
1039
1039
|
_ = r.ref !== void 0;
|
|
1040
1040
|
}
|
|
1041
|
-
_ && (
|
|
1041
|
+
_ && (v = H()), Z(r) && (z(r.key), i = "" + r.key);
|
|
1042
1042
|
for (R in r)
|
|
1043
1043
|
!pe.call(r, R) || R === "key" || R === "__self" || R === "__source" || R === "ref" && r.ref === void 0 || (u[R] = r[R]);
|
|
1044
1044
|
}
|
|
@@ -1055,12 +1055,12 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
1055
1055
|
i,
|
|
1056
1056
|
void 0,
|
|
1057
1057
|
void 0,
|
|
1058
|
-
|
|
1058
|
+
v,
|
|
1059
1059
|
u,
|
|
1060
1060
|
e._debugStack,
|
|
1061
1061
|
e._debugTask
|
|
1062
1062
|
), i = 2; i < arguments.length; i++)
|
|
1063
|
-
|
|
1063
|
+
v = arguments[i], P(v) && v._store && (v._store.validated = 1);
|
|
1064
1064
|
return u;
|
|
1065
1065
|
}, c.createContext = function(e) {
|
|
1066
1066
|
return e = {
|
|
@@ -1084,21 +1084,21 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
1084
1084
|
"Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform"
|
|
1085
1085
|
)), Z(r) && (z(r.key), i = "" + r.key), r)
|
|
1086
1086
|
pe.call(r, m) && m !== "key" && m !== "__self" && m !== "__source" && (u[m] = r[m]);
|
|
1087
|
-
var
|
|
1088
|
-
if (
|
|
1089
|
-
else if (1 <
|
|
1090
|
-
for (var _ = Array(
|
|
1087
|
+
var v = arguments.length - 2;
|
|
1088
|
+
if (v === 1) u.children = o;
|
|
1089
|
+
else if (1 < v) {
|
|
1090
|
+
for (var _ = Array(v), R = 0; R < v; R++)
|
|
1091
1091
|
_[R] = arguments[R + 2];
|
|
1092
1092
|
Object.freeze && Object.freeze(_), u.children = _;
|
|
1093
1093
|
}
|
|
1094
1094
|
if (e && e.defaultProps)
|
|
1095
|
-
for (m in
|
|
1096
|
-
u[m] === void 0 && (u[m] =
|
|
1095
|
+
for (m in v = e.defaultProps, v)
|
|
1096
|
+
u[m] === void 0 && (u[m] = v[m]);
|
|
1097
1097
|
i && F(
|
|
1098
1098
|
u,
|
|
1099
1099
|
typeof e == "function" ? e.displayName || e.name || "Unknown" : e
|
|
1100
1100
|
);
|
|
1101
|
-
var m = 1e4 >
|
|
1101
|
+
var m = 1e4 > E.recentlyCreatedOwnerStacks++;
|
|
1102
1102
|
return Q(
|
|
1103
1103
|
e,
|
|
1104
1104
|
i,
|
|
@@ -1162,17 +1162,17 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
1162
1162
|
}
|
|
1163
1163
|
}), r;
|
|
1164
1164
|
}, c.startTransition = function(e) {
|
|
1165
|
-
var r =
|
|
1166
|
-
|
|
1165
|
+
var r = E.T, o = {};
|
|
1166
|
+
E.T = o, o._updatedFibers = /* @__PURE__ */ new Set();
|
|
1167
1167
|
try {
|
|
1168
|
-
var u = e(), i =
|
|
1168
|
+
var u = e(), i = E.S;
|
|
1169
1169
|
i !== null && i(o, u), typeof u == "object" && u !== null && typeof u.then == "function" && u.then(X, je);
|
|
1170
|
-
} catch (
|
|
1171
|
-
je(
|
|
1170
|
+
} catch (v) {
|
|
1171
|
+
je(v);
|
|
1172
1172
|
} finally {
|
|
1173
1173
|
r === null && o._updatedFibers && (e = o._updatedFibers.size, o._updatedFibers.clear(), 10 < e && console.warn(
|
|
1174
1174
|
"Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."
|
|
1175
|
-
)),
|
|
1175
|
+
)), E.T = r;
|
|
1176
1176
|
}
|
|
1177
1177
|
}, c.unstable_useCacheRefresh = function() {
|
|
1178
1178
|
return g().useCacheRefresh();
|
|
@@ -1241,7 +1241,7 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
1241
1241
|
}
|
|
1242
1242
|
var Ie;
|
|
1243
1243
|
function Xe() {
|
|
1244
|
-
return Ie || (Ie = 1, process.env.NODE_ENV === "production" ?
|
|
1244
|
+
return Ie || (Ie = 1, process.env.NODE_ENV === "production" ? ve.exports = Fe() : ve.exports = Qe()), ve.exports;
|
|
1245
1245
|
}
|
|
1246
1246
|
/**
|
|
1247
1247
|
* @license React
|
|
@@ -1487,10 +1487,10 @@ React keys must be passed directly to JSX without using spread:
|
|
|
1487
1487
|
}
|
|
1488
1488
|
var Ue;
|
|
1489
1489
|
function Ke() {
|
|
1490
|
-
return Ue || (Ue = 1, process.env.NODE_ENV === "production" ?
|
|
1490
|
+
return Ue || (Ue = 1, process.env.NODE_ENV === "production" ? Ee.exports = Be() : Ee.exports = Ve()), Ee.exports;
|
|
1491
1491
|
}
|
|
1492
1492
|
var He = Ke();
|
|
1493
|
-
const Ze = "
|
|
1493
|
+
const Ze = "_ribbon_121d0_1", Je = "_content_121d0_18", et = "_bottom_121d0_35", tt = "_right_121d0_35", rt = "_top_121d0_36", nt = "_left_121d0_36", he = {
|
|
1494
1494
|
ribbon: Ze,
|
|
1495
1495
|
content: Je,
|
|
1496
1496
|
bottom: et,
|
package/package.json
CHANGED