@asymmetric-effort/specifyjs 0.2.137 → 0.2.140
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/esm/chunks/{chunk-BGPJRIMR.js → chunk-45EBJMQH.js} +6 -7
- package/dist/esm/chunks/{chunk-4IF6GADP.js → chunk-4TF5WXQG.js} +0 -1
- package/dist/esm/chunks/{chunk-CWCWXKVV.js → chunk-4V37N6QN.js} +0 -1
- package/dist/esm/chunks/{chunk-5OX5JKEY.js → chunk-7OC7LXZ7.js} +1 -2
- package/dist/esm/chunks/{chunk-T7EHIXSF.js → chunk-AE2JTY3A.js} +1 -2
- package/dist/esm/chunks/{chunk-MKUA6QTB.js → chunk-FDNBPWUH.js} +0 -1
- package/dist/esm/chunks/{chunk-LSU3FWKI.js → chunk-H7ZJ2I3D.js} +1 -2
- package/dist/esm/chunks/{chunk-NF4555DU.js → chunk-NKW7RJR3.js} +1 -2
- package/dist/esm/chunks/{chunk-RSL3RU56.js → chunk-SRUWIDIG.js} +1 -2
- package/dist/esm/chunks/{chunk-HINJXYXY.js → chunk-UJTLBTMV.js} +0 -1
- package/dist/esm/chunks/{metrics-AGFZKFUK.js → metrics-ELQJ4BZ7.js} +3 -4
- package/dist/esm/client/index.js +3 -4
- package/dist/esm/components-barrel.js +8 -9
- package/dist/esm/dom/index.js +9 -7
- package/dist/esm/index.js +8 -9
- package/dist/esm/jsx-dev-runtime.js +4 -5
- package/dist/esm/jsx-runtime.js +4 -5
- package/dist/esm/server/index.js +3 -4
- package/dist/esm/telemetry/index.js +5 -6
- package/dist/specifyjs-build.cjs.js +0 -1
- package/dist/specifyjs-build.esm.js +0 -1
- package/dist/specifyjs-client.cjs.js +0 -1
- package/dist/specifyjs-client.esm.js +3 -4
- package/dist/specifyjs-components.cjs.js +0 -1
- package/dist/specifyjs-components.esm.js +8 -9
- package/dist/specifyjs-dom.cjs.js +1 -2
- package/dist/specifyjs-dom.esm.js +9 -7
- package/dist/specifyjs-jsx-dev-runtime.cjs.js +0 -1
- package/dist/specifyjs-jsx-dev-runtime.esm.js +4 -5
- package/dist/specifyjs-jsx-runtime.cjs.js +0 -1
- package/dist/specifyjs-jsx-runtime.esm.js +4 -5
- package/dist/specifyjs-server.cjs.js +0 -1
- package/dist/specifyjs-server.esm.js +3 -4
- package/dist/specifyjs-telemetry.cjs.js +0 -1
- package/dist/specifyjs-telemetry.esm.js +5 -6
- package/dist/specifyjs.cjs.js +0 -1
- package/dist/specifyjs.esm.js +8 -9
- package/dist/types/build/index.d.ts +0 -1
- package/dist/types/build/noscript-plugin.d.ts +0 -1
- package/dist/types/build/seo-plugin.d.ts +0 -1
- package/dist/types/client/graphql.d.ts +0 -1
- package/dist/types/client/index.d.ts +0 -1
- package/dist/types/client/protobuf.d.ts +0 -1
- package/dist/types/client/rest.d.ts +0 -1
- package/dist/types/components/component.d.ts +0 -1
- package/dist/types/components/error-boundary.d.ts +0 -1
- package/dist/types/components/feedback/banner/src/Banner.d.ts +14 -0
- package/dist/types/components/feedback/banner/src/index.d.ts +2 -0
- package/dist/types/components/profiler.d.ts +0 -1
- package/dist/types/components/strict-mode.d.ts +0 -1
- package/dist/types/components/suspense.d.ts +0 -1
- package/dist/types/compute/context.d.ts +0 -1
- package/dist/types/compute/cpu-backend.d.ts +0 -1
- package/dist/types/compute/index.d.ts +0 -1
- package/dist/types/compute/types.d.ts +0 -1
- package/dist/types/compute/webgl-backend.d.ts +0 -1
- package/dist/types/compute/webgpu-backend.d.ts +0 -1
- package/dist/types/context/create-context.d.ts +0 -1
- package/dist/types/core/children.d.ts +0 -1
- package/dist/types/core/clone-element.d.ts +0 -1
- package/dist/types/core/create-element.d.ts +0 -1
- package/dist/types/core/create-ref.d.ts +0 -1
- package/dist/types/core/fiber.d.ts +0 -1
- package/dist/types/core/forward-ref.d.ts +0 -1
- package/dist/types/core/fragment.d.ts +0 -1
- package/dist/types/core/is-valid-element.d.ts +0 -1
- package/dist/types/core/lanes.d.ts +0 -1
- package/dist/types/core/lazy.d.ts +0 -1
- package/dist/types/core/memo.d.ts +0 -1
- package/dist/types/core/reconciler.d.ts +0 -1
- package/dist/types/core/scheduler-host-config.d.ts +0 -1
- package/dist/types/core/scheduler.d.ts +0 -1
- package/dist/types/core/src/shared/warnings.d.ts +2 -0
- package/dist/types/core/transitions.d.ts +0 -1
- package/dist/types/devtools/index.d.ts +0 -1
- package/dist/types/dom/create-portal.d.ts +0 -1
- package/dist/types/dom/create-root.d.ts +0 -1
- package/dist/types/dom/flush-sync.d.ts +0 -1
- package/dist/types/dom/index.d.ts +0 -1
- package/dist/types/dom/legacy.d.ts +0 -1
- package/dist/types/dom/synthetic-event.d.ts +0 -1
- package/dist/types/dom/work-loop.d.ts +0 -1
- package/dist/types/features/feature-flags.d.ts +0 -1
- package/dist/types/features/index.d.ts +0 -1
- package/dist/types/hooks/dispatcher.d.ts +0 -1
- package/dist/types/hooks/hook-state.d.ts +0 -1
- package/dist/types/hooks/index.d.ts +0 -1
- package/dist/types/hooks/install-dispatcher.d.ts +0 -1
- package/dist/types/hooks/use-head.d.ts +0 -1
- package/dist/types/index.d.ts +0 -1
- package/dist/types/jsx-dev-runtime.d.ts +0 -1
- package/dist/types/jsx-runtime.d.ts +0 -1
- package/dist/types/router/index.d.ts +0 -1
- package/dist/types/router/link-component.d.ts +0 -1
- package/dist/types/router/match-path.d.ts +0 -1
- package/dist/types/router/route-component.d.ts +0 -1
- package/dist/types/router/router-component.d.ts +0 -1
- package/dist/types/router/router-context.d.ts +0 -1
- package/dist/types/router/router-store.d.ts +0 -1
- package/dist/types/router/use-navigate.d.ts +0 -1
- package/dist/types/router/use-params.d.ts +0 -1
- package/dist/types/router/use-router.d.ts +0 -1
- package/dist/types/server/index.d.ts +0 -1
- package/dist/types/server/render-to-pipeable-stream.d.ts +0 -1
- package/dist/types/server/render-to-readable-stream.d.ts +0 -1
- package/dist/types/server/render-to-string.d.ts +0 -1
- package/dist/types/shared/act.d.ts +0 -1
- package/dist/types/shared/aria-warnings.d.ts +0 -1
- package/dist/types/shared/async-compute.d.ts +0 -1
- package/dist/types/shared/component-registry.d.ts +0 -1
- package/dist/types/shared/render-guard.d.ts +0 -1
- package/dist/types/shared/secure-fetch.d.ts +0 -1
- package/dist/types/shared/types.d.ts +0 -1
- package/dist/types/shared/warnings.d.ts +2 -1
- package/dist/types/telemetry/index.d.ts +0 -1
- package/dist/types/telemetry/metrics.d.ts +0 -1
- package/dist/types/telemetry/tracing.d.ts +0 -1
- package/package.json +1 -1
- package/dist/esm/chunks/chunk-4IF6GADP.js.map +0 -7
- package/dist/esm/chunks/chunk-5OX5JKEY.js.map +0 -7
- package/dist/esm/chunks/chunk-BGPJRIMR.js.map +0 -7
- package/dist/esm/chunks/chunk-CWCWXKVV.js.map +0 -7
- package/dist/esm/chunks/chunk-HINJXYXY.js.map +0 -7
- package/dist/esm/chunks/chunk-LSU3FWKI.js.map +0 -7
- package/dist/esm/chunks/chunk-MKUA6QTB.js.map +0 -7
- package/dist/esm/chunks/chunk-NF4555DU.js.map +0 -7
- package/dist/esm/chunks/chunk-RSL3RU56.js.map +0 -7
- package/dist/esm/chunks/chunk-T7EHIXSF.js.map +0 -7
- package/dist/esm/chunks/metrics-AGFZKFUK.js.map +0 -7
- package/dist/specifyjs-build.cjs.js.map +0 -7
- package/dist/specifyjs-build.esm.js.map +0 -7
- package/dist/specifyjs-client.cjs.js.map +0 -7
- package/dist/specifyjs-client.esm.js.map +0 -7
- package/dist/specifyjs-components.cjs.js.map +0 -7
- package/dist/specifyjs-components.esm.js.map +0 -7
- package/dist/specifyjs-dom.cjs.js.map +0 -7
- package/dist/specifyjs-dom.esm.js.map +0 -7
- package/dist/specifyjs-jsx-dev-runtime.cjs.js.map +0 -7
- package/dist/specifyjs-jsx-dev-runtime.esm.js.map +0 -7
- package/dist/specifyjs-jsx-runtime.cjs.js.map +0 -7
- package/dist/specifyjs-jsx-runtime.esm.js.map +0 -7
- package/dist/specifyjs-server.cjs.js.map +0 -7
- package/dist/specifyjs-server.esm.js.map +0 -7
- package/dist/specifyjs-telemetry.cjs.js.map +0 -7
- package/dist/specifyjs-telemetry.esm.js.map +0 -7
- package/dist/specifyjs.cjs.js.map +0 -7
- package/dist/specifyjs.esm.js.map +0 -7
- package/dist/types/build/index.d.ts.map +0 -1
- package/dist/types/build/noscript-plugin.d.ts.map +0 -1
- package/dist/types/build/seo-plugin.d.ts.map +0 -1
- package/dist/types/client/graphql.d.ts.map +0 -1
- package/dist/types/client/index.d.ts.map +0 -1
- package/dist/types/client/protobuf.d.ts.map +0 -1
- package/dist/types/client/rest.d.ts.map +0 -1
- package/dist/types/components/component.d.ts.map +0 -1
- package/dist/types/components/error-boundary.d.ts.map +0 -1
- package/dist/types/components/profiler.d.ts.map +0 -1
- package/dist/types/components/strict-mode.d.ts.map +0 -1
- package/dist/types/components/suspense.d.ts.map +0 -1
- package/dist/types/compute/context.d.ts.map +0 -1
- package/dist/types/compute/cpu-backend.d.ts.map +0 -1
- package/dist/types/compute/index.d.ts.map +0 -1
- package/dist/types/compute/types.d.ts.map +0 -1
- package/dist/types/compute/webgl-backend.d.ts.map +0 -1
- package/dist/types/compute/webgpu-backend.d.ts.map +0 -1
- package/dist/types/context/create-context.d.ts.map +0 -1
- package/dist/types/core/children.d.ts.map +0 -1
- package/dist/types/core/clone-element.d.ts.map +0 -1
- package/dist/types/core/create-element.d.ts.map +0 -1
- package/dist/types/core/create-ref.d.ts.map +0 -1
- package/dist/types/core/fiber.d.ts.map +0 -1
- package/dist/types/core/forward-ref.d.ts.map +0 -1
- package/dist/types/core/fragment.d.ts.map +0 -1
- package/dist/types/core/is-valid-element.d.ts.map +0 -1
- package/dist/types/core/lanes.d.ts.map +0 -1
- package/dist/types/core/lazy.d.ts.map +0 -1
- package/dist/types/core/memo.d.ts.map +0 -1
- package/dist/types/core/reconciler.d.ts.map +0 -1
- package/dist/types/core/scheduler-host-config.d.ts.map +0 -1
- package/dist/types/core/scheduler.d.ts.map +0 -1
- package/dist/types/core/transitions.d.ts.map +0 -1
- package/dist/types/devtools/index.d.ts.map +0 -1
- package/dist/types/dom/create-portal.d.ts.map +0 -1
- package/dist/types/dom/create-root.d.ts.map +0 -1
- package/dist/types/dom/flush-sync.d.ts.map +0 -1
- package/dist/types/dom/index.d.ts.map +0 -1
- package/dist/types/dom/legacy.d.ts.map +0 -1
- package/dist/types/dom/synthetic-event.d.ts.map +0 -1
- package/dist/types/dom/work-loop.d.ts.map +0 -1
- package/dist/types/features/feature-flags.d.ts.map +0 -1
- package/dist/types/features/index.d.ts.map +0 -1
- package/dist/types/hooks/dispatcher.d.ts.map +0 -1
- package/dist/types/hooks/hook-state.d.ts.map +0 -1
- package/dist/types/hooks/index.d.ts.map +0 -1
- package/dist/types/hooks/install-dispatcher.d.ts.map +0 -1
- package/dist/types/hooks/use-head.d.ts.map +0 -1
- package/dist/types/index.d.ts.map +0 -1
- package/dist/types/jsx-dev-runtime.d.ts.map +0 -1
- package/dist/types/jsx-runtime.d.ts.map +0 -1
- package/dist/types/router/index.d.ts.map +0 -1
- package/dist/types/router/link-component.d.ts.map +0 -1
- package/dist/types/router/match-path.d.ts.map +0 -1
- package/dist/types/router/route-component.d.ts.map +0 -1
- package/dist/types/router/router-component.d.ts.map +0 -1
- package/dist/types/router/router-context.d.ts.map +0 -1
- package/dist/types/router/router-store.d.ts.map +0 -1
- package/dist/types/router/use-navigate.d.ts.map +0 -1
- package/dist/types/router/use-params.d.ts.map +0 -1
- package/dist/types/router/use-router.d.ts.map +0 -1
- package/dist/types/server/index.d.ts.map +0 -1
- package/dist/types/server/render-to-pipeable-stream.d.ts.map +0 -1
- package/dist/types/server/render-to-readable-stream.d.ts.map +0 -1
- package/dist/types/server/render-to-string.d.ts.map +0 -1
- package/dist/types/shared/act.d.ts.map +0 -1
- package/dist/types/shared/aria-warnings.d.ts.map +0 -1
- package/dist/types/shared/async-compute.d.ts.map +0 -1
- package/dist/types/shared/component-registry.d.ts.map +0 -1
- package/dist/types/shared/render-guard.d.ts.map +0 -1
- package/dist/types/shared/secure-fetch.d.ts.map +0 -1
- package/dist/types/shared/types.d.ts.map +0 -1
- package/dist/types/shared/warnings.d.ts.map +0 -1
- package/dist/types/telemetry/index.d.ts.map +0 -1
- package/dist/types/telemetry/metrics.d.ts.map +0 -1
- package/dist/types/telemetry/tracing.d.ts.map +0 -1
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
/* (c) 2025-2026 Asymmetric Effort, LLC. MIT LICENSE */
|
|
2
2
|
import {
|
|
3
3
|
createContext
|
|
4
|
-
} from "./esm/chunks/chunk-
|
|
5
|
-
import "./esm/chunks/chunk-
|
|
6
|
-
import "./esm/chunks/chunk-
|
|
4
|
+
} from "./esm/chunks/chunk-45EBJMQH.js";
|
|
5
|
+
import "./esm/chunks/chunk-7OC7LXZ7.js";
|
|
6
|
+
import "./esm/chunks/chunk-SRUWIDIG.js";
|
|
7
7
|
import {
|
|
8
8
|
createElement
|
|
9
|
-
} from "./esm/chunks/chunk-
|
|
10
|
-
import "./esm/chunks/chunk-
|
|
11
|
-
import "./esm/chunks/chunk-
|
|
9
|
+
} from "./esm/chunks/chunk-NKW7RJR3.js";
|
|
10
|
+
import "./esm/chunks/chunk-UJTLBTMV.js";
|
|
11
|
+
import "./esm/chunks/chunk-4TF5WXQG.js";
|
|
12
12
|
import {
|
|
13
13
|
useCallback,
|
|
14
14
|
useContext,
|
|
@@ -17,10 +17,10 @@ import {
|
|
|
17
17
|
useMemo,
|
|
18
18
|
useRef,
|
|
19
19
|
useState
|
|
20
|
-
} from "./esm/chunks/chunk-
|
|
20
|
+
} from "./esm/chunks/chunk-4V37N6QN.js";
|
|
21
21
|
import {
|
|
22
22
|
__publicField
|
|
23
|
-
} from "./esm/chunks/chunk-
|
|
23
|
+
} from "./esm/chunks/chunk-FDNBPWUH.js";
|
|
24
24
|
|
|
25
25
|
// ../components/data/analog-clock/src/AnalogClock.ts
|
|
26
26
|
function getTimeInZone(timezone) {
|
|
@@ -25691,4 +25691,3 @@ export {
|
|
|
25691
25691
|
useLineGraphScales,
|
|
25692
25692
|
useToast
|
|
25693
25693
|
};
|
|
25694
|
-
//# sourceMappingURL=components-barrel.js.map
|
|
@@ -1,3 +1,2 @@
|
|
|
1
1
|
/* (c) 2025-2026 Asymmetric Effort, LLC. MIT LICENSE */
|
|
2
|
-
"use strict";var J=Object.defineProperty;var An=Object.getOwnPropertyDescriptor;var On=Object.getOwnPropertyNames;var zn=Object.prototype.hasOwnProperty;var Un=(e,n)=>{for(var t in n)J(e,t,{get:n[t],enumerable:!0})},$n=(e,n,t,o)=>{if(n&&typeof n=="object"||typeof n=="function")for(let r of On(n))!zn.call(e,r)&&r!==t&&J(e,r,{get:()=>n[r],enumerable:!(o=An(n,r))||o.enumerable});return e};var Vn=e=>$n(J({},"__esModule",{value:!0}),e);var Gt={};Un(Gt,{createPortal:()=>Ln,createRoot:()=>Q,flushSync:()=>_n,hydrate:()=>In,hydrateRoot:()=>X,render:()=>Hn,unmountComponentAtNode:()=>Mn});module.exports=Vn(Gt);var I=Symbol.for("spec.element"),ve=Symbol.for("spec.fragment"),M=Symbol.for("spec.portal"),Ee=Symbol.for("spec.provider"),Te=Symbol.for("spec.consumer"),Pe=Symbol.for("spec.forward_ref"),Fe=Symbol.for("spec.memo"),Qt=Symbol.for("spec.lazy"),we=Symbol.for("spec.suspense"),F=Symbol.for("spec.strict_mode"),Ne=Symbol.for("spec.profiler");function k(e){return typeof e=="object"&&e!==null&&e.$$typeof===I}function qn(e){if(typeof e=="string")return 3;if(typeof e=="function")return e.prototype?.isSpecComponent?1:0;if(typeof e=="symbol"){if(e===ve)return 5;if(e===we)return 11;if(e===F)return 5;if(e===Ne)return 12;if(e===M)return 13}if(typeof e=="object"&&e!==null){let n=e.$$typeof;if(n===Pe)return 8;if(n===Fe)return 9;if(n===Ee)return 6;if(n===Te)return 7}return 3}function D(e,n=0){let t=qn(e.type);return O(t,e.type,e.key,e.ref,e.props,n)}function A(e,n=0){return O(4,null,null,null,{text:e},n)}function _e(){return O(2,null,null,null,{},0)}function O(e,n,t,o,r,i){return{tag:e,type:n,key:t,ref:o,stateNode:null,pendingProps:r,memoizedProps:null,memoizedState:null,return:null,child:null,sibling:null,index:0,alternate:null,effectTag:0,updateQueue:null,dependencies:null,lanes:i,childLanes:0}}function He(e,n){let t=e.alternate;return t===null?(t=O(e.tag,e.type,e.key,e.ref,n,e.lanes),t.stateNode=e.stateNode,t.alternate=e,e.alternate=t):(t.pendingProps=n,t.effectTag=0,t.child=null,t.sibling=null),t.memoizedProps=e.memoizedProps,t.memoizedState=e.memoizedState,t.updateQueue=e.updateQueue,t.lanes=e.lanes,t.childLanes=e.childLanes,t}function Ie(e){let n=[],t=[e];for(;t.length>0;){let o=t.pop();if(!(o==null||typeof o=="boolean")){if(Array.isArray(o)){for(let r=o.length-1;r>=0;r--)t.push(o[r]);continue}(k(o)||typeof o=="string"||typeof o=="number")&&n.push(o)}}return n}function m(e,n,t,o){let r=Ie(t);return r.length===0?(x(e,n),null):r.length===1&&!Array.isArray(r[0])?Yn(e,n,r[0],o):jn(e,n,r,o)}function Yn(e,n,t,o){if(typeof t=="string"||typeof t=="number")return Wn(e,n,t,o);let r=t.key,i=n;for(;i!==null;){if(i.key===r){if(Kn(i,t)){x(e,i.sibling);let s=U(i,t.props);return s.ref=t.ref,s.return=e,s}x(e,i);break}else z(e,i);i=i.sibling}let l=D(t,o);return l.ref=t.ref,l.return=e,l.effectTag=1,l}function Wn(e,n,t,o){if(n!==null&&n.tag===4){x(e,n.sibling);let i=U(n,{text:t});return i.return=e,i}x(e,n);let r=A(t,o);return r.return=e,r.effectTag=1,r}function jn(e,n,t,o){let r=null,i=null,l=n,s=0,u=0,a=null;for(;l!==null&&s<t.length;s++){l.index>s?(a=l,l=null):a=l.sibling;let p=t[s],c=Bn(e,l,p,o);if(c===null){l===null&&(l=a);break}l&&c.alternate===null&&z(e,l),u=Z(c,u,s),i===null?r=c:i.sibling=c,i=c,l=a}if(s===t.length)return x(e,l),r;if(l===null){for(;s<t.length;s++){let p=Qn(e,t[s],o);p!==null&&(u=Z(p,u,s),i===null?r=p:i.sibling=p,i=p)}return r}let h=Xn(l);for(;s<t.length;s++){let p=t[s],c=Jn(e,h,p,s,o);if(c!==null){if(c.alternate!==null){let Dn=c.key!==null?c.key:s;h.delete(Dn)}u=Z(c,u,s),i===null?r=c:i.sibling=c,i=c}}return h.forEach(p=>{z(e,p)}),r}function Kn(e,n){return e.type===n.type}function U(e,n){let t=Gn(e,n);return t.index=0,t.sibling=null,t}function Gn(e,n){let t=e.alternate;return t===null?(t={...e,pendingProps:n,effectTag:0,child:null,sibling:null,alternate:e},e.alternate=t):(t.pendingProps=n,t.effectTag=0,t.child=null,t.sibling=null),t.memoizedProps=e.memoizedProps,t.memoizedState=e.memoizedState,t.updateQueue=e.updateQueue,t}function Bn(e,n,t,o){let r=n!==null?n.key:null;if(typeof t=="string"||typeof t=="number")return r!==null?null:Me(e,n,t,o);if(k(t)){let i=t;return i.key===r?De(e,n,i,o):null}return null}function Me(e,n,t,o){if(n===null||n.tag!==4){let i=A(t,o);return i.return=e,i.effectTag=1,i}let r=U(n,{text:t});return r.return=e,r}function De(e,n,t,o){if(n!==null&&n.type===t.type){let i=U(n,t.props);return i.ref=t.ref,i.return=e,i}let r=D(t,o);return r.ref=t.ref,r.return=e,r.effectTag=1,r}function Qn(e,n,t){if(typeof n=="string"||typeof n=="number"){let o=A(n,t);return o.return=e,o.effectTag=1,o}if(k(n)){let o=D(n,t);return o.ref=n.ref,o.return=e,o.effectTag=1,o}return null}function Z(e,n,t){e.index=t;let o=e.alternate;if(o!==null){let r=o.index;return r<n?(e.effectTag=1,n):r}return e.effectTag=1,n}function z(e,n){n.effectTag=4,e.updateQueue||(e.updateQueue=[]),e.updateQueue.push(n)}function x(e,n){let t=n;for(;t!==null;)z(e,t),t=t.sibling}function Xn(e){let n=new Map,t=e;for(;t!==null;){let o=t.key!==null?t.key:t.index;n.set(o,t),t=t.sibling}return n}function Jn(e,n,t,o,r){if(typeof t=="string"||typeof t=="number"){let i=n.get(o)||null;return Me(e,i,t,r)}if(k(t)){let i=t,l=i.key!==null?i.key:o,s=n.get(l)||null;return De(e,s,i,r)}return null}var R=null,w=null,y=null,ee=0,ne=null,N=null;function b(e){R=e,w=null,y=null,ee=0,ne=null,N=null}function te(){return R}function Ae(){return ee}function f(){let e;if(R===null)throw new Error("Hooks can only be called inside a function component.");let n=R.alternate;if(n!==null){if(y===null?y=n.memoizedState??null:y=y.next,y===null)throw new Error("Rendered more hooks than during the previous render.");e={memoizedState:y.memoizedState,queue:y.queue,next:null}}else e={memoizedState:null,queue:null,next:null};return w===null?(R.memoizedState=e,w=e):(w.next=e,w=e),ee++,e}function oe(e,n,t,o){let r={tag:e,create:n,destroy:t,deps:o,next:null};return N===null?(ne=r,N=r):(N.next=r,N=r),r}function $(){return ne}function V(e,n){if(e===void 0||n===void 0||e.length!==n.length)return!1;for(let t=0;t<e.length;t++)if(!Object.is(e[t],n[t]))return!1;return!0}var Zn=null;function re(e){Zn=e}var et=!1,C=[];function q(e){if(et){C.length>=1e4&&(typeof console<"u"&&console.warn("[SpecifyJS] Scheduler: pending task queue exceeded 10000 \u2014 dropping oldest tasks"),C=C.slice(-Math.floor(1e4/2))),C.push(e);return}e()}function Oe(){let e=C;C=[];for(let n of e)n()}function ie(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e)}function Y(e,n){return e|n}var ze=8;function Ue(){let e=ze;return ze=e===8?16:8,e}var W=4,le=!1,se=!1,$e=[];function ue(){return se?1:W}function Ye(){se=!0}function We(){se=!1}function ae(e){let n=W,t=le;W=Ue(),le=!0;try{e()}finally{W=n,le=t,nt()}}function nt(){let e=$e;$e=[];for(let n of e)n()}var ce=new Set;function d(e){ce.has(e)||ce.size>=1e3||(ce.add(e),typeof console<"u"&&console.warn(`[SpecifyJS] ${e}`))}function je(e){typeof console<"u"&&console.error(`[SpecifyJS] ${e}`)}var tt=50,ot=25,rt=5,Ke=new WeakMap,de=0;function Xe(){de++}function Je(e,n){let t=Ke.get(e);if((!t||t.cycleId!==de)&&(t={count:0,cycleId:de},Ke.set(e,t)),t.count++,t.count>tt){let o=`Maximum update depth exceeded. Component "${n}" re-rendered ${t.count} times in a single cycle. This usually means a useEffect or setState call is creating an infinite loop. Check that useEffect dependencies are stable (use useMemo/useCallback for objects/arrays).`;throw je(o),t.count=0,new Error(`[SpecifyJS] ${o}`)}}var Ge=new WeakMap,pe=0;function Ze(){pe++}function en(e,n){let t=Ge.get(e);(!t||t.commitId!==pe)&&(t={count:0,commitId:pe},Ge.set(e,t)),t.count++,t.count>ot&&d(`Effect cycle detected in "${n}". Effects fired ${t.count} times in a single commit. This may indicate an effect that triggers a state update on every run. Ensure effect dependencies are correct and stable.`)}var Be=new WeakMap;function nn(e,n,t,o,r){if(!t)return;let i=Be.get(e);i||(i=new Map,Be.set(e,i));let l=i.get(n);l||(l={consecutiveChanges:0,lastDepsKey:"",warned:!1},i.set(n,l)),o?l.consecutiveChanges++:l.consecutiveChanges=0,l.consecutiveChanges>=rt&&!l.warned&&(l.warned=!0,d(`Unstable useEffect dependencies in "${r}" (hook #${n}). Dependencies changed on ${l.consecutiveChanges} consecutive renders. This may cause unnecessary effect re-runs. Wrap objects/arrays in useMemo and functions in useCallback to stabilize references.`))}var Qe=new WeakMap,fe=0;function tn(){fe++}function me(e,n){let t=Qe.get(e);(!t||t.frameId!==fe)&&(t={count:0,frameId:fe},Qe.set(e,t)),t.count++,t.count===100&&d(`Rapid state updates in "${n}": setState called ${t.count} times in a single frame. This may indicate a loop or missing dependency optimization.`)}var ye=new Map,it=0,lt=!0;function on(e){if(!lt)return"";let n=ye.get(e);n||(n={name:e,index:it++,instanceCount:0},ye.set(e,n),st());let t=n.instanceCount++;return`s-${n.index}-${t}`}function st(){if(typeof globalThis<"u"){let e={};for(let n of ye.values())e[n.index]=n.name;globalThis.__SPECIFYJS_COMPONENTS__=e}}function g(e){return typeof e=="string"?e:typeof e=="function"?e.name||"Anonymous":e==null?"Unknown":"Component"}var S=null;function rn(e){S=e}function be(){let e=te();if(!e)throw new Error("Invalid hook call.");return e}function ln(e,n){e.lanes=Y(e.lanes,n);let t=e.return;for(;t!==null;)t.childLanes=Y(t.childLanes,n),t=t.return}function j(e){let n=f();if(n.queue===null){let l=typeof e=="function"?e():e;n.memoizedState=l,n.queue=[]}let t=n.queue;if(t.length>0){let l=n.memoizedState;for(let s of t){let u=s.action;l=typeof u=="function"?u(l):u}n.memoizedState=l,t.length=0}let o=n.memoizedState,r=be();return[o,l=>{let s=(typeof r.type=="function"?g(r.type)||r.type.name:"")||"Anonymous";me(r,s);let u=ue();t.length>=1e4&&(typeof console<"u"&&console.warn("[SpecifyJS] Hook update queue exceeded 10000 \u2014 dropping oldest updates"),t.splice(0,t.length-5e3)),t.push({action:l}),ln(r,u),S&&q(()=>S(r))}]}function sn(e,n,t){let o=f();o.queue===null&&(o.memoizedState=t?t(n):n,o.queue=[]);let r=o.queue;if(r.length>0){let u=o.memoizedState;for(let a of r)u=e(u,a.action);o.memoizedState=u,r.length=0}let i=o.memoizedState,l=be();return[i,u=>{let a=(typeof l.type=="function"?g(l.type)||l.type.name:"")||"Anonymous";me(l,a);let h=ue();r.push({action:u}),ln(l,h),S&&q(()=>S(l))}]}function v(e,n,t){let o=f(),r=Ae(),i=o.memoizedState,l=i?.effect?.destroy??null;if(i!==null&&t!==void 0){let u=V(i.deps,t),a=te();if(a){let h=(typeof a.type=="function"?g(a.type)||a.type.name:"")||"Anonymous";nn(a,r,t,!u,h)}if(u){oe(0,n,l,t);return}}let s=oe(1|e,n,l,t);o.memoizedState={deps:t,effect:s}}function un(e,n){v(4,e,n)}function an(e,n){v(2,e,n)}function cn(e,n){v(8,e,n)}function dn(e){return f(),e._currentValue}function ge(e,n){let t=f(),o=t.memoizedState;return o!==null&&V(o[1],n)?o[0]:(t.memoizedState=[e,n],e)}function pn(e,n){let t=f(),o=t.memoizedState;if(o!==null&&V(o[1],n))return o[0];let r=e();return t.memoizedState=[r,n],r}function fn(e){let n=f();if(n.memoizedState===null){let t={current:e};n.memoizedState=t}return n.memoizedState}function mn(e,n,t){v(2,()=>{let o=n();if(e!==null)return typeof e=="function"?(e(o),()=>e(null)):(e.current=o,()=>{e.current=null})},t)}function yn(e,n){}var at=0;function bn(){let e=f();return e.memoizedState===null&&(e.memoizedState=`:l${at++}:`),e.memoizedState}function gn(e){let[n,t]=j(e);return v(4,()=>{ae(()=>{t(e)})},[e]),n}function hn(){let[e,n]=j(!1),t=ge((o=>{n(!0),ae(()=>{n(!1),o()})}),[n]);return[e,t]}function Sn(e,n,t){let o=f(),r=be(),i=n();return o.memoizedState=i,v(4,()=>e(()=>{let s=n();Object.is(o.memoizedState,s)||(o.memoizedState=s,S&&q(()=>S(r)))}),[e,n]),i}var ct={useState:j,useEffect:un,useContext:dn,useReducer:sn,useCallback:ge,useMemo:pn,useRef:fn,useImperativeHandle:mn,useLayoutEffect:an,useDebugValue:yn,useId:bn,useDeferredValue:gn,useTransition:hn,useSyncExternalStore:Sn,useInsertionEffect:cn};function K(){re(ct)}function G(){re(null)}var dt=null;function kn(e){dt?.onCommitFiberRoot?.(e)}function pt(){return typeof performance<"u"&&typeof performance.now=="function"?performance.now():Date.now()}var ft=5,mt=0;function Cn(){mt=pt()+ft}var L=null,he=!1;function xn(){if(L!==null){Cn();let e=L,n=!1;try{let t=e();typeof t=="function"?(L=t,n=!0):L=null}catch(t){throw L=null,he=!1,t}n?Se():he=!1}else he=!1}var Se;if(typeof MessageChannel<"u"){let e=new MessageChannel;e.port1.onmessage=xn,Se=()=>{e.port2.postMessage(null)}}else Se=()=>{setTimeout(xn,0)};function vn(e,n){typeof process<"u"||(e==="button"&&!n.children&&!n["aria-label"]&&!n["aria-labelledby"]&&d("<button> without text content or aria-label. Add text, aria-label, or aria-labelledby for accessibility."),e==="img"&&n.alt===void 0&&d('<img> without alt attribute. Add alt="" for decorative images or descriptive text for informative images.'),(e==="input"||e==="select"||e==="textarea")&&!n["aria-label"]&&!n["aria-labelledby"]&&!n.id&&d(`<${e}> without aria-label, aria-labelledby, or id (for label[for]). Form controls need accessible names.`),(e==="div"||e==="span")&&n.onClick&&!n.role&&d(`<${e}> with onClick but no role attribute. Add role="button" and tabIndex={0} for keyboard accessibility.`),n.role==="button"&&n.tabIndex===void 0&&e!=="button"&&d('Element with role="button" but no tabIndex. Add tabIndex={0} to make it keyboard-focusable.'),n.role==="dialog"&&!n["aria-label"]&&!n["aria-labelledby"]&&d('Element with role="dialog" needs aria-label or aria-labelledby.'),e==="a"&&n.target==="_blank"&&!n.rel&&d('<a target="_blank"> without rel attribute. Add rel="noopener noreferrer" for security.'),n.role==="tablist"&&!n["aria-label"]&&!n["aria-labelledby"]&&d('Element with role="tablist" needs aria-label or aria-labelledby.'))}var P=new Map;function xe(e){let n=_e();return n.stateNode=e,{containerNode:e,current:n,pendingChildren:null,callbackScheduled:!1,pendingLanes:0,suspendedLanes:0,expirationTimes:new Array(8).fill(-1),callbackNode:null,callbackPriority:0,isHydrating:!1}}function yt(e,n){e.pendingChildren=n,e.callbackScheduled||(e.callbackScheduled=!0,ie(()=>{e.callbackScheduled=!1,wn(e)}))}function _(e,n){e.pendingChildren=n,wn(e)}function Fn(e){let n=e;for(;n?.return;)n=n.return;if(n&&n.stateNode){let t=ht(n.stateNode);t&&yt(t,t.pendingChildren)}}function bt(){rn(e=>{Fn(e)})}function wn(e){Xe(),tn(),bt(),e.isHydrating&&(E=e,T.clear());let n=e.current,t=He(n,{children:e.pendingChildren});gt(t),At(e,t),e.current=t,e.isHydrating&&(e.isHydrating=!1,E=null,T.clear())}function gt(e){let n=e;for(;n!==null;)n=St(n)}function ht(e){for(let[,n]of P)if(n.containerNode===e)return n;return null}function St(e){if(kt(e),e.child!==null)return e.child;let n=e;for(;n!==null;){if(Mt(n),n.sibling!==null)return n.sibling;n=n.return}return null}function kt(e){if(E!==null&&e.stateNode===null&&(e.tag===3||e.tag===4)){let n=It(e,E.containerNode);if(n)if(e.tag===3){let t=_t(e,n);t&&(e.stateNode=t)}else{let t=Ht(n);t&&(e.stateNode=t)}}switch(e.tag){case 2:xt(e);break;case 3:Ct(e);break;case 4:break;case 0:vt(e);break;case 1:Et(e);break;case 5:e.type===F&&Ce++,En(e);break;case 6:Tt(e);break;case 8:Pt(e);break;case 9:Ft(e);break;default:En(e);break}}function xt(e){let n=e.pendingProps.children;e.child=m(e,e.alternate?.child??null,n,0)}function Ct(e){let n=e.pendingProps.children;e.child=m(e,e.alternate?.child??null,n,0)}function vt(e){K(),b(e);let n=e.type,t=g(n)||n.name||"Anonymous";Je(e,t),Ce>0&&e.alternate===null&&(n(e.pendingProps),b(e));let o=n(e.pendingProps),r=$();e.dependencies=r,b(null),G(),e.child=m(e,e.alternate?.child??null,o,0)}function Et(e){let n=e.type,t;if(e.stateNode===null?(t=new n(e.pendingProps),e.stateNode=t,t._fiber=e,t._enqueueUpdate=function(r){Fn(e),typeof r=="function"&&ie(r)}):(t=e.stateNode,t.props=e.pendingProps,t._fiber=e),t._pendingState.length>0||t._forceUpdate){let r=t.state;for(let l of t._pendingState)if(typeof l=="function"){let s=l(r,t.props);s!==null&&(r={...r,...s})}else r={...r,...l};t._pendingState=[];let i=t._forceUpdate||!t.shouldComponentUpdate||t.shouldComponentUpdate(t.props,r);if(t.state=r,t._forceUpdate=!1,!i){e.child=Nn(e.alternate?.child??null,e);return}}let o=t.render();e.child=m(e,e.alternate?.child??null,o,0)}function En(e){let n=e.pendingProps.children;e.child=m(e,e.alternate?.child??null,n,0)}function Tt(e){let n=e.type,t=e.pendingProps.value;n._context&&(n._context._currentValue=t);let o=e.pendingProps.children;e.child=m(e,e.alternate?.child??null,o,0)}function Pt(e){let{render:n}=e.type;K(),b(e);let t=n(e.pendingProps,e.ref),o=$();e.dependencies=o,b(null),G(),e.child=m(e,e.alternate?.child??null,t,0)}function Ft(e){let{type:n,compare:t}=e.type;if(e.alternate!==null){let i=e.alternate.memoizedProps,l=e.pendingProps;if(i!==null&&(t?t(i,l):wt(i,l))){e.child=Nn(e.alternate.child,e);return}}K(),b(e);let o=n(e.pendingProps),r=$();e.dependencies=r,b(null),G(),e.child=m(e,e.alternate?.child??null,o,0)}function wt(e,n){let t=Object.keys(e),o=Object.keys(n);if(t.length!==o.length)return!1;for(let r of t)if(r!=="children"&&!Object.is(e[r],n[r]))return!1;return!0}function Nn(e,n){if(e===null)return null;let t=Tn(e,n),o=[],r=e.child;for(r&&o.push({source:r,cloneParent:t});o.length>0;){let{source:i,cloneParent:l}=o.pop(),s=i,u=null;for(;s!==null;){let a=Tn(s,l);u?u.sibling=a:l.child=a,s.child&&o.push({source:s.child,cloneParent:a}),u=a,s=s.sibling}}return t}function Tn(e,n){let t={...e,return:n,alternate:e,child:null,sibling:null,effectTag:0,pendingProps:e.memoizedProps??e.pendingProps};return e.alternate=t,t}var Nt=new Set(["svg","circle","clipPath","defs","ellipse","g","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","text","tspan","use","image","symbol","foreignObject","desc","title","metadata","marker","filter","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","animate","animateMotion","animateTransform","set"]);function Rt(e){return Nt.has(e)}function Lt(e){return e.tagName.includes("-")}var Ce=0,E=null,T=new Map;function Rn(e){let n=e.firstChild;for(;n!==null;){if(n.nodeType===1||n.nodeType===3)return n;n=n.nextSibling}return null}function B(e){let n=e.nextSibling;for(;n!==null;){if(n.nodeType===1||n.nodeType===3)return n;n=n.nextSibling}return null}function _t(e,n){let t=T.get(n)??Rn(n);if(t===null)return null;for(;t!==null&&t.nodeType!==1;)t=B(t);if(t===null)return null;let o=t;return o.tagName.toLowerCase()!==e.type.toLowerCase()?null:(T.set(n,B(o)),o)}function Ht(e){let n=T.get(e)??Rn(e);if(n===null)return null;for(;n!==null&&n.nodeType!==3;)n=B(n);if(n===null)return null;let t=n;return T.set(e,B(t)),t}function It(e,n){let t=e.return;for(;t!==null;){if(t.tag===3&&t.stateNode)return t.stateNode;if(t.tag===2)return n;t=t.return}return n}function Mt(e){switch(e.tag){case 3:{if(e.stateNode===null){let n=e.type,t=Rt(n)?document.createElementNS("http://www.w3.org/2000/svg",n):document.createElement(n);ke(t,{},e.pendingProps),vn(n,e.pendingProps);{let o=e.return;for(;o!==null;){if(o.tag===0||o.tag===1||o.tag===8||o.tag===9){if(o.child===e){let r=g(o.type),i=on(r);i&&t.setAttribute("data-cid",i)}break}if(o.tag===3||o.tag===2)break;o=o.return}}e.stateNode=t,Dt(t,e)}else if(E!==null&&e.alternate===null)ke(e.stateNode,{},e.pendingProps),e.effectTag=0;else{let n=e.stateNode;e.alternate&&ke(n,e.alternate.memoizedProps||{},e.pendingProps)}e.memoizedProps=e.pendingProps;break}case 4:{let n=String(e.pendingProps.text);if(e.stateNode===null)e.stateNode=document.createTextNode(n);else if(E!==null&&e.alternate===null){let t=e.stateNode;t.nodeValue!==n&&(t.nodeValue=n),e.effectTag=0}else e.stateNode.nodeValue=n;e.memoizedProps=e.pendingProps;break}case 2:case 0:case 1:case 5:case 6:case 8:case 9:e.type===F&&Ce--,e.memoizedProps=e.pendingProps;break}}function Dt(e,n){let t=n.child;for(;t!==null;){if(t.tag===3||t.tag===4)t.stateNode&&e.appendChild(t.stateNode);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===n)return;for(;t.sibling===null;){if(t.return===null||t.return===n)return;t=t.return}t.sibling.return=t.return,t=t.sibling}}function At(e,n){Ze(),Ot(n),$t(n,e.containerNode),Wt(n),kn(e)}function Ot(e){let n=e;for(;n!==null;){if(n.updateQueue&&Array.isArray(n.updateQueue))for(let t of n.updateQueue){let o=t;o.effectTag===4&&zt(o)}if(n.child!==null){n=n.child;continue}for(;n!==null;){if(n===e){n=null;break}if(n.sibling!==null){n=n.sibling;break}n=n.return}}}function zt(e){let n=e.return;for(;n!==null&&!(n.tag===3||n.tag===2);)n=n.return;let t=n?.stateNode;t&&(Ut(e,t),Kt(e))}function Ut(e,n){let t=e;for(;t!==null;){if(t.tag===3||t.tag===4)t.stateNode&&n.contains(t.stateNode)&&n.removeChild(t.stateNode);else if(t.child!==null){t=t.child;continue}for(;t!==null;){if(t===e){t=null;break}if(t.sibling!==null){t=t.sibling;break}t=t.return}}}function $t(e,n){let t=e;for(;t!==null;){if(t.tag!==2&&(t.tag===3||t.tag===4)&&t.effectTag&1){let o=Vt(t,n);if(o&&t.stateNode){let r=qt(t);r?o.insertBefore(t.stateNode,r):o.appendChild(t.stateNode)}}if(t.child!==null){t=t.child;continue}for(;t!==null;){if(t===e){t=null;break}if(t.sibling!==null){t=t.sibling;break}t=t.return}}}function Vt(e,n){let t=e.return;for(;t!==null;){if(t.tag===3)return t.stateNode;if(t.tag===2)return n;t=t.return}return null}function qt(e){let n=e;e:for(;;){for(;n.sibling===null;){if(n.return===null||Yt(n.return))return null;n=n.return}for(n=n.sibling;n.tag!==3&&n.tag!==4;){if(n.effectTag&1||n.child===null)continue e;n=n.child}if(!(n.effectTag&1))return n.stateNode}}function Yt(e){return e.tag===3||e.tag===2}function Wt(e){let n=e;for(;n!==null;){if(n.ref&&n.stateNode&&(typeof n.ref=="function"?n.ref(n.stateNode):typeof n.ref=="object"&&(n.ref.current=n.stateNode)),n.tag===0||n.tag===8||n.tag===9){let t=n.dependencies;if(t){let o=(typeof n.type=="function"?g(n.type)||n.type.name:"")||"Anonymous";en(n,o),jt(t)}}if(n.tag===1&&n.stateNode){let t=n.stateNode;if(n.alternate===null)t.componentDidMount?.();else{let o=n.alternate.memoizedProps||{},r=n.alternate.memoizedState;t.componentDidUpdate?.(o,r)}}if(n.child!==null){n=n.child;continue}for(;n!==null;){if(n===e){n=null;break}if(n.sibling!==null){n=n.sibling;break}n=n.return}}}function jt(e){let n=e;for(;n!==null;){if(n.tag&1){n.destroy&&n.destroy();let t=n.create();n.destroy=typeof t=="function"?t:null}n=n.next}}function Kt(e){let n=e;for(;n!==null;){if(n.tag===0||n.tag===8){let t=n.dependencies;if(t){let o=t;for(;o!==null;)o.destroy&&o.destroy(),o=o.next}}if(n.tag===1&&n.stateNode&&n.stateNode.componentWillUnmount?.(),n.child!==null){n=n.child;continue}for(;n!==null;){if(n===e){n=null;break}if(n.sibling!==null){n=n.sibling;break}n=n.return}}}var Pn=/^on[A-Z]/;function ke(e,n,t){for(let o in n)if(!(o==="children"||o==="key"||o==="ref")&&!(o in t))if(Pn.test(o)){let r=o.slice(2).toLowerCase();e.removeEventListener(r,n[o])}else o==="style"?e.removeAttribute("style"):o==="className"?e.removeAttribute("class"):o==="htmlFor"?e.removeAttribute("for"):o==="dangerouslySetInnerHTML"?e.innerHTML="":e.removeAttribute(o);for(let o in t){if(o==="children"||o==="key"||o==="ref")continue;let r=t[o];if(Pn.test(o)){let i=o.slice(2).toLowerCase();n[o]!==r&&(n[o]&&e.removeEventListener(i,n[o]),r&&e.addEventListener(i,r))}else if(o==="style"){if(typeof r=="object"&&r!==null){let i=r;for(let l in i)e.style[l]=i[l]??""}}else if(o==="className")e.setAttribute("class",String(r));else if(o==="htmlFor")e.setAttribute("for",String(r));else if(o==="dangerouslySetInnerHTML"){let i=r.__html;e.innerHTML=i}else o==="value"&&(e.tagName==="INPUT"||e.tagName==="TEXTAREA"||e.tagName==="SELECT")?e.value=String(r??""):o==="checked"&&e.tagName==="INPUT"?e.checked=!!r:typeof r=="boolean"?r?e.setAttribute(o,""):e.removeAttribute(o):r!=null?Lt(e)&&typeof r!="string"&&o in e?e[o]=r:e.setAttribute(o,String(r)):e.removeAttribute(o)}}function Q(e,n){if(!e||!(e instanceof Element)&&!(e instanceof DocumentFragment))throw new Error("createRoot: container must be a DOM element or DocumentFragment");let t=xe(e);P.set(e,t);let o=!1;return{render(r){o=!0,_(t,r)},unmount(){o&&(o=!1,_(t,null),P.delete(e))}}}function X(e,n,t){if(!e)throw new Error("hydrateRoot: container must be a DOM element");let o=e,r=xe(o);r.isHydrating=!0,P.set(o,r);let i=!1,l={render(s){i=!0,_(r,s)},unmount(){i&&(i=!1,_(r,null),P.delete(o))}};return l.render(n),l}function Ln(e,n,t){return{$$typeof:I,type:M,props:{children:e,container:n},key:t??null,ref:null}}function _n(e){Ye();try{let n=e();return Oe(),n}finally{We()}}var H=new WeakMap;function Hn(e,n,t){let o=H.get(n);o||(o=Q(n),H.set(n,o)),o.render(e),t&&Promise.resolve().then(t)}function In(e,n,t){let o=X(n,e);H.set(n,o),t&&Promise.resolve().then(t)}function Mn(e){let n=H.get(e);return n?(n.unmount(),H.delete(e),!0):!1}
|
|
3
|
-
//# sourceMappingURL=specifyjs-dom.cjs.js.map
|
|
2
|
+
"use strict";var J=Object.defineProperty;var On=Object.getOwnPropertyDescriptor;var zn=Object.getOwnPropertyNames;var Un=Object.prototype.hasOwnProperty;var Vn=(e,n)=>{for(var t in n)J(e,t,{get:n[t],enumerable:!0})},$n=(e,n,t,o)=>{if(n&&typeof n=="object"||typeof n=="function")for(let r of zn(n))!Un.call(e,r)&&r!==t&&J(e,r,{get:()=>n[r],enumerable:!(o=On(n,r))||o.enumerable});return e};var qn=e=>$n(J({},"__esModule",{value:!0}),e);var Bt={};Vn(Bt,{createPortal:()=>Ln,createRoot:()=>Q,flushSync:()=>Hn,hydrate:()=>Dn,hydrateRoot:()=>X,render:()=>In,unmountComponentAtNode:()=>Mn});module.exports=qn(Bt);var I=Symbol.for("spec.element"),Ee=Symbol.for("spec.fragment"),D=Symbol.for("spec.portal"),ve=Symbol.for("spec.provider"),Te=Symbol.for("spec.consumer"),Pe=Symbol.for("spec.forward_ref"),Fe=Symbol.for("spec.memo"),Xt=Symbol.for("spec.lazy"),we=Symbol.for("spec.suspense"),F=Symbol.for("spec.strict_mode"),Ne=Symbol.for("spec.profiler");function k(e){return typeof e=="object"&&e!==null&&e.$$typeof===I}function Yn(e){if(typeof e=="string")return 3;if(typeof e=="function")return e.prototype?.isSpecComponent?1:0;if(typeof e=="symbol"){if(e===Ee)return 5;if(e===we)return 11;if(e===F)return 5;if(e===Ne)return 12;if(e===D)return 13}if(typeof e=="object"&&e!==null){let n=e.$$typeof;if(n===Pe)return 8;if(n===Fe)return 9;if(n===ve)return 6;if(n===Te)return 7}return 3}function M(e,n=0){let t=Yn(e.type);return O(t,e.type,e.key,e.ref,e.props,n)}function A(e,n=0){return O(4,null,null,null,{text:e},n)}function Le(){return O(2,null,null,null,{},0)}function O(e,n,t,o,r,i){return{tag:e,type:n,key:t,ref:o,stateNode:null,pendingProps:r,memoizedProps:null,memoizedState:null,return:null,child:null,sibling:null,index:0,alternate:null,effectTag:0,updateQueue:null,dependencies:null,lanes:i,childLanes:0}}function He(e,n){let t=e.alternate;return t===null?(t=O(e.tag,e.type,e.key,e.ref,n,e.lanes),t.stateNode=e.stateNode,t.alternate=e,e.alternate=t):(t.pendingProps=n,t.effectTag=0,t.child=null,t.sibling=null),t.memoizedProps=e.memoizedProps,t.memoizedState=e.memoizedState,t.updateQueue=e.updateQueue,t.lanes=e.lanes,t.childLanes=e.childLanes,t}function Ie(e){let n=[],t=[e];for(;t.length>0;){let o=t.pop();if(!(o==null||typeof o=="boolean")){if(Array.isArray(o)){for(let r=o.length-1;r>=0;r--)t.push(o[r]);continue}(k(o)||typeof o=="string"||typeof o=="number")&&n.push(o)}}return n}function m(e,n,t,o){let r=Ie(t);return r.length===0?(x(e,n),null):r.length===1&&!Array.isArray(r[0])?Wn(e,n,r[0],o):Kn(e,n,r,o)}function Wn(e,n,t,o){if(typeof t=="string"||typeof t=="number")return jn(e,n,t,o);let r=t.key,i=n;for(;i!==null;){if(i.key===r){if(Gn(i,t)){x(e,i.sibling);let s=U(i,t.props);return s.ref=t.ref,s.return=e,s}x(e,i);break}else z(e,i);i=i.sibling}let l=M(t,o);return l.ref=t.ref,l.return=e,l.effectTag=1,l}function jn(e,n,t,o){if(n!==null&&n.tag===4){x(e,n.sibling);let i=U(n,{text:t});return i.return=e,i}x(e,n);let r=A(t,o);return r.return=e,r.effectTag=1,r}function Kn(e,n,t,o){let r=null,i=null,l=n,s=0,u=0,a=null;for(;l!==null&&s<t.length;s++){l.index>s?(a=l,l=null):a=l.sibling;let p=t[s],c=Qn(e,l,p,o);if(c===null){l===null&&(l=a);break}l&&c.alternate===null&&z(e,l),u=Z(c,u,s),i===null?r=c:i.sibling=c,i=c,l=a}if(s===t.length)return x(e,l),r;if(l===null){for(;s<t.length;s++){let p=Xn(e,t[s],o);p!==null&&(u=Z(p,u,s),i===null?r=p:i.sibling=p,i=p)}return r}let h=Jn(l);for(;s<t.length;s++){let p=t[s],c=Zn(e,h,p,s,o);if(c!==null){if(c.alternate!==null){let An=c.key!==null?c.key:s;h.delete(An)}u=Z(c,u,s),i===null?r=c:i.sibling=c,i=c}}return h.forEach(p=>{z(e,p)}),r}function Gn(e,n){return e.type===n.type}function U(e,n){let t=Bn(e,n);return t.index=0,t.sibling=null,t}function Bn(e,n){let t=e.alternate;return t===null?(t={...e,pendingProps:n,effectTag:0,child:null,sibling:null,alternate:e},e.alternate=t):(t.pendingProps=n,t.effectTag=0,t.child=null,t.sibling=null),t.memoizedProps=e.memoizedProps,t.memoizedState=e.memoizedState,t.updateQueue=e.updateQueue,t}function Qn(e,n,t,o){let r=n!==null?n.key:null;if(typeof t=="string"||typeof t=="number")return r!==null?null:De(e,n,t,o);if(k(t)){let i=t;return i.key===r?Me(e,n,i,o):null}return null}function De(e,n,t,o){if(n===null||n.tag!==4){let i=A(t,o);return i.return=e,i.effectTag=1,i}let r=U(n,{text:t});return r.return=e,r}function Me(e,n,t,o){if(n!==null&&n.type===t.type){let i=U(n,t.props);return i.ref=t.ref,i.return=e,i}let r=M(t,o);return r.ref=t.ref,r.return=e,r.effectTag=1,r}function Xn(e,n,t){if(typeof n=="string"||typeof n=="number"){let o=A(n,t);return o.return=e,o.effectTag=1,o}if(k(n)){let o=M(n,t);return o.ref=n.ref,o.return=e,o.effectTag=1,o}return null}function Z(e,n,t){e.index=t;let o=e.alternate;if(o!==null){let r=o.index;return r<n?(e.effectTag=1,n):r}return e.effectTag=1,n}function z(e,n){n.effectTag=4,e.updateQueue||(e.updateQueue=[]),e.updateQueue.push(n)}function x(e,n){let t=n;for(;t!==null;)z(e,t),t=t.sibling}function Jn(e){let n=new Map,t=e;for(;t!==null;){let o=t.key!==null?t.key:t.index;n.set(o,t),t=t.sibling}return n}function Zn(e,n,t,o,r){if(typeof t=="string"||typeof t=="number"){let i=n.get(o)||null;return De(e,i,t,r)}if(k(t)){let i=t,l=i.key!==null?i.key:o,s=n.get(l)||null;return Me(e,s,i,r)}return null}var R=null,w=null,y=null,ee=0,ne=null,N=null;function b(e){R=e,w=null,y=null,ee=0,ne=null,N=null}function te(){return R}function Ae(){return ee}function f(){let e;if(R===null)throw new Error("Hooks can only be called inside a function component.");let n=R.alternate;if(n!==null){if(y===null?y=n.memoizedState??null:y=y.next,y===null)throw new Error("Rendered more hooks than during the previous render.");e={memoizedState:y.memoizedState,queue:y.queue,next:null}}else e={memoizedState:null,queue:null,next:null};return w===null?(R.memoizedState=e,w=e):(w.next=e,w=e),ee++,e}function oe(e,n,t,o){let r={tag:e,create:n,destroy:t,deps:o,next:null};return N===null?(ne=r,N=r):(N.next=r,N=r),r}function V(){return ne}function $(e,n){if(e===void 0||n===void 0||e.length!==n.length)return!1;for(let t=0;t<e.length;t++)if(!Object.is(e[t],n[t]))return!1;return!0}var et=null;function re(e){et=e}var nt=!1,C=[];function q(e){if(nt){C.length>=1e4&&(typeof console<"u"&&!(typeof process<"u")&&console.warn("[SpecifyJS] Scheduler: pending task queue exceeded 10000 \u2014 dropping oldest tasks"),C=C.slice(-Math.floor(1e4/2))),C.push(e);return}e()}function Oe(){let e=C;C=[];for(let n of e)n()}function ie(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e)}function Y(e,n){return e|n}var ze=8;function Ue(){let e=ze;return ze=e===8?16:8,e}var W=4,le=!1,se=!1,Ve=[];function ue(){return se?1:W}function Ye(){se=!0}function We(){se=!1}function ae(e){let n=W,t=le;W=Ue(),le=!0;try{e()}finally{W=n,le=t,tt()}}function tt(){let e=Ve;Ve=[];for(let n of e)n()}var ce=new Set,je=typeof process<"u"&&typeof process.env<"u"&&!0;function d(e){je||ce.has(e)||ce.size>=1e3||(ce.add(e),typeof console<"u"&&console.warn(`[SpecifyJS] ${e}`))}function Ke(e){je||typeof console<"u"&&console.error(`[SpecifyJS] ${e}`)}var ot=50,rt=25,it=5,Ge=new WeakMap,de=0;function Je(){de++}function Ze(e,n){let t=Ge.get(e);if((!t||t.cycleId!==de)&&(t={count:0,cycleId:de},Ge.set(e,t)),t.count++,t.count>ot){let o=`Maximum update depth exceeded. Component "${n}" re-rendered ${t.count} times in a single cycle. This usually means a useEffect or setState call is creating an infinite loop. Check that useEffect dependencies are stable (use useMemo/useCallback for objects/arrays).`;throw Ke(o),t.count=0,new Error(`[SpecifyJS] ${o}`)}}var Be=new WeakMap,pe=0;function en(){pe++}function nn(e,n){let t=Be.get(e);(!t||t.commitId!==pe)&&(t={count:0,commitId:pe},Be.set(e,t)),t.count++,t.count>rt&&d(`Effect cycle detected in "${n}". Effects fired ${t.count} times in a single commit. This may indicate an effect that triggers a state update on every run. Ensure effect dependencies are correct and stable.`)}var Qe=new WeakMap;function tn(e,n,t,o,r){if(!t)return;let i=Qe.get(e);i||(i=new Map,Qe.set(e,i));let l=i.get(n);l||(l={consecutiveChanges:0,lastDepsKey:"",warned:!1},i.set(n,l)),o?l.consecutiveChanges++:l.consecutiveChanges=0,l.consecutiveChanges>=it&&!l.warned&&(l.warned=!0,d(`Unstable useEffect dependencies in "${r}" (hook #${n}). Dependencies changed on ${l.consecutiveChanges} consecutive renders. This may cause unnecessary effect re-runs. Wrap objects/arrays in useMemo and functions in useCallback to stabilize references.`))}var Xe=new WeakMap,fe=0;function on(){fe++}function me(e,n){let t=Xe.get(e);(!t||t.frameId!==fe)&&(t={count:0,frameId:fe},Xe.set(e,t)),t.count++,t.count===100&&d(`Rapid state updates in "${n}": setState called ${t.count} times in a single frame. This may indicate a loop or missing dependency optimization.`)}var ye=new Map,lt=0,st=!0;function rn(e){if(!st)return"";let n=ye.get(e);n||(n={name:e,index:lt++,instanceCount:0},ye.set(e,n),ut());let t=n.instanceCount++;return`s-${n.index}-${t}`}function ut(){if(typeof globalThis<"u"){let e={};for(let n of ye.values())e[n.index]=n.name;globalThis.__SPECIFYJS_COMPONENTS__=e}}function g(e){return typeof e=="string"?e:typeof e=="function"?e.name||"Anonymous":e==null?"Unknown":"Component"}var S=null;function ln(e){S=e}function be(){let e=te();if(!e)throw new Error("Invalid hook call.");return e}function sn(e,n){e.lanes=Y(e.lanes,n);let t=e.return;for(;t!==null;)t.childLanes=Y(t.childLanes,n),t=t.return}function j(e){let n=f();if(n.queue===null){let l=typeof e=="function"?e():e;n.memoizedState=l,n.queue=[]}let t=n.queue;if(t.length>0){let l=n.memoizedState;for(let s of t){let u=s.action;l=typeof u=="function"?u(l):u}n.memoizedState=l,t.length=0}let o=n.memoizedState,r=be();return[o,l=>{let s=(typeof r.type=="function"?g(r.type)||r.type.name:"")||"Anonymous";me(r,s);let u=ue();t.length>=1e4&&(typeof console<"u"&&!(typeof process<"u")&&console.warn("[SpecifyJS] Hook update queue exceeded 10000 \u2014 dropping oldest updates"),t.splice(0,t.length-5e3)),t.push({action:l}),sn(r,u),S&&q(()=>S(r))}]}function un(e,n,t){let o=f();o.queue===null&&(o.memoizedState=t?t(n):n,o.queue=[]);let r=o.queue;if(r.length>0){let u=o.memoizedState;for(let a of r)u=e(u,a.action);o.memoizedState=u,r.length=0}let i=o.memoizedState,l=be();return[i,u=>{let a=(typeof l.type=="function"?g(l.type)||l.type.name:"")||"Anonymous";me(l,a);let h=ue();r.push({action:u}),sn(l,h),S&&q(()=>S(l))}]}function E(e,n,t){let o=f(),r=Ae(),i=o.memoizedState,l=i?.effect?.destroy??null;if(i!==null&&t!==void 0){let u=$(i.deps,t),a=te();if(a){let h=(typeof a.type=="function"?g(a.type)||a.type.name:"")||"Anonymous";tn(a,r,t,!u,h)}if(u){oe(0,n,l,t);return}}let s=oe(1|e,n,l,t);o.memoizedState={deps:t,effect:s}}function an(e,n){E(4,e,n)}function cn(e,n){E(2,e,n)}function dn(e,n){E(8,e,n)}function pn(e){return f(),e._currentValue}function ge(e,n){let t=f(),o=t.memoizedState;return o!==null&&$(o[1],n)?o[0]:(t.memoizedState=[e,n],e)}function fn(e,n){let t=f(),o=t.memoizedState;if(o!==null&&$(o[1],n))return o[0];let r=e();return t.memoizedState=[r,n],r}function mn(e){let n=f();if(n.memoizedState===null){let t={current:e};n.memoizedState=t}return n.memoizedState}function yn(e,n,t){E(2,()=>{let o=n();if(e!==null)return typeof e=="function"?(e(o),()=>e(null)):(e.current=o,()=>{e.current=null})},t)}function bn(e,n){}var ct=0;function gn(){let e=f();return e.memoizedState===null&&(e.memoizedState=`:l${ct++}:`),e.memoizedState}function hn(e){let[n,t]=j(e);return E(4,()=>{ae(()=>{t(e)})},[e]),n}function Sn(){let[e,n]=j(!1),t=ge((o=>{n(!0),ae(()=>{n(!1),o()})}),[n]);return[e,t]}function kn(e,n,t){let o=f(),r=be(),i=n();return o.memoizedState=i,E(4,()=>e(()=>{let s=n();Object.is(o.memoizedState,s)||(o.memoizedState=s,S&&q(()=>S(r)))}),[e,n]),i}var dt={useState:j,useEffect:an,useContext:pn,useReducer:un,useCallback:ge,useMemo:fn,useRef:mn,useImperativeHandle:yn,useLayoutEffect:cn,useDebugValue:bn,useId:gn,useDeferredValue:hn,useTransition:Sn,useSyncExternalStore:kn,useInsertionEffect:dn};function K(){re(dt)}function G(){re(null)}var pt=null;function xn(e){pt?.onCommitFiberRoot?.(e)}function ft(){return typeof performance<"u"&&typeof performance.now=="function"?performance.now():Date.now()}var mt=5,yt=0;function En(){yt=ft()+mt}var _=null,he=!1;function Cn(){if(_!==null){En();let e=_,n=!1;try{let t=e();typeof t=="function"?(_=t,n=!0):_=null}catch(t){throw _=null,he=!1,t}n?Se():he=!1}else he=!1}var Se;if(typeof MessageChannel<"u"){let e=new MessageChannel;e.port1.onmessage=Cn,Se=()=>{e.port2.postMessage(null)}}else Se=()=>{setTimeout(Cn,0)};function vn(e,n){typeof process<"u"||(e==="button"&&!n.children&&!n["aria-label"]&&!n["aria-labelledby"]&&d("<button> without text content or aria-label. Add text, aria-label, or aria-labelledby for accessibility."),e==="img"&&n.alt===void 0&&d('<img> without alt attribute. Add alt="" for decorative images or descriptive text for informative images.'),(e==="input"||e==="select"||e==="textarea")&&!n["aria-label"]&&!n["aria-labelledby"]&&!n.id&&d(`<${e}> without aria-label, aria-labelledby, or id (for label[for]). Form controls need accessible names.`),(e==="div"||e==="span")&&n.onClick&&!n.role&&d(`<${e}> with onClick but no role attribute. Add role="button" and tabIndex={0} for keyboard accessibility.`),n.role==="button"&&n.tabIndex===void 0&&e!=="button"&&d('Element with role="button" but no tabIndex. Add tabIndex={0} to make it keyboard-focusable.'),n.role==="dialog"&&!n["aria-label"]&&!n["aria-labelledby"]&&d('Element with role="dialog" needs aria-label or aria-labelledby.'),e==="a"&&n.target==="_blank"&&!n.rel&&d('<a target="_blank"> without rel attribute. Add rel="noopener noreferrer" for security.'),n.role==="tablist"&&!n["aria-label"]&&!n["aria-labelledby"]&&d('Element with role="tablist" needs aria-label or aria-labelledby.'))}var P=new Map;function xe(e){let n=Le();return n.stateNode=e,{containerNode:e,current:n,pendingChildren:null,callbackScheduled:!1,pendingLanes:0,suspendedLanes:0,expirationTimes:new Array(8).fill(-1),callbackNode:null,callbackPriority:0,isHydrating:!1}}function bt(e,n){e.pendingChildren=n,e.callbackScheduled||(e.callbackScheduled=!0,ie(()=>{e.callbackScheduled=!1,Nn(e)}))}function L(e,n){e.pendingChildren=n,Nn(e)}function wn(e){let n=e;for(;n?.return;)n=n.return;if(n&&n.stateNode){let t=St(n.stateNode);t&&bt(t,t.pendingChildren)}}function gt(){ln(e=>{wn(e)})}function Nn(e){Je(),on(),gt(),e.isHydrating&&(v=e,T.clear());let n=e.current,t=He(n,{children:e.pendingChildren});ht(t),Ot(e,t),e.current=t,e.isHydrating&&(e.isHydrating=!1,v=null,T.clear())}function ht(e){let n=e;for(;n!==null;)n=kt(n)}function St(e){for(let[,n]of P)if(n.containerNode===e)return n;return null}function kt(e){if(xt(e),e.child!==null)return e.child;let n=e;for(;n!==null;){if(Mt(n),n.sibling!==null)return n.sibling;n=n.return}return null}function xt(e){if(v!==null&&e.stateNode===null&&(e.tag===3||e.tag===4)){let n=Dt(e,v.containerNode);if(n)if(e.tag===3){let t=Ht(e,n);t&&(e.stateNode=t)}else{let t=It(n);t&&(e.stateNode=t)}}switch(e.tag){case 2:Ct(e);break;case 3:Et(e);break;case 4:break;case 0:vt(e);break;case 1:Tt(e);break;case 5:e.type===F&&Ce++,Tn(e);break;case 6:Pt(e);break;case 8:Ft(e);break;case 9:wt(e);break;default:Tn(e);break}}function Ct(e){let n=e.pendingProps.children;e.child=m(e,e.alternate?.child??null,n,0)}function Et(e){let n=e.pendingProps.children;e.child=m(e,e.alternate?.child??null,n,0)}function vt(e){K(),b(e);let n=e.type,t=g(n)||n.name||"Anonymous";Ze(e,t),Ce>0&&e.alternate===null&&(n(e.pendingProps),b(e));let o=n(e.pendingProps),r=V();e.dependencies=r,b(null),G(),e.child=m(e,e.alternate?.child??null,o,0)}function Tt(e){let n=e.type,t;if(e.stateNode===null?(t=new n(e.pendingProps),e.stateNode=t,t._fiber=e,t._enqueueUpdate=function(r){wn(e),typeof r=="function"&&ie(r)}):(t=e.stateNode,t.props=e.pendingProps,t._fiber=e),t._pendingState.length>0||t._forceUpdate){let r=t.state;for(let l of t._pendingState)if(typeof l=="function"){let s=l(r,t.props);s!==null&&(r={...r,...s})}else r={...r,...l};t._pendingState=[];let i=t._forceUpdate||!t.shouldComponentUpdate||t.shouldComponentUpdate(t.props,r);if(t.state=r,t._forceUpdate=!1,!i){e.child=Rn(e.alternate?.child??null,e);return}}let o=t.render();e.child=m(e,e.alternate?.child??null,o,0)}function Tn(e){let n=e.pendingProps.children;e.child=m(e,e.alternate?.child??null,n,0)}function Pt(e){let n=e.type,t=e.pendingProps.value;n._context&&(n._context._currentValue=t);let o=e.pendingProps.children;e.child=m(e,e.alternate?.child??null,o,0)}function Ft(e){let{render:n}=e.type;K(),b(e);let t=n(e.pendingProps,e.ref),o=V();e.dependencies=o,b(null),G(),e.child=m(e,e.alternate?.child??null,t,0)}function wt(e){let{type:n,compare:t}=e.type;if(e.alternate!==null){let i=e.alternate.memoizedProps,l=e.pendingProps;if(i!==null&&(t?t(i,l):Nt(i,l))){e.child=Rn(e.alternate.child,e);return}}K(),b(e);let o=n(e.pendingProps),r=V();e.dependencies=r,b(null),G(),e.child=m(e,e.alternate?.child??null,o,0)}function Nt(e,n){let t=Object.keys(e),o=Object.keys(n);if(t.length!==o.length)return!1;for(let r of t)if(r!=="children"&&!Object.is(e[r],n[r]))return!1;return!0}function Rn(e,n){if(e===null)return null;let t=Pn(e,n),o=[],r=e.child;for(r&&o.push({source:r,cloneParent:t});o.length>0;){let{source:i,cloneParent:l}=o.pop(),s=i,u=null;for(;s!==null;){let a=Pn(s,l);u?u.sibling=a:l.child=a,s.child&&o.push({source:s.child,cloneParent:a}),u=a,s=s.sibling}}return t}function Pn(e,n){let t={...e,return:n,alternate:e,child:null,sibling:null,effectTag:0,pendingProps:e.memoizedProps??e.pendingProps};return e.alternate=t,t}var Rt=new Set(["svg","circle","clipPath","defs","ellipse","g","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","text","tspan","use","image","symbol","foreignObject","desc","title","metadata","marker","filter","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","animate","animateMotion","animateTransform","set"]);function _t(e){return Rt.has(e)}function Lt(e){return e.tagName.includes("-")}var Ce=0,v=null,T=new Map;function _n(e){let n=e.firstChild;for(;n!==null;){if(n.nodeType===1||n.nodeType===3)return n;n=n.nextSibling}return null}function B(e){let n=e.nextSibling;for(;n!==null;){if(n.nodeType===1||n.nodeType===3)return n;n=n.nextSibling}return null}function Ht(e,n){let t=T.get(n)??_n(n);if(t===null)return null;for(;t!==null&&t.nodeType!==1;)t=B(t);if(t===null)return null;let o=t;return o.tagName.toLowerCase()!==e.type.toLowerCase()?null:(T.set(n,B(o)),o)}function It(e){let n=T.get(e)??_n(e);if(n===null)return null;for(;n!==null&&n.nodeType!==3;)n=B(n);if(n===null)return null;let t=n;return T.set(e,B(t)),t}function Dt(e,n){let t=e.return;for(;t!==null;){if(t.tag===3&&t.stateNode)return t.stateNode;if(t.tag===2)return n;t=t.return}return n}function Mt(e){switch(e.tag){case 3:{if(e.stateNode===null){let n=e.type,t=_t(n)?document.createElementNS("http://www.w3.org/2000/svg",n):document.createElement(n);ke(t,{},e.pendingProps),vn(n,e.pendingProps);{let o=e.return;for(;o!==null;){if(o.tag===0||o.tag===1||o.tag===8||o.tag===9){if(o.child===e){let r=g(o.type),i=rn(r);i&&t.setAttribute("data-cid",i)}break}if(o.tag===3||o.tag===2)break;o=o.return}}e.stateNode=t,At(t,e)}else if(v!==null&&e.alternate===null)ke(e.stateNode,{},e.pendingProps),e.effectTag=0;else{let n=e.stateNode;e.alternate&&ke(n,e.alternate.memoizedProps||{},e.pendingProps)}e.memoizedProps=e.pendingProps;break}case 4:{let n=String(e.pendingProps.text);if(e.stateNode===null)e.stateNode=document.createTextNode(n);else if(v!==null&&e.alternate===null){let t=e.stateNode;t.nodeValue!==n&&(t.nodeValue=n),e.effectTag=0}else e.stateNode.nodeValue=n;e.memoizedProps=e.pendingProps;break}case 2:case 0:case 1:case 5:case 6:case 8:case 9:e.type===F&&Ce--,e.memoizedProps=e.pendingProps;break}}function At(e,n){let t=n.child;for(;t!==null;){if(t.tag===3||t.tag===4)t.stateNode&&e.appendChild(t.stateNode);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===n)return;for(;t.sibling===null;){if(t.return===null||t.return===n)return;t=t.return}t.sibling.return=t.return,t=t.sibling}}function Ot(e,n){en(),zt(n),$t(n,e.containerNode),jt(n),xn(e)}function zt(e){let n=e;for(;n!==null;){if(n.updateQueue&&Array.isArray(n.updateQueue))for(let t of n.updateQueue){let o=t;o.effectTag===4&&Ut(o)}if(n.child!==null){n=n.child;continue}for(;n!==null;){if(n===e){n=null;break}if(n.sibling!==null){n=n.sibling;break}n=n.return}}}function Ut(e){let n=e.return;for(;n!==null&&!(n.tag===3||n.tag===2);)n=n.return;let t=n?.stateNode;t&&(Vt(e,t),Gt(e))}function Vt(e,n){let t=e;for(;t!==null;){if(t.tag===3||t.tag===4)t.stateNode&&n.contains(t.stateNode)&&n.removeChild(t.stateNode);else if(t.child!==null){t=t.child;continue}for(;t!==null;){if(t===e){t=null;break}if(t.sibling!==null){t=t.sibling;break}t=t.return}}}function $t(e,n){let t=e;for(;t!==null;){if(t.tag!==2&&(t.tag===3||t.tag===4)&&t.effectTag&1){let o=qt(t,n);if(o&&t.stateNode){let r=Yt(t);r?o.insertBefore(t.stateNode,r):o.appendChild(t.stateNode)}}if(t.child!==null){t=t.child;continue}for(;t!==null;){if(t===e){t=null;break}if(t.sibling!==null){t=t.sibling;break}t=t.return}}}function qt(e,n){let t=e.return;for(;t!==null;){if(t.tag===3)return t.stateNode;if(t.tag===2)return n;t=t.return}return null}function Yt(e){let n=e;e:for(;;){for(;n.sibling===null;){if(n.return===null||Wt(n.return))return null;n=n.return}for(n=n.sibling;n.tag!==3&&n.tag!==4;){if(n.effectTag&1||n.child===null)continue e;n=n.child}if(!(n.effectTag&1))return n.stateNode}}function Wt(e){return e.tag===3||e.tag===2}function jt(e){let n=e;for(;n!==null;){if(n.ref&&n.stateNode&&(typeof n.ref=="function"?n.ref(n.stateNode):typeof n.ref=="object"&&(n.ref.current=n.stateNode)),n.tag===0||n.tag===8||n.tag===9){let t=n.dependencies;if(t){let o=(typeof n.type=="function"?g(n.type)||n.type.name:"")||"Anonymous";nn(n,o),Kt(t)}}if(n.tag===1&&n.stateNode){let t=n.stateNode;if(n.alternate===null)t.componentDidMount?.();else{let o=n.alternate.memoizedProps||{},r=n.alternate.memoizedState;t.componentDidUpdate?.(o,r)}}if(n.child!==null){n=n.child;continue}for(;n!==null;){if(n===e){n=null;break}if(n.sibling!==null){n=n.sibling;break}n=n.return}}}function Kt(e){let n=e;for(;n!==null;){if(n.tag&1){n.destroy&&n.destroy();let t=n.create();n.destroy=typeof t=="function"?t:null}n=n.next}}function Gt(e){let n=e;for(;n!==null;){if(n.tag===0||n.tag===8){let t=n.dependencies;if(t){let o=t;for(;o!==null;)o.destroy&&o.destroy(),o=o.next}}if(n.tag===1&&n.stateNode&&n.stateNode.componentWillUnmount?.(),n.child!==null){n=n.child;continue}for(;n!==null;){if(n===e){n=null;break}if(n.sibling!==null){n=n.sibling;break}n=n.return}}}var Fn=/^on[A-Z]/;function ke(e,n,t){for(let o in n)if(!(o==="children"||o==="key"||o==="ref")&&!(o in t))if(Fn.test(o)){let r=o.slice(2).toLowerCase();e.removeEventListener(r,n[o])}else o==="style"?e.removeAttribute("style"):o==="className"?e.removeAttribute("class"):o==="htmlFor"?e.removeAttribute("for"):o==="dangerouslySetInnerHTML"?e.innerHTML="":e.removeAttribute(o);for(let o in t){if(o==="children"||o==="key"||o==="ref")continue;let r=t[o];if(Fn.test(o)){let i=o.slice(2).toLowerCase();n[o]!==r&&(n[o]&&e.removeEventListener(i,n[o]),r&&e.addEventListener(i,r))}else if(o==="style"){if(typeof r=="object"&&r!==null){let i=r;for(let l in i)e.style[l]=i[l]??""}}else if(o==="className")e.setAttribute("class",String(r));else if(o==="htmlFor")e.setAttribute("for",String(r));else if(o==="dangerouslySetInnerHTML"){let i=r.__html;e.innerHTML=i}else o==="value"&&(e.tagName==="INPUT"||e.tagName==="TEXTAREA"||e.tagName==="SELECT")?e.value=String(r??""):o==="checked"&&e.tagName==="INPUT"?e.checked=!!r:typeof r=="boolean"?r?e.setAttribute(o,""):e.removeAttribute(o):r!=null?Lt(e)&&typeof r!="string"&&o in e?e[o]=r:e.setAttribute(o,String(r)):e.removeAttribute(o)}}function Q(e,n){if(!e||!(e instanceof Element)&&!(e instanceof DocumentFragment))throw new Error("createRoot: container must be a DOM element or DocumentFragment");let t=xe(e);P.set(e,t);let o=!1;return{render(r){o=!0,L(t,r)},unmount(){o&&(o=!1,L(t,null),P.delete(e))}}}function X(e,n,t){if(!e)throw new Error("hydrateRoot: container must be a DOM element");let o=e,r=xe(o);r.isHydrating=!0,P.set(o,r);let i=!1,l={render(s){i=!0,L(r,s)},unmount(){i&&(i=!1,L(r,null),P.delete(o))}};return l.render(n),l}function Ln(e,n,t){return{$$typeof:I,type:D,props:{children:e,container:n},key:t??null,ref:null}}function Hn(e){Ye();try{let n=e();return Oe(),n}finally{We()}}var H=new WeakMap;function In(e,n,t){let o=H.get(n);o||(o=Q(n),H.set(n,o)),o.render(e),t&&Promise.resolve().then(t)}function Dn(e,n,t){let o=X(n,e);H.set(n,o),t&&Promise.resolve().then(t)}function Mn(e){let n=H.get(e);return n?(n.unmount(),H.delete(e),!0):!1}
|
|
@@ -10,10 +10,10 @@ import {
|
|
|
10
10
|
scheduleMicrotask,
|
|
11
11
|
scheduleUpdate,
|
|
12
12
|
startTransition
|
|
13
|
-
} from "./esm/chunks/chunk-
|
|
13
|
+
} from "./esm/chunks/chunk-7OC7LXZ7.js";
|
|
14
14
|
import {
|
|
15
15
|
isValidElement
|
|
16
|
-
} from "./esm/chunks/chunk-
|
|
16
|
+
} from "./esm/chunks/chunk-SRUWIDIG.js";
|
|
17
17
|
import {
|
|
18
18
|
SPEC_CONSUMER_TYPE,
|
|
19
19
|
SPEC_ELEMENT_TYPE,
|
|
@@ -25,11 +25,11 @@ import {
|
|
|
25
25
|
SPEC_PROVIDER_TYPE,
|
|
26
26
|
SPEC_STRICT_MODE_TYPE,
|
|
27
27
|
SPEC_SUSPENSE_TYPE
|
|
28
|
-
} from "./esm/chunks/chunk-
|
|
28
|
+
} from "./esm/chunks/chunk-UJTLBTMV.js";
|
|
29
29
|
import {
|
|
30
30
|
__setDispatcher
|
|
31
|
-
} from "./esm/chunks/chunk-
|
|
32
|
-
import "./esm/chunks/chunk-
|
|
31
|
+
} from "./esm/chunks/chunk-4V37N6QN.js";
|
|
32
|
+
import "./esm/chunks/chunk-FDNBPWUH.js";
|
|
33
33
|
|
|
34
34
|
// src/core/fiber.ts
|
|
35
35
|
function getFiberTag(type) {
|
|
@@ -508,7 +508,9 @@ function areDepsEqual(prevDeps, nextDeps) {
|
|
|
508
508
|
// src/shared/warnings.ts
|
|
509
509
|
var MAX_WARNINGS = 1e3;
|
|
510
510
|
var warnedMessages = /* @__PURE__ */ new Set();
|
|
511
|
+
var IS_PRODUCTION = typeof process !== "undefined" && typeof process.env !== "undefined" && false;
|
|
511
512
|
function warn(message) {
|
|
513
|
+
if (IS_PRODUCTION) return;
|
|
512
514
|
if (warnedMessages.has(message)) return;
|
|
513
515
|
if (warnedMessages.size >= MAX_WARNINGS) return;
|
|
514
516
|
warnedMessages.add(message);
|
|
@@ -517,6 +519,7 @@ function warn(message) {
|
|
|
517
519
|
}
|
|
518
520
|
}
|
|
519
521
|
function error(message) {
|
|
522
|
+
if (IS_PRODUCTION) return;
|
|
520
523
|
if (typeof console !== "undefined") {
|
|
521
524
|
console.error(`[SpecifyJS] ${message}`);
|
|
522
525
|
}
|
|
@@ -651,7 +654,7 @@ function useStateImpl(initialState) {
|
|
|
651
654
|
trackStateUpdate(fiber, compName);
|
|
652
655
|
const lane = requestUpdateLane();
|
|
653
656
|
if (queue.length >= 1e4) {
|
|
654
|
-
if (typeof console !== "undefined")
|
|
657
|
+
if (typeof console !== "undefined" && !(typeof process !== "undefined" && false))
|
|
655
658
|
console.warn("[SpecifyJS] Hook update queue exceeded 10000 \u2014 dropping oldest updates");
|
|
656
659
|
queue.splice(0, queue.length - 5e3);
|
|
657
660
|
}
|
|
@@ -1901,4 +1904,3 @@ export {
|
|
|
1901
1904
|
render,
|
|
1902
1905
|
unmountComponentAtNode
|
|
1903
1906
|
};
|
|
1904
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1,3 +1,2 @@
|
|
|
1
1
|
/* (c) 2025-2026 Asymmetric Effort, LLC. MIT LICENSE */
|
|
2
2
|
"use strict";var P=Object.defineProperty;var a=Object.getOwnPropertyDescriptor;var S=Object.getOwnPropertyNames;var i=Object.prototype.hasOwnProperty;var f=(o,e)=>{for(var t in e)P(o,t,{get:e[t],enumerable:!0})},C=(o,e,t,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of S(e))!i.call(o,r)&&r!==t&&P(o,r,{get:()=>e[r],enumerable:!(s=a(e,r))||s.enumerable});return o};var x=o=>C(P({},"__esModule",{value:!0}),o);var _={};f(_,{Fragment:()=>u,jsxDEV:()=>y});module.exports=x(_);var m=Symbol.for("spec.element"),c=Symbol.for("spec.fragment"),k=Symbol.for("spec.portal"),R=Symbol.for("spec.provider"),w=Symbol.for("spec.consumer"),v=Symbol.for("spec.forward_ref"),h=Symbol.for("spec.memo"),N=Symbol.for("spec.lazy"),Y=Symbol.for("spec.suspense"),O=Symbol.for("spec.strict_mode"),D=Symbol.for("spec.profiler");function d(o,e,...t){let s=null,r=null,p={};if(e!=null){e.key!==void 0&&(s=""+e.key),e.ref!==void 0&&(r=e.ref);for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&n!=="key"&&n!=="ref"&&n!=="__proto__"&&n!=="constructor"&&n!=="prototype"&&(p[n]=e[n])}if(t.length===1?p.children=t[0]:t.length>1&&(p.children=t),typeof o=="function"&&o.defaultProps){let n=o.defaultProps;for(let l of Object.keys(n))l!=="__proto__"&&l!=="constructor"&&p[l]===void 0&&(p[l]=n[l])}return{$$typeof:m,type:o,props:p,key:s,ref:r}}var u=c;function y(o,e,t){let s=t!==void 0?t:e.key!==void 0?e.key:null,{key:r,...p}=e,n=s!==null?{...p,key:s}:p;return d(o,n)}
|
|
3
|
-
//# sourceMappingURL=specifyjs-jsx-dev-runtime.cjs.js.map
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
/* (c) 2025-2026 Asymmetric Effort, LLC. MIT LICENSE */
|
|
2
2
|
import {
|
|
3
3
|
jsx
|
|
4
|
-
} from "./esm/chunks/chunk-
|
|
4
|
+
} from "./esm/chunks/chunk-AE2JTY3A.js";
|
|
5
5
|
import {
|
|
6
6
|
Fragment
|
|
7
|
-
} from "./esm/chunks/chunk-
|
|
8
|
-
import "./esm/chunks/chunk-
|
|
9
|
-
import "./esm/chunks/chunk-
|
|
7
|
+
} from "./esm/chunks/chunk-NKW7RJR3.js";
|
|
8
|
+
import "./esm/chunks/chunk-UJTLBTMV.js";
|
|
9
|
+
import "./esm/chunks/chunk-FDNBPWUH.js";
|
|
10
10
|
export {
|
|
11
11
|
Fragment,
|
|
12
12
|
jsx as jsxDEV
|
|
13
13
|
};
|
|
14
|
-
//# sourceMappingURL=jsx-dev-runtime.js.map
|
|
@@ -1,3 +1,2 @@
|
|
|
1
1
|
/* (c) 2025-2026 Asymmetric Effort, LLC. MIT LICENSE */
|
|
2
2
|
"use strict";var P=Object.defineProperty;var y=Object.getOwnPropertyDescriptor;var a=Object.getOwnPropertyNames;var S=Object.prototype.hasOwnProperty;var i=(o,e)=>{for(var t in e)P(o,t,{get:e[t],enumerable:!0})},f=(o,e,t,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let p of a(e))!S.call(o,p)&&p!==t&&P(o,p,{get:()=>e[p],enumerable:!(s=y(e,p))||s.enumerable});return o};var C=o=>f(P({},"__esModule",{value:!0}),o);var _={};i(_,{Fragment:()=>d,jsx:()=>x,jsxs:()=>x});module.exports=C(_);var u=Symbol.for("spec.element"),m=Symbol.for("spec.fragment"),k=Symbol.for("spec.portal"),R=Symbol.for("spec.provider"),w=Symbol.for("spec.consumer"),v=Symbol.for("spec.forward_ref"),h=Symbol.for("spec.memo"),N=Symbol.for("spec.lazy"),Y=Symbol.for("spec.suspense"),O=Symbol.for("spec.strict_mode"),K=Symbol.for("spec.profiler");function c(o,e,...t){let s=null,p=null,r={};if(e!=null){e.key!==void 0&&(s=""+e.key),e.ref!==void 0&&(p=e.ref);for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&n!=="key"&&n!=="ref"&&n!=="__proto__"&&n!=="constructor"&&n!=="prototype"&&(r[n]=e[n])}if(t.length===1?r.children=t[0]:t.length>1&&(r.children=t),typeof o=="function"&&o.defaultProps){let n=o.defaultProps;for(let l of Object.keys(n))l!=="__proto__"&&l!=="constructor"&&r[l]===void 0&&(r[l]=n[l])}return{$$typeof:u,type:o,props:r,key:s,ref:p}}var d=m;function x(o,e,t){let s=t!==void 0?t:e.key!==void 0?e.key:null,{key:p,...r}=e,n=s!==null?{...r,key:s}:r;return c(o,n)}
|
|
3
|
-
//# sourceMappingURL=specifyjs-jsx-runtime.cjs.js.map
|
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
/* (c) 2025-2026 Asymmetric Effort, LLC. MIT LICENSE */
|
|
2
2
|
import {
|
|
3
3
|
jsx
|
|
4
|
-
} from "./esm/chunks/chunk-
|
|
4
|
+
} from "./esm/chunks/chunk-AE2JTY3A.js";
|
|
5
5
|
import {
|
|
6
6
|
Fragment
|
|
7
|
-
} from "./esm/chunks/chunk-
|
|
8
|
-
import "./esm/chunks/chunk-
|
|
9
|
-
import "./esm/chunks/chunk-
|
|
7
|
+
} from "./esm/chunks/chunk-NKW7RJR3.js";
|
|
8
|
+
import "./esm/chunks/chunk-UJTLBTMV.js";
|
|
9
|
+
import "./esm/chunks/chunk-FDNBPWUH.js";
|
|
10
10
|
export {
|
|
11
11
|
Fragment,
|
|
12
12
|
jsx,
|
|
13
13
|
jsx as jsxs
|
|
14
14
|
};
|
|
15
|
-
//# sourceMappingURL=jsx-runtime.js.map
|
|
@@ -1,3 +1,2 @@
|
|
|
1
1
|
/* (c) 2025-2026 Asymmetric Effort, LLC. MIT LICENSE */
|
|
2
2
|
"use strict";var d=Object.defineProperty;var v=Object.getOwnPropertyDescriptor;var w=Object.getOwnPropertyNames;var N=Object.prototype.hasOwnProperty;var O=(n,o)=>{for(var s in o)d(n,s,{get:o[s],enumerable:!0})},T=(n,o,s,e)=>{if(o&&typeof o=="object"||typeof o=="function")for(let r of w(o))!N.call(n,r)&&r!==s&&d(n,r,{get:()=>o[r],enumerable:!(e=v(o,r))||e.enumerable});return n};var I=n=>T(d({},"__esModule",{value:!0}),n);var U={};O(U,{renderToPipeableStream:()=>b,renderToReadableStream:()=>g,renderToStaticMarkup:()=>_,renderToString:()=>a});module.exports=I(U);var S=Symbol.for("spec.element"),f=Symbol.for("spec.fragment"),j=Symbol.for("spec.portal"),P=Symbol.for("spec.provider"),q=Symbol.for("spec.consumer"),y=Symbol.for("spec.forward_ref"),E=Symbol.for("spec.memo"),G=Symbol.for("spec.lazy"),F=Symbol.for("spec.suspense"),C=Symbol.for("spec.strict_mode"),h=Symbol.for("spec.profiler");function m(n){return typeof n=="object"&&n!==null&&n.$$typeof===S}var $=new Set(["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"]),L={className:"class",htmlFor:"for",httpEquiv:"http-equiv",acceptCharset:"accept-charset",tabIndex:"tabindex",autoFocus:"autofocus",autoComplete:"autocomplete",autoPlay:"autoplay",crossOrigin:"crossorigin",noValidate:"novalidate",formNoValidate:"formnovalidate",readOnly:"readonly",cellPadding:"cellpadding",cellSpacing:"cellspacing",colSpan:"colspan",rowSpan:"rowspan",frameBorder:"frameborder",marginHeight:"marginheight",marginWidth:"marginwidth"},Y=new Set(["children","key","ref","dangerouslySetInnerHTML"]),M=/^on[A-Z]/;function a(n){return R("renderToString"),l(n,!0)}function _(n){return R("renderToStaticMarkup"),l(n,!1)}function R(n){typeof process<"u"&&typeof process.env<"u"&&process.env.SPECIFYJS_ALLOW_PRERENDER==="true"||typeof process<"u"&&typeof process.env<"u"&&(process.env.SPECIFYJS_ALLOW_PRERENDER||console.warn(`[SpecifyJS] ${n}() is intended for build-time pre-rendering only, not runtime server-side rendering. Set SPECIFYJS_ALLOW_PRERENDER=true if you are using this in a build script. See: https://github.com/asymmetric-effort/specifyjs/blob/main/docs/api/static-prerendering.md`))}function l(n,o){if(n==null||typeof n=="boolean")return"";if(typeof n=="string")return u(n);if(typeof n=="number")return String(n);if(Array.isArray(n)){let e="",r=[];for(let t=n.length-1;t>=0;t--)r.push(n[t]);for(;r.length>0;){let t=r.pop();if(!(t==null||typeof t=="boolean")){if(typeof t=="string"){e+=u(t);continue}if(typeof t=="number"){e+=String(t);continue}if(Array.isArray(t)){for(let i=t.length-1;i>=0;i--)r.push(t[i]);continue}m(t)&&(e+=x(t,o))}}return e}return m(n)?x(n,o):""}function x(n,o){let{type:s,props:e}=n;if(s===f||s===C||s===h)return l(e.children,o);if(typeof s=="object"&&s!==null){let r=s.$$typeof;if(r===P){let t=s._context,i=t._currentValue;t._currentValue=e.value;let p=l(e.children,o);return t._currentValue=i,p}if(r===y){let t=s.render,i=t(e,n.ref);return l(i,o)}if(r===E){let t=s.type;if(typeof t=="function"){let i=t(e);return l(i,o)}}}if(typeof s=="function"){if(s.prototype?.isSpecComponent){let t=s,p=new t(e).render();return l(p,o)}let r=s(e);return l(r,o)}return typeof s=="string"?A(s,e,o):""}function A(n,o,s){let e=`<${n}`;for(let r in o){if(Y.has(r)||M.test(r))continue;let t=o[r];if(t==null||t===!1)continue;let i=L[r]||r.toLowerCase();/^[a-zA-Z_][\w\-:.]*$/.test(i)&&(r==="style"?e+=` style="${V(t)}"`:r==="value"||r==="checked"||r==="selected"?t===!0?e+=` ${i}`:e+=` ${i}="${u(String(t))}"`:t===!0?e+=` ${i}`:e+=` ${i}="${u(String(t))}"`)}if($.has(n))return e+="/>",e;if(e+=">",o.dangerouslySetInnerHTML){let r=o.dangerouslySetInnerHTML.__html;e+=r}else e+=l(o.children,s);return e+=`</${n}>`,e}function V(n){let o=[];for(let s in n){let e=n[s];if(e==null)continue;let r=s.replace(/[A-Z]/g,p=>`-${p.toLowerCase()}`),t=typeof e=="number"&&e!==0&&!D(s)?`${e}px`:String(e),i=t.replace(/\\([0-9a-fA-F]{1,6})\s?/g,(p,c)=>String.fromCodePoint(parseInt(c,16))).replace(/\\/g,"").replace(/\/\*[\s\S]*?\*\//g,"");/expression\s*\(|javascript\s*:|behavior\s*:|moz-binding|-o-link/i.test(i)&&(t=""),o.push(`${r}:${t}`)}return o.join(";")}var z=new Set(["animationIterationCount","aspectRatio","borderImageOutset","borderImageSlice","borderImageWidth","boxFlex","boxFlexGroup","boxOrdinalGroup","columnCount","columns","flex","flexGrow","flexPositive","flexShrink","flexNegative","flexOrder","gridArea","gridRow","gridRowEnd","gridRowSpan","gridRowStart","gridColumn","gridColumnEnd","gridColumnSpan","gridColumnStart","fontWeight","lineClamp","lineHeight","opacity","order","orphans","tabSize","widows","zIndex","zoom","fillOpacity","floodOpacity","stopOpacity","strokeDasharray","strokeDashoffset","strokeMiterlimit","strokeOpacity","strokeWidth"]);function D(n){return z.has(n)}function u(n){let o="",s=0;for(let e=0;e<n.length;e++){let r;switch(n.charCodeAt(e)){case 34:r=""";break;case 38:r="&";break;case 39:r="'";break;case 60:r="<";break;case 62:r=">";break}r!==void 0&&(s!==e&&(o+=n.slice(s,e)),o+=r,s=e+1)}return s===0?n:(s<n.length&&(o+=n.slice(s)),o)}function b(n,o){let s=!1;return{pipe(e){if(s)return e.end(),e;let r;try{r=a(n)}catch(p){return o?.onShellError?.(p),o?.onError?.(p),e.end(),e}o?.onShellReady?.();let t=o?.progressiveChunkSize??8192;if(r.length<=t)e.write(r),e.end(),o?.onAllReady?.();else{let c=function(){if(s||p>=r.length){e.end(),o?.onAllReady?.();return}let k=r.slice(p,p+t);p+=t,e.write(k)?setImmediate(c):e.once("drain",c)};var i=c;let p=0;c()}return e},abort(e){s=!0,o?.onError?.(e)}}}async function g(n,o){let s=new TextEncoder,e=o?.progressiveChunkSize??8192;return new ReadableStream({start(r){if(o?.signal?.aborted){r.close();return}let t;try{t=a(n)}catch(p){o?.onError?.(p),r.error(p);return}let i=0;for(;i<t.length;){let p=t.slice(i,i+e);r.enqueue(s.encode(p)),i+=e}r.close()}})}
|
|
3
|
-
//# sourceMappingURL=specifyjs-server.cjs.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* (c) 2025-2026 Asymmetric Effort, LLC. MIT LICENSE */
|
|
2
2
|
import {
|
|
3
3
|
isValidElement
|
|
4
|
-
} from "./esm/chunks/chunk-
|
|
4
|
+
} from "./esm/chunks/chunk-SRUWIDIG.js";
|
|
5
5
|
import {
|
|
6
6
|
SPEC_FORWARD_REF_TYPE,
|
|
7
7
|
SPEC_FRAGMENT_TYPE,
|
|
@@ -9,8 +9,8 @@ import {
|
|
|
9
9
|
SPEC_PROFILER_TYPE,
|
|
10
10
|
SPEC_PROVIDER_TYPE,
|
|
11
11
|
SPEC_STRICT_MODE_TYPE
|
|
12
|
-
} from "./esm/chunks/chunk-
|
|
13
|
-
import "./esm/chunks/chunk-
|
|
12
|
+
} from "./esm/chunks/chunk-UJTLBTMV.js";
|
|
13
|
+
import "./esm/chunks/chunk-FDNBPWUH.js";
|
|
14
14
|
|
|
15
15
|
// src/server/render-to-string.ts
|
|
16
16
|
var VOID_ELEMENTS = /* @__PURE__ */ new Set([
|
|
@@ -383,4 +383,3 @@ export {
|
|
|
383
383
|
renderToStaticMarkup,
|
|
384
384
|
renderToString
|
|
385
385
|
};
|
|
386
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1,3 +1,2 @@
|
|
|
1
1
|
/* (c) 2025-2026 Asymmetric Effort, LLC. MIT LICENSE */
|
|
2
2
|
"use strict";var v=Object.defineProperty;var j=Object.getOwnPropertyDescriptor;var F=Object.getOwnPropertyNames;var G=Object.prototype.hasOwnProperty;var E=(e,t)=>()=>(e&&(t=e(e=0)),t);var C=(e,t)=>{for(var n in t)v(e,n,{get:t[n],enumerable:!0})},J=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of F(t))!G.call(e,o)&&o!==n&&v(e,o,{get:()=>t[o],enumerable:!(r=j(t,o))||r.enumerable});return e};var K=e=>J(v({},"__esModule",{value:!0}),e);function A(e){if(e.startsWith("//"))throw new Error(`[SpecifyJS] Protocol-relative URL rejected: "${e}". Use an explicit https:// prefix.`);if(e.startsWith("/")||e.startsWith("./")||e.startsWith("../"))return;if(e.startsWith("data:")){if(e.length>1024*1024)throw new Error("[SpecifyJS] secureFetch: data: URI exceeds 1MB limit");return}let t;try{t=new URL(e,typeof window<"u"?window.location.href:void 0)}catch{throw new Error(`[SpecifyJS] secureFetch: unable to validate URL "${e}". Provide a valid absolute HTTPS URL or a relative path.`)}if(t.protocol!=="https:"&&!(t.hostname==="localhost"||t.hostname==="127.0.0.1"||t.hostname==="[::1]"||t.hostname==="0.0.0.0"||t.hostname.startsWith("127.")))throw new Error(`[SpecifyJS] Insecure URL rejected: "${e}". SpecifyJS enforces HTTPS-only for all network requests. Use https:// or a relative URL. Localhost URLs are allowed for development.`)}var D=E(()=>{"use strict"});var U={};C(U,{createMeterProvider:()=>I,exportToEndpoint:()=>S,formatOtlpMetrics:()=>y,formatOtlpTraces:()=>x});function b(e,t,n){e.length>=H&&e.splice(0,Math.floor(H/2)),e.push({value:t,attributes:n?{...n}:{},timestamp:performance.now()})}function W(e,t){let n=[];return{name:e,description:t?.description??"",add(r,o){r<0||b(n,r,o)},get dataPoints(){return n}}}function X(e,t){let n=[];return{name:e,description:t?.description??"",record(r,o){b(n,r,o)},get dataPoints(){return n}}}function B(e,t){let n=[];return{name:e,description:t?.description??"",set(r,o){b(n,r,o)},get dataPoints(){return n}}}function I(e){let t=[],n;e.exportInterval&&e.exportInterval>0&&(n=setInterval(()=>{r.flush()},e.exportInterval),typeof n=="object"&&"unref"in n&&n.unref());let r={config:e,get instruments(){return t},counter(o,s){let i=W(o,s);return t.push(i),i},histogram(o,s){let i=X(o,s);return t.push(i),i},gauge(o,s){let i=B(o,s);return t.push(i),i},async flush(){if(!e.endpoint)return;let o=y(t,e.serviceName);await S(e.endpoint,e.headers??{},o)}};return r}function l(e){return Object.entries(e).map(([t,n])=>typeof n=="string"?{key:t,value:{stringValue:n}}:typeof n=="boolean"?{key:t,value:{boolValue:n}}:{key:t,value:{intValue:n}})}function g(e){return String(Math.round(e*1e6))}function y(e,t){let n=e.map(r=>{let o=r.dataPoints.map(i=>({attributes:l(i.attributes),timeUnixNano:g(i.timestamp),asDouble:i.value})),s;return"add"in r?s={sum:{dataPoints:o,isMonotonic:!0,aggregationTemporality:2}}:"record"in r?s={histogram:{dataPoints:o,aggregationTemporality:2}}:s={gauge:{dataPoints:o}},{name:r.name,description:r.description,...s}});return{resourceMetrics:[{resource:{attributes:l({"service.name":t??"unknown"})},scopeMetrics:[{scope:{name:"specifyjs-telemetry",version:"1.0.0"},metrics:n}]}]}}function x(e,t,n){let r={"service.name":t??"unknown"};n&&(r["service.version"]=n);let o={internal:1,server:2,client:3,producer:4,consumer:5},s={unset:0,ok:1,error:2},i=e.map(a=>({traceId:a.traceId,spanId:a.spanId,parentSpanId:a.parentSpanId??"",name:a.name,kind:o[a.kind]??1,startTimeUnixNano:g(a.startTime),endTimeUnixNano:a.endTime!==void 0?g(a.endTime):"0",attributes:l(a.attributes),status:{code:s[a.status.code]??0,message:a.status.message??""},events:a.events.map(u=>({name:u.name,timeUnixNano:g(u.timestamp),attributes:u.attributes?l(u.attributes):[]}))}));return{resourceSpans:[{resource:{attributes:l(r)},scopeSpans:[{scope:{name:"specifyjs-telemetry",version:"1.0.0"},spans:i}]}]}}async function S(e,t,n){try{A(e),await fetch(e,{method:"POST",headers:{"Content-Type":"application/json",...t},body:JSON.stringify(n)})}catch{}}var H,R=E(()=>{"use strict";D();H=1e4});var Z={};C(Z,{createMeterProvider:()=>I,createTracer:()=>_,endSpan:()=>d,exportToEndpoint:()=>S,formatOtlpMetrics:()=>y,formatOtlpTraces:()=>x,formatTraceparent:()=>N,generateSpanId:()=>P,generateTraceId:()=>w,parseTraceparent:()=>q,startSpan:()=>k,useTracing:()=>$});module.exports=K(Z);var M=null;function O(){if(M===null)throw new Error("Invalid hook call. Hooks can only be called inside the body of a function component.");return M}function h(e,t){return O().useEffect(e,t)}function T(e){return O().useRef(e)}function V(e){let t=new Uint8Array(e);try{crypto.getRandomValues(t)}catch{for(let n=0;n<e;n++)t[n]=Math.floor(Math.random()*256)}return t}function L(e){let t="";for(let n=0;n<e.length;n++)t+=(e[n]??0).toString(16).padStart(2,"0");return t}function w(){return L(V(16))}function P(){return L(V(8))}var z=/^([0-9a-f]{2})-([0-9a-f]{32})-([0-9a-f]{16})-([0-9a-f]{2})$/;function q(e){let t=z.exec(e.trim());if(!t)return null;let n=t[2],r=t[3],o=t[4];return/^0+$/.test(n)||/^0+$/.test(r)?null:{traceId:n,spanId:r,traceFlags:o}}function N(e){return`00-${e.traceId}-${e.spanId}-${e.traceFlags}`}function k(e,t){return{traceId:t?.traceId??w(),spanId:P(),parentSpanId:t?.parentSpanId,name:e,kind:t?.kind??"internal",startTime:performance.now(),status:{code:"unset"},attributes:t?.attributes?{...t.attributes}:{},events:[]}}function d(e){e.endTime=performance.now()}function _(e){let t=e.batchSize??1e3,n=[],r=[];function o(a){r.length>=t&&r.splice(0,Math.floor(t/2)),r.push(a)}let s;e.flushInterval&&e.flushInterval>0&&(s=setInterval(()=>{i.flush()},e.flushInterval),typeof s=="object"&&"unref"in s&&s.unref());let i={config:e,get pendingSpans(){return r},activeSpan(){return n.length>0?n[n.length-1]:void 0},startSpan(a,u){let f=i.activeSpan(),p=k(a,{kind:u?.kind,attributes:u?.attributes,traceId:u?.traceId??f?.traceId,parentSpanId:u?.parentSpanId??f?.spanId});return n.push(p),p},withSpan(a,u){n.includes(a)||n.push(a);let p=()=>{for(let c=n.length-1;c>=0;c--)n[c]===a&&n.splice(c,1)};try{let c=u();return c&&typeof c.then=="function"?c.then(m=>(d(a),o(a),p(),m),m=>{throw a.status={code:"error",message:String(m)},d(a),o(a),p(),m}):(d(a),o(a),p(),c)}catch(c){throw a.status={code:"error",message:String(c)},d(a),o(a),p(),c}},async flush(){if(r.length===0)return;let a=r.splice(0,r.length);if(e.endpoint){let{formatOtlpTraces:u,exportToEndpoint:f}=await Promise.resolve().then(()=>(R(),U)),p=u(a,e.serviceName,e.serviceVersion);await f(e.endpoint,e.headers??{},p)}}};return i}function $(e,t){let n=T(null);h(()=>{let r=e.startSpan(t,{kind:"internal"});return r.events.push({name:"mount",timestamp:performance.now()}),n.current=r,()=>{n.current&&(n.current.events.push({name:"unmount",timestamp:performance.now()}),d(n.current))}},[])}R();
|
|
3
|
-
//# sourceMappingURL=specifyjs-telemetry.cjs.js.map
|
|
@@ -4,13 +4,13 @@ import {
|
|
|
4
4
|
exportToEndpoint,
|
|
5
5
|
formatOtlpMetrics,
|
|
6
6
|
formatOtlpTraces
|
|
7
|
-
} from "./esm/chunks/chunk-
|
|
8
|
-
import "./esm/chunks/chunk-
|
|
7
|
+
} from "./esm/chunks/chunk-H7ZJ2I3D.js";
|
|
8
|
+
import "./esm/chunks/chunk-4TF5WXQG.js";
|
|
9
9
|
import {
|
|
10
10
|
useEffect,
|
|
11
11
|
useRef
|
|
12
|
-
} from "./esm/chunks/chunk-
|
|
13
|
-
import "./esm/chunks/chunk-
|
|
12
|
+
} from "./esm/chunks/chunk-4V37N6QN.js";
|
|
13
|
+
import "./esm/chunks/chunk-FDNBPWUH.js";
|
|
14
14
|
|
|
15
15
|
// src/telemetry/tracing.ts
|
|
16
16
|
function randomBytes(length) {
|
|
@@ -151,7 +151,7 @@ function createTracer(config) {
|
|
|
151
151
|
if (buffer.length === 0) return;
|
|
152
152
|
const toExport = buffer.splice(0, buffer.length);
|
|
153
153
|
if (config.endpoint) {
|
|
154
|
-
const { formatOtlpTraces: formatOtlpTraces2, exportToEndpoint: exportToEndpoint2 } = await import("../chunks/metrics-
|
|
154
|
+
const { formatOtlpTraces: formatOtlpTraces2, exportToEndpoint: exportToEndpoint2 } = await import("../chunks/metrics-ELQJ4BZ7.js");
|
|
155
155
|
const body = formatOtlpTraces2(toExport, config.serviceName, config.serviceVersion);
|
|
156
156
|
await exportToEndpoint2(config.endpoint, config.headers ?? {}, body);
|
|
157
157
|
}
|
|
@@ -187,4 +187,3 @@ export {
|
|
|
187
187
|
startSpan,
|
|
188
188
|
useTracing
|
|
189
189
|
};
|
|
190
|
-
//# sourceMappingURL=index.js.map
|
package/dist/specifyjs.cjs.js
CHANGED
|
@@ -1,3 +1,2 @@
|
|
|
1
1
|
/* (c) 2025-2026 Asymmetric Effort, LLC. MIT LICENSE */
|
|
2
2
|
"use strict";var U=Object.defineProperty;var We=Object.getOwnPropertyDescriptor;var Ge=Object.getOwnPropertyNames;var Je=Object.prototype.hasOwnProperty;var Xe=(e,t)=>{for(var o in t)U(e,o,{get:t[o],enumerable:!0})},Ze=(e,t,o,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of Ge(t))!Je.call(e,r)&&r!==o&&U(e,r,{get:()=>t[r],enumerable:!(n=We(t,r))||n.enumerable});return e};var Qe=e=>Ze(U({},"__esModule",{value:!0}),e);var ut={};Xe(ut,{Children:()=>he,Component:()=>P,ErrorBoundary:()=>L,FeatureFlagProvider:()=>X,FeatureGate:()=>Z,Fragment:()=>ce,Link:()=>j,Profiler:()=>Le,PureComponent:()=>b,Route:()=>A,Router:()=>Y,StrictMode:()=>Ne,Suspense:()=>_e,act:()=>He,assertSecureUrl:()=>G,cloneElement:()=>ye,createContext:()=>R,createElement:()=>d,createFactory:()=>ue,createRef:()=>le,forwardRef:()=>fe,getComponentTypeTable:()=>ze,h:()=>d,isValidElement:()=>w,lazy:()=>me,matchPath:()=>E,memo:()=>de,resolveComponentId:()=>Ke,secureFetch:()=>M,setComponentIdsEnabled:()=>Be,startTransition:()=>Ae,useCallback:()=>x,useContext:()=>l,useDebugValue:()=>ve,useDeferredValue:()=>we,useEffect:()=>S,useFeatureFlags:()=>Q,useHead:()=>$,useId:()=>Re,useImperativeHandle:()=>ge,useInsertionEffect:()=>Te,useLayoutEffect:()=>Ee,useMemo:()=>k,useNavigate:()=>B,useParams:()=>q,useReducer:()=>Ce,useRef:()=>F,useRouter:()=>H,useState:()=>g,useSyncExternalStore:()=>be,useTransition:()=>ke});module.exports=Qe(ut);var v=Symbol.for("spec.element"),ee=Symbol.for("spec.fragment"),lt=Symbol.for("spec.portal"),te=Symbol.for("spec.provider"),ne=Symbol.for("spec.consumer"),oe=Symbol.for("spec.forward_ref"),re=Symbol.for("spec.memo"),se=Symbol.for("spec.lazy"),ae=Symbol.for("spec.suspense"),ie=Symbol.for("spec.strict_mode"),pe=Symbol.for("spec.profiler");function d(e,t,...o){let n=null,r=null,a={};if(t!=null){t.key!==void 0&&(n=""+t.key),t.ref!==void 0&&(r=t.ref);for(let s in t)Object.prototype.hasOwnProperty.call(t,s)&&s!=="key"&&s!=="ref"&&s!=="__proto__"&&s!=="constructor"&&s!=="prototype"&&(a[s]=t[s])}if(o.length===1?a.children=o[0]:o.length>1&&(a.children=o),typeof e=="function"&&e.defaultProps){let s=e.defaultProps;for(let i of Object.keys(s))i!=="__proto__"&&i!=="constructor"&&a[i]===void 0&&(a[i]=s[i])}return{$$typeof:v,type:e,props:a,key:n,ref:r}}function ue(e){return(t,...o)=>d(e,t??null,...o)}var ce=ee;function R(e){let t={$$typeof:Symbol.for("spec.context"),Provider:null,Consumer:null,_currentValue:e,_defaultValue:e},o={$$typeof:te,_context:t},n={$$typeof:ne,_context:t};return t.Provider=o,t.Consumer=n,t}function le(){return{current:null}}function fe(e){return{$$typeof:oe,render:e,displayName:e.displayName||e.name||"ForwardRef"}}function de(e,t){return{$$typeof:re,type:e,compare:t||null,displayName:e.displayName||e.name||"Memo"}}function me(e){let t={_status:"pending",_result:void 0};return{$$typeof:se,_payload:t,_init:()=>{if(t._status==="resolved")return t._result;if(t._status==="rejected")throw t._result;let n=e();throw t._status="pending",n.then(r=>{t._status="resolved",t._result=r.default},r=>{t._status="rejected",t._result=r}),n},displayName:"Lazy"}}function w(e){return typeof e=="object"&&e!==null&&e.$$typeof===v}function ye(e,t,...o){if(!w(e))throw new Error("cloneElement: argument must be a valid SpecifyJS element");let n=e.key,r=e.ref,a={...e.props};if(t!=null){t.key!==void 0&&(n=""+t.key),t.ref!==void 0&&(r=t.ref);for(let s in t)Object.prototype.hasOwnProperty.call(t,s)&&s!=="key"&&s!=="ref"&&s!=="__proto__"&&s!=="constructor"&&s!=="prototype"&&(a[s]=t[s])}return o.length===1?a.children=o[0]:o.length>1&&(a.children=o),{$$typeof:v,type:e.type,props:a,key:n,ref:r}}function N(e){let t=[],o=[e];for(;o.length>0;){let n=o.pop();if(Array.isArray(n))for(let r=n.length-1;r>=0;r--)o.push(n[r]);else t.push(n)}return t}function et(e,t){let o=N(e),n=[];for(let r=0;r<o.length;r++){let a=o[r];a==null||typeof a=="boolean"||n.push(t(a,r))}return n}function tt(e,t){let o=N(e),n=0;for(let r of o)r==null||typeof r=="boolean"||t(r,n++)}function nt(e){let t=N(e),o=0;for(let n of t)n!=null&&typeof n!="boolean"&&o++;return o}function ot(e){if(!w(e))throw new Error("Children.only: expected a single SpecifyJS element child");return e}function rt(e){return N(e).filter(o=>o!=null&&typeof o!="boolean")}var he={map:et,forEach:tt,count:nt,only:ot,toArray:rt};var P=class{constructor(t){this._fiber=null;this._pendingState=[];this._forceUpdate=!1;this.props=t,this.state={},this.context=void 0}setState(t,o){this._pendingState.push(t),this._enqueueUpdate(o)}forceUpdate(t){this._forceUpdate=!0,this._enqueueUpdate(t)}render(){return null}_enqueueUpdate(t){}};P.prototype.isSpecComponent=!0;var b=class extends P{shouldComponentUpdate(t,o){return!xe(this.props,t)||!xe(this.state,o)}};b.prototype.isPureSpecComponent=!0;function xe(e,t){if(Object.is(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;let o=Object.keys(e),n=Object.keys(t);if(o.length!==n.length)return!1;let r=e,a=t;for(let s of o)if(!Object.prototype.hasOwnProperty.call(a,s)||!Object.is(r[s],a[s]))return!1;return!0}var L=class extends P{static getDerivedStateFromError(t){return{hasError:!0,error:t}}constructor(t){super(t),this.state={hasError:!1,error:null}}componentDidCatch(t,o){this.props.onError?.(t,o)}render(){return this.state.hasError?this.props.fallback??null:this.props.children??null}};function $(e){let t=F(e);t.current=e;let o=JSON.stringify([e.title,e.description,e.keywords,e.author,e.canonical,e.og,e.twitter,e.httpEquiv,e.meta]);S(()=>{let n=t.current,r=[],a=document.title;if(n.title&&(document.title=n.title,r.push(()=>{document.title=a})),n.description&&r.push(C("name","description",n.description)),n.keywords&&r.push(C("name","keywords",n.keywords)),n.author&&r.push(C("name","author",n.author)),n.canonical){let s=document.createElement("link");s.rel="canonical",s.href=n.canonical,document.head.appendChild(s),r.push(()=>s.remove())}if(n.og)for(let[s,i]of Object.entries(n.og))r.push(C("property",`og:${s}`,i));if(n.twitter)for(let[s,i]of Object.entries(n.twitter))r.push(C("name",`twitter:${s}`,i));if(n.httpEquiv){let s={csp:"Content-Security-Policy",referrer:"Referrer-Policy",contentType:"X-Content-Type-Options",frameOptions:"X-Frame-Options",cacheControl:"Cache-Control"};for(let[i,u]of Object.entries(n.httpEquiv)){if(u===void 0)continue;let p=s[i]??i;r.push(st(p,u))}}if(n.meta)for(let s of n.meta)s.name?r.push(C("name",s.name,s.content)):s.property&&r.push(C("property",s.property,s.content));return()=>{for(let s of r)s()}},[o])}function Pe(e){return e.replace(/["\\]/g,"\\$&")}function C(e,t,o){let n=`meta[${e}="${Pe(t)}"]`,r=document.querySelector(n),a=r!==null,s=r?.content;return r||(r=document.createElement("meta"),r.setAttribute(e,t),document.head.appendChild(r)),r.content=o,()=>{a&&s!==void 0?r.content=s:a||r.remove()}}function st(e,t){let o=`meta[http-equiv="${Pe(e)}"]`,n=document.querySelector(o),r=n!==null,a=n?.content;return n||(n=document.createElement("meta"),n.setAttribute("http-equiv",e),document.head.appendChild(n)),n.content=t,()=>{r&&a!==void 0?n.content=a:r||n.remove()}}var Se=null;function c(){if(Se===null)throw new Error("Invalid hook call. Hooks can only be called inside the body of a function component.");return Se}function g(e){return c().useState(e)}function S(e,t){return c().useEffect(e,t)}function l(e){return c().useContext(e)}function Ce(e,t,o){return c().useReducer(e,t,o)}function x(e,t){return c().useCallback(e,t)}function k(e,t){return c().useMemo(e,t)}function F(e){return c().useRef(e)}function ge(e,t,o){return c().useImperativeHandle(e,t,o)}function Ee(e,t){return c().useLayoutEffect(e,t)}function ve(e,t){return c().useDebugValue(e,t)}function Re(){return c().useId()}function we(e){return c().useDeferredValue(e)}function ke(){return c().useTransition()}function be(e,t,o){return c().useSyncExternalStore(e,t,o)}function Te(e,t){return c().useInsertionEffect(e,t)}var _e=ae;var Ne=ie;var Le=pe;var m=R({pathname:"/",params:{},navigate:()=>{throw new Error("useNavigate must be used inside a <Router> component.")},basePath:""});function Fe(){let t=(typeof window<"u"?window.location.hash:"").replace(/^#\/?/,"/");return t===""?"/":t}var Ie={pathname:Fe(),hash:typeof window<"u"?window.location.hash:""},V=new Set;function Me(){Ie={pathname:Fe(),hash:typeof window<"u"?window.location.hash:""};for(let e of V)e()}typeof window<"u"&&window.addEventListener("hashchange",Me);function Oe(e){return V.add(e),()=>{V.delete(e)}}function I(){return Ie}function De(e,t){let o=e.startsWith("#")?e:"#"+e;if(t?.replace){let n=window.location.pathname+window.location.search+o;window.history.replaceState(null,"",n)}else window.location.hash=o;Me()}function Y(e){let[t,o]=g(()=>I().pathname);S(()=>(o(I().pathname),Oe(()=>{o(I().pathname)})),[]);let n=x((...a)=>{De(a[0],a[1])},[]),r=k(()=>({pathname:t,params:{},navigate:n,basePath:""}),[t,n]);return d(m.Provider,{value:r},e.children)}function Ue(e){let t=e.length;for(;t>1&&e.charCodeAt(t-1)===47;)t--;return t===e.length?e:e.slice(0,t)}function E(e,t,o){let n=o?.exact??!1,r=e==="/"?"/":Ue(e),a=t==="/"?"/":Ue(t);if(r==="/"){let h=a==="/";return n&&!h?null:{params:{},isExact:h,path:e,url:"/"}}let s=r.split("/").filter(Boolean),i=a.split("/").filter(Boolean),u=s[s.length-1]==="*";if(!u&&n&&i.length!==s.length||!u&&i.length<s.length)return null;let p={},y=[];for(let h=0;h<s.length;h++){let T=s[h];if(T==="*"){let D=i.slice(h).join("/");return p["*"]=D,{params:p,isExact:!0,path:e,url:"/"+i.join("/")}}if(h>=i.length)return null;let _=i[h];if(T.startsWith(":")){let D=T.slice(1);p[D]=decodeURIComponent(_),y.push(_);continue}if(T.toLowerCase()!==_.toLowerCase())return null;y.push(_)}let f="/"+y.join("/"),O=i.length===s.length;return n&&!O?null:{params:p,isExact:O,path:e,url:f}}function A(e){let t=l(m),o=t.basePath+e.path,n=E(o,t.pathname,{exact:e.exact??!1}),r=k(()=>({pathname:t.pathname,params:{...t.params,...n?n.params:{}},navigate:t.navigate,basePath:n?n.url:t.basePath}),[t.pathname,t.navigate,t.params,t.basePath,n]);if(!n)return null;for(let s of Object.keys(t.params))s in r.params||(r.params[s]=t.params[s]);let a=e.component?d(e.component,{...r.params}):e.children;return d(m.Provider,{value:r},a)}function j(e){let{to:t,className:o,activeClassName:n,exact:r,children:a,...s}=e,i=l(m),u=E(t,i.pathname,{exact:r??!1})!==null,p=x(((...f)=>{f[0].preventDefault(),i.navigate(t)}),[t,i.navigate]),y=[o,u?n:null].filter(Boolean).join(" ")||void 0;return d("a",{...s,href:"#"+t,onClick:p,className:y},a)}function H(){return l(m)}function q(){return l(m).params}function B(){return l(m).navigate}var $e=8;function Ve(){let e=$e;return $e=e===8?16:8,e}var K=4,z=!1;var Ye=[];function Ae(e){let t=K,o=z;K=Ve(),z=!0;try{e()}finally{K=t,z=o,it()}}function it(){let e=Ye;Ye=[];for(let t of e)t()}var je=[];function W(){let e=je;je=[];for(let t of e)t()}function He(e){let t=e();W(),t&&typeof t.then=="function"&&t.then(()=>{W()})}function G(e){if(e.startsWith("//"))throw new Error(`[SpecifyJS] Protocol-relative URL rejected: "${e}". Use an explicit https:// prefix.`);if(e.startsWith("/")||e.startsWith("./")||e.startsWith("../"))return;if(e.startsWith("data:")){if(e.length>1024*1024)throw new Error("[SpecifyJS] secureFetch: data: URI exceeds 1MB limit");return}let t;try{t=new URL(e,typeof window<"u"?window.location.href:void 0)}catch{throw new Error(`[SpecifyJS] secureFetch: unable to validate URL "${e}". Provide a valid absolute HTTPS URL or a relative path.`)}if(t.protocol!=="https:"&&!(t.hostname==="localhost"||t.hostname==="127.0.0.1"||t.hostname==="[::1]"||t.hostname==="0.0.0.0"||t.hostname.startsWith("127.")))throw new Error(`[SpecifyJS] Insecure URL rejected: "${e}". SpecifyJS enforces HTTPS-only for all network requests. Use https:// or a relative URL. Localhost URLs are allowed for development.`)}function M(e,t){let o=typeof e=="string"?e:e instanceof URL?e.href:e.url;return G(o),fetch(e,{redirect:"error",...t})}var qe=new Map;var pt=!0;function Be(e){pt=e}function Ke(e){let t=e.match(/^s-(\d+)-(\d+)$/);if(!t||!t[1]||!t[2])return null;let o=parseInt(t[1],10),n=parseInt(t[2],10);for(let r of qe.values())if(r.index===o)return{typeName:r.name,typeIndex:o,instanceId:n};return null}function ze(){return qe}var J=R({flags:{},isEnabled:()=>!1,setFlag:()=>{},loading:!1});function X(e){let[t,o]=g(()=>({...e.defaults})),[n,r]=g(!!e.url);S(()=>{if(!e.url)return;let u=!1;return r(!0),M(e.url).then(p=>{if(!p.ok)throw new Error(`HTTP ${p.status}`);return p.json()}).then(p=>{if(!u&&typeof p=="object"&&p!==null){let y={};for(let f of Object.keys(p))f!=="__proto__"&&f!=="constructor"&&f!=="prototype"&&(y[f]=p[f]===!0);o(f=>({...f,...y}))}u||r(!1)}).catch(()=>{u||r(!1)}),()=>{u=!0}},[e.url]);let a=x(((...u)=>{let p=u[0];return t[p]===!0}),[t]),s=x(((...u)=>{let p=u[0],y=u[1];o(f=>({...f,[p]:y}))}),[]),i={flags:t,isEnabled:a,setFlag:s,loading:n};return d(J.Provider,{value:i},e.children)}function Z(e){let{isEnabled:t}=l(J);return t(e.flag)?e.children:e.fallback??null}function Q(){return l(J)}
|
|
3
|
-
//# sourceMappingURL=specifyjs.cjs.js.map
|
package/dist/specifyjs.esm.js
CHANGED
|
@@ -24,26 +24,26 @@ import {
|
|
|
24
24
|
useNavigate,
|
|
25
25
|
useParams,
|
|
26
26
|
useRouter
|
|
27
|
-
} from "./esm/chunks/chunk-
|
|
27
|
+
} from "./esm/chunks/chunk-45EBJMQH.js";
|
|
28
28
|
import {
|
|
29
29
|
getComponentTypeTable,
|
|
30
30
|
resolveComponentId,
|
|
31
31
|
setComponentIdsEnabled,
|
|
32
32
|
startTransition
|
|
33
|
-
} from "./esm/chunks/chunk-
|
|
33
|
+
} from "./esm/chunks/chunk-7OC7LXZ7.js";
|
|
34
34
|
import {
|
|
35
35
|
isValidElement
|
|
36
|
-
} from "./esm/chunks/chunk-
|
|
36
|
+
} from "./esm/chunks/chunk-SRUWIDIG.js";
|
|
37
37
|
import {
|
|
38
38
|
Fragment,
|
|
39
39
|
createElement,
|
|
40
40
|
createFactory
|
|
41
|
-
} from "./esm/chunks/chunk-
|
|
42
|
-
import "./esm/chunks/chunk-
|
|
41
|
+
} from "./esm/chunks/chunk-NKW7RJR3.js";
|
|
42
|
+
import "./esm/chunks/chunk-UJTLBTMV.js";
|
|
43
43
|
import {
|
|
44
44
|
assertSecureUrl,
|
|
45
45
|
secureFetch
|
|
46
|
-
} from "./esm/chunks/chunk-
|
|
46
|
+
} from "./esm/chunks/chunk-4TF5WXQG.js";
|
|
47
47
|
import {
|
|
48
48
|
useCallback,
|
|
49
49
|
useContext,
|
|
@@ -61,8 +61,8 @@ import {
|
|
|
61
61
|
useState,
|
|
62
62
|
useSyncExternalStore,
|
|
63
63
|
useTransition
|
|
64
|
-
} from "./esm/chunks/chunk-
|
|
65
|
-
import "./esm/chunks/chunk-
|
|
64
|
+
} from "./esm/chunks/chunk-4V37N6QN.js";
|
|
65
|
+
import "./esm/chunks/chunk-FDNBPWUH.js";
|
|
66
66
|
export {
|
|
67
67
|
Children,
|
|
68
68
|
Component,
|
|
@@ -116,4 +116,3 @@ export {
|
|
|
116
116
|
useSyncExternalStore,
|
|
117
117
|
useTransition
|
|
118
118
|
};
|
|
119
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -2,4 +2,3 @@ export { specifyJsSeoPlugin } from './seo-plugin';
|
|
|
2
2
|
export type { SeoPluginConfig } from './seo-plugin';
|
|
3
3
|
export { specifyJsNoscriptPlugin, generateNoscriptHtml, stripInteractiveElements, } from './noscript-plugin';
|
|
4
4
|
export type { NoscriptPluginConfig, NoscriptSection } from './noscript-plugin';
|
|
5
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -60,4 +60,3 @@ export interface NoscriptPluginConfig {
|
|
|
60
60
|
export declare function stripInteractiveElements(html: string): string;
|
|
61
61
|
export declare function generateNoscriptHtml(config: NoscriptPluginConfig): string;
|
|
62
62
|
export declare function specifyJsNoscriptPlugin(config: NoscriptPluginConfig): Plugin;
|
|
63
|
-
//# sourceMappingURL=noscript-plugin.d.ts.map
|
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
export { createRestClient, useRest, RestError, type RestClientConfig, type RestClient, type RestResponse, type RequestConfig, type RequestInterceptor, type ResponseInterceptor, } from './rest';
|
|
2
2
|
export { defineMessage, createGrpcWebClient, useProto, type MessageType, type GrpcWebClient, } from './protobuf';
|
|
3
3
|
export { createGraphQLClient, gql, useQuery, useMutation, type GraphQLClient, type GraphQLClientConfig, type GraphQLResponse, type GraphQLError, } from './graphql';
|
|
4
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -37,4 +37,3 @@ export declare function createGrpcWebClient(config: GrpcWebClientConfig): GrpcWe
|
|
|
37
37
|
export declare function useProto<Req, Res>(client: GrpcWebClient, service: string, method: string, reqType: MessageType<Req>, resType: MessageType<Res>, request: Req, opts?: {
|
|
38
38
|
enabled?: boolean;
|
|
39
39
|
}): UseProtoResult<Res>;
|
|
40
|
-
//# sourceMappingURL=protobuf.d.ts.map
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export type BannerSeverity = 'info' | 'warning' | 'alert';
|
|
2
|
+
export interface BannerProps {
|
|
3
|
+
/** The severity determines the icon and color scheme */
|
|
4
|
+
severity: BannerSeverity;
|
|
5
|
+
/** Plain text message to display */
|
|
6
|
+
message: string;
|
|
7
|
+
/** Called when the dismiss button is clicked. If not provided, dismiss button is hidden. */
|
|
8
|
+
onDismiss?: () => void;
|
|
9
|
+
/** Custom icon element to override the default severity icon */
|
|
10
|
+
icon?: unknown;
|
|
11
|
+
/** Whether the banner is visible. Default: true */
|
|
12
|
+
visible?: boolean;
|
|
13
|
+
}
|
|
14
|
+
export declare function Banner(props: BannerProps): import("specifyjs").SpecElement<import("specifyjs").Props> | null;
|