@3dverse/ui-lib 0.1.6 → 0.1.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +3 -3
- package/dist/index.cjs.map +4 -4
- package/dist/index.mjs +3 -3
- package/dist/index.mjs.map +4 -4
- package/dist/sources/components/index.d.ts +20 -19
- package/dist/sources/components/index.d.ts.map +1 -1
- package/dist/sources/components/ui/accordion.d.ts +6 -1
- package/dist/sources/components/ui/accordion.d.ts.map +1 -1
- package/dist/sources/components/ui/badge.d.ts +17 -0
- package/dist/sources/components/ui/badge.d.ts.map +1 -0
- package/dist/sources/components/ui/bottom-sheet.d.ts +9 -1
- package/dist/sources/components/ui/bottom-sheet.d.ts.map +1 -1
- package/dist/sources/components/ui/button-tile.d.ts +9 -5
- package/dist/sources/components/ui/button-tile.d.ts.map +1 -1
- package/dist/sources/components/ui/button.d.ts +1 -1
- package/dist/sources/components/ui/button.d.ts.map +1 -1
- package/dist/sources/components/ui/data-item.d.ts +6 -0
- package/dist/sources/components/ui/data-item.d.ts.map +1 -1
- package/dist/sources/components/ui/dialog.d.ts +8 -1
- package/dist/sources/components/ui/dialog.d.ts.map +1 -1
- package/dist/sources/components/ui/dot-ping.d.ts +2 -0
- package/dist/sources/components/ui/dot-ping.d.ts.map +1 -1
- package/dist/sources/components/ui/empty-state.d.ts +2 -0
- package/dist/sources/components/ui/empty-state.d.ts.map +1 -1
- package/dist/sources/components/ui/icon.d.ts +2 -1
- package/dist/sources/components/ui/icon.d.ts.map +1 -1
- package/dist/sources/components/ui/loader.d.ts +2 -1
- package/dist/sources/components/ui/loader.d.ts.map +1 -1
- package/dist/sources/components/ui/menu.d.ts +16 -2
- package/dist/sources/components/ui/menu.d.ts.map +1 -1
- package/dist/sources/components/ui/overlay-container.d.ts +1 -2
- package/dist/sources/components/ui/overlay-container.d.ts.map +1 -1
- package/dist/sources/components/ui/popover.d.ts +7 -1
- package/dist/sources/components/ui/popover.d.ts.map +1 -1
- package/dist/sources/components/ui/scrollable-area.d.ts +2 -0
- package/dist/sources/components/ui/scrollable-area.d.ts.map +1 -1
- package/dist/sources/components/ui/slider.d.ts +2 -2
- package/dist/sources/components/ui/slider.d.ts.map +1 -1
- package/dist/sources/components/ui/switch.d.ts +3 -1
- package/dist/sources/components/ui/switch.d.ts.map +1 -1
- package/dist/sources/components/ui/tabs.d.ts +6 -1
- package/dist/sources/components/ui/tabs.d.ts.map +1 -1
- package/dist/sources/components/ui/tooltip.d.ts +6 -1
- package/dist/sources/components/ui/tooltip.d.ts.map +1 -1
- package/dist/styles/index.css +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
var Y={container:"t",inner:"o",innerShape:"i",shape:"a",shapeAlt:"n"};import{jsx as Ce,jsxs as Tt}from"react/jsx-runtime";var Re=["#EDB5FB","#FBB5B5","#F4D35B","#B5FBF7","#B5DDFB","#B5C2FB","#CBB5FB","#189AB4","#75E6DA","#D4F1F4","#EF7C8E","#FAE8E0","#B6E2D3","#D8A7B1","#F6EEE0","#E4B7A0","#C38370","#94DFE6","#EBDCC7","#B5EECB","#DCC5C3","#D6E1EB","#ADC4D7","#FACB80","#FBD8B0","#feb191","#a2f9c6"],se=[{},{borderWidth:"2px",borderStyle:"solid",borderColor:"currentColor",backgroundColor:"transparent"},{scale:"0.75"},{scale:"0.5"},{borderRadius:"9999px"},{borderRadius:"9999px",borderWidth:"2px",borderStyle:"solid",borderColor:"currentColor",backgroundColor:"transparent"},{borderRadius:"9999px",height:"50%",translate:"0 50%"},{borderRadius:"9999px",scale:"0.5"},{borderTopLeftRadius:"9999px",borderTopRightRadius:"9999px"},{borderTopRightRadius:"9999px",borderBottomRightRadius:"9999px"},{borderBottomRightRadius:"9999px",borderBottomLeftRadius:"9999px"},{borderTopLeftRadius:"9999px",borderBottomLeftRadius:"9999px"},{borderTopLeftRadius:"9999px",borderTopRightRadius:"9999px",height:"50%"},{borderTopRightRadius:"9999px",borderBottomRightRadius:"9999px",width:"50%"},{borderBottomRightRadius:"9999px",borderBottomLeftRadius:"9999px",height:"50%"},{borderTopLeftRadius:"9999px",borderBottomLeftRadius:"9999px",width:"50%"},{borderBottomRightRadius:"9999px",borderTopLeftRadius:"9999px"},{borderBottomLeftRadius:"9999px",borderTopRightRadius:"9999px"},{},{},{borderRadius:"100% 0% 100% 0% / 100% 100% 0% 0%"},{borderRadius:"100% 0% 100% 0% / 100% 100% 0% 0%",transform:"rotate(180deg)"},{borderRadius:"100% 0% 100% 0% / 100% 100% 0% 0%",transform:"rotate(180deg) scaleY(-1)"},{borderRadius:"100% 0% 100% 0% / 100% 100% 0% 0%",transform:"scaleY(-1)"},{clipPath:"polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%)"},{clipPath:"polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%)"},{clipPath:'path("M12 4.248c-3.148-5.402-12-3.825-12 2.944 0 4.661 5.571 9.427 12 15.808 6.43-6.381 12-11.147 12-15.808 0-6.792-8.875-8.306-12-2.944z")'},{clipPath:"polygon(0 0, 0% 100%, 100% 100%)"},{clipPath:"polygon(61% 50%, 100% 0, 100% 100%, 0% 100%)"}],Ne=se.length,Te=Re.length,Ze=[0,180,270],Le=101,We=200,Xe=301,Nt=({id:e,shape:t,colors:i,className:r,style:o})=>{let n=Number(e?.replace(/\D/g,"").replace(/-/g,"")),s=[Re[i?.[0]??Math.floor(n%Le%Te)],Re[i?.[1]??Math.floor(n%We%Te)],Re[i?.[2]??Math.floor(n%Xe%Te)]],p=t||[Math.floor(n%Le%Ne),Math.floor(n%We%Ne),Math.floor(n%Xe%Ne)],h=Ze[n%Le%Ze.length];return Ce("div",{role:"img","aria-label":"Project icon",className:`${Y.container} ${r}`,style:{"--gradient-from":s[1],"--gradient-to":s[2],"--gradient-stops":"var(--gradient-from), var(--gradient-to)",...o},children:Tt("div",{className:Y.innerShape,style:{color:s[0],rotate:`${h}deg`},children:[Ce("span",{className:Y.shape,style:{...se[p[0]],boxShadow:"5px 0px 0px 6px color-mix(in srgb, currentColor 40%, transparent), 4px 0px 0px 32px color-mix(in srgb, currentColor 30%, transparent)"}}),Ce("span",{className:`${Y.shape} ${Y.shapeAlt}`,style:se[p[1]]}),Ce("span",{className:Y.shape,style:se[p[2]]})]})})};import{entityComponents as At}from"@3dverse/design-tokens";import{Icon as Et,cn as Bt}from"@3dverse/ui-lib";import{entityComponents as Ye}from"@3dverse/design-tokens";import{Icon as Lt,cn as _t}from"@3dverse/ui-lib";import{Fragment as Je,jsx as _e}from"react/jsx-runtime";var Me=({componentId:e,variant:t="default",style:i,className:r=""})=>{if(!Ye[e])return _e(Je,{children:e});let{color:o,fontAwesome:n}=Ye[e];return n?_e(Lt,{className:_t("flex! justify-center items-center h-[2.5em] w-auto! aspect-square shrink-0 text-base text-current bg-current/20 rounded-full","fal",n,r),style:{color:o,boxShadow:t==="special"?"0 0 10px color-mix(in srgb, var(--entity-component-color), var(--color-bg-underground) 100%), 20px 0 0px -11px color-mix(in srgb, currentcolor, transparent 85%), -20px 0 0px -11px color-mix(in srgb, currentcolor, transparent 85%)":void 0,...i}}):_e(Je,{children:e})};var Ke={properties:{animation_controller:{description:"Drives skeletal animation using an Animation Graph and Animation Set; animates descendant skinned meshes whose skeletons are compatible with the set.",properties:{animationGraphRef:{description:"Referenced Animation Graph (UUID).",pattern:"^(00000000-0000-0000-0000-000000000000|[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})$",title:"Animation Graph Ref",type:"string","x-asset-ref":"animation_graph","x-display-type":"UUID"},animationSetRef:{description:"Referenced Animation Set (UUID).",pattern:"^(00000000-0000-0000-0000-000000000000|[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})$",title:"Animation Set Ref",type:"string","x-asset-ref":"animation_set","x-display-type":"UUID"},dataJSON:{description:"Animation Graph input parameters in JSON format.",title:"Data Json",type:"object","x-display-type":"JSON"},rootBoneEntityRef:{description:"Entity containing the Bone component for the skeleton's root bone.",properties:{linkage:{default:[],items:{description:"A unique identifier for an entity. It should be unique across all entities in the scene, but it is not guaranteed to be unique across all scenes.",pattern:"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",type:"string","x-display-type":"Entity Unique Identifier"},type:"array"},originalEUID:{default:"00000000-0000-0000-0000-000000000000",description:"A unique identifier for an entity. It should be unique across all entities in the scene, but it is not guaranteed to be unique across all scenes.",pattern:"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",type:"string","x-display-type":"Entity Unique Identifier"}},required:["originalEUID","linkage"],title:"Root Bone Entity Ref",type:"object","x-display-type":"Entity Reference"},rootMotionEnabled:{default:!1,description:"Enable root motion extraction and application to the entity transform.",title:"Root Motion Enabled",type:"boolean","x-display-type":"Boolean"}},title:"Animation Controller",type:"object","x-category":"animation"},animation_sequence_controller:{description:"Controls playback of an Animation Sequence; assigns tracks to entities.",properties:{animationSequenceRef:{description:"Referenced Animation Sequence (UUID).",pattern:"^(00000000-0000-0000-0000-000000000000|[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})$",title:"Animation Sequence Ref",type:"string","x-asset-ref":"animation_sequence","x-display-type":"UUID"},entities:{additionalProperties:{properties:{linkage:{default:[],items:{description:"A unique identifier for an entity. It should be unique across all entities in the scene, but it is not guaranteed to be unique across all scenes.",pattern:"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",type:"string","x-display-type":"Entity Unique Identifier"},type:"array"},originalEUID:{default:"00000000-0000-0000-0000-000000000000",description:"A unique identifier for an entity. It should be unique across all entities in the scene, but it is not guaranteed to be unique across all scenes.",pattern:"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",type:"string","x-display-type":"Entity Unique Identifier"}},required:["originalEUID","linkage"],type:"object","x-display-type":"Entity Reference"},description:"Map from track UUID to assigned entity.",title:"Entities",type:"object"},loop:{default:!1,description:"Loop playback when reaching the stop offset.",title:"Loop",type:"boolean","x-display-type":"Boolean"},playbackSpeed:{default:1,description:"Playback speed multiplier. Negative values play in reverse.",format:"float",title:"Playback Speed",type:"number","x-display-type":"Float"},startOffset:{default:0,description:"Normalized start offset [0, 1].",format:"float",maximum:1,minimum:0,title:"Start Offset",type:"number","x-display-type":"Float"},stopOffset:{default:1,description:"Normalized stop offset [0, 1]. When looping, playback wraps to startOffset at this point.",format:"float",maximum:1,minimum:0,title:"Stop Offset",type:"number","x-display-type":"Float"}},title:"Animation Sequence Controller",type:"object","x-category":"animation"},bone:{description:"Associates this entity with a bone in a skeleton (for attachments and transforms).",properties:{boneIndex:{description:"Zero-based index of this bone within the bound skeleton.",format:"int32",minimum:0,title:"Bone Index",type:"integer","x-display-type":"Unsigned Integer"}},title:"Bone",type:"object","x-category":"animation","x-requires":{allOf:["local_transform"]}},box_geometry:{description:"Box geometry.",properties:{dimension:{default:[1,1,1],description:"Box dimensions (width, height, depth) in meters.",items:{format:"float",type:"number"},maxItems:3,minItems:3,title:"Dimension",type:"array","x-display-type":"Vector3","x-unit":"m"},offset:{default:[0,0,0],description:"Local offset of the geometry origin (meters).",items:{format:"float",type:"number"},maxItems:3,minItems:3,title:"Offset",type:"array","x-display-type":"Vector3","x-unit":"m"}},title:"Box Geometry",type:"object","x-category":"geometry","x-requires":{allOf:["local_transform"]}},camera:{description:"Virtual camera.",properties:{dataJSON:{description:"Render Graph input parameters in JSON; schema defined by renderGraphRef.",title:"Data Json",type:"object","x-display-type":"JSON"},renderGraphRef:{description:"Referenced render graph to use for rendering from this camera.",pattern:"^(00000000-0000-0000-0000-000000000000|[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})$",title:"Render Graph Ref",type:"string","x-asset-ref":"render_graph","x-display-type":"UUID"},renderTargetIndex:{default:-1,description:"Index of the render target to blit/output to. -1 indicates the default target.",format:"int32",title:"Render Target Index",type:"integer","x-display-type":"Integer"}},title:"Camera",type:"object","x-category":"camera","x-requires":{allOf:["local_transform"],oneOf:["orthographic_lens","perspective_lens","custom_lens"]}},capsule_geometry:{description:"Capsule geometry.",properties:{axis:{default:1,description:"Alignment axis of the capsule: 0=X, 1=Y, 2=Z.",format:"int32",oneOf:[{const:0,description:"Capsule is aligned with the X Axis.",title:"X-Axis"},{const:1,description:"Capsule is aligned with the Y Axis.",title:"Y-Axis"},{const:2,description:"Capsule is aligned with the Z Axis.",title:"Z-Axis"}],title:"Axis",type:"integer","x-display-type":"Integer"},height:{default:1,description:"Height of the cylindrical mid-section (meters).",format:"float",title:"Height",type:"number","x-display-type":"Float","x-unit":"m"},offset:{default:[0,0,0],description:"Local offset of the geometry origin (meters).",items:{format:"float",type:"number"},maxItems:3,minItems:3,title:"Offset",type:"array","x-display-type":"Vector3","x-unit":"m"},radius:{default:.5,description:"Radius of the hemispherical ends (meters).",format:"float",title:"Radius",type:"number","x-display-type":"Float","x-unit":"m"}},title:"Capsule Geometry",type:"object","x-category":"geometry","x-requires":{allOf:["local_transform"]}},character_controller:{description:"Kinematic character controller for collision-constrained movement without a rigid body. Uses tuned collision handling for responsive control.",properties:{skinWidth:{default:0,description:"Collision skin width (meters).",format:"float",title:"Skin Width",type:"number","x-display-type":"Float","x-unit":"m"},slopeLimit:{default:45,description:"Maximum walkable slope (degrees). Slopes steeper than this are not walkable.",format:"float",title:"Slope Limit",type:"number","x-display-type":"Float","x-unit":"deg"},stepOffset:{default:0,description:"Maximum climbable step height. Steps higher than this cannot be climbed automatically.",format:"float",title:"Step Offset",type:"number","x-display-type":"Float","x-unit":"m"}},title:"Character Controller",type:"object","x-category":"physics","x-requires":{allOf:["local_transform","physics_material"],oneOf:["box_geometry","capsule_geometry"]}},collision_geometry_ref:{description:"Reference to a collision geometry asset used by physics.",properties:{collisionGeometryRef:{description:"Referenced collision geometry (UUID).",pattern:"^(00000000-0000-0000-0000-000000000000|[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})$",title:"Collision Geometry Ref",type:"string","x-asset-ref":"collision_geometry","x-display-type":"UUID"}},title:"Collision Geometry Reference",type:"object","x-category":"physics","x-requires":{allOf:["local_transform","physics_material"]}},constraint:{description:"6-DoF constraint built on a Joint. Defaults to fixed; selectively unlock translation and rotation on X/Y/Z and configure limits and springs.",properties:{motionLimitSpringDamping:{default:[0,0,0],description:"Linear limit spring damping per axis (N\xB7s/m).",items:{format:"float",type:"number"},maxItems:3,minItems:3,title:"Motion Limit Spring Damping",type:"array","x-display-type":"Vector3","x-unit":"N.s/m"},motionLimitSpringStiffness:{default:[0,0,0],description:"Linear limit spring stiffness per axis (N/m). >0 makes the limit soft (spring-like).",items:{format:"float",type:"number"},maxItems:3,minItems:3,title:"Motion Limit Spring Stiffness",type:"array","x-display-type":"Vector3","x-unit":"N/m"},motionLowerLimit:{default:[0,0,0],description:"Lower linear limit per axis (meters).",items:{format:"float",type:"number"},maxItems:3,minItems:3,title:"Motion Lower Limit",type:"array","x-display-type":"Vector3","x-unit":"m"},motionUpperLimit:{default:[0,0,0],description:"Upper linear limit per axis (meters).",items:{format:"float",type:"number"},maxItems:3,minItems:3,title:"Motion Upper Limit",type:"array","x-display-type":"Vector3","x-unit":"m"},swingLimitAngle:{default:[0,0],description:"Swing cone half-angles about Y and Z of the constraint frame (degrees). 0 does not restrict rotation; max 180. Used if either swing axis is limited.",items:{format:"float",type:"number"},maxItems:2,minItems:2,title:"Swing Limit Angle",type:"array","x-display-type":"Vector2","x-unit":"deg"},swingSpringDamping:{default:0,description:"Swing limit spring damping (N\xB7m\xB7s/rad).",format:"float",title:"Swing Spring Damping",type:"number","x-display-type":"Float","x-unit":"N.m.s/rad"},swingSpringStiffness:{default:0,description:"Swing limit spring stiffness (N\xB7m/rad). >0 makes the limit soft.",format:"float",title:"Swing Spring Stiffness",type:"number","x-display-type":"Float","x-unit":"N.m/rad"},twistLimitAngle:{default:[0,0],description:"Twist angle limits (min,max) around the twist axis (degrees). Range (\u2212360, 360).",items:{format:"float",type:"number"},maxItems:2,minItems:2,title:"Twist Limit Angle",type:"array","x-display-type":"Vector2","x-unit":"deg"},twistSpringDamping:{default:0,description:"Twist limit spring damping (N\xB7m\xB7s/rad).",format:"float",title:"Twist Spring Damping",type:"number","x-display-type":"Float","x-unit":"N.m.s/rad"},twistSpringStiffness:{default:0,description:"Twist limit spring stiffness (N\xB7m/rad). >0 makes the limit soft.",format:"float",title:"Twist Spring Stiffness",type:"number","x-display-type":"Float","x-unit":"N.m/rad"},unlockedMotion:{default:0,description:"Unlock motion along/around the specified axes.",format:"int32",minimum:0,title:"Unlocked Motion",type:"integer","x-bitFlags":[{description:"Unlock motion along the X axis.",name:"Along X",value:1},{description:"Unlock motion along the Y axis.",name:"Along Y",value:2},{description:"Unlock motion along the Z axis.",name:"Along Z",value:4},{description:"Unlock motion around the X axis.",name:"Around X",value:8},{description:"Unlock motion around the Y axis.",name:"Around Y",value:16},{description:"Unlock motion around the Z axis.",name:"Around Z",value:32}],"x-display-type":"Unsigned Integer"}},title:"Constraint",type:"object","x-category":"physics","x-requires":{allOf:["joint"]}},constraint_actuator:{description:"Drives a Constraint toward target position/orientation and velocities using configurable stiffness, damping, and force limits.",properties:{angularDamping:{default:[0,0,0],description:"Angular drive damping per axis (N\xB7m\xB7s/rad).",items:{format:"float",type:"number"},maxItems:3,minItems:3,title:"Angular Damping",type:"array","x-display-type":"Vector3","x-unit":"N.m.s/rad"},angularForceLimit:{default:[-1,-1,-1],description:"Max angular drive torque/impulse per axis (N\xB7m). \u22121 = unlimited.",items:{format:"float",type:"number"},maxItems:3,minItems:3,title:"Angular Force Limit",type:"array","x-display-type":"Vector3","x-unit":"N.m"},angularStiffness:{default:[0,0,0],description:"Angular drive stiffness per axis (N\xB7m/rad). >0 applies spring torque toward the goal.",items:{format:"float",type:"number"},maxItems:3,minItems:3,title:"Angular Stiffness",type:"array","x-display-type":"Vector3","x-unit":"N.m/rad"},angularVelocity:{default:[0,0,0],description:"Target angular velocity (rad/s).",items:{format:"float",type:"number"},maxItems:3,minItems:3,title:"Angular Velocity",type:"array","x-display-type":"Vector3","x-unit":"rad/s"},goalOrientation:{default:[0,0,0,1],description:"Target angular orientation.",items:{format:"float",type:"number"},maxItems:4,minItems:4,title:"Goal Orientation",type:"array","x-display-type":"Quaternion"},goalPosition:{default:[0,0,0],description:"Target linear position offset (meters).",items:{format:"float",type:"number"},maxItems:3,minItems:3,title:"Goal Position",type:"array","x-display-type":"Vector3","x-unit":"m"},linearDamping:{default:[0,0,0],description:"Linear drive damping per axis (N\xB7s/m).",items:{format:"float",type:"number"},maxItems:3,minItems:3,title:"Linear Damping",type:"array","x-display-type":"Vector3","x-unit":"N.s/m"},linearForceLimit:{default:[-1,-1,-1],description:"Max linear drive force/impulse per axis (N). \u22121 = unlimited.",items:{format:"float",type:"number"},maxItems:3,minItems:3,title:"Linear Force Limit",type:"array","x-display-type":"Vector3","x-unit":"N"},linearStiffness:{default:[0,0,0],description:"Linear drive stiffness per axis (N/m). >0 applies spring force toward the goal.",items:{format:"float",type:"number"},maxItems:3,minItems:3,title:"Linear Stiffness",type:"array","x-display-type":"Vector3","x-unit":"N/m"},linearVelocity:{default:[0,0,0],description:"Target linear velocity (m/s).",items:{format:"float",type:"number"},maxItems:3,minItems:3,title:"Linear Velocity",type:"array","x-display-type":"Vector3","x-unit":"m/s"},type:{default:1,description:"Drive type: apply as force or as acceleration.",format:"int32",oneOf:[{const:0,title:"FORCE"},{const:1,title:"ACCELERATION"}],title:"Type",type:"integer","x-display-type":"Integer"}},title:"Constraint Actuator",type:"object","x-category":"physics","x-requires":{allOf:["constraint"]}},culling_geometry:{description:"Enables culling using a simple analytic shape. Add alongside a geometry component (box, cylinder, plane, sphere).",properties:{isAdditive:{default:!0,description:"Additive: show elements inside the geometry. Subtractive: show elements outside the geometry.",title:"Is Additive",type:"boolean","x-display-type":"Boolean"}},title:"Culling Geometry",type:"object","x-category":"rendering","x-requires":{allOf:["local_transform"],oneOf:["box_geometry","cylinder_geometry","plane_geometry","sphere_geometry"]}},custom_lens:{description:"Custom projection lens using an explicit projection matrix.",properties:{cs_from_vs:{description:"Projection matrix mapping view-space to clip-space (cs_from_vs).",items:{format:"float",type:"number"},maxItems:16,minItems:16,title:"Cs From Vs",type:"array","x-display-type":"Matrix4"}},title:"Custom Lens",type:"object","x-category":"camera","x-requires":{allOf:["camera"]}},cylinder_geometry:{description:"Cylinder geometry.",properties:{axis:{default:1,description:"Alignment axis of the cylinder: 0=X, 1=Y, 2=Z.",format:"int32",oneOf:[{const:0,description:"Cylinder is aligned with the X Axis.",title:"X-Axis"},{const:1,description:"Cylinder is aligned with the Y Axis.",title:"Y-Axis"},{const:2,description:"Cylinder is aligned with the Z Axis.",title:"Z-Axis"}],title:"Axis",type:"integer","x-display-type":"Integer"},height:{default:1,description:"Height of the cylinder (meters).",format:"float",title:"Height",type:"number","x-display-type":"Float","x-unit":"m"},offset:{default:[0,0,0],description:"Local offset of the geometry origin (meters).",items:{format:"float",type:"number"},maxItems:3,minItems:3,title:"Offset",type:"array","x-display-type":"Vector3","x-unit":"m"},radius:{default:.5,description:"Radius of the cylinder (meters).",format:"float",title:"Radius",type:"number","x-display-type":"Float","x-unit":"m"}},title:"Cylinder Geometry",type:"object","x-category":"geometry","x-requires":{allOf:["local_transform"]}},debug_name:{description:"Human-readable name of the entity.",properties:{value:{description:"Entity name.",title:"Value",type:"string","x-display-type":"String"}},title:"Name",type:"object","x-category":"core"},decal_projector:{description:"Projects a material onto scene surfaces within the projector's box volume.",properties:{zIndex:{default:0,description:"Z-index ordering for decal rendering; higher values render on top of lower ones.",format:"int32",title:"Z Index",type:"integer","x-display-type":"Integer"}},title:"Decal Projector",type:"object","x-category":"rendering","x-requires":{allOf:["local_transform","material_ref","box_geometry"]}},environment:{description:"Scene environment settings, including skybox background and precomputed image-based lighting (IBL). This component is only applied in the scene where this entity lives, it is discarded for subscenes.",properties:{irradianceUUID:{description:"Diffuse irradiance cubemap used for ambient PBR lighting.",pattern:"^(00000000-0000-0000-0000-000000000000|[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})$",title:"Irradiance Uuid",type:"string","x-asset-ref":"cubemap","x-display-type":"UUID"},radianceUUID:{description:"Specular radiance cubemap (prefiltered) used for PBR reflections.",pattern:"^(00000000-0000-0000-0000-000000000000|[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})$",title:"Radiance Uuid",type:"string","x-asset-ref":"cubemap","x-display-type":"UUID"},skyboxUUID:{description:"Skybox cubemap used as the scene background (no lighting effect).",pattern:"^(00000000-0000-0000-0000-000000000000|[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})$",title:"Skybox Uuid",type:"string","x-asset-ref":"cubemap","x-display-type":"UUID"}},title:"Environment",type:"object","x-category":"lighting"},euid:{description:"Unique identifier for the entity.",properties:{value:{description:"Unique identifier value.",pattern:"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",title:"Value",type:"string","x-display-type":"Entity Unique Identifier"}},readOnly:!0,required:["value"],title:"Entity UID",type:"object","x-category":"core"},joint:{description:"Base joint connecting two bodies. By default locks relative position and orientation between constrainer and constrainee.",properties:{breakForce:{default:1e16,description:"Break force threshold (Newtons).",format:"float",title:"Break Force",type:"number","x-display-type":"Float","x-unit":"N"},breakTorque:{default:1e16,description:"Break torque threshold (N\xB7m).",format:"float",title:"Break Torque",type:"number","x-display-type":"Float","x-unit":"N.m"},constrainee:{description:"Entity with a Rigid Body to be constrained.",properties:{linkage:{default:[],items:{description:"A unique identifier for an entity. It should be unique across all entities in the scene, but it is not guaranteed to be unique across all scenes.",pattern:"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",type:"string","x-display-type":"Entity Unique Identifier"},type:"array"},originalEUID:{default:"00000000-0000-0000-0000-000000000000",description:"A unique identifier for an entity. It should be unique across all entities in the scene, but it is not guaranteed to be unique across all scenes.",pattern:"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",type:"string","x-display-type":"Entity Unique Identifier"}},required:["originalEUID","linkage"],title:"Constrainee",type:"object","x-display-type":"Entity Reference","x-required-components":["rigid_body"]},constrainer:{description:"Entity acting as constrainer (rigid/static) or null to constrain to world origin.",properties:{linkage:{default:[],items:{description:"A unique identifier for an entity. It should be unique across all entities in the scene, but it is not guaranteed to be unique across all scenes.",pattern:"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",type:"string","x-display-type":"Entity Unique Identifier"},type:"array"},originalEUID:{default:"00000000-0000-0000-0000-000000000000",description:"A unique identifier for an entity. It should be unique across all entities in the scene, but it is not guaranteed to be unique across all scenes.",pattern:"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",type:"string","x-display-type":"Entity Unique Identifier"}},required:["originalEUID","linkage"],title:"Constrainer",type:"object","x-display-type":"Entity Reference"},enableCollision:{default:!1,description:"Enable collision between constrainer and constrainee bodies.",title:"Enable Collision",type:"boolean","x-display-type":"Boolean"}},title:"Joint",type:"object","x-category":"physics","x-requires":{allOf:["local_transform"]}},label:{description:"Displays an editor-only label in the 3D view.",properties:{camera:{default:[0,0,0,0,0,0,1],description:"Camera framing parameters for navigating to the label.",items:{format:"float",type:"number","x-display-type":"Float"},title:"Camera",type:"array"},description:{description:"Label description text.",title:"Description",type:"string","x-display-type":"String"},speed:{default:15,description:"Camera travel speed (meters/second).",format:"float",title:"Speed",type:"number","x-display-type":"Float"},title:{description:"Label title text.",title:"Title",type:"string","x-display-type":"String"}},title:"Label",type:"object","x-category":"editor","x-requires":{allOf:["local_transform"]}},lineage:{description:"Records the entity's lineage through linkers and parentage.",properties:{ordinal:{default:0,description:"Ordinal index among siblings (editor-only).",format:"int32",title:"Ordinal",type:"integer","x-display-type":"Integer"},parentUUID:{description:"UUID of this entity's parent (default is root).",pattern:"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",title:"Parent Uuid",type:"string","x-display-type":"Entity Unique Identifier"}},title:"Lineage",type:"object","x-category":"core"},local_aabb:{description:"Local-space axis-aligned bounding box.",properties:{max:{description:"Local AABB maximum corner (x,y,z).",items:{format:"float",type:"number"},maxItems:3,minItems:3,title:"Max",type:"array","x-display-type":"Vector3"},min:{description:"Local AABB minimum corner (x,y,z).",items:{format:"float",type:"number"},maxItems:3,minItems:3,title:"Min",type:"array","x-display-type":"Vector3"}},title:"Local AABB",type:"object","x-category":"core"},local_transform:{description:"Local transform of the entity (position, orientation, scale).",properties:{eulerOrientation:{default:[0,0,0],description:"Local orientation as Euler angles (editor-only).",items:{format:"float",type:"number"},maxItems:3,minItems:3,title:"Orientation",type:"array","x-display-type":"Vector3","x-unit":"deg"},globalEulerOrientation:{default:[0,0,0],description:"Last global orientation entered by a user as Euler angles (may be invalid; editor-only).",items:{format:"float",type:"number"},maxItems:3,minItems:3,title:"Global Euler Orientation",type:"array","x-display-type":"Vector3","x-unit":"deg"},orientation:{default:[0,0,0,1],description:"Local orientation as a quaternion.",items:{format:"float",type:"number"},maxItems:4,minItems:4,title:"Orientation",type:"array","x-display-type":"Quaternion"},position:{default:[0,0,0],description:"Local position (x, y, z) in meters.",items:{format:"float",type:"number"},maxItems:3,minItems:3,title:"Position",type:"array","x-display-type":"Vector3","x-unit":"m"},scale:{default:[1,1,1],description:"Local non-uniform scale (x, y, z).",items:{format:"float",type:"number"},maxItems:3,minItems:3,title:"Scale",type:"array","x-display-type":"Vector3"}},title:"Transform",type:"object","x-category":"core"},material:{description:"Assigns a shader to the entity's mesh and provides its input values and specialization constants.",properties:{constantsJSON:{description:"Specialization constants (JSON); schema defined by shaderRef.",title:"Constants Json",type:"object","x-display-type":"JSON"},dataJSON:{description:"Shader input values (JSON); schema defined by shaderRef.",title:"Data Json",type:"object","x-display-type":"JSON"},isDoubleSided:{default:!1,description:"Render both front and back faces (double-sided).",title:"Is Double Sided",type:"boolean","x-display-type":"Boolean"},shaderRef:{description:"Referenced shader (UUID).",pattern:"^(00000000-0000-0000-0000-000000000000|[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})$",title:"Shader Ref",type:"string","x-asset-ref":"shader","x-display-type":"UUID"}},title:"Material",type:"object","x-category":"rendering","x-requires":{allOf:["mesh_ref"]}},material_ref:{description:"Reference to a material to use for rendering.",properties:{faceCulling:{default:0,description:"Face culling override: 0 = inherit from material, 1 = single-sided, 2 = double-sided.",format:"int32",oneOf:[{const:0,title:"Inherit from material"},{const:1,title:"Single Sided"},{const:2,title:"Double Sided"}],title:"Face Culling",type:"integer","x-display-type":"Integer"},value:{description:"Referenced material (UUID).",pattern:"^(00000000-0000-0000-0000-000000000000|[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})$",title:"Value",type:"string","x-asset-ref":"material","x-display-type":"UUID"}},title:"Material Reference",type:"object","x-category":"rendering","x-requires":{oneOf:["mesh_ref","decal_projector"]}},measure:{description:"Displays editor-only measurement annotations in the 3D view.",properties:{color:{default:[1,1,1],description:"Display color for the measurement.",items:{format:"float",type:"number"},maxItems:3,minItems:3,title:"Color",type:"array","x-display-type":"Vector3"},type:{default:0,description:"Measurement type to display.",format:"int32",minimum:0,oneOf:[{const:0,title:"Linear"},{const:1,title:"Angle"},{const:2,title:"Area"},{const:3,title:"Volume"}],title:"Type",type:"integer","x-display-type":"Unsigned Integer"}},title:"Measure",type:"object","x-category":"editor","x-requires":{allOf:["local_transform"]}},mesh_ref:{description:"Reference to a mesh to render (with submesh selection).",properties:{shadowCastingMode:{default:1,description:"Shadow casting mode for this mesh.",format:"int8",minimum:0,oneOf:[{const:0,description:"Shadow casting is disabled for this entity.",title:"Off"},{const:1,description:"Shadow casting is enabled for this entity.",title:"On"}],title:"Shadow Casting Mode",type:"integer","x-display-type":"Unsigned Byte"},submeshIndex:{default:0,description:"Index of the submesh within the mesh's submesh array.",format:"int32",title:"Submesh Index",type:"integer","x-display-type":"Integer"},value:{description:"Referenced mesh (UUID).",pattern:"^(00000000-0000-0000-0000-000000000000|[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})$",title:"Value",type:"string","x-asset-ref":"mesh","x-display-type":"UUID"}},title:"Mesh Reference",type:"object","x-category":"rendering","x-requires":{allOf:["local_transform"],oneOf:["material","material_ref"]}},morph_targets:{description:"Contains weights assigned to morph targets of the mesh referred to by the entity's mesh_ref.",properties:{weights:{additionalProperties:{format:"float",type:"number","x-display-type":"Float"},description:"Map from morph target name to weight (commonly 0..1).",title:"Weights",type:"object"}},title:"Morph Targets",type:"object","x-category":"animation","x-requires":{allOf:["local_transform"]}},orthographic_lens:{description:"Orthographic projection lens with configurable zoom and depth range.",properties:{zFar:{default:100,description:"Far clipping plane distance (meters).",format:"float",title:"Z Far",type:"number","x-display-type":"Float","x-unit":"m"},zNear:{default:0,description:"Near clipping plane distance (meters).",format:"float",title:"Z Near",type:"number","x-display-type":"Float","x-unit":"m"},zoomFactor:{default:[1,1],description:"Zoom factor applied to the orthographic extents (X,Y). 1 = no zoom.",items:{format:"float",type:"number"},maxItems:2,minItems:2,title:"Zoom Factor",type:"array","x-display-type":"Vector2"}},title:"Orthographic Lens",type:"object","x-category":"camera","x-requires":{allOf:["camera"]}},overrider:{description:"Overrides an entity from a subscene: mark for deletion, replace components, or detach specific components.",properties:{componentsToDetach:{description:"Hashes of components to detach from the overridden entity.",items:{format:"int32",type:"integer","x-display-type":"Integer"},title:"Components to Detach",type:"array"},deleter:{default:!1,description:"Mark the overridden entity as deleted in the composed scene.",title:"Deleter",type:"boolean","x-display-type":"Boolean"},entityRef:{description:"Target entity to override.",properties:{linkage:{default:[],items:{description:"A unique identifier for an entity. It should be unique across all entities in the scene, but it is not guaranteed to be unique across all scenes.",pattern:"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",type:"string","x-display-type":"Entity Unique Identifier"},type:"array"},originalEUID:{default:"00000000-0000-0000-0000-000000000000",description:"A unique identifier for an entity. It should be unique across all entities in the scene, but it is not guaranteed to be unique across all scenes.",pattern:"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",type:"string","x-display-type":"Entity Unique Identifier"}},required:["originalEUID","linkage"],title:"Entity Ref",type:"object","x-display-type":"Entity Reference"}},title:"Overrider",type:"object","x-category":"linker"},perspective_lens:{description:"Perspective projection lens with vertical field of view and near/far clipping planes.",properties:{farPlane:{default:0,description:"Far clipping plane distance (meters). Set to 0 for an infinite far plane.",format:"float",title:"Far Plane",type:"number","x-display-type":"Float","x-unit":"m"},fovy:{default:60,description:"Vertical field of view angle in degrees.",format:"float",title:"Vertical Field of View",type:"number","x-display-type":"Float","x-unit":"deg"},nearPlane:{default:.01,description:"Near clipping plane distance (meters).",format:"float",title:"Near Plane",type:"number","x-display-type":"Float","x-unit":"m"},offset:{default:[0,0],description:"Projection center offset for stereoscopic rendering (meters).",items:{format:"float",type:"number"},maxItems:2,minItems:2,title:"Offset",type:"array","x-display-type":"Vector2","x-unit":"m"}},title:"Perspective Lens",type:"object","x-category":"camera","x-requires":{allOf:["camera"]}},physics_material:{description:"Physical surface properties used for contact: friction, restitution, optional contact modification, and trigger mode.",properties:{contactVelocity:{default:[0,0,0],description:"Applied contact velocity offset when colliding (m/s). Only used if modifyContact is true.",items:{format:"float",type:"number"},maxItems:3,minItems:3,title:"Contact Velocity",type:"array","x-display-type":"Vector3","x-unit":"m/s"},dynamicFriction:{default:.5,description:"Dynamic (kinetic) friction coefficient (typically 0..1). If greater than staticFriction, staticFriction is clamped up to match. Effective value is averaged with the other surface.",format:"float",title:"Dynamic Friction",type:"number","x-display-type":"Float"},isTrigger:{default:!1,description:"Treat associated geometry as a trigger (generates events but no physical response).",title:"Is Trigger",type:"boolean","x-display-type":"Boolean"},modifyContact:{default:!1,description:"Enable contact modification (applies contactVelocity on collisions).",title:"Modify Contact",type:"boolean","x-display-type":"Boolean"},restitution:{default:0,description:"Restitution (bounciness) in [0,1]. 0 = no bounce; 1 = perfectly elastic. Effective value is averaged with the other surface.",format:"float",title:"Restitution",type:"number","x-display-type":"Float"},staticFriction:{default:.5,description:"Static friction coefficient (typically 0..1). 0 feels like ice; higher resists start of motion. Effective value is averaged with the other surface.",format:"float",title:"Static Friction",type:"number","x-display-type":"Float"}},title:"Physics Material",type:"object","x-category":"physics","x-requires":{oneOf:["box_geometry","capsule_geometry","cylinder_geometry","plane_geometry","sphere_geometry","collision_geometry_ref"]}},plane_geometry:{description:"Infinite plane geometry.",properties:{distance:{default:0,description:"Signed distance from the origin along the plane normal (meters).",format:"float",title:"Distance",type:"number","x-display-type":"Float","x-unit":"m"},normal:{default:[0,1,0],description:"Unit normal vector of the plane (in local space).",items:{format:"float",type:"number"},maxItems:3,minItems:3,title:"Normal",type:"array","x-display-type":"Vector3"}},title:"Plane Geometry",type:"object","x-category":"geometry","x-requires":{allOf:["local_transform"]}},point_cloud_ref:{description:"Reference to a point cloud.",properties:{value:{description:"Referenced point cloud (UUID).",pattern:"^(00000000-0000-0000-0000-000000000000|[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})$",title:"Value",type:"string","x-asset-ref":"point_cloud","x-display-type":"UUID"}},title:"Point Cloud Reference",type:"object","x-category":"point cloud","x-requires":{allOf:["local_transform"]}},point_light:{description:"Omnidirectional light source with physically based intensity and falloff. Acts as a point light by default; enable isDirectional to emit parallel rays. Attach a Spot Light component to add a cone cutoff. Can optionally drive the atmosphere sun direction.",properties:{color:{default:[1,1,1],description:"RGB light color in linear space [0\u20131]. Multiplies intensity.",items:{format:"float",type:"number"},maxItems:3,minItems:3,title:"Color",type:"array","x-display-type":"Vector3"},intensity:{default:1,description:"Radiant intensity (W/sr). Controls brightness for physically based shading (inverse-square falloff).",format:"float",title:"Intensity",type:"number","x-display-type":"Float","x-unit":"W/sr"},isDirectional:{default:!1,description:"Treat this as a directional light using the entity's orientation; position is ignored.",title:"Is Directional",type:"boolean","x-display-type":"Boolean"},isSun:{default:!1,description:"Use this light's direction to control the atmosphere sun direction. Only one light should be marked as the sun; multiple are undefined.",title:"Is Sun",type:"boolean","x-display-type":"Boolean"},range:{default:0,description:"Hard cutoff distance for light influence and culling (meters). Set to 0 for no hard cutoff and physically correct inverse-square attenuation.",format:"float",title:"Range",type:"number","x-display-type":"Float","x-unit":"m"}},title:"Light",type:"object","x-category":"lighting","x-requires":{allOf:["local_transform"]}},reflection_probe:{description:"Omnidirectional reflection probe that captures the local environment into a cubemap for specular reflections (IBL).",properties:{farDist:{default:100,description:"Capture far clip distance (meters).",format:"float",title:"Far Dist",type:"number","x-display-type":"Float","x-unit":"m"},nearDist:{default:.1,description:"Capture near clip distance (meters).",format:"float",title:"Near Dist",type:"number","x-display-type":"Float","x-unit":"m"},offset:{default:[0,0,0],description:"Offset of the probe capture origin relative to the entity position (meters).",items:{format:"float",type:"number"},maxItems:3,minItems:3,title:"Offset",type:"array","x-display-type":"Vector3","x-unit":"m"},quality:{default:128,description:"Reflection cubemap resolution (pixels per face). Higher values increase detail and cost.",format:"int32",title:"Quality",type:"integer","x-display-type":"Integer"}},title:"Reflection probe",type:"object","x-category":"lighting","x-requires":{allOf:["local_transform","box_geometry"]}},rigid_body:{description:"Rigid body parameters for dynamic simulation (mass, damping, limits, CCD, and kinematic/gravity behavior).",properties:{angularDamping:{default:.05,description:"Angular damping coefficient (s^-1). 0 = no damping; must be non-negative.",format:"float",minimum:0,title:"Angular Damping",type:"number","x-display-type":"Float","x-unit":"s^-1"},centerOfMass:{default:[0,0,0],description:"Center of mass relative to the entity's local transform (meters).",items:{format:"float",type:"number"},maxItems:3,minItems:3,title:"Center of Mass",type:"array","x-display-type":"Vector3","x-unit":"m"},collisionDetection:{default:0,description:"Collision detection mode (CCD). Kinematic bodies do not support Linear/Continuous CCD.",format:"int8",minimum:0,oneOf:[{const:0,description:"Discrete collision detection.",title:"Discrete"},{const:1,description:"Linear, or sweep-based, CCD. This prevents the affected rigid bodies from going through other physics bodies at high velocities (a problem also known as tunnelling). Not functional with kinematic rigid bodies.",title:"LinearContinuous"},{const:2,description:"Angular, or speculative, CCD is better at catching missed contacts generated by fast angular motions but not as good with fast linear motions. Angular CCD is cheaper but less robust compared to linear CCD.",title:"AngularContinuous"},{const:3,description:"Linear and angular CCD are enabled. This often results in best-of-both-worlds behavior. Not functional with kinematic rigid bodies.",title:"Continuous"}],title:"Collision Detection",type:"integer","x-display-type":"Unsigned Byte"},isKinematic:{default:!1,description:"Treat the rigid body as kinematic (unaffected by forces; driven by animation/app logic).",title:"Is Kinematic",type:"boolean","x-display-type":"Boolean"},linearDamping:{default:0,description:"Linear damping coefficient (s^-1). 0 = no damping; must be non-negative.",format:"float",minimum:0,title:"Linear Damping",type:"number","x-display-type":"Float","x-unit":"s^-1"},lockedAxis:{default:0,description:"Lock motion along/around the specified axes.",format:"int8",minimum:0,title:"Locked Axis",type:"integer","x-bitFlags":[{description:"Locks motion along the X axis.",name:"Linear X",value:1},{description:"Locks motion along the Y axis.",name:"Linear Y",value:2},{description:"Locks motion along the Z axis.",name:"Linear Z",value:4},{description:"Locks motion around the X axis.",name:"Angular X",value:8},{description:"Locks motion around the Y axis.",name:"Angular Y",value:16},{description:"Locks motion around the Z axis.",name:"Angular Z",value:32}],"x-display-type":"Unsigned Byte"},mass:{default:1,description:"Mass (kg). A value of 0 is treated as infinite mass (static).",format:"float",title:"Mass",type:"number","x-display-type":"Float","x-unit":"kg"},maxAngularVelocity:{default:100,description:"Maximum angular velocity (rad/s). Must be non-negative.",format:"float",minimum:0,title:"Max Angular Velocity",type:"number","x-display-type":"Float","x-unit":"rad/s"},maxLinearVelocity:{default:1e16,description:"Maximum linear velocity (m/s). Must be non-negative.",format:"float",minimum:0,title:"Max Linear Velocity",type:"number","x-display-type":"Float","x-unit":"m/s"},useGravity:{default:!0,description:"Whether the rigid body is affected by gravity.",title:"Use Gravity",type:"boolean","x-display-type":"Boolean"}},title:"Rigid Body",type:"object","x-category":"physics","x-requires":{allOf:["local_transform","physics_material"]}},scene_ref:{description:"Reference to a subscene (linker); used to compose scenes.",properties:{maxRecursionCount:{default:1,description:"Maximum recursion depth when a scene references itself.",format:"int32",minimum:0,title:"Max Recursion Count",type:"integer","x-display-type":"Unsigned Integer"},value:{description:"Referenced scene (UUID).",pattern:"^(00000000-0000-0000-0000-000000000000|[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})$",title:"Value",type:"string","x-asset-ref":"scene","x-display-type":"UUID"}},title:"Scene Reference",type:"object","x-category":"linker","x-requires":{allOf:["local_transform"]}},script_element:{description:"References a script and supplies its input values.",properties:{dataJSON:{description:"Script input values in JSON; schema defined by scriptRef.",title:"Data Json",type:"object","x-display-type":"JSON"},scriptRef:{description:"Referenced script (UUID).",pattern:"^(00000000-0000-0000-0000-000000000000|[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})$",title:"Script Ref",type:"string","x-asset-ref":"script","x-display-type":"UUID"}},title:"Script Element",type:"object","x-category":"scripting"},script_map:{description:"Holds a set of script elements keyed by UUID.",properties:{elements:{additionalProperties:{description:"References a script and supplies its input values.",properties:{dataJSON:{description:"Script input values in JSON; schema defined by scriptRef.",title:"Data Json",type:"object","x-display-type":"JSON"},scriptRef:{description:"Referenced script (UUID).",pattern:"^(00000000-0000-0000-0000-000000000000|[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})$",title:"Script Ref",type:"string","x-asset-ref":"script","x-display-type":"UUID"}},title:"Script Element",type:"object","x-category":"scripting"},description:"Map of script UUID to script element.",title:"Elements",type:"object"}},title:"Script Map",type:"object","x-category":"scripting"},shadow_caster:{description:"Enables a light to cast real-time shadows with configurable map resolution, depth range, and (for directional lights) cascades.",properties:{accumulateShadowCascades:{default:!0,description:"Directional lights only: blend/accumulate all cascades to reduce visible transitions between splits.",title:"Accumulate Shadow Cascades",type:"boolean","x-display-type":"Boolean"},bias:{default:.004,description:"Depth bias applied during shadow tests to reduce self-shadowing (acne). Increase to mitigate artifacts; too high causes peter-panning.",format:"float",title:"Bias",type:"number","x-display-type":"Float"},cascadeCount:{default:4,description:"Directional lights only: number of cascades for CSM. 0 = static shadow map, 1\u20134 = increasing cascade count.",format:"int8",oneOf:[{const:0,description:"A single, precomputed shadow map that does not depend on the camera's view. Provides consistent shadows across the scene but lacks adaptability for dynamic perspectives or varying levels of detail.",title:"Static Shadow Map"},{const:1,description:"One shadow layer for the entire view. Provides consistent but basic coverage, suitable for simple scenes or performance-critical applications.",title:"Single Cascade"},{const:2,description:"Two layers of shadow refinement enhance detail near the viewer while managing distant shadows more efficiently.",title:"Dual Cascade"},{const:3,description:"Three shadow regions create a balanced depth, offering clarity across close and mid-range distances.",title:"Triple Cascade"},{const:4,description:"Four layers provide precise and adaptive shadow detail, ensuring realistic depth and smooth transitions across a wide range of distances.",title:"Quad Cascade"}],title:"Cascade Count",type:"integer","x-display-type":"Byte"},cascadeSplitLambda:{default:.94,description:"Directional lights only: cascade split distribution for CSM. 0 = uniform (linear) splits; 1 = logarithmic (more resolution near the camera). Values in [0,1] blend between the two.",format:"float",title:"Cascade Split Lambda",type:"number","x-display-type":"Float"},farDist:{default:100,description:"Shadow camera far clip distance (meters). Use the smallest range that contains casters/receivers.",format:"float",title:"Far Dist",type:"number","x-display-type":"Float","x-unit":"m"},nearDist:{default:.1,description:"Shadow camera near clip distance (meters). Tighten to improve depth precision.",format:"float",title:"Near Dist",type:"number","x-display-type":"Float","x-unit":"m"},quality:{default:1024,description:"Shadow map resolution (pixels per side). Higher values increase detail at the cost of memory and performance.",format:"int32",oneOf:[{const:256,description:"Shadows are vague and blocky, providing just enough to indicate their general presence.",title:"Ultra-Low (256x256)"},{const:512,description:"Shadows appear soft and blurry, offering a basic sense of shape with little detail.",title:"Very Low (512x512)"},{const:1024,description:"Shadows are smoother and moderately clear but lack sharpness, giving a gentle impression of depth.",title:"Low (1024x1024)"},{const:2048,description:"Standard quality with adequate clarity for most scenes. Shadows are defined but not overly sharp.",title:"Medium-Low (2048x2048)"},{const:3072,description:"*RECOMMENDED* Shadows have clean edges and are crisp enough to make fine details noticeable in most environments.",title:"Medium (3072x3072)"},{const:4096,description:"High-quality shadows with detailed edges and accurate representation of shape and form.",title:"Medium High (4096x4096)"},{const:6144,description:"Sharp and precise shadows that maintain clarity even for intricate details. Suitable for premium visual fidelity.",title:"High (6144x6144)"},{const:8192,description:"Hyper-realistic shadows with razor-sharp detail and unparalleled depth, delivering cinematic-level quality.",title:"Ultra High (8192x8192)"}],title:"Quality",type:"integer","x-display-type":"Integer"}},title:"Shadow caster",type:"object","x-category":"lighting","x-requires":{allOf:["point_light"]}},skeleton_ref:{description:"Reference to a skeleton asset for skinning and animation.",properties:{value:{description:"Referenced skeleton (UUID).",pattern:"^(00000000-0000-0000-0000-000000000000|[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})$",title:"Value",type:"string","x-asset-ref":"skeleton","x-display-type":"UUID"}},title:"Skeleton Reference",type:"object","x-category":"animation","x-requires":{allOf:["local_transform"],oneOf:["mesh_ref","bone"]}},sound_ref:{description:"Reference to a sound asset with playback and spatialization controls.",properties:{attenuationModel:{default:0,description:"Distance attenuation model.",format:"int8",minimum:0,oneOf:[{const:0,description:"No attenuation.",title:"No Attenuation"},{const:1,description:"Inverse distance attenuation model.",title:"Inverse Distance"},{const:2,description:"Linear distance attenuation model.",title:"Linear Distance"},{const:3,description:"Exponential distance attenuation model.",title:"Exponential Distance"}],title:"Attenuation Model",type:"integer","x-display-type":"Unsigned Byte"},attenuationRolloffFactor:{default:1,description:"Rolloff factor for distance attenuation.",format:"float",minimum:0,title:"Attenuation Rolloff Factor",type:"number","x-display-type":"Float"},autoPlayOnStart:{default:!1,description:"Autoplay when the simulation starts.",title:"Auto Play on Start",type:"boolean","x-display-type":"Boolean"},dopplerFactor:{default:1,description:"Scale factor for the Doppler effect.",format:"float",minimum:0,title:"Doppler Factor",type:"number","x-display-type":"Float"},inaudibleBehavior:{default:0,description:"Behavior when the sound becomes inaudible.",format:"int8",minimum:0,oneOf:[{const:0,description:"Continue updating while inaudible.",title:"Tick"},{const:1,description:"Suspend updates while inaudible.",title:"Don't Tick"},{const:2,description:"Stop playback and release resources when inaudible.",title:"Kill"}],title:"Inaudible Behavior",type:"integer","x-display-type":"Unsigned Byte"},looping:{default:!1,description:"Whether the sound loops.",title:"Looping",type:"boolean","x-display-type":"Boolean"},maxDistance:{default:50,description:"Distance beyond which the sound is inaudible (meters).",format:"float",minimum:0,title:"Max Distance",type:"number","x-display-type":"Float","x-unit":"m"},minDistance:{default:5,description:"Distance at which the sound stays at max volume (meters).",format:"float",minimum:0,title:"Min Distance",type:"number","x-display-type":"Float","x-unit":"m"},pan:{default:0,description:"Stereo pan. \u22121 = left, 1 = right.",format:"float",maximum:1,minimum:-1,title:"Pan",type:"number","x-display-type":"Float"},playSpeed:{default:1,description:"Playback speed multiplier (1.0 = normal).",format:"float",title:"Play Speed",type:"number","x-display-type":"Float"},value:{description:"Referenced sound (UUID).",pattern:"^(00000000-0000-0000-0000-000000000000|[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})$",title:"Value",type:"string","x-asset-ref":"sound","x-display-type":"UUID"},volume:{default:1,description:"Playback volume [0..1].",format:"float",maximum:1,minimum:0,title:"Volume",type:"number","x-display-type":"Float"}},title:"Sound Reference",type:"object","x-category":"sound","x-requires":{allOf:["local_transform"]}},sphere_geometry:{description:"Sphere geometry.",properties:{offset:{default:[0,0,0],description:"Local offset of the geometry origin (meters).",items:{format:"float",type:"number"},maxItems:3,minItems:3,title:"Offset",type:"array","x-display-type":"Vector3","x-unit":"m"},radius:{default:.5,description:"Radius of the sphere (meters).",format:"float",title:"Radius",type:"number","x-display-type":"Float","x-unit":"m"}},title:"Sphere Geometry",type:"object","x-category":"geometry","x-requires":{allOf:["local_transform"]}},spline:{description:"Displays an editor-only spline in the 3D view.",properties:{color:{default:[1,1,1],description:"Display color of the curve.",items:{format:"float",type:"number"},maxItems:3,minItems:3,title:"Color",type:"array","x-display-type":"Vector3"},tension:{default:.5,description:"Catmull-Rom tension (only when type is Catmull-Rom).",format:"float",title:"Tension",type:"number","x-display-type":"Float"},type:{default:0,description:"Spline interpolation type.",format:"int32",minimum:0,oneOf:[{const:0,title:"Centripetal"},{const:1,title:"Chordal "},{const:2,title:"Catmullrom"}],title:"Type",type:"integer","x-display-type":"Unsigned Integer"}},title:"Spline",type:"object","x-category":"editor","x-requires":{allOf:["local_transform"]}},spot_light:{description:"Adds a cone cutoff to a light, producing a spotlight. Requires a Point Light component for color/intensity and falloff.",properties:{IESProfile:{description:"Optional IES photometric profile (2D texture). Modulates emitted intensity by direction; leave empty for uniform distribution.",pattern:"^(00000000-0000-0000-0000-000000000000|[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})$",title:"Ies Profile",type:"string","x-asset-ref":"texture","x-display-type":"UUID"},cutoff:{default:30,description:"Outer cone half-angle in degrees. Light intensity falls to zero outside this angle.",format:"float",title:"Cutoff",type:"number","x-display-type":"Float","x-unit":"deg"}},title:"Spot Light",type:"object","x-category":"lighting","x-requires":{allOf:["point_light"]}},tags:{description:"Free-form tags used to group and filter entities.",properties:{value:{description:"List of tags applied to this entity.",items:{type:"string","x-display-type":"String"},title:"Value",type:"array"}},title:"Tags",type:"object","x-category":"core"},vehicle_controller:{description:"Vehicle Controller parameters.",properties:{chassis:{description:"The chassis.",properties:{linkage:{default:[],items:{description:"A unique identifier for an entity. It should be unique across all entities in the scene, but it is not guaranteed to be unique across all scenes.",pattern:"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",type:"string","x-display-type":"Entity Unique Identifier"},type:"array"},originalEUID:{default:"00000000-0000-0000-0000-000000000000",description:"A unique identifier for an entity. It should be unique across all entities in the scene, but it is not guaranteed to be unique across all scenes.",pattern:"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",type:"string","x-display-type":"Entity Unique Identifier"}},required:["originalEUID","linkage"],title:"Chassis",type:"object","x-display-type":"Entity Reference"},frontLeftWheel:{description:"The front left wheel.",properties:{linkage:{default:[],items:{description:"A unique identifier for an entity. It should be unique across all entities in the scene, but it is not guaranteed to be unique across all scenes.",pattern:"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",type:"string","x-display-type":"Entity Unique Identifier"},type:"array"},originalEUID:{default:"00000000-0000-0000-0000-000000000000",description:"A unique identifier for an entity. It should be unique across all entities in the scene, but it is not guaranteed to be unique across all scenes.",pattern:"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",type:"string","x-display-type":"Entity Unique Identifier"}},required:["originalEUID","linkage"],title:"Front Left Wheel",type:"object","x-display-type":"Entity Reference"},frontRightWheel:{description:"The front right wheel.",properties:{linkage:{default:[],items:{description:"A unique identifier for an entity. It should be unique across all entities in the scene, but it is not guaranteed to be unique across all scenes.",pattern:"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",type:"string","x-display-type":"Entity Unique Identifier"},type:"array"},originalEUID:{default:"00000000-0000-0000-0000-000000000000",description:"A unique identifier for an entity. It should be unique across all entities in the scene, but it is not guaranteed to be unique across all scenes.",pattern:"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",type:"string","x-display-type":"Entity Unique Identifier"}},required:["originalEUID","linkage"],title:"Front Right Wheel",type:"object","x-display-type":"Entity Reference"},rearLeftWheel:{description:"The rear left wheel.",properties:{linkage:{default:[],items:{description:"A unique identifier for an entity. It should be unique across all entities in the scene, but it is not guaranteed to be unique across all scenes.",pattern:"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",type:"string","x-display-type":"Entity Unique Identifier"},type:"array"},originalEUID:{default:"00000000-0000-0000-0000-000000000000",description:"A unique identifier for an entity. It should be unique across all entities in the scene, but it is not guaranteed to be unique across all scenes.",pattern:"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",type:"string","x-display-type":"Entity Unique Identifier"}},required:["originalEUID","linkage"],title:"Rear Left Wheel",type:"object","x-display-type":"Entity Reference"},rearRightWheel:{description:"The rear right wheel.",properties:{linkage:{default:[],items:{description:"A unique identifier for an entity. It should be unique across all entities in the scene, but it is not guaranteed to be unique across all scenes.",pattern:"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",type:"string","x-display-type":"Entity Unique Identifier"},type:"array"},originalEUID:{default:"00000000-0000-0000-0000-000000000000",description:"A unique identifier for an entity. It should be unique across all entities in the scene, but it is not guaranteed to be unique across all scenes.",pattern:"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",type:"string","x-display-type":"Entity Unique Identifier"}},required:["originalEUID","linkage"],title:"Rear Right Wheel",type:"object","x-display-type":"Entity Reference"}},title:"Vehicle Controller",type:"object","x-category":"physics","x-requires":{allOf:["local_transform"]}},volume_filter:{description:"View filtering and display controls applied to the referenced volume.",properties:{applyGaussianFiltering:{default:!1,description:"Apply Gaussian smoothing when sampling voxels.",title:"Apply Gaussian Filtering",type:"boolean","x-display-type":"Boolean"},enable3D:{default:!0,description:"Whether this volume is visible in the 3D view.",title:"Enable3 D",type:"boolean","x-display-type":"Boolean"},enableMPR:{default:!0,description:"Whether this volume is visible in the MPR (multi-planar reconstruction) view.",title:"Enable Mpr",type:"boolean","x-display-type":"Boolean"},mprColor:{default:[1,1,1],description:"Tint applied to this volume's MPR/projection output.",items:{format:"float",type:"number"},maxItems:3,minItems:3,title:"Mpr Color",type:"array","x-display-type":"Vector3"},range:{default:[0,1],description:"Displayed voxel intensity range [min, max]. Values outside the material's valid range are clamped/ignored.",items:{format:"float",type:"number"},maxItems:2,minItems:2,title:"Range",type:"array","x-display-type":"Vector2"},sampleUnfiltered:{default:!1,description:"Sample texels without hardware filtering (nearest).",title:"Sample Unfiltered",type:"boolean","x-display-type":"Boolean"}},title:"Volume Filter",type:"object","x-category":"rendering","x-requires":{allOf:["volume_ref"]}},volume_material_ref:{description:"Reference to the volume material used for shading and transfer functions.",properties:{value:{description:"Referenced volume material (UUID).",pattern:"^(00000000-0000-0000-0000-000000000000|[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})$",title:"Value",type:"string","x-asset-ref":"volume_material","x-display-type":"UUID"}},title:"Volume Material Reference",type:"object","x-category":"rendering","x-requires":{allOf:["volume_ref"]}},volume_ref:{description:"Reference to a volumetric dataset stored as a 3D texture (voxels).",properties:{texture3dRef:{description:"Referenced 3D texture (UUID) containing the volume voxels.",pattern:"^(00000000-0000-0000-0000-000000000000|[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})$",title:"Texture3d Ref",type:"string","x-asset-ref":"texture_3d","x-display-type":"UUID"}},title:"Volume Reference",type:"object","x-category":"rendering","x-requires":{allOf:["local_transform","volume_material_ref"]}}},required:["euid"],type:"object"};import{jsx as le,jsxs as Ut}from"react/jsx-runtime";var pe=({name:e,hasLinkToReference:t=!1,className:i})=>{let r=Ke.properties[e],o=At[e],n=e==="*_geometry"?"box_geometry; capsule_geometry; cylinder_geometry; plane_geometry; sphere_geometry":e;if(!r||!o)return le("span",{children:e});let{color:s}=o,p=e==="*_geometry"?"/references/entity-components#box_geometry":`/references/entity-components#${e}`;return Ut("span",{className:Bt("no-underline! inline-flex items-baseline gap-2 w-fit my-0 me-1","text-[90%] font-medium tracking-wide rounded-full whitespace-nowrap cursor-default","bg-current/10 border border-transparent has-[.link-to-ref:hover]:border-current/20 transition-colors",!t&&"pr-3",i),style:{color:s},children:[le(Me,{componentId:e,className:"h-5 text-4xs"}),le("span",{className:"text-primary",children:r?.title}),t&&le("a",{href:p,className:"link-to-ref px-1 mr-0.5 h-full text-xs text-current! rounded-full opacity-70 hover:opacity-100 hover:bg-ground/50 transition-all",children:le(Et,{className:"fal fa-external-link-square text-sm"})})]})};import{entityComponents as Vt}from"@3dverse/design-tokens";import{clsx as qt}from"clsx";import{twMerge as Ot}from"tailwind-merge";function a(...e){return Ot(qt(e))}import{jsx as A,jsxs as Q}from"react/jsx-runtime";function zt({allOf:e,oneOf:t,withAttributes:i,className:r}){return Q("article",{className:a("relative w-fit flex flex-col flex-wrap my-4 border border-primary-alpha rounded-[1.5rem]",r),children:[A("div",{className:"absolute [writing-mode:vertical-rl] rotate-180 top-1/2 -left-3 -translate-x-1/2 -translate-y-1/2 text-[.6rem] font-medium text-tertiary tracking-wider opacity-60 uppercase",children:"Entity"}),A("div",{className:"flex flex-wrap gap-2 p-2",children:e?.map(o=>A(Ft,{name:o,withAttributes:i},o))}),t&&Q("div",{className:"flex gap-3 pl-4 p-2 border-t border-secondary-alpha",children:[Q("div",{className:"shrink-0 mt-px text-3xs text-tertiary font-medium",children:[A("i",{className:"fal fa-plus mr-1"})," One of"]}),A("div",{className:"flex flex-wrap gap-2",children:t.map(o=>A(pe,{name:o},o))})]})]})}var Ft=({name:e,withAttributes:t})=>{if(t&&Object.keys(t).includes(e)){let{color:i}=Vt[e];return Q("div",{className:"flex flex-col bg-(--entity-component-color)/5 rounded-[14px]",style:{"--entity-component-color":i},children:[A(pe,{name:e,className:"w-full"}),A($t,{attributes:t[e]})]})}return A(pe,{name:e})},$t=({attributes:e})=>A("div",{className:"flex flex-col flex-wrap gap-1 p-2 pr-4 text-xs text-tertiary",children:Object.entries(e).map(([t,i])=>Q("div",{className:"flex gap-1",children:[Q("span",{className:"font-mono",children:[t,":"]}),A("span",{className:"font-mono",children:JSON.stringify(i)})]},t))});var Ae={glowEffect:"d",glowEffectWide:"l"};import{jsx as Ht}from"react/jsx-runtime";var Gt=({children:e,variant:t="default",className:i})=>Ht("div",{className:a(Ae.glowEffect,t==="wide"&&Ae.glowEffectWide,i),children:e});import{Fragment as Qe,jsx as d,jsxs as L}from"react/jsx-runtime";var Zt=({items:e=[],connections:t=[],gridSize:i=40,cellSize:r=70,containerWidth:o=800,containerHeight:n=400,caption:s,animateOnScroll:p=!0,className:h})=>{let k=b=>({animationFillMode:"both",...p?{animationTimeline:"view(block)",animationRange:"entry 25% entry 100%"}:{animationDelay:b}}),u=(b,m)=>{let l=(b-m)*(r/2),x=(b+m)*(r/4);return{x:l,y:x}},y=o/2,g=n/2,c=()=>{let b=[],m=i/2;for(let l=-m;l<=m;l++){let x=u(-m,l),R=u(m,l);b.push(d("line",{x1:y+x.x,y1:g+x.y,x2:y+R.x,y2:g+R.y,stroke:"rgba(100, 150, 200, 0.4)",strokeWidth:"1"},`h-${l}`))}for(let l=-m;l<=m;l++){let x=u(l,-m),R=u(l,m);b.push(d("line",{x1:y+x.x,y1:g+x.y,x2:y+R.x,y2:g+R.y,stroke:"rgba(100, 150, 200, 0.4)",strokeWidth:"1"},`v-${l}`))}return b},w=(b,m,l)=>{let R=`arrow-${b}-${l}`;return d("marker",{id:R,markerWidth:10,markerHeight:10,refX:b==="end"?6:4,refY:10/2,orient:"auto",markerUnits:"userSpaceOnUse",children:d("polygon",{points:b==="end"?`0,0 10,${10/2} 0,10`:`10,0 0,${10/2} 10,10`,fill:m})})},v=()=>t.map((b,m)=>{let{from_x:l,from_y:x,to_x:R,to_y:F,via_x:H=l,via_y:Z=x,arrow_start:xe,arrow_end:re,color:O="#fbbf24",name:oe,showDebug:be,isAnimated:he=!1,animationDirection:ve="end"}=b,N=[],U=[],C=l,T=x;if(N.push(u(C,T)),C!==H){let f=H;U.push({from:{x:C,y:T},to:{x:f,y:T}}),C=f,N.push(u(C,T))}if(T!==Z){let f=Z;U.push({from:{x:C,y:T},to:{x:C,y:f}}),T=f,N.push(u(C,T))}if(C!==R){let f=R;U.push({from:{x:C,y:T},to:{x:f,y:T}}),C=f,N.push(u(C,T))}if(T!==F){let f=F;U.push({from:{x:C,y:T},to:{x:C,y:f}}),T=f,N.push(u(C,T))}let ne=U[0],$e=0;U.forEach(f=>{let S=f.to.x-f.from.x,W=f.to.y-f.from.y,X=Math.hypot(S,W);X>$e&&($e=X,ne=f)});let we=u(ne.from.x,ne.from.y),Pe=u(ne.to.x,ne.to.y),gt=y+(we.x+Pe.x)/2,xt=g+(we.y+Pe.y)/2,bt=Math.atan2(Pe.y-we.y,Pe.x-we.x)*(180/Math.PI),ht=(f=>{let S=(f+180)%360-180;return S>90&&(S-=180),S<-90&&(S+=180),S})(bt),vt=N.map((f,S)=>{let W=y+f.x,X=g+f.y;return S===0?`M ${W},${X}`:`L ${W},${X}`}).join(" "),je=0;for(let f=1;f<N.length;f++){let S=N[f-1],W=N[f],X=y+S.x,Rt=g+S.y,St=y+W.x,Dt=g+W.y;je+=Math.hypot(St-X,Dt-Rt)}let Ge=Math.max(1.2,je/150),He=`conn-path-${m}`,wt=`arrow-start-${m*2}`,Pt=`arrow-end-${m*2+1}`,It=()=>L("defs",{children:[xe&&w("start",O,m*2),re&&w("end",O,m*2+1)]}),Ie=({reverse:f=!1,begin:S="0s"})=>L("g",{filter:"url(#conn-glow)",children:[d("ellipse",{cx:"5",cy:"0",rx:"4",ry:"2",fill:O,opacity:"0.8"}),d("animateMotion",{dur:`${Ge}s`,repeatCount:"indefinite",begin:S,keyPoints:f?"1;0":"0;1",keyTimes:"0;1",calcMode:"linear",rotate:"auto",children:d("mpath",{xlinkHref:`#${He}`})})]}),Ct=()=>he?ve==="both"?L(Qe,{children:[d(Ie,{reverse:!1,begin:"0s"}),d(Ie,{reverse:!0,begin:`${Ge/2}s`})]}):ve==="start"?d(Ie,{reverse:!0}):d(Ie,{reverse:!1}):null;return L("g",{className:"animate-appear-top cursor-default",style:k(".2s"),children:[d(It,{}),d("path",{id:He,d:vt,stroke:O,strokeWidth:"2",strokeLinecap:"round",fill:"none",markerStart:xe?`url(#${wt})`:void 0,markerEnd:re?`url(#${Pt})`:void 0,style:b.style}),Ct(),oe&&d("g",{transform:`translate(${gt}, ${xt}) rotate(${ht})`,children:d("text",{x:"12",y:"12",textAnchor:"middle",dominantBaseline:"middle",className:"text-sm font-bold fill-accent",children:oe})}),be&&d(Qe,{children:N.map((f,S)=>d("circle",{cx:y+f.x,cy:g+f.y,r:"3",fill:S===0?"red":S===N.length-1?"green":"blue"},S))})]},m)}),I=()=>e.map((b,m)=>{let{x:l,y:x,width:R,height:F,color:H="#52548B",name:Z,showDebug:xe,image:re}=b,O=u(l,x),oe=u(l+R,x),be=u(l+R,x-F),he=u(l,x-F),ve=[[y+O.x,g+O.y],[y+oe.x,g+oe.y],[y+be.x,g+be.y],[y+he.x,g+he.y]].map(([U,C])=>`${U},${C}`).join(" "),N=u(l+R/2,x-F/2);return d("g",{className:"group animate-appear-top cursor-default",style:k(),children:L("g",{className:"drop-shadow-[0_9px_7px_var(--shadow-color)] hover:drop-shadow-[0_12px_10px_var(--shadow-color)] hover:[--translate:-8px] transition-transform duration-300",style:{"--shadow-color":`color-mix(in srgb, ${H} 10%, var(--color-bg-ground))`,translate:"0 var(--translate, -4px)"},children:[d("polygon",{points:ve,fill:H,strokeLinejoin:"round",className:"opacity-80 group-hover:opacity-100 transition-opacity duration-all duration-300"}),re&&(()=>{let U=y+O.x+5,C=g+O.y-80;return d("image",{href:re,x:U,y:C,width:"128px"})})(),Z&&L("g",{transform:`translate(${y+N.x}, ${g+N.y})`,children:[d("rect",{x:-(Z.length*4+8),y:-12,width:Z.length*8+16,height:24,fill:"#181a59",fillOpacity:"0.8",rx:"4"}),d("text",{x:0,y:0,textAnchor:"middle",dominantBaseline:"middle",className:"text-base",fill:"white",children:Z})]}),xe&&L("text",{x:y+N.x,y:g+N.y+20,textAnchor:"middle",fill:"white",fontSize:"10",opacity:"0.7",children:["(",l,", ",x,")"]})]})},m)});return L("figure",{className:a("m-0 w-full",h),role:"img","aria-label":s,children:[L("svg",{viewBox:`0 0 ${o} ${n}`,preserveAspectRatio:"xMidYMid meet",className:"w-full",children:[L("defs",{children:[L("filter",{id:"conn-glow",x:"-50%",y:"-50%",width:"200%",height:"200%",children:[d("feGaussianBlur",{in:"SourceGraphic",stdDeviation:"3",result:"blur"}),L("feMerge",{children:[d("feMergeNode",{in:"blur"}),d("feMergeNode",{in:"SourceGraphic"})]})]}),L("mask",{id:"fadeMask",maskUnits:"objectBoundingBox",children:[L("radialGradient",{id:"fadeGradient",children:[d("stop",{offset:"40%",stopColor:"white"}),d("stop",{offset:"90%",stopColor:"black"})]}),d("rect",{width:"100%",height:"100%",fill:"url(#fadeGradient)"})]}),L("filter",{id:"text-backdrop-blur",x:"-200%",y:"-200%",width:"500%",height:"500%",children:[d("feGaussianBlur",{in:"BackgroundImage",stdDeviation:"20",result:"blurredBg"}),d("feFlood",{floodColor:"black",floodOpacity:"0.8",result:"bgColor"}),d("feComposite",{in:"bgColor",in2:"blurredBg",operator:"in",result:"coloredBlur"}),d("feComposite",{in:"coloredBlur",in2:"SourceGraphic",operator:"over",result:"final"})]})]}),d("rect",{width:o,height:n,fill:"transparent"}),d("g",{mask:"url(#fadeMask)",children:c()}),v(),I()]}),s&&d("figcaption",{className:"-translate-y-6 text-center text-sm text-tertiary text-balance",children:s})]})};import{jsx as $,jsxs as Ee}from"react/jsx-runtime";var Wt=({style:e,className:t=""})=>Ee("svg",{viewBox:"0 0 99 20",xmlns:"http://www.w3.org/2000/svg",style:e,className:t,children:[$("path",{fill:"var(--color-wordmark-prefix, var(--color-brand))",d:"M6.059 19.351c-.92733 0-1.79833-.1733-2.613-.52-.81467-.3553-1.521-.858-2.119-1.508-.589333-.65-1.018333-1.417-1.2869999-2.301L2.666 14.294c.25133.806.689 1.4257 1.313 1.859.624.4247 1.31733.6327 2.08.624.68467-.0087 1.287-.169 1.807-.481.52-.312.92733-.7323 1.222-1.261.29467-.5373.442-1.1527.442-1.846 0-1.04-.325-1.898-.975-2.574-.64133-.676-1.482-1.014-2.522-1.014-.29467 0-.598.04333-.91.13-.30333.08667-.58933.19933-.858.338L2.991 7.924l6.604-5.837.286.78h-9.1V.279999h11.258V2.867L6.553 8.145l-.026-.884c1.17867 0 2.20133.26433 3.068.793.8667.52 1.534 1.23067 2.002 2.132.4767.8927.715 1.8937.715 3.003 0 1.196-.2817 2.2577-.845 3.185-.5547.9273-1.3043 1.6553-2.249 2.184-.936.5287-1.989.793-3.159.793Zm15.4769.039c-1.3087 0-2.4397-.325-3.393-.975-.9447-.65-1.677-1.534-2.197-2.652-.5113-1.1267-.767-2.392-.767-3.796 0-1.4127.26-2.67367.78-3.783.52-1.118 1.2567-1.99767 2.21-2.639.962-.65 2.1017-.975 3.419-.975 1.326 0 2.4397.325 3.341.975.91.64133 1.5947 1.521 2.054 2.639.468 1.118.702 2.379.702 3.783s-.234 2.665-.702 3.783c-.468 1.118-1.157 2.0063-2.067 2.665-.91.65-2.0367.975-3.38.975Zm.377-2.457c.8927 0 1.6207-.2123 2.184-.637.5633-.4247.975-1.0097 1.235-1.755.26-.7453.39-1.6033.39-2.574 0-.9707-.1343-1.8287-.403-2.574-.26-.74533-.6673-1.326-1.222-1.742-.546-.416-1.2437-.624-2.093-.624-.9013 0-1.6423.221-2.223.663-.5807.442-1.014 1.03567-1.3 1.781-.2773.7453-.416 1.5773-.416 2.496 0 .9273.1387 1.768.416 2.522.286.7453.7107 1.339 1.274 1.781.572.442 1.2913.663 2.158.663ZM25.7219 19V8.899h-.312V.279999h2.73V19h-2.418Z"}),$("path",{fill:"var(--color-wordmark, var(--color-content-secondary))",d:"m35.8333 19-5.096-14.04h2.743l3.731 10.634 3.731-10.634h2.743L38.5893 19h-2.756Zm16.1734.39c-1.3953 0-2.6217-.3033-3.679-.91-1.0487-.6153-1.8677-1.469-2.457-2.561-.5807-1.1007-.871-2.3747-.871-3.822 0-1.534.286-2.86433.858-3.991.5807-1.12667 1.3867-1.99767 2.418-2.613 1.0313-.61533 2.2317-.923 3.601-.923 1.43 0 2.6477.33367 3.653 1.001 1.0053.65867 1.755 1.599 2.249 2.821.5027 1.222.702 2.6737.598 4.355h-2.717v-.988c-.0173-1.6293-.3293-2.834-.936-3.614-.598-.78-1.5123-1.17-2.743-1.17-1.3607 0-2.3833.429-3.068 1.287-.6847.858-1.027 2.0973-1.027 3.718 0 1.5427.3423 2.7387 1.027 3.588.6847.8407 1.6727 1.261 2.964 1.261.8493 0 1.5817-.1907 2.197-.572.624-.39 1.1093-.9447 1.456-1.664l2.665.845c-.546 1.2567-1.3737 2.2317-2.483 2.925-1.1093.6847-2.3443 1.027-3.705 1.027Zm-5.005-6.643v-2.119h10.023v2.119h-10.023ZM61.5534 19V4.96h2.418v3.406l-.338-.442c.1733-.45067.3986-.86233.676-1.235.2773-.38133.598-.69333.962-.936.3553-.26.7496-.45933 1.183-.598.442-.14733.8926-.234 1.352-.26.4593-.03467.9013-.013 1.326.065v2.548c-.4594-.12133-.9707-.156-1.534-.104-.5547.052-1.066.22967-1.534.533-.442.286-.793.63267-1.053 1.04-.2514.40733-.4334.86233-.546 1.365-.1127.494-.169 1.0183-.169 1.573V19h-2.743Zm15.1758.377c-1.7073 0-3.0983-.377-4.173-1.131-1.0746-.754-1.7333-1.8157-1.976-3.185l2.782-.429c.1734.728.572 1.3043 1.196 1.729.6327.416 1.417.624 2.353.624.8494 0 1.5124-.1733 1.989-.52.4854-.3467.728-.8233.728-1.43 0-.3553-.0866-.6413-.26-.858-.1646-.2253-.5156-.4377-1.053-.637-.5373-.1993-1.3563-.4463-2.457-.741-1.2046-.312-2.1623-.6457-2.873-1.001-.702-.364-1.2046-.7843-1.508-1.261-.2946-.4853-.442-1.07033-.442-1.755 0-.84933.2254-1.59033.676-2.223.4507-.63267 1.0834-1.12233 1.898-1.469.8234-.34667 1.7854-.52 2.886-.52 1.0747 0 2.0324.169 2.873.507.8407.338 1.521.819 2.041 1.443.52.61533.832 1.339.936 2.171l-2.782.507c-.0953-.676-.4116-1.209-.949-1.599-.5373-.39-1.235-.60233-2.093-.637-.8233-.03467-1.4906.104-2.002.416-.5113.30333-.767.72367-.767 1.261 0 .312.0954.57633.286.793.1994.21667.5807.42467 1.144.624.5634.1993 1.3954.4377 2.496.715 1.1787.3033 2.1147.6413 2.808 1.014.6934.364 1.1874.8017 1.482 1.313.3034.5027.455 1.1137.455 1.833 0 1.3867-.507 2.4743-1.521 3.263-1.0053.7887-2.3963 1.183-4.173 1.183Zm15.0575.013c-1.3953 0-2.6217-.3033-3.679-.91-1.0487-.6153-1.8677-1.469-2.457-2.561-.5807-1.1007-.871-2.3747-.871-3.822 0-1.534.286-2.86433.858-3.991.5807-1.12667 1.3867-1.99767 2.418-2.613 1.0313-.61533 2.2317-.923 3.601-.923 1.43 0 2.6477.33367 3.653 1.001 1.0053.65867 1.755 1.599 2.249 2.821.5027 1.222.702 2.6737.598 4.355h-2.717v-.988c-.0173-1.6293-.3293-2.834-.936-3.614-.598-.78-1.5123-1.17-2.743-1.17-1.3607 0-2.3833.429-3.068 1.287-.6847.858-1.027 2.0973-1.027 3.718 0 1.5427.3423 2.7387 1.027 3.588.6847.8407 1.6727 1.261 2.964 1.261.8493 0 1.5817-.1907 2.197-.572.624-.39 1.1093-.9447 1.456-1.664l2.665.845c-.546 1.2567-1.3737 2.2317-2.483 2.925-1.1093.6847-2.3443 1.027-3.705 1.027Zm-5.005-6.643v-2.119h10.023v2.119h-10.023Z"})]}),Be=({style:e,className:t=""})=>Ee("svg",{viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:e,className:t,children:[$("path",{d:"M5.28808 19.7527L14.1837 28.4509L14.1837 39.9995L5.28302 31.294L5.28808 19.7527Z",fill:"var(--logo-color, #8d670b)"}),$("path",{d:"M33.9949 19.7527L25.0993 28.4509L25.0993 39.9995L34 31.294L33.9949 19.7527Z",fill:"var(--logo-color, #8d670b)"}),$("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M29.3294 13.2721L34.2049 19.747V31.294L24.9911 19.747V24.8481H24.9904V24.8488L14.4968 24.8488V19.7477H14.4968V19.747L5.28302 31.294L5.28302 19.7527L10.1585 13.28V9.17384C10.1585 3.05795 14.9512 0 19.744 0C22.106 0 24.468 0.742731 26.2563 2.22819C28.0966 3.75685 29.3294 6.07206 29.3294 9.17384L29.3294 13.2721L29.3294 13.2721ZM19.744 5.75545C21.2537 5.75545 22.7634 6.83514 22.7634 8.99452L22.7634 13.2748L16.7245 13.2773V8.99452C16.7245 7.40326 17.5444 6.3983 18.5799 5.97965C18.9496 5.83019 19.3468 5.75545 19.744 5.75545ZM16.7245 13.2773V13.28L22.7634 13.28L16.7245 13.28V13.2773H16.7245ZM19.7439 29.9788L14.4968 24.8488L24.9911 24.8488L19.7439 29.9788Z",fill:"url(#logo-rocket-gradient)"}),$("defs",{children:Ee("linearGradient",{id:"logo-rocket-gradient",x1:"12.0755",y1:"1.88679",x2:"31.3208",y2:"32.4528",gradientUnits:"userSpaceOnUse",children:[$("stop",{stopColor:"var(--logo-top-color, #f0c732)"}),$("stop",{offset:"1",stopColor:"var(--logo-bottom-color, #ffc800)"})]})})]});var Ue={spinnerLogo:"s",circle:"e",loaderRotate:"r"};import{jsx as et,jsxs as Jt}from"react/jsx-runtime";var Yt=()=>Jt("div",{className:Ue.spinnerLogo,children:[et(Be,{}),et("span",{className:Ue.circle})]});import{assets as ei}from"@3dverse/design-tokens";import{jsx as de,jsxs as Qt}from"react/jsx-runtime";var Kt="relative inline-flex items-center justify-center after:content-[''] after:absolute after:left-1/2 after:top-1/2 after:w-[125%] after:h-0.5 after:rounded-[1px] after:bg-accent after:-translate-x-1/2 after:-translate-y-1/2 after:-rotate-45 after:origin-center after:pointer-events-none";function P({variant:e,crossed:t,className:i,style:r}){return e==="shadowCast"?Qt("div",{role:"img",className:"relative text-tertiary",style:r,children:[de(P,{className:a("relative z-10",i)}),de(P,{className:a("absolute top-0 left-0 translate-x-[40%] translate-y-[15%] scale-94 text-underground/80",i),style:{filter:"drop-shadow(3px 6px 30px color-mix(in oklab, var(--color-content-tertiary) 80%, transparent))"}})]}):t?de("span",{className:Kt,style:r,"aria-hidden":!0,children:de("i",{"data-slot":"icon",className:i})}):de("i",{"data-slot":"icon",className:i,style:r,"aria-hidden":!0})}import{Fragment as ai,jsx as ce}from"react/jsx-runtime";var ti=({assetId:e,variant:t,weight:i="light",className:r=""})=>{let{color:o,fontAwesome:n}=ei[e],s=t==="file"?`
|
|
1
|
+
var Y={container:"t",inner:"o",innerShape:"i",shape:"a",shapeAlt:"n"};import{jsx as Ie,jsxs as _t}from"react/jsx-runtime";var De=["#EDB5FB","#FBB5B5","#F4D35B","#B5FBF7","#B5DDFB","#B5C2FB","#CBB5FB","#189AB4","#75E6DA","#D4F1F4","#EF7C8E","#FAE8E0","#B6E2D3","#D8A7B1","#F6EEE0","#E4B7A0","#C38370","#94DFE6","#EBDCC7","#B5EECB","#DCC5C3","#D6E1EB","#ADC4D7","#FACB80","#FBD8B0","#feb191","#a2f9c6"],se=[{},{borderWidth:"2px",borderStyle:"solid",borderColor:"currentColor",backgroundColor:"transparent"},{scale:"0.75"},{scale:"0.5"},{borderRadius:"9999px"},{borderRadius:"9999px",borderWidth:"2px",borderStyle:"solid",borderColor:"currentColor",backgroundColor:"transparent"},{borderRadius:"9999px",height:"50%",translate:"0 50%"},{borderRadius:"9999px",scale:"0.5"},{borderTopLeftRadius:"9999px",borderTopRightRadius:"9999px"},{borderTopRightRadius:"9999px",borderBottomRightRadius:"9999px"},{borderBottomRightRadius:"9999px",borderBottomLeftRadius:"9999px"},{borderTopLeftRadius:"9999px",borderBottomLeftRadius:"9999px"},{borderTopLeftRadius:"9999px",borderTopRightRadius:"9999px",height:"50%"},{borderTopRightRadius:"9999px",borderBottomRightRadius:"9999px",width:"50%"},{borderBottomRightRadius:"9999px",borderBottomLeftRadius:"9999px",height:"50%"},{borderTopLeftRadius:"9999px",borderBottomLeftRadius:"9999px",width:"50%"},{borderBottomRightRadius:"9999px",borderTopLeftRadius:"9999px"},{borderBottomLeftRadius:"9999px",borderTopRightRadius:"9999px"},{},{},{borderRadius:"100% 0% 100% 0% / 100% 100% 0% 0%"},{borderRadius:"100% 0% 100% 0% / 100% 100% 0% 0%",transform:"rotate(180deg)"},{borderRadius:"100% 0% 100% 0% / 100% 100% 0% 0%",transform:"rotate(180deg) scaleY(-1)"},{borderRadius:"100% 0% 100% 0% / 100% 100% 0% 0%",transform:"scaleY(-1)"},{clipPath:"polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%)"},{clipPath:"polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%)"},{clipPath:'path("M12 4.248c-3.148-5.402-12-3.825-12 2.944 0 4.661 5.571 9.427 12 15.808 6.43-6.381 12-11.147 12-15.808 0-6.792-8.875-8.306-12-2.944z")'},{clipPath:"polygon(0 0, 0% 100%, 100% 100%)"},{clipPath:"polygon(61% 50%, 100% 0, 100% 100%, 0% 100%)"}],Le=se.length,Me=De.length,Ye=[0,180,270],_e=101,Je=200,Ke=301,Mt=({id:e,shape:t,colors:o,className:r,style:a})=>{let n=Number(e?.replace(/\D/g,"").replace(/-/g,"")),s=[De[o?.[0]??Math.floor(n%_e%Me)],De[o?.[1]??Math.floor(n%Je%Me)],De[o?.[2]??Math.floor(n%Ke%Me)]],p=t||[Math.floor(n%_e%Le),Math.floor(n%Je%Le),Math.floor(n%Ke%Le)],b=Ye[n%_e%Ye.length];return Ie("div",{role:"img","aria-label":"Project icon",className:`${Y.container} ${r}`,style:{"--gradient-from":s[1],"--gradient-to":s[2],"--gradient-stops":"var(--gradient-from), var(--gradient-to)",...a},children:_t("div",{className:Y.innerShape,style:{color:s[0],rotate:`${b}deg`},children:[Ie("span",{className:Y.shape,style:{...se[p[0]],boxShadow:"5px 0px 0px 6px color-mix(in srgb, currentColor 40%, transparent), 4px 0px 0px 32px color-mix(in srgb, currentColor 30%, transparent)"}}),Ie("span",{className:`${Y.shape} ${Y.shapeAlt}`,style:se[p[1]]}),Ie("span",{className:Y.shape,style:se[p[2]]})]})})};import{entityComponents as Ut}from"@3dverse/design-tokens";import{Icon as Ot,cn as qt}from"@3dverse/ui-lib";import{entityComponents as Qe}from"@3dverse/design-tokens";import{Icon as Bt,cn as At}from"@3dverse/ui-lib";import{Fragment as et,jsx as Be}from"react/jsx-runtime";var Ae=({componentId:e,variant:t="default",style:o,className:r=""})=>{if(!Qe[e])return Be(et,{children:e});let{color:a,fontAwesome:n}=Qe[e];return n?Be(Bt,{className:At("flex! justify-center items-center h-[2.5em] w-auto! aspect-square shrink-0 text-base text-current bg-current/20 rounded-full","fal",n,r),style:{color:a,boxShadow:t==="special"?"0 0 10px color-mix(in srgb, var(--entity-component-color), var(--color-bg-underground) 100%), 20px 0 0px -11px color-mix(in srgb, currentcolor, transparent 85%), -20px 0 0px -11px color-mix(in srgb, currentcolor, transparent 85%)":void 0,...o}}):Be(et,{children:e})};var tt={properties:{animation_controller:{description:"Drives skeletal animation using an Animation Graph and Animation Set; animates descendant skinned meshes whose skeletons are compatible with the set.",properties:{animationGraphRef:{description:"Referenced Animation Graph (UUID).",pattern:"^(00000000-0000-0000-0000-000000000000|[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})$",title:"Animation Graph Ref",type:"string","x-asset-ref":"animation_graph","x-display-type":"UUID"},animationSetRef:{description:"Referenced Animation Set (UUID).",pattern:"^(00000000-0000-0000-0000-000000000000|[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})$",title:"Animation Set Ref",type:"string","x-asset-ref":"animation_set","x-display-type":"UUID"},dataJSON:{description:"Animation Graph input parameters in JSON format.",title:"Data Json",type:"object","x-display-type":"JSON"},rootBoneEntityRef:{description:"Entity containing the Bone component for the skeleton's root bone.",properties:{linkage:{default:[],items:{description:"A unique identifier for an entity. It should be unique across all entities in the scene, but it is not guaranteed to be unique across all scenes.",pattern:"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",type:"string","x-display-type":"Entity Unique Identifier"},type:"array"},originalEUID:{default:"00000000-0000-0000-0000-000000000000",description:"A unique identifier for an entity. It should be unique across all entities in the scene, but it is not guaranteed to be unique across all scenes.",pattern:"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",type:"string","x-display-type":"Entity Unique Identifier"}},required:["originalEUID","linkage"],title:"Root Bone Entity Ref",type:"object","x-display-type":"Entity Reference"},rootMotionEnabled:{default:!1,description:"Enable root motion extraction and application to the entity transform.",title:"Root Motion Enabled",type:"boolean","x-display-type":"Boolean"}},title:"Animation Controller",type:"object","x-category":"animation"},animation_sequence_controller:{description:"Controls playback of an Animation Sequence; assigns tracks to entities.",properties:{animationSequenceRef:{description:"Referenced Animation Sequence (UUID).",pattern:"^(00000000-0000-0000-0000-000000000000|[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})$",title:"Animation Sequence Ref",type:"string","x-asset-ref":"animation_sequence","x-display-type":"UUID"},entities:{additionalProperties:{properties:{linkage:{default:[],items:{description:"A unique identifier for an entity. It should be unique across all entities in the scene, but it is not guaranteed to be unique across all scenes.",pattern:"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",type:"string","x-display-type":"Entity Unique Identifier"},type:"array"},originalEUID:{default:"00000000-0000-0000-0000-000000000000",description:"A unique identifier for an entity. It should be unique across all entities in the scene, but it is not guaranteed to be unique across all scenes.",pattern:"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",type:"string","x-display-type":"Entity Unique Identifier"}},required:["originalEUID","linkage"],type:"object","x-display-type":"Entity Reference"},description:"Map from track UUID to assigned entity.",title:"Entities",type:"object"},loop:{default:!1,description:"Loop playback when reaching the stop offset.",title:"Loop",type:"boolean","x-display-type":"Boolean"},playbackSpeed:{default:1,description:"Playback speed multiplier. Negative values play in reverse.",format:"float",title:"Playback Speed",type:"number","x-display-type":"Float"},startOffset:{default:0,description:"Normalized start offset [0, 1].",format:"float",maximum:1,minimum:0,title:"Start Offset",type:"number","x-display-type":"Float"},stopOffset:{default:1,description:"Normalized stop offset [0, 1]. When looping, playback wraps to startOffset at this point.",format:"float",maximum:1,minimum:0,title:"Stop Offset",type:"number","x-display-type":"Float"}},title:"Animation Sequence Controller",type:"object","x-category":"animation"},bone:{description:"Associates this entity with a bone in a skeleton (for attachments and transforms).",properties:{boneIndex:{description:"Zero-based index of this bone within the bound skeleton.",format:"int32",minimum:0,title:"Bone Index",type:"integer","x-display-type":"Unsigned Integer"}},title:"Bone",type:"object","x-category":"animation","x-requires":{allOf:["local_transform"]}},box_geometry:{description:"Box geometry.",properties:{dimension:{default:[1,1,1],description:"Box dimensions (width, height, depth) in meters.",items:{format:"float",type:"number"},maxItems:3,minItems:3,title:"Dimension",type:"array","x-display-type":"Vector3","x-unit":"m"},offset:{default:[0,0,0],description:"Local offset of the geometry origin (meters).",items:{format:"float",type:"number"},maxItems:3,minItems:3,title:"Offset",type:"array","x-display-type":"Vector3","x-unit":"m"}},title:"Box Geometry",type:"object","x-category":"geometry","x-requires":{allOf:["local_transform"]}},camera:{description:"Virtual camera.",properties:{dataJSON:{description:"Render Graph input parameters in JSON; schema defined by renderGraphRef.",title:"Data Json",type:"object","x-display-type":"JSON"},renderGraphRef:{description:"Referenced render graph to use for rendering from this camera.",pattern:"^(00000000-0000-0000-0000-000000000000|[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})$",title:"Render Graph Ref",type:"string","x-asset-ref":"render_graph","x-display-type":"UUID"},renderTargetIndex:{default:-1,description:"Index of the render target to blit/output to. -1 indicates the default target.",format:"int32",title:"Render Target Index",type:"integer","x-display-type":"Integer"}},title:"Camera",type:"object","x-category":"camera","x-requires":{allOf:["local_transform"],oneOf:["orthographic_lens","perspective_lens","custom_lens"]}},capsule_geometry:{description:"Capsule geometry.",properties:{axis:{default:1,description:"Alignment axis of the capsule: 0=X, 1=Y, 2=Z.",format:"int32",oneOf:[{const:0,description:"Capsule is aligned with the X Axis.",title:"X-Axis"},{const:1,description:"Capsule is aligned with the Y Axis.",title:"Y-Axis"},{const:2,description:"Capsule is aligned with the Z Axis.",title:"Z-Axis"}],title:"Axis",type:"integer","x-display-type":"Integer"},height:{default:1,description:"Height of the cylindrical mid-section (meters).",format:"float",title:"Height",type:"number","x-display-type":"Float","x-unit":"m"},offset:{default:[0,0,0],description:"Local offset of the geometry origin (meters).",items:{format:"float",type:"number"},maxItems:3,minItems:3,title:"Offset",type:"array","x-display-type":"Vector3","x-unit":"m"},radius:{default:.5,description:"Radius of the hemispherical ends (meters).",format:"float",title:"Radius",type:"number","x-display-type":"Float","x-unit":"m"}},title:"Capsule Geometry",type:"object","x-category":"geometry","x-requires":{allOf:["local_transform"]}},character_controller:{description:"Kinematic character controller for collision-constrained movement without a rigid body. Uses tuned collision handling for responsive control.",properties:{skinWidth:{default:0,description:"Collision skin width (meters).",format:"float",title:"Skin Width",type:"number","x-display-type":"Float","x-unit":"m"},slopeLimit:{default:45,description:"Maximum walkable slope (degrees). Slopes steeper than this are not walkable.",format:"float",title:"Slope Limit",type:"number","x-display-type":"Float","x-unit":"deg"},stepOffset:{default:0,description:"Maximum climbable step height. Steps higher than this cannot be climbed automatically.",format:"float",title:"Step Offset",type:"number","x-display-type":"Float","x-unit":"m"}},title:"Character Controller",type:"object","x-category":"physics","x-requires":{allOf:["local_transform","physics_material"],oneOf:["box_geometry","capsule_geometry"]}},collision_geometry_ref:{description:"Reference to a collision geometry asset used by physics.",properties:{collisionGeometryRef:{description:"Referenced collision geometry (UUID).",pattern:"^(00000000-0000-0000-0000-000000000000|[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})$",title:"Collision Geometry Ref",type:"string","x-asset-ref":"collision_geometry","x-display-type":"UUID"}},title:"Collision Geometry Reference",type:"object","x-category":"physics","x-requires":{allOf:["local_transform","physics_material"]}},constraint:{description:"6-DoF constraint built on a Joint. Defaults to fixed; selectively unlock translation and rotation on X/Y/Z and configure limits and springs.",properties:{motionLimitSpringDamping:{default:[0,0,0],description:"Linear limit spring damping per axis (N\xB7s/m).",items:{format:"float",type:"number"},maxItems:3,minItems:3,title:"Motion Limit Spring Damping",type:"array","x-display-type":"Vector3","x-unit":"N.s/m"},motionLimitSpringStiffness:{default:[0,0,0],description:"Linear limit spring stiffness per axis (N/m). >0 makes the limit soft (spring-like).",items:{format:"float",type:"number"},maxItems:3,minItems:3,title:"Motion Limit Spring Stiffness",type:"array","x-display-type":"Vector3","x-unit":"N/m"},motionLowerLimit:{default:[0,0,0],description:"Lower linear limit per axis (meters).",items:{format:"float",type:"number"},maxItems:3,minItems:3,title:"Motion Lower Limit",type:"array","x-display-type":"Vector3","x-unit":"m"},motionUpperLimit:{default:[0,0,0],description:"Upper linear limit per axis (meters).",items:{format:"float",type:"number"},maxItems:3,minItems:3,title:"Motion Upper Limit",type:"array","x-display-type":"Vector3","x-unit":"m"},swingLimitAngle:{default:[0,0],description:"Swing cone half-angles about Y and Z of the constraint frame (degrees). 0 does not restrict rotation; max 180. Used if either swing axis is limited.",items:{format:"float",type:"number"},maxItems:2,minItems:2,title:"Swing Limit Angle",type:"array","x-display-type":"Vector2","x-unit":"deg"},swingSpringDamping:{default:0,description:"Swing limit spring damping (N\xB7m\xB7s/rad).",format:"float",title:"Swing Spring Damping",type:"number","x-display-type":"Float","x-unit":"N.m.s/rad"},swingSpringStiffness:{default:0,description:"Swing limit spring stiffness (N\xB7m/rad). >0 makes the limit soft.",format:"float",title:"Swing Spring Stiffness",type:"number","x-display-type":"Float","x-unit":"N.m/rad"},twistLimitAngle:{default:[0,0],description:"Twist angle limits (min,max) around the twist axis (degrees). Range (\u2212360, 360).",items:{format:"float",type:"number"},maxItems:2,minItems:2,title:"Twist Limit Angle",type:"array","x-display-type":"Vector2","x-unit":"deg"},twistSpringDamping:{default:0,description:"Twist limit spring damping (N\xB7m\xB7s/rad).",format:"float",title:"Twist Spring Damping",type:"number","x-display-type":"Float","x-unit":"N.m.s/rad"},twistSpringStiffness:{default:0,description:"Twist limit spring stiffness (N\xB7m/rad). >0 makes the limit soft.",format:"float",title:"Twist Spring Stiffness",type:"number","x-display-type":"Float","x-unit":"N.m/rad"},unlockedMotion:{default:0,description:"Unlock motion along/around the specified axes.",format:"int32",minimum:0,title:"Unlocked Motion",type:"integer","x-bitFlags":[{description:"Unlock motion along the X axis.",name:"Along X",value:1},{description:"Unlock motion along the Y axis.",name:"Along Y",value:2},{description:"Unlock motion along the Z axis.",name:"Along Z",value:4},{description:"Unlock motion around the X axis.",name:"Around X",value:8},{description:"Unlock motion around the Y axis.",name:"Around Y",value:16},{description:"Unlock motion around the Z axis.",name:"Around Z",value:32}],"x-display-type":"Unsigned Integer"}},title:"Constraint",type:"object","x-category":"physics","x-requires":{allOf:["joint"]}},constraint_actuator:{description:"Drives a Constraint toward target position/orientation and velocities using configurable stiffness, damping, and force limits.",properties:{angularDamping:{default:[0,0,0],description:"Angular drive damping per axis (N\xB7m\xB7s/rad).",items:{format:"float",type:"number"},maxItems:3,minItems:3,title:"Angular Damping",type:"array","x-display-type":"Vector3","x-unit":"N.m.s/rad"},angularForceLimit:{default:[-1,-1,-1],description:"Max angular drive torque/impulse per axis (N\xB7m). \u22121 = unlimited.",items:{format:"float",type:"number"},maxItems:3,minItems:3,title:"Angular Force Limit",type:"array","x-display-type":"Vector3","x-unit":"N.m"},angularStiffness:{default:[0,0,0],description:"Angular drive stiffness per axis (N\xB7m/rad). >0 applies spring torque toward the goal.",items:{format:"float",type:"number"},maxItems:3,minItems:3,title:"Angular Stiffness",type:"array","x-display-type":"Vector3","x-unit":"N.m/rad"},angularVelocity:{default:[0,0,0],description:"Target angular velocity (rad/s).",items:{format:"float",type:"number"},maxItems:3,minItems:3,title:"Angular Velocity",type:"array","x-display-type":"Vector3","x-unit":"rad/s"},goalOrientation:{default:[0,0,0,1],description:"Target angular orientation.",items:{format:"float",type:"number"},maxItems:4,minItems:4,title:"Goal Orientation",type:"array","x-display-type":"Quaternion"},goalPosition:{default:[0,0,0],description:"Target linear position offset (meters).",items:{format:"float",type:"number"},maxItems:3,minItems:3,title:"Goal Position",type:"array","x-display-type":"Vector3","x-unit":"m"},linearDamping:{default:[0,0,0],description:"Linear drive damping per axis (N\xB7s/m).",items:{format:"float",type:"number"},maxItems:3,minItems:3,title:"Linear Damping",type:"array","x-display-type":"Vector3","x-unit":"N.s/m"},linearForceLimit:{default:[-1,-1,-1],description:"Max linear drive force/impulse per axis (N). \u22121 = unlimited.",items:{format:"float",type:"number"},maxItems:3,minItems:3,title:"Linear Force Limit",type:"array","x-display-type":"Vector3","x-unit":"N"},linearStiffness:{default:[0,0,0],description:"Linear drive stiffness per axis (N/m). >0 applies spring force toward the goal.",items:{format:"float",type:"number"},maxItems:3,minItems:3,title:"Linear Stiffness",type:"array","x-display-type":"Vector3","x-unit":"N/m"},linearVelocity:{default:[0,0,0],description:"Target linear velocity (m/s).",items:{format:"float",type:"number"},maxItems:3,minItems:3,title:"Linear Velocity",type:"array","x-display-type":"Vector3","x-unit":"m/s"},type:{default:1,description:"Drive type: apply as force or as acceleration.",format:"int32",oneOf:[{const:0,title:"FORCE"},{const:1,title:"ACCELERATION"}],title:"Type",type:"integer","x-display-type":"Integer"}},title:"Constraint Actuator",type:"object","x-category":"physics","x-requires":{allOf:["constraint"]}},culling_geometry:{description:"Enables culling using a simple analytic shape. Add alongside a geometry component (box, cylinder, plane, sphere).",properties:{isAdditive:{default:!0,description:"Additive: show elements inside the geometry. Subtractive: show elements outside the geometry.",title:"Is Additive",type:"boolean","x-display-type":"Boolean"}},title:"Culling Geometry",type:"object","x-category":"rendering","x-requires":{allOf:["local_transform"],oneOf:["box_geometry","cylinder_geometry","plane_geometry","sphere_geometry"]}},custom_lens:{description:"Custom projection lens using an explicit projection matrix.",properties:{cs_from_vs:{description:"Projection matrix mapping view-space to clip-space (cs_from_vs).",items:{format:"float",type:"number"},maxItems:16,minItems:16,title:"Cs From Vs",type:"array","x-display-type":"Matrix4"}},title:"Custom Lens",type:"object","x-category":"camera","x-requires":{allOf:["camera"]}},cylinder_geometry:{description:"Cylinder geometry.",properties:{axis:{default:1,description:"Alignment axis of the cylinder: 0=X, 1=Y, 2=Z.",format:"int32",oneOf:[{const:0,description:"Cylinder is aligned with the X Axis.",title:"X-Axis"},{const:1,description:"Cylinder is aligned with the Y Axis.",title:"Y-Axis"},{const:2,description:"Cylinder is aligned with the Z Axis.",title:"Z-Axis"}],title:"Axis",type:"integer","x-display-type":"Integer"},height:{default:1,description:"Height of the cylinder (meters).",format:"float",title:"Height",type:"number","x-display-type":"Float","x-unit":"m"},offset:{default:[0,0,0],description:"Local offset of the geometry origin (meters).",items:{format:"float",type:"number"},maxItems:3,minItems:3,title:"Offset",type:"array","x-display-type":"Vector3","x-unit":"m"},radius:{default:.5,description:"Radius of the cylinder (meters).",format:"float",title:"Radius",type:"number","x-display-type":"Float","x-unit":"m"}},title:"Cylinder Geometry",type:"object","x-category":"geometry","x-requires":{allOf:["local_transform"]}},debug_name:{description:"Human-readable name of the entity.",properties:{value:{description:"Entity name.",title:"Value",type:"string","x-display-type":"String"}},title:"Name",type:"object","x-category":"core"},decal_projector:{description:"Projects a material onto scene surfaces within the projector's box volume.",properties:{zIndex:{default:0,description:"Z-index ordering for decal rendering; higher values render on top of lower ones.",format:"int32",title:"Z Index",type:"integer","x-display-type":"Integer"}},title:"Decal Projector",type:"object","x-category":"rendering","x-requires":{allOf:["local_transform","material_ref","box_geometry"]}},environment:{description:"Scene environment settings, including skybox background and precomputed image-based lighting (IBL). This component is only applied in the scene where this entity lives, it is discarded for subscenes.",properties:{irradianceUUID:{description:"Diffuse irradiance cubemap used for ambient PBR lighting.",pattern:"^(00000000-0000-0000-0000-000000000000|[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})$",title:"Irradiance Uuid",type:"string","x-asset-ref":"cubemap","x-display-type":"UUID"},radianceUUID:{description:"Specular radiance cubemap (prefiltered) used for PBR reflections.",pattern:"^(00000000-0000-0000-0000-000000000000|[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})$",title:"Radiance Uuid",type:"string","x-asset-ref":"cubemap","x-display-type":"UUID"},skyboxUUID:{description:"Skybox cubemap used as the scene background (no lighting effect).",pattern:"^(00000000-0000-0000-0000-000000000000|[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})$",title:"Skybox Uuid",type:"string","x-asset-ref":"cubemap","x-display-type":"UUID"}},title:"Environment",type:"object","x-category":"lighting"},euid:{description:"Unique identifier for the entity.",properties:{value:{description:"Unique identifier value.",pattern:"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",title:"Value",type:"string","x-display-type":"Entity Unique Identifier"}},readOnly:!0,required:["value"],title:"Entity UID",type:"object","x-category":"core"},joint:{description:"Base joint connecting two bodies. By default locks relative position and orientation between constrainer and constrainee.",properties:{breakForce:{default:1e16,description:"Break force threshold (Newtons).",format:"float",title:"Break Force",type:"number","x-display-type":"Float","x-unit":"N"},breakTorque:{default:1e16,description:"Break torque threshold (N\xB7m).",format:"float",title:"Break Torque",type:"number","x-display-type":"Float","x-unit":"N.m"},constrainee:{description:"Entity with a Rigid Body to be constrained.",properties:{linkage:{default:[],items:{description:"A unique identifier for an entity. It should be unique across all entities in the scene, but it is not guaranteed to be unique across all scenes.",pattern:"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",type:"string","x-display-type":"Entity Unique Identifier"},type:"array"},originalEUID:{default:"00000000-0000-0000-0000-000000000000",description:"A unique identifier for an entity. It should be unique across all entities in the scene, but it is not guaranteed to be unique across all scenes.",pattern:"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",type:"string","x-display-type":"Entity Unique Identifier"}},required:["originalEUID","linkage"],title:"Constrainee",type:"object","x-display-type":"Entity Reference","x-required-components":["rigid_body"]},constrainer:{description:"Entity acting as constrainer (rigid/static) or null to constrain to world origin.",properties:{linkage:{default:[],items:{description:"A unique identifier for an entity. It should be unique across all entities in the scene, but it is not guaranteed to be unique across all scenes.",pattern:"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",type:"string","x-display-type":"Entity Unique Identifier"},type:"array"},originalEUID:{default:"00000000-0000-0000-0000-000000000000",description:"A unique identifier for an entity. It should be unique across all entities in the scene, but it is not guaranteed to be unique across all scenes.",pattern:"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",type:"string","x-display-type":"Entity Unique Identifier"}},required:["originalEUID","linkage"],title:"Constrainer",type:"object","x-display-type":"Entity Reference"},enableCollision:{default:!1,description:"Enable collision between constrainer and constrainee bodies.",title:"Enable Collision",type:"boolean","x-display-type":"Boolean"}},title:"Joint",type:"object","x-category":"physics","x-requires":{allOf:["local_transform"]}},label:{description:"Displays an editor-only label in the 3D view.",properties:{camera:{default:[0,0,0,0,0,0,1],description:"Camera framing parameters for navigating to the label.",items:{format:"float",type:"number","x-display-type":"Float"},title:"Camera",type:"array"},description:{description:"Label description text.",title:"Description",type:"string","x-display-type":"String"},speed:{default:15,description:"Camera travel speed (meters/second).",format:"float",title:"Speed",type:"number","x-display-type":"Float"},title:{description:"Label title text.",title:"Title",type:"string","x-display-type":"String"}},title:"Label",type:"object","x-category":"editor","x-requires":{allOf:["local_transform"]}},lineage:{description:"Records the entity's lineage through linkers and parentage.",properties:{ordinal:{default:0,description:"Ordinal index among siblings (editor-only).",format:"int32",title:"Ordinal",type:"integer","x-display-type":"Integer"},parentUUID:{description:"UUID of this entity's parent (default is root).",pattern:"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",title:"Parent Uuid",type:"string","x-display-type":"Entity Unique Identifier"}},title:"Lineage",type:"object","x-category":"core"},local_aabb:{description:"Local-space axis-aligned bounding box.",properties:{max:{description:"Local AABB maximum corner (x,y,z).",items:{format:"float",type:"number"},maxItems:3,minItems:3,title:"Max",type:"array","x-display-type":"Vector3"},min:{description:"Local AABB minimum corner (x,y,z).",items:{format:"float",type:"number"},maxItems:3,minItems:3,title:"Min",type:"array","x-display-type":"Vector3"}},title:"Local AABB",type:"object","x-category":"core"},local_transform:{description:"Local transform of the entity (position, orientation, scale).",properties:{eulerOrientation:{default:[0,0,0],description:"Local orientation as Euler angles (editor-only).",items:{format:"float",type:"number"},maxItems:3,minItems:3,title:"Orientation",type:"array","x-display-type":"Vector3","x-unit":"deg"},globalEulerOrientation:{default:[0,0,0],description:"Last global orientation entered by a user as Euler angles (may be invalid; editor-only).",items:{format:"float",type:"number"},maxItems:3,minItems:3,title:"Global Euler Orientation",type:"array","x-display-type":"Vector3","x-unit":"deg"},orientation:{default:[0,0,0,1],description:"Local orientation as a quaternion.",items:{format:"float",type:"number"},maxItems:4,minItems:4,title:"Orientation",type:"array","x-display-type":"Quaternion"},position:{default:[0,0,0],description:"Local position (x, y, z) in meters.",items:{format:"float",type:"number"},maxItems:3,minItems:3,title:"Position",type:"array","x-display-type":"Vector3","x-unit":"m"},scale:{default:[1,1,1],description:"Local non-uniform scale (x, y, z).",items:{format:"float",type:"number"},maxItems:3,minItems:3,title:"Scale",type:"array","x-display-type":"Vector3"}},title:"Transform",type:"object","x-category":"core"},material:{description:"Assigns a shader to the entity's mesh and provides its input values and specialization constants.",properties:{constantsJSON:{description:"Specialization constants (JSON); schema defined by shaderRef.",title:"Constants Json",type:"object","x-display-type":"JSON"},dataJSON:{description:"Shader input values (JSON); schema defined by shaderRef.",title:"Data Json",type:"object","x-display-type":"JSON"},isDoubleSided:{default:!1,description:"Render both front and back faces (double-sided).",title:"Is Double Sided",type:"boolean","x-display-type":"Boolean"},shaderRef:{description:"Referenced shader (UUID).",pattern:"^(00000000-0000-0000-0000-000000000000|[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})$",title:"Shader Ref",type:"string","x-asset-ref":"shader","x-display-type":"UUID"}},title:"Material",type:"object","x-category":"rendering","x-requires":{allOf:["mesh_ref"]}},material_ref:{description:"Reference to a material to use for rendering.",properties:{faceCulling:{default:0,description:"Face culling override: 0 = inherit from material, 1 = single-sided, 2 = double-sided.",format:"int32",oneOf:[{const:0,title:"Inherit from material"},{const:1,title:"Single Sided"},{const:2,title:"Double Sided"}],title:"Face Culling",type:"integer","x-display-type":"Integer"},value:{description:"Referenced material (UUID).",pattern:"^(00000000-0000-0000-0000-000000000000|[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})$",title:"Value",type:"string","x-asset-ref":"material","x-display-type":"UUID"}},title:"Material Reference",type:"object","x-category":"rendering","x-requires":{oneOf:["mesh_ref","decal_projector"]}},measure:{description:"Displays editor-only measurement annotations in the 3D view.",properties:{color:{default:[1,1,1],description:"Display color for the measurement.",items:{format:"float",type:"number"},maxItems:3,minItems:3,title:"Color",type:"array","x-display-type":"Vector3"},type:{default:0,description:"Measurement type to display.",format:"int32",minimum:0,oneOf:[{const:0,title:"Linear"},{const:1,title:"Angle"},{const:2,title:"Area"},{const:3,title:"Volume"}],title:"Type",type:"integer","x-display-type":"Unsigned Integer"}},title:"Measure",type:"object","x-category":"editor","x-requires":{allOf:["local_transform"]}},mesh_ref:{description:"Reference to a mesh to render (with submesh selection).",properties:{shadowCastingMode:{default:1,description:"Shadow casting mode for this mesh.",format:"int8",minimum:0,oneOf:[{const:0,description:"Shadow casting is disabled for this entity.",title:"Off"},{const:1,description:"Shadow casting is enabled for this entity.",title:"On"}],title:"Shadow Casting Mode",type:"integer","x-display-type":"Unsigned Byte"},submeshIndex:{default:0,description:"Index of the submesh within the mesh's submesh array.",format:"int32",title:"Submesh Index",type:"integer","x-display-type":"Integer"},value:{description:"Referenced mesh (UUID).",pattern:"^(00000000-0000-0000-0000-000000000000|[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})$",title:"Value",type:"string","x-asset-ref":"mesh","x-display-type":"UUID"}},title:"Mesh Reference",type:"object","x-category":"rendering","x-requires":{allOf:["local_transform"],oneOf:["material","material_ref"]}},morph_targets:{description:"Contains weights assigned to morph targets of the mesh referred to by the entity's mesh_ref.",properties:{weights:{additionalProperties:{format:"float",type:"number","x-display-type":"Float"},description:"Map from morph target name to weight (commonly 0..1).",title:"Weights",type:"object"}},title:"Morph Targets",type:"object","x-category":"animation","x-requires":{allOf:["local_transform"]}},orthographic_lens:{description:"Orthographic projection lens with configurable zoom and depth range.",properties:{zFar:{default:100,description:"Far clipping plane distance (meters).",format:"float",title:"Z Far",type:"number","x-display-type":"Float","x-unit":"m"},zNear:{default:0,description:"Near clipping plane distance (meters).",format:"float",title:"Z Near",type:"number","x-display-type":"Float","x-unit":"m"},zoomFactor:{default:[1,1],description:"Zoom factor applied to the orthographic extents (X,Y). 1 = no zoom.",items:{format:"float",type:"number"},maxItems:2,minItems:2,title:"Zoom Factor",type:"array","x-display-type":"Vector2"}},title:"Orthographic Lens",type:"object","x-category":"camera","x-requires":{allOf:["camera"]}},overrider:{description:"Overrides an entity from a subscene: mark for deletion, replace components, or detach specific components.",properties:{componentsToDetach:{description:"Hashes of components to detach from the overridden entity.",items:{format:"int32",type:"integer","x-display-type":"Integer"},title:"Components to Detach",type:"array"},deleter:{default:!1,description:"Mark the overridden entity as deleted in the composed scene.",title:"Deleter",type:"boolean","x-display-type":"Boolean"},entityRef:{description:"Target entity to override.",properties:{linkage:{default:[],items:{description:"A unique identifier for an entity. It should be unique across all entities in the scene, but it is not guaranteed to be unique across all scenes.",pattern:"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",type:"string","x-display-type":"Entity Unique Identifier"},type:"array"},originalEUID:{default:"00000000-0000-0000-0000-000000000000",description:"A unique identifier for an entity. It should be unique across all entities in the scene, but it is not guaranteed to be unique across all scenes.",pattern:"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",type:"string","x-display-type":"Entity Unique Identifier"}},required:["originalEUID","linkage"],title:"Entity Ref",type:"object","x-display-type":"Entity Reference"}},title:"Overrider",type:"object","x-category":"linker"},perspective_lens:{description:"Perspective projection lens with vertical field of view and near/far clipping planes.",properties:{farPlane:{default:0,description:"Far clipping plane distance (meters). Set to 0 for an infinite far plane.",format:"float",title:"Far Plane",type:"number","x-display-type":"Float","x-unit":"m"},fovy:{default:60,description:"Vertical field of view angle in degrees.",format:"float",title:"Vertical Field of View",type:"number","x-display-type":"Float","x-unit":"deg"},nearPlane:{default:.01,description:"Near clipping plane distance (meters).",format:"float",title:"Near Plane",type:"number","x-display-type":"Float","x-unit":"m"},offset:{default:[0,0],description:"Projection center offset for stereoscopic rendering (meters).",items:{format:"float",type:"number"},maxItems:2,minItems:2,title:"Offset",type:"array","x-display-type":"Vector2","x-unit":"m"}},title:"Perspective Lens",type:"object","x-category":"camera","x-requires":{allOf:["camera"]}},physics_material:{description:"Physical surface properties used for contact: friction, restitution, optional contact modification, and trigger mode.",properties:{contactVelocity:{default:[0,0,0],description:"Applied contact velocity offset when colliding (m/s). Only used if modifyContact is true.",items:{format:"float",type:"number"},maxItems:3,minItems:3,title:"Contact Velocity",type:"array","x-display-type":"Vector3","x-unit":"m/s"},dynamicFriction:{default:.5,description:"Dynamic (kinetic) friction coefficient (typically 0..1). If greater than staticFriction, staticFriction is clamped up to match. Effective value is averaged with the other surface.",format:"float",title:"Dynamic Friction",type:"number","x-display-type":"Float"},isTrigger:{default:!1,description:"Treat associated geometry as a trigger (generates events but no physical response).",title:"Is Trigger",type:"boolean","x-display-type":"Boolean"},modifyContact:{default:!1,description:"Enable contact modification (applies contactVelocity on collisions).",title:"Modify Contact",type:"boolean","x-display-type":"Boolean"},restitution:{default:0,description:"Restitution (bounciness) in [0,1]. 0 = no bounce; 1 = perfectly elastic. Effective value is averaged with the other surface.",format:"float",title:"Restitution",type:"number","x-display-type":"Float"},staticFriction:{default:.5,description:"Static friction coefficient (typically 0..1). 0 feels like ice; higher resists start of motion. Effective value is averaged with the other surface.",format:"float",title:"Static Friction",type:"number","x-display-type":"Float"}},title:"Physics Material",type:"object","x-category":"physics","x-requires":{oneOf:["box_geometry","capsule_geometry","cylinder_geometry","plane_geometry","sphere_geometry","collision_geometry_ref"]}},plane_geometry:{description:"Infinite plane geometry.",properties:{distance:{default:0,description:"Signed distance from the origin along the plane normal (meters).",format:"float",title:"Distance",type:"number","x-display-type":"Float","x-unit":"m"},normal:{default:[0,1,0],description:"Unit normal vector of the plane (in local space).",items:{format:"float",type:"number"},maxItems:3,minItems:3,title:"Normal",type:"array","x-display-type":"Vector3"}},title:"Plane Geometry",type:"object","x-category":"geometry","x-requires":{allOf:["local_transform"]}},point_cloud_ref:{description:"Reference to a point cloud.",properties:{value:{description:"Referenced point cloud (UUID).",pattern:"^(00000000-0000-0000-0000-000000000000|[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})$",title:"Value",type:"string","x-asset-ref":"point_cloud","x-display-type":"UUID"}},title:"Point Cloud Reference",type:"object","x-category":"point cloud","x-requires":{allOf:["local_transform"]}},point_light:{description:"Omnidirectional light source with physically based intensity and falloff. Acts as a point light by default; enable isDirectional to emit parallel rays. Attach a Spot Light component to add a cone cutoff. Can optionally drive the atmosphere sun direction.",properties:{color:{default:[1,1,1],description:"RGB light color in linear space [0\u20131]. Multiplies intensity.",items:{format:"float",type:"number"},maxItems:3,minItems:3,title:"Color",type:"array","x-display-type":"Vector3"},intensity:{default:1,description:"Radiant intensity (W/sr). Controls brightness for physically based shading (inverse-square falloff).",format:"float",title:"Intensity",type:"number","x-display-type":"Float","x-unit":"W/sr"},isDirectional:{default:!1,description:"Treat this as a directional light using the entity's orientation; position is ignored.",title:"Is Directional",type:"boolean","x-display-type":"Boolean"},isSun:{default:!1,description:"Use this light's direction to control the atmosphere sun direction. Only one light should be marked as the sun; multiple are undefined.",title:"Is Sun",type:"boolean","x-display-type":"Boolean"},range:{default:0,description:"Hard cutoff distance for light influence and culling (meters). Set to 0 for no hard cutoff and physically correct inverse-square attenuation.",format:"float",title:"Range",type:"number","x-display-type":"Float","x-unit":"m"}},title:"Light",type:"object","x-category":"lighting","x-requires":{allOf:["local_transform"]}},reflection_probe:{description:"Omnidirectional reflection probe that captures the local environment into a cubemap for specular reflections (IBL).",properties:{farDist:{default:100,description:"Capture far clip distance (meters).",format:"float",title:"Far Dist",type:"number","x-display-type":"Float","x-unit":"m"},nearDist:{default:.1,description:"Capture near clip distance (meters).",format:"float",title:"Near Dist",type:"number","x-display-type":"Float","x-unit":"m"},offset:{default:[0,0,0],description:"Offset of the probe capture origin relative to the entity position (meters).",items:{format:"float",type:"number"},maxItems:3,minItems:3,title:"Offset",type:"array","x-display-type":"Vector3","x-unit":"m"},quality:{default:128,description:"Reflection cubemap resolution (pixels per face). Higher values increase detail and cost.",format:"int32",title:"Quality",type:"integer","x-display-type":"Integer"}},title:"Reflection probe",type:"object","x-category":"lighting","x-requires":{allOf:["local_transform","box_geometry"]}},rigid_body:{description:"Rigid body parameters for dynamic simulation (mass, damping, limits, CCD, and kinematic/gravity behavior).",properties:{angularDamping:{default:.05,description:"Angular damping coefficient (s^-1). 0 = no damping; must be non-negative.",format:"float",minimum:0,title:"Angular Damping",type:"number","x-display-type":"Float","x-unit":"s^-1"},centerOfMass:{default:[0,0,0],description:"Center of mass relative to the entity's local transform (meters).",items:{format:"float",type:"number"},maxItems:3,minItems:3,title:"Center of Mass",type:"array","x-display-type":"Vector3","x-unit":"m"},collisionDetection:{default:0,description:"Collision detection mode (CCD). Kinematic bodies do not support Linear/Continuous CCD.",format:"int8",minimum:0,oneOf:[{const:0,description:"Discrete collision detection.",title:"Discrete"},{const:1,description:"Linear, or sweep-based, CCD. This prevents the affected rigid bodies from going through other physics bodies at high velocities (a problem also known as tunnelling). Not functional with kinematic rigid bodies.",title:"LinearContinuous"},{const:2,description:"Angular, or speculative, CCD is better at catching missed contacts generated by fast angular motions but not as good with fast linear motions. Angular CCD is cheaper but less robust compared to linear CCD.",title:"AngularContinuous"},{const:3,description:"Linear and angular CCD are enabled. This often results in best-of-both-worlds behavior. Not functional with kinematic rigid bodies.",title:"Continuous"}],title:"Collision Detection",type:"integer","x-display-type":"Unsigned Byte"},isKinematic:{default:!1,description:"Treat the rigid body as kinematic (unaffected by forces; driven by animation/app logic).",title:"Is Kinematic",type:"boolean","x-display-type":"Boolean"},linearDamping:{default:0,description:"Linear damping coefficient (s^-1). 0 = no damping; must be non-negative.",format:"float",minimum:0,title:"Linear Damping",type:"number","x-display-type":"Float","x-unit":"s^-1"},lockedAxis:{default:0,description:"Lock motion along/around the specified axes.",format:"int8",minimum:0,title:"Locked Axis",type:"integer","x-bitFlags":[{description:"Locks motion along the X axis.",name:"Linear X",value:1},{description:"Locks motion along the Y axis.",name:"Linear Y",value:2},{description:"Locks motion along the Z axis.",name:"Linear Z",value:4},{description:"Locks motion around the X axis.",name:"Angular X",value:8},{description:"Locks motion around the Y axis.",name:"Angular Y",value:16},{description:"Locks motion around the Z axis.",name:"Angular Z",value:32}],"x-display-type":"Unsigned Byte"},mass:{default:1,description:"Mass (kg). A value of 0 is treated as infinite mass (static).",format:"float",title:"Mass",type:"number","x-display-type":"Float","x-unit":"kg"},maxAngularVelocity:{default:100,description:"Maximum angular velocity (rad/s). Must be non-negative.",format:"float",minimum:0,title:"Max Angular Velocity",type:"number","x-display-type":"Float","x-unit":"rad/s"},maxLinearVelocity:{default:1e16,description:"Maximum linear velocity (m/s). Must be non-negative.",format:"float",minimum:0,title:"Max Linear Velocity",type:"number","x-display-type":"Float","x-unit":"m/s"},useGravity:{default:!0,description:"Whether the rigid body is affected by gravity.",title:"Use Gravity",type:"boolean","x-display-type":"Boolean"}},title:"Rigid Body",type:"object","x-category":"physics","x-requires":{allOf:["local_transform","physics_material"]}},scene_ref:{description:"Reference to a subscene (linker); used to compose scenes.",properties:{maxRecursionCount:{default:1,description:"Maximum recursion depth when a scene references itself.",format:"int32",minimum:0,title:"Max Recursion Count",type:"integer","x-display-type":"Unsigned Integer"},value:{description:"Referenced scene (UUID).",pattern:"^(00000000-0000-0000-0000-000000000000|[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})$",title:"Value",type:"string","x-asset-ref":"scene","x-display-type":"UUID"}},title:"Scene Reference",type:"object","x-category":"linker","x-requires":{allOf:["local_transform"]}},script_element:{description:"References a script and supplies its input values.",properties:{dataJSON:{description:"Script input values in JSON; schema defined by scriptRef.",title:"Data Json",type:"object","x-display-type":"JSON"},scriptRef:{description:"Referenced script (UUID).",pattern:"^(00000000-0000-0000-0000-000000000000|[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})$",title:"Script Ref",type:"string","x-asset-ref":"script","x-display-type":"UUID"}},title:"Script Element",type:"object","x-category":"scripting"},script_map:{description:"Holds a set of script elements keyed by UUID.",properties:{elements:{additionalProperties:{description:"References a script and supplies its input values.",properties:{dataJSON:{description:"Script input values in JSON; schema defined by scriptRef.",title:"Data Json",type:"object","x-display-type":"JSON"},scriptRef:{description:"Referenced script (UUID).",pattern:"^(00000000-0000-0000-0000-000000000000|[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})$",title:"Script Ref",type:"string","x-asset-ref":"script","x-display-type":"UUID"}},title:"Script Element",type:"object","x-category":"scripting"},description:"Map of script UUID to script element.",title:"Elements",type:"object"}},title:"Script Map",type:"object","x-category":"scripting"},shadow_caster:{description:"Enables a light to cast real-time shadows with configurable map resolution, depth range, and (for directional lights) cascades.",properties:{accumulateShadowCascades:{default:!0,description:"Directional lights only: blend/accumulate all cascades to reduce visible transitions between splits.",title:"Accumulate Shadow Cascades",type:"boolean","x-display-type":"Boolean"},bias:{default:.004,description:"Depth bias applied during shadow tests to reduce self-shadowing (acne). Increase to mitigate artifacts; too high causes peter-panning.",format:"float",title:"Bias",type:"number","x-display-type":"Float"},cascadeCount:{default:4,description:"Directional lights only: number of cascades for CSM. 0 = static shadow map, 1\u20134 = increasing cascade count.",format:"int8",oneOf:[{const:0,description:"A single, precomputed shadow map that does not depend on the camera's view. Provides consistent shadows across the scene but lacks adaptability for dynamic perspectives or varying levels of detail.",title:"Static Shadow Map"},{const:1,description:"One shadow layer for the entire view. Provides consistent but basic coverage, suitable for simple scenes or performance-critical applications.",title:"Single Cascade"},{const:2,description:"Two layers of shadow refinement enhance detail near the viewer while managing distant shadows more efficiently.",title:"Dual Cascade"},{const:3,description:"Three shadow regions create a balanced depth, offering clarity across close and mid-range distances.",title:"Triple Cascade"},{const:4,description:"Four layers provide precise and adaptive shadow detail, ensuring realistic depth and smooth transitions across a wide range of distances.",title:"Quad Cascade"}],title:"Cascade Count",type:"integer","x-display-type":"Byte"},cascadeSplitLambda:{default:.94,description:"Directional lights only: cascade split distribution for CSM. 0 = uniform (linear) splits; 1 = logarithmic (more resolution near the camera). Values in [0,1] blend between the two.",format:"float",title:"Cascade Split Lambda",type:"number","x-display-type":"Float"},farDist:{default:100,description:"Shadow camera far clip distance (meters). Use the smallest range that contains casters/receivers.",format:"float",title:"Far Dist",type:"number","x-display-type":"Float","x-unit":"m"},nearDist:{default:.1,description:"Shadow camera near clip distance (meters). Tighten to improve depth precision.",format:"float",title:"Near Dist",type:"number","x-display-type":"Float","x-unit":"m"},quality:{default:1024,description:"Shadow map resolution (pixels per side). Higher values increase detail at the cost of memory and performance.",format:"int32",oneOf:[{const:256,description:"Shadows are vague and blocky, providing just enough to indicate their general presence.",title:"Ultra-Low (256x256)"},{const:512,description:"Shadows appear soft and blurry, offering a basic sense of shape with little detail.",title:"Very Low (512x512)"},{const:1024,description:"Shadows are smoother and moderately clear but lack sharpness, giving a gentle impression of depth.",title:"Low (1024x1024)"},{const:2048,description:"Standard quality with adequate clarity for most scenes. Shadows are defined but not overly sharp.",title:"Medium-Low (2048x2048)"},{const:3072,description:"*RECOMMENDED* Shadows have clean edges and are crisp enough to make fine details noticeable in most environments.",title:"Medium (3072x3072)"},{const:4096,description:"High-quality shadows with detailed edges and accurate representation of shape and form.",title:"Medium High (4096x4096)"},{const:6144,description:"Sharp and precise shadows that maintain clarity even for intricate details. Suitable for premium visual fidelity.",title:"High (6144x6144)"},{const:8192,description:"Hyper-realistic shadows with razor-sharp detail and unparalleled depth, delivering cinematic-level quality.",title:"Ultra High (8192x8192)"}],title:"Quality",type:"integer","x-display-type":"Integer"}},title:"Shadow caster",type:"object","x-category":"lighting","x-requires":{allOf:["point_light"]}},skeleton_ref:{description:"Reference to a skeleton asset for skinning and animation.",properties:{value:{description:"Referenced skeleton (UUID).",pattern:"^(00000000-0000-0000-0000-000000000000|[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})$",title:"Value",type:"string","x-asset-ref":"skeleton","x-display-type":"UUID"}},title:"Skeleton Reference",type:"object","x-category":"animation","x-requires":{allOf:["local_transform"],oneOf:["mesh_ref","bone"]}},sound_ref:{description:"Reference to a sound asset with playback and spatialization controls.",properties:{attenuationModel:{default:0,description:"Distance attenuation model.",format:"int8",minimum:0,oneOf:[{const:0,description:"No attenuation.",title:"No Attenuation"},{const:1,description:"Inverse distance attenuation model.",title:"Inverse Distance"},{const:2,description:"Linear distance attenuation model.",title:"Linear Distance"},{const:3,description:"Exponential distance attenuation model.",title:"Exponential Distance"}],title:"Attenuation Model",type:"integer","x-display-type":"Unsigned Byte"},attenuationRolloffFactor:{default:1,description:"Rolloff factor for distance attenuation.",format:"float",minimum:0,title:"Attenuation Rolloff Factor",type:"number","x-display-type":"Float"},autoPlayOnStart:{default:!1,description:"Autoplay when the simulation starts.",title:"Auto Play on Start",type:"boolean","x-display-type":"Boolean"},dopplerFactor:{default:1,description:"Scale factor for the Doppler effect.",format:"float",minimum:0,title:"Doppler Factor",type:"number","x-display-type":"Float"},inaudibleBehavior:{default:0,description:"Behavior when the sound becomes inaudible.",format:"int8",minimum:0,oneOf:[{const:0,description:"Continue updating while inaudible.",title:"Tick"},{const:1,description:"Suspend updates while inaudible.",title:"Don't Tick"},{const:2,description:"Stop playback and release resources when inaudible.",title:"Kill"}],title:"Inaudible Behavior",type:"integer","x-display-type":"Unsigned Byte"},looping:{default:!1,description:"Whether the sound loops.",title:"Looping",type:"boolean","x-display-type":"Boolean"},maxDistance:{default:50,description:"Distance beyond which the sound is inaudible (meters).",format:"float",minimum:0,title:"Max Distance",type:"number","x-display-type":"Float","x-unit":"m"},minDistance:{default:5,description:"Distance at which the sound stays at max volume (meters).",format:"float",minimum:0,title:"Min Distance",type:"number","x-display-type":"Float","x-unit":"m"},pan:{default:0,description:"Stereo pan. \u22121 = left, 1 = right.",format:"float",maximum:1,minimum:-1,title:"Pan",type:"number","x-display-type":"Float"},playSpeed:{default:1,description:"Playback speed multiplier (1.0 = normal).",format:"float",title:"Play Speed",type:"number","x-display-type":"Float"},value:{description:"Referenced sound (UUID).",pattern:"^(00000000-0000-0000-0000-000000000000|[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})$",title:"Value",type:"string","x-asset-ref":"sound","x-display-type":"UUID"},volume:{default:1,description:"Playback volume [0..1].",format:"float",maximum:1,minimum:0,title:"Volume",type:"number","x-display-type":"Float"}},title:"Sound Reference",type:"object","x-category":"sound","x-requires":{allOf:["local_transform"]}},sphere_geometry:{description:"Sphere geometry.",properties:{offset:{default:[0,0,0],description:"Local offset of the geometry origin (meters).",items:{format:"float",type:"number"},maxItems:3,minItems:3,title:"Offset",type:"array","x-display-type":"Vector3","x-unit":"m"},radius:{default:.5,description:"Radius of the sphere (meters).",format:"float",title:"Radius",type:"number","x-display-type":"Float","x-unit":"m"}},title:"Sphere Geometry",type:"object","x-category":"geometry","x-requires":{allOf:["local_transform"]}},spline:{description:"Displays an editor-only spline in the 3D view.",properties:{color:{default:[1,1,1],description:"Display color of the curve.",items:{format:"float",type:"number"},maxItems:3,minItems:3,title:"Color",type:"array","x-display-type":"Vector3"},tension:{default:.5,description:"Catmull-Rom tension (only when type is Catmull-Rom).",format:"float",title:"Tension",type:"number","x-display-type":"Float"},type:{default:0,description:"Spline interpolation type.",format:"int32",minimum:0,oneOf:[{const:0,title:"Centripetal"},{const:1,title:"Chordal "},{const:2,title:"Catmullrom"}],title:"Type",type:"integer","x-display-type":"Unsigned Integer"}},title:"Spline",type:"object","x-category":"editor","x-requires":{allOf:["local_transform"]}},spot_light:{description:"Adds a cone cutoff to a light, producing a spotlight. Requires a Point Light component for color/intensity and falloff.",properties:{IESProfile:{description:"Optional IES photometric profile (2D texture). Modulates emitted intensity by direction; leave empty for uniform distribution.",pattern:"^(00000000-0000-0000-0000-000000000000|[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})$",title:"Ies Profile",type:"string","x-asset-ref":"texture","x-display-type":"UUID"},cutoff:{default:30,description:"Outer cone half-angle in degrees. Light intensity falls to zero outside this angle.",format:"float",title:"Cutoff",type:"number","x-display-type":"Float","x-unit":"deg"}},title:"Spot Light",type:"object","x-category":"lighting","x-requires":{allOf:["point_light"]}},tags:{description:"Free-form tags used to group and filter entities.",properties:{value:{description:"List of tags applied to this entity.",items:{type:"string","x-display-type":"String"},title:"Value",type:"array"}},title:"Tags",type:"object","x-category":"core"},vehicle_controller:{description:"Vehicle Controller parameters.",properties:{chassis:{description:"The chassis.",properties:{linkage:{default:[],items:{description:"A unique identifier for an entity. It should be unique across all entities in the scene, but it is not guaranteed to be unique across all scenes.",pattern:"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",type:"string","x-display-type":"Entity Unique Identifier"},type:"array"},originalEUID:{default:"00000000-0000-0000-0000-000000000000",description:"A unique identifier for an entity. It should be unique across all entities in the scene, but it is not guaranteed to be unique across all scenes.",pattern:"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",type:"string","x-display-type":"Entity Unique Identifier"}},required:["originalEUID","linkage"],title:"Chassis",type:"object","x-display-type":"Entity Reference"},frontLeftWheel:{description:"The front left wheel.",properties:{linkage:{default:[],items:{description:"A unique identifier for an entity. It should be unique across all entities in the scene, but it is not guaranteed to be unique across all scenes.",pattern:"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",type:"string","x-display-type":"Entity Unique Identifier"},type:"array"},originalEUID:{default:"00000000-0000-0000-0000-000000000000",description:"A unique identifier for an entity. It should be unique across all entities in the scene, but it is not guaranteed to be unique across all scenes.",pattern:"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",type:"string","x-display-type":"Entity Unique Identifier"}},required:["originalEUID","linkage"],title:"Front Left Wheel",type:"object","x-display-type":"Entity Reference"},frontRightWheel:{description:"The front right wheel.",properties:{linkage:{default:[],items:{description:"A unique identifier for an entity. It should be unique across all entities in the scene, but it is not guaranteed to be unique across all scenes.",pattern:"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",type:"string","x-display-type":"Entity Unique Identifier"},type:"array"},originalEUID:{default:"00000000-0000-0000-0000-000000000000",description:"A unique identifier for an entity. It should be unique across all entities in the scene, but it is not guaranteed to be unique across all scenes.",pattern:"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",type:"string","x-display-type":"Entity Unique Identifier"}},required:["originalEUID","linkage"],title:"Front Right Wheel",type:"object","x-display-type":"Entity Reference"},rearLeftWheel:{description:"The rear left wheel.",properties:{linkage:{default:[],items:{description:"A unique identifier for an entity. It should be unique across all entities in the scene, but it is not guaranteed to be unique across all scenes.",pattern:"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",type:"string","x-display-type":"Entity Unique Identifier"},type:"array"},originalEUID:{default:"00000000-0000-0000-0000-000000000000",description:"A unique identifier for an entity. It should be unique across all entities in the scene, but it is not guaranteed to be unique across all scenes.",pattern:"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",type:"string","x-display-type":"Entity Unique Identifier"}},required:["originalEUID","linkage"],title:"Rear Left Wheel",type:"object","x-display-type":"Entity Reference"},rearRightWheel:{description:"The rear right wheel.",properties:{linkage:{default:[],items:{description:"A unique identifier for an entity. It should be unique across all entities in the scene, but it is not guaranteed to be unique across all scenes.",pattern:"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",type:"string","x-display-type":"Entity Unique Identifier"},type:"array"},originalEUID:{default:"00000000-0000-0000-0000-000000000000",description:"A unique identifier for an entity. It should be unique across all entities in the scene, but it is not guaranteed to be unique across all scenes.",pattern:"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",type:"string","x-display-type":"Entity Unique Identifier"}},required:["originalEUID","linkage"],title:"Rear Right Wheel",type:"object","x-display-type":"Entity Reference"}},title:"Vehicle Controller",type:"object","x-category":"physics","x-requires":{allOf:["local_transform"]}},volume_filter:{description:"View filtering and display controls applied to the referenced volume.",properties:{applyGaussianFiltering:{default:!1,description:"Apply Gaussian smoothing when sampling voxels.",title:"Apply Gaussian Filtering",type:"boolean","x-display-type":"Boolean"},enable3D:{default:!0,description:"Whether this volume is visible in the 3D view.",title:"Enable3 D",type:"boolean","x-display-type":"Boolean"},enableMPR:{default:!0,description:"Whether this volume is visible in the MPR (multi-planar reconstruction) view.",title:"Enable Mpr",type:"boolean","x-display-type":"Boolean"},mprColor:{default:[1,1,1],description:"Tint applied to this volume's MPR/projection output.",items:{format:"float",type:"number"},maxItems:3,minItems:3,title:"Mpr Color",type:"array","x-display-type":"Vector3"},range:{default:[0,1],description:"Displayed voxel intensity range [min, max]. Values outside the material's valid range are clamped/ignored.",items:{format:"float",type:"number"},maxItems:2,minItems:2,title:"Range",type:"array","x-display-type":"Vector2"},sampleUnfiltered:{default:!1,description:"Sample texels without hardware filtering (nearest).",title:"Sample Unfiltered",type:"boolean","x-display-type":"Boolean"}},title:"Volume Filter",type:"object","x-category":"rendering","x-requires":{allOf:["volume_ref"]}},volume_material_ref:{description:"Reference to the volume material used for shading and transfer functions.",properties:{value:{description:"Referenced volume material (UUID).",pattern:"^(00000000-0000-0000-0000-000000000000|[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})$",title:"Value",type:"string","x-asset-ref":"volume_material","x-display-type":"UUID"}},title:"Volume Material Reference",type:"object","x-category":"rendering","x-requires":{allOf:["volume_ref"]}},volume_ref:{description:"Reference to a volumetric dataset stored as a 3D texture (voxels).",properties:{texture3dRef:{description:"Referenced 3D texture (UUID) containing the volume voxels.",pattern:"^(00000000-0000-0000-0000-000000000000|[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})$",title:"Texture3d Ref",type:"string","x-asset-ref":"texture_3d","x-display-type":"UUID"}},title:"Volume Reference",type:"object","x-category":"rendering","x-requires":{allOf:["local_transform","volume_material_ref"]}}},required:["euid"],type:"object"};import{jsx as le,jsxs as Vt}from"react/jsx-runtime";var pe=({name:e,hasLinkToReference:t=!1,className:o})=>{let r=tt.properties[e],a=Ut[e],n=e==="*_geometry"?"box_geometry; capsule_geometry; cylinder_geometry; plane_geometry; sphere_geometry":e;if(!r||!a)return le("span",{children:e});let{color:s}=a,p=e==="*_geometry"?"/references/entity-components#box_geometry":`/references/entity-components#${e}`;return Vt("span",{className:qt("no-underline! inline-flex items-baseline gap-2 w-fit my-0 me-1","text-[90%] font-medium tracking-wide rounded-full whitespace-nowrap cursor-default","bg-current/10 border border-transparent has-[.link-to-ref:hover]:border-current/20 transition-colors",!t&&"pr-3",o),style:{color:s},children:[le(Ae,{componentId:e,className:"h-5 text-4xs"}),le("span",{className:"text-primary",children:r?.title}),t&&le("a",{href:p,className:"link-to-ref px-1 mr-0.5 h-full text-xs text-current! rounded-full opacity-70 hover:opacity-100 hover:bg-ground/50 transition-all",children:le(Ot,{className:"fal fa-external-link-square text-sm"})})]})};import{entityComponents as $t}from"@3dverse/design-tokens";import{clsx as zt}from"clsx";import{twMerge as Ft}from"tailwind-merge";function i(...e){return Ft(zt(e))}import{jsx as A,jsxs as Q}from"react/jsx-runtime";function jt({allOf:e,oneOf:t,withAttributes:o,className:r}){return Q("article",{className:i("relative w-fit flex flex-col flex-wrap my-4 border border-primary-alpha rounded-[1.5rem]",r),children:[A("div",{className:"absolute [writing-mode:vertical-rl] rotate-180 top-1/2 -left-3 -translate-x-1/2 -translate-y-1/2 text-[.6rem] font-medium text-tertiary tracking-wider opacity-60 uppercase",children:"Entity"}),A("div",{className:"flex flex-wrap gap-2 p-2",children:e?.map(a=>A(Gt,{name:a,withAttributes:o},a))}),t&&Q("div",{className:"flex gap-3 pl-4 p-2 border-t border-secondary-alpha",children:[Q("div",{className:"shrink-0 mt-px text-3xs text-tertiary font-medium",children:[A("i",{className:"fal fa-plus mr-1"})," One of"]}),A("div",{className:"flex flex-wrap gap-2",children:t.map(a=>A(pe,{name:a},a))})]})]})}var Gt=({name:e,withAttributes:t})=>{if(t&&Object.keys(t).includes(e)){let{color:o}=$t[e];return Q("div",{className:"flex flex-col bg-(--entity-component-color)/5 rounded-[14px]",style:{"--entity-component-color":o},children:[A(pe,{name:e,className:"w-full"}),A(Ht,{attributes:t[e]})]})}return A(pe,{name:e})},Ht=({attributes:e})=>A("div",{className:"flex flex-col flex-wrap gap-1 p-2 pr-4 text-xs text-tertiary",children:Object.entries(e).map(([t,o])=>Q("div",{className:"flex gap-1",children:[Q("span",{className:"font-mono",children:[t,":"]}),A("span",{className:"font-mono",children:JSON.stringify(o)})]},t))});var Ee={glowEffect:"d",glowEffectWide:"l"};import{jsx as Xt}from"react/jsx-runtime";var Wt=({children:e,variant:t="default",className:o})=>Xt("div",{className:i(Ee.glowEffect,t==="wide"&&Ee.glowEffectWide,o),children:e});import{Fragment as ot,jsx as d,jsxs as L}from"react/jsx-runtime";var Yt=({items:e=[],connections:t=[],gridSize:o=40,cellSize:r=70,containerWidth:a=800,containerHeight:n=400,caption:s,animateOnScroll:p=!0,className:b})=>{let R=h=>({animationFillMode:"both",...p?{animationTimeline:"view(block)",animationRange:"entry 25% entry 100%"}:{animationDelay:h}}),u=(h,m)=>{let l=(h-m)*(r/2),x=(h+m)*(r/4);return{x:l,y:x}},y=a/2,g=n/2,c=()=>{let h=[],m=o/2;for(let l=-m;l<=m;l++){let x=u(-m,l),D=u(m,l);h.push(d("line",{x1:y+x.x,y1:g+x.y,x2:y+D.x,y2:g+D.y,stroke:"rgba(100, 150, 200, 0.4)",strokeWidth:"1"},`h-${l}`))}for(let l=-m;l<=m;l++){let x=u(l,-m),D=u(l,m);h.push(d("line",{x1:y+x.x,y1:g+x.y,x2:y+D.x,y2:g+D.y,stroke:"rgba(100, 150, 200, 0.4)",strokeWidth:"1"},`v-${l}`))}return h},P=(h,m,l)=>{let D=`arrow-${h}-${l}`;return d("marker",{id:D,markerWidth:10,markerHeight:10,refX:h==="end"?6:4,refY:10/2,orient:"auto",markerUnits:"userSpaceOnUse",children:d("polygon",{points:h==="end"?`0,0 10,${10/2} 0,10`:`10,0 0,${10/2} 10,10`,fill:m})})},v=()=>t.map((h,m)=>{let{from_x:l,from_y:x,to_x:D,to_y:F,via_x:H=l,via_y:Z=x,arrow_start:xe,arrow_end:re,color:q="#fbbf24",name:ae,showDebug:he,isAnimated:be=!1,animationDirection:ve="end"}=h,k=[],U=[],I=l,N=x;if(k.push(u(I,N)),I!==H){let f=H;U.push({from:{x:I,y:N},to:{x:f,y:N}}),I=f,k.push(u(I,N))}if(N!==Z){let f=Z;U.push({from:{x:I,y:N},to:{x:I,y:f}}),N=f,k.push(u(I,N))}if(I!==D){let f=D;U.push({from:{x:I,y:N},to:{x:f,y:N}}),I=f,k.push(u(I,N))}if(N!==F){let f=F;U.push({from:{x:I,y:N},to:{x:I,y:f}}),N=f,k.push(u(I,N))}let ne=U[0],He=0;U.forEach(f=>{let S=f.to.x-f.from.x,W=f.to.y-f.from.y,X=Math.hypot(S,W);X>He&&(He=X,ne=f)});let Pe=u(ne.from.x,ne.from.y),we=u(ne.to.x,ne.to.y),bt=y+(Pe.x+we.x)/2,vt=g+(Pe.y+we.y)/2,Pt=Math.atan2(we.y-Pe.y,we.x-Pe.x)*(180/Math.PI),wt=(f=>{let S=(f+180)%360-180;return S>90&&(S-=180),S<-90&&(S+=180),S})(Pt),Ct=k.map((f,S)=>{let W=y+f.x,X=g+f.y;return S===0?`M ${W},${X}`:`L ${W},${X}`}).join(" "),Ze=0;for(let f=1;f<k.length;f++){let S=k[f-1],W=k[f],X=y+S.x,Rt=g+S.y,kt=y+W.x,Nt=g+W.y;Ze+=Math.hypot(kt-X,Nt-Rt)}let We=Math.max(1.2,Ze/150),Xe=`conn-path-${m}`,It=`arrow-start-${m*2}`,Dt=`arrow-end-${m*2+1}`,St=()=>L("defs",{children:[xe&&P("start",q,m*2),re&&P("end",q,m*2+1)]}),Ce=({reverse:f=!1,begin:S="0s"})=>L("g",{filter:"url(#conn-glow)",children:[d("ellipse",{cx:"5",cy:"0",rx:"4",ry:"2",fill:q,opacity:"0.8"}),d("animateMotion",{dur:`${We}s`,repeatCount:"indefinite",begin:S,keyPoints:f?"1;0":"0;1",keyTimes:"0;1",calcMode:"linear",rotate:"auto",children:d("mpath",{xlinkHref:`#${Xe}`})})]}),Tt=()=>be?ve==="both"?L(ot,{children:[d(Ce,{reverse:!1,begin:"0s"}),d(Ce,{reverse:!0,begin:`${We/2}s`})]}):ve==="start"?d(Ce,{reverse:!0}):d(Ce,{reverse:!1}):null;return L("g",{className:"animate-appear-top cursor-default",style:R(".2s"),children:[d(St,{}),d("path",{id:Xe,d:Ct,stroke:q,strokeWidth:"2",strokeLinecap:"round",fill:"none",markerStart:xe?`url(#${It})`:void 0,markerEnd:re?`url(#${Dt})`:void 0,style:h.style}),Tt(),ae&&d("g",{transform:`translate(${bt}, ${vt}) rotate(${wt})`,children:d("text",{x:"12",y:"12",textAnchor:"middle",dominantBaseline:"middle",className:"text-sm font-bold fill-accent",children:ae})}),he&&d(ot,{children:k.map((f,S)=>d("circle",{cx:y+f.x,cy:g+f.y,r:"3",fill:S===0?"red":S===k.length-1?"green":"blue"},S))})]},m)}),C=()=>e.map((h,m)=>{let{x:l,y:x,width:D,height:F,color:H="#52548B",name:Z,showDebug:xe,image:re}=h,q=u(l,x),ae=u(l+D,x),he=u(l+D,x-F),be=u(l,x-F),ve=[[y+q.x,g+q.y],[y+ae.x,g+ae.y],[y+he.x,g+he.y],[y+be.x,g+be.y]].map(([U,I])=>`${U},${I}`).join(" "),k=u(l+D/2,x-F/2);return d("g",{className:"group animate-appear-top cursor-default",style:R(),children:L("g",{className:"drop-shadow-[0_9px_7px_var(--shadow-color)] hover:drop-shadow-[0_12px_10px_var(--shadow-color)] hover:[--translate:-8px] transition-transform duration-300",style:{"--shadow-color":`color-mix(in srgb, ${H} 10%, var(--color-bg-ground))`,translate:"0 var(--translate, -4px)"},children:[d("polygon",{points:ve,fill:H,strokeLinejoin:"round",className:"opacity-80 group-hover:opacity-100 transition-opacity duration-all duration-300"}),re&&(()=>{let U=y+q.x+5,I=g+q.y-80;return d("image",{href:re,x:U,y:I,width:"128px"})})(),Z&&L("g",{transform:`translate(${y+k.x}, ${g+k.y})`,children:[d("rect",{x:-(Z.length*4+8),y:-12,width:Z.length*8+16,height:24,fill:"#181a59",fillOpacity:"0.8",rx:"4"}),d("text",{x:0,y:0,textAnchor:"middle",dominantBaseline:"middle",className:"text-base",fill:"white",children:Z})]}),xe&&L("text",{x:y+k.x,y:g+k.y+20,textAnchor:"middle",fill:"white",fontSize:"10",opacity:"0.7",children:["(",l,", ",x,")"]})]})},m)});return L("figure",{className:i("m-0 w-full",b),role:"img","aria-label":s,children:[L("svg",{viewBox:`0 0 ${a} ${n}`,preserveAspectRatio:"xMidYMid meet",className:"w-full",children:[L("defs",{children:[L("filter",{id:"conn-glow",x:"-50%",y:"-50%",width:"200%",height:"200%",children:[d("feGaussianBlur",{in:"SourceGraphic",stdDeviation:"3",result:"blur"}),L("feMerge",{children:[d("feMergeNode",{in:"blur"}),d("feMergeNode",{in:"SourceGraphic"})]})]}),L("mask",{id:"fadeMask",maskUnits:"objectBoundingBox",children:[L("radialGradient",{id:"fadeGradient",children:[d("stop",{offset:"40%",stopColor:"white"}),d("stop",{offset:"90%",stopColor:"black"})]}),d("rect",{width:"100%",height:"100%",fill:"url(#fadeGradient)"})]}),L("filter",{id:"text-backdrop-blur",x:"-200%",y:"-200%",width:"500%",height:"500%",children:[d("feGaussianBlur",{in:"BackgroundImage",stdDeviation:"20",result:"blurredBg"}),d("feFlood",{floodColor:"black",floodOpacity:"0.8",result:"bgColor"}),d("feComposite",{in:"bgColor",in2:"blurredBg",operator:"in",result:"coloredBlur"}),d("feComposite",{in:"coloredBlur",in2:"SourceGraphic",operator:"over",result:"final"})]})]}),d("rect",{width:a,height:n,fill:"transparent"}),d("g",{mask:"url(#fadeMask)",children:c()}),v(),C()]}),s&&d("figcaption",{className:"-translate-y-6 text-center text-sm text-tertiary text-balance",children:s})]})};import{jsx as $,jsxs as Ue}from"react/jsx-runtime";var Jt=({style:e,className:t=""})=>Ue("svg",{viewBox:"0 0 99 20",xmlns:"http://www.w3.org/2000/svg",style:e,className:t,children:[$("path",{fill:"var(--color-wordmark-prefix, var(--color-brand))",d:"M6.059 19.351c-.92733 0-1.79833-.1733-2.613-.52-.81467-.3553-1.521-.858-2.119-1.508-.589333-.65-1.018333-1.417-1.2869999-2.301L2.666 14.294c.25133.806.689 1.4257 1.313 1.859.624.4247 1.31733.6327 2.08.624.68467-.0087 1.287-.169 1.807-.481.52-.312.92733-.7323 1.222-1.261.29467-.5373.442-1.1527.442-1.846 0-1.04-.325-1.898-.975-2.574-.64133-.676-1.482-1.014-2.522-1.014-.29467 0-.598.04333-.91.13-.30333.08667-.58933.19933-.858.338L2.991 7.924l6.604-5.837.286.78h-9.1V.279999h11.258V2.867L6.553 8.145l-.026-.884c1.17867 0 2.20133.26433 3.068.793.8667.52 1.534 1.23067 2.002 2.132.4767.8927.715 1.8937.715 3.003 0 1.196-.2817 2.2577-.845 3.185-.5547.9273-1.3043 1.6553-2.249 2.184-.936.5287-1.989.793-3.159.793Zm15.4769.039c-1.3087 0-2.4397-.325-3.393-.975-.9447-.65-1.677-1.534-2.197-2.652-.5113-1.1267-.767-2.392-.767-3.796 0-1.4127.26-2.67367.78-3.783.52-1.118 1.2567-1.99767 2.21-2.639.962-.65 2.1017-.975 3.419-.975 1.326 0 2.4397.325 3.341.975.91.64133 1.5947 1.521 2.054 2.639.468 1.118.702 2.379.702 3.783s-.234 2.665-.702 3.783c-.468 1.118-1.157 2.0063-2.067 2.665-.91.65-2.0367.975-3.38.975Zm.377-2.457c.8927 0 1.6207-.2123 2.184-.637.5633-.4247.975-1.0097 1.235-1.755.26-.7453.39-1.6033.39-2.574 0-.9707-.1343-1.8287-.403-2.574-.26-.74533-.6673-1.326-1.222-1.742-.546-.416-1.2437-.624-2.093-.624-.9013 0-1.6423.221-2.223.663-.5807.442-1.014 1.03567-1.3 1.781-.2773.7453-.416 1.5773-.416 2.496 0 .9273.1387 1.768.416 2.522.286.7453.7107 1.339 1.274 1.781.572.442 1.2913.663 2.158.663ZM25.7219 19V8.899h-.312V.279999h2.73V19h-2.418Z"}),$("path",{fill:"var(--color-wordmark, var(--color-content-secondary))",d:"m35.8333 19-5.096-14.04h2.743l3.731 10.634 3.731-10.634h2.743L38.5893 19h-2.756Zm16.1734.39c-1.3953 0-2.6217-.3033-3.679-.91-1.0487-.6153-1.8677-1.469-2.457-2.561-.5807-1.1007-.871-2.3747-.871-3.822 0-1.534.286-2.86433.858-3.991.5807-1.12667 1.3867-1.99767 2.418-2.613 1.0313-.61533 2.2317-.923 3.601-.923 1.43 0 2.6477.33367 3.653 1.001 1.0053.65867 1.755 1.599 2.249 2.821.5027 1.222.702 2.6737.598 4.355h-2.717v-.988c-.0173-1.6293-.3293-2.834-.936-3.614-.598-.78-1.5123-1.17-2.743-1.17-1.3607 0-2.3833.429-3.068 1.287-.6847.858-1.027 2.0973-1.027 3.718 0 1.5427.3423 2.7387 1.027 3.588.6847.8407 1.6727 1.261 2.964 1.261.8493 0 1.5817-.1907 2.197-.572.624-.39 1.1093-.9447 1.456-1.664l2.665.845c-.546 1.2567-1.3737 2.2317-2.483 2.925-1.1093.6847-2.3443 1.027-3.705 1.027Zm-5.005-6.643v-2.119h10.023v2.119h-10.023ZM61.5534 19V4.96h2.418v3.406l-.338-.442c.1733-.45067.3986-.86233.676-1.235.2773-.38133.598-.69333.962-.936.3553-.26.7496-.45933 1.183-.598.442-.14733.8926-.234 1.352-.26.4593-.03467.9013-.013 1.326.065v2.548c-.4594-.12133-.9707-.156-1.534-.104-.5547.052-1.066.22967-1.534.533-.442.286-.793.63267-1.053 1.04-.2514.40733-.4334.86233-.546 1.365-.1127.494-.169 1.0183-.169 1.573V19h-2.743Zm15.1758.377c-1.7073 0-3.0983-.377-4.173-1.131-1.0746-.754-1.7333-1.8157-1.976-3.185l2.782-.429c.1734.728.572 1.3043 1.196 1.729.6327.416 1.417.624 2.353.624.8494 0 1.5124-.1733 1.989-.52.4854-.3467.728-.8233.728-1.43 0-.3553-.0866-.6413-.26-.858-.1646-.2253-.5156-.4377-1.053-.637-.5373-.1993-1.3563-.4463-2.457-.741-1.2046-.312-2.1623-.6457-2.873-1.001-.702-.364-1.2046-.7843-1.508-1.261-.2946-.4853-.442-1.07033-.442-1.755 0-.84933.2254-1.59033.676-2.223.4507-.63267 1.0834-1.12233 1.898-1.469.8234-.34667 1.7854-.52 2.886-.52 1.0747 0 2.0324.169 2.873.507.8407.338 1.521.819 2.041 1.443.52.61533.832 1.339.936 2.171l-2.782.507c-.0953-.676-.4116-1.209-.949-1.599-.5373-.39-1.235-.60233-2.093-.637-.8233-.03467-1.4906.104-2.002.416-.5113.30333-.767.72367-.767 1.261 0 .312.0954.57633.286.793.1994.21667.5807.42467 1.144.624.5634.1993 1.3954.4377 2.496.715 1.1787.3033 2.1147.6413 2.808 1.014.6934.364 1.1874.8017 1.482 1.313.3034.5027.455 1.1137.455 1.833 0 1.3867-.507 2.4743-1.521 3.263-1.0053.7887-2.3963 1.183-4.173 1.183Zm15.0575.013c-1.3953 0-2.6217-.3033-3.679-.91-1.0487-.6153-1.8677-1.469-2.457-2.561-.5807-1.1007-.871-2.3747-.871-3.822 0-1.534.286-2.86433.858-3.991.5807-1.12667 1.3867-1.99767 2.418-2.613 1.0313-.61533 2.2317-.923 3.601-.923 1.43 0 2.6477.33367 3.653 1.001 1.0053.65867 1.755 1.599 2.249 2.821.5027 1.222.702 2.6737.598 4.355h-2.717v-.988c-.0173-1.6293-.3293-2.834-.936-3.614-.598-.78-1.5123-1.17-2.743-1.17-1.3607 0-2.3833.429-3.068 1.287-.6847.858-1.027 2.0973-1.027 3.718 0 1.5427.3423 2.7387 1.027 3.588.6847.8407 1.6727 1.261 2.964 1.261.8493 0 1.5817-.1907 2.197-.572.624-.39 1.1093-.9447 1.456-1.664l2.665.845c-.546 1.2567-1.3737 2.2317-2.483 2.925-1.1093.6847-2.3443 1.027-3.705 1.027Zm-5.005-6.643v-2.119h10.023v2.119h-10.023Z"})]}),Oe=({style:e,className:t=""})=>Ue("svg",{viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:e,className:t,children:[$("path",{d:"M5.28808 19.7527L14.1837 28.4509L14.1837 39.9995L5.28302 31.294L5.28808 19.7527Z",fill:"var(--logo-color, #8d670b)"}),$("path",{d:"M33.9949 19.7527L25.0993 28.4509L25.0993 39.9995L34 31.294L33.9949 19.7527Z",fill:"var(--logo-color, #8d670b)"}),$("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M29.3294 13.2721L34.2049 19.747V31.294L24.9911 19.747V24.8481H24.9904V24.8488L14.4968 24.8488V19.7477H14.4968V19.747L5.28302 31.294L5.28302 19.7527L10.1585 13.28V9.17384C10.1585 3.05795 14.9512 0 19.744 0C22.106 0 24.468 0.742731 26.2563 2.22819C28.0966 3.75685 29.3294 6.07206 29.3294 9.17384L29.3294 13.2721L29.3294 13.2721ZM19.744 5.75545C21.2537 5.75545 22.7634 6.83514 22.7634 8.99452L22.7634 13.2748L16.7245 13.2773V8.99452C16.7245 7.40326 17.5444 6.3983 18.5799 5.97965C18.9496 5.83019 19.3468 5.75545 19.744 5.75545ZM16.7245 13.2773V13.28L22.7634 13.28L16.7245 13.28V13.2773H16.7245ZM19.7439 29.9788L14.4968 24.8488L24.9911 24.8488L19.7439 29.9788Z",fill:"url(#logo-rocket-gradient)"}),$("defs",{children:Ue("linearGradient",{id:"logo-rocket-gradient",x1:"12.0755",y1:"1.88679",x2:"31.3208",y2:"32.4528",gradientUnits:"userSpaceOnUse",children:[$("stop",{stopColor:"var(--logo-top-color, #f0c732)"}),$("stop",{offset:"1",stopColor:"var(--logo-bottom-color, #ffc800)"})]})})]});var qe={spinnerLogo:"s",circle:"e",loaderRotate:"r"};import{jsx as it,jsxs as eo}from"react/jsx-runtime";var Qt=()=>eo("div",{className:qe.spinnerLogo,children:[it(Oe,{}),it("span",{className:qe.circle})]});import{assets as io}from"@3dverse/design-tokens";import{jsx as de,jsxs as oo}from"react/jsx-runtime";var to="relative inline-flex items-center justify-center after:content-[''] after:absolute after:left-1/2 after:top-1/2 after:w-[125%] after:h-0.5 after:rounded-[1px] after:bg-accent after:-translate-x-1/2 after:-translate-y-1/2 after:-rotate-45 after:origin-center after:pointer-events-none";function w({variant:e,crossed:t,className:o,style:r,"data-icon":a}){return e==="shadowCast"?oo("div",{role:"img",className:"relative text-tertiary",style:r,"data-icon":a,children:[de(w,{className:i("relative z-10",o)}),de(w,{className:i("absolute top-0 left-0 translate-x-[40%] translate-y-[15%] scale-94 text-underground/80",o),style:{filter:"drop-shadow(3px 6px 30px color-mix(in oklab, var(--color-content-tertiary) 80%, transparent))"}})]}):t?de("span",{className:to,style:r,"data-icon":a,"aria-hidden":!0,children:de("i",{"data-slot":"icon",className:o})}):de("i",{"data-slot":"icon","data-icon":a,className:o,style:r,"aria-hidden":!0})}import{Fragment as no,jsx as ce}from"react/jsx-runtime";var ro=({assetId:e,variant:t,weight:o="light",className:r=""})=>{let{color:a,fontAwesome:n}=io[e],s=t==="file"?`
|
|
2
2
|
fa-fw
|
|
3
3
|
relative inline-block aspect-[1/1.15] px-[.9em] pt-[.3em] inline-flex justify-center items-center rounded-sm rounded-tr-[20%] [corner-top-right-shape:bevel] overflow-hidden
|
|
4
4
|
bg-radial-[at_50%_65%] from-(--asset-color)/30 via-(--asset-color)/15 to-(--asset-color)/25 to-90%
|
|
5
5
|
border border-(--asset-color)/15
|
|
6
6
|
after:content-[''] after:absolute after:top-0 after:right-0 after:w-[20%] after:h-[20%] after:bg-(--asset-color) after:opacity-50
|
|
7
7
|
${r}
|
|
8
|
-
`:r;return n?e==="scene"?ce(
|
|
8
|
+
`:r;return n?e==="scene"?ce(ao,{variant:t,className:s,style:{color:a,"--asset-color":a}}):ce(w,{className:i(n,o==="solid"?"fas":o==="regular"?"far":"fal","text-(--asset-color)",s),style:{"--asset-color":a}}):ce(no,{children:e})},ao=({variant:e,className:t="",style:o})=>ce("svg",{viewBox:"0 0 16 16",className:`inline-block self-center align-middle box-content ${e==="file"?"w-[1em] px-[.4em]! h-[calc(1em*2.1)]":"w-[1em] h-[1em]"} ${t}`,fill:"currentColor",style:o,"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",children:ce("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8 16C12.4183 16 16 12.4183 16 8C16 3.58172 12.4183 0 8 0C3.58172 0 0 3.58172 0 8C0 12.4183 3.58172 16 8 16ZM7.89258 3.68555C7.96094 3.66016 8.03711 3.66016 8.10742 3.68555L12.1387 5.16406L8 6.78906L3.86133 5.16211L7.89258 3.68555ZM12.1699 10.8262L8.3125 12.2402V12.2383V7.33594L12.375 5.74023V10.5332C12.375 10.6641 12.293 10.7812 12.1699 10.8262ZM8.32227 3.09766C8.11523 3.02148 7.88672 3.02148 7.67773 3.09766L3.61523 4.58789C3.24609 4.72461 3 5.07617 3 5.46875V10.5332C3 10.9258 3.24609 11.2773 3.61523 11.4121L7.67773 12.9023C7.88477 12.9785 8.11328 12.9785 8.32227 12.9023L12.3848 11.4141C12.7539 11.2773 13 10.9258 13 10.5332V5.46875C13 5.07422 12.7539 4.72266 12.3848 4.58789L8.32227 3.09766Z"})});import{jsx as rt}from"react/jsx-runtime";var so=({size:e,className:t})=>{let o=e?`fa-${e}`:void 0;return rt("svg",{viewBox:"0 0 16 16",height:"1em",className:`svg-inline--fa ${o??""} ${t??""}`,fill:"currentColor",color:"var(--asset-color-scene)","aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",children:rt("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8 16C12.4183 16 16 12.4183 16 8C16 3.58172 12.4183 0 8 0C3.58172 0 0 3.58172 0 8C0 12.4183 3.58172 16 8 16ZM7.89258 3.68555C7.96094 3.66016 8.03711 3.66016 8.10742 3.68555L12.1387 5.16406L8 6.78906L3.86133 5.16211L7.89258 3.68555ZM12.1699 10.8262L8.3125 12.2402V12.2383V7.33594L12.375 5.74023V10.5332C12.375 10.6641 12.293 10.7812 12.1699 10.8262ZM8.32227 3.09766C8.11523 3.02148 7.88672 3.02148 7.67773 3.09766L3.61523 4.58789C3.24609 4.72461 3 5.07617 3 5.46875V10.5332C3 10.9258 3.24609 11.2773 3.61523 11.4121L7.67773 12.9023C7.88477 12.9785 8.11328 12.9785 8.32227 12.9023L12.3848 11.4141C12.7539 11.2773 13 10.9258 13 10.5332V5.46875C13 5.07422 12.7539 4.72266 12.3848 4.58789L8.32227 3.09766Z"})})};import{Accordion as me}from"@base-ui/react/accordion";import{jsx as ee}from"react/jsx-runtime";function lo({...e}){return ee(me.Root,{"data-slot":"accordion",...e})}function po({className:e,...t}){return ee(me.Item,{"data-slot":"accordion-item",className:i("group/accordion-item",e),...t})}function co({className:e,children:t,...o}){return ee(me.Header,{className:"flex",children:ee(me.Trigger,{"data-slot":"accordion-trigger",className:i("flex flex-1 items-center justify-between gap-3 py-2 text-left text-sm outline-0 transition-colors cursor-pointer","text-secondary hover:text-primary","focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-1 focus-visible:outline-ring","disabled:pointer-events-none disabled:opacity-50",e),...o,children:t})})}function mo({className:e,children:t,...o}){return ee(me.Panel,{"data-slot":"accordion-content",className:i("h-(--accordion-panel-height) overflow-hidden text-sm transition-[height] duration-200 ease-out","data-starting-style:h-0 data-ending-style:h-0"),...o,children:ee("div",{className:i("pb-3",e),children:t})})}import{Drawer as E}from"@base-ui/react/drawer";import{Button as fo}from"@base-ui/react/button";import{cva as uo}from"class-variance-authority";import{jsx as go}from"react/jsx-runtime";var yo=uo(`
|
|
9
9
|
group/button inline-flex shrink-0 items-center justify-center
|
|
10
10
|
text-sm font-normal whitespace-nowrap select-none
|
|
11
11
|
bg-clip-padding outline-0 transition-all
|
|
@@ -13,5 +13,5 @@ var Y={container:"t",inner:"o",innerShape:"i",shape:"a",shapeAlt:"n"};import{jsx
|
|
|
13
13
|
aria-invalid:border-negative aria-invalid:ring-3 aria-invalid:ring-negative/20 dark:aria-invalid:border-negative/50 dark:aria-invalid:ring-negative/40
|
|
14
14
|
[&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 cursor-pointer
|
|
15
15
|
|
|
16
|
-
`,{variants:{variant:{default:"bg-primary text-(--color-bg-ground) hover:bg-primary/90",accent:"bg-accent text-black hover:text-black hover:bg-accent-400",outline:"text-primary border border-(--color-content-primary)/50 hover:border-(--color-content-primary)/80","outline-accent":"text-accent border border-accent/50 hover:border-accent/80",secondary:"bg-secondary/10 text-secondary hover:bg-secondary/20",ghost:"text-secondary hover:text-primary active:text-primary","ghost-shadow":a("relative text-neutral-0/80 [text-shadow:0_0_1px_black/40]","before:content-[''] before:absolute before:inset-0 before:scale-150 before:bg-neutral-1000 before:opacity-50 before:rounded-full before:blur-lg before:z-[-1]","data-[active=true]:z-1 data-[active=true]:before:opacity-100"),destructive:a("bg-negative/10 text-negative hover:bg-negative/20","focus-visible:border-negative/40 focus-visible:ring-negative/20 dark:bg-negative/20 dark:hover:bg-negative/30 dark:focus-visible:ring-negative/40"),link:"text-primary underline-offset-4 hover:underline",overlay:a("relative text-primary hover:text-primary/90","before:absolute before:inset-y-0.5 before:inset-x-0.5 before:rounded-full before:z-[-1]","before:bg-neutral-1000/25 before:opacity-0 before:transition-opacity before:duration-500 before:ease-out","data-[active=true]:z-1 data-[active=true]:before:opacity-100"),"overlay-outline":a("border border-primary/40","relative text-primary hover:text-primary/90","before:absolute before:inset-y-0.5 before:inset-x-0.5 before:rounded-[inherit] before:corner-shape-[inherit] before:z-[-1]","before:bg-neutral-1000/25 before:opacity-0 before:transition-opacity before:duration-500 before:ease-out","data-[active=true]:z-1 data-[active=true]:before:opacity-100")},size:{"3xs":"min-h-4 gap-1 px-1 text-4xs rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3","2xs":"min-h-5 gap-1 px-1 text-3xs rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3",xs:"min-h-6 gap-1 px-2 text-2xs rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3",sm:"min-h-7 gap-1 px-2.5 text-xs rounded-[min(var(--radius-md),12px)] in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3.5",md:"min-h-8 gap-1.5 px-3 text-sm **:data-[slot=icon]:text-xs has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",lg:"min-h-9 text-md gap-1.5 px-3 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",xl:"min-h-12 text-lg gap-1.5 px-2.5 font-medium tracking-wide has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2","icon-xs":"text-3xs size-6 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-lg","icon-sm":"size-7 rounded-[min(var(--radius-md),12px)] in-data-[slot=button-group]:rounded-lg","icon-md":"text-base size-8","icon-lg":"text-xl size-9","icon-xl":"text-xl size-10"},round:{true:"rounded-full",false:"rounded-xl [corner-shape:squircle]"},active:{true:"",false:""}},defaultVariants:{variant:"default",size:"md"}});function _({as:e,className:t,variant:i="default",size:r="md",round:o=!1,active:n=!1,children:s,...p}){return mi(!e||e==="button"?pi:e,{"data-slot":"button",className:a(ci({variant:i,size:r,round:o,active:n}),t),"data-active":n,...p,children:s})}import{jsx as D,jsxs as Se}from"react/jsx-runtime";function fi({swipeDirection:e="down",closeOnBlur:t=!0,...i}){return D(E.Root,{"data-slot":"bottom-sheet",swipeDirection:e,disablePointerDismissal:!t,...i})}function ui({...e}){return D(E.Trigger,{"data-slot":"bottom-sheet-trigger",...e})}function yi({...e}){return D(E.Portal,{"data-slot":"bottom-sheet-portal",...e})}function gi({...e}){return D(E.Close,{"data-slot":"bottom-sheet-close",...e})}function xi({className:e,...t}){return D(E.Backdrop,{"data-slot":"bottom-sheet-overlay",className:a("fixed inset-0 isolate z-10100 bg-ground/40 backdrop-blur-xs transition-opacity duration-100 ease-out data-swiping:transition-none","data-open:animate-in data-open:fade-in-0 data-open:duration-100","data-closed:not-data-swipe-dismiss:animate-out data-closed:not-data-swipe-dismiss:fade-out-0 data-closed:not-data-swipe-dismiss:duration-100 data-closed:not-data-swipe-dismiss:fill-mode-forwards",e),...t,style:{opacity:"calc(1 - var(--drawer-swipe-progress, 0))"}})}function bi({className:e,...t}){return D(E.Viewport,{"data-slot":"bottom-sheet-viewport",className:a("fixed inset-x-0 bottom-0 z-10110 flex justify-center outline-0",e),...t})}function hi({className:e,children:t,showHandle:i=!0,showCloseButton:r=!1,showOverlay:o=!0,...n}){return Se(yi,{children:[o&&D(xi,{}),D(bi,{children:Se(E.Popup,{"data-slot":"bottom-sheet-content",className:a("relative flex w-full flex-col rounded-t-2xl bg-ground/80 backdrop-blur-lg p-4 pt-2 pb-[calc(1rem+env(safe-area-inset-bottom))] text-sm text-popover-foreground ring-1 ring-foreground/10 outline-0","transform-[translateY(var(--drawer-swipe-movement-y,0px))]","data-open:animate-in data-open:slide-in-from-bottom data-open:duration-200 data-closed:animate-out data-closed:slide-out-to-bottom data-closed:duration-150 data-closed:fill-mode-forwards",e),...n,children:[i&&D("div",{"data-slot":"bottom-sheet-handle",className:"self-center h-px w-8 -translate-y-1 rounded-full bg-(--color-content-secondary)/50 touch-none select-none","aria-hidden":!0}),t,r&&Se(E.Close,{"data-slot":"bottom-sheet-close",render:D(_,{variant:"ghost",className:"absolute top-2 right-2",size:"icon-sm"}),children:[D(P,{className:"fas fa-xmark"}),D("span",{className:"sr-only",children:"Close"})]}),D("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-x-0 top-full h-[30vh] bg-ground/50 backdrop-blur-lg"})]})})]})}function vi({className:e,...t}){return D("div",{"data-slot":"bottom-sheet-header",className:a("flex flex-col gap-2",e),...t})}function wi({className:e,showCloseButton:t=!1,children:i,...r}){return Se("div",{"data-slot":"bottom-sheet-footer",className:a("-mx-4 -mb-4 flex flex-col-reverse sm:flex-row gap-2 rounded-b-xl border-t border-tertiary bg-muted/50 p-4 pb-[calc(1rem+env(safe-area-inset-bottom))] sm:justify-end",e),...r,children:[i,t&&D(E.Close,{render:D(_,{variant:"outline"}),children:"Close"})]})}function Pi({className:e,...t}){return D(E.Title,{"data-slot":"bottom-sheet-title",className:a("font-heading uppercase text-4xs leading-none font-medium text-tertiary pl-3 mt-1",e),...t})}function Ii({className:e,...t}){return D(E.Description,{"data-slot":"bottom-sheet-description",className:a("text-sm text-muted-foreground *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground",e),...t})}import{jsx as Ri,jsxs as it}from"react/jsx-runtime";function Ci({as:e,className:t,variant:i="ghost",size:r="md",orientation:o="vertical",round:n=!1,icon:s,rightComponent:p,isEnabled:h=!0,children:k,...u}){return it(_,{...u,as:e,variant:i,size:r,round:n,className:a(t,h?"":"opacity-75"),children:[it("div",{className:a("grow flex py-2",o==="inline"?"items-center gap-2":"gap-1.5 flex-col justify-between items-start"),children:[s&&Ri(P,{className:s,crossed:!h}),k]}),p]})}import{jsx as fe,jsxs as Li}from"react/jsx-runtime";var Si=({children:e,size:t="sm",className:i})=>{let r=t==="2xs"?"text-2xs":t==="3xs"?"text-3xs":"text-sm",o=["3xs","2xs"].includes(t)&&"**:data-[slot=data-item-label]:py-1.5";return fe("fieldset",{className:a("flex gap-2 items-baseline justify-center w-full px-2.5",r,o,i),children:e})},Di=({children:e,icon:t,className:i})=>Li("div",{"data-slot":"data-item-label",className:a("relative grow flex py-2 items-baseline gap-3 text-balance",i),children:[t&&fe(P,{className:a("text-[88%] text-tertiary -translate-y-px",t)}),e]}),ki=({children:e,className:t})=>fe("p",{className:t,children:e}),Ni=({children:e,className:t})=>fe("p",{className:a("my-px text-[88%] leading-tight text-tertiary",t),children:e}),Ti=({children:e,className:t})=>fe("div",{className:a("text-primary",t),children:e});import{Dialog as V}from"@base-ui/react/dialog";import{jsx as M,jsxs as De}from"react/jsx-runtime";function _i({...e}){return M(V.Root,{"data-slot":"dialog",...e})}function Mi({...e}){return M(V.Trigger,{"data-slot":"dialog-trigger",...e})}function Ai({...e}){return M(V.Portal,{"data-slot":"dialog-portal",...e})}function Ei({className:e,...t}){return M(V.Backdrop,{"data-slot":"dialog-overlay",className:a("fixed inset-0 isolate z-10100 bg-ground/80 duration-100 supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0",e),...t})}function Bi({className:e,children:t,showCloseButton:i=!1,...r}){return De(Ai,{children:[M(Ei,{}),De(V.Popup,{"data-slot":"dialog-content",className:a("fixed top-1/2 left-1/2 z-10110 grid w-full max-w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2 gap-4 rounded-xl bg-popover p-4 text-sm text-popover-foreground ring-1 ring-foreground/10 duration-100 outline-0 sm:max-w-sm data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",e),...r,children:[t,i&&De(V.Close,{"data-slot":"dialog-close",render:M(_,{variant:"ghost",className:"absolute top-2 right-2",size:"icon-sm"}),children:[M(P,{className:"fal fa-xmark"}),M("span",{className:"sr-only",children:"Close"})]})]})]})}function Ui({className:e,...t}){return M("div",{"data-slot":"dialog-header",className:a("flex flex-col gap-2",e),...t})}function qi({className:e,showCloseButton:t=!1,children:i,...r}){return De("div",{"data-slot":"dialog-footer",className:a("-mx-4 -mb-4 flex flex-col-reverse gap-2 rounded-b-xl border-t bg-muted/50 p-4 sm:flex-row sm:justify-end",e),...r,children:[i,t&&M(V.Close,{render:M(_,{variant:"outline"}),children:"Close"})]})}function Oi({className:e,...t}){return M(V.Title,{"data-slot":"dialog-title",className:a("font-heading text-base leading-none font-medium",e),...t})}function Vi({className:e,...t}){return M(V.Description,{"data-slot":"dialog-description",className:a("text-sm text-muted-foreground *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground",e),...t})}import{jsx as Fi}from"react/jsx-runtime";var zi=({className:e,isActive:t})=>Fi("span",{className:a("relative block w-2 h-2 rounded-full bg-current z-1 pointer-events-none","before:content-[''] before:block before:w-4 before:h-4 before:absolute before:-inset-1 before:rounded-full before:bg-inherit before:opacity-10",t?"text-positive before:animate-pulse":"text-primary/40 before:animate-none",e)});import{jsx as ke,jsxs as at}from"react/jsx-runtime";var $i=({icon:e,title:t,description:i,variant:r="default",className:o})=>at("div",{className:a("flex flex-col items-center gap-4 text-center px-3 py-7 text-balance",r==="glow"&&"glow-effect",o),children:[e&&ke("div",{className:"flex shrink-0 items-center justify-center",children:ke(P,{className:a(e,"text-2xl text-tertiary",r==="glow"&&"drop-shadow-[0_12px_6px_var(--color-bg-underground)]")})}),at("div",{className:"flex flex-col gap-0.5",children:[t&&ke("span",{className:"text-md",children:t}),i&&ke("span",{className:"mt-px text-3xs text-tertiary font-normal",children:i})]})]});import{jsx as Gi}from"react/jsx-runtime";var ji=({children:e,shadow:t="none",className:i,as:r,...o})=>Gi(r||"div",{className:a("flex items-center bg-ground/50 backdrop-blur-sm border border-white/20 rounded-full [corner-shape:squircle]","pointer-events-auto",t==="lg"&&"shadow-[0_20px_15px_-12px_rgba(0,0,0,.35)]",i),...o,children:e});import{jsx as Zi}from"react/jsx-runtime";var Hi=({children:e,className:t})=>Zi("kbd",{className:a("inline-flex items-center justify-center min-w-4 h-4 px-1 rounded border border-current/30 text-[0.65rem] leading-none font-normal uppercase opacity-70",t),children:e});import{jsx as Xi}from"react/jsx-runtime";function Wi({className:e,...t}){return Xi(P,{className:a("fal fa-spinner size-6 animate-spin text-primary",e),...t})}import{Menu as z}from"@base-ui/react/menu";import{jsx as B}from"react/jsx-runtime";function Yi({...e}){return B(z.Root,{"data-slot":"menu",...e})}function Ji({...e}){return B(z.Trigger,{"data-slot":"menu-trigger",...e})}function rt({...e}){return B(z.Portal,{"data-slot":"menu-portal",...e})}function ot({className:e,sideOffset:t=8,align:i="end",...r}){return B(z.Positioner,{"data-slot":"menu-positioner",sideOffset:t,align:i,className:a("z-10110 outline-0",e),...r})}function Ki({className:e,children:t,...i}){return B(rt,{children:B(ot,{children:B(z.Popup,{"data-slot":"menu-content",className:a("min-w-40 origin-(--transform-origin) bg-ground/80 backdrop-blur-lg p-1 text-xs outline-0","rounded-xl [corner-shape:squircle]","data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",e),...i,children:t})})})}function Qi({className:e,...t}){return B(z.Item,{"data-slot":"menu-item",className:a("flex cursor-pointer items-center gap-3 rounded-sm px-2 py-1 text-sm outline-0 select-none","data-highlighted:bg-primary/10 data-highlighted:text-primary","data-disabled:pointer-events-none data-disabled:opacity-50","transition-colors duration-200 ease-in-out","[&_svg]:pointer-events-none [&_svg]:shrink-0 **:data-[slot=icon]:text-3xs **:data-[slot=icon]:w-3",e),...t})}function ea({className:e,...t}){return B(z.Separator,{"data-slot":"menu-separator",className:a("-mx-1 my-1 h-px bg-foreground/10",e),...t})}function ta({...e}){return B(z.Group,{"data-slot":"menu-group",...e})}function ia({className:e,...t}){return B(z.GroupLabel,{"data-slot":"menu-group-label",className:a("px-2.5 py-1.5 text-xs text-tertiary",e),...t})}import{Dialog as ue}from"@base-ui/react/dialog";import{jsx as ye,jsxs as nt}from"react/jsx-runtime";function aa({open:e,onClose:t,closeIcon:i,fullScreen:r,disableBackdropClick:o,disableEscapeKeyDown:n,backdropBg:s="var(--color-underground)",className:p,style:h,children:k,...u}){return ye(ue.Root,{open:e,modal:!0,disablePointerDismissal:o,onOpenChange:(y,g)=>{y||n&&g.reason==="escape-key"||t?.()},children:nt(ue.Portal,{container:document.getElementById("app-container"),children:[ye(ue.Backdrop,{className:"fixed inset-0",style:{background:s,opacity:.9,zIndex:h?.zIndex}}),nt(ue.Popup,{className:a("fixed inset-0 flex items-center justify-center",!r&&"p-4",p),style:{...h,width:r?"100%":void 0,height:r?"100%":void 0},"aria-labelledby":u["aria-labelledby"],children:[i&&ye(ue.Close,{render:ye(_,{"aria-label":"Close",variant:"ghost",size:"icon-md",className:"absolute top-4 right-4"}),children:ye(P,{className:"fal fa-xmark"})}),k]})]})})}import{jsx as qe}from"react/jsx-runtime";var ra=({startingTransiton:e=!1,children:t,className:i,ref:r,...o})=>qe("aside",{ref:r,"data-slot":"panel",className:a("border border-primary/50 bg-ground/80 backdrop-blur-sm shadow-[0_10px_20px_-8px_rgba(0,0,0,.6)]","rounded-[1rem] [corner-shape:squircle]",e&&"starting:opacity-0 starting:translate-y-4 starting:scale-95 transition-all duration-350 ease-in-out","pointer-events-auto",i),...o,children:t}),oa=({children:e,className:t,...i})=>qe("header",{className:a("flex px-3 py-2",t),...i,children:e}),na=({children:e,className:t,...i})=>qe("h2",{className:a("text-[.7rem] text-secondary font-normal tracking-wider uppercase",t),...i,children:e});import{Popover as J}from"@base-ui/react/popover";import{jsx as j}from"react/jsx-runtime";function sa({...e}){return j(J.Root,{"data-slot":"popover",...e})}function la({...e}){return j(J.Trigger,{"data-slot":"popover-trigger",...e})}function pa({className:e,align:t="center",alignOffset:i=0,side:r="bottom",sideOffset:o=4,shadow:n,anchor:s,...p}){return j(J.Portal,{children:j(J.Positioner,{align:t,alignOffset:i,side:r,sideOffset:o,anchor:s,className:"z-10110",children:j(J.Popup,{"data-slot":"popover-content",className:a("border border-primary/50 bg-ground/80 backdrop-blur-sm ","rounded-[1rem] [corner-shape:squircle]","flex w-72 origin-(--transform-origin) flex-col gap-2.5 p-2.5 text-sm text-popover-foreground outline-hidden duration-100","data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",n==="lg"?"shadow-[0_20px_15px_-12px_rgba(0,0,0,.35)]":"shadow-[0_10px_20px_-8px_rgba(0,0,0,.6)]",e),...p})})})}function da({className:e,...t}){return j("div",{"data-slot":"popover-header",className:a("flex flex-col gap-0.5 text-sm",e),...t})}function ca({className:e,...t}){return j(J.Title,{"data-slot":"popover-title",className:a("font-medium",e),...t})}function ma({className:e,...t}){return j(J.Description,{"data-slot":"popover-description",className:a("text-muted-foreground",e),...t})}import{jsx as ua}from"react/jsx-runtime";var fa=({direction:e="horizontal",children:t,className:i,ref:r})=>ua("div",{ref:r,className:a(e==="horizontal"?"overflow-x-auto":"overflow-y-auto",e==="horizontal"?"[-webkit-mask-image:linear-gradient(to_right,transparent,black_16px,black_calc(100%-16px),transparent)]":"[-webkit-mask-image:linear-gradient(to_bottom,transparent,black_16px,black_calc(100%-16px),transparent)]",e==="horizontal"?"mask-[linear-gradient(to_right,transparent,black_16px,black_calc(100%-16px),transparent)]":"mask-[linear-gradient(to_bottom,transparent,black_16px,black_calc(100%-16px),transparent)]",i),children:t});import{Fragment as ya,useMemo as ga}from"react";import{Slider as te}from"@base-ui/react/slider";import{cva as ge}from"class-variance-authority";import{jsx as G,jsxs as Oe}from"react/jsx-runtime";var xa=ge(["flex [--slider-accent:var(--color-accent)] data-readonly:[--slider-accent:var(--color-tertiary)]","data-[orientation=horizontal]:w-full data-[orientation=horizontal]:flex-col data-[orientation=vertical]:h-full","data-disabled:opacity-50 data-disabled:cursor-not-allowed"],{variants:{size:{"2xs":"text-3xs [--slider-bar:--spacing(5)] [--slider-thumb:--spacing(2.5)]",xs:"text-2xs [--slider-bar:--spacing(6)] [--slider-thumb:--spacing(3)]",sm:"text-xs [--slider-bar:--spacing(7)] [--slider-thumb:--spacing(3.5)]",md:"text-sm [--slider-bar:--spacing(8)] [--slider-thumb:--spacing(4)]"}},defaultVariants:{size:"md"}}),ba=ge("relative flex touch-none items-center select-none data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:min-h-32 data-[orientation=vertical]:flex-col",{variants:{variant:{default:["data-[orientation=horizontal]:h-(--slider-bar) data-[orientation=vertical]:w-(--slider-bar)","not-data-disabled:cursor-col-resize not-data-disabled:data-[orientation=vertical]:cursor-row-resize"],classic:"data-[orientation=horizontal]:h-(--slider-thumb) data-[orientation=vertical]:w-(--slider-thumb)"}},defaultVariants:{variant:"default"}}),ha=ge("relative data-[orientation=horizontal]:w-full data-[orientation=vertical]:grow",{variants:{variant:{default:["overflow-hidden rounded-md bg-neutral-0/10","data-[orientation=horizontal]:h-full data-[orientation=vertical]:w-full","has-focus-visible:ring-[3px] has-focus-visible:ring-(--slider-accent)/50"],classic:"rounded-full bg-neutral-0/20 data-[orientation=horizontal]:h-1 data-[orientation=vertical]:w-1"}},defaultVariants:{variant:"default"}}),va=ge("",{variants:{variant:{default:"bg-(--slider-accent)/50",classic:"rounded-full bg-(--slider-accent)"}},defaultVariants:{variant:"default"}}),wa=ge("block outline-0",{variants:{variant:{default:"bg-(--slider-accent) data-[orientation=horizontal]:h-full data-[orientation=horizontal]:w-px data-[orientation=vertical]:h-px data-[orientation=vertical]:w-full",classic:["size-(--slider-thumb) cursor-grab rounded-full bg-neutral-0 shadow-sm transition-shadow","data-dragging:cursor-grabbing data-disabled:cursor-not-allowed","has-focus-visible:ring-[3px] has-focus-visible:ring-(--slider-accent)/50"]}},defaultVariants:{variant:"default"}});function Pa({markers:e,min:t,max:i,orientation:r,variant:o,format:n,locale:s}){let p=ga(()=>new Intl.NumberFormat(s,n),[s,n]),h=r==="vertical",k=o==="classic"?"var(--slider-thumb)":"1px";return G("div",{"aria-hidden":!0,"data-slot":"slider-markers","data-orientation":r,className:a("grid text-[0.8em] leading-none text-tertiary tabular-nums select-none *:relative",h?"grid-cols-[auto_auto] grid-rows-1 gap-x-1 pl-1":"grid-rows-[auto_auto] gap-y-0.5 pt-1"),children:e.map(u=>{let y=(u-t)/(i-t)*100,g=`calc(${k} / 2 + ${y/100} * (100% - ${k}))`;return Oe(ya,{children:[G("span",{"data-slot":"slider-marker-tick",className:a("bg-current [grid-area:1/1]",h?"h-px w-1 self-end":"h-1 w-px justify-self-start"),style:h?{bottom:g,translate:"0 50%"}:{left:g,translate:"-50%"}}),G("span",{"data-slot":"slider-marker-label",className:h?"[grid-area:1/2] self-end":"[grid-area:2/1] justify-self-start",style:h?{bottom:g,translate:"0 50%"}:{left:g,translate:`-${y}%`},children:p.format(u)})]},u)})})}function Ia({className:e,variant:t="default",size:i="md",value:r,defaultValue:o,min:n=0,max:s=100,orientation:p="horizontal",format:h,locale:k,markers:u,readOnly:y=!1,onValueChange:g,"aria-label":c,getAriaLabel:w,...v}){let I=r??o,b=Array.isArray(I)?I.length:1;return Oe(te.Root,{"data-slot":"slider","data-variant":t,"data-size":i,"data-readonly":y||void 0,value:r,defaultValue:o,min:n,max:s,orientation:p,format:h,locale:k,thumbAlignment:"edge",onValueChange:(m,l)=>{if(y){l.cancel();return}g?.(m,l)},className:a(xa({size:i}),e),...v,children:[G(te.Control,{"data-slot":"slider-control",className:a(ba({variant:t}),y&&"pointer-events-none"),children:Oe(te.Track,{"data-slot":"slider-track",className:ha({variant:t}),children:[G(te.Indicator,{"data-slot":"slider-indicator",className:va({variant:t})}),t==="default"&&G(te.Value,{"data-slot":"slider-value",className:a("pointer-events-none absolute inset-0 z-10 flex items-center px-2 text-primary tabular-nums","data-[orientation=vertical]:items-end data-[orientation=vertical]:justify-center data-[orientation=vertical]:px-0 data-[orientation=vertical]:pb-1")}),Array.from({length:b},(m,l)=>G(te.Thumb,{index:l,"aria-label":c,getAriaLabel:w,inputRef:x=>{y?x?.setAttribute("aria-readonly","true"):x?.removeAttribute("aria-readonly")},"data-slot":"slider-thumb",className:wa({variant:t})},l))]})}),u&&G(Pa,{markers:u,min:n,max:s,orientation:p,variant:t,format:h,locale:k})]})}import{Switch as st}from"@base-ui/react/switch";import{jsx as lt}from"react/jsx-runtime";function Ca({className:e,disabled:t,...i}){return lt(st.Root,{"data-slot":"switch",className:a("inline-flex h-5 w-8 shrink-0 cursor-pointer items-center rounded-full border border-transparent bg-neutral-0/20 p-0.5 transition-colors outline-0","focus-visible:ring-[3px] focus-visible:ring-ring/50","data-disabled:opacity-50 data-disabled:cursor-not-allowed","data-checked:bg-accent",e),"data-disabled":t,...i,children:lt(st.Thumb,{"data-slot":"switch-thumb",className:"block size-4 rounded-full bg-neutral-0 opacity-50 data-checked:opacity-100 shadow-sm transition-[translate,opacity] data-checked:translate-x-3"})})}import{jsx as Sa}from"react/jsx-runtime";var Ra=({children:e,className:t,as:i})=>Sa(i||"div",{className:a("flex rounded-full bg-neutral-1000/10 light:bg-neutral-1000/30 backdrop-blur-sm filter-[drop-shadow(2px_4px_8px_rgb(0_0_0/0.6))] light:filter-[drop-shadow(2px_4px_8px_rgb(0_0_0/0.4))]",t),children:e});import{forwardRef as Da}from"react";import{jsx as Na}from"react/jsx-runtime";var ka=Da(function({fullWidth:t,fullHeight:i,vertical:r,vCenter:o,hCenter:n,opposite:s,gapRight:p,gapBottom:h,className:k,style:u,...y},g){let c=!!r,w=p??h,v=c?n?"center":void 0:o?"center":void 0,I=s?"space-between":c?o?"center":void 0:n?"center":void 0;return Na("div",{ref:g,className:a("flex",c?"flex-col":"flex-row",t&&"w-full",i&&"h-full",k),style:{alignItems:v,justifyContent:I,gap:w!==void 0?`${w}rem`:void 0,...u},...y})});import{createContext as Ta,useContext as La,useRef as Ve}from"react";import{Tabs as ie}from"@base-ui/react/tabs";import{cva as mt}from"class-variance-authority";import{jsx as q,jsxs as ut}from"react/jsx-runtime";function _a({className:e,orientation:t="horizontal",...i}){return q(ie.Root,{"data-slot":"tabs","data-orientation":t,className:a("group/tabs flex gap-2 data-[orientation=horizontal]:flex-col",e),...i})}var ft=mt("relative inline-flex w-fit items-center justify-center rounded-lg text-secondary group-data-[orientation=vertical]/tabs:h-fit group-data-[orientation=vertical]/tabs:flex-col",{variants:{variant:{default:"bg-muted",segment:"text-white/85 border border-white/40 rounded-full",line:"gap-1 bg-transparent rounded-none"},size:{"2xs":"p-[2px] text-2xs group-data-[orientation=horizontal]/tabs:h-6",xs:"p-[2px] text-xs group-data-[orientation=horizontal]/tabs:h-6",sm:"p-[2px] text-sm group-data-[orientation=horizontal]/tabs:h-7",md:"p-[2px] text-md group-data-[orientation=horizontal]/tabs:h-8"}},defaultVariants:{variant:"default",size:"md"}}),Ma=mt(a("relative inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 px-1.5 py-0.5","rounded-md border border-transparent whitespace-nowrap transition-all cursor-pointer","group-data-[orientation=vertical]/tabs:w-full group-data-[orientation=vertical]/tabs:justify-start","hover:text-primary focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-1 focus-visible:outline-ring","disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50","has-data-[icon=inline-end]:pr-1 has-data-[icon=inline-start]:pl-1","[&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4"),{variants:{variant:{default:"text-quaternary data-active:text-primary data-active:bg-background",segment:"text-inherit data-active:text-black",line:a("text-inherit data-active:text-primary","after:absolute after:bg-foreground after:opacity-0 after:transition-opacity data-active:after:opacity-100","group-data-[orientation=horizontal]/tabs:after:inset-x-0 group-data-[orientation=horizontal]/tabs:after:bottom-[-5px] group-data-[orientation=horizontal]/tabs:after:h-0.5","group-data-[orientation=vertical]/tabs:after:inset-y-0 group-data-[orientation=vertical]/tabs:after:-right-1 group-data-[orientation=vertical]/tabs:after:w-0.5")},size:{"2xs":"",xs:"",sm:"gap-1 py-0 text-xs",md:""}},defaultVariants:{variant:"default",size:"md"}}),ze=Ta({variant:"default",size:"md"}),Aa=6;function Ea(e){let t=e.getBoundingClientRect();return Array.from(e.querySelectorAll('[data-slot="tabs-trigger"]')).map(i=>{let r=i.getBoundingClientRect();return{el:i,left:r.left-t.left,width:r.width}})}function pt(e,t){let i=t[0],r=t[t.length-1],o=Math.min(Math.max(e,i.left),r.left);for(let n=0;n<t.length-1;n++){let s=t[n],p=t[n+1];if(o>=s.left&&o<=p.left){let h=(o-s.left)/(p.left-s.left||1);return{left:o,width:s.width+h*(p.width-s.width)}}}return{left:o,width:o===i.left?i.width:r.width}}function Ba(e,t){return t.reduce((i,r)=>{let o=r.left+r.width/2,n=i.left+i.width/2;return Math.abs(e-o)<Math.abs(e-n)?r:i})}var Ua=[255,255,255,.85],qa=[0,0,0,1];function Oa(e){let t=Math.min(Math.max(e,0),1),[i,r,o,n]=Ua.map((s,p)=>s+(qa[p]-s)*t);return`rgba(${i}, ${r}, ${o}, ${n})`}function Va(e,t,i){let r=Math.min(e+t,i.left+i.width)-Math.max(e,i.left);return Math.max(0,r)/i.width}function dt(e,t,i){for(let r of i)r.el.style.color=Oa(Va(e,t,r))}function ct(e){for(let t of e)t.el.style.transition="",t.el.style.color=""}function za({swipeable:e=!1,variant:t="default",...i}){return e&&t==="segment"?q($a,{...i}):q(Fa,{variant:t,...i})}function Fa({className:e,variant:t="default",size:i="md",children:r,...o}){return ut(ie.List,{"data-slot":"tabs-list","data-variant":t,"data-size":i,className:a(ft({variant:t,size:i}),e),...o,children:[q(ze.Provider,{value:{variant:t,size:i},children:r}),t==="segment"&&q(Fe,{})]})}function $a({className:e,size:t="md",children:i,...r}){let o=Ve(null),n=Ve(null),s=Ve(null),p=()=>o.current?.querySelector('[data-slot="tabs-indicator"]'),h=()=>{let c=p();c&&(c.style.transition="",c.style.translate="",c.style.width="")},k=()=>{let c=s.current;c&&(c.indicator.removeEventListener("transitionend",c.handler),clearTimeout(c.timeoutId),s.current=null)},u=c=>{if(c.pointerType!=="touch")return;k();let w=o.current,v=w?.querySelector('[data-slot="tabs-trigger"][data-active]');if(!w||!v)return;let I=Ea(w),b=I.find(m=>m.el===v);b&&(n.current={pointerId:c.pointerId,startX:c.clientX,isDragging:!1,activeLeft:b.left,activeEl:v,triggers:I})},y=c=>{let w=n.current;if(!w||c.pointerId!==w.pointerId)return;let v=c.clientX-w.startX;if(!w.isDragging){if(Math.abs(v)<Aa)return;w.isDragging=!0,o.current?.setPointerCapture(c.pointerId);let l=p();l&&(l.style.transition="none");for(let x of w.triggers)x.el.style.transition="none"}c.preventDefault();let I=p();if(!I)return;let{left:b,width:m}=pt(w.activeLeft+v,w.triggers);I.style.translate=`${b}px`,I.style.width=`${m}px`,dt(b,m,w.triggers)},g=(c,w)=>{let v=n.current;if(!v||c.pointerId!==v.pointerId||(n.current=null,!v.isDragging))return;o.current?.releasePointerCapture(c.pointerId);let I=p();if(!w||!I){h(),ct(v.triggers);return}let b=c.clientX-v.startX,{left:m,width:l}=pt(v.activeLeft+b,v.triggers),x=Ba(m+l/2,v.triggers);I.style.transition="",I.style.translate=`${x.left}px`,I.style.width=`${x.width}px`;for(let H of v.triggers)H.el.style.transition="";dt(x.left,x.width,v.triggers),x.el!==v.activeEl&&x.el.click();let R=()=>{h(),ct(v.triggers)};I.addEventListener("transitionend",R,{once:!0});let F=window.setTimeout(()=>{s.current=null,R()},200);s.current={indicator:I,handler:R,timeoutId:F}};return ut(ie.List,{ref:o,"data-slot":"tabs-list","data-variant":"segment","data-size":t,className:a(ft({variant:"segment",size:t}),"touch-pan-y",e),onPointerDown:u,onPointerMove:y,onPointerUp:c=>g(c,!0),onPointerCancel:c=>g(c,!1),...r,children:[q(ze.Provider,{value:{variant:"segment",size:t},children:i}),q(Fe,{})]})}function Fe({className:e,...t}){return q(ie.Indicator,{"data-slot":"tabs-indicator",className:a("absolute z-[-1] h-[calc(100%-4px)]! rounded-full bg-white transition-[translate,width] duration-200 ease-in-out","group-data-[orientation=horizontal]/tabs:top-0.5 group-data-[orientation=horizontal]/tabs:left-0 group-data-[orientation=horizontal]/tabs:h-full group-data-[orientation=horizontal]/tabs:w-(--active-tab-width) group-data-[orientation=horizontal]/tabs:translate-x-(--active-tab-left)","group-data-[orientation=vertical]/tabs:top-0.5 group-data-[orientation=vertical]/tabs:left-0 group-data-[orientation=vertical]/tabs:w-full group-data-[orientation=vertical]/tabs:h-(--active-tab-height) group-data-[orientation=vertical]/tabs:translate-y-(--active-tab-top)",e),...t})}function ja({className:e,...t}){let{variant:i,size:r}=La(ze);return q(ie.Tab,{"data-slot":"tabs-trigger",className:a(Ma({variant:i,size:r}),e),...t})}function Ga({className:e,...t}){return q(ie.Panel,{"data-slot":"tabs-content",className:a("flex-1 text-sm outline-0",e),...t})}import{jsx as Wa}from"react/jsx-runtime";var Ha={title1:{className:"text-2xl font-semibold",as:"h1"},title2:{className:"text-xl font-semibold",as:"h2"},body1:{className:"text-base",as:"p"},body2:{className:"text-sm",as:"p"},body3:{className:"text-xs",as:"p"}};function Za({as:e,format:t,color:i,align:r,className:o,...n}){let s=t?Ha[t]:void 0,p=e??s?.as??"p";return Wa(p,{className:a(s?.className,i==="secondary"&&"text-tertiary",r==="left"&&"text-left",r==="center"&&"text-center",r==="right"&&"text-right",o),...n})}import{jsx as yt,jsxs as Ya}from"react/jsx-runtime";var Xa=({isOn:e,onToggle:t,size:i="sm",disabled:r,className:o})=>Ya(_,{variant:"ghost",size:i,onClick:t,disabled:r,"aria-pressed":e,className:o,children:[e&&yt(P,{className:"fas fa-check starting:translate-x-4 starting:opacity-0 transition-all duration-150"}),yt("span",{className:a(!e&&"text-tertiary"),children:e?"ON":"OFF"})]});import{Tooltip as K}from"@base-ui/react/tooltip";import{jsx as ae,jsxs as tr}from"react/jsx-runtime";function Ja({delay:e=0,...t}){return ae(K.Provider,{"data-slot":"tooltip-provider",delay:e,...t})}function Ka({...e}){return ae(K.Root,{"data-slot":"tooltip",...e})}function Qa({...e}){return ae(K.Trigger,{"data-slot":"tooltip-trigger",...e})}function er({className:e,side:t="top",sideOffset:i=4,align:r="center",alignOffset:o=0,children:n,...s}){return ae(K.Portal,{children:ae(K.Positioner,{align:r,alignOffset:o,side:t,sideOffset:i,className:"isolate z-50",children:tr(K.Popup,{"data-slot":"tooltip-content",className:a("z-50 inline-flex w-fit max-w-xs origin-(--transform-origin) items-center gap-1.5 rounded-md bg-foreground px-3 py-1.5 text-xs text-background has-data-[slot=kbd]:pr-1.5 data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 **:data-[slot=kbd]:relative **:data-[slot=kbd]:isolate **:data-[slot=kbd]:z-50 **:data-[slot=kbd]:rounded-sm data-[state=delayed-open]:animate-in data-[state=delayed-open]:fade-in-0 data-[state=delayed-open]:zoom-in-95 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",e),...s,children:[n,ae(K.Arrow,{className:"z-50 size-2.5 translate-y-[calc(-50%-2px)] rotate-45 rounded-[2px] bg-foreground fill-foreground data-[side=bottom]:top-1 data-[side=inline-end]:top-1/2! data-[side=inline-end]:-left-1 data-[side=inline-end]:-translate-y-1/2 data-[side=inline-start]:top-1/2! data-[side=inline-start]:-right-1 data-[side=inline-start]:-translate-y-1/2 data-[side=left]:top-1/2! data-[side=left]:-right-1 data-[side=left]:-translate-y-1/2 data-[side=right]:top-1/2! data-[side=right]:-left-1 data-[side=right]:-translate-y-1/2 data-[side=top]:-bottom-2.5"})]})})})}export{oi as Accordion,li as AccordionContent,ni as AccordionItem,si as AccordionTrigger,Nt as AppIcon,ti as AssetIcon,fi as BottomSheet,gi as BottomSheetClose,hi as BottomSheetContent,Ii as BottomSheetDescription,wi as BottomSheetFooter,vi as BottomSheetHeader,Pi as BottomSheetTitle,ui as BottomSheetTrigger,_ as Button,Ci as ButtonTile,Si as DataItem,Ni as DataItemDescription,Di as DataItemLabel,ki as DataItemTitle,Ti as DataItemValue,_i as Dialog,Bi as DialogContent,Vi as DialogDescription,qi as DialogFooter,Ui as DialogHeader,Oi as DialogTitle,Mi as DialogTrigger,zi as DotPing,$i as EmptyState,pe as EntityComponentBadge,Me as EntityComponentIcon,zt as EntityRecipe,Gt as GlowEffect,P as Icon,ri as IconAssetScene,ji as IslandPanel,Zt as IsometricSchema,Hi as Kbd,Wi as Loader,Wt as Logo3dverse,Be as Logo3dverseRocket,Yi as Menu,Ki as MenuContent,ta as MenuGroup,ia as MenuGroupLabel,Qi as MenuItem,rt as MenuPortal,ot as MenuPositioner,ea as MenuSeparator,Ji as MenuTrigger,aa as Modal,Ra as OverlayContainer,ra as Panel,oa as PanelHeader,na as PanelTitle,sa as Popover,pa as PopoverContent,ma as PopoverDescription,da as PopoverHeader,ca as PopoverTitle,la as PopoverTrigger,fa as ScrollableArea,Ia as Slider,Yt as Spinner,ka as Stack,Ca as Switch,_a as Tabs,Ga as TabsContent,Fe as TabsIndicator,za as TabsList,ja as TabsTrigger,Za as Text,Xa as ToggleButton,Ka as Tooltip,er as TooltipContent,Ja as TooltipProvider,Qa as TooltipTrigger,se as appIconShapes,a as cn};
|
|
16
|
+
`,{variants:{variant:{default:"bg-primary text-(--color-bg-ground) hover:bg-primary/90",accent:"bg-accent text-black hover:text-black hover:bg-accent-400",outline:"text-primary border border-(--color-content-primary)/50 hover:border-(--color-content-primary)/80","outline-accent":"text-accent border border-accent/50 hover:border-accent/80",secondary:"bg-secondary/10 text-secondary hover:bg-secondary/20",ghost:"text-secondary hover:text-primary focus:text-primary active:text-primary data-[active=true]:text-primary","ghost-shadow":i("relative text-neutral-0/80 [text-shadow:0_0_1px_black/40]","before:content-[''] before:absolute before:inset-0 before:scale-150 before:bg-neutral-1000 before:opacity-50 before:rounded-full before:blur-lg before:z-[-1]","data-[active=true]:text-primary data-[active=true]:z-1 data-[active=true]:before:opacity-100"),destructive:i("bg-negative/10 text-negative hover:bg-negative/20","focus-visible:border-negative/40 focus-visible:ring-negative/20 dark:bg-negative/20 dark:hover:bg-negative/30 dark:focus-visible:ring-negative/40"),link:"text-primary underline-offset-4 hover:underline",overlay:i("relative text-primary hover:text-primary/90 focus:text-primary/90 active:text-primary","before:absolute before:inset-y-0.5 before:inset-x-0.5 before:rounded-full before:z-[-1]","before:bg-neutral-1000/25 before:opacity-0 before:transition-opacity before:duration-500 before:ease-out","data-[active=true]:z-1 data-[active=true]:before:opacity-100"),"overlay-outline":i("border border-primary/40","relative text-primary hover:text-primary/90 focus:text-primary/90 active:text-primary","before:absolute before:inset-y-0.5 before:inset-x-0.5 before:rounded-[inherit] before:corner-shape-[inherit] before:z-[-1]","before:bg-neutral-1000/25 before:opacity-0 before:transition-opacity before:duration-500 before:ease-out","data-[active=true]:z-1 data-[active=true]:before:opacity-100")},size:{"3xs":"min-h-4 gap-1 px-1 text-4xs rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3","2xs":"min-h-5 gap-1 px-1 text-3xs rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3",xs:"min-h-6 gap-1 px-2 text-2xs rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3",sm:"min-h-7 gap-1 px-2.5 text-xs rounded-[min(var(--radius-md),12px)] in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3.5",md:"min-h-8 gap-1.5 px-3 text-sm **:data-[slot=icon]:text-xs has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",lg:"min-h-9 text-md gap-1.5 px-3 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",xl:"min-h-12 text-lg gap-1.5 px-2.5 font-medium tracking-wide has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2","icon-xs":"text-3xs size-6 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-lg","icon-sm":"size-7 rounded-[min(var(--radius-md),12px)] in-data-[slot=button-group]:rounded-lg","icon-md":"text-base size-8","icon-lg":"text-xl size-9","icon-xl":"text-xl size-10"},round:{true:"rounded-full",false:"rounded-xl [corner-shape:squircle]"},active:{true:"",false:""}},defaultVariants:{variant:"default",size:"md"}});function M({as:e,className:t,variant:o="default",size:r="md",round:a=!1,active:n=!1,children:s,...p}){return go(!e||e==="button"?fo:e,{"data-slot":"button",className:i(yo({variant:o,size:r,round:a,active:n}),t),"data-active":n,...p,children:s})}import{jsx as T,jsxs as Se}from"react/jsx-runtime";function xo({swipeDirection:e="down",closeOnBlur:t=!0,...o}){return T(E.Root,{"data-slot":"bottom-sheet",swipeDirection:e,disablePointerDismissal:!t,...o})}function ho({...e}){return T(E.Trigger,{"data-slot":"bottom-sheet-trigger",...e})}function bo({...e}){return T(E.Portal,{"data-slot":"bottom-sheet-portal",...e})}function vo({...e}){return T(E.Close,{"data-slot":"bottom-sheet-close",...e})}function Po({className:e,...t}){return T(E.Backdrop,{"data-slot":"bottom-sheet-overlay",className:i("fixed inset-0 isolate z-10100 bg-ground/40 backdrop-blur-xs transition-opacity duration-100 ease-out data-swiping:transition-none","data-open:animate-in data-open:fade-in-0 data-open:duration-100","data-closed:not-data-swipe-dismiss:animate-out data-closed:not-data-swipe-dismiss:fade-out-0 data-closed:not-data-swipe-dismiss:duration-100 data-closed:not-data-swipe-dismiss:fill-mode-forwards",e),...t,style:{opacity:"calc(1 - var(--drawer-swipe-progress, 0))"}})}function wo({className:e,...t}){return T(E.Viewport,{"data-slot":"bottom-sheet-viewport",className:i("fixed inset-x-0 bottom-0 z-10110 flex justify-center outline-0",e),...t})}function Co({className:e,children:t,showHandle:o=!0,showCloseButton:r=!1,showOverlay:a=!0,...n}){return Se(bo,{children:[a&&T(Po,{}),T(wo,{children:Se(E.Popup,{"data-slot":"bottom-sheet-content",className:i("relative flex w-full flex-col rounded-t-2xl bg-ground/80 backdrop-blur-lg p-4 pt-2 pb-[calc(1rem+env(safe-area-inset-bottom))] text-sm text-popover-foreground ring-1 ring-foreground/10 outline-0","transform-[translateY(var(--drawer-swipe-movement-y,0px))]","data-open:animate-in data-open:slide-in-from-bottom data-open:duration-200 data-closed:animate-out data-closed:slide-out-to-bottom data-closed:duration-150 data-closed:fill-mode-forwards",e),...n,children:[o&&T("div",{"data-slot":"bottom-sheet-handle",className:"self-center h-px w-8 -translate-y-1 rounded-full bg-(--color-content-secondary)/50 touch-none select-none","aria-hidden":!0}),t,r&&Se(E.Close,{"data-slot":"bottom-sheet-close",render:T(M,{variant:"ghost",className:"absolute top-2 right-2",size:"icon-sm"}),children:[T(w,{className:"fas fa-xmark"}),T("span",{className:"sr-only",children:"Close"})]}),T("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-x-0 top-full h-[30vh] bg-ground/50 backdrop-blur-lg"})]})})]})}function Io({className:e,...t}){return T("div",{"data-slot":"bottom-sheet-header",className:i("flex flex-col gap-2",e),...t})}function Do({className:e,showCloseButton:t=!1,children:o,...r}){return Se("div",{"data-slot":"bottom-sheet-footer",className:i("-mx-4 -mb-4 flex flex-col-reverse sm:flex-row gap-2 rounded-b-xl border-t border-tertiary bg-muted/50 p-4 pb-[calc(1rem+env(safe-area-inset-bottom))] sm:justify-end",e),...r,children:[o,t&&T(E.Close,{render:T(M,{variant:"outline"}),children:"Close"})]})}function So({className:e,...t}){return T(E.Title,{"data-slot":"bottom-sheet-title",className:i("font-heading uppercase text-4xs leading-none font-medium text-tertiary pl-3 mt-1",e),...t})}function To({className:e,...t}){return T(E.Description,{"data-slot":"bottom-sheet-description",className:i("text-sm text-muted-foreground *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground",e),...t})}import{cva as Ro}from"class-variance-authority";import{jsx as Lo}from"react/jsx-runtime";var ko=Ro(["group/badge inline-flex shrink-0 items-center justify-center w-fit overflow-hidden","font-medium whitespace-nowrap rounded-full border border-transparent outline-0 transition-all","focus-visible:ring-[3px] focus-visible:ring-accent/50","[&_svg]:pointer-events-none [&_svg]:shrink-0"],{variants:{variant:{default:"bg-primary text-(--color-bg-ground) [a]:hover:bg-primary/90",accent:"bg-accent text-black [a]:hover:bg-accent-400",secondary:"bg-secondary/10 text-secondary [a]:hover:bg-secondary/20",destructive:i("bg-negative/10 text-negative [a]:hover:bg-negative/20","dark:bg-negative/20 dark:[a]:hover:bg-negative/30"),outline:"border-primary text-primary [a]:hover:bg-secondary/10",ghost:"text-secondary [a]:hover:bg-secondary/10 [a]:hover:text-primary",link:"text-primary underline-offset-4 [a]:hover:underline"},size:{"3xs":i("h-4 gap-0.5 px-1.5 text-5xs [&_svg:not([class*='size-'])]:size-2.5","has-data-[icon=inline-start]:pl-1 has-data-[icon=inline-end]:pr-1"),"2xs":i("h-5 gap-1 px-2 text-4xs [&_svg:not([class*='size-'])]:size-3","has-data-[icon=inline-start]:pl-1.5 has-data-[icon=inline-end]:pr-1.5"),xs:i("h-6 gap-1 px-2.5 text-3xs [&_svg:not([class*='size-'])]:size-3","has-data-[icon=inline-start]:pl-2 has-data-[icon=inline-end]:pr-2"),sm:i("h-7 gap-1.5 px-3 text-2xs [&_svg:not([class*='size-'])]:size-3.5","has-data-[icon=inline-start]:pl-2.5 has-data-[icon=inline-end]:pr-2.5"),md:i("h-8 gap-1.5 px-3.5 text-xs [&_svg:not([class*='size-'])]:size-4","has-data-[icon=inline-start]:pl-3 has-data-[icon=inline-end]:pr-3")}},defaultVariants:{variant:"default",size:"2xs"}});function No({as:e,className:t,variant:o="default",size:r="2xs",...a}){return Lo(e??"span",{"data-slot":"badge","data-variant":o,"data-size":r,className:i(ko({variant:o,size:r}),t),...a})}import{jsx as _o,jsxs as at}from"react/jsx-runtime";function Mo({as:e,className:t,variant:o="ghost",size:r="md",orientation:a="vertical",round:n=!1,icon:s,rightComponent:p,isEnabled:b=!0,children:R,...u}){return at(M,{...u,as:e,variant:o,size:r,round:n,className:i(t,b?"":"opacity-75"),children:[at("div",{className:i("grow flex py-2",a==="inline"?"items-center gap-2":"gap-1.5 flex-col justify-between items-start"),children:[s&&_o(w,{className:s,crossed:!b}),R]}),p]})}import{jsx as fe,jsxs as qo}from"react/jsx-runtime";var Bo=({children:e,size:t="sm",className:o})=>{let r=t==="2xs"?"text-2xs":t==="3xs"?"text-3xs":"text-sm",a=["3xs","2xs"].includes(t)&&"**:data-[slot=data-item-label]:py-1.5";return fe("fieldset",{className:i("flex gap-2 items-baseline justify-center w-full px-2.5",r,a,o),children:e})},Ao=({children:e,icon:t,className:o})=>qo("div",{"data-slot":"data-item-label",className:i("relative grow flex py-2 items-baseline gap-3 text-balance",o),children:[t&&fe(w,{className:i("text-[88%] text-tertiary -translate-y-px",t)}),e]}),Eo=({children:e,className:t})=>fe("p",{className:t,children:e}),Uo=({children:e,className:t})=>fe("p",{className:i("my-px text-[88%] leading-tight text-tertiary",t),children:e}),Oo=({children:e,className:t})=>fe("div",{className:i("text-primary",t),children:e});import{Dialog as V}from"@base-ui/react/dialog";import{jsx as _,jsxs as Te}from"react/jsx-runtime";function Vo({...e}){return _(V.Root,{"data-slot":"dialog",...e})}function zo({...e}){return _(V.Trigger,{"data-slot":"dialog-trigger",...e})}function Fo({...e}){return _(V.Portal,{"data-slot":"dialog-portal",...e})}function $o({className:e,...t}){return _(V.Backdrop,{"data-slot":"dialog-overlay",className:i("fixed inset-0 isolate z-10100 bg-ground/80 duration-100 supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0",e),...t})}function jo({className:e,children:t,showCloseButton:o=!1,...r}){return Te(Fo,{children:[_($o,{}),Te(V.Popup,{"data-slot":"dialog-content",className:i("fixed top-1/2 left-1/2 z-10110 grid w-full max-w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2 gap-4 rounded-xl bg-popover p-4 text-sm text-popover-foreground ring-1 ring-foreground/10 duration-100 outline-0 sm:max-w-sm data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",e),...r,children:[t,o&&Te(V.Close,{"data-slot":"dialog-close",render:_(M,{variant:"ghost",className:"absolute top-2 right-2",size:"icon-sm"}),children:[_(w,{className:"fal fa-xmark"}),_("span",{className:"sr-only",children:"Close"})]})]})]})}function Go({className:e,...t}){return _("div",{"data-slot":"dialog-header",className:i("flex flex-col gap-2",e),...t})}function Ho({className:e,showCloseButton:t=!1,children:o,...r}){return Te("div",{"data-slot":"dialog-footer",className:i("-mx-4 -mb-4 flex flex-col-reverse gap-2 rounded-b-xl border-t bg-muted/50 p-4 sm:flex-row sm:justify-end",e),...r,children:[o,t&&_(V.Close,{render:_(M,{variant:"outline"}),children:"Close"})]})}function Zo({className:e,...t}){return _(V.Title,{"data-slot":"dialog-title",className:i("font-heading text-base leading-none font-medium",e),...t})}function Wo({className:e,...t}){return _(V.Description,{"data-slot":"dialog-description",className:i("text-sm text-muted-foreground *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground",e),...t})}import{jsx as Yo}from"react/jsx-runtime";var Xo=({className:e,isActive:t})=>Yo("span",{className:i("relative block w-2 h-2 rounded-full bg-current z-1 pointer-events-none","before:content-[''] before:block before:w-4 before:h-4 before:absolute before:-inset-1 before:rounded-full before:bg-inherit before:opacity-10",t?"text-positive before:animate-pulse":"text-primary/40 before:animate-none",e)});import{jsx as Re,jsxs as nt}from"react/jsx-runtime";var Jo=({icon:e,title:t,description:o,variant:r="default",className:a})=>nt("div",{className:i("flex flex-col items-center gap-4 text-center px-3 py-7 text-balance",r==="glow"&&"glow-effect",a),children:[e&&Re("div",{className:"flex shrink-0 items-center justify-center",children:Re(w,{className:i(e,"text-2xl text-tertiary",r==="glow"&&"drop-shadow-[0_12px_6px_var(--color-bg-underground)]")})}),nt("div",{className:"flex flex-col gap-0.5",children:[t&&Re("span",{className:"text-md",children:t}),o&&Re("span",{className:"mt-px text-3xs text-tertiary font-normal",children:o})]})]});import{jsx as Qo}from"react/jsx-runtime";var Ko=({children:e,shadow:t="none",className:o,as:r,...a})=>Qo(r||"div",{className:i("flex items-center bg-ground/50 backdrop-blur-sm border border-white/20 rounded-full [corner-shape:squircle]","pointer-events-auto",t==="lg"&&"shadow-[0_20px_15px_-12px_rgba(0,0,0,.35)]",o),...a,children:e});import{jsx as ti}from"react/jsx-runtime";var ei=({children:e,className:t})=>ti("kbd",{className:i("inline-flex items-center justify-center min-w-4 h-4 px-1 rounded border border-current/30 text-[0.65rem] leading-none font-normal uppercase opacity-70",t),children:e});import{jsx as ii}from"react/jsx-runtime";function oi({className:e,...t}){return ii(w,{className:i("fal fa-spinner size-6 animate-spin text-primary",e),...t})}import{createContext as ri,useContext as Ve}from"react";import{Menu as z}from"@base-ui/react/menu";import{cva as ke}from"class-variance-authority";import{jsx as B}from"react/jsx-runtime";var ai=ke(i("origin-(--transform-origin) bg-ground/80 backdrop-blur-lg outline-0 [corner-shape:squircle]","data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95"),{variants:{size:{"2xs":"min-w-28 p-0.5 text-4xs rounded-lg",xs:"min-w-32 p-1 text-3xs rounded-lg",sm:"min-w-36 p-1 text-2xs rounded-xl",md:"min-w-40 p-1 text-xs rounded-xl"}},defaultVariants:{size:"md"}}),ni=ke(i("flex cursor-pointer items-center rounded-sm outline-0 select-none","data-highlighted:bg-primary/10 data-highlighted:text-primary","data-disabled:pointer-events-none data-disabled:opacity-50","transition-colors duration-200 ease-in-out","[&_svg]:pointer-events-none [&_svg]:shrink-0 **:data-[slot=icon]:text-[0.85em] **:data-[slot=icon]:w-[1em]"),{variants:{size:{"2xs":"min-h-5 gap-1.5 px-1.5 py-0.5 text-3xs leading-tight",xs:"min-h-6 gap-2 px-2 py-0.5 text-2xs leading-tight",sm:"min-h-7 gap-2.5 px-2 py-1 text-xs leading-tight",md:"min-h-8 gap-3 px-2 py-1 text-sm leading-tight"}},defaultVariants:{size:"md"}}),si=ke("text-tertiary",{variants:{size:{"2xs":"px-1.5 py-1 text-5xs",xs:"px-2 py-1 text-4xs",sm:"px-2 py-1.5 text-3xs",md:"px-2.5 py-1.5 text-xs"}},defaultVariants:{size:"md"}}),li=ke("h-px bg-foreground/10",{variants:{size:{"2xs":"-mx-0.5 my-0.5",xs:"-mx-1 my-1",sm:"-mx-1 my-1",md:"-mx-1 my-1"}},defaultVariants:{size:"md"}}),Ne=ri("md");function pi({...e}){return B(z.Root,{"data-slot":"menu",...e})}function di({...e}){return B(z.Trigger,{"data-slot":"menu-trigger",...e})}function st({...e}){return B(z.Portal,{"data-slot":"menu-portal",...e})}function lt({className:e,sideOffset:t=8,align:o="end",...r}){return B(z.Positioner,{"data-slot":"menu-positioner",sideOffset:t,align:o,className:i("z-10110 outline-0",e),...r})}function ci({className:e,size:t="md",children:o,...r}){return B(st,{children:B(lt,{children:B(z.Popup,{"data-slot":"menu-content","data-size":t,className:i(ai({size:t}),e),...r,children:B(Ne.Provider,{value:t,children:o})})})})}function mi({className:e,...t}){let o=Ve(Ne);return B(z.Item,{"data-slot":"menu-item",className:i(ni({size:o}),e),...t})}function fi({className:e,...t}){let o=Ve(Ne);return B(z.Separator,{"data-slot":"menu-separator",className:i(li({size:o}),e),...t})}function ui({...e}){return B(z.Group,{"data-slot":"menu-group",...e})}function yi({className:e,...t}){let o=Ve(Ne);return B(z.GroupLabel,{"data-slot":"menu-group-label",className:i(si({size:o}),e),...t})}import{Dialog as ue}from"@base-ui/react/dialog";import{jsx as ye,jsxs as pt}from"react/jsx-runtime";function gi({open:e,onClose:t,closeIcon:o,fullScreen:r,disableBackdropClick:a,disableEscapeKeyDown:n,backdropBg:s="var(--color-underground)",className:p,style:b,children:R,...u}){return ye(ue.Root,{open:e,modal:!0,disablePointerDismissal:a,onOpenChange:(y,g)=>{y||n&&g.reason==="escape-key"||t?.()},children:pt(ue.Portal,{container:document.getElementById("app-container"),children:[ye(ue.Backdrop,{className:"fixed inset-0",style:{background:s,opacity:.9,zIndex:b?.zIndex}}),pt(ue.Popup,{className:i("fixed inset-0 flex items-center justify-center",!r&&"p-4",p),style:{...b,width:r?"100%":void 0,height:r?"100%":void 0},"aria-labelledby":u["aria-labelledby"],children:[o&&ye(ue.Close,{render:ye(M,{"aria-label":"Close",variant:"ghost",size:"icon-md",className:"absolute top-4 right-4"}),children:ye(w,{className:"fal fa-xmark"})}),R]})]})})}import{jsx as ze}from"react/jsx-runtime";var xi=({startingTransiton:e=!1,children:t,className:o,ref:r,...a})=>ze("aside",{ref:r,"data-slot":"panel",className:i("border border-primary/50 bg-ground/80 backdrop-blur-sm shadow-[0_10px_20px_-8px_rgba(0,0,0,.6)]","rounded-[1rem] [corner-shape:squircle]",e&&"starting:opacity-0 starting:translate-y-4 starting:scale-95 transition-all duration-350 ease-in-out","pointer-events-auto",o),...a,children:t}),hi=({children:e,className:t,...o})=>ze("header",{className:i("flex px-3 py-2",t),...o,children:e}),bi=({children:e,className:t,...o})=>ze("h2",{className:i("text-[.7rem] text-secondary font-normal tracking-wider uppercase",t),...o,children:e});import{Popover as J}from"@base-ui/react/popover";import{jsx as j}from"react/jsx-runtime";function vi({...e}){return j(J.Root,{"data-slot":"popover",...e})}function Pi({...e}){return j(J.Trigger,{"data-slot":"popover-trigger",...e})}function wi({className:e,align:t="center",alignOffset:o=0,side:r="bottom",sideOffset:a=4,shadow:n,anchor:s,...p}){return j(J.Portal,{children:j(J.Positioner,{align:t,alignOffset:o,side:r,sideOffset:a,anchor:s,className:"z-10110",children:j(J.Popup,{"data-slot":"popover-content",className:i("border border-primary/50 bg-ground/80 backdrop-blur-sm ","rounded-[1rem] [corner-shape:squircle]","flex w-72 origin-(--transform-origin) flex-col gap-2.5 p-2.5 text-sm text-popover-foreground outline-hidden duration-100","data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",n==="lg"?"shadow-[0_20px_15px_-12px_rgba(0,0,0,.35)]":"shadow-[0_10px_20px_-8px_rgba(0,0,0,.6)]",e),...p})})})}function Ci({className:e,...t}){return j("div",{"data-slot":"popover-header",className:i("flex flex-col gap-0.5 text-sm",e),...t})}function Ii({className:e,...t}){return j(J.Title,{"data-slot":"popover-title",className:i("font-medium",e),...t})}function Di({className:e,...t}){return j(J.Description,{"data-slot":"popover-description",className:i("text-muted-foreground",e),...t})}import{jsx as Ti}from"react/jsx-runtime";var Si=({direction:e="horizontal",children:t,className:o,ref:r})=>Ti("div",{ref:r,className:i(e==="horizontal"?"overflow-x-auto":"overflow-y-auto",e==="horizontal"?"[-webkit-mask-image:linear-gradient(to_right,transparent,black_16px,black_calc(100%-16px),transparent)]":"[-webkit-mask-image:linear-gradient(to_bottom,transparent,black_16px,black_calc(100%-16px),transparent)]",e==="horizontal"?"mask-[linear-gradient(to_right,transparent,black_16px,black_calc(100%-16px),transparent)]":"mask-[linear-gradient(to_bottom,transparent,black_16px,black_calc(100%-16px),transparent)]",o),children:t});import{Fragment as Ri,useMemo as ki}from"react";import{Slider as te}from"@base-ui/react/slider";import{cva as ge}from"class-variance-authority";import{jsx as G,jsxs as Fe}from"react/jsx-runtime";var Ni=ge(["flex [--slider-accent:var(--color-accent)] data-readonly:[--slider-accent:var(--color-tertiary)]","data-[orientation=horizontal]:w-full data-[orientation=horizontal]:flex-col data-[orientation=vertical]:h-full","data-disabled:opacity-50 data-disabled:cursor-not-allowed"],{variants:{size:{"2xs":"text-3xs [--slider-bar:--spacing(5)] [--slider-thumb:--spacing(2.5)]",xs:"text-2xs [--slider-bar:--spacing(6)] [--slider-thumb:--spacing(3)]",sm:"text-xs [--slider-bar:--spacing(7)] [--slider-thumb:--spacing(3.5)]",md:"text-sm [--slider-bar:--spacing(8)] [--slider-thumb:--spacing(4)]"}},defaultVariants:{size:"md"}}),Li=ge("relative flex touch-none items-center select-none data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:min-h-32 data-[orientation=vertical]:flex-col",{variants:{variant:{default:["data-[orientation=horizontal]:h-(--slider-bar) data-[orientation=vertical]:w-(--slider-bar)","not-data-disabled:cursor-col-resize not-data-disabled:data-[orientation=vertical]:cursor-row-resize"],classic:"data-[orientation=horizontal]:h-(--slider-thumb) data-[orientation=vertical]:w-(--slider-thumb)"}},defaultVariants:{variant:"default"}}),Mi=ge("relative data-[orientation=horizontal]:w-full data-[orientation=vertical]:grow",{variants:{variant:{default:["overflow-hidden rounded-md bg-neutral-0/10","data-[orientation=horizontal]:h-full data-[orientation=vertical]:w-full","has-focus-visible:ring-[3px] has-focus-visible:ring-(--slider-accent)/50"],classic:"rounded-full bg-neutral-0/20 data-[orientation=horizontal]:h-1 data-[orientation=vertical]:w-1"}},defaultVariants:{variant:"default"}}),_i=ge("",{variants:{variant:{default:"bg-(--slider-accent)/50",classic:"rounded-full bg-(--slider-accent)"}},defaultVariants:{variant:"default"}}),Bi=ge("block outline-0",{variants:{variant:{default:"bg-(--slider-accent) data-[orientation=horizontal]:h-full data-[orientation=horizontal]:w-px data-[orientation=vertical]:h-px data-[orientation=vertical]:w-full",classic:["size-(--slider-thumb) cursor-grab rounded-full bg-neutral-0 shadow-sm transition-shadow","data-dragging:cursor-grabbing data-disabled:cursor-not-allowed","has-focus-visible:ring-[3px] has-focus-visible:ring-(--slider-accent)/50"]}},defaultVariants:{variant:"default"}});function Ai({markers:e,min:t,max:o,orientation:r,variant:a,format:n,locale:s}){let p=ki(()=>new Intl.NumberFormat(s,n),[s,n]),b=r==="vertical",R=a==="classic"?"var(--slider-thumb)":"1px";return G("div",{"aria-hidden":!0,"data-slot":"slider-markers","data-orientation":r,className:i("grid text-[0.8em] leading-none text-tertiary tabular-nums select-none *:relative",b?"grid-cols-[auto_auto] grid-rows-1 gap-x-1 pl-1":"grid-rows-[auto_auto] gap-y-0.5 pt-1"),children:e.map(u=>{let y=(u-t)/(o-t)*100,g=`calc(${R} / 2 + ${y/100} * (100% - ${R}))`;return Fe(Ri,{children:[G("span",{"data-slot":"slider-marker-tick",className:i("bg-current [grid-area:1/1]",b?"h-px w-1 self-end":"h-1 w-px justify-self-start"),style:b?{bottom:g,translate:"0 50%"}:{left:g,translate:"-50%"}}),G("span",{"data-slot":"slider-marker-label",className:b?"[grid-area:1/2] self-end":"[grid-area:2/1] justify-self-start",style:b?{bottom:g,translate:"0 50%"}:{left:g,translate:`-${y}%`},children:p.format(u)})]},u)})})}function Ei({className:e,variant:t="default",size:o="md",value:r,defaultValue:a,min:n=0,max:s=100,orientation:p="horizontal",format:b,locale:R,markers:u,readOnly:y=!1,onValueChange:g,"aria-label":c,getAriaLabel:P,...v}){let C=r??a,h=Array.isArray(C)?C.length:1;return Fe(te.Root,{"data-slot":"slider","data-variant":t,"data-size":o,"data-readonly":y||void 0,value:r,defaultValue:a,min:n,max:s,orientation:p,format:b,locale:R,thumbAlignment:"edge",onValueChange:(m,l)=>{if(y){l.cancel();return}g?.(m,l)},className:i(Ni({size:o}),e),...v,children:[G(te.Control,{"data-slot":"slider-control",className:i(Li({variant:t}),y&&"pointer-events-none"),children:Fe(te.Track,{"data-slot":"slider-track",className:Mi({variant:t}),children:[G(te.Indicator,{"data-slot":"slider-indicator",className:_i({variant:t})}),t==="default"&&G(te.Value,{"data-slot":"slider-value",className:i("pointer-events-none absolute inset-0 z-10 flex items-center px-2 text-primary tabular-nums","data-[orientation=vertical]:items-end data-[orientation=vertical]:justify-center data-[orientation=vertical]:px-0 data-[orientation=vertical]:pb-1")}),Array.from({length:h},(m,l)=>G(te.Thumb,{index:l,"aria-label":c,getAriaLabel:P,inputRef:x=>{y?x?.setAttribute("aria-readonly","true"):x?.removeAttribute("aria-readonly")},"data-slot":"slider-thumb",className:Bi({variant:t})},l))]})}),u&&G(Ai,{markers:u,min:n,max:s,orientation:p,variant:t,format:b,locale:R})]})}import{Switch as dt}from"@base-ui/react/switch";import{jsx as ct}from"react/jsx-runtime";function Ui({className:e,disabled:t,...o}){return ct(dt.Root,{"data-slot":"switch",className:i("inline-flex h-5 w-8 shrink-0 cursor-pointer items-center rounded-full border border-transparent bg-neutral-0/20 p-0.5 transition-colors outline-0","focus-visible:ring-[3px] focus-visible:ring-ring/50","data-disabled:opacity-50 data-disabled:cursor-not-allowed","data-checked:bg-accent",e),"data-disabled":t,...o,children:ct(dt.Thumb,{"data-slot":"switch-thumb",className:"block size-4 rounded-full bg-neutral-0 opacity-50 data-checked:opacity-100 shadow-sm transition-[translate,opacity] data-checked:translate-x-3"})})}import{jsx as qi}from"react/jsx-runtime";var Oi=({children:e,className:t,as:o})=>qi(o||"div",{className:i("flex rounded-full bg-neutral-1000/10 light:bg-neutral-1000/30 backdrop-blur-sm filter-[drop-shadow(2px_4px_8px_rgb(0_0_0/0.6))] light:filter-[drop-shadow(2px_4px_8px_rgb(0_0_0/0.4))]",t),children:e});import{forwardRef as Vi}from"react";import{jsx as Fi}from"react/jsx-runtime";var zi=Vi(function({fullWidth:t,fullHeight:o,vertical:r,vCenter:a,hCenter:n,opposite:s,gapRight:p,gapBottom:b,className:R,style:u,...y},g){let c=!!r,P=p??b,v=c?n?"center":void 0:a?"center":void 0,C=s?"space-between":c?a?"center":void 0:n?"center":void 0;return Fi("div",{ref:g,className:i("flex",c?"flex-col":"flex-row",t&&"w-full",o&&"h-full",R),style:{alignItems:v,justifyContent:C,gap:P!==void 0?`${P}rem`:void 0,...u},...y})});import{createContext as $i,useContext as ji,useRef as $e}from"react";import{Tabs as oe}from"@base-ui/react/tabs";import{cva as yt}from"class-variance-authority";import{jsx as O,jsxs as xt}from"react/jsx-runtime";function Gi({className:e,orientation:t="horizontal",...o}){return O(oe.Root,{"data-slot":"tabs","data-orientation":t,className:i("group/tabs flex gap-2 data-[orientation=horizontal]:flex-col",e),...o})}var gt=yt("relative inline-flex w-fit items-center justify-center rounded-lg text-secondary group-data-[orientation=vertical]/tabs:h-fit group-data-[orientation=vertical]/tabs:flex-col",{variants:{variant:{default:"bg-muted",segment:"text-white/85 border border-white/40 rounded-full",line:"gap-1 bg-transparent rounded-none"},size:{"2xs":"p-[2px] text-2xs group-data-[orientation=horizontal]/tabs:h-6",xs:"p-[2px] text-xs group-data-[orientation=horizontal]/tabs:h-6",sm:"p-[2px] text-sm group-data-[orientation=horizontal]/tabs:h-7",md:"p-[2px] text-md group-data-[orientation=horizontal]/tabs:h-8"}},defaultVariants:{variant:"default",size:"md"}}),Hi=yt(i("relative inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 px-1.5 py-0.5","rounded-md border border-transparent whitespace-nowrap transition-all cursor-pointer","group-data-[orientation=vertical]/tabs:w-full group-data-[orientation=vertical]/tabs:justify-start","hover:text-primary focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-1 focus-visible:outline-ring","disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50","has-data-[icon=inline-end]:pr-1 has-data-[icon=inline-start]:pl-1","[&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4"),{variants:{variant:{default:"text-tertiary data-active:text-primary data-active:bg-background",segment:"text-inherit data-active:text-black",line:i("text-inherit data-active:text-primary","after:absolute after:bg-foreground after:opacity-0 after:transition-opacity data-active:after:opacity-100","group-data-[orientation=horizontal]/tabs:after:inset-x-0 group-data-[orientation=horizontal]/tabs:after:bottom-[-5px] group-data-[orientation=horizontal]/tabs:after:h-0.5","group-data-[orientation=vertical]/tabs:after:inset-y-0 group-data-[orientation=vertical]/tabs:after:-right-1 group-data-[orientation=vertical]/tabs:after:w-0.5")},size:{"2xs":"",xs:"",sm:"gap-1 py-0 text-xs",md:""}},defaultVariants:{variant:"default",size:"md"}}),je=$i({variant:"default",size:"md"}),Zi=6;function Wi(e){let t=e.getBoundingClientRect();return Array.from(e.querySelectorAll('[data-slot="tabs-trigger"]')).map(o=>{let r=o.getBoundingClientRect();return{el:o,left:r.left-t.left,width:r.width}})}function mt(e,t){let o=t[0],r=t[t.length-1],a=Math.min(Math.max(e,o.left),r.left);for(let n=0;n<t.length-1;n++){let s=t[n],p=t[n+1];if(a>=s.left&&a<=p.left){let b=(a-s.left)/(p.left-s.left||1);return{left:a,width:s.width+b*(p.width-s.width)}}}return{left:a,width:a===o.left?o.width:r.width}}function Xi(e,t){return t.reduce((o,r)=>{let a=r.left+r.width/2,n=o.left+o.width/2;return Math.abs(e-a)<Math.abs(e-n)?r:o})}var Yi=[255,255,255,.85],Ji=[0,0,0,1];function Ki(e){let t=Math.min(Math.max(e,0),1),[o,r,a,n]=Yi.map((s,p)=>s+(Ji[p]-s)*t);return`rgba(${o}, ${r}, ${a}, ${n})`}function Qi(e,t,o){let r=Math.min(e+t,o.left+o.width)-Math.max(e,o.left);return Math.max(0,r)/o.width}function ft(e,t,o){for(let r of o)r.el.style.color=Ki(Qi(e,t,r))}function ut(e){for(let t of e)t.el.style.transition="",t.el.style.color=""}function er({swipeable:e=!1,variant:t="default",...o}){return e&&t==="segment"?O(or,{...o}):O(tr,{variant:t,...o})}function tr({className:e,variant:t="default",size:o="md",children:r,...a}){return xt(oe.List,{"data-slot":"tabs-list","data-variant":t,"data-size":o,className:i(gt({variant:t,size:o}),e),...a,children:[O(je.Provider,{value:{variant:t,size:o},children:r}),t==="segment"&&O(Ge,{})]})}function or({className:e,size:t="md",children:o,...r}){let a=$e(null),n=$e(null),s=$e(null),p=()=>a.current?.querySelector('[data-slot="tabs-indicator"]'),b=()=>{let c=p();c&&(c.style.transition="",c.style.translate="",c.style.width="")},R=()=>{let c=s.current;c&&(c.indicator.removeEventListener("transitionend",c.handler),clearTimeout(c.timeoutId),s.current=null)},u=c=>{if(c.pointerType!=="touch")return;R();let P=a.current,v=P?.querySelector('[data-slot="tabs-trigger"][data-active]');if(!P||!v)return;let C=Wi(P),h=C.find(m=>m.el===v);h&&(n.current={pointerId:c.pointerId,startX:c.clientX,isDragging:!1,activeLeft:h.left,activeEl:v,triggers:C})},y=c=>{let P=n.current;if(!P||c.pointerId!==P.pointerId)return;let v=c.clientX-P.startX;if(!P.isDragging){if(Math.abs(v)<Zi)return;P.isDragging=!0,a.current?.setPointerCapture(c.pointerId);let l=p();l&&(l.style.transition="none");for(let x of P.triggers)x.el.style.transition="none"}c.preventDefault();let C=p();if(!C)return;let{left:h,width:m}=mt(P.activeLeft+v,P.triggers);C.style.translate=`${h}px`,C.style.width=`${m}px`,ft(h,m,P.triggers)},g=(c,P)=>{let v=n.current;if(!v||c.pointerId!==v.pointerId||(n.current=null,!v.isDragging))return;a.current?.releasePointerCapture(c.pointerId);let C=p();if(!P||!C){b(),ut(v.triggers);return}let h=c.clientX-v.startX,{left:m,width:l}=mt(v.activeLeft+h,v.triggers),x=Xi(m+l/2,v.triggers);C.style.transition="",C.style.translate=`${x.left}px`,C.style.width=`${x.width}px`;for(let H of v.triggers)H.el.style.transition="";ft(x.left,x.width,v.triggers),x.el!==v.activeEl&&x.el.click();let D=()=>{b(),ut(v.triggers)};C.addEventListener("transitionend",D,{once:!0});let F=window.setTimeout(()=>{s.current=null,D()},200);s.current={indicator:C,handler:D,timeoutId:F}};return xt(oe.List,{ref:a,"data-slot":"tabs-list","data-variant":"segment","data-size":t,className:i(gt({variant:"segment",size:t}),"touch-pan-y",e),onPointerDown:u,onPointerMove:y,onPointerUp:c=>g(c,!0),onPointerCancel:c=>g(c,!1),...r,children:[O(je.Provider,{value:{variant:"segment",size:t},children:o}),O(Ge,{})]})}function Ge({className:e,...t}){return O(oe.Indicator,{"data-slot":"tabs-indicator",className:i("absolute z-[-1] h-[calc(100%-4px)]! rounded-full bg-white transition-[translate,width] duration-200 ease-in-out","group-data-[orientation=horizontal]/tabs:top-0.5 group-data-[orientation=horizontal]/tabs:left-0 group-data-[orientation=horizontal]/tabs:h-full group-data-[orientation=horizontal]/tabs:w-(--active-tab-width) group-data-[orientation=horizontal]/tabs:translate-x-(--active-tab-left)","group-data-[orientation=vertical]/tabs:top-0.5 group-data-[orientation=vertical]/tabs:left-0 group-data-[orientation=vertical]/tabs:w-full group-data-[orientation=vertical]/tabs:h-(--active-tab-height) group-data-[orientation=vertical]/tabs:translate-y-(--active-tab-top)",e),...t})}function ir({className:e,...t}){let{variant:o,size:r}=ji(je);return O(oe.Tab,{"data-slot":"tabs-trigger",className:i(Hi({variant:o,size:r}),e),...t})}function rr({className:e,...t}){return O(oe.Panel,{"data-slot":"tabs-content",className:i("flex-1 text-sm outline-0",e),...t})}import{jsx as sr}from"react/jsx-runtime";var ar={title1:{className:"text-2xl font-semibold",as:"h1"},title2:{className:"text-xl font-semibold",as:"h2"},body1:{className:"text-base",as:"p"},body2:{className:"text-sm",as:"p"},body3:{className:"text-xs",as:"p"}};function nr({as:e,format:t,color:o,align:r,className:a,...n}){let s=t?ar[t]:void 0,p=e??s?.as??"p";return sr(p,{className:i(s?.className,o==="secondary"&&"text-tertiary",r==="left"&&"text-left",r==="center"&&"text-center",r==="right"&&"text-right",a),...n})}import{jsx as ht,jsxs as pr}from"react/jsx-runtime";var lr=({isOn:e,onToggle:t,size:o="sm",disabled:r,className:a})=>pr(M,{variant:"ghost",size:o,onClick:t,disabled:r,"aria-pressed":e,className:a,children:[e&&ht(w,{className:"fas fa-check starting:translate-x-4 starting:opacity-0 transition-all duration-150"}),ht("span",{className:i(e?"text-primary":"text-tertiary"),children:e?"ON":"OFF"})]});import{Tooltip as K}from"@base-ui/react/tooltip";import{jsx as ie,jsxs as ur}from"react/jsx-runtime";function dr({delay:e=0,...t}){return ie(K.Provider,{"data-slot":"tooltip-provider",delay:e,...t})}function cr({...e}){return ie(K.Root,{"data-slot":"tooltip",...e})}function mr({...e}){return ie(K.Trigger,{"data-slot":"tooltip-trigger",...e})}function fr({className:e,side:t="top",sideOffset:o=4,align:r="center",alignOffset:a=0,children:n,...s}){return ie(K.Portal,{children:ie(K.Positioner,{align:r,alignOffset:a,side:t,sideOffset:o,className:"isolate z-50",children:ur(K.Popup,{"data-slot":"tooltip-content",className:i("z-50 inline-flex w-fit max-w-xs origin-(--transform-origin) items-center gap-1.5 rounded-md bg-foreground px-3 py-1.5 text-xs text-background has-data-[slot=kbd]:pr-1.5 data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 **:data-[slot=kbd]:relative **:data-[slot=kbd]:isolate **:data-[slot=kbd]:z-50 **:data-[slot=kbd]:rounded-sm data-[state=delayed-open]:animate-in data-[state=delayed-open]:fade-in-0 data-[state=delayed-open]:zoom-in-95 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",e),...s,children:[n,ie(K.Arrow,{className:"z-50 size-2.5 translate-y-[calc(-50%-2px)] rotate-45 rounded-[2px] bg-foreground fill-foreground data-[side=bottom]:top-1 data-[side=inline-end]:top-1/2! data-[side=inline-end]:-left-1 data-[side=inline-end]:-translate-y-1/2 data-[side=inline-start]:top-1/2! data-[side=inline-start]:-right-1 data-[side=inline-start]:-translate-y-1/2 data-[side=left]:top-1/2! data-[side=left]:-right-1 data-[side=left]:-translate-y-1/2 data-[side=right]:top-1/2! data-[side=right]:-left-1 data-[side=right]:-translate-y-1/2 data-[side=top]:-bottom-2.5"})]})})})}export{lo as Accordion,mo as AccordionContent,po as AccordionItem,co as AccordionTrigger,Mt as AppIcon,ro as AssetIcon,No as Badge,xo as BottomSheet,vo as BottomSheetClose,Co as BottomSheetContent,To as BottomSheetDescription,Do as BottomSheetFooter,Io as BottomSheetHeader,So as BottomSheetTitle,ho as BottomSheetTrigger,M as Button,Mo as ButtonTile,Bo as DataItem,Uo as DataItemDescription,Ao as DataItemLabel,Eo as DataItemTitle,Oo as DataItemValue,Vo as Dialog,jo as DialogContent,Wo as DialogDescription,Ho as DialogFooter,Go as DialogHeader,Zo as DialogTitle,zo as DialogTrigger,Xo as DotPing,Jo as EmptyState,pe as EntityComponentBadge,Ae as EntityComponentIcon,jt as EntityRecipe,Wt as GlowEffect,w as Icon,so as IconAssetScene,Ko as IslandPanel,Yt as IsometricSchema,ei as Kbd,oi as Loader,Jt as Logo3dverse,Oe as Logo3dverseRocket,pi as Menu,ci as MenuContent,ui as MenuGroup,yi as MenuGroupLabel,mi as MenuItem,st as MenuPortal,lt as MenuPositioner,fi as MenuSeparator,di as MenuTrigger,gi as Modal,Oi as OverlayContainer,xi as Panel,hi as PanelHeader,bi as PanelTitle,vi as Popover,wi as PopoverContent,Di as PopoverDescription,Ci as PopoverHeader,Ii as PopoverTitle,Pi as PopoverTrigger,Si as ScrollableArea,Ei as Slider,Qt as Spinner,zi as Stack,Ui as Switch,Gi as Tabs,rr as TabsContent,Ge as TabsIndicator,er as TabsList,ir as TabsTrigger,nr as Text,lr as ToggleButton,cr as Tooltip,fr as TooltipContent,dr as TooltipProvider,mr as TooltipTrigger,se as appIconShapes,i as cn};
|
|
17
17
|
//# sourceMappingURL=index.mjs.map
|