Skip to content

Release: Merge develop to main - Complete DuraGraph implementation - #3

Closed
adwiteeymauriya wants to merge 45 commits into
mainfrom
develop
Closed

Release: Merge develop to main - Complete DuraGraph implementation#3
adwiteeymauriya wants to merge 45 commits into
mainfrom
develop

Conversation

@adwiteeymauriya

Copy link
Copy Markdown
Contributor

Summary

This PR merges the complete DuraGraph implementation from develop to main, including the core server, infrastructure, dashboard, documentation, and devcontainer setup.

What's Included

Core Implementation

  • ✅ Go-based API server with Echo framework
  • ✅ Domain-Driven Design (DDD) architecture with CQRS
  • ✅ Event Sourcing with PostgreSQL
  • ✅ Transactional Outbox pattern for reliable event delivery
  • ✅ NATS JetStream for message brokering
  • ✅ Graph execution engine for AI workflows
  • ✅ LLM integrations (OpenAI, Anthropic)

Infrastructure

  • ✅ PostgreSQL migrations for event store, outbox, and projections
  • ✅ Docker Compose setup for local development
  • ✅ Devcontainer with complete tooling (Go, Node.js, Python, Act)
  • ✅ GitHub Actions CI/CD workflows
  • ✅ Pre-commit hooks for code quality

Dashboard & Docs

  • ✅ Svelte-based dashboard for workflow management
  • ✅ Next.js documentation site with Fumadocs
  • ✅ Vite-based landing page
  • ✅ API documentation and guides

Developer Experience

  • ✅ Fork-friendly devcontainer with optional GPG signing
  • ✅ Act for local GitHub Actions testing
  • ✅ Comprehensive Taskfile for common operations
  • ✅ Pre-configured VS Code extensions and settings

Testing

All CI workflows passing:

  • Go unit tests
  • Go integration tests
  • Dashboard build
  • Documentation build
  • Pre-commit hooks
  • Linting and formatting

Breaking Changes

None - this is the initial release.

Deployment

This PR represents the first production-ready release of DuraGraph. After merge:

  1. Release-please will create a release PR
  2. Semantic versioning will be applied
  3. Docker images will be built and published
  4. Documentation will be deployed to GitHub Pages

Adwiteey Mauriya and others added 27 commits September 13, 2025 18:17
- Remove old cmd/api directory (replaced by cmd/server)
- Remove runtime bridge and translator (replaced by new architecture)
- Remove old SQL migration file
- Remove deprecated graph visualization components
- Clean up unused dashboard routes
- Replace MkDocs (Python) with Fumadocs (Next.js/TypeScript)
- Convert all .md files to .mdx format
- Add Next.js app router structure
- Add search functionality
- Add OG image generation
- Update documentation structure and navigation
- Remove Python dependencies (poetry.lock, pyproject.toml)
- Add TypeScript configuration
- Update layout and page components
- Improve CSS styling
- Update Svelte and Vite configuration
- Remove deprecated graph components
- Add Playwright configuration for multi-browser testing
- Create test fixtures for auth and API mocking
- Add authentication E2E tests (login, logout, session)
- Add RBAC permission tests (admin vs user roles)
- Add rate limiting tests
- Add real-time streaming (SSE) tests
- 47 comprehensive E2E tests covering critical features
- Update package dependencies
- Auto-install Playwright browsers on container startup
- Add support for E2E testing in devcontainer
- Update post-create script
- Update CI workflow configuration
- Update release-please workflow
- Remove deprecated docs-ci.yml (replaced by github-pages.yml)
- Build docs (Fumadocs) and landing page (Vite)
- Merge into unified static site structure
- Deploy to GitHub Pages via actions/deploy-pages
- Support for custom domain configuration
- Add Act configuration templates for local testing
- PR preview artifacts with automatic HTTPS
- Add GitHub Pages workflow description
- Add quick start guide for deployment
- Add Act commands reference
- Update workflow triggers table
- Update dashboard Dockerfile
- Update docker-compose configuration
- Remove old deployment files
- Add build artifacts to gitignore
- Ensure clean repository
- Add Act testing commands to Taskfile
- Add dashboard E2E test tasks
- Add GitHub Pages deployment testing
- Remove deprecated Makefile
- Consolidate on Taskfile for all build tasks
- Update README with new documentation structure
- Update contributing guidelines
- Update security documentation
- Update .gitignore for new build artifacts and deployment files
- Add cmd/server with main entry point
- Add internal/ domain-driven architecture
  - domain/ aggregates and entities
  - application/ CQRS command/query handlers
  - infrastructure/ HTTP, persistence, messaging
- Add Go module dependencies
- Implement Event Sourcing with PostgreSQL
- Implement CQRS pattern
- Add graph execution engine
- Add LLM integrations (OpenAI, Anthropic)
- Add cmd/server with main entry point
- Add internal/ domain-driven architecture
  - domain/ aggregates and entities
  - application/ CQRS command/query handlers
  - infrastructure/ HTTP, persistence, messaging
- Add Go module dependencies
- Implement Event Sourcing with PostgreSQL
- Implement CQRS pattern
- Add graph execution engine
- Add LLM integrations (OpenAI, Anthropic)
- Add cmd/server with main entry point
- Add internal/ domain-driven architecture
  - domain/ aggregates and entities
  - application/ CQRS command/query handlers
  - infrastructure/ HTTP, persistence, messaging
- Add Go module dependencies
- Implement Event Sourcing with PostgreSQL
- Implement CQRS pattern
- Add graph execution engine
- Add LLM integrations (OpenAI, Anthropic)
- Add 001_init.sql for core tables (runs, assistants, threads)
- Add 002_event_store.sql for event sourcing
- Add 003_outbox.sql for transactional outbox pattern
- Add 004_projections.sql for CQRS read models
- Add cmd/server with main entry point
- Add internal/ domain-driven architecture
  - domain/ aggregates and entities
  - application/ CQRS command/query handlers
  - infrastructure/ HTTP, persistence, messaging
- Add Go module dependencies
- Implement Event Sourcing with PostgreSQL
- Implement CQRS pattern
- Add graph execution engine
- Add LLM integrations (OpenAI, Anthropic)
- Update .gitignore with new exclusions
- Fix dashboard/tsconfig.json JSON syntax
- EOF fixes for CODE_OF_CONDUCT.md, LICENSE
- Add bin/.gitkeep placeholder
- EOF fixes for website SVG files
- Add conformance and contract test workflows
- Update OpenAPI and IR schemas
- Update test reference data
- Update dev scripts
- Update test docker-compose config
- Update init structure script
- Remove old codegen workers (duragraph-codegen, eino-to-temporal, langgraph-to-temporal)
- Remove runtime adapters (go-adapter, python-adapter)
- Remove worker templates
- These are replaced by new internal/ architecture
- Add GitHub issue and PR templates
- Add Dependabot configuration for automated dependency updates
- Add comprehensive CI/CD workflows (devcontainer, docs, main)
- Add GoReleaser for multi-platform releases
- Add pre-commit hooks for code quality
- Add operational runbook
- Add API and workflow testing scripts
- Add backend E2E test templates
- Add dashboard E2E testing documentation
- Add dashboard GitHub workflows
- Add deployment README
- Add DigitalOcean deployment configuration
- Add Fly.io deployment configuration
- Add Pulumi infrastructure as code
- Add Railway deployment configuration
- Add Render deployment configuration
- Add Scaleway deployment configuration
- Update .gitignore to allow deployment configs (no secrets)
- Add support for GIT_USER_NAME and GIT_USER_EMAIL env vars
- Add automatic GPG key import from GPG_PRIVATE_KEY env var
- Configure git commit signing with GPG_KEY_ID
- Auto-configure GPG trust and TTY settings
- Add .env.example template for easy setup
- Update .gitignore to protect env files
- Enables automatic GPG signing of commits in devcontainer
This commit makes the devcontainer setup fork-friendly and idempotent,
ensuring that all configuration is optional and doesn't interfere with
contributors' existing git setups.

Key changes:

1. **Idempotent GPG setup**:
   - Added error handling to prevent script failure if GPG import fails
   - Check if GPG_TTY already exists before adding to shell configs
   - Suppress errors for already-trusted keys
   - Continue gracefully when GPG is not configured

2. **Optional automatic signing**:
   - Added ENABLE_GPG_SIGNING env var (defaults to false)
   - GPG key is imported but auto-signing is opt-in
   - Users can still sign manually with 'git commit -S'
   - Only maintainers who need to push to main repo should enable auto-signing

3. **Fork-friendly design**:
   - All env vars are now optional
   - Git config uses existing host config if vars not set
   - Clear messaging that GPG is not required for contributors
   - GPG setup only affects YOUR devcontainer, not repo requirements

4. **Better error messages**:
   - Added informative messages when env vars are not set
   - Explain what happens when GPG is not configured
   - Clear distinction between maintainer and contributor needs

5. **Documentation updates**:
   - Added fork-friendly section to .devcontainer/README.md
   - Updated .env.example with detailed comments
   - Added ENV_SETUP.md to .gitignore (local setup only)

This ensures that:
- Contributors forking the repo can start immediately without any setup
- GPG signing is NOT required for development or contributing
- The setup is fully idempotent (can run multiple times safely)
- Maintainers can opt-in to GPG signing when needed
- No one's existing git configuration is overwritten
@adwiteeymauriya adwiteeymauriya added priority: high High priority area: backend Go server code area: frontend Dashboard (Svelte) labels Nov 23, 2025
@adwiteeymauriya adwiteeymauriya added area: docs Documentation area: ci/cd Workflows, automation area: deployment Docker, cloud configs labels Nov 23, 2025
@adwiteeymauriya adwiteeymauriya self-assigned this Nov 23, 2025
@github-actions

Copy link
Copy Markdown

📚 Documentation Build Status

✅ Build completed successfully!

Build Artifacts:

  • The static site has been built and uploaded as an artifact
  • Download the artifact from the workflow run to preview locally

What's included:

  • 📖 Documentation (Fumadocs)
  • 🌐 Landing page (website)

Note: This is a PR preview build. The site will be deployed to GitHub Pages when merged to main.


Build completed in workflow run #1

This commit removes the problematic `network_mode: host` configuration
and replaces it with a proper external Docker network for better
isolation, security, and cross-platform compatibility.

Changes:

1. **Created external network**:
   - Added `duragraph-network` as external network in docker-compose.yml
   - Network is created automatically via `initializeCommand`
   - All services (devcontainer, db, nats) now use this network

2. **Added initializeCommand**:
   - Checks if `duragraph-network` exists before starting devcontainer
   - Creates network if it doesn't exist
   - Ensures idempotent setup (safe to run multiple times)

3. **Removed host networking**:
   - Removed `network_mode: host` from devcontainer service
   - Provides proper container isolation
   - Works correctly on Linux, macOS, and Windows

4. **Added container names**:
   - `duragraph-db` for PostgreSQL
   - `duragraph-nats` for NATS
   - Enables DNS-based service discovery within network

5. **Updated documentation**:
   - Added service connection instructions
   - Documented container-to-container vs host-to-container URLs
   - PostgreSQL: `db:5432` (internal) vs `localhost:5432` (external)
   - NATS: `nats:4222` (internal) vs `localhost:4222` (external)

Benefits:
- ✅ Better security (proper network isolation)
- ✅ Cross-platform compatibility (works on macOS/Windows)
- ✅ DNS-based service discovery (use service names)
- ✅ No port conflicts with host
- ✅ Follows Docker best practices
1. Exclude tsconfig files from check-json hook (they use JSONC with comments)
2. Replace go-vet with local hook (dnephin's version doesn't handle modules)
3. Fix unused variables in example_unit_test.go

All pre-commit checks now pass.
1. Create scripts/dev/validate_ir.py for IR schema validation
   - Validates IR JSON examples against ir.schema.json
   - Required by contracts.yml ir_validate job

2. Fix conformance.yml docker-compose path
   - Changed from docker-compose.yml to docker-compose.test.yml
   - Matches actual file in deploy/compose/

3. Replace openapi-diff (Java) with oasdiff (Go) in contracts.yml
   - Uses oasdiff/oasdiff-action for breaking change detection
   - No Java dependency needed
   - Better GitHub Actions integration

4. Add .spectral.yaml ruleset for OpenAPI linting
   - Extends spectral:oas base ruleset
   - Configures rules as warnings to allow CI to pass
   - Can be tightened later as spec matures
Pre-commit end-of-file-fixer removes trailing blank lines from files.
The pre-commit hook requires goimports to be available in PATH.
Added installation step before running pre-commit action.
- Remove obsolete version attribute
- Fix context paths to use repo root (../..)
- Fix volume path for SQL init scripts
- Add test-runner service with pytest dependencies
- Run conformance tests via docker compose run
- Wait for test-api to be healthy before running tests
- Update Dockerfile.api to use cmd/server and internal/ directories
- Update Go version to 1.23
- Remove non-existent Temporal and worker services from test compose
- Add NATS service (matches actual project dependencies)
- Add proper healthchecks for service dependencies
- Use correct environment variables for the server
Changed from langgraph-openapi.json to langgraph-platform.json
to match actual file in tests/reference/
The oasdiff check tracks API compatibility with LangGraph Platform.
Since we're building up to full compatibility incrementally, the job
now uses continue-on-error to report differences without blocking CI.
The oasdiff check compares against LangGraph Platform spec but
DuraGraph is still building up to full compatibility. Disabled
for now to unblock CI; will re-enable when feature parity is reached.
- Add id: build to build-push step for attestation reference
- Add note that workflow requires Docker-in-Docker (can't test with Act)
- Update BASE_URL to include /api/v1 prefix
- Fix response field names (id -> assistant_id, thread_id, run_id)
- Fix start_run to POST to /runs with correct payload structure
- Fix stream URL to use query parameter format
- Add role parameter to create_message
- Use sseclient.events() iterator correctly
- POST /runs now expects thread_id in request body instead of path
- Add validation for required thread_id field
- Update release-please to use config and manifest files
`,enabled:m.enableEnhancedFileUploader},{name:"enable-presence",description:`Enable components to remain unmounted in closed state and mount in open state.
`,enabled:m.enablePresence}];function ut(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Kn(e){if(Array.isArray(e))return e}function Qn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function er(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ar(r.key),r)}}function tr(e,t,n){return t&&er(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function nr(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=yn(e))||t){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(f){throw f},f:o}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i,s=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var f=n.next();return s=f.done,f},e:function(f){l=!0,i=f},f:function(){try{s||n.return==null||n.return()}finally{if(l)throw i}}}}function rr(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,i,s,l=[],f=!0,u=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(f=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);f=!0);}catch(p){u=!0,o=p}finally{try{if(!f&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(u)throw o}}return l}}function or(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ir(e,t){return Kn(e)||rr(e,t)||yn(e,t)||or()}function sr(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function ar(e){var t=sr(e,"string");return typeof t=="symbol"?t:t+""}function yn(e,t){if(e){if(typeof e=="string")return ut(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ut(e,t):void 0}}var lr=(function(){function e(t){var n=this;Qn(this,e),this.flags=new Map,t&&Object.keys(t).forEach(function(r){n.flags.set(r,t[r])})}return tr(e,[{key:"checkForFlag",value:function(n){if(!this.flags.has(n))throw new Error("Unable to find a feature flag with the name: `".concat(n,"`"))}},{key:"add",value:function(n,r){if(this.flags.has(n))throw new Error("The feature flag: ".concat(n," already exists"));this.flags.set(n,r)}},{key:"enable",value:function(n){this.checkForFlag(n),this.flags.set(n,!0)}},{key:"disable",value:function(n){this.checkForFlag(n),this.flags.set(n,!1)}},{key:"merge",value:function(n){var r=this;Object.keys(n).forEach(function(o){r.flags.set(o,n[o])})}},{key:"mergeWithScope",value:function(n){var r=nr(n.flags),o;try{for(r.s();!(o=r.n()).done;){var i=ir(o.value,2),s=i[0],l=i[1];this.flags.has(s)||this.flags.set(s,l)}}catch(f){r.e(f)}finally{r.f()}}},{key:"enabled",value:function(n){return this.checkForFlag(n),this.flags.get(n)}}])})(),Re=cr();for(var Ve=0;Ve<ft.length;Ve++){var dt=ft[Ve];Re.add(dt.name,dt.enabled)}function cr(e){return new lr(e)}function fr(){return Re.merge.apply(Re,arguments)}fr({"enable-css-custom-properties":!0,"enable-css-grid":!0,"enable-v11-release":!0,"enable-experimental-tile-contrast":!1,"enable-tile-contrast":!1,"enable-v12-tile-radio-icons":!1,"enable-v12-structured-list-visible-icons":!1,"enable-v12-dynamic-floating-styles":!1});function Z(){return Z=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Z.apply(null,arguments)}var De={exports:{}};var pt;function ur(){return pt||(pt=1,(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var i="",s=0;s<arguments.length;s++){var l=arguments[s];l&&(i=o(i,r(l)))}return i}function r(i){if(typeof i=="string"||typeof i=="number")return i;if(typeof i!="object")return"";if(Array.isArray(i))return n.apply(null,i);if(i.toString!==Object.prototype.toString&&!i.toString.toString().includes("[native code]"))return i.toString();var s="";for(var l in i)t.call(i,l)&&i[l]&&(s=o(s,l));return s}function o(i,s){return s?i?i+" "+s:i+s:i}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(De)),De.exports}var dr=ur();const q=Je(dr),pr=c.createContext("cds");function X(){return c.useContext(pr)}var He={exports:{}},$e,mt;function mr(){if(mt)return $e;mt=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return $e=e,$e}var Fe,ht;function hr(){if(ht)return Fe;ht=1;var e=mr();function t(){}function n(){}return n.resetWarningCache=t,Fe=function(){function r(s,l,f,u,p,h){if(h!==e){var b=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw b.name="Invariant Violation",b}}r.isRequired=r;function o(){return r}var i={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:t};return i.PropTypes=i,i},Fe}var gt;function gr(){return gt||(gt=1,He.exports=hr()()),He.exports}var br=gr();const a=Je(br);function yr(e,t,n){return(t=Er(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function ke(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?bt(Object(n),!0).forEach(function(r){yr(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bt(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function yt(e,t){if(e==null)return{};var n,r,o=wr(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function wr(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function vr(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Er(e){var t=vr(e,"string");return typeof t=="symbol"?t:t+""}var xr=["width","height","viewBox"],Rr=["tabindex"],_r={focusable:"false",preserveAspectRatio:"xMidYMid meet"};function Cr(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.width,n=e.height,r=e.viewBox,o=r===void 0?"0 0 ".concat(t," ").concat(n):r,i=yt(e,xr),s=i.tabindex,l=yt(i,Rr),f=ke(ke(ke({},_r),l),{},{width:t,height:n,viewBox:o});return f["aria-label"]||f["aria-labelledby"]||f.title?(f.role="img",s!=null&&(f.focusable="true",f.tabindex=s)):f["aria-hidden"]=!0,f}const j=c.forwardRef(function({className:t,children:n,tabIndex:r,xmlns:o="http://www.w3.org/2000/svg",preserveAspectRatio:i="xMidYMid meet",...s},l){const{tabindex:f,...u}=Cr({...s,tabindex:r}),p=u;return t&&(p.className=t),f!=null&&(typeof f=="number"?p.tabIndex=f:p.tabIndex=Number(r)),l&&(p.ref=l),o&&(p.xmlns=o),i&&(p.preserveAspectRatio=i),c.createElement("svg",p,n)});j.displayName="Icon";j.propTypes={"aria-hidden":a.oneOfType([a.bool,a.oneOf(["true","false"])]),"aria-label":a.string,"aria-labelledby":a.string,children:a.node,className:a.string,height:a.oneOfType([a.number,a.string]),preserveAspectRatio:a.string,tabIndex:a.oneOfType([a.number,a.string]),viewBox:a.string,width:a.oneOfType([a.number,a.string]),xmlns:a.string};var wt,vt;const vi=c.forwardRef(function({children:t,size:n=16,...r},o){return n===16||n==="16"||n==="16px"?c.createElement(j,{width:n,height:n,ref:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",...r},wt||(wt=c.createElement("path",{d:"M7.2,2.3c-1,4.4,1.7,8.7,6.1,9.8c0.1,0,0.1,0,0.2,0c-1.1,1.2-2.7,1.8-4.3,1.8c-0.1,0-0.2,0-0.2,0C5.6,13.8,3,11,3.2,7.7 C3.2,5.3,4.8,3.1,7.2,2.3 M8,1L8,1C4.1,1.6,1.5,5.3,2.1,9.1c0.6,3.3,3.4,5.8,6.8,5.9c0.1,0,0.2,0,0.3,0c2.3,0,4.4-1.1,5.8-3 c0.2-0.2,0.1-0.6-0.1-0.7c-0.1-0.1-0.2-0.1-0.3-0.1c-3.9-0.3-6.7-3.8-6.4-7.6C8.3,3,8.4,2.4,8.6,1.8c0.1-0.3,0-0.6-0.3-0.7 C8.1,1,8.1,1,8,1z"})),t):c.createElement(j,{width:n,height:n,ref:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...r},vt||(vt=c.createElement("path",{d:"M13.5025,5.4136A15.0755,15.0755,0,0,0,25.096,23.6082a11.1134,11.1134,0,0,1-7.9749,3.3893c-.1385,0-.2782.0051-.4178,0A11.0944,11.0944,0,0,1,13.5025,5.4136M14.98,3a1.0024,1.0024,0,0,0-.1746.0156A13.0959,13.0959,0,0,0,16.63,28.9973c.1641.006.3282,0,.4909,0a13.0724,13.0724,0,0,0,10.702-5.5556,1.0094,1.0094,0,0,0-.7833-1.5644A13.08,13.08,0,0,1,15.8892,4.38,1.0149,1.0149,0,0,0,14.98,3Z"})),t)});var Et,xt,Rt,_t,Ct,At,St;const Ei=c.forwardRef(function({children:t,size:n=16,...r},o){return n===20||n==="20"||n==="20px"?c.createElement(j,{width:n,height:n,ref:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",...r},Et||(Et=c.createElement("path",{d:"M8 13.2L3.6 8.8 2.7 9.7 7.1 14.1 8 15 16.5 6.5 15.6 5.6z"})),xt||(xt=c.createElement("path",{d:"M15.6 5.6L8 13.2 3.6 8.8 2.7 9.7 7.1 14.1 8 15 16.5 6.5 15.6 5.6z"})),t):n===24||n==="24"||n==="24px"?c.createElement(j,{width:n,height:n,ref:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",...r},Rt||(Rt=c.createElement("path",{d:"M10 15.9L4.7 10.6 3.6 11.6 8.9 16.9 10 18 20.6 7.4 19.5 6.3z"})),t):c.createElement(j,{width:n,height:n,ref:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...r},_t||(_t=c.createElement("path",{d:"M13 24L4 15 5.414 13.586 13 21.171 26.586 7.586 28 9 13 24z"})),t)}),xi=c.forwardRef(function({children:t,size:n=16,...r},o){return c.createElement(j,{width:n,height:n,ref:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...r},Ct||(Ct=c.createElement("path",{d:"M25.8289 13.1155A10.02 10.02 0 0016 5.0005V7a8.0233 8.0233 0 017.8649 6.4934l.2591 1.346 1.3488.2441A5.5019 5.5019 0 0124.5076 26H16v2h8.5076a7.5019 7.5019 0 001.3213-14.8845zM8 24H14V26H8zM4 24H6V26H4zM6 20H14V22H6zM2 20H4V22H2zM8 16H14V18H8zM4 16H6V18H4zM10 12H14V14H10zM6 12H8V14H6zM12 8H14V10H12z"})),t)}),Ri=c.forwardRef(function({children:t,size:n=16,...r},o){return c.createElement(j,{width:n,height:n,ref:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...r},At||(At=c.createElement("path",{d:"M31 16L24 23 22.59 21.59 28.17 16 22.59 10.41 24 9 31 16zM1 16L8 9 9.41 10.41 3.83 16 9.41 21.59 8 23 1 16z"})),St||(St=c.createElement("path",{d:"M5.91 15H26.080000000000002V17H5.91z",transform:"rotate(-75 15.996 16)"})),t)});var Ot,Tt;const _i=c.forwardRef(function({children:t,size:n=16,...r},o){return c.createElement(j,{width:n,height:n,ref:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...r},Ot||(Ot=c.createElement("path",{d:"M26 2H30V6H26zM26 8H30V12H26zM20 2H24V6H20zM20 8H24V12H20zM28 20h-14v2h2v4h-2v2h9v-2h-5v-4h10c.5304 0 1.0392-.2108 1.4142-.5858s.5858-.8838.5858-1.4142v-6h-2v6zM6 6h12v-2H6c-.5304 0-1.0392.2107-1.4142.5858-.3751.375-.5858.8838-.5858 1.4142v6h2v-6zM10 14H4c-.5304 0-1.0392.2107-1.4142.5858-.3751.375-.5858.8838-.5858 1.4142v12c0 .5304.2107 1.0392.5858 1.4142.375.375.8838.5858 1.4142.5858h6c.5304 0 1.0392-.2108 1.4142-.5858.3751-.375.5858-.8838.5858-1.4142v-12c0-.5304-.2107-1.0392-.5858-1.4142-.375-.3751-.8838-.5858-1.4142-.5858zm0 14H4v-12h6v12z"})),t)}),Ci=c.forwardRef(function({children:t,size:n=16,...r},o){return c.createElement(j,{width:n,height:n,ref:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...r},Tt||(Tt=c.createElement("path",{d:"M25.7,9.3l-7-7A.9078.9078,0,0,0,18,2H8A2.0059,2.0059,0,0,0,6,4V28a2.0059,2.0059,0,0,0,2,2H24a2.0059,2.0059,0,0,0,2-2V10A.9078.9078,0,0,0,25.7,9.3ZM18,4.4,23.6,10H18ZM24,28H8V4h8v6a2.0059,2.0059,0,0,0,2,2h6Z"})),t)});var Lt,Nt,Pt,Mt,Bt,It,Vt,Dt,Ht,$t,Ft,kt,Wt,jt,Ut,zt,Gt,qt;const Ai=c.forwardRef(function({children:t,size:n=16,...r},o){return n===16||n==="16"||n==="16px"?c.createElement(j,{width:n,height:n,ref:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",...r},Lt||(Lt=c.createElement("path",{d:"M7.5 1H8.5V3.5H7.5z"})),Nt||(Nt=c.createElement("path",{d:"M10.8 3.4H13.3V4.4H10.8z",transform:"rotate(-45.001 12.041 3.923)"})),Pt||(Pt=c.createElement("path",{d:"M12.5 7.5H15V8.5H12.5z"})),Mt||(Mt=c.createElement("path",{d:"M11.6 10.8H12.6V13.3H11.6z",transform:"rotate(-45.001 12.075 12.041)"})),Bt||(Bt=c.createElement("path",{d:"M7.5 12.5H8.5V15H7.5z"})),It||(It=c.createElement("path",{d:"M2.7 11.6H5.2V12.6H2.7z",transform:"rotate(-45.001 3.96 12.079)"})),Vt||(Vt=c.createElement("path",{d:"M1 7.5H3.5V8.5H1z"})),Dt||(Dt=c.createElement("path",{d:"M3.4 2.7H4.4V5.2H3.4z",transform:"rotate(-45.001 3.925 3.961)"})),Ht||(Ht=c.createElement("path",{d:"M8,6c1.1,0,2,0.9,2,2s-0.9,2-2,2S6,9.1,6,8S6.9,6,8,6 M8,5C6.3,5,5,6.3,5,8s1.3,3,3,3s3-1.3,3-3S9.7,5,8,5z"})),t):c.createElement(j,{width:n,height:n,ref:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...r},$t||($t=c.createElement("path",{d:"M15 2H17V7H15z"})),Ft||(Ft=c.createElement("path",{d:"M21.668 6.854H26.625999999999998V8.854H21.668z",transform:"rotate(-45 24.147 7.853)"})),kt||(kt=c.createElement("path",{d:"M25 15H30V17H25z"})),Wt||(Wt=c.createElement("path",{d:"M23.147 21.668H25.147V26.625999999999998H23.147z",transform:"rotate(-45 24.147 24.146)"})),jt||(jt=c.createElement("path",{d:"M15 25H17V30H15z"})),Ut||(Ut=c.createElement("path",{d:"M5.375 23.147H10.333V25.147H5.375z",transform:"rotate(-45 7.853 24.146)"})),zt||(zt=c.createElement("path",{d:"M2 15H7V17H2z"})),Gt||(Gt=c.createElement("path",{d:"M6.854 5.375H8.854V10.333H6.854z",transform:"rotate(-45 7.854 7.853)"})),qt||(qt=c.createElement("path",{d:"M16,12a4,4,0,1,1-4,4,4.0045,4.0045,0,0,1,4-4m0-2a6,6,0,1,0,6,6,6,6,0,0,0-6-6Z"})),t)});var Zt,Yt;const Si=c.forwardRef(function({children:t,size:n=16,...r},o){return c.createElement(j,{width:n,height:n,ref:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...r},Zt||(Zt=c.createElement("path",{fillRule:"evenodd",d:"M16,2a14,14,0,0,0-4.43,27.28c.7.13,1-.3,1-.67s0-1.21,0-2.38c-3.89.84-4.71-1.88-4.71-1.88A3.71,3.71,0,0,0,6.24,22.3c-1.27-.86.1-.85.1-.85A2.94,2.94,0,0,1,8.48,22.9a3,3,0,0,0,4.08,1.16,2.93,2.93,0,0,1,.88-1.87c-3.1-.36-6.37-1.56-6.37-6.92a5.4,5.4,0,0,1,1.44-3.76,5,5,0,0,1,.14-3.7s1.17-.38,3.85,1.43a13.3,13.3,0,0,1,7,0c2.67-1.81,3.84-1.43,3.84-1.43a5,5,0,0,1,.14,3.7,5.4,5.4,0,0,1,1.44,3.76c0,5.38-3.27,6.56-6.39,6.91a3.33,3.33,0,0,1,.95,2.59c0,1.87,0,3.38,0,3.84s.25.81,1,.67A14,14,0,0,0,16,2Z"})),t)}),Oi=c.forwardRef(function({children:t,size:n=16,...r},o){return c.createElement(j,{width:n,height:n,ref:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...r},Yt||(Yt=c.createElement("path",{d:"M25.3943,24a7.8772,7.8772,0,0,0-1.6707-8.5684,3.918,3.918,0,0,0-1.0844-4.414l2.7759-2.7759a2.0025,2.0025,0,0,0,0-2.8286L22.5869,2.5849a2.0021,2.0021,0,0,0-2.8286,0L6.5859,15.7573a2.0027,2.0027,0,0,0,0,2.8286l2.8282,2.8282a2.0024,2.0024,0,0,0,2.8286,0l4.7749-4.7754a3.9329,3.9329,0,0,0,5.5139.4326A5.9442,5.9442,0,0,1,23.1775,24H16v4H4v2H28V24ZM10.8281,20,8,17.1714,9.8787,15.293l2.8283,2.8281ZM16,14a3.9811,3.9811,0,0,0,.0762.7524L14.1211,16.707l-2.8284-2.8281,9.88-9.88L24.001,6.8271l-3.2488,3.2491A3.9771,3.9771,0,0,0,16,14Zm4,2a2,2,0,1,1,2-2A2.0023,2.0023,0,0,1,20,16Zm6,12H18V26h8Z"})),t)});var Xt;const Ti=c.forwardRef(function({children:t,size:n=16,...r},o){return c.createElement(j,{width:n,height:n,ref:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...r},Xt||(Xt=c.createElement("path",{d:"M22,12h6c1.1028,0,2-.8975,2-2V4c0-1.1025-.8972-2-2-2h-6c-1.1028,0-2,.8975-2,2v2h-9c-2.7571,0-5,2.2432-5,5h-2c-1.1028,0-2,.8975-2,2v6c0,1.1025.8972,2,2,2h2c0,2.7568,2.2429,5,5,5h9v2c0,1.1025.8972,2,2,2h6c1.1028,0,2-.8975,2-2v-6c0-1.1025-.8972-2-2-2h-6c-1.1028,0-2,.8975-2,2v2h-9c-1.6543,0-3-1.3457-3-3h2c1.1028,0,2-.8975,2-2v-6c0-1.1025-.8972-2-2-2h-2c0-1.6543,1.3457-3,3-3h9v2c0,1.1025.8972,2,2,2ZM22,22h6v6h-6l-.0012-6h.0012ZM10,13v6h-6l-.0012-6h6.0012ZM22,4h6v6h-6l-.0012-6h.0012Z"})),t)});var Jt,Kt;const Li=c.forwardRef(function({children:t,size:n=16,...r},o){return c.createElement(j,{width:n,height:n,ref:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...r},Jt||(Jt=c.createElement("path",{strokeWidth:"0",d:"M12 28h-2c-3.8599 0-7-3.1401-7-7v-2h2v2c0 2.7568 2.2432 5 5 5h2v2zM28 19h-9c-1.104.0014-1.9986.896-2 2v5c0 1.1046.8954 2 2 2h3v-2h-3v-5h9v5h-2.5352l-2.5937 3.8906 1.6641 1.1094 2-3h1.4648c1.1046 0 2-.8954 2-2v-5c-.0014-1.104-.896-1.9986-2-2zM29 15v-4c0-3.8599-3.1401-7-7-7h-3v2h3c2.7568 0 5 2.2432 5 5v4h2zM6 10H9V12H6z"})),Kt||(Kt=c.createElement("path",{strokeWidth:"0",d:"m12.606,6.4355l-2.5251-3.6855c-.3821-.4766-.9512-.75-1.5615-.75h-4.5193c-1.1028,0-2,.8975-2,2v10c0,1.1025.8972,2,2,2h7c1.1028,0,2-.8975,2-2v-6.375c0-.4526-.1558-.8965-.394-1.1895Zm-8.606,7.5645V4h4v3c0,.5522.4478,1,1,1h2v6h-7Z"})),t)});var Qt,en;const Ni=c.forwardRef(function({children:t,size:n=16,...r},o){return c.createElement(j,{width:n,height:n,ref:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...r},Qt||(Qt=c.createElement("path",{d:"M14 16.59L11.41 14 10 15.41 14 19.41 22 11.41 20.59 10 14 16.59z"})),en||(en=c.createElement("path",{d:"M16,30,9.8242,26.7071A10.9818,10.9818,0,0,1,4,17V4A2.0021,2.0021,0,0,1,6,2H26a2.0021,2.0021,0,0,1,2,2V17a10.9818,10.9818,0,0,1-5.8242,9.7071ZM6,4V17a8.9852,8.9852,0,0,0,4.7656,7.9423L16,27.7333l5.2344-2.791A8.9852,8.9852,0,0,0,26,17V4Z"})),t)}),Ar={key:"Enter",which:13,keyCode:13,code:"Enter"},tn={key:["Escape","Esc"],which:27,keyCode:27,code:"Esc"},Sr={key:" ",which:32,keyCode:32,code:"Space"},we=(e,{key:t,which:n,keyCode:r,code:o})=>typeof e=="string"?e===t:typeof e=="number"?e===n||e===r:e.key&&Array.isArray(t)?t.includes(e.key):e.key===t||e.which===n||e.keyCode===r||e.code===o,Or=()=>{let e=0;return()=>++e},Tr=!!(typeof window<"u"&&window.document&&window.document.createElement),Lr=c.createContext(null);function wn(){return c.useContext(Lr)}const vn={...c},We=Or(),Nr=Tr?g.useLayoutEffect:g.useEffect;let je=!1;const En="id";function Pr(e=En){const t=wn(),[n,r]=g.useState(()=>je?`${t?`${t}-`:""}${e}-${We()}`:null);return Nr(()=>{n===null&&r(`${t?`${t}-`:""}${e}-${We()}`)},[We]),g.useEffect(()=>{je===!1&&(je=!0)},[]),n}function Mr(e=En){const t=wn();return`${t?`${t}-`:""}${e}-${vn.useId()}`}const Ke=vn.useId?Mr:Pr,Ue=new Map,Qe=(e,t)=>(r,o,i,...s)=>{if(typeof r[o]>"u")return;Ue.has(i)||Ue.set(i,new Set);const l=Ue.get(i);return l&&!l.has(o)&&l.add(o),e(r,o,i,...s)},xn=typeof window<"u"?g.useLayoutEffect:g.useEffect,ve={},Rn=(e,t,n)=>(r,o,i,...s)=>{if(typeof r[o]>"u")return null;if(!ve[i]||!ve[i][o]){ve[i]={...ve[i],[o]:!0};const l=r[o],f=n?n(l):null;t&&!t.includes(l)&&(n?`${l}${o}${i}${f}${l}`:`${l}${o}${i}${t.join(", ")}${l}`)}return e(r,o,i,...s)},_n=e=>{const t=g.useMemo(()=>e,e);return g.useCallback(n=>{t.forEach(r=>{typeof r=="function"?r(n):r&&(r.current=n)})},[t])},Br=(e,t,n)=>{const r=g.useRef(null);g.useEffect(()=>{r.current=n},[n]),g.useEffect(()=>{const o="current"in e?e.current:e;if(!o)return;const i=s=>{r.current&&r.current(s)};return o.addEventListener(t,i),()=>{o.removeEventListener(t,i)}},[e,t])},Ir=(e,t)=>{const n=g.useRef(null);g.useEffect(()=>{n.current=t},[t]),g.useEffect(()=>{const r=o=>{n.current&&n.current(o)};return window.addEventListener(e,r),()=>{window.removeEventListener(e,r)}},[e])},Vr={"top-left":"top-start","top-right":"top-end","bottom-left":"bottom-start","bottom-right":"bottom-end","left-bottom":"left-end","left-top":"left-start","right-bottom":"right-end","right-top":"right-start"},et=e=>Vr[e]??e;function Oe(){return typeof window<"u"}function de(e){return Cn(e)?(e.nodeName||"").toLowerCase():"#document"}function Y(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ee(e){var t;return(t=(Cn(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Cn(e){return Oe()?e instanceof Node||e instanceof Y(e).Node:!1}function G(e){return Oe()?e instanceof Element||e instanceof Y(e).Element:!1}function Q(e){return Oe()?e instanceof HTMLElement||e instanceof Y(e).HTMLElement:!1}function nn(e){return!Oe()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Y(e).ShadowRoot}const Dr=new Set(["inline","contents"]);function he(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=J(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!Dr.has(o)}const Hr=new Set(["table","td","th"]);function $r(e){return Hr.has(de(e))}const Fr=[":popover-open",":modal"];function Te(e){return Fr.some(t=>{try{return e.matches(t)}catch{return!1}})}const kr=["transform","translate","scale","rotate","perspective"],Wr=["transform","translate","scale","rotate","perspective","filter"],jr=["paint","layout","strict","content"];function tt(e){const t=nt(),n=G(e)?J(e):e;return kr.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||Wr.some(r=>(n.willChange||"").includes(r))||jr.some(r=>(n.contain||"").includes(r))}function Ur(e){let t=re(e);for(;Q(t)&&!ce(t);){if(tt(t))return t;if(Te(t))return null;t=re(t)}return null}function nt(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const zr=new Set(["html","body","#document"]);function ce(e){return zr.has(de(e))}function J(e){return Y(e).getComputedStyle(e)}function Le(e){return G(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function re(e){if(de(e)==="html")return e;const t=e.assignedSlot||e.parentNode||nn(e)&&e.host||ee(e);return nn(t)?t.host:t}function An(e){const t=re(e);return ce(t)?e.ownerDocument?e.ownerDocument.body:e.body:Q(t)&&he(t)?t:An(t)}function me(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=An(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),s=Y(o);if(i){const l=qe(s);return t.concat(s,s.visualViewport||[],he(o)?o:[],l&&n?me(l):[])}return t.concat(o,me(o,[],n))}function qe(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}const Gr=["top","right","bottom","left"],fe=Math.min,ie=Math.max,_e=Math.round,Ee=Math.floor,K=e=>({x:e,y:e}),qr={left:"right",right:"left",bottom:"top",top:"bottom"},Zr={start:"end",end:"start"};function Yr(e,t,n){return ie(e,fe(t,n))}function ge(e,t){return typeof e=="function"?e(t):e}function ue(e){return e.split("-")[0]}function be(e){return e.split("-")[1]}function Xr(e){return e==="x"?"y":"x"}function rt(e){return e==="y"?"height":"width"}const Jr=new Set(["top","bottom"]);function oe(e){return Jr.has(ue(e))?"y":"x"}function ot(e){return Xr(oe(e))}function Kr(e,t,n){n===void 0&&(n=!1);const r=be(e),o=ot(e),i=rt(o);let s=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=Ce(s)),[s,Ce(s)]}function Qr(e){const t=Ce(e);return[Ze(e),t,Ze(t)]}function Ze(e){return e.replace(/start|end/g,t=>Zr[t])}const rn=["left","right"],on=["right","left"],eo=["top","bottom"],to=["bottom","top"];function no(e,t,n){switch(e){case"top":case"bottom":return n?t?on:rn:t?rn:on;case"left":case"right":return t?eo:to;default:return[]}}function ro(e,t,n,r){const o=be(e);let i=no(ue(e),n==="start",r);return o&&(i=i.map(s=>s+"-"+o),t&&(i=i.concat(i.map(Ze)))),i}function Ce(e){return e.replace(/left|right|bottom|top/g,t=>qr[t])}function oo(e){return{top:0,right:0,bottom:0,left:0,...e}}function Sn(e){return typeof e!="number"?oo(e):{top:e,right:e,bottom:e,left:e}}function Ae(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}var io=typeof document<"u",so=function(){},Ye=io?g.useLayoutEffect:so;const ao={...bn},lo=ao.useInsertionEffect,co=lo||(e=>e());function fo(e){const t=g.useRef(()=>{});return co(()=>{t.current=e}),g.useCallback(function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return t.current==null?void 0:t.current(...r)},[])}var uo=Zn();function sn(e,t,n){let{reference:r,floating:o}=e;const i=oe(t),s=ot(t),l=rt(s),f=ue(t),u=i==="y",p=r.x+r.width/2-o.width/2,h=r.y+r.height/2-o.height/2,b=r[l]/2-o[l]/2;let d;switch(f){case"top":d={x:p,y:r.y-o.height};break;case"bottom":d={x:p,y:r.y+r.height};break;case"right":d={x:r.x+r.width,y:h};break;case"left":d={x:r.x-o.width,y:h};break;default:d={x:r.x,y:r.y}}switch(be(t)){case"start":d[s]-=b*(n&&u?-1:1);break;case"end":d[s]+=b*(n&&u?-1:1);break}return d}const po=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:s}=n,l=i.filter(Boolean),f=await(s.isRTL==null?void 0:s.isRTL(t));let u=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:p,y:h}=sn(u,r,f),b=r,d={},w=0;for(let v=0;v<l.length;v++){const{name:A,fn:R}=l[v],{x:y,y:x,data:_,reset:E}=await R({x:p,y:h,initialPlacement:r,placement:b,strategy:o,middlewareData:d,rects:u,platform:s,elements:{reference:e,floating:t}});p=y??p,h=x??h,d={...d,[A]:{...d[A],..._}},E&&w<=50&&(w++,typeof E=="object"&&(E.placement&&(b=E.placement),E.rects&&(u=E.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:o}):E.rects),{x:p,y:h}=sn(u,b,f)),v=-1)}return{x:p,y:h,placement:b,strategy:o,middlewareData:d}};async function Xe(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:i,rects:s,elements:l,strategy:f}=e,{boundary:u="clippingAncestors",rootBoundary:p="viewport",elementContext:h="floating",altBoundary:b=!1,padding:d=0}=ge(t,e),w=Sn(d),A=l[b?h==="floating"?"reference":"floating":h],R=Ae(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(A)))==null||n?A:A.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(l.floating)),boundary:u,rootBoundary:p,strategy:f})),y=h==="floating"?{x:r,y:o,width:s.floating.width,height:s.floating.height}:s.reference,x=await(i.getOffsetParent==null?void 0:i.getOffsetParent(l.floating)),_=await(i.isElement==null?void 0:i.isElement(x))?await(i.getScale==null?void 0:i.getScale(x))||{x:1,y:1}:{x:1,y:1},E=Ae(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:y,offsetParent:x,strategy:f}):y);return{top:(R.top-E.top+w.top)/_.y,bottom:(E.bottom-R.bottom+w.bottom)/_.y,left:(R.left-E.left+w.left)/_.x,right:(E.right-R.right+w.right)/_.x}}const mo=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:s,elements:l,middlewareData:f}=t,{element:u,padding:p=0}=ge(e,t)||{};if(u==null)return{};const h=Sn(p),b={x:n,y:r},d=ot(o),w=rt(d),v=await s.getDimensions(u),A=d==="y",R=A?"top":"left",y=A?"bottom":"right",x=A?"clientHeight":"clientWidth",_=i.reference[w]+i.reference[d]-b[d]-i.floating[w],E=b[d]-i.reference[d],S=await(s.getOffsetParent==null?void 0:s.getOffsetParent(u));let C=S?S[x]:0;(!C||!await(s.isElement==null?void 0:s.isElement(S)))&&(C=l.floating[x]||i.floating[w]);const $=_/2-E/2,F=C/2-v[w]/2-1,B=fe(h[R],F),k=fe(h[y],F),H=B,D=C-v[w]-k,P=C/2-v[w]/2+$,z=Yr(H,P,D),N=!f.arrow&&be(o)!=null&&P!==z&&i.reference[w]/2-(P<H?B:k)-v[w]/2<0,V=N?P<H?P-H:P-D:0;return{[d]:b[d]+V,data:{[d]:z,centerOffset:P-z-V,...N&&{alignmentOffset:V}},reset:N}}}),ho=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:s,initialPlacement:l,platform:f,elements:u}=t,{mainAxis:p=!0,crossAxis:h=!0,fallbackPlacements:b,fallbackStrategy:d="bestFit",fallbackAxisSideDirection:w="none",flipAlignment:v=!0,...A}=ge(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const R=ue(o),y=oe(l),x=ue(l)===l,_=await(f.isRTL==null?void 0:f.isRTL(u.floating)),E=b||(x||!v?[Ce(l)]:Qr(l)),S=w!=="none";!b&&S&&E.push(...ro(l,v,w,_));const C=[l,...E],$=await Xe(t,A),F=[];let B=((r=i.flip)==null?void 0:r.overflows)||[];if(p&&F.push($[R]),h){const P=Kr(o,s,_);F.push($[P[0]],$[P[1]])}if(B=[...B,{placement:o,overflows:F}],!F.every(P=>P<=0)){var k,H;const P=(((k=i.flip)==null?void 0:k.index)||0)+1,z=C[P];if(z&&(!(h==="alignment"?y!==oe(z):!1)||B.every(O=>oe(O.placement)===y?O.overflows[0]>0:!0)))return{data:{index:P,overflows:B},reset:{placement:z}};let N=(H=B.filter(V=>V.overflows[0]<=0).sort((V,O)=>V.overflows[1]-O.overflows[1])[0])==null?void 0:H.placement;if(!N)switch(d){case"bestFit":{var D;const V=(D=B.filter(O=>{if(S){const W=oe(O.placement);return W===y||W==="y"}return!0}).map(O=>[O.placement,O.overflows.filter(W=>W>0).reduce((W,M)=>W+M,0)]).sort((O,W)=>O[1]-W[1])[0])==null?void 0:D[0];V&&(N=V);break}case"initialPlacement":N=l;break}if(o!==N)return{reset:{placement:N}}}return{}}}};function an(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function ln(e){return Gr.some(t=>e[t]>=0)}const go=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=ge(e,t);switch(r){case"referenceHidden":{const i=await Xe(t,{...o,elementContext:"reference"}),s=an(i,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:ln(s)}}}case"escaped":{const i=await Xe(t,{...o,altBoundary:!0}),s=an(i,n.floating);return{data:{escapedOffsets:s,escaped:ln(s)}}}default:return{}}}}},bo=new Set(["left","top"]);async function yo(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),s=ue(n),l=be(n),f=oe(n)==="y",u=bo.has(s)?-1:1,p=i&&f?-1:1,h=ge(t,e);let{mainAxis:b,crossAxis:d,alignmentAxis:w}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return l&&typeof w=="number"&&(d=l==="end"?w*-1:w),f?{x:d*p,y:b*u}:{x:b*u,y:d*p}}const wo=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:s,middlewareData:l}=t,f=await yo(t,e);return s===((n=l.offset)==null?void 0:n.placement)&&(r=l.arrow)!=null&&r.alignmentOffset?{}:{x:o+f.x,y:i+f.y,data:{...f,placement:s}}}}};function On(e){const t=J(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Q(e),i=o?e.offsetWidth:n,s=o?e.offsetHeight:r,l=_e(n)!==i||_e(r)!==s;return l&&(n=i,r=s),{width:n,height:r,$:l}}function it(e){return G(e)?e:e.contextElement}function le(e){const t=it(e);if(!Q(t))return K(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=On(t);let s=(i?_e(n.width):n.width)/r,l=(i?_e(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}const vo=K(0);function Tn(e){const t=Y(e);return!nt()||!t.visualViewport?vo:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Eo(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Y(e)?!1:t}function se(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=it(e);let s=K(1);t&&(r?G(r)&&(s=le(r)):s=le(e));const l=Eo(i,n,r)?Tn(i):K(0);let f=(o.left+l.x)/s.x,u=(o.top+l.y)/s.y,p=o.width/s.x,h=o.height/s.y;if(i){const b=Y(i),d=r&&G(r)?Y(r):r;let w=b,v=qe(w);for(;v&&r&&d!==w;){const A=le(v),R=v.getBoundingClientRect(),y=J(v),x=R.left+(v.clientLeft+parseFloat(y.paddingLeft))*A.x,_=R.top+(v.clientTop+parseFloat(y.paddingTop))*A.y;f*=A.x,u*=A.y,p*=A.x,h*=A.y,f+=x,u+=_,w=Y(v),v=qe(w)}}return Ae({width:p,height:h,x:f,y:u})}function Ne(e,t){const n=Le(e).scrollLeft;return t?t.left+n:se(ee(e)).left+n}function Ln(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-Ne(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function xo(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i=o==="fixed",s=ee(r),l=t?Te(t.floating):!1;if(r===s||l&&i)return n;let f={scrollLeft:0,scrollTop:0},u=K(1);const p=K(0),h=Q(r);if((h||!h&&!i)&&((de(r)!=="body"||he(s))&&(f=Le(r)),Q(r))){const d=se(r);u=le(r),p.x=d.x+r.clientLeft,p.y=d.y+r.clientTop}const b=s&&!h&&!i?Ln(s,f):K(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-f.scrollLeft*u.x+p.x+b.x,y:n.y*u.y-f.scrollTop*u.y+p.y+b.y}}function Ro(e){return Array.from(e.getClientRects())}function _o(e){const t=ee(e),n=Le(e),r=e.ownerDocument.body,o=ie(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=ie(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+Ne(e);const l=-n.scrollTop;return J(r).direction==="rtl"&&(s+=ie(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:s,y:l}}const cn=25;function Co(e,t){const n=Y(e),r=ee(e),o=n.visualViewport;let i=r.clientWidth,s=r.clientHeight,l=0,f=0;if(o){i=o.width,s=o.height;const p=nt();(!p||p&&t==="fixed")&&(l=o.offsetLeft,f=o.offsetTop)}const u=Ne(r);if(u<=0){const p=r.ownerDocument,h=p.body,b=getComputedStyle(h),d=p.compatMode==="CSS1Compat"&&parseFloat(b.marginLeft)+parseFloat(b.marginRight)||0,w=Math.abs(r.clientWidth-h.clientWidth-d);w<=cn&&(i-=w)}else u<=cn&&(i+=u);return{width:i,height:s,x:l,y:f}}const Ao=new Set(["absolute","fixed"]);function So(e,t){const n=se(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=Q(e)?le(e):K(1),s=e.clientWidth*i.x,l=e.clientHeight*i.y,f=o*i.x,u=r*i.y;return{width:s,height:l,x:f,y:u}}function fn(e,t,n){let r;if(t==="viewport")r=Co(e,n);else if(t==="document")r=_o(ee(e));else if(G(t))r=So(t,n);else{const o=Tn(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Ae(r)}function Nn(e,t){const n=re(e);return n===t||!G(n)||ce(n)?!1:J(n).position==="fixed"||Nn(n,t)}function Oo(e,t){const n=t.get(e);if(n)return n;let r=me(e,[],!1).filter(l=>G(l)&&de(l)!=="body"),o=null;const i=J(e).position==="fixed";let s=i?re(e):e;for(;G(s)&&!ce(s);){const l=J(s),f=tt(s);!f&&l.position==="fixed"&&(o=null),(i?!f&&!o:!f&&l.position==="static"&&!!o&&Ao.has(o.position)||he(s)&&!f&&Nn(e,s))?r=r.filter(p=>p!==s):o=l,s=re(s)}return t.set(e,r),r}function To(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const s=[...n==="clippingAncestors"?Te(t)?[]:Oo(t,this._c):[].concat(n),r],l=s[0],f=s.reduce((u,p)=>{const h=fn(t,p,o);return u.top=ie(h.top,u.top),u.right=fe(h.right,u.right),u.bottom=fe(h.bottom,u.bottom),u.left=ie(h.left,u.left),u},fn(t,l,o));return{width:f.right-f.left,height:f.bottom-f.top,x:f.left,y:f.top}}function Lo(e){const{width:t,height:n}=On(e);return{width:t,height:n}}function No(e,t,n){const r=Q(t),o=ee(t),i=n==="fixed",s=se(e,!0,i,t);let l={scrollLeft:0,scrollTop:0};const f=K(0);function u(){f.x=Ne(o)}if(r||!r&&!i)if((de(t)!=="body"||he(o))&&(l=Le(t)),r){const d=se(t,!0,i,t);f.x=d.x+t.clientLeft,f.y=d.y+t.clientTop}else o&&u();i&&!r&&o&&u();const p=o&&!r&&!i?Ln(o,l):K(0),h=s.left+l.scrollLeft-f.x-p.x,b=s.top+l.scrollTop-f.y-p.y;return{x:h,y:b,width:s.width,height:s.height}}function ze(e){return J(e).position==="static"}function un(e,t){if(!Q(e)||J(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return ee(e)===n&&(n=n.ownerDocument.body),n}function Pn(e,t){const n=Y(e);if(Te(e))return n;if(!Q(e)){let o=re(e);for(;o&&!ce(o);){if(G(o)&&!ze(o))return o;o=re(o)}return n}let r=un(e,t);for(;r&&$r(r)&&ze(r);)r=un(r,t);return r&&ce(r)&&ze(r)&&!tt(r)?n:r||Ur(e)||n}const Po=async function(e){const t=this.getOffsetParent||Pn,n=this.getDimensions,r=await n(e.floating);return{reference:No(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Mo(e){return J(e).direction==="rtl"}const Bo={convertOffsetParentRelativeRectToViewportRelativeRect:xo,getDocumentElement:ee,getClippingRect:To,getOffsetParent:Pn,getElementRects:Po,getClientRects:Ro,getDimensions:Lo,getScale:le,isElement:G,isRTL:Mo};function Mn(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Io(e,t){let n=null,r;const o=ee(e);function i(){var l;clearTimeout(r),(l=n)==null||l.disconnect(),n=null}function s(l,f){l===void 0&&(l=!1),f===void 0&&(f=1),i();const u=e.getBoundingClientRect(),{left:p,top:h,width:b,height:d}=u;if(l||t(),!b||!d)return;const w=Ee(h),v=Ee(o.clientWidth-(p+b)),A=Ee(o.clientHeight-(h+d)),R=Ee(p),x={rootMargin:-w+"px "+-v+"px "+-A+"px "+-R+"px",threshold:ie(0,fe(1,f))||1};let _=!0;function E(S){const C=S[0].intersectionRatio;if(C!==f){if(!_)return s();C?s(!1,C):r=setTimeout(()=>{s(!1,1e-7)},1e3)}C===1&&!Mn(u,e.getBoundingClientRect())&&s(),_=!1}try{n=new IntersectionObserver(E,{...x,root:o.ownerDocument})}catch{n=new IntersectionObserver(E,x)}n.observe(e)}return s(!0),i}function Vo(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:f=!1}=r,u=it(e),p=o||i?[...u?me(u):[],...me(t)]:[];p.forEach(R=>{o&&R.addEventListener("scroll",n,{passive:!0}),i&&R.addEventListener("resize",n)});const h=u&&l?Io(u,n):null;let b=-1,d=null;s&&(d=new ResizeObserver(R=>{let[y]=R;y&&y.target===u&&d&&(d.unobserve(t),cancelAnimationFrame(b),b=requestAnimationFrame(()=>{var x;(x=d)==null||x.observe(t)})),n()}),u&&!f&&d.observe(u),d.observe(t));let w,v=f?se(e):null;f&&A();function A(){const R=se(e);v&&!Mn(v,R)&&n(),v=R,w=requestAnimationFrame(A)}return n(),()=>{var R;p.forEach(y=>{o&&y.removeEventListener("scroll",n),i&&y.removeEventListener("resize",n)}),h?.(),(R=d)==null||R.disconnect(),d=null,f&&cancelAnimationFrame(w)}}const Do=wo,Ho=ho,$o=go,dn=mo,Fo=(e,t,n)=>{const r=new Map,o={platform:Bo,...n},i={...o.platform,_c:r};return po(e,t,{...o,platform:i})};var ko=typeof document<"u",Wo=function(){},xe=ko?g.useLayoutEffect:Wo;function Se(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Se(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const i=o[r];if(!(i==="_owner"&&e.$$typeof)&&!Se(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function Bn(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function pn(e,t){const n=Bn(e);return Math.round(t*n)/n}function Ge(e){const t=g.useRef(e);return xe(()=>{t.current=e}),t}function jo(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:s}={},transform:l=!0,whileElementsMounted:f,open:u}=e,[p,h]=g.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[b,d]=g.useState(r);Se(b,r)||d(r);const[w,v]=g.useState(null),[A,R]=g.useState(null),y=g.useCallback(O=>{O!==S.current&&(S.current=O,v(O))},[]),x=g.useCallback(O=>{O!==C.current&&(C.current=O,R(O))},[]),_=i||w,E=s||A,S=g.useRef(null),C=g.useRef(null),$=g.useRef(p),F=f!=null,B=Ge(f),k=Ge(o),H=Ge(u),D=g.useCallback(()=>{if(!S.current||!C.current)return;const O={placement:t,strategy:n,middleware:b};k.current&&(O.platform=k.current),Fo(S.current,C.current,O).then(W=>{const M={...W,isPositioned:H.current!==!1};P.current&&!Se($.current,M)&&($.current=M,uo.flushSync(()=>{h(M)}))})},[b,t,n,k,H]);xe(()=>{u===!1&&$.current.isPositioned&&($.current.isPositioned=!1,h(O=>({...O,isPositioned:!1})))},[u]);const P=g.useRef(!1);xe(()=>(P.current=!0,()=>{P.current=!1}),[]),xe(()=>{if(_&&(S.current=_),E&&(C.current=E),_&&E){if(B.current)return B.current(_,E,D);D()}},[_,E,D,B,F]);const z=g.useMemo(()=>({reference:S,floating:C,setReference:y,setFloating:x}),[y,x]),N=g.useMemo(()=>({reference:_,floating:E}),[_,E]),V=g.useMemo(()=>{const O={position:n,left:0,top:0};if(!N.floating)return O;const W=pn(N.floating,p.x),M=pn(N.floating,p.y);return l?{...O,transform:"translate("+W+"px, "+M+"px)",...Bn(N.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:W,top:M}},[n,l,N.floating,p.x,p.y]);return g.useMemo(()=>({...p,update:D,refs:z,elements:N,floatingStyles:V}),[p,D,z,N,V])}const Uo=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?dn({element:r.current,padding:o}).fn(n):{}:r?dn({element:r,padding:o}).fn(n):{}}}},zo=(e,t)=>({...Do(e),options:[e,t]}),Go=(e,t)=>({...Ho(e),options:[e,t]}),qo=(e,t)=>({...$o(e),options:[e,t]}),Zo=(e,t)=>({...Uo(e),options:[e,t]}),Yo={...bn};let mn=!1,Xo=0;const hn=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+Xo++;function Jo(){const[e,t]=g.useState(()=>mn?hn():void 0);return Ye(()=>{e==null&&t(hn())},[]),g.useEffect(()=>{mn=!0},[]),e}const Ko=Yo.useId,Qo=Ko||Jo;function ei(){const e=new Map;return{emit(t,n){var r;(r=e.get(t))==null||r.forEach(o=>o(n))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){var r;(r=e.get(t))==null||r.delete(n)}}}const ti=g.createContext(null),ni=g.createContext(null),ri=()=>{var e;return((e=g.useContext(ti))==null?void 0:e.id)||null},oi=()=>g.useContext(ni);function ii(e){const{open:t=!1,onOpenChange:n,elements:r}=e,o=Qo(),i=g.useRef({}),[s]=g.useState(()=>ei()),l=ri()!=null,[f,u]=g.useState(r.reference),p=fo((d,w,v)=>{i.current.openEvent=d?w:void 0,s.emit("openchange",{open:d,event:w,reason:v,nested:l}),n?.(d,w,v)}),h=g.useMemo(()=>({setPositionReference:u}),[]),b=g.useMemo(()=>({reference:f||r.reference||null,floating:r.floating||null,domReference:r.reference}),[f,r.reference,r.floating]);return g.useMemo(()=>({dataRef:i,open:t,onOpenChange:p,elements:b,events:s,floatingId:o,refs:h}),[t,p,b,s,o,h])}function si(e){e===void 0&&(e={});const{nodeId:t}=e,n=ii({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,o=r.elements,[i,s]=g.useState(null),[l,f]=g.useState(null),p=o?.domReference||i,h=g.useRef(null),b=oi();Ye(()=>{p&&(h.current=p)},[p]);const d=jo({...e,elements:{...o,...l&&{reference:l}}}),w=g.useCallback(x=>{const _=G(x)?{getBoundingClientRect:()=>x.getBoundingClientRect(),getClientRects:()=>x.getClientRects(),contextElement:x}:x;f(_),d.refs.setReference(_)},[d.refs]),v=g.useCallback(x=>{(G(x)||x===null)&&(h.current=x,s(x)),(G(d.refs.reference.current)||d.refs.reference.current===null||x!==null&&!G(x))&&d.refs.setReference(x)},[d.refs]),A=g.useMemo(()=>({...d.refs,setReference:v,setPositionReference:w,domReference:h}),[d.refs,v,w]),R=g.useMemo(()=>({...d.elements,domReference:p}),[d.elements,p]),y=g.useMemo(()=>({...d,...r,refs:A,elements:R,nodeId:t}),[d,A,R,t,r]);return Ye(()=>{r.dataRef.current.floatingContext=y;const x=b?.nodesRef.current.find(_=>_.id===t);x&&(x.context=y)}),g.useMemo(()=>({...d,context:y,refs:A,elements:R}),[d,A,R,y])}const ai=g.createContext(Re);a.node,Qe(a.objectOf(a.bool)),a.bool,a.bool,a.bool,a.bool,a.bool,a.bool,a.bool,a.bool,a.bool,a.bool;function In(e){return g.useContext(ai).enabled(e)}const Vn=c.createContext({setFloating:{current:null},caretRef:{current:null},autoAlign:null}),Dn=c.forwardRef(function({isTabTip:t,align:n=t?"bottom-start":"bottom",as:r="span",autoAlign:o=!1,autoAlignBoundary:i,backgroundToken:s="layer",caret:l=!t,className:f,children:u,border:p=!1,dropShadow:h=!0,highContrast:b=!1,onRequestClose:d,open:w,alignmentAxisOffset:v,...A},R){const y=X(),x=g.useRef(null),_=g.useRef(null),E=g.useRef(null),S=In("enable-v12-dynamic-floating-styles")||o;let C=et(n);Br(E,"focusout",M=>{const L=M.relatedTarget;if(t){L&&!E.current?.contains(L)&&d?.();return}if(!L){d?.();return}const U=!E.current?.contains(L),I=S&&B.floating.current?!B.floating.current.contains(L):!0;U&&I&&d?.()}),Ir("click",({target:M})=>{w&&M instanceof Node&&!E.current?.contains(M)&&d?.()});const $=c.Children.toArray(u).some(M=>M?.props?.className?.includes("slug")||M?.props?.className?.includes("ai-label"))?7:6,F=g.useRef({offset:10,caretHeight:$});xn(()=>{if(l&&E.current){const M=window.getComputedStyle(E.current,null),L=M.getPropertyValue("--cds-popover-offset"),U=M.getPropertyValue("--cds-popover-caret-height");L&&(F.current.offset=L.includes("px")?Number(L.split("px",1)[0])*1:Number(L.split("rem",1)[0])*16),U&&(F.current.caretHeight=U.includes("px")?Number(U.split("px",1)[0])*1:Number(U.split("rem",1)[0])*16)}});const{refs:B,floatingStyles:k,placement:H,middlewareData:D}=si(S?{placement:C,strategy:"fixed",middleware:[zo(t?0:{alignmentAxis:v,mainAxis:F?.current?.offset}),o&&Go({fallbackPlacements:t?C.includes("bottom")?["bottom-start","bottom-end","top-start","top-end"]:["top-start","top-end","bottom-start","bottom-end"]:C.includes("bottom")?["bottom","bottom-start","bottom-end","right","right-start","right-end","left","left-start","left-end","top","top-start","top-end"]:["top","top-start","top-end","left","left-start","left-end","right","right-start","right-end","bottom","bottom-start","bottom-end"],fallbackStrategy:"initialPlacement",fallbackAxisSideDirection:"start",boundary:i}),Zo({element:_,padding:16}),o&&qo()],whileElementsMounted:Vo}:{}),P=g.useMemo(()=>({floating:x,setFloating:B.setFloating,caretRef:_,autoAlign:o}),[B.setFloating,o]);t&&(["bottom-start","bottom-end"].includes(C)||(C="bottom-start")),g.useEffect(()=>{if(S){const M={...k,visibility:D.hide?.referenceHidden?"hidden":"visible"};if(Object.keys(M).forEach(L=>{B.floating.current&&(B.floating.current.style[L]=M[L])}),l&&D&&D.arrow&&_?.current){const{x:L,y:U}=D.arrow,I={top:"bottom",right:"left",bottom:"top",left:"right"}[H.split("-")[0]];_.current.style.left=L!=null?`${L}px`:"",_.current.style.top=U!=null?`${U}px`:"",_.current.style.right="",_.current.style.bottom="",I&&(_.current.style[I]=`${-F?.current?.caretHeight}px`)}}},[k,B.floating,S,D,H,l]);const z=_n([R,E]),N=o&&H!==C?H:C,V=q({[`${y}--popover-container`]:!0,[`${y}--popover--caret`]:l,[`${y}--popover--drop-shadow`]:h,[`${y}--popover--border`]:p,[`${y}--popover--high-contrast`]:b,[`${y}--popover--open`]:w,[`${y}--popover--auto-align ${y}--autoalign`]:S,[`${y}--popover--${N}`]:!0,[`${y}--popover--tab-tip`]:t,[`${y}--popover--background-token__background`]:s==="background"&&!b},f),O=c.Children.map(u,M=>{const L=M,U=L?.type?.displayName,I=L?.type==="button",ae=S&&U&&["ToggletipButton"].includes(U),ye=S&&!["ToggletipContent","PopoverContent"].includes(U);if(c.isValidElement(L)&&(I||ae||ye)){const te=L?.props?.className,ne=(L?.props).ref,Gn=q(`${y}--popover--tab-tip__button`,te);return c.cloneElement(L,{className:t&&L?.type==="button"?Gn:te||"",ref:Be=>{(S&&L?.type!==Pe||S&&L?.type.displayName==="ToggletipButton")&&B.setReference(Be),typeof ne=="function"?ne(Be):ne!=null&&(ne.current=Be)}})}else return L}),W=r;return c.createElement(Vn.Provider,{value:P},c.createElement(W,Z({},A,{className:V,ref:z}),S||t?O:u))});Dn.propTypes={align:Rn(a.oneOf(["top","top-left","top-right","bottom","bottom-left","bottom-right","left","left-bottom","left-top","right","right-bottom","right-top","top-start","top-end","bottom-start","bottom-end","left-end","left-start","right-end","right-start"]),["top","top-start","top-end","bottom","bottom-start","bottom-end","left","left-start","left-end","right","right-start","right-end"],et),alignmentAxisOffset:a.number,as:a.oneOfType([a.string,a.elementType]),autoAlign:a.bool,backgroundToken:a.oneOf(["layer","background"]),autoAlignBoundary:a.oneOfType([a.oneOf(["clippingAncestors"]),a.elementType,a.arrayOf(a.elementType),a.exact({x:a.number.isRequired,y:a.number.isRequired,width:a.number.isRequired,height:a.number.isRequired})]),caret:a.bool,border:a.bool,children:a.node,className:a.string,dropShadow:a.bool,highContrast:a.bool,isTabTip:a.bool,onRequestClose:a.func,open:a.bool.isRequired};function li({className:e,children:t,...n},r){const o=X(),{setFloating:i,caretRef:s,autoAlign:l}=c.useContext(Vn),f=_n([i,r]),u=In("enable-v12-dynamic-floating-styles")||l;return c.createElement("span",Z({},n,{className:`${o}--popover`}),c.createElement("span",{className:q(`${o}--popover-content`,e),ref:f},t,u&&c.createElement("span",{className:q({[`${o}--popover-caret`]:!0,[`${o}--popover--auto-align`]:!0}),ref:s})),!u&&c.createElement("span",{className:q({[`${o}--popover-caret`]:!0}),ref:s}))}const Pe=c.forwardRef(li);Pe.displayName="PopoverContent";Pe.propTypes={children:a.node,className:a.string};function ci(e){const[t,n]=g.useState(e),r=g.useRef(null),o=g.useCallback((i,s=0)=>{if(window.clearTimeout(r.current??void 0),r.current=null,s===0){n(i);return}r.current=window.setTimeout(()=>{n(i),r.current=null},s)},[]);return g.useEffect(()=>()=>{window.clearTimeout(r.current??void 0)},[]),[t,o]}const gn=new Set(["mouseup","touchend","touchcancel"]),Hn=c.forwardRef(({as:e,align:t="top",className:n,children:r,label:o,description:i,enterDelayMs:s=100,leaveDelayMs:l=300,defaultOpen:f=!1,closeOnActivation:u=!1,dropShadow:p=!1,highContrast:h=!0,...b},d)=>{g.useRef(null);const[w,v]=ci(f),[A,R]=g.useState(!1),[y,x]=g.useState(!1),[_,E]=g.useState(!1),S=Ke("tooltip"),C=X(),$=c.Children.only(r),{"aria-labelledby":F,"aria-describedby":B}=$?.props??{},k=!!o,P={onFocus:()=>!y&&v(!0),onBlur:()=>{v(!1),x(!1)},onClick:()=>u&&v(!1),onMouseEnter:V,onMouseLeave:W,onMouseDown:O,onMouseMove:M,onTouchStart:L,"aria-labelledby":F??(k?S:void 0),"aria-describedby":B??(k?void 0:S)};function z(I){const ae=Object.keys(P).filter(te=>te.startsWith("on")),ye={};return ae.forEach(te=>{ye[te]=ne=>{P[te](ne),I?.[te]&&I?.[te](ne)}}),ye}const N=g.useCallback(I=>{w&&we(I,tn)&&(I.stopPropagation(),v(!1)),w&&u&&(we(I,Ar)||we(I,Sr))&&v(!1)},[u,w,v]);xn(()=>{if(!w)return;function I(ae){we(ae,tn)&&N(ae)}return document.addEventListener("keydown",I),()=>{document.removeEventListener("keydown",I)}},[w,N]);function V(){b?.onMouseEnter||(E(!0),v(!0,s))}function O(){x(!0),L()}function W(){E(!1),!A&&v(!1,l)}function M(I){I.buttons===1?R(!0):R(!1)}function L(){R(!0)}const U=g.useCallback(()=>{R(!1),_||v(!1,l)},[_,l,v]);return g.useEffect(()=>(A&&gn.forEach(I=>{document.addEventListener(I,U)}),()=>{gn.forEach(I=>{document.removeEventListener(I,U)})}),[A,U]),c.createElement(Dn,Z({as:e,ref:d},b,{align:t,className:q(`${C}--tooltip`,n),dropShadow:p,highContrast:h,onKeyDown:N,onMouseLeave:W,open:w}),c.createElement("div",{className:`${C}--tooltip-trigger__wrapper`},typeof $<"u"?c.cloneElement($,{...P,...z($.props)}):null),c.createElement(Pe,{"aria-hidden":w?"false":"true",className:`${C}--tooltip-content`,id:S,onMouseEnter:V,role:"tooltip"},o||i))});Hn.propTypes={align:a.oneOf(["top","top-left","top-right","bottom","bottom-left","bottom-right","left","left-bottom","left-top","right","right-bottom","right-top","top-start","top-end","bottom-start","bottom-end","left-end","left-start","right-end","right-start"]),children:a.node,className:a.string,closeOnActivation:a.bool,defaultOpen:a.bool,description:a.node,dropShadow:a.bool,enterDelayMs:a.number,highContrast:a.bool,label:a.node,leaveDelayMs:a.number};const $n=c.forwardRef(function({as:t,children:n,className:r,dangerDescription:o="danger",disabled:i=!1,hasIconOnly:s=!1,href:l,iconDescription:f,isExpressive:u=!1,isSelected:p,kind:h="primary",onBlur:b,onClick:d,onFocus:w,onMouseEnter:v,onMouseLeave:A,renderIcon:R,size:y,tabIndex:x,type:_="button",...E},S){const C=X(),$=q(r,{[`${C}--btn`]:!0,[`${C}--btn--xs`]:y==="xs"&&!u,[`${C}--btn--sm`]:y==="sm"&&!u,[`${C}--btn--md`]:y==="md"&&!u,[`${C}--btn--lg`]:y==="lg"&&!u,[`${C}--btn--xl`]:y==="xl",[`${C}--btn--2xl`]:y==="2xl",[`${C}--layout--size-${y}`]:y,[`${C}--btn--${h}`]:h,[`${C}--btn--disabled`]:i,[`${C}--btn--expressive`]:u,[`${C}--btn--icon-only`]:s,[`${C}--btn--selected`]:s&&p&&h==="ghost"}),F={tabIndex:x,className:$,ref:S},B=R?c.createElement(R,{"aria-label":f,className:`${C}--btn__icon`,"aria-hidden":"true"}):null,k=["danger","danger--tertiary","danger--ghost"];let H="button";const D=Ke("danger-description"),{"aria-pressed":P,"aria-describedby":z}=E;let N={disabled:i,type:_,"aria-describedby":k.includes(h)?D:z||void 0,"aria-pressed":P??(s&&h==="ghost"?p:void 0)};const V={href:l};let O=null;return k.includes(h)&&(O=c.createElement("span",{id:D,className:`${C}--visually-hidden`},o)),t?(H=t,N={...N,...V}):l&&!i&&(H="a",N=V),c.createElement(H,{onMouseEnter:v,onMouseLeave:A,onFocus:w,onBlur:b,onClick:d,...E,...F,...N},O,n,B)}),Fn=c.forwardRef(function({className:t,count:n,...r},o){const i=X(),s=q(`${i}--badge-indicator`,t,{[`${i}--badge-indicator--count`]:n}),l=n&&n>999?"999+":n;return c.createElement("div",Z({className:s,ref:o},r),l)});Fn.propTypes={className:a.string,count:a.number,id:a.string};const kn=["primary","secondary","ghost","tertiary"],Wn=c.forwardRef(({align:e,autoAlign:t=!1,badgeCount:n,children:r,className:o,closeOnActivation:i=!0,defaultOpen:s=!1,disabled:l,dropShadow:f=!1,enterDelayMs:u=100,highContrast:p=!0,kind:h,label:b,leaveDelayMs:d=100,wrapperClasses:w,size:v,isSelected:A,...R},y)=>{const x=X(),_=q(w,`${x}--icon-tooltip`,{[`${x}--icon-tooltip--disabled`]:l});n&&(h!=="ghost"||v!=="lg")&&console.warn("The prop BadgeCount must be used with hasIconOnly=true, kind='ghost' and size='lg'");const E=Ke("badge-indicator");return c.createElement(Hn,{align:e,autoAlign:t,closeOnActivation:i,className:_,defaultOpen:s,dropShadow:f,enterDelayMs:u,highContrast:p,label:b,leaveDelayMs:d},c.createElement($n,Z({},R,{disabled:l,kind:h,ref:y,size:v,isSelected:A,hasIconOnly:!0,className:o,"aria-describedby":R["aria-describedby"]||n&&E}),r,!l&&n!==void 0&&c.createElement(Fn,{id:E,count:n>0?n:void 0})))});Wn.propTypes={align:Rn(a.oneOf(["top","top-left","top-right","bottom","bottom-left","bottom-right","left","left-bottom","left-top","right","right-bottom","right-top","top-start","top-end","bottom-start","bottom-end","left-end","left-start","right-end","right-start"]),["top","top-start","top-end","bottom","bottom-start","bottom-end","left","left-start","left-end","right","right-start","right-end"],et),autoAlign:a.bool,badgeCount:a.number,href:a.string,children:a.node,className:a.string,closeOnActivation:a.bool,defaultOpen:a.bool,dropShadow:a.bool,disabled:a.bool,enterDelayMs:a.number,isSelected:a.bool,highContrast:a.bool,kind:a.oneOf(kn),label:a.node.isRequired,leaveDelayMs:a.number,rel:a.string,size:a.oneOf(["sm","md","lg"]),target:a.string,wrapperClasses:a.string};const fi=["primary","secondary","danger","ghost","danger--primary","danger--ghost","danger--tertiary","tertiary"];function ui(e,t){return e===!0}const st=c.forwardRef((e,t)=>{const{as:n,autoAlign:r=!1,children:o,hasIconOnly:i=!1,tooltipHighContrast:s=!0,tooltipDropShadow:l=!1,iconDescription:f,kind:u="primary",onBlur:p,onClick:h,onFocus:b,onMouseEnter:d,onMouseLeave:w,renderIcon:v,size:A,tooltipAlignment:R="center",tooltipPosition:y="top",...x}=e;v&&!o&&!f&&console.error("Button: renderIcon property specified without also providing an iconDescription property. This may impact accessibility for screen reader users.");const _=v?c.createElement(v,null):null;if(ui(i)){let E;return(y==="top"||y==="bottom")&&(R==="center"&&(E=y),R==="end"&&(E=`${y}-end`),R==="start"&&(E=`${y}-start`)),(y==="right"||y==="left")&&(E=y),c.createElement(Wn,Z({},x,{ref:t,as:n,align:E,label:f,kind:u,size:A,highContrast:s,dropShadow:l,onMouseEnter:d,onMouseLeave:w,onFocus:b,onBlur:p,autoAlign:r,onClick:h,renderIcon:_?null:v}),_??o)}else{const{tooltipAlignment:E,...S}=e;return c.createElement($n,Z({ref:t},S))}});st.displayName="Button";st.propTypes={as:a.oneOfType([a.func,a.string,a.elementType]),autoAlign:a.bool,children:a.node,className:a.string,dangerDescription:a.string,disabled:a.bool,hasIconOnly:a.bool,href:a.string,iconDescription:e=>e.renderIcon&&!e.children&&!e.iconDescription?new Error("renderIcon property specified without also providing an iconDescription property."):null,isExpressive:a.bool,isSelected:a.bool,kind:(e,t,n)=>{const{hasIconOnly:r}=e,o=r?kn:fi;return e[t]===void 0||o.includes(e[t])?null:new Error(`Invalid prop \`${t}\` supplied to \`${n}\`. Expected one of ${o.join(", ")}.`)},onBlur:a.func,onClick:a.func,onFocus:a.func,onMouseEnter:a.func,onMouseLeave:a.func,rel:a.string,renderIcon:a.oneOfType([a.func,a.object]),role:a.string,size:a.oneOf(["xs","sm","md","lg","xl","2xl"]),tabIndex:a.number,target:a.string,tooltipAlignment:a.oneOf(["start","center","end"]),tooltipDropShadow:a.bool,tooltipHighContrast:a.bool,tooltipPosition:a.oneOf(["top","right","bottom","left"]),type:a.oneOf(["button","reset","submit"])};const di=({name:e,className:t,type:n})=>{function r({className:o,...i}){const s=X(),l=q(typeof t=="function"?t(s):t,o);return c.createElement(n,{...i,className:l||void 0})}return r.displayName=e,r.propTypes={className:a.string},r},pi=({className:e,children:t,...n})=>{const r=X(),o=q(`${r}--header`,e);return c.createElement("header",Z({},n,{className:o}),t)};pi.propTypes={"aria-label":a.string,"aria-labelledby":a.string,className:a.string};const mi=e=>{const t=Object.keys(e),n=r=>((o,i,s,...l)=>r(o,i,s,...l));return t.reduce((r,o)=>({...r,[o]:n(e[o])}),{})},jn=mi({"aria-label":a.string,"aria-labelledby":a.string}),Un=c.forwardRef(({"aria-label":e,"aria-labelledby":t,children:n,className:r,onClick:o,tooltipHighContrast:i=!0,tooltipDropShadow:s,isActive:l,tooltipAlignment:f,...u},p)=>{const h=X(),b=q({[r]:!!r,[`${h}--header__action`]:!0,[`${h}--header__action--active`]:l}),d={"aria-label":e,"aria-labelledby":t};return c.createElement(st,Z({},u,d,{className:b,onClick:o,type:"button",hasIconOnly:!0,size:"lg",kind:"ghost",iconDescription:e,tooltipPosition:"bottom",tooltipAlignment:f,tooltipDropShadow:s,tooltipHighContrast:i,ref:p}),n)});Un.propTypes={...jn,children:a.node.isRequired,className:a.string,isActive:a.bool,onClick:a.func,tooltipAlignment:a.oneOf(["start","center","end"]),tooltipDropShadow:a.bool,tooltipHighContrast:a.bool};Un.displayName="HeaderGlobalAction";const Pi=di({name:"HeaderGlobalBar",className:e=>`${e}--header__global`,type:"div"}),hi=({element:e,as:t,isSideNavExpanded:n,...r},o)=>{const i=t??e??"a";return c.createElement(i,Z({ref:o},r))},Me=c.forwardRef(hi),at={as:a.elementType,element:Qe(a.elementType),isSideNavExpanded:a.bool};Me.displayName="Link";Me.propTypes=at;const zn=g.forwardRef(function({className:t,isActive:n,isCurrentPage:r,"aria-current":o,children:i,role:s,tabIndex:l,...f},u){const p=X(),h=l??0;r&&(n=r);const b=n&&o!=="page",d=q({[`${p}--header__menu-item`]:!0,[`${p}--header__menu-item--current`]:b});return c.createElement("li",{className:t,role:s},c.createElement(Me,Z({},f,{"aria-current":b?!0:o,className:d,ref:u,tabIndex:h}),c.createElement("span",{className:`${p}--text-truncate--end`},i)))});zn.displayName="HeaderMenuItem";zn.propTypes={...at,children:a.node.isRequired,className:a.string,isActive:a.bool,isCurrentPage:Qe(a.bool),role:a.string,tabIndex:a.number};function gi({children:e,className:t,prefix:n="IBM",...r}){const o=X(),i=q(`${o}--header__name`,t);return c.createElement(Me,Z({},r,{className:i}),n&&c.createElement(c.Fragment,null,c.createElement("span",{className:`${o}--header__name--prefix`},n)," "),e)}gi.propTypes={...at,children:a.node.isRequired,className:a.string,href:a.string,prefix:a.string};function bi({"aria-label":e,"aria-labelledby":t,children:n,className:r,...o}){const i=X(),s=q(`${i}--header__nav`,r);return c.createElement("nav",Z({},o,{"aria-label":e,"aria-labelledby":t,className:s}),c.createElement("ul",{className:`${i}--header__menu-bar`},n))}bi.propTypes={...jn,children:a.node,className:a.string};export{vi as A,st as B,Ri as C,_i as D,pi as H,Ai as L,Oi as M,Ti as P,Li as R,Ni as S,gi as a,bi as b,zn as c,Pi as d,Un as e,Si as f,xi as g,Ei as h,Ci as i,wi as j,g as r};
`,enabled:m.enableEnhancedFileUploader},{name:"enable-presence",description:`Enable components to remain unmounted in closed state and mount in open state.
`,enabled:m.enablePresence}];function ut(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Kn(e){if(Array.isArray(e))return e}function Qn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function er(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ar(r.key),r)}}function tr(e,t,n){return t&&er(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function nr(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=yn(e))||t){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(f){throw f},f:o}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i,s=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var f=n.next();return s=f.done,f},e:function(f){l=!0,i=f},f:function(){try{s||n.return==null||n.return()}finally{if(l)throw i}}}}function rr(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,i,s,l=[],f=!0,u=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(f=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);f=!0);}catch(p){u=!0,o=p}finally{try{if(!f&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(u)throw o}}return l}}function or(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ir(e,t){return Kn(e)||rr(e,t)||yn(e,t)||or()}function sr(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function ar(e){var t=sr(e,"string");return typeof t=="symbol"?t:t+""}function yn(e,t){if(e){if(typeof e=="string")return ut(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ut(e,t):void 0}}var lr=(function(){function e(t){var n=this;Qn(this,e),this.flags=new Map,t&&Object.keys(t).forEach(function(r){n.flags.set(r,t[r])})}return tr(e,[{key:"checkForFlag",value:function(n){if(!this.flags.has(n))throw new Error("Unable to find a feature flag with the name: `".concat(n,"`"))}},{key:"add",value:function(n,r){if(this.flags.has(n))throw new Error("The feature flag: ".concat(n," already exists"));this.flags.set(n,r)}},{key:"enable",value:function(n){this.checkForFlag(n),this.flags.set(n,!0)}},{key:"disable",value:function(n){this.checkForFlag(n),this.flags.set(n,!1)}},{key:"merge",value:function(n){var r=this;Object.keys(n).forEach(function(o){r.flags.set(o,n[o])})}},{key:"mergeWithScope",value:function(n){var r=nr(n.flags),o;try{for(r.s();!(o=r.n()).done;){var i=ir(o.value,2),s=i[0],l=i[1];this.flags.has(s)||this.flags.set(s,l)}}catch(f){r.e(f)}finally{r.f()}}},{key:"enabled",value:function(n){return this.checkForFlag(n),this.flags.get(n)}}])})(),Re=cr();for(var Ve=0;Ve<ft.length;Ve++){var dt=ft[Ve];Re.add(dt.name,dt.enabled)}function cr(e){return new lr(e)}function fr(){return Re.merge.apply(Re,arguments)}fr({"enable-css-custom-properties":!0,"enable-css-grid":!0,"enable-v11-release":!0,"enable-experimental-tile-contrast":!1,"enable-tile-contrast":!1,"enable-v12-tile-radio-icons":!1,"enable-v12-structured-list-visible-icons":!1,"enable-v12-dynamic-floating-styles":!1});function Z(){return Z=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Z.apply(null,arguments)}var De={exports:{}};var pt;function ur(){return pt||(pt=1,(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var i="",s=0;s<arguments.length;s++){var l=arguments[s];l&&(i=o(i,r(l)))}return i}function r(i){if(typeof i=="string"||typeof i=="number")return i;if(typeof i!="object")return"";if(Array.isArray(i))return n.apply(null,i);if(i.toString!==Object.prototype.toString&&!i.toString.toString().includes("[native code]"))return i.toString();var s="";for(var l in i)t.call(i,l)&&i[l]&&(s=o(s,l));return s}function o(i,s){return s?i?i+" "+s:i+s:i}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(De)),De.exports}var dr=ur();const q=Je(dr),pr=c.createContext("cds");function X(){return c.useContext(pr)}var He={exports:{}},$e,mt;function mr(){if(mt)return $e;mt=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return $e=e,$e}var Fe,ht;function hr(){if(ht)return Fe;ht=1;var e=mr();function t(){}function n(){}return n.resetWarningCache=t,Fe=function(){function r(s,l,f,u,p,h){if(h!==e){var b=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw b.name="Invariant Violation",b}}r.isRequired=r;function o(){return r}var i={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:t};return i.PropTypes=i,i},Fe}var gt;function gr(){return gt||(gt=1,He.exports=hr()()),He.exports}var br=gr();const a=Je(br);function yr(e,t,n){return(t=Er(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function ke(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?bt(Object(n),!0).forEach(function(r){yr(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bt(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function yt(e,t){if(e==null)return{};var n,r,o=wr(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function wr(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function vr(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Er(e){var t=vr(e,"string");return typeof t=="symbol"?t:t+""}var xr=["width","height","viewBox"],Rr=["tabindex"],_r={focusable:"false",preserveAspectRatio:"xMidYMid meet"};function Cr(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.width,n=e.height,r=e.viewBox,o=r===void 0?"0 0 ".concat(t," ").concat(n):r,i=yt(e,xr),s=i.tabindex,l=yt(i,Rr),f=ke(ke(ke({},_r),l),{},{width:t,height:n,viewBox:o});return f["aria-label"]||f["aria-labelledby"]||f.title?(f.role="img",s!=null&&(f.focusable="true",f.tabindex=s)):f["aria-hidden"]=!0,f}const j=c.forwardRef(function({className:t,children:n,tabIndex:r,xmlns:o="http://www.w3.org/2000/svg",preserveAspectRatio:i="xMidYMid meet",...s},l){const{tabindex:f,...u}=Cr({...s,tabindex:r}),p=u;return t&&(p.className=t),f!=null&&(typeof f=="number"?p.tabIndex=f:p.tabIndex=Number(r)),l&&(p.ref=l),o&&(p.xmlns=o),i&&(p.preserveAspectRatio=i),c.createElement("svg",p,n)});j.displayName="Icon";j.propTypes={"aria-hidden":a.oneOfType([a.bool,a.oneOf(["true","false"])]),"aria-label":a.string,"aria-labelledby":a.string,children:a.node,className:a.string,height:a.oneOfType([a.number,a.string]),preserveAspectRatio:a.string,tabIndex:a.oneOfType([a.number,a.string]),viewBox:a.string,width:a.oneOfType([a.number,a.string]),xmlns:a.string};var wt,vt;const vi=c.forwardRef(function({children:t,size:n=16,...r},o){return n===16||n==="16"||n==="16px"?c.createElement(j,{width:n,height:n,ref:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",...r},wt||(wt=c.createElement("path",{d:"M7.2,2.3c-1,4.4,1.7,8.7,6.1,9.8c0.1,0,0.1,0,0.2,0c-1.1,1.2-2.7,1.8-4.3,1.8c-0.1,0-0.2,0-0.2,0C5.6,13.8,3,11,3.2,7.7 C3.2,5.3,4.8,3.1,7.2,2.3 M8,1L8,1C4.1,1.6,1.5,5.3,2.1,9.1c0.6,3.3,3.4,5.8,6.8,5.9c0.1,0,0.2,0,0.3,0c2.3,0,4.4-1.1,5.8-3 c0.2-0.2,0.1-0.6-0.1-0.7c-0.1-0.1-0.2-0.1-0.3-0.1c-3.9-0.3-6.7-3.8-6.4-7.6C8.3,3,8.4,2.4,8.6,1.8c0.1-0.3,0-0.6-0.3-0.7 C8.1,1,8.1,1,8,1z"})),t):c.createElement(j,{width:n,height:n,ref:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...r},vt||(vt=c.createElement("path",{d:"M13.5025,5.4136A15.0755,15.0755,0,0,0,25.096,23.6082a11.1134,11.1134,0,0,1-7.9749,3.3893c-.1385,0-.2782.0051-.4178,0A11.0944,11.0944,0,0,1,13.5025,5.4136M14.98,3a1.0024,1.0024,0,0,0-.1746.0156A13.0959,13.0959,0,0,0,16.63,28.9973c.1641.006.3282,0,.4909,0a13.0724,13.0724,0,0,0,10.702-5.5556,1.0094,1.0094,0,0,0-.7833-1.5644A13.08,13.08,0,0,1,15.8892,4.38,1.0149,1.0149,0,0,0,14.98,3Z"})),t)});var Et,xt,Rt,_t,Ct,At,St;const Ei=c.forwardRef(function({children:t,size:n=16,...r},o){return n===20||n==="20"||n==="20px"?c.createElement(j,{width:n,height:n,ref:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",...r},Et||(Et=c.createElement("path",{d:"M8 13.2L3.6 8.8 2.7 9.7 7.1 14.1 8 15 16.5 6.5 15.6 5.6z"})),xt||(xt=c.createElement("path",{d:"M15.6 5.6L8 13.2 3.6 8.8 2.7 9.7 7.1 14.1 8 15 16.5 6.5 15.6 5.6z"})),t):n===24||n==="24"||n==="24px"?c.createElement(j,{width:n,height:n,ref:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",...r},Rt||(Rt=c.createElement("path",{d:"M10 15.9L4.7 10.6 3.6 11.6 8.9 16.9 10 18 20.6 7.4 19.5 6.3z"})),t):c.createElement(j,{width:n,height:n,ref:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...r},_t||(_t=c.createElement("path",{d:"M13 24L4 15 5.414 13.586 13 21.171 26.586 7.586 28 9 13 24z"})),t)}),xi=c.forwardRef(function({children:t,size:n=16,...r},o){return c.createElement(j,{width:n,height:n,ref:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...r},Ct||(Ct=c.createElement("path",{d:"M25.8289 13.1155A10.02 10.02 0 0016 5.0005V7a8.0233 8.0233 0 017.8649 6.4934l.2591 1.346 1.3488.2441A5.5019 5.5019 0 0124.5076 26H16v2h8.5076a7.5019 7.5019 0 001.3213-14.8845zM8 24H14V26H8zM4 24H6V26H4zM6 20H14V22H6zM2 20H4V22H2zM8 16H14V18H8zM4 16H6V18H4zM10 12H14V14H10zM6 12H8V14H6zM12 8H14V10H12z"})),t)}),Ri=c.forwardRef(function({children:t,size:n=16,...r},o){return c.createElement(j,{width:n,height:n,ref:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...r},At||(At=c.createElement("path",{d:"M31 16L24 23 22.59 21.59 28.17 16 22.59 10.41 24 9 31 16zM1 16L8 9 9.41 10.41 3.83 16 9.41 21.59 8 23 1 16z"})),St||(St=c.createElement("path",{d:"M5.91 15H26.080000000000002V17H5.91z",transform:"rotate(-75 15.996 16)"})),t)});var Ot,Tt;const _i=c.forwardRef(function({children:t,size:n=16,...r},o){return c.createElement(j,{width:n,height:n,ref:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...r},Ot||(Ot=c.createElement("path",{d:"M26 2H30V6H26zM26 8H30V12H26zM20 2H24V6H20zM20 8H24V12H20zM28 20h-14v2h2v4h-2v2h9v-2h-5v-4h10c.5304 0 1.0392-.2108 1.4142-.5858s.5858-.8838.5858-1.4142v-6h-2v6zM6 6h12v-2H6c-.5304 0-1.0392.2107-1.4142.5858-.3751.375-.5858.8838-.5858 1.4142v6h2v-6zM10 14H4c-.5304 0-1.0392.2107-1.4142.5858-.3751.375-.5858.8838-.5858 1.4142v12c0 .5304.2107 1.0392.5858 1.4142.375.375.8838.5858 1.4142.5858h6c.5304 0 1.0392-.2108 1.4142-.5858.3751-.375.5858-.8838.5858-1.4142v-12c0-.5304-.2107-1.0392-.5858-1.4142-.375-.3751-.8838-.5858-1.4142-.5858zm0 14H4v-12h6v12z"})),t)}),Ci=c.forwardRef(function({children:t,size:n=16,...r},o){return c.createElement(j,{width:n,height:n,ref:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...r},Tt||(Tt=c.createElement("path",{d:"M25.7,9.3l-7-7A.9078.9078,0,0,0,18,2H8A2.0059,2.0059,0,0,0,6,4V28a2.0059,2.0059,0,0,0,2,2H24a2.0059,2.0059,0,0,0,2-2V10A.9078.9078,0,0,0,25.7,9.3ZM18,4.4,23.6,10H18ZM24,28H8V4h8v6a2.0059,2.0059,0,0,0,2,2h6Z"})),t)});var Lt,Nt,Pt,Mt,Bt,It,Vt,Dt,Ht,$t,Ft,kt,Wt,jt,Ut,zt,Gt,qt;const Ai=c.forwardRef(function({children:t,size:n=16,...r},o){return n===16||n==="16"||n==="16px"?c.createElement(j,{width:n,height:n,ref:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",...r},Lt||(Lt=c.createElement("path",{d:"M7.5 1H8.5V3.5H7.5z"})),Nt||(Nt=c.createElement("path",{d:"M10.8 3.4H13.3V4.4H10.8z",transform:"rotate(-45.001 12.041 3.923)"})),Pt||(Pt=c.createElement("path",{d:"M12.5 7.5H15V8.5H12.5z"})),Mt||(Mt=c.createElement("path",{d:"M11.6 10.8H12.6V13.3H11.6z",transform:"rotate(-45.001 12.075 12.041)"})),Bt||(Bt=c.createElement("path",{d:"M7.5 12.5H8.5V15H7.5z"})),It||(It=c.createElement("path",{d:"M2.7 11.6H5.2V12.6H2.7z",transform:"rotate(-45.001 3.96 12.079)"})),Vt||(Vt=c.createElement("path",{d:"M1 7.5H3.5V8.5H1z"})),Dt||(Dt=c.createElement("path",{d:"M3.4 2.7H4.4V5.2H3.4z",transform:"rotate(-45.001 3.925 3.961)"})),Ht||(Ht=c.createElement("path",{d:"M8,6c1.1,0,2,0.9,2,2s-0.9,2-2,2S6,9.1,6,8S6.9,6,8,6 M8,5C6.3,5,5,6.3,5,8s1.3,3,3,3s3-1.3,3-3S9.7,5,8,5z"})),t):c.createElement(j,{width:n,height:n,ref:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...r},$t||($t=c.createElement("path",{d:"M15 2H17V7H15z"})),Ft||(Ft=c.createElement("path",{d:"M21.668 6.854H26.625999999999998V8.854H21.668z",transform:"rotate(-45 24.147 7.853)"})),kt||(kt=c.createElement("path",{d:"M25 15H30V17H25z"})),Wt||(Wt=c.createElement("path",{d:"M23.147 21.668H25.147V26.625999999999998H23.147z",transform:"rotate(-45 24.147 24.146)"})),jt||(jt=c.createElement("path",{d:"M15 25H17V30H15z"})),Ut||(Ut=c.createElement("path",{d:"M5.375 23.147H10.333V25.147H5.375z",transform:"rotate(-45 7.853 24.146)"})),zt||(zt=c.createElement("path",{d:"M2 15H7V17H2z"})),Gt||(Gt=c.createElement("path",{d:"M6.854 5.375H8.854V10.333H6.854z",transform:"rotate(-45 7.854 7.853)"})),qt||(qt=c.createElement("path",{d:"M16,12a4,4,0,1,1-4,4,4.0045,4.0045,0,0,1,4-4m0-2a6,6,0,1,0,6,6,6,6,0,0,0-6-6Z"})),t)});var Zt,Yt;const Si=c.forwardRef(function({children:t,size:n=16,...r},o){return c.createElement(j,{width:n,height:n,ref:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...r},Zt||(Zt=c.createElement("path",{fillRule:"evenodd",d:"M16,2a14,14,0,0,0-4.43,27.28c.7.13,1-.3,1-.67s0-1.21,0-2.38c-3.89.84-4.71-1.88-4.71-1.88A3.71,3.71,0,0,0,6.24,22.3c-1.27-.86.1-.85.1-.85A2.94,2.94,0,0,1,8.48,22.9a3,3,0,0,0,4.08,1.16,2.93,2.93,0,0,1,.88-1.87c-3.1-.36-6.37-1.56-6.37-6.92a5.4,5.4,0,0,1,1.44-3.76,5,5,0,0,1,.14-3.7s1.17-.38,3.85,1.43a13.3,13.3,0,0,1,7,0c2.67-1.81,3.84-1.43,3.84-1.43a5,5,0,0,1,.14,3.7,5.4,5.4,0,0,1,1.44,3.76c0,5.38-3.27,6.56-6.39,6.91a3.33,3.33,0,0,1,.95,2.59c0,1.87,0,3.38,0,3.84s.25.81,1,.67A14,14,0,0,0,16,2Z"})),t)}),Oi=c.forwardRef(function({children:t,size:n=16,...r},o){return c.createElement(j,{width:n,height:n,ref:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...r},Yt||(Yt=c.createElement("path",{d:"M25.3943,24a7.8772,7.8772,0,0,0-1.6707-8.5684,3.918,3.918,0,0,0-1.0844-4.414l2.7759-2.7759a2.0025,2.0025,0,0,0,0-2.8286L22.5869,2.5849a2.0021,2.0021,0,0,0-2.8286,0L6.5859,15.7573a2.0027,2.0027,0,0,0,0,2.8286l2.8282,2.8282a2.0024,2.0024,0,0,0,2.8286,0l4.7749-4.7754a3.9329,3.9329,0,0,0,5.5139.4326A5.9442,5.9442,0,0,1,23.1775,24H16v4H4v2H28V24ZM10.8281,20,8,17.1714,9.8787,15.293l2.8283,2.8281ZM16,14a3.9811,3.9811,0,0,0,.0762.7524L14.1211,16.707l-2.8284-2.8281,9.88-9.88L24.001,6.8271l-3.2488,3.2491A3.9771,3.9771,0,0,0,16,14Zm4,2a2,2,0,1,1,2-2A2.0023,2.0023,0,0,1,20,16Zm6,12H18V26h8Z"})),t)});var Xt;const Ti=c.forwardRef(function({children:t,size:n=16,...r},o){return c.createElement(j,{width:n,height:n,ref:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...r},Xt||(Xt=c.createElement("path",{d:"M22,12h6c1.1028,0,2-.8975,2-2V4c0-1.1025-.8972-2-2-2h-6c-1.1028,0-2,.8975-2,2v2h-9c-2.7571,0-5,2.2432-5,5h-2c-1.1028,0-2,.8975-2,2v6c0,1.1025.8972,2,2,2h2c0,2.7568,2.2429,5,5,5h9v2c0,1.1025.8972,2,2,2h6c1.1028,0,2-.8975,2-2v-6c0-1.1025-.8972-2-2-2h-6c-1.1028,0-2,.8975-2,2v2h-9c-1.6543,0-3-1.3457-3-3h2c1.1028,0,2-.8975,2-2v-6c0-1.1025-.8972-2-2-2h-2c0-1.6543,1.3457-3,3-3h9v2c0,1.1025.8972,2,2,2ZM22,22h6v6h-6l-.0012-6h.0012ZM10,13v6h-6l-.0012-6h6.0012ZM22,4h6v6h-6l-.0012-6h.0012Z"})),t)});var Jt,Kt;const Li=c.forwardRef(function({children:t,size:n=16,...r},o){return c.createElement(j,{width:n,height:n,ref:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...r},Jt||(Jt=c.createElement("path",{strokeWidth:"0",d:"M12 28h-2c-3.8599 0-7-3.1401-7-7v-2h2v2c0 2.7568 2.2432 5 5 5h2v2zM28 19h-9c-1.104.0014-1.9986.896-2 2v5c0 1.1046.8954 2 2 2h3v-2h-3v-5h9v5h-2.5352l-2.5937 3.8906 1.6641 1.1094 2-3h1.4648c1.1046 0 2-.8954 2-2v-5c-.0014-1.104-.896-1.9986-2-2zM29 15v-4c0-3.8599-3.1401-7-7-7h-3v2h3c2.7568 0 5 2.2432 5 5v4h2zM6 10H9V12H6z"})),Kt||(Kt=c.createElement("path",{strokeWidth:"0",d:"m12.606,6.4355l-2.5251-3.6855c-.3821-.4766-.9512-.75-1.5615-.75h-4.5193c-1.1028,0-2,.8975-2,2v10c0,1.1025.8972,2,2,2h7c1.1028,0,2-.8975,2-2v-6.375c0-.4526-.1558-.8965-.394-1.1895Zm-8.606,7.5645V4h4v3c0,.5522.4478,1,1,1h2v6h-7Z"})),t)});var Qt,en;const Ni=c.forwardRef(function({children:t,size:n=16,...r},o){return c.createElement(j,{width:n,height:n,ref:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...r},Qt||(Qt=c.createElement("path",{d:"M14 16.59L11.41 14 10 15.41 14 19.41 22 11.41 20.59 10 14 16.59z"})),en||(en=c.createElement("path",{d:"M16,30,9.8242,26.7071A10.9818,10.9818,0,0,1,4,17V4A2.0021,2.0021,0,0,1,6,2H26a2.0021,2.0021,0,0,1,2,2V17a10.9818,10.9818,0,0,1-5.8242,9.7071ZM6,4V17a8.9852,8.9852,0,0,0,4.7656,7.9423L16,27.7333l5.2344-2.791A8.9852,8.9852,0,0,0,26,17V4Z"})),t)}),Ar={key:"Enter",which:13,keyCode:13,code:"Enter"},tn={key:["Escape","Esc"],which:27,keyCode:27,code:"Esc"},Sr={key:" ",which:32,keyCode:32,code:"Space"},we=(e,{key:t,which:n,keyCode:r,code:o})=>typeof e=="string"?e===t:typeof e=="number"?e===n||e===r:e.key&&Array.isArray(t)?t.includes(e.key):e.key===t||e.which===n||e.keyCode===r||e.code===o,Or=()=>{let e=0;return()=>++e},Tr=!!(typeof window<"u"&&window.document&&window.document.createElement),Lr=c.createContext(null);function wn(){return c.useContext(Lr)}const vn={...c},We=Or(),Nr=Tr?g.useLayoutEffect:g.useEffect;let je=!1;const En="id";function Pr(e=En){const t=wn(),[n,r]=g.useState(()=>je?`${t?`${t}-`:""}${e}-${We()}`:null);return Nr(()=>{n===null&&r(`${t?`${t}-`:""}${e}-${We()}`)},[We]),g.useEffect(()=>{je===!1&&(je=!0)},[]),n}function Mr(e=En){const t=wn();return`${t?`${t}-`:""}${e}-${vn.useId()}`}const Ke=vn.useId?Mr:Pr,Ue=new Map,Qe=(e,t)=>(r,o,i,...s)=>{if(typeof r[o]>"u")return;Ue.has(i)||Ue.set(i,new Set);const l=Ue.get(i);return l&&!l.has(o)&&l.add(o),e(r,o,i,...s)},xn=typeof window<"u"?g.useLayoutEffect:g.useEffect,ve={},Rn=(e,t,n)=>(r,o,i,...s)=>{if(typeof r[o]>"u")return null;if(!ve[i]||!ve[i][o]){ve[i]={...ve[i],[o]:!0};const l=r[o],f=n?n(l):null;t&&!t.includes(l)&&(n?`${l}${o}${i}${f}${l}`:`${l}${o}${i}${t.join(", ")}${l}`)}return e(r,o,i,...s)},_n=e=>{const t=g.useMemo(()=>e,e);return g.useCallback(n=>{t.forEach(r=>{typeof r=="function"?r(n):r&&(r.current=n)})},[t])},Br=(e,t,n)=>{const r=g.useRef(null);g.useEffect(()=>{r.current=n},[n]),g.useEffect(()=>{const o="current"in e?e.current:e;if(!o)return;const i=s=>{r.current&&r.current(s)};return o.addEventListener(t,i),()=>{o.removeEventListener(t,i)}},[e,t])},Ir=(e,t)=>{const n=g.useRef(null);g.useEffect(()=>{n.current=t},[t]),g.useEffect(()=>{const r=o=>{n.current&&n.current(o)};return window.addEventListener(e,r),()=>{window.removeEventListener(e,r)}},[e])},Vr={"top-left":"top-start","top-right":"top-end","bottom-left":"bottom-start","bottom-right":"bottom-end","left-bottom":"left-end","left-top":"left-start","right-bottom":"right-end","right-top":"right-start"},et=e=>Vr[e]??e;function Oe(){return typeof window<"u"}function de(e){return Cn(e)?(e.nodeName||"").toLowerCase():"#document"}function Y(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ee(e){var t;return(t=(Cn(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Cn(e){return Oe()?e instanceof Node||e instanceof Y(e).Node:!1}function G(e){return Oe()?e instanceof Element||e instanceof Y(e).Element:!1}function Q(e){return Oe()?e instanceof HTMLElement||e instanceof Y(e).HTMLElement:!1}function nn(e){return!Oe()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Y(e).ShadowRoot}const Dr=new Set(["inline","contents"]);function he(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=J(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!Dr.has(o)}const Hr=new Set(["table","td","th"]);function $r(e){return Hr.has(de(e))}const Fr=[":popover-open",":modal"];function Te(e){return Fr.some(t=>{try{return e.matches(t)}catch{return!1}})}const kr=["transform","translate","scale","rotate","perspective"],Wr=["transform","translate","scale","rotate","perspective","filter"],jr=["paint","layout","strict","content"];function tt(e){const t=nt(),n=G(e)?J(e):e;return kr.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||Wr.some(r=>(n.willChange||"").includes(r))||jr.some(r=>(n.contain||"").includes(r))}function Ur(e){let t=re(e);for(;Q(t)&&!ce(t);){if(tt(t))return t;if(Te(t))return null;t=re(t)}return null}function nt(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const zr=new Set(["html","body","#document"]);function ce(e){return zr.has(de(e))}function J(e){return Y(e).getComputedStyle(e)}function Le(e){return G(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function re(e){if(de(e)==="html")return e;const t=e.assignedSlot||e.parentNode||nn(e)&&e.host||ee(e);return nn(t)?t.host:t}function An(e){const t=re(e);return ce(t)?e.ownerDocument?e.ownerDocument.body:e.body:Q(t)&&he(t)?t:An(t)}function me(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=An(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),s=Y(o);if(i){const l=qe(s);return t.concat(s,s.visualViewport||[],he(o)?o:[],l&&n?me(l):[])}return t.concat(o,me(o,[],n))}function qe(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}const Gr=["top","right","bottom","left"],fe=Math.min,ie=Math.max,_e=Math.round,Ee=Math.floor,K=e=>({x:e,y:e}),qr={left:"right",right:"left",bottom:"top",top:"bottom"},Zr={start:"end",end:"start"};function Yr(e,t,n){return ie(e,fe(t,n))}function ge(e,t){return typeof e=="function"?e(t):e}function ue(e){return e.split("-")[0]}function be(e){return e.split("-")[1]}function Xr(e){return e==="x"?"y":"x"}function rt(e){return e==="y"?"height":"width"}const Jr=new Set(["top","bottom"]);function oe(e){return Jr.has(ue(e))?"y":"x"}function ot(e){return Xr(oe(e))}function Kr(e,t,n){n===void 0&&(n=!1);const r=be(e),o=ot(e),i=rt(o);let s=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=Ce(s)),[s,Ce(s)]}function Qr(e){const t=Ce(e);return[Ze(e),t,Ze(t)]}function Ze(e){return e.replace(/start|end/g,t=>Zr[t])}const rn=["left","right"],on=["right","left"],eo=["top","bottom"],to=["bottom","top"];function no(e,t,n){switch(e){case"top":case"bottom":return n?t?on:rn:t?rn:on;case"left":case"right":return t?eo:to;default:return[]}}function ro(e,t,n,r){const o=be(e);let i=no(ue(e),n==="start",r);return o&&(i=i.map(s=>s+"-"+o),t&&(i=i.concat(i.map(Ze)))),i}function Ce(e){return e.replace(/left|right|bottom|top/g,t=>qr[t])}function oo(e){return{top:0,right:0,bottom:0,left:0,...e}}function Sn(e){return typeof e!="number"?oo(e):{top:e,right:e,bottom:e,left:e}}function Ae(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}var io=typeof document<"u",so=function(){},Ye=io?g.useLayoutEffect:so;const ao={...bn},lo=ao.useInsertionEffect,co=lo||(e=>e());function fo(e){const t=g.useRef(()=>{});return co(()=>{t.current=e}),g.useCallback(function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return t.current==null?void 0:t.current(...r)},[])}var uo=Zn();function sn(e,t,n){let{reference:r,floating:o}=e;const i=oe(t),s=ot(t),l=rt(s),f=ue(t),u=i==="y",p=r.x+r.width/2-o.width/2,h=r.y+r.height/2-o.height/2,b=r[l]/2-o[l]/2;let d;switch(f){case"top":d={x:p,y:r.y-o.height};break;case"bottom":d={x:p,y:r.y+r.height};break;case"right":d={x:r.x+r.width,y:h};break;case"left":d={x:r.x-o.width,y:h};break;default:d={x:r.x,y:r.y}}switch(be(t)){case"start":d[s]-=b*(n&&u?-1:1);break;case"end":d[s]+=b*(n&&u?-1:1);break}return d}const po=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:s}=n,l=i.filter(Boolean),f=await(s.isRTL==null?void 0:s.isRTL(t));let u=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:p,y:h}=sn(u,r,f),b=r,d={},w=0;for(let v=0;v<l.length;v++){const{name:A,fn:R}=l[v],{x:y,y:x,data:_,reset:E}=await R({x:p,y:h,initialPlacement:r,placement:b,strategy:o,middlewareData:d,rects:u,platform:s,elements:{reference:e,floating:t}});p=y??p,h=x??h,d={...d,[A]:{...d[A],..._}},E&&w<=50&&(w++,typeof E=="object"&&(E.placement&&(b=E.placement),E.rects&&(u=E.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:o}):E.rects),{x:p,y:h}=sn(u,b,f)),v=-1)}return{x:p,y:h,placement:b,strategy:o,middlewareData:d}};async function Xe(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:i,rects:s,elements:l,strategy:f}=e,{boundary:u="clippingAncestors",rootBoundary:p="viewport",elementContext:h="floating",altBoundary:b=!1,padding:d=0}=ge(t,e),w=Sn(d),A=l[b?h==="floating"?"reference":"floating":h],R=Ae(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(A)))==null||n?A:A.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(l.floating)),boundary:u,rootBoundary:p,strategy:f})),y=h==="floating"?{x:r,y:o,width:s.floating.width,height:s.floating.height}:s.reference,x=await(i.getOffsetParent==null?void 0:i.getOffsetParent(l.floating)),_=await(i.isElement==null?void 0:i.isElement(x))?await(i.getScale==null?void 0:i.getScale(x))||{x:1,y:1}:{x:1,y:1},E=Ae(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:y,offsetParent:x,strategy:f}):y);return{top:(R.top-E.top+w.top)/_.y,bottom:(E.bottom-R.bottom+w.bottom)/_.y,left:(R.left-E.left+w.left)/_.x,right:(E.right-R.right+w.right)/_.x}}const mo=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:s,elements:l,middlewareData:f}=t,{element:u,padding:p=0}=ge(e,t)||{};if(u==null)return{};const h=Sn(p),b={x:n,y:r},d=ot(o),w=rt(d),v=await s.getDimensions(u),A=d==="y",R=A?"top":"left",y=A?"bottom":"right",x=A?"clientHeight":"clientWidth",_=i.reference[w]+i.reference[d]-b[d]-i.floating[w],E=b[d]-i.reference[d],S=await(s.getOffsetParent==null?void 0:s.getOffsetParent(u));let C=S?S[x]:0;(!C||!await(s.isElement==null?void 0:s.isElement(S)))&&(C=l.floating[x]||i.floating[w]);const $=_/2-E/2,F=C/2-v[w]/2-1,B=fe(h[R],F),k=fe(h[y],F),H=B,D=C-v[w]-k,P=C/2-v[w]/2+$,z=Yr(H,P,D),N=!f.arrow&&be(o)!=null&&P!==z&&i.reference[w]/2-(P<H?B:k)-v[w]/2<0,V=N?P<H?P-H:P-D:0;return{[d]:b[d]+V,data:{[d]:z,centerOffset:P-z-V,...N&&{alignmentOffset:V}},reset:N}}}),ho=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:s,initialPlacement:l,platform:f,elements:u}=t,{mainAxis:p=!0,crossAxis:h=!0,fallbackPlacements:b,fallbackStrategy:d="bestFit",fallbackAxisSideDirection:w="none",flipAlignment:v=!0,...A}=ge(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const R=ue(o),y=oe(l),x=ue(l)===l,_=await(f.isRTL==null?void 0:f.isRTL(u.floating)),E=b||(x||!v?[Ce(l)]:Qr(l)),S=w!=="none";!b&&S&&E.push(...ro(l,v,w,_));const C=[l,...E],$=await Xe(t,A),F=[];let B=((r=i.flip)==null?void 0:r.overflows)||[];if(p&&F.push($[R]),h){const P=Kr(o,s,_);F.push($[P[0]],$[P[1]])}if(B=[...B,{placement:o,overflows:F}],!F.every(P=>P<=0)){var k,H;const P=(((k=i.flip)==null?void 0:k.index)||0)+1,z=C[P];if(z&&(!(h==="alignment"?y!==oe(z):!1)||B.every(O=>oe(O.placement)===y?O.overflows[0]>0:!0)))return{data:{index:P,overflows:B},reset:{placement:z}};let N=(H=B.filter(V=>V.overflows[0]<=0).sort((V,O)=>V.overflows[1]-O.overflows[1])[0])==null?void 0:H.placement;if(!N)switch(d){case"bestFit":{var D;const V=(D=B.filter(O=>{if(S){const W=oe(O.placement);return W===y||W==="y"}return!0}).map(O=>[O.placement,O.overflows.filter(W=>W>0).reduce((W,M)=>W+M,0)]).sort((O,W)=>O[1]-W[1])[0])==null?void 0:D[0];V&&(N=V);break}case"initialPlacement":N=l;break}if(o!==N)return{reset:{placement:N}}}return{}}}};function an(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function ln(e){return Gr.some(t=>e[t]>=0)}const go=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=ge(e,t);switch(r){case"referenceHidden":{const i=await Xe(t,{...o,elementContext:"reference"}),s=an(i,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:ln(s)}}}case"escaped":{const i=await Xe(t,{...o,altBoundary:!0}),s=an(i,n.floating);return{data:{escapedOffsets:s,escaped:ln(s)}}}default:return{}}}}},bo=new Set(["left","top"]);async function yo(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),s=ue(n),l=be(n),f=oe(n)==="y",u=bo.has(s)?-1:1,p=i&&f?-1:1,h=ge(t,e);let{mainAxis:b,crossAxis:d,alignmentAxis:w}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return l&&typeof w=="number"&&(d=l==="end"?w*-1:w),f?{x:d*p,y:b*u}:{x:b*u,y:d*p}}const wo=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:s,middlewareData:l}=t,f=await yo(t,e);return s===((n=l.offset)==null?void 0:n.placement)&&(r=l.arrow)!=null&&r.alignmentOffset?{}:{x:o+f.x,y:i+f.y,data:{...f,placement:s}}}}};function On(e){const t=J(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Q(e),i=o?e.offsetWidth:n,s=o?e.offsetHeight:r,l=_e(n)!==i||_e(r)!==s;return l&&(n=i,r=s),{width:n,height:r,$:l}}function it(e){return G(e)?e:e.contextElement}function le(e){const t=it(e);if(!Q(t))return K(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=On(t);let s=(i?_e(n.width):n.width)/r,l=(i?_e(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}const vo=K(0);function Tn(e){const t=Y(e);return!nt()||!t.visualViewport?vo:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Eo(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Y(e)?!1:t}function se(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=it(e);let s=K(1);t&&(r?G(r)&&(s=le(r)):s=le(e));const l=Eo(i,n,r)?Tn(i):K(0);let f=(o.left+l.x)/s.x,u=(o.top+l.y)/s.y,p=o.width/s.x,h=o.height/s.y;if(i){const b=Y(i),d=r&&G(r)?Y(r):r;let w=b,v=qe(w);for(;v&&r&&d!==w;){const A=le(v),R=v.getBoundingClientRect(),y=J(v),x=R.left+(v.clientLeft+parseFloat(y.paddingLeft))*A.x,_=R.top+(v.clientTop+parseFloat(y.paddingTop))*A.y;f*=A.x,u*=A.y,p*=A.x,h*=A.y,f+=x,u+=_,w=Y(v),v=qe(w)}}return Ae({width:p,height:h,x:f,y:u})}function Ne(e,t){const n=Le(e).scrollLeft;return t?t.left+n:se(ee(e)).left+n}function Ln(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-Ne(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function xo(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i=o==="fixed",s=ee(r),l=t?Te(t.floating):!1;if(r===s||l&&i)return n;let f={scrollLeft:0,scrollTop:0},u=K(1);const p=K(0),h=Q(r);if((h||!h&&!i)&&((de(r)!=="body"||he(s))&&(f=Le(r)),Q(r))){const d=se(r);u=le(r),p.x=d.x+r.clientLeft,p.y=d.y+r.clientTop}const b=s&&!h&&!i?Ln(s,f):K(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-f.scrollLeft*u.x+p.x+b.x,y:n.y*u.y-f.scrollTop*u.y+p.y+b.y}}function Ro(e){return Array.from(e.getClientRects())}function _o(e){const t=ee(e),n=Le(e),r=e.ownerDocument.body,o=ie(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=ie(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+Ne(e);const l=-n.scrollTop;return J(r).direction==="rtl"&&(s+=ie(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:s,y:l}}const cn=25;function Co(e,t){const n=Y(e),r=ee(e),o=n.visualViewport;let i=r.clientWidth,s=r.clientHeight,l=0,f=0;if(o){i=o.width,s=o.height;const p=nt();(!p||p&&t==="fixed")&&(l=o.offsetLeft,f=o.offsetTop)}const u=Ne(r);if(u<=0){const p=r.ownerDocument,h=p.body,b=getComputedStyle(h),d=p.compatMode==="CSS1Compat"&&parseFloat(b.marginLeft)+parseFloat(b.marginRight)||0,w=Math.abs(r.clientWidth-h.clientWidth-d);w<=cn&&(i-=w)}else u<=cn&&(i+=u);return{width:i,height:s,x:l,y:f}}const Ao=new Set(["absolute","fixed"]);function So(e,t){const n=se(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=Q(e)?le(e):K(1),s=e.clientWidth*i.x,l=e.clientHeight*i.y,f=o*i.x,u=r*i.y;return{width:s,height:l,x:f,y:u}}function fn(e,t,n){let r;if(t==="viewport")r=Co(e,n);else if(t==="document")r=_o(ee(e));else if(G(t))r=So(t,n);else{const o=Tn(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Ae(r)}function Nn(e,t){const n=re(e);return n===t||!G(n)||ce(n)?!1:J(n).position==="fixed"||Nn(n,t)}function Oo(e,t){const n=t.get(e);if(n)return n;let r=me(e,[],!1).filter(l=>G(l)&&de(l)!=="body"),o=null;const i=J(e).position==="fixed";let s=i?re(e):e;for(;G(s)&&!ce(s);){const l=J(s),f=tt(s);!f&&l.position==="fixed"&&(o=null),(i?!f&&!o:!f&&l.position==="static"&&!!o&&Ao.has(o.position)||he(s)&&!f&&Nn(e,s))?r=r.filter(p=>p!==s):o=l,s=re(s)}return t.set(e,r),r}function To(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const s=[...n==="clippingAncestors"?Te(t)?[]:Oo(t,this._c):[].concat(n),r],l=s[0],f=s.reduce((u,p)=>{const h=fn(t,p,o);return u.top=ie(h.top,u.top),u.right=fe(h.right,u.right),u.bottom=fe(h.bottom,u.bottom),u.left=ie(h.left,u.left),u},fn(t,l,o));return{width:f.right-f.left,height:f.bottom-f.top,x:f.left,y:f.top}}function Lo(e){const{width:t,height:n}=On(e);return{width:t,height:n}}function No(e,t,n){const r=Q(t),o=ee(t),i=n==="fixed",s=se(e,!0,i,t);let l={scrollLeft:0,scrollTop:0};const f=K(0);function u(){f.x=Ne(o)}if(r||!r&&!i)if((de(t)!=="body"||he(o))&&(l=Le(t)),r){const d=se(t,!0,i,t);f.x=d.x+t.clientLeft,f.y=d.y+t.clientTop}else o&&u();i&&!r&&o&&u();const p=o&&!r&&!i?Ln(o,l):K(0),h=s.left+l.scrollLeft-f.x-p.x,b=s.top+l.scrollTop-f.y-p.y;return{x:h,y:b,width:s.width,height:s.height}}function ze(e){return J(e).position==="static"}function un(e,t){if(!Q(e)||J(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return ee(e)===n&&(n=n.ownerDocument.body),n}function Pn(e,t){const n=Y(e);if(Te(e))return n;if(!Q(e)){let o=re(e);for(;o&&!ce(o);){if(G(o)&&!ze(o))return o;o=re(o)}return n}let r=un(e,t);for(;r&&$r(r)&&ze(r);)r=un(r,t);return r&&ce(r)&&ze(r)&&!tt(r)?n:r||Ur(e)||n}const Po=async function(e){const t=this.getOffsetParent||Pn,n=this.getDimensions,r=await n(e.floating);return{reference:No(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Mo(e){return J(e).direction==="rtl"}const Bo={convertOffsetParentRelativeRectToViewportRelativeRect:xo,getDocumentElement:ee,getClippingRect:To,getOffsetParent:Pn,getElementRects:Po,getClientRects:Ro,getDimensions:Lo,getScale:le,isElement:G,isRTL:Mo};function Mn(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Io(e,t){let n=null,r;const o=ee(e);function i(){var l;clearTimeout(r),(l=n)==null||l.disconnect(),n=null}function s(l,f){l===void 0&&(l=!1),f===void 0&&(f=1),i();const u=e.getBoundingClientRect(),{left:p,top:h,width:b,height:d}=u;if(l||t(),!b||!d)return;const w=Ee(h),v=Ee(o.clientWidth-(p+b)),A=Ee(o.clientHeight-(h+d)),R=Ee(p),x={rootMargin:-w+"px "+-v+"px "+-A+"px "+-R+"px",threshold:ie(0,fe(1,f))||1};let _=!0;function E(S){const C=S[0].intersectionRatio;if(C!==f){if(!_)return s();C?s(!1,C):r=setTimeout(()=>{s(!1,1e-7)},1e3)}C===1&&!Mn(u,e.getBoundingClientRect())&&s(),_=!1}try{n=new IntersectionObserver(E,{...x,root:o.ownerDocument})}catch{n=new IntersectionObserver(E,x)}n.observe(e)}return s(!0),i}function Vo(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:f=!1}=r,u=it(e),p=o||i?[...u?me(u):[],...me(t)]:[];p.forEach(R=>{o&&R.addEventListener("scroll",n,{passive:!0}),i&&R.addEventListener("resize",n)});const h=u&&l?Io(u,n):null;let b=-1,d=null;s&&(d=new ResizeObserver(R=>{let[y]=R;y&&y.target===u&&d&&(d.unobserve(t),cancelAnimationFrame(b),b=requestAnimationFrame(()=>{var x;(x=d)==null||x.observe(t)})),n()}),u&&!f&&d.observe(u),d.observe(t));let w,v=f?se(e):null;f&&A();function A(){const R=se(e);v&&!Mn(v,R)&&n(),v=R,w=requestAnimationFrame(A)}return n(),()=>{var R;p.forEach(y=>{o&&y.removeEventListener("scroll",n),i&&y.removeEventListener("resize",n)}),h?.(),(R=d)==null||R.disconnect(),d=null,f&&cancelAnimationFrame(w)}}const Do=wo,Ho=ho,$o=go,dn=mo,Fo=(e,t,n)=>{const r=new Map,o={platform:Bo,...n},i={...o.platform,_c:r};return po(e,t,{...o,platform:i})};var ko=typeof document<"u",Wo=function(){},xe=ko?g.useLayoutEffect:Wo;function Se(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Se(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const i=o[r];if(!(i==="_owner"&&e.$$typeof)&&!Se(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function Bn(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function pn(e,t){const n=Bn(e);return Math.round(t*n)/n}function Ge(e){const t=g.useRef(e);return xe(()=>{t.current=e}),t}function jo(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:s}={},transform:l=!0,whileElementsMounted:f,open:u}=e,[p,h]=g.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[b,d]=g.useState(r);Se(b,r)||d(r);const[w,v]=g.useState(null),[A,R]=g.useState(null),y=g.useCallback(O=>{O!==S.current&&(S.current=O,v(O))},[]),x=g.useCallback(O=>{O!==C.current&&(C.current=O,R(O))},[]),_=i||w,E=s||A,S=g.useRef(null),C=g.useRef(null),$=g.useRef(p),F=f!=null,B=Ge(f),k=Ge(o),H=Ge(u),D=g.useCallback(()=>{if(!S.current||!C.current)return;const O={placement:t,strategy:n,middleware:b};k.current&&(O.platform=k.current),Fo(S.current,C.current,O).then(W=>{const M={...W,isPositioned:H.current!==!1};P.current&&!Se($.current,M)&&($.current=M,uo.flushSync(()=>{h(M)}))})},[b,t,n,k,H]);xe(()=>{u===!1&&$.current.isPositioned&&($.current.isPositioned=!1,h(O=>({...O,isPositioned:!1})))},[u]);const P=g.useRef(!1);xe(()=>(P.current=!0,()=>{P.current=!1}),[]),xe(()=>{if(_&&(S.current=_),E&&(C.current=E),_&&E){if(B.current)return B.current(_,E,D);D()}},[_,E,D,B,F]);const z=g.useMemo(()=>({reference:S,floating:C,setReference:y,setFloating:x}),[y,x]),N=g.useMemo(()=>({reference:_,floating:E}),[_,E]),V=g.useMemo(()=>{const O={position:n,left:0,top:0};if(!N.floating)return O;const W=pn(N.floating,p.x),M=pn(N.floating,p.y);return l?{...O,transform:"translate("+W+"px, "+M+"px)",...Bn(N.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:W,top:M}},[n,l,N.floating,p.x,p.y]);return g.useMemo(()=>({...p,update:D,refs:z,elements:N,floatingStyles:V}),[p,D,z,N,V])}const Uo=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?dn({element:r.current,padding:o}).fn(n):{}:r?dn({element:r,padding:o}).fn(n):{}}}},zo=(e,t)=>({...Do(e),options:[e,t]}),Go=(e,t)=>({...Ho(e),options:[e,t]}),qo=(e,t)=>({...$o(e),options:[e,t]}),Zo=(e,t)=>({...Uo(e),options:[e,t]}),Yo={...bn};let mn=!1,Xo=0;const hn=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+Xo++;function Jo(){const[e,t]=g.useState(()=>mn?hn():void 0);return Ye(()=>{e==null&&t(hn())},[]),g.useEffect(()=>{mn=!0},[]),e}const Ko=Yo.useId,Qo=Ko||Jo;function ei(){const e=new Map;return{emit(t,n){var r;(r=e.get(t))==null||r.forEach(o=>o(n))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){var r;(r=e.get(t))==null||r.delete(n)}}}const ti=g.createContext(null),ni=g.createContext(null),ri=()=>{var e;return((e=g.useContext(ti))==null?void 0:e.id)||null},oi=()=>g.useContext(ni);function ii(e){const{open:t=!1,onOpenChange:n,elements:r}=e,o=Qo(),i=g.useRef({}),[s]=g.useState(()=>ei()),l=ri()!=null,[f,u]=g.useState(r.reference),p=fo((d,w,v)=>{i.current.openEvent=d?w:void 0,s.emit("openchange",{open:d,event:w,reason:v,nested:l}),n?.(d,w,v)}),h=g.useMemo(()=>({setPositionReference:u}),[]),b=g.useMemo(()=>({reference:f||r.reference||null,floating:r.floating||null,domReference:r.reference}),[f,r.reference,r.floating]);return g.useMemo(()=>({dataRef:i,open:t,onOpenChange:p,elements:b,events:s,floatingId:o,refs:h}),[t,p,b,s,o,h])}function si(e){e===void 0&&(e={});const{nodeId:t}=e,n=ii({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,o=r.elements,[i,s]=g.useState(null),[l,f]=g.useState(null),p=o?.domReference||i,h=g.useRef(null),b=oi();Ye(()=>{p&&(h.current=p)},[p]);const d=jo({...e,elements:{...o,...l&&{reference:l}}}),w=g.useCallback(x=>{const _=G(x)?{getBoundingClientRect:()=>x.getBoundingClientRect(),getClientRects:()=>x.getClientRects(),contextElement:x}:x;f(_),d.refs.setReference(_)},[d.refs]),v=g.useCallback(x=>{(G(x)||x===null)&&(h.current=x,s(x)),(G(d.refs.reference.current)||d.refs.reference.current===null||x!==null&&!G(x))&&d.refs.setReference(x)},[d.refs]),A=g.useMemo(()=>({...d.refs,setReference:v,setPositionReference:w,domReference:h}),[d.refs,v,w]),R=g.useMemo(()=>({...d.elements,domReference:p}),[d.elements,p]),y=g.useMemo(()=>({...d,...r,refs:A,elements:R,nodeId:t}),[d,A,R,t,r]);return Ye(()=>{r.dataRef.current.floatingContext=y;const x=b?.nodesRef.current.find(_=>_.id===t);x&&(x.context=y)}),g.useMemo(()=>({...d,context:y,refs:A,elements:R}),[d,A,R,y])}const ai=g.createContext(Re);a.node,Qe(a.objectOf(a.bool)),a.bool,a.bool,a.bool,a.bool,a.bool,a.bool,a.bool,a.bool,a.bool,a.bool;function In(e){return g.useContext(ai).enabled(e)}const Vn=c.createContext({setFloating:{current:null},caretRef:{current:null},autoAlign:null}),Dn=c.forwardRef(function({isTabTip:t,align:n=t?"bottom-start":"bottom",as:r="span",autoAlign:o=!1,autoAlignBoundary:i,backgroundToken:s="layer",caret:l=!t,className:f,children:u,border:p=!1,dropShadow:h=!0,highContrast:b=!1,onRequestClose:d,open:w,alignmentAxisOffset:v,...A},R){const y=X(),x=g.useRef(null),_=g.useRef(null),E=g.useRef(null),S=In("enable-v12-dynamic-floating-styles")||o;let C=et(n);Br(E,"focusout",M=>{const L=M.relatedTarget;if(t){L&&!E.current?.contains(L)&&d?.();return}if(!L){d?.();return}const U=!E.current?.contains(L),I=S&&B.floating.current?!B.floating.current.contains(L):!0;U&&I&&d?.()}),Ir("click",({target:M})=>{w&&M instanceof Node&&!E.current?.contains(M)&&d?.()});const $=c.Children.toArray(u).some(M=>M?.props?.className?.includes("slug")||M?.props?.className?.includes("ai-label"))?7:6,F=g.useRef({offset:10,caretHeight:$});xn(()=>{if(l&&E.current){const M=window.getComputedStyle(E.current,null),L=M.getPropertyValue("--cds-popover-offset"),U=M.getPropertyValue("--cds-popover-caret-height");L&&(F.current.offset=L.includes("px")?Number(L.split("px",1)[0])*1:Number(L.split("rem",1)[0])*16),U&&(F.current.caretHeight=U.includes("px")?Number(U.split("px",1)[0])*1:Number(U.split("rem",1)[0])*16)}});const{refs:B,floatingStyles:k,placement:H,middlewareData:D}=si(S?{placement:C,strategy:"fixed",middleware:[zo(t?0:{alignmentAxis:v,mainAxis:F?.current?.offset}),o&&Go({fallbackPlacements:t?C.includes("bottom")?["bottom-start","bottom-end","top-start","top-end"]:["top-start","top-end","bottom-start","bottom-end"]:C.includes("bottom")?["bottom","bottom-start","bottom-end","right","right-start","right-end","left","left-start","left-end","top","top-start","top-end"]:["top","top-start","top-end","left","left-start","left-end","right","right-start","right-end","bottom","bottom-start","bottom-end"],fallbackStrategy:"initialPlacement",fallbackAxisSideDirection:"start",boundary:i}),Zo({element:_,padding:16}),o&&qo()],whileElementsMounted:Vo}:{}),P=g.useMemo(()=>({floating:x,setFloating:B.setFloating,caretRef:_,autoAlign:o}),[B.setFloating,o]);t&&(["bottom-start","bottom-end"].includes(C)||(C="bottom-start")),g.useEffect(()=>{if(S){const M={...k,visibility:D.hide?.referenceHidden?"hidden":"visible"};if(Object.keys(M).forEach(L=>{B.floating.current&&(B.floating.current.style[L]=M[L])}),l&&D&&D.arrow&&_?.current){const{x:L,y:U}=D.arrow,I={top:"bottom",right:"left",bottom:"top",left:"right"}[H.split("-")[0]];_.current.style.left=L!=null?`${L}px`:"",_.current.style.top=U!=null?`${U}px`:"",_.current.style.right="",_.current.style.bottom="",I&&(_.current.style[I]=`${-F?.current?.caretHeight}px`)}}},[k,B.floating,S,D,H,l]);const z=_n([R,E]),N=o&&H!==C?H:C,V=q({[`${y}--popover-container`]:!0,[`${y}--popover--caret`]:l,[`${y}--popover--drop-shadow`]:h,[`${y}--popover--border`]:p,[`${y}--popover--high-contrast`]:b,[`${y}--popover--open`]:w,[`${y}--popover--auto-align ${y}--autoalign`]:S,[`${y}--popover--${N}`]:!0,[`${y}--popover--tab-tip`]:t,[`${y}--popover--background-token__background`]:s==="background"&&!b},f),O=c.Children.map(u,M=>{const L=M,U=L?.type?.displayName,I=L?.type==="button",ae=S&&U&&["ToggletipButton"].includes(U),ye=S&&!["ToggletipContent","PopoverContent"].includes(U);if(c.isValidElement(L)&&(I||ae||ye)){const te=L?.props?.className,ne=(L?.props).ref,Gn=q(`${y}--popover--tab-tip__button`,te);return c.cloneElement(L,{className:t&&L?.type==="button"?Gn:te||"",ref:Be=>{(S&&L?.type!==Pe||S&&L?.type.displayName==="ToggletipButton")&&B.setReference(Be),typeof ne=="function"?ne(Be):ne!=null&&(ne.current=Be)}})}else return L}),W=r;return c.createElement(Vn.Provider,{value:P},c.createElement(W,Z({},A,{className:V,ref:z}),S||t?O:u))});Dn.propTypes={align:Rn(a.oneOf(["top","top-left","top-right","bottom","bottom-left","bottom-right","left","left-bottom","left-top","right","right-bottom","right-top","top-start","top-end","bottom-start","bottom-end","left-end","left-start","right-end","right-start"]),["top","top-start","top-end","bottom","bottom-start","bottom-end","left","left-start","left-end","right","right-start","right-end"],et),alignmentAxisOffset:a.number,as:a.oneOfType([a.string,a.elementType]),autoAlign:a.bool,backgroundToken:a.oneOf(["layer","background"]),autoAlignBoundary:a.oneOfType([a.oneOf(["clippingAncestors"]),a.elementType,a.arrayOf(a.elementType),a.exact({x:a.number.isRequired,y:a.number.isRequired,width:a.number.isRequired,height:a.number.isRequired})]),caret:a.bool,border:a.bool,children:a.node,className:a.string,dropShadow:a.bool,highContrast:a.bool,isTabTip:a.bool,onRequestClose:a.func,open:a.bool.isRequired};function li({className:e,children:t,...n},r){const o=X(),{setFloating:i,caretRef:s,autoAlign:l}=c.useContext(Vn),f=_n([i,r]),u=In("enable-v12-dynamic-floating-styles")||l;return c.createElement("span",Z({},n,{className:`${o}--popover`}),c.createElement("span",{className:q(`${o}--popover-content`,e),ref:f},t,u&&c.createElement("span",{className:q({[`${o}--popover-caret`]:!0,[`${o}--popover--auto-align`]:!0}),ref:s})),!u&&c.createElement("span",{className:q({[`${o}--popover-caret`]:!0}),ref:s}))}const Pe=c.forwardRef(li);Pe.displayName="PopoverContent";Pe.propTypes={children:a.node,className:a.string};function ci(e){const[t,n]=g.useState(e),r=g.useRef(null),o=g.useCallback((i,s=0)=>{if(window.clearTimeout(r.current??void 0),r.current=null,s===0){n(i);return}r.current=window.setTimeout(()=>{n(i),r.current=null},s)},[]);return g.useEffect(()=>()=>{window.clearTimeout(r.current??void 0)},[]),[t,o]}const gn=new Set(["mouseup","touchend","touchcancel"]),Hn=c.forwardRef(({as:e,align:t="top",className:n,children:r,label:o,description:i,enterDelayMs:s=100,leaveDelayMs:l=300,defaultOpen:f=!1,closeOnActivation:u=!1,dropShadow:p=!1,highContrast:h=!0,...b},d)=>{g.useRef(null);const[w,v]=ci(f),[A,R]=g.useState(!1),[y,x]=g.useState(!1),[_,E]=g.useState(!1),S=Ke("tooltip"),C=X(),$=c.Children.only(r),{"aria-labelledby":F,"aria-describedby":B}=$?.props??{},k=!!o,P={onFocus:()=>!y&&v(!0),onBlur:()=>{v(!1),x(!1)},onClick:()=>u&&v(!1),onMouseEnter:V,onMouseLeave:W,onMouseDown:O,onMouseMove:M,onTouchStart:L,"aria-labelledby":F??(k?S:void 0),"aria-describedby":B??(k?void 0:S)};function z(I){const ae=Object.keys(P).filter(te=>te.startsWith("on")),ye={};return ae.forEach(te=>{ye[te]=ne=>{P[te](ne),I?.[te]&&I?.[te](ne)}}),ye}const N=g.useCallback(I=>{w&&we(I,tn)&&(I.stopPropagation(),v(!1)),w&&u&&(we(I,Ar)||we(I,Sr))&&v(!1)},[u,w,v]);xn(()=>{if(!w)return;function I(ae){we(ae,tn)&&N(ae)}return document.addEventListener("keydown",I),()=>{document.removeEventListener("keydown",I)}},[w,N]);function V(){b?.onMouseEnter||(E(!0),v(!0,s))}function O(){x(!0),L()}function W(){E(!1),!A&&v(!1,l)}function M(I){I.buttons===1?R(!0):R(!1)}function L(){R(!0)}const U=g.useCallback(()=>{R(!1),_||v(!1,l)},[_,l,v]);return g.useEffect(()=>(A&&gn.forEach(I=>{document.addEventListener(I,U)}),()=>{gn.forEach(I=>{document.removeEventListener(I,U)})}),[A,U]),c.createElement(Dn,Z({as:e,ref:d},b,{align:t,className:q(`${C}--tooltip`,n),dropShadow:p,highContrast:h,onKeyDown:N,onMouseLeave:W,open:w}),c.createElement("div",{className:`${C}--tooltip-trigger__wrapper`},typeof $<"u"?c.cloneElement($,{...P,...z($.props)}):null),c.createElement(Pe,{"aria-hidden":w?"false":"true",className:`${C}--tooltip-content`,id:S,onMouseEnter:V,role:"tooltip"},o||i))});Hn.propTypes={align:a.oneOf(["top","top-left","top-right","bottom","bottom-left","bottom-right","left","left-bottom","left-top","right","right-bottom","right-top","top-start","top-end","bottom-start","bottom-end","left-end","left-start","right-end","right-start"]),children:a.node,className:a.string,closeOnActivation:a.bool,defaultOpen:a.bool,description:a.node,dropShadow:a.bool,enterDelayMs:a.number,highContrast:a.bool,label:a.node,leaveDelayMs:a.number};const $n=c.forwardRef(function({as:t,children:n,className:r,dangerDescription:o="danger",disabled:i=!1,hasIconOnly:s=!1,href:l,iconDescription:f,isExpressive:u=!1,isSelected:p,kind:h="primary",onBlur:b,onClick:d,onFocus:w,onMouseEnter:v,onMouseLeave:A,renderIcon:R,size:y,tabIndex:x,type:_="button",...E},S){const C=X(),$=q(r,{[`${C}--btn`]:!0,[`${C}--btn--xs`]:y==="xs"&&!u,[`${C}--btn--sm`]:y==="sm"&&!u,[`${C}--btn--md`]:y==="md"&&!u,[`${C}--btn--lg`]:y==="lg"&&!u,[`${C}--btn--xl`]:y==="xl",[`${C}--btn--2xl`]:y==="2xl",[`${C}--layout--size-${y}`]:y,[`${C}--btn--${h}`]:h,[`${C}--btn--disabled`]:i,[`${C}--btn--expressive`]:u,[`${C}--btn--icon-only`]:s,[`${C}--btn--selected`]:s&&p&&h==="ghost"}),F={tabIndex:x,className:$,ref:S},B=R?c.createElement(R,{"aria-label":f,className:`${C}--btn__icon`,"aria-hidden":"true"}):null,k=["danger","danger--tertiary","danger--ghost"];let H="button";const D=Ke("danger-description"),{"aria-pressed":P,"aria-describedby":z}=E;let N={disabled:i,type:_,"aria-describedby":k.includes(h)?D:z||void 0,"aria-pressed":P??(s&&h==="ghost"?p:void 0)};const V={href:l};let O=null;return k.includes(h)&&(O=c.createElement("span",{id:D,className:`${C}--visually-hidden`},o)),t?(H=t,N={...N,...V}):l&&!i&&(H="a",N=V),c.createElement(H,{onMouseEnter:v,onMouseLeave:A,onFocus:w,onBlur:b,onClick:d,...E,...F,...N},O,n,B)}),Fn=c.forwardRef(function({className:t,count:n,...r},o){const i=X(),s=q(`${i}--badge-indicator`,t,{[`${i}--badge-indicator--count`]:n}),l=n&&n>999?"999+":n;return c.createElement("div",Z({className:s,ref:o},r),l)});Fn.propTypes={className:a.string,count:a.number,id:a.string};const kn=["primary","secondary","ghost","tertiary"],Wn=c.forwardRef(({align:e,autoAlign:t=!1,badgeCount:n,children:r,className:o,closeOnActivation:i=!0,defaultOpen:s=!1,disabled:l,dropShadow:f=!1,enterDelayMs:u=100,highContrast:p=!0,kind:h,label:b,leaveDelayMs:d=100,wrapperClasses:w,size:v,isSelected:A,...R},y)=>{const x=X(),_=q(w,`${x}--icon-tooltip`,{[`${x}--icon-tooltip--disabled`]:l});n&&(h!=="ghost"||v!=="lg")&&console.warn("The prop BadgeCount must be used with hasIconOnly=true, kind='ghost' and size='lg'");const E=Ke("badge-indicator");return c.createElement(Hn,{align:e,autoAlign:t,closeOnActivation:i,className:_,defaultOpen:s,dropShadow:f,enterDelayMs:u,highContrast:p,label:b,leaveDelayMs:d},c.createElement($n,Z({},R,{disabled:l,kind:h,ref:y,size:v,isSelected:A,hasIconOnly:!0,className:o,"aria-describedby":R["aria-describedby"]||n&&E}),r,!l&&n!==void 0&&c.createElement(Fn,{id:E,count:n>0?n:void 0})))});Wn.propTypes={align:Rn(a.oneOf(["top","top-left","top-right","bottom","bottom-left","bottom-right","left","left-bottom","left-top","right","right-bottom","right-top","top-start","top-end","bottom-start","bottom-end","left-end","left-start","right-end","right-start"]),["top","top-start","top-end","bottom","bottom-start","bottom-end","left","left-start","left-end","right","right-start","right-end"],et),autoAlign:a.bool,badgeCount:a.number,href:a.string,children:a.node,className:a.string,closeOnActivation:a.bool,defaultOpen:a.bool,dropShadow:a.bool,disabled:a.bool,enterDelayMs:a.number,isSelected:a.bool,highContrast:a.bool,kind:a.oneOf(kn),label:a.node.isRequired,leaveDelayMs:a.number,rel:a.string,size:a.oneOf(["sm","md","lg"]),target:a.string,wrapperClasses:a.string};const fi=["primary","secondary","danger","ghost","danger--primary","danger--ghost","danger--tertiary","tertiary"];function ui(e,t){return e===!0}const st=c.forwardRef((e,t)=>{const{as:n,autoAlign:r=!1,children:o,hasIconOnly:i=!1,tooltipHighContrast:s=!0,tooltipDropShadow:l=!1,iconDescription:f,kind:u="primary",onBlur:p,onClick:h,onFocus:b,onMouseEnter:d,onMouseLeave:w,renderIcon:v,size:A,tooltipAlignment:R="center",tooltipPosition:y="top",...x}=e;v&&!o&&!f&&console.error("Button: renderIcon property specified without also providing an iconDescription property. This may impact accessibility for screen reader users.");const _=v?c.createElement(v,null):null;if(ui(i)){let E;return(y==="top"||y==="bottom")&&(R==="center"&&(E=y),R==="end"&&(E=`${y}-end`),R==="start"&&(E=`${y}-start`)),(y==="right"||y==="left")&&(E=y),c.createElement(Wn,Z({},x,{ref:t,as:n,align:E,label:f,kind:u,size:A,highContrast:s,dropShadow:l,onMouseEnter:d,onMouseLeave:w,onFocus:b,onBlur:p,autoAlign:r,onClick:h,renderIcon:_?null:v}),_??o)}else{const{tooltipAlignment:E,...S}=e;return c.createElement($n,Z({ref:t},S))}});st.displayName="Button";st.propTypes={as:a.oneOfType([a.func,a.string,a.elementType]),autoAlign:a.bool,children:a.node,className:a.string,dangerDescription:a.string,disabled:a.bool,hasIconOnly:a.bool,href:a.string,iconDescription:e=>e.renderIcon&&!e.children&&!e.iconDescription?new Error("renderIcon property specified without also providing an iconDescription property."):null,isExpressive:a.bool,isSelected:a.bool,kind:(e,t,n)=>{const{hasIconOnly:r}=e,o=r?kn:fi;return e[t]===void 0||o.includes(e[t])?null:new Error(`Invalid prop \`${t}\` supplied to \`${n}\`. Expected one of ${o.join(", ")}.`)},onBlur:a.func,onClick:a.func,onFocus:a.func,onMouseEnter:a.func,onMouseLeave:a.func,rel:a.string,renderIcon:a.oneOfType([a.func,a.object]),role:a.string,size:a.oneOf(["xs","sm","md","lg","xl","2xl"]),tabIndex:a.number,target:a.string,tooltipAlignment:a.oneOf(["start","center","end"]),tooltipDropShadow:a.bool,tooltipHighContrast:a.bool,tooltipPosition:a.oneOf(["top","right","bottom","left"]),type:a.oneOf(["button","reset","submit"])};const di=({name:e,className:t,type:n})=>{function r({className:o,...i}){const s=X(),l=q(typeof t=="function"?t(s):t,o);return c.createElement(n,{...i,className:l||void 0})}return r.displayName=e,r.propTypes={className:a.string},r},pi=({className:e,children:t,...n})=>{const r=X(),o=q(`${r}--header`,e);return c.createElement("header",Z({},n,{className:o}),t)};pi.propTypes={"aria-label":a.string,"aria-labelledby":a.string,className:a.string};const mi=e=>{const t=Object.keys(e),n=r=>((o,i,s,...l)=>r(o,i,s,...l));return t.reduce((r,o)=>({...r,[o]:n(e[o])}),{})},jn=mi({"aria-label":a.string,"aria-labelledby":a.string}),Un=c.forwardRef(({"aria-label":e,"aria-labelledby":t,children:n,className:r,onClick:o,tooltipHighContrast:i=!0,tooltipDropShadow:s,isActive:l,tooltipAlignment:f,...u},p)=>{const h=X(),b=q({[r]:!!r,[`${h}--header__action`]:!0,[`${h}--header__action--active`]:l}),d={"aria-label":e,"aria-labelledby":t};return c.createElement(st,Z({},u,d,{className:b,onClick:o,type:"button",hasIconOnly:!0,size:"lg",kind:"ghost",iconDescription:e,tooltipPosition:"bottom",tooltipAlignment:f,tooltipDropShadow:s,tooltipHighContrast:i,ref:p}),n)});Un.propTypes={...jn,children:a.node.isRequired,className:a.string,isActive:a.bool,onClick:a.func,tooltipAlignment:a.oneOf(["start","center","end"]),tooltipDropShadow:a.bool,tooltipHighContrast:a.bool};Un.displayName="HeaderGlobalAction";const Pi=di({name:"HeaderGlobalBar",className:e=>`${e}--header__global`,type:"div"}),hi=({element:e,as:t,isSideNavExpanded:n,...r},o)=>{const i=t??e??"a";return c.createElement(i,Z({ref:o},r))},Me=c.forwardRef(hi),at={as:a.elementType,element:Qe(a.elementType),isSideNavExpanded:a.bool};Me.displayName="Link";Me.propTypes=at;const zn=g.forwardRef(function({className:t,isActive:n,isCurrentPage:r,"aria-current":o,children:i,role:s,tabIndex:l,...f},u){const p=X(),h=l??0;r&&(n=r);const b=n&&o!=="page",d=q({[`${p}--header__menu-item`]:!0,[`${p}--header__menu-item--current`]:b});return c.createElement("li",{className:t,role:s},c.createElement(Me,Z({},f,{"aria-current":b?!0:o,className:d,ref:u,tabIndex:h}),c.createElement("span",{className:`${p}--text-truncate--end`},i)))});zn.displayName="HeaderMenuItem";zn.propTypes={...at,children:a.node.isRequired,className:a.string,isActive:a.bool,isCurrentPage:Qe(a.bool),role:a.string,tabIndex:a.number};function gi({children:e,className:t,prefix:n="IBM",...r}){const o=X(),i=q(`${o}--header__name`,t);return c.createElement(Me,Z({},r,{className:i}),n&&c.createElement(c.Fragment,null,c.createElement("span",{className:`${o}--header__name--prefix`},n)," "),e)}gi.propTypes={...at,children:a.node.isRequired,className:a.string,href:a.string,prefix:a.string};function bi({"aria-label":e,"aria-labelledby":t,children:n,className:r,...o}){const i=X(),s=q(`${i}--header__nav`,r);return c.createElement("nav",Z({},o,{"aria-label":e,"aria-labelledby":t,className:s}),c.createElement("ul",{className:`${i}--header__menu-bar`},n))}bi.propTypes={...jn,children:a.node,className:a.string};export{vi as A,st as B,Ri as C,_i as D,pi as H,Ai as L,Oi as M,Ti as P,Li as R,Ni as S,gi as a,bi as b,zn as c,Pi as d,Un as e,Si as f,xi as g,Ei as h,Ci as i,wi as j,g as r};
`,enabled:m.enableEnhancedFileUploader},{name:"enable-presence",description:`Enable components to remain unmounted in closed state and mount in open state.
`,enabled:m.enablePresence}];function ut(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Kn(e){if(Array.isArray(e))return e}function Qn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function er(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ar(r.key),r)}}function tr(e,t,n){return t&&er(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function nr(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=yn(e))||t){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(f){throw f},f:o}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i,s=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var f=n.next();return s=f.done,f},e:function(f){l=!0,i=f},f:function(){try{s||n.return==null||n.return()}finally{if(l)throw i}}}}function rr(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,i,s,l=[],f=!0,u=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(f=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);f=!0);}catch(p){u=!0,o=p}finally{try{if(!f&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(u)throw o}}return l}}function or(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ir(e,t){return Kn(e)||rr(e,t)||yn(e,t)||or()}function sr(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function ar(e){var t=sr(e,"string");return typeof t=="symbol"?t:t+""}function yn(e,t){if(e){if(typeof e=="string")return ut(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ut(e,t):void 0}}var lr=(function(){function e(t){var n=this;Qn(this,e),this.flags=new Map,t&&Object.keys(t).forEach(function(r){n.flags.set(r,t[r])})}return tr(e,[{key:"checkForFlag",value:function(n){if(!this.flags.has(n))throw new Error("Unable to find a feature flag with the name: `".concat(n,"`"))}},{key:"add",value:function(n,r){if(this.flags.has(n))throw new Error("The feature flag: ".concat(n," already exists"));this.flags.set(n,r)}},{key:"enable",value:function(n){this.checkForFlag(n),this.flags.set(n,!0)}},{key:"disable",value:function(n){this.checkForFlag(n),this.flags.set(n,!1)}},{key:"merge",value:function(n){var r=this;Object.keys(n).forEach(function(o){r.flags.set(o,n[o])})}},{key:"mergeWithScope",value:function(n){var r=nr(n.flags),o;try{for(r.s();!(o=r.n()).done;){var i=ir(o.value,2),s=i[0],l=i[1];this.flags.has(s)||this.flags.set(s,l)}}catch(f){r.e(f)}finally{r.f()}}},{key:"enabled",value:function(n){return this.checkForFlag(n),this.flags.get(n)}}])})(),Re=cr();for(var Ve=0;Ve<ft.length;Ve++){var dt=ft[Ve];Re.add(dt.name,dt.enabled)}function cr(e){return new lr(e)}function fr(){return Re.merge.apply(Re,arguments)}fr({"enable-css-custom-properties":!0,"enable-css-grid":!0,"enable-v11-release":!0,"enable-experimental-tile-contrast":!1,"enable-tile-contrast":!1,"enable-v12-tile-radio-icons":!1,"enable-v12-structured-list-visible-icons":!1,"enable-v12-dynamic-floating-styles":!1});function Z(){return Z=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Z.apply(null,arguments)}var De={exports:{}};var pt;function ur(){return pt||(pt=1,(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var i="",s=0;s<arguments.length;s++){var l=arguments[s];l&&(i=o(i,r(l)))}return i}function r(i){if(typeof i=="string"||typeof i=="number")return i;if(typeof i!="object")return"";if(Array.isArray(i))return n.apply(null,i);if(i.toString!==Object.prototype.toString&&!i.toString.toString().includes("[native code]"))return i.toString();var s="";for(var l in i)t.call(i,l)&&i[l]&&(s=o(s,l));return s}function o(i,s){return s?i?i+" "+s:i+s:i}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(De)),De.exports}var dr=ur();const q=Je(dr),pr=c.createContext("cds");function X(){return c.useContext(pr)}var He={exports:{}},$e,mt;function mr(){if(mt)return $e;mt=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return $e=e,$e}var Fe,ht;function hr(){if(ht)return Fe;ht=1;var e=mr();function t(){}function n(){}return n.resetWarningCache=t,Fe=function(){function r(s,l,f,u,p,h){if(h!==e){var b=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw b.name="Invariant Violation",b}}r.isRequired=r;function o(){return r}var i={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:t};return i.PropTypes=i,i},Fe}var gt;function gr(){return gt||(gt=1,He.exports=hr()()),He.exports}var br=gr();const a=Je(br);function yr(e,t,n){return(t=Er(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function ke(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?bt(Object(n),!0).forEach(function(r){yr(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bt(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function yt(e,t){if(e==null)return{};var n,r,o=wr(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function wr(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function vr(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Er(e){var t=vr(e,"string");return typeof t=="symbol"?t:t+""}var xr=["width","height","viewBox"],Rr=["tabindex"],_r={focusable:"false",preserveAspectRatio:"xMidYMid meet"};function Cr(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.width,n=e.height,r=e.viewBox,o=r===void 0?"0 0 ".concat(t," ").concat(n):r,i=yt(e,xr),s=i.tabindex,l=yt(i,Rr),f=ke(ke(ke({},_r),l),{},{width:t,height:n,viewBox:o});return f["aria-label"]||f["aria-labelledby"]||f.title?(f.role="img",s!=null&&(f.focusable="true",f.tabindex=s)):f["aria-hidden"]=!0,f}const j=c.forwardRef(function({className:t,children:n,tabIndex:r,xmlns:o="http://www.w3.org/2000/svg",preserveAspectRatio:i="xMidYMid meet",...s},l){const{tabindex:f,...u}=Cr({...s,tabindex:r}),p=u;return t&&(p.className=t),f!=null&&(typeof f=="number"?p.tabIndex=f:p.tabIndex=Number(r)),l&&(p.ref=l),o&&(p.xmlns=o),i&&(p.preserveAspectRatio=i),c.createElement("svg",p,n)});j.displayName="Icon";j.propTypes={"aria-hidden":a.oneOfType([a.bool,a.oneOf(["true","false"])]),"aria-label":a.string,"aria-labelledby":a.string,children:a.node,className:a.string,height:a.oneOfType([a.number,a.string]),preserveAspectRatio:a.string,tabIndex:a.oneOfType([a.number,a.string]),viewBox:a.string,width:a.oneOfType([a.number,a.string]),xmlns:a.string};var wt,vt;const vi=c.forwardRef(function({children:t,size:n=16,...r},o){return n===16||n==="16"||n==="16px"?c.createElement(j,{width:n,height:n,ref:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",...r},wt||(wt=c.createElement("path",{d:"M7.2,2.3c-1,4.4,1.7,8.7,6.1,9.8c0.1,0,0.1,0,0.2,0c-1.1,1.2-2.7,1.8-4.3,1.8c-0.1,0-0.2,0-0.2,0C5.6,13.8,3,11,3.2,7.7 C3.2,5.3,4.8,3.1,7.2,2.3 M8,1L8,1C4.1,1.6,1.5,5.3,2.1,9.1c0.6,3.3,3.4,5.8,6.8,5.9c0.1,0,0.2,0,0.3,0c2.3,0,4.4-1.1,5.8-3 c0.2-0.2,0.1-0.6-0.1-0.7c-0.1-0.1-0.2-0.1-0.3-0.1c-3.9-0.3-6.7-3.8-6.4-7.6C8.3,3,8.4,2.4,8.6,1.8c0.1-0.3,0-0.6-0.3-0.7 C8.1,1,8.1,1,8,1z"})),t):c.createElement(j,{width:n,height:n,ref:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...r},vt||(vt=c.createElement("path",{d:"M13.5025,5.4136A15.0755,15.0755,0,0,0,25.096,23.6082a11.1134,11.1134,0,0,1-7.9749,3.3893c-.1385,0-.2782.0051-.4178,0A11.0944,11.0944,0,0,1,13.5025,5.4136M14.98,3a1.0024,1.0024,0,0,0-.1746.0156A13.0959,13.0959,0,0,0,16.63,28.9973c.1641.006.3282,0,.4909,0a13.0724,13.0724,0,0,0,10.702-5.5556,1.0094,1.0094,0,0,0-.7833-1.5644A13.08,13.08,0,0,1,15.8892,4.38,1.0149,1.0149,0,0,0,14.98,3Z"})),t)});var Et,xt,Rt,_t,Ct,At,St;const Ei=c.forwardRef(function({children:t,size:n=16,...r},o){return n===20||n==="20"||n==="20px"?c.createElement(j,{width:n,height:n,ref:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",...r},Et||(Et=c.createElement("path",{d:"M8 13.2L3.6 8.8 2.7 9.7 7.1 14.1 8 15 16.5 6.5 15.6 5.6z"})),xt||(xt=c.createElement("path",{d:"M15.6 5.6L8 13.2 3.6 8.8 2.7 9.7 7.1 14.1 8 15 16.5 6.5 15.6 5.6z"})),t):n===24||n==="24"||n==="24px"?c.createElement(j,{width:n,height:n,ref:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",...r},Rt||(Rt=c.createElement("path",{d:"M10 15.9L4.7 10.6 3.6 11.6 8.9 16.9 10 18 20.6 7.4 19.5 6.3z"})),t):c.createElement(j,{width:n,height:n,ref:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...r},_t||(_t=c.createElement("path",{d:"M13 24L4 15 5.414 13.586 13 21.171 26.586 7.586 28 9 13 24z"})),t)}),xi=c.forwardRef(function({children:t,size:n=16,...r},o){return c.createElement(j,{width:n,height:n,ref:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...r},Ct||(Ct=c.createElement("path",{d:"M25.8289 13.1155A10.02 10.02 0 0016 5.0005V7a8.0233 8.0233 0 017.8649 6.4934l.2591 1.346 1.3488.2441A5.5019 5.5019 0 0124.5076 26H16v2h8.5076a7.5019 7.5019 0 001.3213-14.8845zM8 24H14V26H8zM4 24H6V26H4zM6 20H14V22H6zM2 20H4V22H2zM8 16H14V18H8zM4 16H6V18H4zM10 12H14V14H10zM6 12H8V14H6zM12 8H14V10H12z"})),t)}),Ri=c.forwardRef(function({children:t,size:n=16,...r},o){return c.createElement(j,{width:n,height:n,ref:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...r},At||(At=c.createElement("path",{d:"M31 16L24 23 22.59 21.59 28.17 16 22.59 10.41 24 9 31 16zM1 16L8 9 9.41 10.41 3.83 16 9.41 21.59 8 23 1 16z"})),St||(St=c.createElement("path",{d:"M5.91 15H26.080000000000002V17H5.91z",transform:"rotate(-75 15.996 16)"})),t)});var Ot,Tt;const _i=c.forwardRef(function({children:t,size:n=16,...r},o){return c.createElement(j,{width:n,height:n,ref:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...r},Ot||(Ot=c.createElement("path",{d:"M26 2H30V6H26zM26 8H30V12H26zM20 2H24V6H20zM20 8H24V12H20zM28 20h-14v2h2v4h-2v2h9v-2h-5v-4h10c.5304 0 1.0392-.2108 1.4142-.5858s.5858-.8838.5858-1.4142v-6h-2v6zM6 6h12v-2H6c-.5304 0-1.0392.2107-1.4142.5858-.3751.375-.5858.8838-.5858 1.4142v6h2v-6zM10 14H4c-.5304 0-1.0392.2107-1.4142.5858-.3751.375-.5858.8838-.5858 1.4142v12c0 .5304.2107 1.0392.5858 1.4142.375.375.8838.5858 1.4142.5858h6c.5304 0 1.0392-.2108 1.4142-.5858.3751-.375.5858-.8838.5858-1.4142v-12c0-.5304-.2107-1.0392-.5858-1.4142-.375-.3751-.8838-.5858-1.4142-.5858zm0 14H4v-12h6v12z"})),t)}),Ci=c.forwardRef(function({children:t,size:n=16,...r},o){return c.createElement(j,{width:n,height:n,ref:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...r},Tt||(Tt=c.createElement("path",{d:"M25.7,9.3l-7-7A.9078.9078,0,0,0,18,2H8A2.0059,2.0059,0,0,0,6,4V28a2.0059,2.0059,0,0,0,2,2H24a2.0059,2.0059,0,0,0,2-2V10A.9078.9078,0,0,0,25.7,9.3ZM18,4.4,23.6,10H18ZM24,28H8V4h8v6a2.0059,2.0059,0,0,0,2,2h6Z"})),t)});var Lt,Nt,Pt,Mt,Bt,It,Vt,Dt,Ht,$t,Ft,kt,Wt,jt,Ut,zt,Gt,qt;const Ai=c.forwardRef(function({children:t,size:n=16,...r},o){return n===16||n==="16"||n==="16px"?c.createElement(j,{width:n,height:n,ref:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",...r},Lt||(Lt=c.createElement("path",{d:"M7.5 1H8.5V3.5H7.5z"})),Nt||(Nt=c.createElement("path",{d:"M10.8 3.4H13.3V4.4H10.8z",transform:"rotate(-45.001 12.041 3.923)"})),Pt||(Pt=c.createElement("path",{d:"M12.5 7.5H15V8.5H12.5z"})),Mt||(Mt=c.createElement("path",{d:"M11.6 10.8H12.6V13.3H11.6z",transform:"rotate(-45.001 12.075 12.041)"})),Bt||(Bt=c.createElement("path",{d:"M7.5 12.5H8.5V15H7.5z"})),It||(It=c.createElement("path",{d:"M2.7 11.6H5.2V12.6H2.7z",transform:"rotate(-45.001 3.96 12.079)"})),Vt||(Vt=c.createElement("path",{d:"M1 7.5H3.5V8.5H1z"})),Dt||(Dt=c.createElement("path",{d:"M3.4 2.7H4.4V5.2H3.4z",transform:"rotate(-45.001 3.925 3.961)"})),Ht||(Ht=c.createElement("path",{d:"M8,6c1.1,0,2,0.9,2,2s-0.9,2-2,2S6,9.1,6,8S6.9,6,8,6 M8,5C6.3,5,5,6.3,5,8s1.3,3,3,3s3-1.3,3-3S9.7,5,8,5z"})),t):c.createElement(j,{width:n,height:n,ref:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...r},$t||($t=c.createElement("path",{d:"M15 2H17V7H15z"})),Ft||(Ft=c.createElement("path",{d:"M21.668 6.854H26.625999999999998V8.854H21.668z",transform:"rotate(-45 24.147 7.853)"})),kt||(kt=c.createElement("path",{d:"M25 15H30V17H25z"})),Wt||(Wt=c.createElement("path",{d:"M23.147 21.668H25.147V26.625999999999998H23.147z",transform:"rotate(-45 24.147 24.146)"})),jt||(jt=c.createElement("path",{d:"M15 25H17V30H15z"})),Ut||(Ut=c.createElement("path",{d:"M5.375 23.147H10.333V25.147H5.375z",transform:"rotate(-45 7.853 24.146)"})),zt||(zt=c.createElement("path",{d:"M2 15H7V17H2z"})),Gt||(Gt=c.createElement("path",{d:"M6.854 5.375H8.854V10.333H6.854z",transform:"rotate(-45 7.854 7.853)"})),qt||(qt=c.createElement("path",{d:"M16,12a4,4,0,1,1-4,4,4.0045,4.0045,0,0,1,4-4m0-2a6,6,0,1,0,6,6,6,6,0,0,0-6-6Z"})),t)});var Zt,Yt;const Si=c.forwardRef(function({children:t,size:n=16,...r},o){return c.createElement(j,{width:n,height:n,ref:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...r},Zt||(Zt=c.createElement("path",{fillRule:"evenodd",d:"M16,2a14,14,0,0,0-4.43,27.28c.7.13,1-.3,1-.67s0-1.21,0-2.38c-3.89.84-4.71-1.88-4.71-1.88A3.71,3.71,0,0,0,6.24,22.3c-1.27-.86.1-.85.1-.85A2.94,2.94,0,0,1,8.48,22.9a3,3,0,0,0,4.08,1.16,2.93,2.93,0,0,1,.88-1.87c-3.1-.36-6.37-1.56-6.37-6.92a5.4,5.4,0,0,1,1.44-3.76,5,5,0,0,1,.14-3.7s1.17-.38,3.85,1.43a13.3,13.3,0,0,1,7,0c2.67-1.81,3.84-1.43,3.84-1.43a5,5,0,0,1,.14,3.7,5.4,5.4,0,0,1,1.44,3.76c0,5.38-3.27,6.56-6.39,6.91a3.33,3.33,0,0,1,.95,2.59c0,1.87,0,3.38,0,3.84s.25.81,1,.67A14,14,0,0,0,16,2Z"})),t)}),Oi=c.forwardRef(function({children:t,size:n=16,...r},o){return c.createElement(j,{width:n,height:n,ref:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...r},Yt||(Yt=c.createElement("path",{d:"M25.3943,24a7.8772,7.8772,0,0,0-1.6707-8.5684,3.918,3.918,0,0,0-1.0844-4.414l2.7759-2.7759a2.0025,2.0025,0,0,0,0-2.8286L22.5869,2.5849a2.0021,2.0021,0,0,0-2.8286,0L6.5859,15.7573a2.0027,2.0027,0,0,0,0,2.8286l2.8282,2.8282a2.0024,2.0024,0,0,0,2.8286,0l4.7749-4.7754a3.9329,3.9329,0,0,0,5.5139.4326A5.9442,5.9442,0,0,1,23.1775,24H16v4H4v2H28V24ZM10.8281,20,8,17.1714,9.8787,15.293l2.8283,2.8281ZM16,14a3.9811,3.9811,0,0,0,.0762.7524L14.1211,16.707l-2.8284-2.8281,9.88-9.88L24.001,6.8271l-3.2488,3.2491A3.9771,3.9771,0,0,0,16,14Zm4,2a2,2,0,1,1,2-2A2.0023,2.0023,0,0,1,20,16Zm6,12H18V26h8Z"})),t)});var Xt;const Ti=c.forwardRef(function({children:t,size:n=16,...r},o){return c.createElement(j,{width:n,height:n,ref:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...r},Xt||(Xt=c.createElement("path",{d:"M22,12h6c1.1028,0,2-.8975,2-2V4c0-1.1025-.8972-2-2-2h-6c-1.1028,0-2,.8975-2,2v2h-9c-2.7571,0-5,2.2432-5,5h-2c-1.1028,0-2,.8975-2,2v6c0,1.1025.8972,2,2,2h2c0,2.7568,2.2429,5,5,5h9v2c0,1.1025.8972,2,2,2h6c1.1028,0,2-.8975,2-2v-6c0-1.1025-.8972-2-2-2h-6c-1.1028,0-2,.8975-2,2v2h-9c-1.6543,0-3-1.3457-3-3h2c1.1028,0,2-.8975,2-2v-6c0-1.1025-.8972-2-2-2h-2c0-1.6543,1.3457-3,3-3h9v2c0,1.1025.8972,2,2,2ZM22,22h6v6h-6l-.0012-6h.0012ZM10,13v6h-6l-.0012-6h6.0012ZM22,4h6v6h-6l-.0012-6h.0012Z"})),t)});var Jt,Kt;const Li=c.forwardRef(function({children:t,size:n=16,...r},o){return c.createElement(j,{width:n,height:n,ref:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...r},Jt||(Jt=c.createElement("path",{strokeWidth:"0",d:"M12 28h-2c-3.8599 0-7-3.1401-7-7v-2h2v2c0 2.7568 2.2432 5 5 5h2v2zM28 19h-9c-1.104.0014-1.9986.896-2 2v5c0 1.1046.8954 2 2 2h3v-2h-3v-5h9v5h-2.5352l-2.5937 3.8906 1.6641 1.1094 2-3h1.4648c1.1046 0 2-.8954 2-2v-5c-.0014-1.104-.896-1.9986-2-2zM29 15v-4c0-3.8599-3.1401-7-7-7h-3v2h3c2.7568 0 5 2.2432 5 5v4h2zM6 10H9V12H6z"})),Kt||(Kt=c.createElement("path",{strokeWidth:"0",d:"m12.606,6.4355l-2.5251-3.6855c-.3821-.4766-.9512-.75-1.5615-.75h-4.5193c-1.1028,0-2,.8975-2,2v10c0,1.1025.8972,2,2,2h7c1.1028,0,2-.8975,2-2v-6.375c0-.4526-.1558-.8965-.394-1.1895Zm-8.606,7.5645V4h4v3c0,.5522.4478,1,1,1h2v6h-7Z"})),t)});var Qt,en;const Ni=c.forwardRef(function({children:t,size:n=16,...r},o){return c.createElement(j,{width:n,height:n,ref:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...r},Qt||(Qt=c.createElement("path",{d:"M14 16.59L11.41 14 10 15.41 14 19.41 22 11.41 20.59 10 14 16.59z"})),en||(en=c.createElement("path",{d:"M16,30,9.8242,26.7071A10.9818,10.9818,0,0,1,4,17V4A2.0021,2.0021,0,0,1,6,2H26a2.0021,2.0021,0,0,1,2,2V17a10.9818,10.9818,0,0,1-5.8242,9.7071ZM6,4V17a8.9852,8.9852,0,0,0,4.7656,7.9423L16,27.7333l5.2344-2.791A8.9852,8.9852,0,0,0,26,17V4Z"})),t)}),Ar={key:"Enter",which:13,keyCode:13,code:"Enter"},tn={key:["Escape","Esc"],which:27,keyCode:27,code:"Esc"},Sr={key:" ",which:32,keyCode:32,code:"Space"},we=(e,{key:t,which:n,keyCode:r,code:o})=>typeof e=="string"?e===t:typeof e=="number"?e===n||e===r:e.key&&Array.isArray(t)?t.includes(e.key):e.key===t||e.which===n||e.keyCode===r||e.code===o,Or=()=>{let e=0;return()=>++e},Tr=!!(typeof window<"u"&&window.document&&window.document.createElement),Lr=c.createContext(null);function wn(){return c.useContext(Lr)}const vn={...c},We=Or(),Nr=Tr?g.useLayoutEffect:g.useEffect;let je=!1;const En="id";function Pr(e=En){const t=wn(),[n,r]=g.useState(()=>je?`${t?`${t}-`:""}${e}-${We()}`:null);return Nr(()=>{n===null&&r(`${t?`${t}-`:""}${e}-${We()}`)},[We]),g.useEffect(()=>{je===!1&&(je=!0)},[]),n}function Mr(e=En){const t=wn();return`${t?`${t}-`:""}${e}-${vn.useId()}`}const Ke=vn.useId?Mr:Pr,Ue=new Map,Qe=(e,t)=>(r,o,i,...s)=>{if(typeof r[o]>"u")return;Ue.has(i)||Ue.set(i,new Set);const l=Ue.get(i);return l&&!l.has(o)&&l.add(o),e(r,o,i,...s)},xn=typeof window<"u"?g.useLayoutEffect:g.useEffect,ve={},Rn=(e,t,n)=>(r,o,i,...s)=>{if(typeof r[o]>"u")return null;if(!ve[i]||!ve[i][o]){ve[i]={...ve[i],[o]:!0};const l=r[o],f=n?n(l):null;t&&!t.includes(l)&&(n?`${l}${o}${i}${f}${l}`:`${l}${o}${i}${t.join(", ")}${l}`)}return e(r,o,i,...s)},_n=e=>{const t=g.useMemo(()=>e,e);return g.useCallback(n=>{t.forEach(r=>{typeof r=="function"?r(n):r&&(r.current=n)})},[t])},Br=(e,t,n)=>{const r=g.useRef(null);g.useEffect(()=>{r.current=n},[n]),g.useEffect(()=>{const o="current"in e?e.current:e;if(!o)return;const i=s=>{r.current&&r.current(s)};return o.addEventListener(t,i),()=>{o.removeEventListener(t,i)}},[e,t])},Ir=(e,t)=>{const n=g.useRef(null);g.useEffect(()=>{n.current=t},[t]),g.useEffect(()=>{const r=o=>{n.current&&n.current(o)};return window.addEventListener(e,r),()=>{window.removeEventListener(e,r)}},[e])},Vr={"top-left":"top-start","top-right":"top-end","bottom-left":"bottom-start","bottom-right":"bottom-end","left-bottom":"left-end","left-top":"left-start","right-bottom":"right-end","right-top":"right-start"},et=e=>Vr[e]??e;function Oe(){return typeof window<"u"}function de(e){return Cn(e)?(e.nodeName||"").toLowerCase():"#document"}function Y(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ee(e){var t;return(t=(Cn(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Cn(e){return Oe()?e instanceof Node||e instanceof Y(e).Node:!1}function G(e){return Oe()?e instanceof Element||e instanceof Y(e).Element:!1}function Q(e){return Oe()?e instanceof HTMLElement||e instanceof Y(e).HTMLElement:!1}function nn(e){return!Oe()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Y(e).ShadowRoot}const Dr=new Set(["inline","contents"]);function he(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=J(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!Dr.has(o)}const Hr=new Set(["table","td","th"]);function $r(e){return Hr.has(de(e))}const Fr=[":popover-open",":modal"];function Te(e){return Fr.some(t=>{try{return e.matches(t)}catch{return!1}})}const kr=["transform","translate","scale","rotate","perspective"],Wr=["transform","translate","scale","rotate","perspective","filter"],jr=["paint","layout","strict","content"];function tt(e){const t=nt(),n=G(e)?J(e):e;return kr.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||Wr.some(r=>(n.willChange||"").includes(r))||jr.some(r=>(n.contain||"").includes(r))}function Ur(e){let t=re(e);for(;Q(t)&&!ce(t);){if(tt(t))return t;if(Te(t))return null;t=re(t)}return null}function nt(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const zr=new Set(["html","body","#document"]);function ce(e){return zr.has(de(e))}function J(e){return Y(e).getComputedStyle(e)}function Le(e){return G(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function re(e){if(de(e)==="html")return e;const t=e.assignedSlot||e.parentNode||nn(e)&&e.host||ee(e);return nn(t)?t.host:t}function An(e){const t=re(e);return ce(t)?e.ownerDocument?e.ownerDocument.body:e.body:Q(t)&&he(t)?t:An(t)}function me(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=An(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),s=Y(o);if(i){const l=qe(s);return t.concat(s,s.visualViewport||[],he(o)?o:[],l&&n?me(l):[])}return t.concat(o,me(o,[],n))}function qe(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}const Gr=["top","right","bottom","left"],fe=Math.min,ie=Math.max,_e=Math.round,Ee=Math.floor,K=e=>({x:e,y:e}),qr={left:"right",right:"left",bottom:"top",top:"bottom"},Zr={start:"end",end:"start"};function Yr(e,t,n){return ie(e,fe(t,n))}function ge(e,t){return typeof e=="function"?e(t):e}function ue(e){return e.split("-")[0]}function be(e){return e.split("-")[1]}function Xr(e){return e==="x"?"y":"x"}function rt(e){return e==="y"?"height":"width"}const Jr=new Set(["top","bottom"]);function oe(e){return Jr.has(ue(e))?"y":"x"}function ot(e){return Xr(oe(e))}function Kr(e,t,n){n===void 0&&(n=!1);const r=be(e),o=ot(e),i=rt(o);let s=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=Ce(s)),[s,Ce(s)]}function Qr(e){const t=Ce(e);return[Ze(e),t,Ze(t)]}function Ze(e){return e.replace(/start|end/g,t=>Zr[t])}const rn=["left","right"],on=["right","left"],eo=["top","bottom"],to=["bottom","top"];function no(e,t,n){switch(e){case"top":case"bottom":return n?t?on:rn:t?rn:on;case"left":case"right":return t?eo:to;default:return[]}}function ro(e,t,n,r){const o=be(e);let i=no(ue(e),n==="start",r);return o&&(i=i.map(s=>s+"-"+o),t&&(i=i.concat(i.map(Ze)))),i}function Ce(e){return e.replace(/left|right|bottom|top/g,t=>qr[t])}function oo(e){return{top:0,right:0,bottom:0,left:0,...e}}function Sn(e){return typeof e!="number"?oo(e):{top:e,right:e,bottom:e,left:e}}function Ae(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}var io=typeof document<"u",so=function(){},Ye=io?g.useLayoutEffect:so;const ao={...bn},lo=ao.useInsertionEffect,co=lo||(e=>e());function fo(e){const t=g.useRef(()=>{});return co(()=>{t.current=e}),g.useCallback(function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return t.current==null?void 0:t.current(...r)},[])}var uo=Zn();function sn(e,t,n){let{reference:r,floating:o}=e;const i=oe(t),s=ot(t),l=rt(s),f=ue(t),u=i==="y",p=r.x+r.width/2-o.width/2,h=r.y+r.height/2-o.height/2,b=r[l]/2-o[l]/2;let d;switch(f){case"top":d={x:p,y:r.y-o.height};break;case"bottom":d={x:p,y:r.y+r.height};break;case"right":d={x:r.x+r.width,y:h};break;case"left":d={x:r.x-o.width,y:h};break;default:d={x:r.x,y:r.y}}switch(be(t)){case"start":d[s]-=b*(n&&u?-1:1);break;case"end":d[s]+=b*(n&&u?-1:1);break}return d}const po=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:s}=n,l=i.filter(Boolean),f=await(s.isRTL==null?void 0:s.isRTL(t));let u=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:p,y:h}=sn(u,r,f),b=r,d={},w=0;for(let v=0;v<l.length;v++){const{name:A,fn:R}=l[v],{x:y,y:x,data:_,reset:E}=await R({x:p,y:h,initialPlacement:r,placement:b,strategy:o,middlewareData:d,rects:u,platform:s,elements:{reference:e,floating:t}});p=y??p,h=x??h,d={...d,[A]:{...d[A],..._}},E&&w<=50&&(w++,typeof E=="object"&&(E.placement&&(b=E.placement),E.rects&&(u=E.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:o}):E.rects),{x:p,y:h}=sn(u,b,f)),v=-1)}return{x:p,y:h,placement:b,strategy:o,middlewareData:d}};async function Xe(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:i,rects:s,elements:l,strategy:f}=e,{boundary:u="clippingAncestors",rootBoundary:p="viewport",elementContext:h="floating",altBoundary:b=!1,padding:d=0}=ge(t,e),w=Sn(d),A=l[b?h==="floating"?"reference":"floating":h],R=Ae(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(A)))==null||n?A:A.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(l.floating)),boundary:u,rootBoundary:p,strategy:f})),y=h==="floating"?{x:r,y:o,width:s.floating.width,height:s.floating.height}:s.reference,x=await(i.getOffsetParent==null?void 0:i.getOffsetParent(l.floating)),_=await(i.isElement==null?void 0:i.isElement(x))?await(i.getScale==null?void 0:i.getScale(x))||{x:1,y:1}:{x:1,y:1},E=Ae(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:y,offsetParent:x,strategy:f}):y);return{top:(R.top-E.top+w.top)/_.y,bottom:(E.bottom-R.bottom+w.bottom)/_.y,left:(R.left-E.left+w.left)/_.x,right:(E.right-R.right+w.right)/_.x}}const mo=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:s,elements:l,middlewareData:f}=t,{element:u,padding:p=0}=ge(e,t)||{};if(u==null)return{};const h=Sn(p),b={x:n,y:r},d=ot(o),w=rt(d),v=await s.getDimensions(u),A=d==="y",R=A?"top":"left",y=A?"bottom":"right",x=A?"clientHeight":"clientWidth",_=i.reference[w]+i.reference[d]-b[d]-i.floating[w],E=b[d]-i.reference[d],S=await(s.getOffsetParent==null?void 0:s.getOffsetParent(u));let C=S?S[x]:0;(!C||!await(s.isElement==null?void 0:s.isElement(S)))&&(C=l.floating[x]||i.floating[w]);const $=_/2-E/2,F=C/2-v[w]/2-1,B=fe(h[R],F),k=fe(h[y],F),H=B,D=C-v[w]-k,P=C/2-v[w]/2+$,z=Yr(H,P,D),N=!f.arrow&&be(o)!=null&&P!==z&&i.reference[w]/2-(P<H?B:k)-v[w]/2<0,V=N?P<H?P-H:P-D:0;return{[d]:b[d]+V,data:{[d]:z,centerOffset:P-z-V,...N&&{alignmentOffset:V}},reset:N}}}),ho=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:s,initialPlacement:l,platform:f,elements:u}=t,{mainAxis:p=!0,crossAxis:h=!0,fallbackPlacements:b,fallbackStrategy:d="bestFit",fallbackAxisSideDirection:w="none",flipAlignment:v=!0,...A}=ge(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const R=ue(o),y=oe(l),x=ue(l)===l,_=await(f.isRTL==null?void 0:f.isRTL(u.floating)),E=b||(x||!v?[Ce(l)]:Qr(l)),S=w!=="none";!b&&S&&E.push(...ro(l,v,w,_));const C=[l,...E],$=await Xe(t,A),F=[];let B=((r=i.flip)==null?void 0:r.overflows)||[];if(p&&F.push($[R]),h){const P=Kr(o,s,_);F.push($[P[0]],$[P[1]])}if(B=[...B,{placement:o,overflows:F}],!F.every(P=>P<=0)){var k,H;const P=(((k=i.flip)==null?void 0:k.index)||0)+1,z=C[P];if(z&&(!(h==="alignment"?y!==oe(z):!1)||B.every(O=>oe(O.placement)===y?O.overflows[0]>0:!0)))return{data:{index:P,overflows:B},reset:{placement:z}};let N=(H=B.filter(V=>V.overflows[0]<=0).sort((V,O)=>V.overflows[1]-O.overflows[1])[0])==null?void 0:H.placement;if(!N)switch(d){case"bestFit":{var D;const V=(D=B.filter(O=>{if(S){const W=oe(O.placement);return W===y||W==="y"}return!0}).map(O=>[O.placement,O.overflows.filter(W=>W>0).reduce((W,M)=>W+M,0)]).sort((O,W)=>O[1]-W[1])[0])==null?void 0:D[0];V&&(N=V);break}case"initialPlacement":N=l;break}if(o!==N)return{reset:{placement:N}}}return{}}}};function an(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function ln(e){return Gr.some(t=>e[t]>=0)}const go=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=ge(e,t);switch(r){case"referenceHidden":{const i=await Xe(t,{...o,elementContext:"reference"}),s=an(i,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:ln(s)}}}case"escaped":{const i=await Xe(t,{...o,altBoundary:!0}),s=an(i,n.floating);return{data:{escapedOffsets:s,escaped:ln(s)}}}default:return{}}}}},bo=new Set(["left","top"]);async function yo(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),s=ue(n),l=be(n),f=oe(n)==="y",u=bo.has(s)?-1:1,p=i&&f?-1:1,h=ge(t,e);let{mainAxis:b,crossAxis:d,alignmentAxis:w}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return l&&typeof w=="number"&&(d=l==="end"?w*-1:w),f?{x:d*p,y:b*u}:{x:b*u,y:d*p}}const wo=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:s,middlewareData:l}=t,f=await yo(t,e);return s===((n=l.offset)==null?void 0:n.placement)&&(r=l.arrow)!=null&&r.alignmentOffset?{}:{x:o+f.x,y:i+f.y,data:{...f,placement:s}}}}};function On(e){const t=J(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Q(e),i=o?e.offsetWidth:n,s=o?e.offsetHeight:r,l=_e(n)!==i||_e(r)!==s;return l&&(n=i,r=s),{width:n,height:r,$:l}}function it(e){return G(e)?e:e.contextElement}function le(e){const t=it(e);if(!Q(t))return K(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=On(t);let s=(i?_e(n.width):n.width)/r,l=(i?_e(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}const vo=K(0);function Tn(e){const t=Y(e);return!nt()||!t.visualViewport?vo:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Eo(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Y(e)?!1:t}function se(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=it(e);let s=K(1);t&&(r?G(r)&&(s=le(r)):s=le(e));const l=Eo(i,n,r)?Tn(i):K(0);let f=(o.left+l.x)/s.x,u=(o.top+l.y)/s.y,p=o.width/s.x,h=o.height/s.y;if(i){const b=Y(i),d=r&&G(r)?Y(r):r;let w=b,v=qe(w);for(;v&&r&&d!==w;){const A=le(v),R=v.getBoundingClientRect(),y=J(v),x=R.left+(v.clientLeft+parseFloat(y.paddingLeft))*A.x,_=R.top+(v.clientTop+parseFloat(y.paddingTop))*A.y;f*=A.x,u*=A.y,p*=A.x,h*=A.y,f+=x,u+=_,w=Y(v),v=qe(w)}}return Ae({width:p,height:h,x:f,y:u})}function Ne(e,t){const n=Le(e).scrollLeft;return t?t.left+n:se(ee(e)).left+n}function Ln(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-Ne(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function xo(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i=o==="fixed",s=ee(r),l=t?Te(t.floating):!1;if(r===s||l&&i)return n;let f={scrollLeft:0,scrollTop:0},u=K(1);const p=K(0),h=Q(r);if((h||!h&&!i)&&((de(r)!=="body"||he(s))&&(f=Le(r)),Q(r))){const d=se(r);u=le(r),p.x=d.x+r.clientLeft,p.y=d.y+r.clientTop}const b=s&&!h&&!i?Ln(s,f):K(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-f.scrollLeft*u.x+p.x+b.x,y:n.y*u.y-f.scrollTop*u.y+p.y+b.y}}function Ro(e){return Array.from(e.getClientRects())}function _o(e){const t=ee(e),n=Le(e),r=e.ownerDocument.body,o=ie(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=ie(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+Ne(e);const l=-n.scrollTop;return J(r).direction==="rtl"&&(s+=ie(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:s,y:l}}const cn=25;function Co(e,t){const n=Y(e),r=ee(e),o=n.visualViewport;let i=r.clientWidth,s=r.clientHeight,l=0,f=0;if(o){i=o.width,s=o.height;const p=nt();(!p||p&&t==="fixed")&&(l=o.offsetLeft,f=o.offsetTop)}const u=Ne(r);if(u<=0){const p=r.ownerDocument,h=p.body,b=getComputedStyle(h),d=p.compatMode==="CSS1Compat"&&parseFloat(b.marginLeft)+parseFloat(b.marginRight)||0,w=Math.abs(r.clientWidth-h.clientWidth-d);w<=cn&&(i-=w)}else u<=cn&&(i+=u);return{width:i,height:s,x:l,y:f}}const Ao=new Set(["absolute","fixed"]);function So(e,t){const n=se(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=Q(e)?le(e):K(1),s=e.clientWidth*i.x,l=e.clientHeight*i.y,f=o*i.x,u=r*i.y;return{width:s,height:l,x:f,y:u}}function fn(e,t,n){let r;if(t==="viewport")r=Co(e,n);else if(t==="document")r=_o(ee(e));else if(G(t))r=So(t,n);else{const o=Tn(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Ae(r)}function Nn(e,t){const n=re(e);return n===t||!G(n)||ce(n)?!1:J(n).position==="fixed"||Nn(n,t)}function Oo(e,t){const n=t.get(e);if(n)return n;let r=me(e,[],!1).filter(l=>G(l)&&de(l)!=="body"),o=null;const i=J(e).position==="fixed";let s=i?re(e):e;for(;G(s)&&!ce(s);){const l=J(s),f=tt(s);!f&&l.position==="fixed"&&(o=null),(i?!f&&!o:!f&&l.position==="static"&&!!o&&Ao.has(o.position)||he(s)&&!f&&Nn(e,s))?r=r.filter(p=>p!==s):o=l,s=re(s)}return t.set(e,r),r}function To(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const s=[...n==="clippingAncestors"?Te(t)?[]:Oo(t,this._c):[].concat(n),r],l=s[0],f=s.reduce((u,p)=>{const h=fn(t,p,o);return u.top=ie(h.top,u.top),u.right=fe(h.right,u.right),u.bottom=fe(h.bottom,u.bottom),u.left=ie(h.left,u.left),u},fn(t,l,o));return{width:f.right-f.left,height:f.bottom-f.top,x:f.left,y:f.top}}function Lo(e){const{width:t,height:n}=On(e);return{width:t,height:n}}function No(e,t,n){const r=Q(t),o=ee(t),i=n==="fixed",s=se(e,!0,i,t);let l={scrollLeft:0,scrollTop:0};const f=K(0);function u(){f.x=Ne(o)}if(r||!r&&!i)if((de(t)!=="body"||he(o))&&(l=Le(t)),r){const d=se(t,!0,i,t);f.x=d.x+t.clientLeft,f.y=d.y+t.clientTop}else o&&u();i&&!r&&o&&u();const p=o&&!r&&!i?Ln(o,l):K(0),h=s.left+l.scrollLeft-f.x-p.x,b=s.top+l.scrollTop-f.y-p.y;return{x:h,y:b,width:s.width,height:s.height}}function ze(e){return J(e).position==="static"}function un(e,t){if(!Q(e)||J(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return ee(e)===n&&(n=n.ownerDocument.body),n}function Pn(e,t){const n=Y(e);if(Te(e))return n;if(!Q(e)){let o=re(e);for(;o&&!ce(o);){if(G(o)&&!ze(o))return o;o=re(o)}return n}let r=un(e,t);for(;r&&$r(r)&&ze(r);)r=un(r,t);return r&&ce(r)&&ze(r)&&!tt(r)?n:r||Ur(e)||n}const Po=async function(e){const t=this.getOffsetParent||Pn,n=this.getDimensions,r=await n(e.floating);return{reference:No(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Mo(e){return J(e).direction==="rtl"}const Bo={convertOffsetParentRelativeRectToViewportRelativeRect:xo,getDocumentElement:ee,getClippingRect:To,getOffsetParent:Pn,getElementRects:Po,getClientRects:Ro,getDimensions:Lo,getScale:le,isElement:G,isRTL:Mo};function Mn(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Io(e,t){let n=null,r;const o=ee(e);function i(){var l;clearTimeout(r),(l=n)==null||l.disconnect(),n=null}function s(l,f){l===void 0&&(l=!1),f===void 0&&(f=1),i();const u=e.getBoundingClientRect(),{left:p,top:h,width:b,height:d}=u;if(l||t(),!b||!d)return;const w=Ee(h),v=Ee(o.clientWidth-(p+b)),A=Ee(o.clientHeight-(h+d)),R=Ee(p),x={rootMargin:-w+"px "+-v+"px "+-A+"px "+-R+"px",threshold:ie(0,fe(1,f))||1};let _=!0;function E(S){const C=S[0].intersectionRatio;if(C!==f){if(!_)return s();C?s(!1,C):r=setTimeout(()=>{s(!1,1e-7)},1e3)}C===1&&!Mn(u,e.getBoundingClientRect())&&s(),_=!1}try{n=new IntersectionObserver(E,{...x,root:o.ownerDocument})}catch{n=new IntersectionObserver(E,x)}n.observe(e)}return s(!0),i}function Vo(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:f=!1}=r,u=it(e),p=o||i?[...u?me(u):[],...me(t)]:[];p.forEach(R=>{o&&R.addEventListener("scroll",n,{passive:!0}),i&&R.addEventListener("resize",n)});const h=u&&l?Io(u,n):null;let b=-1,d=null;s&&(d=new ResizeObserver(R=>{let[y]=R;y&&y.target===u&&d&&(d.unobserve(t),cancelAnimationFrame(b),b=requestAnimationFrame(()=>{var x;(x=d)==null||x.observe(t)})),n()}),u&&!f&&d.observe(u),d.observe(t));let w,v=f?se(e):null;f&&A();function A(){const R=se(e);v&&!Mn(v,R)&&n(),v=R,w=requestAnimationFrame(A)}return n(),()=>{var R;p.forEach(y=>{o&&y.removeEventListener("scroll",n),i&&y.removeEventListener("resize",n)}),h?.(),(R=d)==null||R.disconnect(),d=null,f&&cancelAnimationFrame(w)}}const Do=wo,Ho=ho,$o=go,dn=mo,Fo=(e,t,n)=>{const r=new Map,o={platform:Bo,...n},i={...o.platform,_c:r};return po(e,t,{...o,platform:i})};var ko=typeof document<"u",Wo=function(){},xe=ko?g.useLayoutEffect:Wo;function Se(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Se(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const i=o[r];if(!(i==="_owner"&&e.$$typeof)&&!Se(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function Bn(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function pn(e,t){const n=Bn(e);return Math.round(t*n)/n}function Ge(e){const t=g.useRef(e);return xe(()=>{t.current=e}),t}function jo(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:s}={},transform:l=!0,whileElementsMounted:f,open:u}=e,[p,h]=g.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[b,d]=g.useState(r);Se(b,r)||d(r);const[w,v]=g.useState(null),[A,R]=g.useState(null),y=g.useCallback(O=>{O!==S.current&&(S.current=O,v(O))},[]),x=g.useCallback(O=>{O!==C.current&&(C.current=O,R(O))},[]),_=i||w,E=s||A,S=g.useRef(null),C=g.useRef(null),$=g.useRef(p),F=f!=null,B=Ge(f),k=Ge(o),H=Ge(u),D=g.useCallback(()=>{if(!S.current||!C.current)return;const O={placement:t,strategy:n,middleware:b};k.current&&(O.platform=k.current),Fo(S.current,C.current,O).then(W=>{const M={...W,isPositioned:H.current!==!1};P.current&&!Se($.current,M)&&($.current=M,uo.flushSync(()=>{h(M)}))})},[b,t,n,k,H]);xe(()=>{u===!1&&$.current.isPositioned&&($.current.isPositioned=!1,h(O=>({...O,isPositioned:!1})))},[u]);const P=g.useRef(!1);xe(()=>(P.current=!0,()=>{P.current=!1}),[]),xe(()=>{if(_&&(S.current=_),E&&(C.current=E),_&&E){if(B.current)return B.current(_,E,D);D()}},[_,E,D,B,F]);const z=g.useMemo(()=>({reference:S,floating:C,setReference:y,setFloating:x}),[y,x]),N=g.useMemo(()=>({reference:_,floating:E}),[_,E]),V=g.useMemo(()=>{const O={position:n,left:0,top:0};if(!N.floating)return O;const W=pn(N.floating,p.x),M=pn(N.floating,p.y);return l?{...O,transform:"translate("+W+"px, "+M+"px)",...Bn(N.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:W,top:M}},[n,l,N.floating,p.x,p.y]);return g.useMemo(()=>({...p,update:D,refs:z,elements:N,floatingStyles:V}),[p,D,z,N,V])}const Uo=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?dn({element:r.current,padding:o}).fn(n):{}:r?dn({element:r,padding:o}).fn(n):{}}}},zo=(e,t)=>({...Do(e),options:[e,t]}),Go=(e,t)=>({...Ho(e),options:[e,t]}),qo=(e,t)=>({...$o(e),options:[e,t]}),Zo=(e,t)=>({...Uo(e),options:[e,t]}),Yo={...bn};let mn=!1,Xo=0;const hn=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+Xo++;function Jo(){const[e,t]=g.useState(()=>mn?hn():void 0);return Ye(()=>{e==null&&t(hn())},[]),g.useEffect(()=>{mn=!0},[]),e}const Ko=Yo.useId,Qo=Ko||Jo;function ei(){const e=new Map;return{emit(t,n){var r;(r=e.get(t))==null||r.forEach(o=>o(n))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){var r;(r=e.get(t))==null||r.delete(n)}}}const ti=g.createContext(null),ni=g.createContext(null),ri=()=>{var e;return((e=g.useContext(ti))==null?void 0:e.id)||null},oi=()=>g.useContext(ni);function ii(e){const{open:t=!1,onOpenChange:n,elements:r}=e,o=Qo(),i=g.useRef({}),[s]=g.useState(()=>ei()),l=ri()!=null,[f,u]=g.useState(r.reference),p=fo((d,w,v)=>{i.current.openEvent=d?w:void 0,s.emit("openchange",{open:d,event:w,reason:v,nested:l}),n?.(d,w,v)}),h=g.useMemo(()=>({setPositionReference:u}),[]),b=g.useMemo(()=>({reference:f||r.reference||null,floating:r.floating||null,domReference:r.reference}),[f,r.reference,r.floating]);return g.useMemo(()=>({dataRef:i,open:t,onOpenChange:p,elements:b,events:s,floatingId:o,refs:h}),[t,p,b,s,o,h])}function si(e){e===void 0&&(e={});const{nodeId:t}=e,n=ii({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,o=r.elements,[i,s]=g.useState(null),[l,f]=g.useState(null),p=o?.domReference||i,h=g.useRef(null),b=oi();Ye(()=>{p&&(h.current=p)},[p]);const d=jo({...e,elements:{...o,...l&&{reference:l}}}),w=g.useCallback(x=>{const _=G(x)?{getBoundingClientRect:()=>x.getBoundingClientRect(),getClientRects:()=>x.getClientRects(),contextElement:x}:x;f(_),d.refs.setReference(_)},[d.refs]),v=g.useCallback(x=>{(G(x)||x===null)&&(h.current=x,s(x)),(G(d.refs.reference.current)||d.refs.reference.current===null||x!==null&&!G(x))&&d.refs.setReference(x)},[d.refs]),A=g.useMemo(()=>({...d.refs,setReference:v,setPositionReference:w,domReference:h}),[d.refs,v,w]),R=g.useMemo(()=>({...d.elements,domReference:p}),[d.elements,p]),y=g.useMemo(()=>({...d,...r,refs:A,elements:R,nodeId:t}),[d,A,R,t,r]);return Ye(()=>{r.dataRef.current.floatingContext=y;const x=b?.nodesRef.current.find(_=>_.id===t);x&&(x.context=y)}),g.useMemo(()=>({...d,context:y,refs:A,elements:R}),[d,A,R,y])}const ai=g.createContext(Re);a.node,Qe(a.objectOf(a.bool)),a.bool,a.bool,a.bool,a.bool,a.bool,a.bool,a.bool,a.bool,a.bool,a.bool;function In(e){return g.useContext(ai).enabled(e)}const Vn=c.createContext({setFloating:{current:null},caretRef:{current:null},autoAlign:null}),Dn=c.forwardRef(function({isTabTip:t,align:n=t?"bottom-start":"bottom",as:r="span",autoAlign:o=!1,autoAlignBoundary:i,backgroundToken:s="layer",caret:l=!t,className:f,children:u,border:p=!1,dropShadow:h=!0,highContrast:b=!1,onRequestClose:d,open:w,alignmentAxisOffset:v,...A},R){const y=X(),x=g.useRef(null),_=g.useRef(null),E=g.useRef(null),S=In("enable-v12-dynamic-floating-styles")||o;let C=et(n);Br(E,"focusout",M=>{const L=M.relatedTarget;if(t){L&&!E.current?.contains(L)&&d?.();return}if(!L){d?.();return}const U=!E.current?.contains(L),I=S&&B.floating.current?!B.floating.current.contains(L):!0;U&&I&&d?.()}),Ir("click",({target:M})=>{w&&M instanceof Node&&!E.current?.contains(M)&&d?.()});const $=c.Children.toArray(u).some(M=>M?.props?.className?.includes("slug")||M?.props?.className?.includes("ai-label"))?7:6,F=g.useRef({offset:10,caretHeight:$});xn(()=>{if(l&&E.current){const M=window.getComputedStyle(E.current,null),L=M.getPropertyValue("--cds-popover-offset"),U=M.getPropertyValue("--cds-popover-caret-height");L&&(F.current.offset=L.includes("px")?Number(L.split("px",1)[0])*1:Number(L.split("rem",1)[0])*16),U&&(F.current.caretHeight=U.includes("px")?Number(U.split("px",1)[0])*1:Number(U.split("rem",1)[0])*16)}});const{refs:B,floatingStyles:k,placement:H,middlewareData:D}=si(S?{placement:C,strategy:"fixed",middleware:[zo(t?0:{alignmentAxis:v,mainAxis:F?.current?.offset}),o&&Go({fallbackPlacements:t?C.includes("bottom")?["bottom-start","bottom-end","top-start","top-end"]:["top-start","top-end","bottom-start","bottom-end"]:C.includes("bottom")?["bottom","bottom-start","bottom-end","right","right-start","right-end","left","left-start","left-end","top","top-start","top-end"]:["top","top-start","top-end","left","left-start","left-end","right","right-start","right-end","bottom","bottom-start","bottom-end"],fallbackStrategy:"initialPlacement",fallbackAxisSideDirection:"start",boundary:i}),Zo({element:_,padding:16}),o&&qo()],whileElementsMounted:Vo}:{}),P=g.useMemo(()=>({floating:x,setFloating:B.setFloating,caretRef:_,autoAlign:o}),[B.setFloating,o]);t&&(["bottom-start","bottom-end"].includes(C)||(C="bottom-start")),g.useEffect(()=>{if(S){const M={...k,visibility:D.hide?.referenceHidden?"hidden":"visible"};if(Object.keys(M).forEach(L=>{B.floating.current&&(B.floating.current.style[L]=M[L])}),l&&D&&D.arrow&&_?.current){const{x:L,y:U}=D.arrow,I={top:"bottom",right:"left",bottom:"top",left:"right"}[H.split("-")[0]];_.current.style.left=L!=null?`${L}px`:"",_.current.style.top=U!=null?`${U}px`:"",_.current.style.right="",_.current.style.bottom="",I&&(_.current.style[I]=`${-F?.current?.caretHeight}px`)}}},[k,B.floating,S,D,H,l]);const z=_n([R,E]),N=o&&H!==C?H:C,V=q({[`${y}--popover-container`]:!0,[`${y}--popover--caret`]:l,[`${y}--popover--drop-shadow`]:h,[`${y}--popover--border`]:p,[`${y}--popover--high-contrast`]:b,[`${y}--popover--open`]:w,[`${y}--popover--auto-align ${y}--autoalign`]:S,[`${y}--popover--${N}`]:!0,[`${y}--popover--tab-tip`]:t,[`${y}--popover--background-token__background`]:s==="background"&&!b},f),O=c.Children.map(u,M=>{const L=M,U=L?.type?.displayName,I=L?.type==="button",ae=S&&U&&["ToggletipButton"].includes(U),ye=S&&!["ToggletipContent","PopoverContent"].includes(U);if(c.isValidElement(L)&&(I||ae||ye)){const te=L?.props?.className,ne=(L?.props).ref,Gn=q(`${y}--popover--tab-tip__button`,te);return c.cloneElement(L,{className:t&&L?.type==="button"?Gn:te||"",ref:Be=>{(S&&L?.type!==Pe||S&&L?.type.displayName==="ToggletipButton")&&B.setReference(Be),typeof ne=="function"?ne(Be):ne!=null&&(ne.current=Be)}})}else return L}),W=r;return c.createElement(Vn.Provider,{value:P},c.createElement(W,Z({},A,{className:V,ref:z}),S||t?O:u))});Dn.propTypes={align:Rn(a.oneOf(["top","top-left","top-right","bottom","bottom-left","bottom-right","left","left-bottom","left-top","right","right-bottom","right-top","top-start","top-end","bottom-start","bottom-end","left-end","left-start","right-end","right-start"]),["top","top-start","top-end","bottom","bottom-start","bottom-end","left","left-start","left-end","right","right-start","right-end"],et),alignmentAxisOffset:a.number,as:a.oneOfType([a.string,a.elementType]),autoAlign:a.bool,backgroundToken:a.oneOf(["layer","background"]),autoAlignBoundary:a.oneOfType([a.oneOf(["clippingAncestors"]),a.elementType,a.arrayOf(a.elementType),a.exact({x:a.number.isRequired,y:a.number.isRequired,width:a.number.isRequired,height:a.number.isRequired})]),caret:a.bool,border:a.bool,children:a.node,className:a.string,dropShadow:a.bool,highContrast:a.bool,isTabTip:a.bool,onRequestClose:a.func,open:a.bool.isRequired};function li({className:e,children:t,...n},r){const o=X(),{setFloating:i,caretRef:s,autoAlign:l}=c.useContext(Vn),f=_n([i,r]),u=In("enable-v12-dynamic-floating-styles")||l;return c.createElement("span",Z({},n,{className:`${o}--popover`}),c.createElement("span",{className:q(`${o}--popover-content`,e),ref:f},t,u&&c.createElement("span",{className:q({[`${o}--popover-caret`]:!0,[`${o}--popover--auto-align`]:!0}),ref:s})),!u&&c.createElement("span",{className:q({[`${o}--popover-caret`]:!0}),ref:s}))}const Pe=c.forwardRef(li);Pe.displayName="PopoverContent";Pe.propTypes={children:a.node,className:a.string};function ci(e){const[t,n]=g.useState(e),r=g.useRef(null),o=g.useCallback((i,s=0)=>{if(window.clearTimeout(r.current??void 0),r.current=null,s===0){n(i);return}r.current=window.setTimeout(()=>{n(i),r.current=null},s)},[]);return g.useEffect(()=>()=>{window.clearTimeout(r.current??void 0)},[]),[t,o]}const gn=new Set(["mouseup","touchend","touchcancel"]),Hn=c.forwardRef(({as:e,align:t="top",className:n,children:r,label:o,description:i,enterDelayMs:s=100,leaveDelayMs:l=300,defaultOpen:f=!1,closeOnActivation:u=!1,dropShadow:p=!1,highContrast:h=!0,...b},d)=>{g.useRef(null);const[w,v]=ci(f),[A,R]=g.useState(!1),[y,x]=g.useState(!1),[_,E]=g.useState(!1),S=Ke("tooltip"),C=X(),$=c.Children.only(r),{"aria-labelledby":F,"aria-describedby":B}=$?.props??{},k=!!o,P={onFocus:()=>!y&&v(!0),onBlur:()=>{v(!1),x(!1)},onClick:()=>u&&v(!1),onMouseEnter:V,onMouseLeave:W,onMouseDown:O,onMouseMove:M,onTouchStart:L,"aria-labelledby":F??(k?S:void 0),"aria-describedby":B??(k?void 0:S)};function z(I){const ae=Object.keys(P).filter(te=>te.startsWith("on")),ye={};return ae.forEach(te=>{ye[te]=ne=>{P[te](ne),I?.[te]&&I?.[te](ne)}}),ye}const N=g.useCallback(I=>{w&&we(I,tn)&&(I.stopPropagation(),v(!1)),w&&u&&(we(I,Ar)||we(I,Sr))&&v(!1)},[u,w,v]);xn(()=>{if(!w)return;function I(ae){we(ae,tn)&&N(ae)}return document.addEventListener("keydown",I),()=>{document.removeEventListener("keydown",I)}},[w,N]);function V(){b?.onMouseEnter||(E(!0),v(!0,s))}function O(){x(!0),L()}function W(){E(!1),!A&&v(!1,l)}function M(I){I.buttons===1?R(!0):R(!1)}function L(){R(!0)}const U=g.useCallback(()=>{R(!1),_||v(!1,l)},[_,l,v]);return g.useEffect(()=>(A&&gn.forEach(I=>{document.addEventListener(I,U)}),()=>{gn.forEach(I=>{document.removeEventListener(I,U)})}),[A,U]),c.createElement(Dn,Z({as:e,ref:d},b,{align:t,className:q(`${C}--tooltip`,n),dropShadow:p,highContrast:h,onKeyDown:N,onMouseLeave:W,open:w}),c.createElement("div",{className:`${C}--tooltip-trigger__wrapper`},typeof $<"u"?c.cloneElement($,{...P,...z($.props)}):null),c.createElement(Pe,{"aria-hidden":w?"false":"true",className:`${C}--tooltip-content`,id:S,onMouseEnter:V,role:"tooltip"},o||i))});Hn.propTypes={align:a.oneOf(["top","top-left","top-right","bottom","bottom-left","bottom-right","left","left-bottom","left-top","right","right-bottom","right-top","top-start","top-end","bottom-start","bottom-end","left-end","left-start","right-end","right-start"]),children:a.node,className:a.string,closeOnActivation:a.bool,defaultOpen:a.bool,description:a.node,dropShadow:a.bool,enterDelayMs:a.number,highContrast:a.bool,label:a.node,leaveDelayMs:a.number};const $n=c.forwardRef(function({as:t,children:n,className:r,dangerDescription:o="danger",disabled:i=!1,hasIconOnly:s=!1,href:l,iconDescription:f,isExpressive:u=!1,isSelected:p,kind:h="primary",onBlur:b,onClick:d,onFocus:w,onMouseEnter:v,onMouseLeave:A,renderIcon:R,size:y,tabIndex:x,type:_="button",...E},S){const C=X(),$=q(r,{[`${C}--btn`]:!0,[`${C}--btn--xs`]:y==="xs"&&!u,[`${C}--btn--sm`]:y==="sm"&&!u,[`${C}--btn--md`]:y==="md"&&!u,[`${C}--btn--lg`]:y==="lg"&&!u,[`${C}--btn--xl`]:y==="xl",[`${C}--btn--2xl`]:y==="2xl",[`${C}--layout--size-${y}`]:y,[`${C}--btn--${h}`]:h,[`${C}--btn--disabled`]:i,[`${C}--btn--expressive`]:u,[`${C}--btn--icon-only`]:s,[`${C}--btn--selected`]:s&&p&&h==="ghost"}),F={tabIndex:x,className:$,ref:S},B=R?c.createElement(R,{"aria-label":f,className:`${C}--btn__icon`,"aria-hidden":"true"}):null,k=["danger","danger--tertiary","danger--ghost"];let H="button";const D=Ke("danger-description"),{"aria-pressed":P,"aria-describedby":z}=E;let N={disabled:i,type:_,"aria-describedby":k.includes(h)?D:z||void 0,"aria-pressed":P??(s&&h==="ghost"?p:void 0)};const V={href:l};let O=null;return k.includes(h)&&(O=c.createElement("span",{id:D,className:`${C}--visually-hidden`},o)),t?(H=t,N={...N,...V}):l&&!i&&(H="a",N=V),c.createElement(H,{onMouseEnter:v,onMouseLeave:A,onFocus:w,onBlur:b,onClick:d,...E,...F,...N},O,n,B)}),Fn=c.forwardRef(function({className:t,count:n,...r},o){const i=X(),s=q(`${i}--badge-indicator`,t,{[`${i}--badge-indicator--count`]:n}),l=n&&n>999?"999+":n;return c.createElement("div",Z({className:s,ref:o},r),l)});Fn.propTypes={className:a.string,count:a.number,id:a.string};const kn=["primary","secondary","ghost","tertiary"],Wn=c.forwardRef(({align:e,autoAlign:t=!1,badgeCount:n,children:r,className:o,closeOnActivation:i=!0,defaultOpen:s=!1,disabled:l,dropShadow:f=!1,enterDelayMs:u=100,highContrast:p=!0,kind:h,label:b,leaveDelayMs:d=100,wrapperClasses:w,size:v,isSelected:A,...R},y)=>{const x=X(),_=q(w,`${x}--icon-tooltip`,{[`${x}--icon-tooltip--disabled`]:l});n&&(h!=="ghost"||v!=="lg")&&console.warn("The prop BadgeCount must be used with hasIconOnly=true, kind='ghost' and size='lg'");const E=Ke("badge-indicator");return c.createElement(Hn,{align:e,autoAlign:t,closeOnActivation:i,className:_,defaultOpen:s,dropShadow:f,enterDelayMs:u,highContrast:p,label:b,leaveDelayMs:d},c.createElement($n,Z({},R,{disabled:l,kind:h,ref:y,size:v,isSelected:A,hasIconOnly:!0,className:o,"aria-describedby":R["aria-describedby"]||n&&E}),r,!l&&n!==void 0&&c.createElement(Fn,{id:E,count:n>0?n:void 0})))});Wn.propTypes={align:Rn(a.oneOf(["top","top-left","top-right","bottom","bottom-left","bottom-right","left","left-bottom","left-top","right","right-bottom","right-top","top-start","top-end","bottom-start","bottom-end","left-end","left-start","right-end","right-start"]),["top","top-start","top-end","bottom","bottom-start","bottom-end","left","left-start","left-end","right","right-start","right-end"],et),autoAlign:a.bool,badgeCount:a.number,href:a.string,children:a.node,className:a.string,closeOnActivation:a.bool,defaultOpen:a.bool,dropShadow:a.bool,disabled:a.bool,enterDelayMs:a.number,isSelected:a.bool,highContrast:a.bool,kind:a.oneOf(kn),label:a.node.isRequired,leaveDelayMs:a.number,rel:a.string,size:a.oneOf(["sm","md","lg"]),target:a.string,wrapperClasses:a.string};const fi=["primary","secondary","danger","ghost","danger--primary","danger--ghost","danger--tertiary","tertiary"];function ui(e,t){return e===!0}const st=c.forwardRef((e,t)=>{const{as:n,autoAlign:r=!1,children:o,hasIconOnly:i=!1,tooltipHighContrast:s=!0,tooltipDropShadow:l=!1,iconDescription:f,kind:u="primary",onBlur:p,onClick:h,onFocus:b,onMouseEnter:d,onMouseLeave:w,renderIcon:v,size:A,tooltipAlignment:R="center",tooltipPosition:y="top",...x}=e;v&&!o&&!f&&console.error("Button: renderIcon property specified without also providing an iconDescription property. This may impact accessibility for screen reader users.");const _=v?c.createElement(v,null):null;if(ui(i)){let E;return(y==="top"||y==="bottom")&&(R==="center"&&(E=y),R==="end"&&(E=`${y}-end`),R==="start"&&(E=`${y}-start`)),(y==="right"||y==="left")&&(E=y),c.createElement(Wn,Z({},x,{ref:t,as:n,align:E,label:f,kind:u,size:A,highContrast:s,dropShadow:l,onMouseEnter:d,onMouseLeave:w,onFocus:b,onBlur:p,autoAlign:r,onClick:h,renderIcon:_?null:v}),_??o)}else{const{tooltipAlignment:E,...S}=e;return c.createElement($n,Z({ref:t},S))}});st.displayName="Button";st.propTypes={as:a.oneOfType([a.func,a.string,a.elementType]),autoAlign:a.bool,children:a.node,className:a.string,dangerDescription:a.string,disabled:a.bool,hasIconOnly:a.bool,href:a.string,iconDescription:e=>e.renderIcon&&!e.children&&!e.iconDescription?new Error("renderIcon property specified without also providing an iconDescription property."):null,isExpressive:a.bool,isSelected:a.bool,kind:(e,t,n)=>{const{hasIconOnly:r}=e,o=r?kn:fi;return e[t]===void 0||o.includes(e[t])?null:new Error(`Invalid prop \`${t}\` supplied to \`${n}\`. Expected one of ${o.join(", ")}.`)},onBlur:a.func,onClick:a.func,onFocus:a.func,onMouseEnter:a.func,onMouseLeave:a.func,rel:a.string,renderIcon:a.oneOfType([a.func,a.object]),role:a.string,size:a.oneOf(["xs","sm","md","lg","xl","2xl"]),tabIndex:a.number,target:a.string,tooltipAlignment:a.oneOf(["start","center","end"]),tooltipDropShadow:a.bool,tooltipHighContrast:a.bool,tooltipPosition:a.oneOf(["top","right","bottom","left"]),type:a.oneOf(["button","reset","submit"])};const di=({name:e,className:t,type:n})=>{function r({className:o,...i}){const s=X(),l=q(typeof t=="function"?t(s):t,o);return c.createElement(n,{...i,className:l||void 0})}return r.displayName=e,r.propTypes={className:a.string},r},pi=({className:e,children:t,...n})=>{const r=X(),o=q(`${r}--header`,e);return c.createElement("header",Z({},n,{className:o}),t)};pi.propTypes={"aria-label":a.string,"aria-labelledby":a.string,className:a.string};const mi=e=>{const t=Object.keys(e),n=r=>((o,i,s,...l)=>r(o,i,s,...l));return t.reduce((r,o)=>({...r,[o]:n(e[o])}),{})},jn=mi({"aria-label":a.string,"aria-labelledby":a.string}),Un=c.forwardRef(({"aria-label":e,"aria-labelledby":t,children:n,className:r,onClick:o,tooltipHighContrast:i=!0,tooltipDropShadow:s,isActive:l,tooltipAlignment:f,...u},p)=>{const h=X(),b=q({[r]:!!r,[`${h}--header__action`]:!0,[`${h}--header__action--active`]:l}),d={"aria-label":e,"aria-labelledby":t};return c.createElement(st,Z({},u,d,{className:b,onClick:o,type:"button",hasIconOnly:!0,size:"lg",kind:"ghost",iconDescription:e,tooltipPosition:"bottom",tooltipAlignment:f,tooltipDropShadow:s,tooltipHighContrast:i,ref:p}),n)});Un.propTypes={...jn,children:a.node.isRequired,className:a.string,isActive:a.bool,onClick:a.func,tooltipAlignment:a.oneOf(["start","center","end"]),tooltipDropShadow:a.bool,tooltipHighContrast:a.bool};Un.displayName="HeaderGlobalAction";const Pi=di({name:"HeaderGlobalBar",className:e=>`${e}--header__global`,type:"div"}),hi=({element:e,as:t,isSideNavExpanded:n,...r},o)=>{const i=t??e??"a";return c.createElement(i,Z({ref:o},r))},Me=c.forwardRef(hi),at={as:a.elementType,element:Qe(a.elementType),isSideNavExpanded:a.bool};Me.displayName="Link";Me.propTypes=at;const zn=g.forwardRef(function({className:t,isActive:n,isCurrentPage:r,"aria-current":o,children:i,role:s,tabIndex:l,...f},u){const p=X(),h=l??0;r&&(n=r);const b=n&&o!=="page",d=q({[`${p}--header__menu-item`]:!0,[`${p}--header__menu-item--current`]:b});return c.createElement("li",{className:t,role:s},c.createElement(Me,Z({},f,{"aria-current":b?!0:o,className:d,ref:u,tabIndex:h}),c.createElement("span",{className:`${p}--text-truncate--end`},i)))});zn.displayName="HeaderMenuItem";zn.propTypes={...at,children:a.node.isRequired,className:a.string,isActive:a.bool,isCurrentPage:Qe(a.bool),role:a.string,tabIndex:a.number};function gi({children:e,className:t,prefix:n="IBM",...r}){const o=X(),i=q(`${o}--header__name`,t);return c.createElement(Me,Z({},r,{className:i}),n&&c.createElement(c.Fragment,null,c.createElement("span",{className:`${o}--header__name--prefix`},n)," "),e)}gi.propTypes={...at,children:a.node.isRequired,className:a.string,href:a.string,prefix:a.string};function bi({"aria-label":e,"aria-labelledby":t,children:n,className:r,...o}){const i=X(),s=q(`${i}--header__nav`,r);return c.createElement("nav",Z({},o,{"aria-label":e,"aria-labelledby":t,className:s}),c.createElement("ul",{className:`${i}--header__menu-bar`},n))}bi.propTypes={...jn,children:a.node,className:a.string};export{vi as A,st as B,Ri as C,_i as D,pi as H,Ai as L,Oi as M,Ti as P,Li as R,Ni as S,gi as a,bi as b,zn as c,Pi as d,Un as e,Si as f,xi as g,Ei as h,Ci as i,wi as j,g as r};
`,enabled:m.enableEnhancedFileUploader},{name:"enable-presence",description:`Enable components to remain unmounted in closed state and mount in open state.
`,enabled:m.enablePresence}];function ut(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Kn(e){if(Array.isArray(e))return e}function Qn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function er(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ar(r.key),r)}}function tr(e,t,n){return t&&er(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function nr(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=yn(e))||t){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(f){throw f},f:o}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i,s=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var f=n.next();return s=f.done,f},e:function(f){l=!0,i=f},f:function(){try{s||n.return==null||n.return()}finally{if(l)throw i}}}}function rr(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,i,s,l=[],f=!0,u=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(f=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);f=!0);}catch(p){u=!0,o=p}finally{try{if(!f&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(u)throw o}}return l}}function or(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ir(e,t){return Kn(e)||rr(e,t)||yn(e,t)||or()}function sr(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function ar(e){var t=sr(e,"string");return typeof t=="symbol"?t:t+""}function yn(e,t){if(e){if(typeof e=="string")return ut(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ut(e,t):void 0}}var lr=(function(){function e(t){var n=this;Qn(this,e),this.flags=new Map,t&&Object.keys(t).forEach(function(r){n.flags.set(r,t[r])})}return tr(e,[{key:"checkForFlag",value:function(n){if(!this.flags.has(n))throw new Error("Unable to find a feature flag with the name: `".concat(n,"`"))}},{key:"add",value:function(n,r){if(this.flags.has(n))throw new Error("The feature flag: ".concat(n," already exists"));this.flags.set(n,r)}},{key:"enable",value:function(n){this.checkForFlag(n),this.flags.set(n,!0)}},{key:"disable",value:function(n){this.checkForFlag(n),this.flags.set(n,!1)}},{key:"merge",value:function(n){var r=this;Object.keys(n).forEach(function(o){r.flags.set(o,n[o])})}},{key:"mergeWithScope",value:function(n){var r=nr(n.flags),o;try{for(r.s();!(o=r.n()).done;){var i=ir(o.value,2),s=i[0],l=i[1];this.flags.has(s)||this.flags.set(s,l)}}catch(f){r.e(f)}finally{r.f()}}},{key:"enabled",value:function(n){return this.checkForFlag(n),this.flags.get(n)}}])})(),Re=cr();for(var Ve=0;Ve<ft.length;Ve++){var dt=ft[Ve];Re.add(dt.name,dt.enabled)}function cr(e){return new lr(e)}function fr(){return Re.merge.apply(Re,arguments)}fr({"enable-css-custom-properties":!0,"enable-css-grid":!0,"enable-v11-release":!0,"enable-experimental-tile-contrast":!1,"enable-tile-contrast":!1,"enable-v12-tile-radio-icons":!1,"enable-v12-structured-list-visible-icons":!1,"enable-v12-dynamic-floating-styles":!1});function Z(){return Z=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Z.apply(null,arguments)}var De={exports:{}};var pt;function ur(){return pt||(pt=1,(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var i="",s=0;s<arguments.length;s++){var l=arguments[s];l&&(i=o(i,r(l)))}return i}function r(i){if(typeof i=="string"||typeof i=="number")return i;if(typeof i!="object")return"";if(Array.isArray(i))return n.apply(null,i);if(i.toString!==Object.prototype.toString&&!i.toString.toString().includes("[native code]"))return i.toString();var s="";for(var l in i)t.call(i,l)&&i[l]&&(s=o(s,l));return s}function o(i,s){return s?i?i+" "+s:i+s:i}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(De)),De.exports}var dr=ur();const q=Je(dr),pr=c.createContext("cds");function X(){return c.useContext(pr)}var He={exports:{}},$e,mt;function mr(){if(mt)return $e;mt=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return $e=e,$e}var Fe,ht;function hr(){if(ht)return Fe;ht=1;var e=mr();function t(){}function n(){}return n.resetWarningCache=t,Fe=function(){function r(s,l,f,u,p,h){if(h!==e){var b=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw b.name="Invariant Violation",b}}r.isRequired=r;function o(){return r}var i={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:t};return i.PropTypes=i,i},Fe}var gt;function gr(){return gt||(gt=1,He.exports=hr()()),He.exports}var br=gr();const a=Je(br);function yr(e,t,n){return(t=Er(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function ke(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?bt(Object(n),!0).forEach(function(r){yr(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bt(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function yt(e,t){if(e==null)return{};var n,r,o=wr(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function wr(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function vr(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Er(e){var t=vr(e,"string");return typeof t=="symbol"?t:t+""}var xr=["width","height","viewBox"],Rr=["tabindex"],_r={focusable:"false",preserveAspectRatio:"xMidYMid meet"};function Cr(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.width,n=e.height,r=e.viewBox,o=r===void 0?"0 0 ".concat(t," ").concat(n):r,i=yt(e,xr),s=i.tabindex,l=yt(i,Rr),f=ke(ke(ke({},_r),l),{},{width:t,height:n,viewBox:o});return f["aria-label"]||f["aria-labelledby"]||f.title?(f.role="img",s!=null&&(f.focusable="true",f.tabindex=s)):f["aria-hidden"]=!0,f}const j=c.forwardRef(function({className:t,children:n,tabIndex:r,xmlns:o="http://www.w3.org/2000/svg",preserveAspectRatio:i="xMidYMid meet",...s},l){const{tabindex:f,...u}=Cr({...s,tabindex:r}),p=u;return t&&(p.className=t),f!=null&&(typeof f=="number"?p.tabIndex=f:p.tabIndex=Number(r)),l&&(p.ref=l),o&&(p.xmlns=o),i&&(p.preserveAspectRatio=i),c.createElement("svg",p,n)});j.displayName="Icon";j.propTypes={"aria-hidden":a.oneOfType([a.bool,a.oneOf(["true","false"])]),"aria-label":a.string,"aria-labelledby":a.string,children:a.node,className:a.string,height:a.oneOfType([a.number,a.string]),preserveAspectRatio:a.string,tabIndex:a.oneOfType([a.number,a.string]),viewBox:a.string,width:a.oneOfType([a.number,a.string]),xmlns:a.string};var wt,vt;const vi=c.forwardRef(function({children:t,size:n=16,...r},o){return n===16||n==="16"||n==="16px"?c.createElement(j,{width:n,height:n,ref:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",...r},wt||(wt=c.createElement("path",{d:"M7.2,2.3c-1,4.4,1.7,8.7,6.1,9.8c0.1,0,0.1,0,0.2,0c-1.1,1.2-2.7,1.8-4.3,1.8c-0.1,0-0.2,0-0.2,0C5.6,13.8,3,11,3.2,7.7 C3.2,5.3,4.8,3.1,7.2,2.3 M8,1L8,1C4.1,1.6,1.5,5.3,2.1,9.1c0.6,3.3,3.4,5.8,6.8,5.9c0.1,0,0.2,0,0.3,0c2.3,0,4.4-1.1,5.8-3 c0.2-0.2,0.1-0.6-0.1-0.7c-0.1-0.1-0.2-0.1-0.3-0.1c-3.9-0.3-6.7-3.8-6.4-7.6C8.3,3,8.4,2.4,8.6,1.8c0.1-0.3,0-0.6-0.3-0.7 C8.1,1,8.1,1,8,1z"})),t):c.createElement(j,{width:n,height:n,ref:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...r},vt||(vt=c.createElement("path",{d:"M13.5025,5.4136A15.0755,15.0755,0,0,0,25.096,23.6082a11.1134,11.1134,0,0,1-7.9749,3.3893c-.1385,0-.2782.0051-.4178,0A11.0944,11.0944,0,0,1,13.5025,5.4136M14.98,3a1.0024,1.0024,0,0,0-.1746.0156A13.0959,13.0959,0,0,0,16.63,28.9973c.1641.006.3282,0,.4909,0a13.0724,13.0724,0,0,0,10.702-5.5556,1.0094,1.0094,0,0,0-.7833-1.5644A13.08,13.08,0,0,1,15.8892,4.38,1.0149,1.0149,0,0,0,14.98,3Z"})),t)});var Et,xt,Rt,_t,Ct,At,St;const Ei=c.forwardRef(function({children:t,size:n=16,...r},o){return n===20||n==="20"||n==="20px"?c.createElement(j,{width:n,height:n,ref:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",...r},Et||(Et=c.createElement("path",{d:"M8 13.2L3.6 8.8 2.7 9.7 7.1 14.1 8 15 16.5 6.5 15.6 5.6z"})),xt||(xt=c.createElement("path",{d:"M15.6 5.6L8 13.2 3.6 8.8 2.7 9.7 7.1 14.1 8 15 16.5 6.5 15.6 5.6z"})),t):n===24||n==="24"||n==="24px"?c.createElement(j,{width:n,height:n,ref:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",...r},Rt||(Rt=c.createElement("path",{d:"M10 15.9L4.7 10.6 3.6 11.6 8.9 16.9 10 18 20.6 7.4 19.5 6.3z"})),t):c.createElement(j,{width:n,height:n,ref:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...r},_t||(_t=c.createElement("path",{d:"M13 24L4 15 5.414 13.586 13 21.171 26.586 7.586 28 9 13 24z"})),t)}),xi=c.forwardRef(function({children:t,size:n=16,...r},o){return c.createElement(j,{width:n,height:n,ref:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...r},Ct||(Ct=c.createElement("path",{d:"M25.8289 13.1155A10.02 10.02 0 0016 5.0005V7a8.0233 8.0233 0 017.8649 6.4934l.2591 1.346 1.3488.2441A5.5019 5.5019 0 0124.5076 26H16v2h8.5076a7.5019 7.5019 0 001.3213-14.8845zM8 24H14V26H8zM4 24H6V26H4zM6 20H14V22H6zM2 20H4V22H2zM8 16H14V18H8zM4 16H6V18H4zM10 12H14V14H10zM6 12H8V14H6zM12 8H14V10H12z"})),t)}),Ri=c.forwardRef(function({children:t,size:n=16,...r},o){return c.createElement(j,{width:n,height:n,ref:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...r},At||(At=c.createElement("path",{d:"M31 16L24 23 22.59 21.59 28.17 16 22.59 10.41 24 9 31 16zM1 16L8 9 9.41 10.41 3.83 16 9.41 21.59 8 23 1 16z"})),St||(St=c.createElement("path",{d:"M5.91 15H26.080000000000002V17H5.91z",transform:"rotate(-75 15.996 16)"})),t)});var Ot,Tt;const _i=c.forwardRef(function({children:t,size:n=16,...r},o){return c.createElement(j,{width:n,height:n,ref:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...r},Ot||(Ot=c.createElement("path",{d:"M26 2H30V6H26zM26 8H30V12H26zM20 2H24V6H20zM20 8H24V12H20zM28 20h-14v2h2v4h-2v2h9v-2h-5v-4h10c.5304 0 1.0392-.2108 1.4142-.5858s.5858-.8838.5858-1.4142v-6h-2v6zM6 6h12v-2H6c-.5304 0-1.0392.2107-1.4142.5858-.3751.375-.5858.8838-.5858 1.4142v6h2v-6zM10 14H4c-.5304 0-1.0392.2107-1.4142.5858-.3751.375-.5858.8838-.5858 1.4142v12c0 .5304.2107 1.0392.5858 1.4142.375.375.8838.5858 1.4142.5858h6c.5304 0 1.0392-.2108 1.4142-.5858.3751-.375.5858-.8838.5858-1.4142v-12c0-.5304-.2107-1.0392-.5858-1.4142-.375-.3751-.8838-.5858-1.4142-.5858zm0 14H4v-12h6v12z"})),t)}),Ci=c.forwardRef(function({children:t,size:n=16,...r},o){return c.createElement(j,{width:n,height:n,ref:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...r},Tt||(Tt=c.createElement("path",{d:"M25.7,9.3l-7-7A.9078.9078,0,0,0,18,2H8A2.0059,2.0059,0,0,0,6,4V28a2.0059,2.0059,0,0,0,2,2H24a2.0059,2.0059,0,0,0,2-2V10A.9078.9078,0,0,0,25.7,9.3ZM18,4.4,23.6,10H18ZM24,28H8V4h8v6a2.0059,2.0059,0,0,0,2,2h6Z"})),t)});var Lt,Nt,Pt,Mt,Bt,It,Vt,Dt,Ht,$t,Ft,kt,Wt,jt,Ut,zt,Gt,qt;const Ai=c.forwardRef(function({children:t,size:n=16,...r},o){return n===16||n==="16"||n==="16px"?c.createElement(j,{width:n,height:n,ref:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",...r},Lt||(Lt=c.createElement("path",{d:"M7.5 1H8.5V3.5H7.5z"})),Nt||(Nt=c.createElement("path",{d:"M10.8 3.4H13.3V4.4H10.8z",transform:"rotate(-45.001 12.041 3.923)"})),Pt||(Pt=c.createElement("path",{d:"M12.5 7.5H15V8.5H12.5z"})),Mt||(Mt=c.createElement("path",{d:"M11.6 10.8H12.6V13.3H11.6z",transform:"rotate(-45.001 12.075 12.041)"})),Bt||(Bt=c.createElement("path",{d:"M7.5 12.5H8.5V15H7.5z"})),It||(It=c.createElement("path",{d:"M2.7 11.6H5.2V12.6H2.7z",transform:"rotate(-45.001 3.96 12.079)"})),Vt||(Vt=c.createElement("path",{d:"M1 7.5H3.5V8.5H1z"})),Dt||(Dt=c.createElement("path",{d:"M3.4 2.7H4.4V5.2H3.4z",transform:"rotate(-45.001 3.925 3.961)"})),Ht||(Ht=c.createElement("path",{d:"M8,6c1.1,0,2,0.9,2,2s-0.9,2-2,2S6,9.1,6,8S6.9,6,8,6 M8,5C6.3,5,5,6.3,5,8s1.3,3,3,3s3-1.3,3-3S9.7,5,8,5z"})),t):c.createElement(j,{width:n,height:n,ref:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...r},$t||($t=c.createElement("path",{d:"M15 2H17V7H15z"})),Ft||(Ft=c.createElement("path",{d:"M21.668 6.854H26.625999999999998V8.854H21.668z",transform:"rotate(-45 24.147 7.853)"})),kt||(kt=c.createElement("path",{d:"M25 15H30V17H25z"})),Wt||(Wt=c.createElement("path",{d:"M23.147 21.668H25.147V26.625999999999998H23.147z",transform:"rotate(-45 24.147 24.146)"})),jt||(jt=c.createElement("path",{d:"M15 25H17V30H15z"})),Ut||(Ut=c.createElement("path",{d:"M5.375 23.147H10.333V25.147H5.375z",transform:"rotate(-45 7.853 24.146)"})),zt||(zt=c.createElement("path",{d:"M2 15H7V17H2z"})),Gt||(Gt=c.createElement("path",{d:"M6.854 5.375H8.854V10.333H6.854z",transform:"rotate(-45 7.854 7.853)"})),qt||(qt=c.createElement("path",{d:"M16,12a4,4,0,1,1-4,4,4.0045,4.0045,0,0,1,4-4m0-2a6,6,0,1,0,6,6,6,6,0,0,0-6-6Z"})),t)});var Zt,Yt;const Si=c.forwardRef(function({children:t,size:n=16,...r},o){return c.createElement(j,{width:n,height:n,ref:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...r},Zt||(Zt=c.createElement("path",{fillRule:"evenodd",d:"M16,2a14,14,0,0,0-4.43,27.28c.7.13,1-.3,1-.67s0-1.21,0-2.38c-3.89.84-4.71-1.88-4.71-1.88A3.71,3.71,0,0,0,6.24,22.3c-1.27-.86.1-.85.1-.85A2.94,2.94,0,0,1,8.48,22.9a3,3,0,0,0,4.08,1.16,2.93,2.93,0,0,1,.88-1.87c-3.1-.36-6.37-1.56-6.37-6.92a5.4,5.4,0,0,1,1.44-3.76,5,5,0,0,1,.14-3.7s1.17-.38,3.85,1.43a13.3,13.3,0,0,1,7,0c2.67-1.81,3.84-1.43,3.84-1.43a5,5,0,0,1,.14,3.7,5.4,5.4,0,0,1,1.44,3.76c0,5.38-3.27,6.56-6.39,6.91a3.33,3.33,0,0,1,.95,2.59c0,1.87,0,3.38,0,3.84s.25.81,1,.67A14,14,0,0,0,16,2Z"})),t)}),Oi=c.forwardRef(function({children:t,size:n=16,...r},o){return c.createElement(j,{width:n,height:n,ref:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...r},Yt||(Yt=c.createElement("path",{d:"M25.3943,24a7.8772,7.8772,0,0,0-1.6707-8.5684,3.918,3.918,0,0,0-1.0844-4.414l2.7759-2.7759a2.0025,2.0025,0,0,0,0-2.8286L22.5869,2.5849a2.0021,2.0021,0,0,0-2.8286,0L6.5859,15.7573a2.0027,2.0027,0,0,0,0,2.8286l2.8282,2.8282a2.0024,2.0024,0,0,0,2.8286,0l4.7749-4.7754a3.9329,3.9329,0,0,0,5.5139.4326A5.9442,5.9442,0,0,1,23.1775,24H16v4H4v2H28V24ZM10.8281,20,8,17.1714,9.8787,15.293l2.8283,2.8281ZM16,14a3.9811,3.9811,0,0,0,.0762.7524L14.1211,16.707l-2.8284-2.8281,9.88-9.88L24.001,6.8271l-3.2488,3.2491A3.9771,3.9771,0,0,0,16,14Zm4,2a2,2,0,1,1,2-2A2.0023,2.0023,0,0,1,20,16Zm6,12H18V26h8Z"})),t)});var Xt;const Ti=c.forwardRef(function({children:t,size:n=16,...r},o){return c.createElement(j,{width:n,height:n,ref:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...r},Xt||(Xt=c.createElement("path",{d:"M22,12h6c1.1028,0,2-.8975,2-2V4c0-1.1025-.8972-2-2-2h-6c-1.1028,0-2,.8975-2,2v2h-9c-2.7571,0-5,2.2432-5,5h-2c-1.1028,0-2,.8975-2,2v6c0,1.1025.8972,2,2,2h2c0,2.7568,2.2429,5,5,5h9v2c0,1.1025.8972,2,2,2h6c1.1028,0,2-.8975,2-2v-6c0-1.1025-.8972-2-2-2h-6c-1.1028,0-2,.8975-2,2v2h-9c-1.6543,0-3-1.3457-3-3h2c1.1028,0,2-.8975,2-2v-6c0-1.1025-.8972-2-2-2h-2c0-1.6543,1.3457-3,3-3h9v2c0,1.1025.8972,2,2,2ZM22,22h6v6h-6l-.0012-6h.0012ZM10,13v6h-6l-.0012-6h6.0012ZM22,4h6v6h-6l-.0012-6h.0012Z"})),t)});var Jt,Kt;const Li=c.forwardRef(function({children:t,size:n=16,...r},o){return c.createElement(j,{width:n,height:n,ref:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...r},Jt||(Jt=c.createElement("path",{strokeWidth:"0",d:"M12 28h-2c-3.8599 0-7-3.1401-7-7v-2h2v2c0 2.7568 2.2432 5 5 5h2v2zM28 19h-9c-1.104.0014-1.9986.896-2 2v5c0 1.1046.8954 2 2 2h3v-2h-3v-5h9v5h-2.5352l-2.5937 3.8906 1.6641 1.1094 2-3h1.4648c1.1046 0 2-.8954 2-2v-5c-.0014-1.104-.896-1.9986-2-2zM29 15v-4c0-3.8599-3.1401-7-7-7h-3v2h3c2.7568 0 5 2.2432 5 5v4h2zM6 10H9V12H6z"})),Kt||(Kt=c.createElement("path",{strokeWidth:"0",d:"m12.606,6.4355l-2.5251-3.6855c-.3821-.4766-.9512-.75-1.5615-.75h-4.5193c-1.1028,0-2,.8975-2,2v10c0,1.1025.8972,2,2,2h7c1.1028,0,2-.8975,2-2v-6.375c0-.4526-.1558-.8965-.394-1.1895Zm-8.606,7.5645V4h4v3c0,.5522.4478,1,1,1h2v6h-7Z"})),t)});var Qt,en;const Ni=c.forwardRef(function({children:t,size:n=16,...r},o){return c.createElement(j,{width:n,height:n,ref:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...r},Qt||(Qt=c.createElement("path",{d:"M14 16.59L11.41 14 10 15.41 14 19.41 22 11.41 20.59 10 14 16.59z"})),en||(en=c.createElement("path",{d:"M16,30,9.8242,26.7071A10.9818,10.9818,0,0,1,4,17V4A2.0021,2.0021,0,0,1,6,2H26a2.0021,2.0021,0,0,1,2,2V17a10.9818,10.9818,0,0,1-5.8242,9.7071ZM6,4V17a8.9852,8.9852,0,0,0,4.7656,7.9423L16,27.7333l5.2344-2.791A8.9852,8.9852,0,0,0,26,17V4Z"})),t)}),Ar={key:"Enter",which:13,keyCode:13,code:"Enter"},tn={key:["Escape","Esc"],which:27,keyCode:27,code:"Esc"},Sr={key:" ",which:32,keyCode:32,code:"Space"},we=(e,{key:t,which:n,keyCode:r,code:o})=>typeof e=="string"?e===t:typeof e=="number"?e===n||e===r:e.key&&Array.isArray(t)?t.includes(e.key):e.key===t||e.which===n||e.keyCode===r||e.code===o,Or=()=>{let e=0;return()=>++e},Tr=!!(typeof window<"u"&&window.document&&window.document.createElement),Lr=c.createContext(null);function wn(){return c.useContext(Lr)}const vn={...c},We=Or(),Nr=Tr?g.useLayoutEffect:g.useEffect;let je=!1;const En="id";function Pr(e=En){const t=wn(),[n,r]=g.useState(()=>je?`${t?`${t}-`:""}${e}-${We()}`:null);return Nr(()=>{n===null&&r(`${t?`${t}-`:""}${e}-${We()}`)},[We]),g.useEffect(()=>{je===!1&&(je=!0)},[]),n}function Mr(e=En){const t=wn();return`${t?`${t}-`:""}${e}-${vn.useId()}`}const Ke=vn.useId?Mr:Pr,Ue=new Map,Qe=(e,t)=>(r,o,i,...s)=>{if(typeof r[o]>"u")return;Ue.has(i)||Ue.set(i,new Set);const l=Ue.get(i);return l&&!l.has(o)&&l.add(o),e(r,o,i,...s)},xn=typeof window<"u"?g.useLayoutEffect:g.useEffect,ve={},Rn=(e,t,n)=>(r,o,i,...s)=>{if(typeof r[o]>"u")return null;if(!ve[i]||!ve[i][o]){ve[i]={...ve[i],[o]:!0};const l=r[o],f=n?n(l):null;t&&!t.includes(l)&&(n?`${l}${o}${i}${f}${l}`:`${l}${o}${i}${t.join(", ")}${l}`)}return e(r,o,i,...s)},_n=e=>{const t=g.useMemo(()=>e,e);return g.useCallback(n=>{t.forEach(r=>{typeof r=="function"?r(n):r&&(r.current=n)})},[t])},Br=(e,t,n)=>{const r=g.useRef(null);g.useEffect(()=>{r.current=n},[n]),g.useEffect(()=>{const o="current"in e?e.current:e;if(!o)return;const i=s=>{r.current&&r.current(s)};return o.addEventListener(t,i),()=>{o.removeEventListener(t,i)}},[e,t])},Ir=(e,t)=>{const n=g.useRef(null);g.useEffect(()=>{n.current=t},[t]),g.useEffect(()=>{const r=o=>{n.current&&n.current(o)};return window.addEventListener(e,r),()=>{window.removeEventListener(e,r)}},[e])},Vr={"top-left":"top-start","top-right":"top-end","bottom-left":"bottom-start","bottom-right":"bottom-end","left-bottom":"left-end","left-top":"left-start","right-bottom":"right-end","right-top":"right-start"},et=e=>Vr[e]??e;function Oe(){return typeof window<"u"}function de(e){return Cn(e)?(e.nodeName||"").toLowerCase():"#document"}function Y(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ee(e){var t;return(t=(Cn(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Cn(e){return Oe()?e instanceof Node||e instanceof Y(e).Node:!1}function G(e){return Oe()?e instanceof Element||e instanceof Y(e).Element:!1}function Q(e){return Oe()?e instanceof HTMLElement||e instanceof Y(e).HTMLElement:!1}function nn(e){return!Oe()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Y(e).ShadowRoot}const Dr=new Set(["inline","contents"]);function he(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=J(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!Dr.has(o)}const Hr=new Set(["table","td","th"]);function $r(e){return Hr.has(de(e))}const Fr=[":popover-open",":modal"];function Te(e){return Fr.some(t=>{try{return e.matches(t)}catch{return!1}})}const kr=["transform","translate","scale","rotate","perspective"],Wr=["transform","translate","scale","rotate","perspective","filter"],jr=["paint","layout","strict","content"];function tt(e){const t=nt(),n=G(e)?J(e):e;return kr.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||Wr.some(r=>(n.willChange||"").includes(r))||jr.some(r=>(n.contain||"").includes(r))}function Ur(e){let t=re(e);for(;Q(t)&&!ce(t);){if(tt(t))return t;if(Te(t))return null;t=re(t)}return null}function nt(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const zr=new Set(["html","body","#document"]);function ce(e){return zr.has(de(e))}function J(e){return Y(e).getComputedStyle(e)}function Le(e){return G(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function re(e){if(de(e)==="html")return e;const t=e.assignedSlot||e.parentNode||nn(e)&&e.host||ee(e);return nn(t)?t.host:t}function An(e){const t=re(e);return ce(t)?e.ownerDocument?e.ownerDocument.body:e.body:Q(t)&&he(t)?t:An(t)}function me(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=An(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),s=Y(o);if(i){const l=qe(s);return t.concat(s,s.visualViewport||[],he(o)?o:[],l&&n?me(l):[])}return t.concat(o,me(o,[],n))}function qe(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}const Gr=["top","right","bottom","left"],fe=Math.min,ie=Math.max,_e=Math.round,Ee=Math.floor,K=e=>({x:e,y:e}),qr={left:"right",right:"left",bottom:"top",top:"bottom"},Zr={start:"end",end:"start"};function Yr(e,t,n){return ie(e,fe(t,n))}function ge(e,t){return typeof e=="function"?e(t):e}function ue(e){return e.split("-")[0]}function be(e){return e.split("-")[1]}function Xr(e){return e==="x"?"y":"x"}function rt(e){return e==="y"?"height":"width"}const Jr=new Set(["top","bottom"]);function oe(e){return Jr.has(ue(e))?"y":"x"}function ot(e){return Xr(oe(e))}function Kr(e,t,n){n===void 0&&(n=!1);const r=be(e),o=ot(e),i=rt(o);let s=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=Ce(s)),[s,Ce(s)]}function Qr(e){const t=Ce(e);return[Ze(e),t,Ze(t)]}function Ze(e){return e.replace(/start|end/g,t=>Zr[t])}const rn=["left","right"],on=["right","left"],eo=["top","bottom"],to=["bottom","top"];function no(e,t,n){switch(e){case"top":case"bottom":return n?t?on:rn:t?rn:on;case"left":case"right":return t?eo:to;default:return[]}}function ro(e,t,n,r){const o=be(e);let i=no(ue(e),n==="start",r);return o&&(i=i.map(s=>s+"-"+o),t&&(i=i.concat(i.map(Ze)))),i}function Ce(e){return e.replace(/left|right|bottom|top/g,t=>qr[t])}function oo(e){return{top:0,right:0,bottom:0,left:0,...e}}function Sn(e){return typeof e!="number"?oo(e):{top:e,right:e,bottom:e,left:e}}function Ae(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}var io=typeof document<"u",so=function(){},Ye=io?g.useLayoutEffect:so;const ao={...bn},lo=ao.useInsertionEffect,co=lo||(e=>e());function fo(e){const t=g.useRef(()=>{});return co(()=>{t.current=e}),g.useCallback(function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return t.current==null?void 0:t.current(...r)},[])}var uo=Zn();function sn(e,t,n){let{reference:r,floating:o}=e;const i=oe(t),s=ot(t),l=rt(s),f=ue(t),u=i==="y",p=r.x+r.width/2-o.width/2,h=r.y+r.height/2-o.height/2,b=r[l]/2-o[l]/2;let d;switch(f){case"top":d={x:p,y:r.y-o.height};break;case"bottom":d={x:p,y:r.y+r.height};break;case"right":d={x:r.x+r.width,y:h};break;case"left":d={x:r.x-o.width,y:h};break;default:d={x:r.x,y:r.y}}switch(be(t)){case"start":d[s]-=b*(n&&u?-1:1);break;case"end":d[s]+=b*(n&&u?-1:1);break}return d}const po=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:s}=n,l=i.filter(Boolean),f=await(s.isRTL==null?void 0:s.isRTL(t));let u=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:p,y:h}=sn(u,r,f),b=r,d={},w=0;for(let v=0;v<l.length;v++){const{name:A,fn:R}=l[v],{x:y,y:x,data:_,reset:E}=await R({x:p,y:h,initialPlacement:r,placement:b,strategy:o,middlewareData:d,rects:u,platform:s,elements:{reference:e,floating:t}});p=y??p,h=x??h,d={...d,[A]:{...d[A],..._}},E&&w<=50&&(w++,typeof E=="object"&&(E.placement&&(b=E.placement),E.rects&&(u=E.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:o}):E.rects),{x:p,y:h}=sn(u,b,f)),v=-1)}return{x:p,y:h,placement:b,strategy:o,middlewareData:d}};async function Xe(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:i,rects:s,elements:l,strategy:f}=e,{boundary:u="clippingAncestors",rootBoundary:p="viewport",elementContext:h="floating",altBoundary:b=!1,padding:d=0}=ge(t,e),w=Sn(d),A=l[b?h==="floating"?"reference":"floating":h],R=Ae(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(A)))==null||n?A:A.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(l.floating)),boundary:u,rootBoundary:p,strategy:f})),y=h==="floating"?{x:r,y:o,width:s.floating.width,height:s.floating.height}:s.reference,x=await(i.getOffsetParent==null?void 0:i.getOffsetParent(l.floating)),_=await(i.isElement==null?void 0:i.isElement(x))?await(i.getScale==null?void 0:i.getScale(x))||{x:1,y:1}:{x:1,y:1},E=Ae(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:y,offsetParent:x,strategy:f}):y);return{top:(R.top-E.top+w.top)/_.y,bottom:(E.bottom-R.bottom+w.bottom)/_.y,left:(R.left-E.left+w.left)/_.x,right:(E.right-R.right+w.right)/_.x}}const mo=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:s,elements:l,middlewareData:f}=t,{element:u,padding:p=0}=ge(e,t)||{};if(u==null)return{};const h=Sn(p),b={x:n,y:r},d=ot(o),w=rt(d),v=await s.getDimensions(u),A=d==="y",R=A?"top":"left",y=A?"bottom":"right",x=A?"clientHeight":"clientWidth",_=i.reference[w]+i.reference[d]-b[d]-i.floating[w],E=b[d]-i.reference[d],S=await(s.getOffsetParent==null?void 0:s.getOffsetParent(u));let C=S?S[x]:0;(!C||!await(s.isElement==null?void 0:s.isElement(S)))&&(C=l.floating[x]||i.floating[w]);const $=_/2-E/2,F=C/2-v[w]/2-1,B=fe(h[R],F),k=fe(h[y],F),H=B,D=C-v[w]-k,P=C/2-v[w]/2+$,z=Yr(H,P,D),N=!f.arrow&&be(o)!=null&&P!==z&&i.reference[w]/2-(P<H?B:k)-v[w]/2<0,V=N?P<H?P-H:P-D:0;return{[d]:b[d]+V,data:{[d]:z,centerOffset:P-z-V,...N&&{alignmentOffset:V}},reset:N}}}),ho=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:s,initialPlacement:l,platform:f,elements:u}=t,{mainAxis:p=!0,crossAxis:h=!0,fallbackPlacements:b,fallbackStrategy:d="bestFit",fallbackAxisSideDirection:w="none",flipAlignment:v=!0,...A}=ge(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const R=ue(o),y=oe(l),x=ue(l)===l,_=await(f.isRTL==null?void 0:f.isRTL(u.floating)),E=b||(x||!v?[Ce(l)]:Qr(l)),S=w!=="none";!b&&S&&E.push(...ro(l,v,w,_));const C=[l,...E],$=await Xe(t,A),F=[];let B=((r=i.flip)==null?void 0:r.overflows)||[];if(p&&F.push($[R]),h){const P=Kr(o,s,_);F.push($[P[0]],$[P[1]])}if(B=[...B,{placement:o,overflows:F}],!F.every(P=>P<=0)){var k,H;const P=(((k=i.flip)==null?void 0:k.index)||0)+1,z=C[P];if(z&&(!(h==="alignment"?y!==oe(z):!1)||B.every(O=>oe(O.placement)===y?O.overflows[0]>0:!0)))return{data:{index:P,overflows:B},reset:{placement:z}};let N=(H=B.filter(V=>V.overflows[0]<=0).sort((V,O)=>V.overflows[1]-O.overflows[1])[0])==null?void 0:H.placement;if(!N)switch(d){case"bestFit":{var D;const V=(D=B.filter(O=>{if(S){const W=oe(O.placement);return W===y||W==="y"}return!0}).map(O=>[O.placement,O.overflows.filter(W=>W>0).reduce((W,M)=>W+M,0)]).sort((O,W)=>O[1]-W[1])[0])==null?void 0:D[0];V&&(N=V);break}case"initialPlacement":N=l;break}if(o!==N)return{reset:{placement:N}}}return{}}}};function an(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function ln(e){return Gr.some(t=>e[t]>=0)}const go=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=ge(e,t);switch(r){case"referenceHidden":{const i=await Xe(t,{...o,elementContext:"reference"}),s=an(i,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:ln(s)}}}case"escaped":{const i=await Xe(t,{...o,altBoundary:!0}),s=an(i,n.floating);return{data:{escapedOffsets:s,escaped:ln(s)}}}default:return{}}}}},bo=new Set(["left","top"]);async function yo(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),s=ue(n),l=be(n),f=oe(n)==="y",u=bo.has(s)?-1:1,p=i&&f?-1:1,h=ge(t,e);let{mainAxis:b,crossAxis:d,alignmentAxis:w}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return l&&typeof w=="number"&&(d=l==="end"?w*-1:w),f?{x:d*p,y:b*u}:{x:b*u,y:d*p}}const wo=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:s,middlewareData:l}=t,f=await yo(t,e);return s===((n=l.offset)==null?void 0:n.placement)&&(r=l.arrow)!=null&&r.alignmentOffset?{}:{x:o+f.x,y:i+f.y,data:{...f,placement:s}}}}};function On(e){const t=J(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Q(e),i=o?e.offsetWidth:n,s=o?e.offsetHeight:r,l=_e(n)!==i||_e(r)!==s;return l&&(n=i,r=s),{width:n,height:r,$:l}}function it(e){return G(e)?e:e.contextElement}function le(e){const t=it(e);if(!Q(t))return K(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=On(t);let s=(i?_e(n.width):n.width)/r,l=(i?_e(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}const vo=K(0);function Tn(e){const t=Y(e);return!nt()||!t.visualViewport?vo:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Eo(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Y(e)?!1:t}function se(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=it(e);let s=K(1);t&&(r?G(r)&&(s=le(r)):s=le(e));const l=Eo(i,n,r)?Tn(i):K(0);let f=(o.left+l.x)/s.x,u=(o.top+l.y)/s.y,p=o.width/s.x,h=o.height/s.y;if(i){const b=Y(i),d=r&&G(r)?Y(r):r;let w=b,v=qe(w);for(;v&&r&&d!==w;){const A=le(v),R=v.getBoundingClientRect(),y=J(v),x=R.left+(v.clientLeft+parseFloat(y.paddingLeft))*A.x,_=R.top+(v.clientTop+parseFloat(y.paddingTop))*A.y;f*=A.x,u*=A.y,p*=A.x,h*=A.y,f+=x,u+=_,w=Y(v),v=qe(w)}}return Ae({width:p,height:h,x:f,y:u})}function Ne(e,t){const n=Le(e).scrollLeft;return t?t.left+n:se(ee(e)).left+n}function Ln(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-Ne(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function xo(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i=o==="fixed",s=ee(r),l=t?Te(t.floating):!1;if(r===s||l&&i)return n;let f={scrollLeft:0,scrollTop:0},u=K(1);const p=K(0),h=Q(r);if((h||!h&&!i)&&((de(r)!=="body"||he(s))&&(f=Le(r)),Q(r))){const d=se(r);u=le(r),p.x=d.x+r.clientLeft,p.y=d.y+r.clientTop}const b=s&&!h&&!i?Ln(s,f):K(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-f.scrollLeft*u.x+p.x+b.x,y:n.y*u.y-f.scrollTop*u.y+p.y+b.y}}function Ro(e){return Array.from(e.getClientRects())}function _o(e){const t=ee(e),n=Le(e),r=e.ownerDocument.body,o=ie(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=ie(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+Ne(e);const l=-n.scrollTop;return J(r).direction==="rtl"&&(s+=ie(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:s,y:l}}const cn=25;function Co(e,t){const n=Y(e),r=ee(e),o=n.visualViewport;let i=r.clientWidth,s=r.clientHeight,l=0,f=0;if(o){i=o.width,s=o.height;const p=nt();(!p||p&&t==="fixed")&&(l=o.offsetLeft,f=o.offsetTop)}const u=Ne(r);if(u<=0){const p=r.ownerDocument,h=p.body,b=getComputedStyle(h),d=p.compatMode==="CSS1Compat"&&parseFloat(b.marginLeft)+parseFloat(b.marginRight)||0,w=Math.abs(r.clientWidth-h.clientWidth-d);w<=cn&&(i-=w)}else u<=cn&&(i+=u);return{width:i,height:s,x:l,y:f}}const Ao=new Set(["absolute","fixed"]);function So(e,t){const n=se(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=Q(e)?le(e):K(1),s=e.clientWidth*i.x,l=e.clientHeight*i.y,f=o*i.x,u=r*i.y;return{width:s,height:l,x:f,y:u}}function fn(e,t,n){let r;if(t==="viewport")r=Co(e,n);else if(t==="document")r=_o(ee(e));else if(G(t))r=So(t,n);else{const o=Tn(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Ae(r)}function Nn(e,t){const n=re(e);return n===t||!G(n)||ce(n)?!1:J(n).position==="fixed"||Nn(n,t)}function Oo(e,t){const n=t.get(e);if(n)return n;let r=me(e,[],!1).filter(l=>G(l)&&de(l)!=="body"),o=null;const i=J(e).position==="fixed";let s=i?re(e):e;for(;G(s)&&!ce(s);){const l=J(s),f=tt(s);!f&&l.position==="fixed"&&(o=null),(i?!f&&!o:!f&&l.position==="static"&&!!o&&Ao.has(o.position)||he(s)&&!f&&Nn(e,s))?r=r.filter(p=>p!==s):o=l,s=re(s)}return t.set(e,r),r}function To(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const s=[...n==="clippingAncestors"?Te(t)?[]:Oo(t,this._c):[].concat(n),r],l=s[0],f=s.reduce((u,p)=>{const h=fn(t,p,o);return u.top=ie(h.top,u.top),u.right=fe(h.right,u.right),u.bottom=fe(h.bottom,u.bottom),u.left=ie(h.left,u.left),u},fn(t,l,o));return{width:f.right-f.left,height:f.bottom-f.top,x:f.left,y:f.top}}function Lo(e){const{width:t,height:n}=On(e);return{width:t,height:n}}function No(e,t,n){const r=Q(t),o=ee(t),i=n==="fixed",s=se(e,!0,i,t);let l={scrollLeft:0,scrollTop:0};const f=K(0);function u(){f.x=Ne(o)}if(r||!r&&!i)if((de(t)!=="body"||he(o))&&(l=Le(t)),r){const d=se(t,!0,i,t);f.x=d.x+t.clientLeft,f.y=d.y+t.clientTop}else o&&u();i&&!r&&o&&u();const p=o&&!r&&!i?Ln(o,l):K(0),h=s.left+l.scrollLeft-f.x-p.x,b=s.top+l.scrollTop-f.y-p.y;return{x:h,y:b,width:s.width,height:s.height}}function ze(e){return J(e).position==="static"}function un(e,t){if(!Q(e)||J(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return ee(e)===n&&(n=n.ownerDocument.body),n}function Pn(e,t){const n=Y(e);if(Te(e))return n;if(!Q(e)){let o=re(e);for(;o&&!ce(o);){if(G(o)&&!ze(o))return o;o=re(o)}return n}let r=un(e,t);for(;r&&$r(r)&&ze(r);)r=un(r,t);return r&&ce(r)&&ze(r)&&!tt(r)?n:r||Ur(e)||n}const Po=async function(e){const t=this.getOffsetParent||Pn,n=this.getDimensions,r=await n(e.floating);return{reference:No(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Mo(e){return J(e).direction==="rtl"}const Bo={convertOffsetParentRelativeRectToViewportRelativeRect:xo,getDocumentElement:ee,getClippingRect:To,getOffsetParent:Pn,getElementRects:Po,getClientRects:Ro,getDimensions:Lo,getScale:le,isElement:G,isRTL:Mo};function Mn(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Io(e,t){let n=null,r;const o=ee(e);function i(){var l;clearTimeout(r),(l=n)==null||l.disconnect(),n=null}function s(l,f){l===void 0&&(l=!1),f===void 0&&(f=1),i();const u=e.getBoundingClientRect(),{left:p,top:h,width:b,height:d}=u;if(l||t(),!b||!d)return;const w=Ee(h),v=Ee(o.clientWidth-(p+b)),A=Ee(o.clientHeight-(h+d)),R=Ee(p),x={rootMargin:-w+"px "+-v+"px "+-A+"px "+-R+"px",threshold:ie(0,fe(1,f))||1};let _=!0;function E(S){const C=S[0].intersectionRatio;if(C!==f){if(!_)return s();C?s(!1,C):r=setTimeout(()=>{s(!1,1e-7)},1e3)}C===1&&!Mn(u,e.getBoundingClientRect())&&s(),_=!1}try{n=new IntersectionObserver(E,{...x,root:o.ownerDocument})}catch{n=new IntersectionObserver(E,x)}n.observe(e)}return s(!0),i}function Vo(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:f=!1}=r,u=it(e),p=o||i?[...u?me(u):[],...me(t)]:[];p.forEach(R=>{o&&R.addEventListener("scroll",n,{passive:!0}),i&&R.addEventListener("resize",n)});const h=u&&l?Io(u,n):null;let b=-1,d=null;s&&(d=new ResizeObserver(R=>{let[y]=R;y&&y.target===u&&d&&(d.unobserve(t),cancelAnimationFrame(b),b=requestAnimationFrame(()=>{var x;(x=d)==null||x.observe(t)})),n()}),u&&!f&&d.observe(u),d.observe(t));let w,v=f?se(e):null;f&&A();function A(){const R=se(e);v&&!Mn(v,R)&&n(),v=R,w=requestAnimationFrame(A)}return n(),()=>{var R;p.forEach(y=>{o&&y.removeEventListener("scroll",n),i&&y.removeEventListener("resize",n)}),h?.(),(R=d)==null||R.disconnect(),d=null,f&&cancelAnimationFrame(w)}}const Do=wo,Ho=ho,$o=go,dn=mo,Fo=(e,t,n)=>{const r=new Map,o={platform:Bo,...n},i={...o.platform,_c:r};return po(e,t,{...o,platform:i})};var ko=typeof document<"u",Wo=function(){},xe=ko?g.useLayoutEffect:Wo;function Se(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Se(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const i=o[r];if(!(i==="_owner"&&e.$$typeof)&&!Se(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function Bn(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function pn(e,t){const n=Bn(e);return Math.round(t*n)/n}function Ge(e){const t=g.useRef(e);return xe(()=>{t.current=e}),t}function jo(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:s}={},transform:l=!0,whileElementsMounted:f,open:u}=e,[p,h]=g.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[b,d]=g.useState(r);Se(b,r)||d(r);const[w,v]=g.useState(null),[A,R]=g.useState(null),y=g.useCallback(O=>{O!==S.current&&(S.current=O,v(O))},[]),x=g.useCallback(O=>{O!==C.current&&(C.current=O,R(O))},[]),_=i||w,E=s||A,S=g.useRef(null),C=g.useRef(null),$=g.useRef(p),F=f!=null,B=Ge(f),k=Ge(o),H=Ge(u),D=g.useCallback(()=>{if(!S.current||!C.current)return;const O={placement:t,strategy:n,middleware:b};k.current&&(O.platform=k.current),Fo(S.current,C.current,O).then(W=>{const M={...W,isPositioned:H.current!==!1};P.current&&!Se($.current,M)&&($.current=M,uo.flushSync(()=>{h(M)}))})},[b,t,n,k,H]);xe(()=>{u===!1&&$.current.isPositioned&&($.current.isPositioned=!1,h(O=>({...O,isPositioned:!1})))},[u]);const P=g.useRef(!1);xe(()=>(P.current=!0,()=>{P.current=!1}),[]),xe(()=>{if(_&&(S.current=_),E&&(C.current=E),_&&E){if(B.current)return B.current(_,E,D);D()}},[_,E,D,B,F]);const z=g.useMemo(()=>({reference:S,floating:C,setReference:y,setFloating:x}),[y,x]),N=g.useMemo(()=>({reference:_,floating:E}),[_,E]),V=g.useMemo(()=>{const O={position:n,left:0,top:0};if(!N.floating)return O;const W=pn(N.floating,p.x),M=pn(N.floating,p.y);return l?{...O,transform:"translate("+W+"px, "+M+"px)",...Bn(N.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:W,top:M}},[n,l,N.floating,p.x,p.y]);return g.useMemo(()=>({...p,update:D,refs:z,elements:N,floatingStyles:V}),[p,D,z,N,V])}const Uo=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?dn({element:r.current,padding:o}).fn(n):{}:r?dn({element:r,padding:o}).fn(n):{}}}},zo=(e,t)=>({...Do(e),options:[e,t]}),Go=(e,t)=>({...Ho(e),options:[e,t]}),qo=(e,t)=>({...$o(e),options:[e,t]}),Zo=(e,t)=>({...Uo(e),options:[e,t]}),Yo={...bn};let mn=!1,Xo=0;const hn=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+Xo++;function Jo(){const[e,t]=g.useState(()=>mn?hn():void 0);return Ye(()=>{e==null&&t(hn())},[]),g.useEffect(()=>{mn=!0},[]),e}const Ko=Yo.useId,Qo=Ko||Jo;function ei(){const e=new Map;return{emit(t,n){var r;(r=e.get(t))==null||r.forEach(o=>o(n))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){var r;(r=e.get(t))==null||r.delete(n)}}}const ti=g.createContext(null),ni=g.createContext(null),ri=()=>{var e;return((e=g.useContext(ti))==null?void 0:e.id)||null},oi=()=>g.useContext(ni);function ii(e){const{open:t=!1,onOpenChange:n,elements:r}=e,o=Qo(),i=g.useRef({}),[s]=g.useState(()=>ei()),l=ri()!=null,[f,u]=g.useState(r.reference),p=fo((d,w,v)=>{i.current.openEvent=d?w:void 0,s.emit("openchange",{open:d,event:w,reason:v,nested:l}),n?.(d,w,v)}),h=g.useMemo(()=>({setPositionReference:u}),[]),b=g.useMemo(()=>({reference:f||r.reference||null,floating:r.floating||null,domReference:r.reference}),[f,r.reference,r.floating]);return g.useMemo(()=>({dataRef:i,open:t,onOpenChange:p,elements:b,events:s,floatingId:o,refs:h}),[t,p,b,s,o,h])}function si(e){e===void 0&&(e={});const{nodeId:t}=e,n=ii({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,o=r.elements,[i,s]=g.useState(null),[l,f]=g.useState(null),p=o?.domReference||i,h=g.useRef(null),b=oi();Ye(()=>{p&&(h.current=p)},[p]);const d=jo({...e,elements:{...o,...l&&{reference:l}}}),w=g.useCallback(x=>{const _=G(x)?{getBoundingClientRect:()=>x.getBoundingClientRect(),getClientRects:()=>x.getClientRects(),contextElement:x}:x;f(_),d.refs.setReference(_)},[d.refs]),v=g.useCallback(x=>{(G(x)||x===null)&&(h.current=x,s(x)),(G(d.refs.reference.current)||d.refs.reference.current===null||x!==null&&!G(x))&&d.refs.setReference(x)},[d.refs]),A=g.useMemo(()=>({...d.refs,setReference:v,setPositionReference:w,domReference:h}),[d.refs,v,w]),R=g.useMemo(()=>({...d.elements,domReference:p}),[d.elements,p]),y=g.useMemo(()=>({...d,...r,refs:A,elements:R,nodeId:t}),[d,A,R,t,r]);return Ye(()=>{r.dataRef.current.floatingContext=y;const x=b?.nodesRef.current.find(_=>_.id===t);x&&(x.context=y)}),g.useMemo(()=>({...d,context:y,refs:A,elements:R}),[d,A,R,y])}const ai=g.createContext(Re);a.node,Qe(a.objectOf(a.bool)),a.bool,a.bool,a.bool,a.bool,a.bool,a.bool,a.bool,a.bool,a.bool,a.bool;function In(e){return g.useContext(ai).enabled(e)}const Vn=c.createContext({setFloating:{current:null},caretRef:{current:null},autoAlign:null}),Dn=c.forwardRef(function({isTabTip:t,align:n=t?"bottom-start":"bottom",as:r="span",autoAlign:o=!1,autoAlignBoundary:i,backgroundToken:s="layer",caret:l=!t,className:f,children:u,border:p=!1,dropShadow:h=!0,highContrast:b=!1,onRequestClose:d,open:w,alignmentAxisOffset:v,...A},R){const y=X(),x=g.useRef(null),_=g.useRef(null),E=g.useRef(null),S=In("enable-v12-dynamic-floating-styles")||o;let C=et(n);Br(E,"focusout",M=>{const L=M.relatedTarget;if(t){L&&!E.current?.contains(L)&&d?.();return}if(!L){d?.();return}const U=!E.current?.contains(L),I=S&&B.floating.current?!B.floating.current.contains(L):!0;U&&I&&d?.()}),Ir("click",({target:M})=>{w&&M instanceof Node&&!E.current?.contains(M)&&d?.()});const $=c.Children.toArray(u).some(M=>M?.props?.className?.includes("slug")||M?.props?.className?.includes("ai-label"))?7:6,F=g.useRef({offset:10,caretHeight:$});xn(()=>{if(l&&E.current){const M=window.getComputedStyle(E.current,null),L=M.getPropertyValue("--cds-popover-offset"),U=M.getPropertyValue("--cds-popover-caret-height");L&&(F.current.offset=L.includes("px")?Number(L.split("px",1)[0])*1:Number(L.split("rem",1)[0])*16),U&&(F.current.caretHeight=U.includes("px")?Number(U.split("px",1)[0])*1:Number(U.split("rem",1)[0])*16)}});const{refs:B,floatingStyles:k,placement:H,middlewareData:D}=si(S?{placement:C,strategy:"fixed",middleware:[zo(t?0:{alignmentAxis:v,mainAxis:F?.current?.offset}),o&&Go({fallbackPlacements:t?C.includes("bottom")?["bottom-start","bottom-end","top-start","top-end"]:["top-start","top-end","bottom-start","bottom-end"]:C.includes("bottom")?["bottom","bottom-start","bottom-end","right","right-start","right-end","left","left-start","left-end","top","top-start","top-end"]:["top","top-start","top-end","left","left-start","left-end","right","right-start","right-end","bottom","bottom-start","bottom-end"],fallbackStrategy:"initialPlacement",fallbackAxisSideDirection:"start",boundary:i}),Zo({element:_,padding:16}),o&&qo()],whileElementsMounted:Vo}:{}),P=g.useMemo(()=>({floating:x,setFloating:B.setFloating,caretRef:_,autoAlign:o}),[B.setFloating,o]);t&&(["bottom-start","bottom-end"].includes(C)||(C="bottom-start")),g.useEffect(()=>{if(S){const M={...k,visibility:D.hide?.referenceHidden?"hidden":"visible"};if(Object.keys(M).forEach(L=>{B.floating.current&&(B.floating.current.style[L]=M[L])}),l&&D&&D.arrow&&_?.current){const{x:L,y:U}=D.arrow,I={top:"bottom",right:"left",bottom:"top",left:"right"}[H.split("-")[0]];_.current.style.left=L!=null?`${L}px`:"",_.current.style.top=U!=null?`${U}px`:"",_.current.style.right="",_.current.style.bottom="",I&&(_.current.style[I]=`${-F?.current?.caretHeight}px`)}}},[k,B.floating,S,D,H,l]);const z=_n([R,E]),N=o&&H!==C?H:C,V=q({[`${y}--popover-container`]:!0,[`${y}--popover--caret`]:l,[`${y}--popover--drop-shadow`]:h,[`${y}--popover--border`]:p,[`${y}--popover--high-contrast`]:b,[`${y}--popover--open`]:w,[`${y}--popover--auto-align ${y}--autoalign`]:S,[`${y}--popover--${N}`]:!0,[`${y}--popover--tab-tip`]:t,[`${y}--popover--background-token__background`]:s==="background"&&!b},f),O=c.Children.map(u,M=>{const L=M,U=L?.type?.displayName,I=L?.type==="button",ae=S&&U&&["ToggletipButton"].includes(U),ye=S&&!["ToggletipContent","PopoverContent"].includes(U);if(c.isValidElement(L)&&(I||ae||ye)){const te=L?.props?.className,ne=(L?.props).ref,Gn=q(`${y}--popover--tab-tip__button`,te);return c.cloneElement(L,{className:t&&L?.type==="button"?Gn:te||"",ref:Be=>{(S&&L?.type!==Pe||S&&L?.type.displayName==="ToggletipButton")&&B.setReference(Be),typeof ne=="function"?ne(Be):ne!=null&&(ne.current=Be)}})}else return L}),W=r;return c.createElement(Vn.Provider,{value:P},c.createElement(W,Z({},A,{className:V,ref:z}),S||t?O:u))});Dn.propTypes={align:Rn(a.oneOf(["top","top-left","top-right","bottom","bottom-left","bottom-right","left","left-bottom","left-top","right","right-bottom","right-top","top-start","top-end","bottom-start","bottom-end","left-end","left-start","right-end","right-start"]),["top","top-start","top-end","bottom","bottom-start","bottom-end","left","left-start","left-end","right","right-start","right-end"],et),alignmentAxisOffset:a.number,as:a.oneOfType([a.string,a.elementType]),autoAlign:a.bool,backgroundToken:a.oneOf(["layer","background"]),autoAlignBoundary:a.oneOfType([a.oneOf(["clippingAncestors"]),a.elementType,a.arrayOf(a.elementType),a.exact({x:a.number.isRequired,y:a.number.isRequired,width:a.number.isRequired,height:a.number.isRequired})]),caret:a.bool,border:a.bool,children:a.node,className:a.string,dropShadow:a.bool,highContrast:a.bool,isTabTip:a.bool,onRequestClose:a.func,open:a.bool.isRequired};function li({className:e,children:t,...n},r){const o=X(),{setFloating:i,caretRef:s,autoAlign:l}=c.useContext(Vn),f=_n([i,r]),u=In("enable-v12-dynamic-floating-styles")||l;return c.createElement("span",Z({},n,{className:`${o}--popover`}),c.createElement("span",{className:q(`${o}--popover-content`,e),ref:f},t,u&&c.createElement("span",{className:q({[`${o}--popover-caret`]:!0,[`${o}--popover--auto-align`]:!0}),ref:s})),!u&&c.createElement("span",{className:q({[`${o}--popover-caret`]:!0}),ref:s}))}const Pe=c.forwardRef(li);Pe.displayName="PopoverContent";Pe.propTypes={children:a.node,className:a.string};function ci(e){const[t,n]=g.useState(e),r=g.useRef(null),o=g.useCallback((i,s=0)=>{if(window.clearTimeout(r.current??void 0),r.current=null,s===0){n(i);return}r.current=window.setTimeout(()=>{n(i),r.current=null},s)},[]);return g.useEffect(()=>()=>{window.clearTimeout(r.current??void 0)},[]),[t,o]}const gn=new Set(["mouseup","touchend","touchcancel"]),Hn=c.forwardRef(({as:e,align:t="top",className:n,children:r,label:o,description:i,enterDelayMs:s=100,leaveDelayMs:l=300,defaultOpen:f=!1,closeOnActivation:u=!1,dropShadow:p=!1,highContrast:h=!0,...b},d)=>{g.useRef(null);const[w,v]=ci(f),[A,R]=g.useState(!1),[y,x]=g.useState(!1),[_,E]=g.useState(!1),S=Ke("tooltip"),C=X(),$=c.Children.only(r),{"aria-labelledby":F,"aria-describedby":B}=$?.props??{},k=!!o,P={onFocus:()=>!y&&v(!0),onBlur:()=>{v(!1),x(!1)},onClick:()=>u&&v(!1),onMouseEnter:V,onMouseLeave:W,onMouseDown:O,onMouseMove:M,onTouchStart:L,"aria-labelledby":F??(k?S:void 0),"aria-describedby":B??(k?void 0:S)};function z(I){const ae=Object.keys(P).filter(te=>te.startsWith("on")),ye={};return ae.forEach(te=>{ye[te]=ne=>{P[te](ne),I?.[te]&&I?.[te](ne)}}),ye}const N=g.useCallback(I=>{w&&we(I,tn)&&(I.stopPropagation(),v(!1)),w&&u&&(we(I,Ar)||we(I,Sr))&&v(!1)},[u,w,v]);xn(()=>{if(!w)return;function I(ae){we(ae,tn)&&N(ae)}return document.addEventListener("keydown",I),()=>{document.removeEventListener("keydown",I)}},[w,N]);function V(){b?.onMouseEnter||(E(!0),v(!0,s))}function O(){x(!0),L()}function W(){E(!1),!A&&v(!1,l)}function M(I){I.buttons===1?R(!0):R(!1)}function L(){R(!0)}const U=g.useCallback(()=>{R(!1),_||v(!1,l)},[_,l,v]);return g.useEffect(()=>(A&&gn.forEach(I=>{document.addEventListener(I,U)}),()=>{gn.forEach(I=>{document.removeEventListener(I,U)})}),[A,U]),c.createElement(Dn,Z({as:e,ref:d},b,{align:t,className:q(`${C}--tooltip`,n),dropShadow:p,highContrast:h,onKeyDown:N,onMouseLeave:W,open:w}),c.createElement("div",{className:`${C}--tooltip-trigger__wrapper`},typeof $<"u"?c.cloneElement($,{...P,...z($.props)}):null),c.createElement(Pe,{"aria-hidden":w?"false":"true",className:`${C}--tooltip-content`,id:S,onMouseEnter:V,role:"tooltip"},o||i))});Hn.propTypes={align:a.oneOf(["top","top-left","top-right","bottom","bottom-left","bottom-right","left","left-bottom","left-top","right","right-bottom","right-top","top-start","top-end","bottom-start","bottom-end","left-end","left-start","right-end","right-start"]),children:a.node,className:a.string,closeOnActivation:a.bool,defaultOpen:a.bool,description:a.node,dropShadow:a.bool,enterDelayMs:a.number,highContrast:a.bool,label:a.node,leaveDelayMs:a.number};const $n=c.forwardRef(function({as:t,children:n,className:r,dangerDescription:o="danger",disabled:i=!1,hasIconOnly:s=!1,href:l,iconDescription:f,isExpressive:u=!1,isSelected:p,kind:h="primary",onBlur:b,onClick:d,onFocus:w,onMouseEnter:v,onMouseLeave:A,renderIcon:R,size:y,tabIndex:x,type:_="button",...E},S){const C=X(),$=q(r,{[`${C}--btn`]:!0,[`${C}--btn--xs`]:y==="xs"&&!u,[`${C}--btn--sm`]:y==="sm"&&!u,[`${C}--btn--md`]:y==="md"&&!u,[`${C}--btn--lg`]:y==="lg"&&!u,[`${C}--btn--xl`]:y==="xl",[`${C}--btn--2xl`]:y==="2xl",[`${C}--layout--size-${y}`]:y,[`${C}--btn--${h}`]:h,[`${C}--btn--disabled`]:i,[`${C}--btn--expressive`]:u,[`${C}--btn--icon-only`]:s,[`${C}--btn--selected`]:s&&p&&h==="ghost"}),F={tabIndex:x,className:$,ref:S},B=R?c.createElement(R,{"aria-label":f,className:`${C}--btn__icon`,"aria-hidden":"true"}):null,k=["danger","danger--tertiary","danger--ghost"];let H="button";const D=Ke("danger-description"),{"aria-pressed":P,"aria-describedby":z}=E;let N={disabled:i,type:_,"aria-describedby":k.includes(h)?D:z||void 0,"aria-pressed":P??(s&&h==="ghost"?p:void 0)};const V={href:l};let O=null;return k.includes(h)&&(O=c.createElement("span",{id:D,className:`${C}--visually-hidden`},o)),t?(H=t,N={...N,...V}):l&&!i&&(H="a",N=V),c.createElement(H,{onMouseEnter:v,onMouseLeave:A,onFocus:w,onBlur:b,onClick:d,...E,...F,...N},O,n,B)}),Fn=c.forwardRef(function({className:t,count:n,...r},o){const i=X(),s=q(`${i}--badge-indicator`,t,{[`${i}--badge-indicator--count`]:n}),l=n&&n>999?"999+":n;return c.createElement("div",Z({className:s,ref:o},r),l)});Fn.propTypes={className:a.string,count:a.number,id:a.string};const kn=["primary","secondary","ghost","tertiary"],Wn=c.forwardRef(({align:e,autoAlign:t=!1,badgeCount:n,children:r,className:o,closeOnActivation:i=!0,defaultOpen:s=!1,disabled:l,dropShadow:f=!1,enterDelayMs:u=100,highContrast:p=!0,kind:h,label:b,leaveDelayMs:d=100,wrapperClasses:w,size:v,isSelected:A,...R},y)=>{const x=X(),_=q(w,`${x}--icon-tooltip`,{[`${x}--icon-tooltip--disabled`]:l});n&&(h!=="ghost"||v!=="lg")&&console.warn("The prop BadgeCount must be used with hasIconOnly=true, kind='ghost' and size='lg'");const E=Ke("badge-indicator");return c.createElement(Hn,{align:e,autoAlign:t,closeOnActivation:i,className:_,defaultOpen:s,dropShadow:f,enterDelayMs:u,highContrast:p,label:b,leaveDelayMs:d},c.createElement($n,Z({},R,{disabled:l,kind:h,ref:y,size:v,isSelected:A,hasIconOnly:!0,className:o,"aria-describedby":R["aria-describedby"]||n&&E}),r,!l&&n!==void 0&&c.createElement(Fn,{id:E,count:n>0?n:void 0})))});Wn.propTypes={align:Rn(a.oneOf(["top","top-left","top-right","bottom","bottom-left","bottom-right","left","left-bottom","left-top","right","right-bottom","right-top","top-start","top-end","bottom-start","bottom-end","left-end","left-start","right-end","right-start"]),["top","top-start","top-end","bottom","bottom-start","bottom-end","left","left-start","left-end","right","right-start","right-end"],et),autoAlign:a.bool,badgeCount:a.number,href:a.string,children:a.node,className:a.string,closeOnActivation:a.bool,defaultOpen:a.bool,dropShadow:a.bool,disabled:a.bool,enterDelayMs:a.number,isSelected:a.bool,highContrast:a.bool,kind:a.oneOf(kn),label:a.node.isRequired,leaveDelayMs:a.number,rel:a.string,size:a.oneOf(["sm","md","lg"]),target:a.string,wrapperClasses:a.string};const fi=["primary","secondary","danger","ghost","danger--primary","danger--ghost","danger--tertiary","tertiary"];function ui(e,t){return e===!0}const st=c.forwardRef((e,t)=>{const{as:n,autoAlign:r=!1,children:o,hasIconOnly:i=!1,tooltipHighContrast:s=!0,tooltipDropShadow:l=!1,iconDescription:f,kind:u="primary",onBlur:p,onClick:h,onFocus:b,onMouseEnter:d,onMouseLeave:w,renderIcon:v,size:A,tooltipAlignment:R="center",tooltipPosition:y="top",...x}=e;v&&!o&&!f&&console.error("Button: renderIcon property specified without also providing an iconDescription property. This may impact accessibility for screen reader users.");const _=v?c.createElement(v,null):null;if(ui(i)){let E;return(y==="top"||y==="bottom")&&(R==="center"&&(E=y),R==="end"&&(E=`${y}-end`),R==="start"&&(E=`${y}-start`)),(y==="right"||y==="left")&&(E=y),c.createElement(Wn,Z({},x,{ref:t,as:n,align:E,label:f,kind:u,size:A,highContrast:s,dropShadow:l,onMouseEnter:d,onMouseLeave:w,onFocus:b,onBlur:p,autoAlign:r,onClick:h,renderIcon:_?null:v}),_??o)}else{const{tooltipAlignment:E,...S}=e;return c.createElement($n,Z({ref:t},S))}});st.displayName="Button";st.propTypes={as:a.oneOfType([a.func,a.string,a.elementType]),autoAlign:a.bool,children:a.node,className:a.string,dangerDescription:a.string,disabled:a.bool,hasIconOnly:a.bool,href:a.string,iconDescription:e=>e.renderIcon&&!e.children&&!e.iconDescription?new Error("renderIcon property specified without also providing an iconDescription property."):null,isExpressive:a.bool,isSelected:a.bool,kind:(e,t,n)=>{const{hasIconOnly:r}=e,o=r?kn:fi;return e[t]===void 0||o.includes(e[t])?null:new Error(`Invalid prop \`${t}\` supplied to \`${n}\`. Expected one of ${o.join(", ")}.`)},onBlur:a.func,onClick:a.func,onFocus:a.func,onMouseEnter:a.func,onMouseLeave:a.func,rel:a.string,renderIcon:a.oneOfType([a.func,a.object]),role:a.string,size:a.oneOf(["xs","sm","md","lg","xl","2xl"]),tabIndex:a.number,target:a.string,tooltipAlignment:a.oneOf(["start","center","end"]),tooltipDropShadow:a.bool,tooltipHighContrast:a.bool,tooltipPosition:a.oneOf(["top","right","bottom","left"]),type:a.oneOf(["button","reset","submit"])};const di=({name:e,className:t,type:n})=>{function r({className:o,...i}){const s=X(),l=q(typeof t=="function"?t(s):t,o);return c.createElement(n,{...i,className:l||void 0})}return r.displayName=e,r.propTypes={className:a.string},r},pi=({className:e,children:t,...n})=>{const r=X(),o=q(`${r}--header`,e);return c.createElement("header",Z({},n,{className:o}),t)};pi.propTypes={"aria-label":a.string,"aria-labelledby":a.string,className:a.string};const mi=e=>{const t=Object.keys(e),n=r=>((o,i,s,...l)=>r(o,i,s,...l));return t.reduce((r,o)=>({...r,[o]:n(e[o])}),{})},jn=mi({"aria-label":a.string,"aria-labelledby":a.string}),Un=c.forwardRef(({"aria-label":e,"aria-labelledby":t,children:n,className:r,onClick:o,tooltipHighContrast:i=!0,tooltipDropShadow:s,isActive:l,tooltipAlignment:f,...u},p)=>{const h=X(),b=q({[r]:!!r,[`${h}--header__action`]:!0,[`${h}--header__action--active`]:l}),d={"aria-label":e,"aria-labelledby":t};return c.createElement(st,Z({},u,d,{className:b,onClick:o,type:"button",hasIconOnly:!0,size:"lg",kind:"ghost",iconDescription:e,tooltipPosition:"bottom",tooltipAlignment:f,tooltipDropShadow:s,tooltipHighContrast:i,ref:p}),n)});Un.propTypes={...jn,children:a.node.isRequired,className:a.string,isActive:a.bool,onClick:a.func,tooltipAlignment:a.oneOf(["start","center","end"]),tooltipDropShadow:a.bool,tooltipHighContrast:a.bool};Un.displayName="HeaderGlobalAction";const Pi=di({name:"HeaderGlobalBar",className:e=>`${e}--header__global`,type:"div"}),hi=({element:e,as:t,isSideNavExpanded:n,...r},o)=>{const i=t??e??"a";return c.createElement(i,Z({ref:o},r))},Me=c.forwardRef(hi),at={as:a.elementType,element:Qe(a.elementType),isSideNavExpanded:a.bool};Me.displayName="Link";Me.propTypes=at;const zn=g.forwardRef(function({className:t,isActive:n,isCurrentPage:r,"aria-current":o,children:i,role:s,tabIndex:l,...f},u){const p=X(),h=l??0;r&&(n=r);const b=n&&o!=="page",d=q({[`${p}--header__menu-item`]:!0,[`${p}--header__menu-item--current`]:b});return c.createElement("li",{className:t,role:s},c.createElement(Me,Z({},f,{"aria-current":b?!0:o,className:d,ref:u,tabIndex:h}),c.createElement("span",{className:`${p}--text-truncate--end`},i)))});zn.displayName="HeaderMenuItem";zn.propTypes={...at,children:a.node.isRequired,className:a.string,isActive:a.bool,isCurrentPage:Qe(a.bool),role:a.string,tabIndex:a.number};function gi({children:e,className:t,prefix:n="IBM",...r}){const o=X(),i=q(`${o}--header__name`,t);return c.createElement(Me,Z({},r,{className:i}),n&&c.createElement(c.Fragment,null,c.createElement("span",{className:`${o}--header__name--prefix`},n)," "),e)}gi.propTypes={...at,children:a.node.isRequired,className:a.string,href:a.string,prefix:a.string};function bi({"aria-label":e,"aria-labelledby":t,children:n,className:r,...o}){const i=X(),s=q(`${i}--header__nav`,r);return c.createElement("nav",Z({},o,{"aria-label":e,"aria-labelledby":t,className:s}),c.createElement("ul",{className:`${i}--header__menu-bar`},n))}bi.propTypes={...jn,children:a.node,className:a.string};export{vi as A,st as B,Ri as C,_i as D,pi as H,Ai as L,Oi as M,Ti as P,Li as R,Ni as S,gi as a,bi as b,zn as c,Pi as d,Un as e,Si as f,xi as g,Ei as h,Ci as i,wi as j,g as r};
`,enabled:m.enableEnhancedFileUploader},{name:"enable-presence",description:`Enable components to remain unmounted in closed state and mount in open state.
`,enabled:m.enablePresence}];function ut(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Kn(e){if(Array.isArray(e))return e}function Qn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function er(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ar(r.key),r)}}function tr(e,t,n){return t&&er(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function nr(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=yn(e))||t){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(f){throw f},f:o}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i,s=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var f=n.next();return s=f.done,f},e:function(f){l=!0,i=f},f:function(){try{s||n.return==null||n.return()}finally{if(l)throw i}}}}function rr(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,i,s,l=[],f=!0,u=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(f=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);f=!0);}catch(p){u=!0,o=p}finally{try{if(!f&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(u)throw o}}return l}}function or(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ir(e,t){return Kn(e)||rr(e,t)||yn(e,t)||or()}function sr(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function ar(e){var t=sr(e,"string");return typeof t=="symbol"?t:t+""}function yn(e,t){if(e){if(typeof e=="string")return ut(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ut(e,t):void 0}}var lr=(function(){function e(t){var n=this;Qn(this,e),this.flags=new Map,t&&Object.keys(t).forEach(function(r){n.flags.set(r,t[r])})}return tr(e,[{key:"checkForFlag",value:function(n){if(!this.flags.has(n))throw new Error("Unable to find a feature flag with the name: `".concat(n,"`"))}},{key:"add",value:function(n,r){if(this.flags.has(n))throw new Error("The feature flag: ".concat(n," already exists"));this.flags.set(n,r)}},{key:"enable",value:function(n){this.checkForFlag(n),this.flags.set(n,!0)}},{key:"disable",value:function(n){this.checkForFlag(n),this.flags.set(n,!1)}},{key:"merge",value:function(n){var r=this;Object.keys(n).forEach(function(o){r.flags.set(o,n[o])})}},{key:"mergeWithScope",value:function(n){var r=nr(n.flags),o;try{for(r.s();!(o=r.n()).done;){var i=ir(o.value,2),s=i[0],l=i[1];this.flags.has(s)||this.flags.set(s,l)}}catch(f){r.e(f)}finally{r.f()}}},{key:"enabled",value:function(n){return this.checkForFlag(n),this.flags.get(n)}}])})(),Re=cr();for(var Ve=0;Ve<ft.length;Ve++){var dt=ft[Ve];Re.add(dt.name,dt.enabled)}function cr(e){return new lr(e)}function fr(){return Re.merge.apply(Re,arguments)}fr({"enable-css-custom-properties":!0,"enable-css-grid":!0,"enable-v11-release":!0,"enable-experimental-tile-contrast":!1,"enable-tile-contrast":!1,"enable-v12-tile-radio-icons":!1,"enable-v12-structured-list-visible-icons":!1,"enable-v12-dynamic-floating-styles":!1});function Z(){return Z=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Z.apply(null,arguments)}var De={exports:{}};var pt;function ur(){return pt||(pt=1,(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var i="",s=0;s<arguments.length;s++){var l=arguments[s];l&&(i=o(i,r(l)))}return i}function r(i){if(typeof i=="string"||typeof i=="number")return i;if(typeof i!="object")return"";if(Array.isArray(i))return n.apply(null,i);if(i.toString!==Object.prototype.toString&&!i.toString.toString().includes("[native code]"))return i.toString();var s="";for(var l in i)t.call(i,l)&&i[l]&&(s=o(s,l));return s}function o(i,s){return s?i?i+" "+s:i+s:i}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(De)),De.exports}var dr=ur();const q=Je(dr),pr=c.createContext("cds");function X(){return c.useContext(pr)}var He={exports:{}},$e,mt;function mr(){if(mt)return $e;mt=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return $e=e,$e}var Fe,ht;function hr(){if(ht)return Fe;ht=1;var e=mr();function t(){}function n(){}return n.resetWarningCache=t,Fe=function(){function r(s,l,f,u,p,h){if(h!==e){var b=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw b.name="Invariant Violation",b}}r.isRequired=r;function o(){return r}var i={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:t};return i.PropTypes=i,i},Fe}var gt;function gr(){return gt||(gt=1,He.exports=hr()()),He.exports}var br=gr();const a=Je(br);function yr(e,t,n){return(t=Er(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function ke(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?bt(Object(n),!0).forEach(function(r){yr(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bt(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function yt(e,t){if(e==null)return{};var n,r,o=wr(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function wr(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function vr(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Er(e){var t=vr(e,"string");return typeof t=="symbol"?t:t+""}var xr=["width","height","viewBox"],Rr=["tabindex"],_r={focusable:"false",preserveAspectRatio:"xMidYMid meet"};function Cr(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.width,n=e.height,r=e.viewBox,o=r===void 0?"0 0 ".concat(t," ").concat(n):r,i=yt(e,xr),s=i.tabindex,l=yt(i,Rr),f=ke(ke(ke({},_r),l),{},{width:t,height:n,viewBox:o});return f["aria-label"]||f["aria-labelledby"]||f.title?(f.role="img",s!=null&&(f.focusable="true",f.tabindex=s)):f["aria-hidden"]=!0,f}const j=c.forwardRef(function({className:t,children:n,tabIndex:r,xmlns:o="http://www.w3.org/2000/svg",preserveAspectRatio:i="xMidYMid meet",...s},l){const{tabindex:f,...u}=Cr({...s,tabindex:r}),p=u;return t&&(p.className=t),f!=null&&(typeof f=="number"?p.tabIndex=f:p.tabIndex=Number(r)),l&&(p.ref=l),o&&(p.xmlns=o),i&&(p.preserveAspectRatio=i),c.createElement("svg",p,n)});j.displayName="Icon";j.propTypes={"aria-hidden":a.oneOfType([a.bool,a.oneOf(["true","false"])]),"aria-label":a.string,"aria-labelledby":a.string,children:a.node,className:a.string,height:a.oneOfType([a.number,a.string]),preserveAspectRatio:a.string,tabIndex:a.oneOfType([a.number,a.string]),viewBox:a.string,width:a.oneOfType([a.number,a.string]),xmlns:a.string};var wt,vt;const vi=c.forwardRef(function({children:t,size:n=16,...r},o){return n===16||n==="16"||n==="16px"?c.createElement(j,{width:n,height:n,ref:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",...r},wt||(wt=c.createElement("path",{d:"M7.2,2.3c-1,4.4,1.7,8.7,6.1,9.8c0.1,0,0.1,0,0.2,0c-1.1,1.2-2.7,1.8-4.3,1.8c-0.1,0-0.2,0-0.2,0C5.6,13.8,3,11,3.2,7.7 C3.2,5.3,4.8,3.1,7.2,2.3 M8,1L8,1C4.1,1.6,1.5,5.3,2.1,9.1c0.6,3.3,3.4,5.8,6.8,5.9c0.1,0,0.2,0,0.3,0c2.3,0,4.4-1.1,5.8-3 c0.2-0.2,0.1-0.6-0.1-0.7c-0.1-0.1-0.2-0.1-0.3-0.1c-3.9-0.3-6.7-3.8-6.4-7.6C8.3,3,8.4,2.4,8.6,1.8c0.1-0.3,0-0.6-0.3-0.7 C8.1,1,8.1,1,8,1z"})),t):c.createElement(j,{width:n,height:n,ref:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...r},vt||(vt=c.createElement("path",{d:"M13.5025,5.4136A15.0755,15.0755,0,0,0,25.096,23.6082a11.1134,11.1134,0,0,1-7.9749,3.3893c-.1385,0-.2782.0051-.4178,0A11.0944,11.0944,0,0,1,13.5025,5.4136M14.98,3a1.0024,1.0024,0,0,0-.1746.0156A13.0959,13.0959,0,0,0,16.63,28.9973c.1641.006.3282,0,.4909,0a13.0724,13.0724,0,0,0,10.702-5.5556,1.0094,1.0094,0,0,0-.7833-1.5644A13.08,13.08,0,0,1,15.8892,4.38,1.0149,1.0149,0,0,0,14.98,3Z"})),t)});var Et,xt,Rt,_t,Ct,At,St;const Ei=c.forwardRef(function({children:t,size:n=16,...r},o){return n===20||n==="20"||n==="20px"?c.createElement(j,{width:n,height:n,ref:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",...r},Et||(Et=c.createElement("path",{d:"M8 13.2L3.6 8.8 2.7 9.7 7.1 14.1 8 15 16.5 6.5 15.6 5.6z"})),xt||(xt=c.createElement("path",{d:"M15.6 5.6L8 13.2 3.6 8.8 2.7 9.7 7.1 14.1 8 15 16.5 6.5 15.6 5.6z"})),t):n===24||n==="24"||n==="24px"?c.createElement(j,{width:n,height:n,ref:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",...r},Rt||(Rt=c.createElement("path",{d:"M10 15.9L4.7 10.6 3.6 11.6 8.9 16.9 10 18 20.6 7.4 19.5 6.3z"})),t):c.createElement(j,{width:n,height:n,ref:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...r},_t||(_t=c.createElement("path",{d:"M13 24L4 15 5.414 13.586 13 21.171 26.586 7.586 28 9 13 24z"})),t)}),xi=c.forwardRef(function({children:t,size:n=16,...r},o){return c.createElement(j,{width:n,height:n,ref:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...r},Ct||(Ct=c.createElement("path",{d:"M25.8289 13.1155A10.02 10.02 0 0016 5.0005V7a8.0233 8.0233 0 017.8649 6.4934l.2591 1.346 1.3488.2441A5.5019 5.5019 0 0124.5076 26H16v2h8.5076a7.5019 7.5019 0 001.3213-14.8845zM8 24H14V26H8zM4 24H6V26H4zM6 20H14V22H6zM2 20H4V22H2zM8 16H14V18H8zM4 16H6V18H4zM10 12H14V14H10zM6 12H8V14H6zM12 8H14V10H12z"})),t)}),Ri=c.forwardRef(function({children:t,size:n=16,...r},o){return c.createElement(j,{width:n,height:n,ref:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...r},At||(At=c.createElement("path",{d:"M31 16L24 23 22.59 21.59 28.17 16 22.59 10.41 24 9 31 16zM1 16L8 9 9.41 10.41 3.83 16 9.41 21.59 8 23 1 16z"})),St||(St=c.createElement("path",{d:"M5.91 15H26.080000000000002V17H5.91z",transform:"rotate(-75 15.996 16)"})),t)});var Ot,Tt;const _i=c.forwardRef(function({children:t,size:n=16,...r},o){return c.createElement(j,{width:n,height:n,ref:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...r},Ot||(Ot=c.createElement("path",{d:"M26 2H30V6H26zM26 8H30V12H26zM20 2H24V6H20zM20 8H24V12H20zM28 20h-14v2h2v4h-2v2h9v-2h-5v-4h10c.5304 0 1.0392-.2108 1.4142-.5858s.5858-.8838.5858-1.4142v-6h-2v6zM6 6h12v-2H6c-.5304 0-1.0392.2107-1.4142.5858-.3751.375-.5858.8838-.5858 1.4142v6h2v-6zM10 14H4c-.5304 0-1.0392.2107-1.4142.5858-.3751.375-.5858.8838-.5858 1.4142v12c0 .5304.2107 1.0392.5858 1.4142.375.375.8838.5858 1.4142.5858h6c.5304 0 1.0392-.2108 1.4142-.5858.3751-.375.5858-.8838.5858-1.4142v-12c0-.5304-.2107-1.0392-.5858-1.4142-.375-.3751-.8838-.5858-1.4142-.5858zm0 14H4v-12h6v12z"})),t)}),Ci=c.forwardRef(function({children:t,size:n=16,...r},o){return c.createElement(j,{width:n,height:n,ref:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...r},Tt||(Tt=c.createElement("path",{d:"M25.7,9.3l-7-7A.9078.9078,0,0,0,18,2H8A2.0059,2.0059,0,0,0,6,4V28a2.0059,2.0059,0,0,0,2,2H24a2.0059,2.0059,0,0,0,2-2V10A.9078.9078,0,0,0,25.7,9.3ZM18,4.4,23.6,10H18ZM24,28H8V4h8v6a2.0059,2.0059,0,0,0,2,2h6Z"})),t)});var Lt,Nt,Pt,Mt,Bt,It,Vt,Dt,Ht,$t,Ft,kt,Wt,jt,Ut,zt,Gt,qt;const Ai=c.forwardRef(function({children:t,size:n=16,...r},o){return n===16||n==="16"||n==="16px"?c.createElement(j,{width:n,height:n,ref:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",...r},Lt||(Lt=c.createElement("path",{d:"M7.5 1H8.5V3.5H7.5z"})),Nt||(Nt=c.createElement("path",{d:"M10.8 3.4H13.3V4.4H10.8z",transform:"rotate(-45.001 12.041 3.923)"})),Pt||(Pt=c.createElement("path",{d:"M12.5 7.5H15V8.5H12.5z"})),Mt||(Mt=c.createElement("path",{d:"M11.6 10.8H12.6V13.3H11.6z",transform:"rotate(-45.001 12.075 12.041)"})),Bt||(Bt=c.createElement("path",{d:"M7.5 12.5H8.5V15H7.5z"})),It||(It=c.createElement("path",{d:"M2.7 11.6H5.2V12.6H2.7z",transform:"rotate(-45.001 3.96 12.079)"})),Vt||(Vt=c.createElement("path",{d:"M1 7.5H3.5V8.5H1z"})),Dt||(Dt=c.createElement("path",{d:"M3.4 2.7H4.4V5.2H3.4z",transform:"rotate(-45.001 3.925 3.961)"})),Ht||(Ht=c.createElement("path",{d:"M8,6c1.1,0,2,0.9,2,2s-0.9,2-2,2S6,9.1,6,8S6.9,6,8,6 M8,5C6.3,5,5,6.3,5,8s1.3,3,3,3s3-1.3,3-3S9.7,5,8,5z"})),t):c.createElement(j,{width:n,height:n,ref:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...r},$t||($t=c.createElement("path",{d:"M15 2H17V7H15z"})),Ft||(Ft=c.createElement("path",{d:"M21.668 6.854H26.625999999999998V8.854H21.668z",transform:"rotate(-45 24.147 7.853)"})),kt||(kt=c.createElement("path",{d:"M25 15H30V17H25z"})),Wt||(Wt=c.createElement("path",{d:"M23.147 21.668H25.147V26.625999999999998H23.147z",transform:"rotate(-45 24.147 24.146)"})),jt||(jt=c.createElement("path",{d:"M15 25H17V30H15z"})),Ut||(Ut=c.createElement("path",{d:"M5.375 23.147H10.333V25.147H5.375z",transform:"rotate(-45 7.853 24.146)"})),zt||(zt=c.createElement("path",{d:"M2 15H7V17H2z"})),Gt||(Gt=c.createElement("path",{d:"M6.854 5.375H8.854V10.333H6.854z",transform:"rotate(-45 7.854 7.853)"})),qt||(qt=c.createElement("path",{d:"M16,12a4,4,0,1,1-4,4,4.0045,4.0045,0,0,1,4-4m0-2a6,6,0,1,0,6,6,6,6,0,0,0-6-6Z"})),t)});var Zt,Yt;const Si=c.forwardRef(function({children:t,size:n=16,...r},o){return c.createElement(j,{width:n,height:n,ref:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...r},Zt||(Zt=c.createElement("path",{fillRule:"evenodd",d:"M16,2a14,14,0,0,0-4.43,27.28c.7.13,1-.3,1-.67s0-1.21,0-2.38c-3.89.84-4.71-1.88-4.71-1.88A3.71,3.71,0,0,0,6.24,22.3c-1.27-.86.1-.85.1-.85A2.94,2.94,0,0,1,8.48,22.9a3,3,0,0,0,4.08,1.16,2.93,2.93,0,0,1,.88-1.87c-3.1-.36-6.37-1.56-6.37-6.92a5.4,5.4,0,0,1,1.44-3.76,5,5,0,0,1,.14-3.7s1.17-.38,3.85,1.43a13.3,13.3,0,0,1,7,0c2.67-1.81,3.84-1.43,3.84-1.43a5,5,0,0,1,.14,3.7,5.4,5.4,0,0,1,1.44,3.76c0,5.38-3.27,6.56-6.39,6.91a3.33,3.33,0,0,1,.95,2.59c0,1.87,0,3.38,0,3.84s.25.81,1,.67A14,14,0,0,0,16,2Z"})),t)}),Oi=c.forwardRef(function({children:t,size:n=16,...r},o){return c.createElement(j,{width:n,height:n,ref:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...r},Yt||(Yt=c.createElement("path",{d:"M25.3943,24a7.8772,7.8772,0,0,0-1.6707-8.5684,3.918,3.918,0,0,0-1.0844-4.414l2.7759-2.7759a2.0025,2.0025,0,0,0,0-2.8286L22.5869,2.5849a2.0021,2.0021,0,0,0-2.8286,0L6.5859,15.7573a2.0027,2.0027,0,0,0,0,2.8286l2.8282,2.8282a2.0024,2.0024,0,0,0,2.8286,0l4.7749-4.7754a3.9329,3.9329,0,0,0,5.5139.4326A5.9442,5.9442,0,0,1,23.1775,24H16v4H4v2H28V24ZM10.8281,20,8,17.1714,9.8787,15.293l2.8283,2.8281ZM16,14a3.9811,3.9811,0,0,0,.0762.7524L14.1211,16.707l-2.8284-2.8281,9.88-9.88L24.001,6.8271l-3.2488,3.2491A3.9771,3.9771,0,0,0,16,14Zm4,2a2,2,0,1,1,2-2A2.0023,2.0023,0,0,1,20,16Zm6,12H18V26h8Z"})),t)});var Xt;const Ti=c.forwardRef(function({children:t,size:n=16,...r},o){return c.createElement(j,{width:n,height:n,ref:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...r},Xt||(Xt=c.createElement("path",{d:"M22,12h6c1.1028,0,2-.8975,2-2V4c0-1.1025-.8972-2-2-2h-6c-1.1028,0-2,.8975-2,2v2h-9c-2.7571,0-5,2.2432-5,5h-2c-1.1028,0-2,.8975-2,2v6c0,1.1025.8972,2,2,2h2c0,2.7568,2.2429,5,5,5h9v2c0,1.1025.8972,2,2,2h6c1.1028,0,2-.8975,2-2v-6c0-1.1025-.8972-2-2-2h-6c-1.1028,0-2,.8975-2,2v2h-9c-1.6543,0-3-1.3457-3-3h2c1.1028,0,2-.8975,2-2v-6c0-1.1025-.8972-2-2-2h-2c0-1.6543,1.3457-3,3-3h9v2c0,1.1025.8972,2,2,2ZM22,22h6v6h-6l-.0012-6h.0012ZM10,13v6h-6l-.0012-6h6.0012ZM22,4h6v6h-6l-.0012-6h.0012Z"})),t)});var Jt,Kt;const Li=c.forwardRef(function({children:t,size:n=16,...r},o){return c.createElement(j,{width:n,height:n,ref:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...r},Jt||(Jt=c.createElement("path",{strokeWidth:"0",d:"M12 28h-2c-3.8599 0-7-3.1401-7-7v-2h2v2c0 2.7568 2.2432 5 5 5h2v2zM28 19h-9c-1.104.0014-1.9986.896-2 2v5c0 1.1046.8954 2 2 2h3v-2h-3v-5h9v5h-2.5352l-2.5937 3.8906 1.6641 1.1094 2-3h1.4648c1.1046 0 2-.8954 2-2v-5c-.0014-1.104-.896-1.9986-2-2zM29 15v-4c0-3.8599-3.1401-7-7-7h-3v2h3c2.7568 0 5 2.2432 5 5v4h2zM6 10H9V12H6z"})),Kt||(Kt=c.createElement("path",{strokeWidth:"0",d:"m12.606,6.4355l-2.5251-3.6855c-.3821-.4766-.9512-.75-1.5615-.75h-4.5193c-1.1028,0-2,.8975-2,2v10c0,1.1025.8972,2,2,2h7c1.1028,0,2-.8975,2-2v-6.375c0-.4526-.1558-.8965-.394-1.1895Zm-8.606,7.5645V4h4v3c0,.5522.4478,1,1,1h2v6h-7Z"})),t)});var Qt,en;const Ni=c.forwardRef(function({children:t,size:n=16,...r},o){return c.createElement(j,{width:n,height:n,ref:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...r},Qt||(Qt=c.createElement("path",{d:"M14 16.59L11.41 14 10 15.41 14 19.41 22 11.41 20.59 10 14 16.59z"})),en||(en=c.createElement("path",{d:"M16,30,9.8242,26.7071A10.9818,10.9818,0,0,1,4,17V4A2.0021,2.0021,0,0,1,6,2H26a2.0021,2.0021,0,0,1,2,2V17a10.9818,10.9818,0,0,1-5.8242,9.7071ZM6,4V17a8.9852,8.9852,0,0,0,4.7656,7.9423L16,27.7333l5.2344-2.791A8.9852,8.9852,0,0,0,26,17V4Z"})),t)}),Ar={key:"Enter",which:13,keyCode:13,code:"Enter"},tn={key:["Escape","Esc"],which:27,keyCode:27,code:"Esc"},Sr={key:" ",which:32,keyCode:32,code:"Space"},we=(e,{key:t,which:n,keyCode:r,code:o})=>typeof e=="string"?e===t:typeof e=="number"?e===n||e===r:e.key&&Array.isArray(t)?t.includes(e.key):e.key===t||e.which===n||e.keyCode===r||e.code===o,Or=()=>{let e=0;return()=>++e},Tr=!!(typeof window<"u"&&window.document&&window.document.createElement),Lr=c.createContext(null);function wn(){return c.useContext(Lr)}const vn={...c},We=Or(),Nr=Tr?g.useLayoutEffect:g.useEffect;let je=!1;const En="id";function Pr(e=En){const t=wn(),[n,r]=g.useState(()=>je?`${t?`${t}-`:""}${e}-${We()}`:null);return Nr(()=>{n===null&&r(`${t?`${t}-`:""}${e}-${We()}`)},[We]),g.useEffect(()=>{je===!1&&(je=!0)},[]),n}function Mr(e=En){const t=wn();return`${t?`${t}-`:""}${e}-${vn.useId()}`}const Ke=vn.useId?Mr:Pr,Ue=new Map,Qe=(e,t)=>(r,o,i,...s)=>{if(typeof r[o]>"u")return;Ue.has(i)||Ue.set(i,new Set);const l=Ue.get(i);return l&&!l.has(o)&&l.add(o),e(r,o,i,...s)},xn=typeof window<"u"?g.useLayoutEffect:g.useEffect,ve={},Rn=(e,t,n)=>(r,o,i,...s)=>{if(typeof r[o]>"u")return null;if(!ve[i]||!ve[i][o]){ve[i]={...ve[i],[o]:!0};const l=r[o],f=n?n(l):null;t&&!t.includes(l)&&(n?`${l}${o}${i}${f}${l}`:`${l}${o}${i}${t.join(", ")}${l}`)}return e(r,o,i,...s)},_n=e=>{const t=g.useMemo(()=>e,e);return g.useCallback(n=>{t.forEach(r=>{typeof r=="function"?r(n):r&&(r.current=n)})},[t])},Br=(e,t,n)=>{const r=g.useRef(null);g.useEffect(()=>{r.current=n},[n]),g.useEffect(()=>{const o="current"in e?e.current:e;if(!o)return;const i=s=>{r.current&&r.current(s)};return o.addEventListener(t,i),()=>{o.removeEventListener(t,i)}},[e,t])},Ir=(e,t)=>{const n=g.useRef(null);g.useEffect(()=>{n.current=t},[t]),g.useEffect(()=>{const r=o=>{n.current&&n.current(o)};return window.addEventListener(e,r),()=>{window.removeEventListener(e,r)}},[e])},Vr={"top-left":"top-start","top-right":"top-end","bottom-left":"bottom-start","bottom-right":"bottom-end","left-bottom":"left-end","left-top":"left-start","right-bottom":"right-end","right-top":"right-start"},et=e=>Vr[e]??e;function Oe(){return typeof window<"u"}function de(e){return Cn(e)?(e.nodeName||"").toLowerCase():"#document"}function Y(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ee(e){var t;return(t=(Cn(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Cn(e){return Oe()?e instanceof Node||e instanceof Y(e).Node:!1}function G(e){return Oe()?e instanceof Element||e instanceof Y(e).Element:!1}function Q(e){return Oe()?e instanceof HTMLElement||e instanceof Y(e).HTMLElement:!1}function nn(e){return!Oe()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Y(e).ShadowRoot}const Dr=new Set(["inline","contents"]);function he(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=J(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!Dr.has(o)}const Hr=new Set(["table","td","th"]);function $r(e){return Hr.has(de(e))}const Fr=[":popover-open",":modal"];function Te(e){return Fr.some(t=>{try{return e.matches(t)}catch{return!1}})}const kr=["transform","translate","scale","rotate","perspective"],Wr=["transform","translate","scale","rotate","perspective","filter"],jr=["paint","layout","strict","content"];function tt(e){const t=nt(),n=G(e)?J(e):e;return kr.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||Wr.some(r=>(n.willChange||"").includes(r))||jr.some(r=>(n.contain||"").includes(r))}function Ur(e){let t=re(e);for(;Q(t)&&!ce(t);){if(tt(t))return t;if(Te(t))return null;t=re(t)}return null}function nt(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const zr=new Set(["html","body","#document"]);function ce(e){return zr.has(de(e))}function J(e){return Y(e).getComputedStyle(e)}function Le(e){return G(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function re(e){if(de(e)==="html")return e;const t=e.assignedSlot||e.parentNode||nn(e)&&e.host||ee(e);return nn(t)?t.host:t}function An(e){const t=re(e);return ce(t)?e.ownerDocument?e.ownerDocument.body:e.body:Q(t)&&he(t)?t:An(t)}function me(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=An(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),s=Y(o);if(i){const l=qe(s);return t.concat(s,s.visualViewport||[],he(o)?o:[],l&&n?me(l):[])}return t.concat(o,me(o,[],n))}function qe(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}const Gr=["top","right","bottom","left"],fe=Math.min,ie=Math.max,_e=Math.round,Ee=Math.floor,K=e=>({x:e,y:e}),qr={left:"right",right:"left",bottom:"top",top:"bottom"},Zr={start:"end",end:"start"};function Yr(e,t,n){return ie(e,fe(t,n))}function ge(e,t){return typeof e=="function"?e(t):e}function ue(e){return e.split("-")[0]}function be(e){return e.split("-")[1]}function Xr(e){return e==="x"?"y":"x"}function rt(e){return e==="y"?"height":"width"}const Jr=new Set(["top","bottom"]);function oe(e){return Jr.has(ue(e))?"y":"x"}function ot(e){return Xr(oe(e))}function Kr(e,t,n){n===void 0&&(n=!1);const r=be(e),o=ot(e),i=rt(o);let s=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=Ce(s)),[s,Ce(s)]}function Qr(e){const t=Ce(e);return[Ze(e),t,Ze(t)]}function Ze(e){return e.replace(/start|end/g,t=>Zr[t])}const rn=["left","right"],on=["right","left"],eo=["top","bottom"],to=["bottom","top"];function no(e,t,n){switch(e){case"top":case"bottom":return n?t?on:rn:t?rn:on;case"left":case"right":return t?eo:to;default:return[]}}function ro(e,t,n,r){const o=be(e);let i=no(ue(e),n==="start",r);return o&&(i=i.map(s=>s+"-"+o),t&&(i=i.concat(i.map(Ze)))),i}function Ce(e){return e.replace(/left|right|bottom|top/g,t=>qr[t])}function oo(e){return{top:0,right:0,bottom:0,left:0,...e}}function Sn(e){return typeof e!="number"?oo(e):{top:e,right:e,bottom:e,left:e}}function Ae(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}var io=typeof document<"u",so=function(){},Ye=io?g.useLayoutEffect:so;const ao={...bn},lo=ao.useInsertionEffect,co=lo||(e=>e());function fo(e){const t=g.useRef(()=>{});return co(()=>{t.current=e}),g.useCallback(function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return t.current==null?void 0:t.current(...r)},[])}var uo=Zn();function sn(e,t,n){let{reference:r,floating:o}=e;const i=oe(t),s=ot(t),l=rt(s),f=ue(t),u=i==="y",p=r.x+r.width/2-o.width/2,h=r.y+r.height/2-o.height/2,b=r[l]/2-o[l]/2;let d;switch(f){case"top":d={x:p,y:r.y-o.height};break;case"bottom":d={x:p,y:r.y+r.height};break;case"right":d={x:r.x+r.width,y:h};break;case"left":d={x:r.x-o.width,y:h};break;default:d={x:r.x,y:r.y}}switch(be(t)){case"start":d[s]-=b*(n&&u?-1:1);break;case"end":d[s]+=b*(n&&u?-1:1);break}return d}const po=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:s}=n,l=i.filter(Boolean),f=await(s.isRTL==null?void 0:s.isRTL(t));let u=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:p,y:h}=sn(u,r,f),b=r,d={},w=0;for(let v=0;v<l.length;v++){const{name:A,fn:R}=l[v],{x:y,y:x,data:_,reset:E}=await R({x:p,y:h,initialPlacement:r,placement:b,strategy:o,middlewareData:d,rects:u,platform:s,elements:{reference:e,floating:t}});p=y??p,h=x??h,d={...d,[A]:{...d[A],..._}},E&&w<=50&&(w++,typeof E=="object"&&(E.placement&&(b=E.placement),E.rects&&(u=E.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:o}):E.rects),{x:p,y:h}=sn(u,b,f)),v=-1)}return{x:p,y:h,placement:b,strategy:o,middlewareData:d}};async function Xe(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:i,rects:s,elements:l,strategy:f}=e,{boundary:u="clippingAncestors",rootBoundary:p="viewport",elementContext:h="floating",altBoundary:b=!1,padding:d=0}=ge(t,e),w=Sn(d),A=l[b?h==="floating"?"reference":"floating":h],R=Ae(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(A)))==null||n?A:A.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(l.floating)),boundary:u,rootBoundary:p,strategy:f})),y=h==="floating"?{x:r,y:o,width:s.floating.width,height:s.floating.height}:s.reference,x=await(i.getOffsetParent==null?void 0:i.getOffsetParent(l.floating)),_=await(i.isElement==null?void 0:i.isElement(x))?await(i.getScale==null?void 0:i.getScale(x))||{x:1,y:1}:{x:1,y:1},E=Ae(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:y,offsetParent:x,strategy:f}):y);return{top:(R.top-E.top+w.top)/_.y,bottom:(E.bottom-R.bottom+w.bottom)/_.y,left:(R.left-E.left+w.left)/_.x,right:(E.right-R.right+w.right)/_.x}}const mo=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:s,elements:l,middlewareData:f}=t,{element:u,padding:p=0}=ge(e,t)||{};if(u==null)return{};const h=Sn(p),b={x:n,y:r},d=ot(o),w=rt(d),v=await s.getDimensions(u),A=d==="y",R=A?"top":"left",y=A?"bottom":"right",x=A?"clientHeight":"clientWidth",_=i.reference[w]+i.reference[d]-b[d]-i.floating[w],E=b[d]-i.reference[d],S=await(s.getOffsetParent==null?void 0:s.getOffsetParent(u));let C=S?S[x]:0;(!C||!await(s.isElement==null?void 0:s.isElement(S)))&&(C=l.floating[x]||i.floating[w]);const $=_/2-E/2,F=C/2-v[w]/2-1,B=fe(h[R],F),k=fe(h[y],F),H=B,D=C-v[w]-k,P=C/2-v[w]/2+$,z=Yr(H,P,D),N=!f.arrow&&be(o)!=null&&P!==z&&i.reference[w]/2-(P<H?B:k)-v[w]/2<0,V=N?P<H?P-H:P-D:0;return{[d]:b[d]+V,data:{[d]:z,centerOffset:P-z-V,...N&&{alignmentOffset:V}},reset:N}}}),ho=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:s,initialPlacement:l,platform:f,elements:u}=t,{mainAxis:p=!0,crossAxis:h=!0,fallbackPlacements:b,fallbackStrategy:d="bestFit",fallbackAxisSideDirection:w="none",flipAlignment:v=!0,...A}=ge(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const R=ue(o),y=oe(l),x=ue(l)===l,_=await(f.isRTL==null?void 0:f.isRTL(u.floating)),E=b||(x||!v?[Ce(l)]:Qr(l)),S=w!=="none";!b&&S&&E.push(...ro(l,v,w,_));const C=[l,...E],$=await Xe(t,A),F=[];let B=((r=i.flip)==null?void 0:r.overflows)||[];if(p&&F.push($[R]),h){const P=Kr(o,s,_);F.push($[P[0]],$[P[1]])}if(B=[...B,{placement:o,overflows:F}],!F.every(P=>P<=0)){var k,H;const P=(((k=i.flip)==null?void 0:k.index)||0)+1,z=C[P];if(z&&(!(h==="alignment"?y!==oe(z):!1)||B.every(O=>oe(O.placement)===y?O.overflows[0]>0:!0)))return{data:{index:P,overflows:B},reset:{placement:z}};let N=(H=B.filter(V=>V.overflows[0]<=0).sort((V,O)=>V.overflows[1]-O.overflows[1])[0])==null?void 0:H.placement;if(!N)switch(d){case"bestFit":{var D;const V=(D=B.filter(O=>{if(S){const W=oe(O.placement);return W===y||W==="y"}return!0}).map(O=>[O.placement,O.overflows.filter(W=>W>0).reduce((W,M)=>W+M,0)]).sort((O,W)=>O[1]-W[1])[0])==null?void 0:D[0];V&&(N=V);break}case"initialPlacement":N=l;break}if(o!==N)return{reset:{placement:N}}}return{}}}};function an(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function ln(e){return Gr.some(t=>e[t]>=0)}const go=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=ge(e,t);switch(r){case"referenceHidden":{const i=await Xe(t,{...o,elementContext:"reference"}),s=an(i,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:ln(s)}}}case"escaped":{const i=await Xe(t,{...o,altBoundary:!0}),s=an(i,n.floating);return{data:{escapedOffsets:s,escaped:ln(s)}}}default:return{}}}}},bo=new Set(["left","top"]);async function yo(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),s=ue(n),l=be(n),f=oe(n)==="y",u=bo.has(s)?-1:1,p=i&&f?-1:1,h=ge(t,e);let{mainAxis:b,crossAxis:d,alignmentAxis:w}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return l&&typeof w=="number"&&(d=l==="end"?w*-1:w),f?{x:d*p,y:b*u}:{x:b*u,y:d*p}}const wo=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:s,middlewareData:l}=t,f=await yo(t,e);return s===((n=l.offset)==null?void 0:n.placement)&&(r=l.arrow)!=null&&r.alignmentOffset?{}:{x:o+f.x,y:i+f.y,data:{...f,placement:s}}}}};function On(e){const t=J(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Q(e),i=o?e.offsetWidth:n,s=o?e.offsetHeight:r,l=_e(n)!==i||_e(r)!==s;return l&&(n=i,r=s),{width:n,height:r,$:l}}function it(e){return G(e)?e:e.contextElement}function le(e){const t=it(e);if(!Q(t))return K(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=On(t);let s=(i?_e(n.width):n.width)/r,l=(i?_e(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}const vo=K(0);function Tn(e){const t=Y(e);return!nt()||!t.visualViewport?vo:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Eo(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Y(e)?!1:t}function se(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=it(e);let s=K(1);t&&(r?G(r)&&(s=le(r)):s=le(e));const l=Eo(i,n,r)?Tn(i):K(0);let f=(o.left+l.x)/s.x,u=(o.top+l.y)/s.y,p=o.width/s.x,h=o.height/s.y;if(i){const b=Y(i),d=r&&G(r)?Y(r):r;let w=b,v=qe(w);for(;v&&r&&d!==w;){const A=le(v),R=v.getBoundingClientRect(),y=J(v),x=R.left+(v.clientLeft+parseFloat(y.paddingLeft))*A.x,_=R.top+(v.clientTop+parseFloat(y.paddingTop))*A.y;f*=A.x,u*=A.y,p*=A.x,h*=A.y,f+=x,u+=_,w=Y(v),v=qe(w)}}return Ae({width:p,height:h,x:f,y:u})}function Ne(e,t){const n=Le(e).scrollLeft;return t?t.left+n:se(ee(e)).left+n}function Ln(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-Ne(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function xo(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i=o==="fixed",s=ee(r),l=t?Te(t.floating):!1;if(r===s||l&&i)return n;let f={scrollLeft:0,scrollTop:0},u=K(1);const p=K(0),h=Q(r);if((h||!h&&!i)&&((de(r)!=="body"||he(s))&&(f=Le(r)),Q(r))){const d=se(r);u=le(r),p.x=d.x+r.clientLeft,p.y=d.y+r.clientTop}const b=s&&!h&&!i?Ln(s,f):K(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-f.scrollLeft*u.x+p.x+b.x,y:n.y*u.y-f.scrollTop*u.y+p.y+b.y}}function Ro(e){return Array.from(e.getClientRects())}function _o(e){const t=ee(e),n=Le(e),r=e.ownerDocument.body,o=ie(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=ie(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+Ne(e);const l=-n.scrollTop;return J(r).direction==="rtl"&&(s+=ie(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:s,y:l}}const cn=25;function Co(e,t){const n=Y(e),r=ee(e),o=n.visualViewport;let i=r.clientWidth,s=r.clientHeight,l=0,f=0;if(o){i=o.width,s=o.height;const p=nt();(!p||p&&t==="fixed")&&(l=o.offsetLeft,f=o.offsetTop)}const u=Ne(r);if(u<=0){const p=r.ownerDocument,h=p.body,b=getComputedStyle(h),d=p.compatMode==="CSS1Compat"&&parseFloat(b.marginLeft)+parseFloat(b.marginRight)||0,w=Math.abs(r.clientWidth-h.clientWidth-d);w<=cn&&(i-=w)}else u<=cn&&(i+=u);return{width:i,height:s,x:l,y:f}}const Ao=new Set(["absolute","fixed"]);function So(e,t){const n=se(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=Q(e)?le(e):K(1),s=e.clientWidth*i.x,l=e.clientHeight*i.y,f=o*i.x,u=r*i.y;return{width:s,height:l,x:f,y:u}}function fn(e,t,n){let r;if(t==="viewport")r=Co(e,n);else if(t==="document")r=_o(ee(e));else if(G(t))r=So(t,n);else{const o=Tn(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Ae(r)}function Nn(e,t){const n=re(e);return n===t||!G(n)||ce(n)?!1:J(n).position==="fixed"||Nn(n,t)}function Oo(e,t){const n=t.get(e);if(n)return n;let r=me(e,[],!1).filter(l=>G(l)&&de(l)!=="body"),o=null;const i=J(e).position==="fixed";let s=i?re(e):e;for(;G(s)&&!ce(s);){const l=J(s),f=tt(s);!f&&l.position==="fixed"&&(o=null),(i?!f&&!o:!f&&l.position==="static"&&!!o&&Ao.has(o.position)||he(s)&&!f&&Nn(e,s))?r=r.filter(p=>p!==s):o=l,s=re(s)}return t.set(e,r),r}function To(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const s=[...n==="clippingAncestors"?Te(t)?[]:Oo(t,this._c):[].concat(n),r],l=s[0],f=s.reduce((u,p)=>{const h=fn(t,p,o);return u.top=ie(h.top,u.top),u.right=fe(h.right,u.right),u.bottom=fe(h.bottom,u.bottom),u.left=ie(h.left,u.left),u},fn(t,l,o));return{width:f.right-f.left,height:f.bottom-f.top,x:f.left,y:f.top}}function Lo(e){const{width:t,height:n}=On(e);return{width:t,height:n}}function No(e,t,n){const r=Q(t),o=ee(t),i=n==="fixed",s=se(e,!0,i,t);let l={scrollLeft:0,scrollTop:0};const f=K(0);function u(){f.x=Ne(o)}if(r||!r&&!i)if((de(t)!=="body"||he(o))&&(l=Le(t)),r){const d=se(t,!0,i,t);f.x=d.x+t.clientLeft,f.y=d.y+t.clientTop}else o&&u();i&&!r&&o&&u();const p=o&&!r&&!i?Ln(o,l):K(0),h=s.left+l.scrollLeft-f.x-p.x,b=s.top+l.scrollTop-f.y-p.y;return{x:h,y:b,width:s.width,height:s.height}}function ze(e){return J(e).position==="static"}function un(e,t){if(!Q(e)||J(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return ee(e)===n&&(n=n.ownerDocument.body),n}function Pn(e,t){const n=Y(e);if(Te(e))return n;if(!Q(e)){let o=re(e);for(;o&&!ce(o);){if(G(o)&&!ze(o))return o;o=re(o)}return n}let r=un(e,t);for(;r&&$r(r)&&ze(r);)r=un(r,t);return r&&ce(r)&&ze(r)&&!tt(r)?n:r||Ur(e)||n}const Po=async function(e){const t=this.getOffsetParent||Pn,n=this.getDimensions,r=await n(e.floating);return{reference:No(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Mo(e){return J(e).direction==="rtl"}const Bo={convertOffsetParentRelativeRectToViewportRelativeRect:xo,getDocumentElement:ee,getClippingRect:To,getOffsetParent:Pn,getElementRects:Po,getClientRects:Ro,getDimensions:Lo,getScale:le,isElement:G,isRTL:Mo};function Mn(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Io(e,t){let n=null,r;const o=ee(e);function i(){var l;clearTimeout(r),(l=n)==null||l.disconnect(),n=null}function s(l,f){l===void 0&&(l=!1),f===void 0&&(f=1),i();const u=e.getBoundingClientRect(),{left:p,top:h,width:b,height:d}=u;if(l||t(),!b||!d)return;const w=Ee(h),v=Ee(o.clientWidth-(p+b)),A=Ee(o.clientHeight-(h+d)),R=Ee(p),x={rootMargin:-w+"px "+-v+"px "+-A+"px "+-R+"px",threshold:ie(0,fe(1,f))||1};let _=!0;function E(S){const C=S[0].intersectionRatio;if(C!==f){if(!_)return s();C?s(!1,C):r=setTimeout(()=>{s(!1,1e-7)},1e3)}C===1&&!Mn(u,e.getBoundingClientRect())&&s(),_=!1}try{n=new IntersectionObserver(E,{...x,root:o.ownerDocument})}catch{n=new IntersectionObserver(E,x)}n.observe(e)}return s(!0),i}function Vo(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:f=!1}=r,u=it(e),p=o||i?[...u?me(u):[],...me(t)]:[];p.forEach(R=>{o&&R.addEventListener("scroll",n,{passive:!0}),i&&R.addEventListener("resize",n)});const h=u&&l?Io(u,n):null;let b=-1,d=null;s&&(d=new ResizeObserver(R=>{let[y]=R;y&&y.target===u&&d&&(d.unobserve(t),cancelAnimationFrame(b),b=requestAnimationFrame(()=>{var x;(x=d)==null||x.observe(t)})),n()}),u&&!f&&d.observe(u),d.observe(t));let w,v=f?se(e):null;f&&A();function A(){const R=se(e);v&&!Mn(v,R)&&n(),v=R,w=requestAnimationFrame(A)}return n(),()=>{var R;p.forEach(y=>{o&&y.removeEventListener("scroll",n),i&&y.removeEventListener("resize",n)}),h?.(),(R=d)==null||R.disconnect(),d=null,f&&cancelAnimationFrame(w)}}const Do=wo,Ho=ho,$o=go,dn=mo,Fo=(e,t,n)=>{const r=new Map,o={platform:Bo,...n},i={...o.platform,_c:r};return po(e,t,{...o,platform:i})};var ko=typeof document<"u",Wo=function(){},xe=ko?g.useLayoutEffect:Wo;function Se(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Se(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const i=o[r];if(!(i==="_owner"&&e.$$typeof)&&!Se(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function Bn(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function pn(e,t){const n=Bn(e);return Math.round(t*n)/n}function Ge(e){const t=g.useRef(e);return xe(()=>{t.current=e}),t}function jo(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:s}={},transform:l=!0,whileElementsMounted:f,open:u}=e,[p,h]=g.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[b,d]=g.useState(r);Se(b,r)||d(r);const[w,v]=g.useState(null),[A,R]=g.useState(null),y=g.useCallback(O=>{O!==S.current&&(S.current=O,v(O))},[]),x=g.useCallback(O=>{O!==C.current&&(C.current=O,R(O))},[]),_=i||w,E=s||A,S=g.useRef(null),C=g.useRef(null),$=g.useRef(p),F=f!=null,B=Ge(f),k=Ge(o),H=Ge(u),D=g.useCallback(()=>{if(!S.current||!C.current)return;const O={placement:t,strategy:n,middleware:b};k.current&&(O.platform=k.current),Fo(S.current,C.current,O).then(W=>{const M={...W,isPositioned:H.current!==!1};P.current&&!Se($.current,M)&&($.current=M,uo.flushSync(()=>{h(M)}))})},[b,t,n,k,H]);xe(()=>{u===!1&&$.current.isPositioned&&($.current.isPositioned=!1,h(O=>({...O,isPositioned:!1})))},[u]);const P=g.useRef(!1);xe(()=>(P.current=!0,()=>{P.current=!1}),[]),xe(()=>{if(_&&(S.current=_),E&&(C.current=E),_&&E){if(B.current)return B.current(_,E,D);D()}},[_,E,D,B,F]);const z=g.useMemo(()=>({reference:S,floating:C,setReference:y,setFloating:x}),[y,x]),N=g.useMemo(()=>({reference:_,floating:E}),[_,E]),V=g.useMemo(()=>{const O={position:n,left:0,top:0};if(!N.floating)return O;const W=pn(N.floating,p.x),M=pn(N.floating,p.y);return l?{...O,transform:"translate("+W+"px, "+M+"px)",...Bn(N.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:W,top:M}},[n,l,N.floating,p.x,p.y]);return g.useMemo(()=>({...p,update:D,refs:z,elements:N,floatingStyles:V}),[p,D,z,N,V])}const Uo=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?dn({element:r.current,padding:o}).fn(n):{}:r?dn({element:r,padding:o}).fn(n):{}}}},zo=(e,t)=>({...Do(e),options:[e,t]}),Go=(e,t)=>({...Ho(e),options:[e,t]}),qo=(e,t)=>({...$o(e),options:[e,t]}),Zo=(e,t)=>({...Uo(e),options:[e,t]}),Yo={...bn};let mn=!1,Xo=0;const hn=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+Xo++;function Jo(){const[e,t]=g.useState(()=>mn?hn():void 0);return Ye(()=>{e==null&&t(hn())},[]),g.useEffect(()=>{mn=!0},[]),e}const Ko=Yo.useId,Qo=Ko||Jo;function ei(){const e=new Map;return{emit(t,n){var r;(r=e.get(t))==null||r.forEach(o=>o(n))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){var r;(r=e.get(t))==null||r.delete(n)}}}const ti=g.createContext(null),ni=g.createContext(null),ri=()=>{var e;return((e=g.useContext(ti))==null?void 0:e.id)||null},oi=()=>g.useContext(ni);function ii(e){const{open:t=!1,onOpenChange:n,elements:r}=e,o=Qo(),i=g.useRef({}),[s]=g.useState(()=>ei()),l=ri()!=null,[f,u]=g.useState(r.reference),p=fo((d,w,v)=>{i.current.openEvent=d?w:void 0,s.emit("openchange",{open:d,event:w,reason:v,nested:l}),n?.(d,w,v)}),h=g.useMemo(()=>({setPositionReference:u}),[]),b=g.useMemo(()=>({reference:f||r.reference||null,floating:r.floating||null,domReference:r.reference}),[f,r.reference,r.floating]);return g.useMemo(()=>({dataRef:i,open:t,onOpenChange:p,elements:b,events:s,floatingId:o,refs:h}),[t,p,b,s,o,h])}function si(e){e===void 0&&(e={});const{nodeId:t}=e,n=ii({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,o=r.elements,[i,s]=g.useState(null),[l,f]=g.useState(null),p=o?.domReference||i,h=g.useRef(null),b=oi();Ye(()=>{p&&(h.current=p)},[p]);const d=jo({...e,elements:{...o,...l&&{reference:l}}}),w=g.useCallback(x=>{const _=G(x)?{getBoundingClientRect:()=>x.getBoundingClientRect(),getClientRects:()=>x.getClientRects(),contextElement:x}:x;f(_),d.refs.setReference(_)},[d.refs]),v=g.useCallback(x=>{(G(x)||x===null)&&(h.current=x,s(x)),(G(d.refs.reference.current)||d.refs.reference.current===null||x!==null&&!G(x))&&d.refs.setReference(x)},[d.refs]),A=g.useMemo(()=>({...d.refs,setReference:v,setPositionReference:w,domReference:h}),[d.refs,v,w]),R=g.useMemo(()=>({...d.elements,domReference:p}),[d.elements,p]),y=g.useMemo(()=>({...d,...r,refs:A,elements:R,nodeId:t}),[d,A,R,t,r]);return Ye(()=>{r.dataRef.current.floatingContext=y;const x=b?.nodesRef.current.find(_=>_.id===t);x&&(x.context=y)}),g.useMemo(()=>({...d,context:y,refs:A,elements:R}),[d,A,R,y])}const ai=g.createContext(Re);a.node,Qe(a.objectOf(a.bool)),a.bool,a.bool,a.bool,a.bool,a.bool,a.bool,a.bool,a.bool,a.bool,a.bool;function In(e){return g.useContext(ai).enabled(e)}const Vn=c.createContext({setFloating:{current:null},caretRef:{current:null},autoAlign:null}),Dn=c.forwardRef(function({isTabTip:t,align:n=t?"bottom-start":"bottom",as:r="span",autoAlign:o=!1,autoAlignBoundary:i,backgroundToken:s="layer",caret:l=!t,className:f,children:u,border:p=!1,dropShadow:h=!0,highContrast:b=!1,onRequestClose:d,open:w,alignmentAxisOffset:v,...A},R){const y=X(),x=g.useRef(null),_=g.useRef(null),E=g.useRef(null),S=In("enable-v12-dynamic-floating-styles")||o;let C=et(n);Br(E,"focusout",M=>{const L=M.relatedTarget;if(t){L&&!E.current?.contains(L)&&d?.();return}if(!L){d?.();return}const U=!E.current?.contains(L),I=S&&B.floating.current?!B.floating.current.contains(L):!0;U&&I&&d?.()}),Ir("click",({target:M})=>{w&&M instanceof Node&&!E.current?.contains(M)&&d?.()});const $=c.Children.toArray(u).some(M=>M?.props?.className?.includes("slug")||M?.props?.className?.includes("ai-label"))?7:6,F=g.useRef({offset:10,caretHeight:$});xn(()=>{if(l&&E.current){const M=window.getComputedStyle(E.current,null),L=M.getPropertyValue("--cds-popover-offset"),U=M.getPropertyValue("--cds-popover-caret-height");L&&(F.current.offset=L.includes("px")?Number(L.split("px",1)[0])*1:Number(L.split("rem",1)[0])*16),U&&(F.current.caretHeight=U.includes("px")?Number(U.split("px",1)[0])*1:Number(U.split("rem",1)[0])*16)}});const{refs:B,floatingStyles:k,placement:H,middlewareData:D}=si(S?{placement:C,strategy:"fixed",middleware:[zo(t?0:{alignmentAxis:v,mainAxis:F?.current?.offset}),o&&Go({fallbackPlacements:t?C.includes("bottom")?["bottom-start","bottom-end","top-start","top-end"]:["top-start","top-end","bottom-start","bottom-end"]:C.includes("bottom")?["bottom","bottom-start","bottom-end","right","right-start","right-end","left","left-start","left-end","top","top-start","top-end"]:["top","top-start","top-end","left","left-start","left-end","right","right-start","right-end","bottom","bottom-start","bottom-end"],fallbackStrategy:"initialPlacement",fallbackAxisSideDirection:"start",boundary:i}),Zo({element:_,padding:16}),o&&qo()],whileElementsMounted:Vo}:{}),P=g.useMemo(()=>({floating:x,setFloating:B.setFloating,caretRef:_,autoAlign:o}),[B.setFloating,o]);t&&(["bottom-start","bottom-end"].includes(C)||(C="bottom-start")),g.useEffect(()=>{if(S){const M={...k,visibility:D.hide?.referenceHidden?"hidden":"visible"};if(Object.keys(M).forEach(L=>{B.floating.current&&(B.floating.current.style[L]=M[L])}),l&&D&&D.arrow&&_?.current){const{x:L,y:U}=D.arrow,I={top:"bottom",right:"left",bottom:"top",left:"right"}[H.split("-")[0]];_.current.style.left=L!=null?`${L}px`:"",_.current.style.top=U!=null?`${U}px`:"",_.current.style.right="",_.current.style.bottom="",I&&(_.current.style[I]=`${-F?.current?.caretHeight}px`)}}},[k,B.floating,S,D,H,l]);const z=_n([R,E]),N=o&&H!==C?H:C,V=q({[`${y}--popover-container`]:!0,[`${y}--popover--caret`]:l,[`${y}--popover--drop-shadow`]:h,[`${y}--popover--border`]:p,[`${y}--popover--high-contrast`]:b,[`${y}--popover--open`]:w,[`${y}--popover--auto-align ${y}--autoalign`]:S,[`${y}--popover--${N}`]:!0,[`${y}--popover--tab-tip`]:t,[`${y}--popover--background-token__background`]:s==="background"&&!b},f),O=c.Children.map(u,M=>{const L=M,U=L?.type?.displayName,I=L?.type==="button",ae=S&&U&&["ToggletipButton"].includes(U),ye=S&&!["ToggletipContent","PopoverContent"].includes(U);if(c.isValidElement(L)&&(I||ae||ye)){const te=L?.props?.className,ne=(L?.props).ref,Gn=q(`${y}--popover--tab-tip__button`,te);return c.cloneElement(L,{className:t&&L?.type==="button"?Gn:te||"",ref:Be=>{(S&&L?.type!==Pe||S&&L?.type.displayName==="ToggletipButton")&&B.setReference(Be),typeof ne=="function"?ne(Be):ne!=null&&(ne.current=Be)}})}else return L}),W=r;return c.createElement(Vn.Provider,{value:P},c.createElement(W,Z({},A,{className:V,ref:z}),S||t?O:u))});Dn.propTypes={align:Rn(a.oneOf(["top","top-left","top-right","bottom","bottom-left","bottom-right","left","left-bottom","left-top","right","right-bottom","right-top","top-start","top-end","bottom-start","bottom-end","left-end","left-start","right-end","right-start"]),["top","top-start","top-end","bottom","bottom-start","bottom-end","left","left-start","left-end","right","right-start","right-end"],et),alignmentAxisOffset:a.number,as:a.oneOfType([a.string,a.elementType]),autoAlign:a.bool,backgroundToken:a.oneOf(["layer","background"]),autoAlignBoundary:a.oneOfType([a.oneOf(["clippingAncestors"]),a.elementType,a.arrayOf(a.elementType),a.exact({x:a.number.isRequired,y:a.number.isRequired,width:a.number.isRequired,height:a.number.isRequired})]),caret:a.bool,border:a.bool,children:a.node,className:a.string,dropShadow:a.bool,highContrast:a.bool,isTabTip:a.bool,onRequestClose:a.func,open:a.bool.isRequired};function li({className:e,children:t,...n},r){const o=X(),{setFloating:i,caretRef:s,autoAlign:l}=c.useContext(Vn),f=_n([i,r]),u=In("enable-v12-dynamic-floating-styles")||l;return c.createElement("span",Z({},n,{className:`${o}--popover`}),c.createElement("span",{className:q(`${o}--popover-content`,e),ref:f},t,u&&c.createElement("span",{className:q({[`${o}--popover-caret`]:!0,[`${o}--popover--auto-align`]:!0}),ref:s})),!u&&c.createElement("span",{className:q({[`${o}--popover-caret`]:!0}),ref:s}))}const Pe=c.forwardRef(li);Pe.displayName="PopoverContent";Pe.propTypes={children:a.node,className:a.string};function ci(e){const[t,n]=g.useState(e),r=g.useRef(null),o=g.useCallback((i,s=0)=>{if(window.clearTimeout(r.current??void 0),r.current=null,s===0){n(i);return}r.current=window.setTimeout(()=>{n(i),r.current=null},s)},[]);return g.useEffect(()=>()=>{window.clearTimeout(r.current??void 0)},[]),[t,o]}const gn=new Set(["mouseup","touchend","touchcancel"]),Hn=c.forwardRef(({as:e,align:t="top",className:n,children:r,label:o,description:i,enterDelayMs:s=100,leaveDelayMs:l=300,defaultOpen:f=!1,closeOnActivation:u=!1,dropShadow:p=!1,highContrast:h=!0,...b},d)=>{g.useRef(null);const[w,v]=ci(f),[A,R]=g.useState(!1),[y,x]=g.useState(!1),[_,E]=g.useState(!1),S=Ke("tooltip"),C=X(),$=c.Children.only(r),{"aria-labelledby":F,"aria-describedby":B}=$?.props??{},k=!!o,P={onFocus:()=>!y&&v(!0),onBlur:()=>{v(!1),x(!1)},onClick:()=>u&&v(!1),onMouseEnter:V,onMouseLeave:W,onMouseDown:O,onMouseMove:M,onTouchStart:L,"aria-labelledby":F??(k?S:void 0),"aria-describedby":B??(k?void 0:S)};function z(I){const ae=Object.keys(P).filter(te=>te.startsWith("on")),ye={};return ae.forEach(te=>{ye[te]=ne=>{P[te](ne),I?.[te]&&I?.[te](ne)}}),ye}const N=g.useCallback(I=>{w&&we(I,tn)&&(I.stopPropagation(),v(!1)),w&&u&&(we(I,Ar)||we(I,Sr))&&v(!1)},[u,w,v]);xn(()=>{if(!w)return;function I(ae){we(ae,tn)&&N(ae)}return document.addEventListener("keydown",I),()=>{document.removeEventListener("keydown",I)}},[w,N]);function V(){b?.onMouseEnter||(E(!0),v(!0,s))}function O(){x(!0),L()}function W(){E(!1),!A&&v(!1,l)}function M(I){I.buttons===1?R(!0):R(!1)}function L(){R(!0)}const U=g.useCallback(()=>{R(!1),_||v(!1,l)},[_,l,v]);return g.useEffect(()=>(A&&gn.forEach(I=>{document.addEventListener(I,U)}),()=>{gn.forEach(I=>{document.removeEventListener(I,U)})}),[A,U]),c.createElement(Dn,Z({as:e,ref:d},b,{align:t,className:q(`${C}--tooltip`,n),dropShadow:p,highContrast:h,onKeyDown:N,onMouseLeave:W,open:w}),c.createElement("div",{className:`${C}--tooltip-trigger__wrapper`},typeof $<"u"?c.cloneElement($,{...P,...z($.props)}):null),c.createElement(Pe,{"aria-hidden":w?"false":"true",className:`${C}--tooltip-content`,id:S,onMouseEnter:V,role:"tooltip"},o||i))});Hn.propTypes={align:a.oneOf(["top","top-left","top-right","bottom","bottom-left","bottom-right","left","left-bottom","left-top","right","right-bottom","right-top","top-start","top-end","bottom-start","bottom-end","left-end","left-start","right-end","right-start"]),children:a.node,className:a.string,closeOnActivation:a.bool,defaultOpen:a.bool,description:a.node,dropShadow:a.bool,enterDelayMs:a.number,highContrast:a.bool,label:a.node,leaveDelayMs:a.number};const $n=c.forwardRef(function({as:t,children:n,className:r,dangerDescription:o="danger",disabled:i=!1,hasIconOnly:s=!1,href:l,iconDescription:f,isExpressive:u=!1,isSelected:p,kind:h="primary",onBlur:b,onClick:d,onFocus:w,onMouseEnter:v,onMouseLeave:A,renderIcon:R,size:y,tabIndex:x,type:_="button",...E},S){const C=X(),$=q(r,{[`${C}--btn`]:!0,[`${C}--btn--xs`]:y==="xs"&&!u,[`${C}--btn--sm`]:y==="sm"&&!u,[`${C}--btn--md`]:y==="md"&&!u,[`${C}--btn--lg`]:y==="lg"&&!u,[`${C}--btn--xl`]:y==="xl",[`${C}--btn--2xl`]:y==="2xl",[`${C}--layout--size-${y}`]:y,[`${C}--btn--${h}`]:h,[`${C}--btn--disabled`]:i,[`${C}--btn--expressive`]:u,[`${C}--btn--icon-only`]:s,[`${C}--btn--selected`]:s&&p&&h==="ghost"}),F={tabIndex:x,className:$,ref:S},B=R?c.createElement(R,{"aria-label":f,className:`${C}--btn__icon`,"aria-hidden":"true"}):null,k=["danger","danger--tertiary","danger--ghost"];let H="button";const D=Ke("danger-description"),{"aria-pressed":P,"aria-describedby":z}=E;let N={disabled:i,type:_,"aria-describedby":k.includes(h)?D:z||void 0,"aria-pressed":P??(s&&h==="ghost"?p:void 0)};const V={href:l};let O=null;return k.includes(h)&&(O=c.createElement("span",{id:D,className:`${C}--visually-hidden`},o)),t?(H=t,N={...N,...V}):l&&!i&&(H="a",N=V),c.createElement(H,{onMouseEnter:v,onMouseLeave:A,onFocus:w,onBlur:b,onClick:d,...E,...F,...N},O,n,B)}),Fn=c.forwardRef(function({className:t,count:n,...r},o){const i=X(),s=q(`${i}--badge-indicator`,t,{[`${i}--badge-indicator--count`]:n}),l=n&&n>999?"999+":n;return c.createElement("div",Z({className:s,ref:o},r),l)});Fn.propTypes={className:a.string,count:a.number,id:a.string};const kn=["primary","secondary","ghost","tertiary"],Wn=c.forwardRef(({align:e,autoAlign:t=!1,badgeCount:n,children:r,className:o,closeOnActivation:i=!0,defaultOpen:s=!1,disabled:l,dropShadow:f=!1,enterDelayMs:u=100,highContrast:p=!0,kind:h,label:b,leaveDelayMs:d=100,wrapperClasses:w,size:v,isSelected:A,...R},y)=>{const x=X(),_=q(w,`${x}--icon-tooltip`,{[`${x}--icon-tooltip--disabled`]:l});n&&(h!=="ghost"||v!=="lg")&&console.warn("The prop BadgeCount must be used with hasIconOnly=true, kind='ghost' and size='lg'");const E=Ke("badge-indicator");return c.createElement(Hn,{align:e,autoAlign:t,closeOnActivation:i,className:_,defaultOpen:s,dropShadow:f,enterDelayMs:u,highContrast:p,label:b,leaveDelayMs:d},c.createElement($n,Z({},R,{disabled:l,kind:h,ref:y,size:v,isSelected:A,hasIconOnly:!0,className:o,"aria-describedby":R["aria-describedby"]||n&&E}),r,!l&&n!==void 0&&c.createElement(Fn,{id:E,count:n>0?n:void 0})))});Wn.propTypes={align:Rn(a.oneOf(["top","top-left","top-right","bottom","bottom-left","bottom-right","left","left-bottom","left-top","right","right-bottom","right-top","top-start","top-end","bottom-start","bottom-end","left-end","left-start","right-end","right-start"]),["top","top-start","top-end","bottom","bottom-start","bottom-end","left","left-start","left-end","right","right-start","right-end"],et),autoAlign:a.bool,badgeCount:a.number,href:a.string,children:a.node,className:a.string,closeOnActivation:a.bool,defaultOpen:a.bool,dropShadow:a.bool,disabled:a.bool,enterDelayMs:a.number,isSelected:a.bool,highContrast:a.bool,kind:a.oneOf(kn),label:a.node.isRequired,leaveDelayMs:a.number,rel:a.string,size:a.oneOf(["sm","md","lg"]),target:a.string,wrapperClasses:a.string};const fi=["primary","secondary","danger","ghost","danger--primary","danger--ghost","danger--tertiary","tertiary"];function ui(e,t){return e===!0}const st=c.forwardRef((e,t)=>{const{as:n,autoAlign:r=!1,children:o,hasIconOnly:i=!1,tooltipHighContrast:s=!0,tooltipDropShadow:l=!1,iconDescription:f,kind:u="primary",onBlur:p,onClick:h,onFocus:b,onMouseEnter:d,onMouseLeave:w,renderIcon:v,size:A,tooltipAlignment:R="center",tooltipPosition:y="top",...x}=e;v&&!o&&!f&&console.error("Button: renderIcon property specified without also providing an iconDescription property. This may impact accessibility for screen reader users.");const _=v?c.createElement(v,null):null;if(ui(i)){let E;return(y==="top"||y==="bottom")&&(R==="center"&&(E=y),R==="end"&&(E=`${y}-end`),R==="start"&&(E=`${y}-start`)),(y==="right"||y==="left")&&(E=y),c.createElement(Wn,Z({},x,{ref:t,as:n,align:E,label:f,kind:u,size:A,highContrast:s,dropShadow:l,onMouseEnter:d,onMouseLeave:w,onFocus:b,onBlur:p,autoAlign:r,onClick:h,renderIcon:_?null:v}),_??o)}else{const{tooltipAlignment:E,...S}=e;return c.createElement($n,Z({ref:t},S))}});st.displayName="Button";st.propTypes={as:a.oneOfType([a.func,a.string,a.elementType]),autoAlign:a.bool,children:a.node,className:a.string,dangerDescription:a.string,disabled:a.bool,hasIconOnly:a.bool,href:a.string,iconDescription:e=>e.renderIcon&&!e.children&&!e.iconDescription?new Error("renderIcon property specified without also providing an iconDescription property."):null,isExpressive:a.bool,isSelected:a.bool,kind:(e,t,n)=>{const{hasIconOnly:r}=e,o=r?kn:fi;return e[t]===void 0||o.includes(e[t])?null:new Error(`Invalid prop \`${t}\` supplied to \`${n}\`. Expected one of ${o.join(", ")}.`)},onBlur:a.func,onClick:a.func,onFocus:a.func,onMouseEnter:a.func,onMouseLeave:a.func,rel:a.string,renderIcon:a.oneOfType([a.func,a.object]),role:a.string,size:a.oneOf(["xs","sm","md","lg","xl","2xl"]),tabIndex:a.number,target:a.string,tooltipAlignment:a.oneOf(["start","center","end"]),tooltipDropShadow:a.bool,tooltipHighContrast:a.bool,tooltipPosition:a.oneOf(["top","right","bottom","left"]),type:a.oneOf(["button","reset","submit"])};const di=({name:e,className:t,type:n})=>{function r({className:o,...i}){const s=X(),l=q(typeof t=="function"?t(s):t,o);return c.createElement(n,{...i,className:l||void 0})}return r.displayName=e,r.propTypes={className:a.string},r},pi=({className:e,children:t,...n})=>{const r=X(),o=q(`${r}--header`,e);return c.createElement("header",Z({},n,{className:o}),t)};pi.propTypes={"aria-label":a.string,"aria-labelledby":a.string,className:a.string};const mi=e=>{const t=Object.keys(e),n=r=>((o,i,s,...l)=>r(o,i,s,...l));return t.reduce((r,o)=>({...r,[o]:n(e[o])}),{})},jn=mi({"aria-label":a.string,"aria-labelledby":a.string}),Un=c.forwardRef(({"aria-label":e,"aria-labelledby":t,children:n,className:r,onClick:o,tooltipHighContrast:i=!0,tooltipDropShadow:s,isActive:l,tooltipAlignment:f,...u},p)=>{const h=X(),b=q({[r]:!!r,[`${h}--header__action`]:!0,[`${h}--header__action--active`]:l}),d={"aria-label":e,"aria-labelledby":t};return c.createElement(st,Z({},u,d,{className:b,onClick:o,type:"button",hasIconOnly:!0,size:"lg",kind:"ghost",iconDescription:e,tooltipPosition:"bottom",tooltipAlignment:f,tooltipDropShadow:s,tooltipHighContrast:i,ref:p}),n)});Un.propTypes={...jn,children:a.node.isRequired,className:a.string,isActive:a.bool,onClick:a.func,tooltipAlignment:a.oneOf(["start","center","end"]),tooltipDropShadow:a.bool,tooltipHighContrast:a.bool};Un.displayName="HeaderGlobalAction";const Pi=di({name:"HeaderGlobalBar",className:e=>`${e}--header__global`,type:"div"}),hi=({element:e,as:t,isSideNavExpanded:n,...r},o)=>{const i=t??e??"a";return c.createElement(i,Z({ref:o},r))},Me=c.forwardRef(hi),at={as:a.elementType,element:Qe(a.elementType),isSideNavExpanded:a.bool};Me.displayName="Link";Me.propTypes=at;const zn=g.forwardRef(function({className:t,isActive:n,isCurrentPage:r,"aria-current":o,children:i,role:s,tabIndex:l,...f},u){const p=X(),h=l??0;r&&(n=r);const b=n&&o!=="page",d=q({[`${p}--header__menu-item`]:!0,[`${p}--header__menu-item--current`]:b});return c.createElement("li",{className:t,role:s},c.createElement(Me,Z({},f,{"aria-current":b?!0:o,className:d,ref:u,tabIndex:h}),c.createElement("span",{className:`${p}--text-truncate--end`},i)))});zn.displayName="HeaderMenuItem";zn.propTypes={...at,children:a.node.isRequired,className:a.string,isActive:a.bool,isCurrentPage:Qe(a.bool),role:a.string,tabIndex:a.number};function gi({children:e,className:t,prefix:n="IBM",...r}){const o=X(),i=q(`${o}--header__name`,t);return c.createElement(Me,Z({},r,{className:i}),n&&c.createElement(c.Fragment,null,c.createElement("span",{className:`${o}--header__name--prefix`},n)," "),e)}gi.propTypes={...at,children:a.node.isRequired,className:a.string,href:a.string,prefix:a.string};function bi({"aria-label":e,"aria-labelledby":t,children:n,className:r,...o}){const i=X(),s=q(`${i}--header__nav`,r);return c.createElement("nav",Z({},o,{"aria-label":e,"aria-labelledby":t,className:s}),c.createElement("ul",{className:`${i}--header__menu-bar`},n))}bi.propTypes={...jn,children:a.node,className:a.string};export{vi as A,st as B,Ri as C,_i as D,pi as H,Ai as L,Oi as M,Ti as P,Li as R,Ni as S,gi as a,bi as b,zn as c,Pi as d,Un as e,Si as f,xi as g,Ei as h,Ci as i,wi as j,g as r};
@github-actions

Copy link
Copy Markdown

📚 Documentation Build Status

✅ Build completed successfully!

Build Artifacts:

  • The static site has been built and uploaded as an artifact
  • Download the artifact from the workflow run to preview locally

What's included:

  • 📖 Documentation (Fumadocs)
  • 🌐 Landing page (website)

Note: This is a PR preview build. The site will be deployed to GitHub Pages when merged to main.


Build completed in workflow run #2

adwiteeymauriya added a commit that referenced this pull request May 9, 2026
* chore: initial commit

* chore: migrate docs from duragraph repo (#1)

* chore: migrate docs from duragraph repo

* fix: remove astro-check from pre-commit hook

* ci: add PR checks for prettier, build, and link validation

* docs: add governance, evals, and memory documentation (#3)

Migrated from duragraph PRs #73, #80, #92

* docs: update README with project-specific content

* docs: fix live site URL to duragraph.ai

* docs: add comprehensive v0.2.0 SDK and API documentation (#4)

- Add missing sidebar sections (Memory, Evals, Governance, SDK)
- Create comprehensive Python SDK reference for v0.2.0 features
- Create Go SDK documentation with complete API coverage
- Complete API Reference (overview, REST API, SSE streaming)
- Add missing linked pages (knowledge graphs, evals subpages)
- Support v0.2.0 milestone development work

* fix: add redirect from /docs to /docs/introduction/ (#5)

- Users visiting /docs now get redirected to introduction page
- Implemented via Astro's built-in redirects configuration
- Creates proper meta refresh redirect for static hosting

* feat: add Scalar interactive API reference (#6)

* feat: add Scalar interactive API reference

- Install @scalar/astro package for modern API documentation
- Add interactive API reference page at /api/reference
- Copy OpenAPI spec to public folder for Scalar to consume
- Update API overview to link to interactive reference
- Use purple theme with DuraGraph coral accent colors
- Enables try-it-out functionality for API endpoints

* style: fix markdown table formatting

* style: match Scalar API reference theme to Starlight docs

- Dark mode background #181a1b matching docs
- Light mode with proper contrast
- Coral accent color #fb923c for dark, #ea580c for light
- Space Grotesk + JetBrains Mono fonts
- Sharp corners (zero border radius)
- Sidebar theme variables for consistent styling

* docs: slim down API reference pages, link to Scalar

- REST API Reference: Remove endpoint docs (now in Scalar), keep code examples
- SSE Streaming: Remove basic endpoint docs, keep event types and best practices
- Both pages now link to Interactive API Reference

* docs: update architecture, SDK, and ops docs for v0.8 (#7)

Architecture:
- overview: add horizontal scaling section (optimistic concurrency,
  advisory locks, skip locked, lease epoch fencing)
- components: replace stub with full component descriptions, run
  aggregate state machine, event store, outbox pattern, rate limiting
- data-flow: replace stub with event sourcing, CQRS, outbox pattern,
  optimistic concurrency, lease epoch fencing, SSE flow, schema docs
- security-model: replace stub with defense-in-depth layers, multi-
  instance security, STRIDE threat model

Python SDK:
- Bump version reference to v0.4.0
- Add duragraph[dspy] install option
- Add @dspy_node decorator documentation with parameters table
- Add DSPy Integration section (LM bridge, module types, RAG example)

Feature Matrix:
- Add DSPy Integration row (Python: complete, Go: not planned)
- Update summary counts
- Update last-updated date to April 2026

Operations:
- deployment: replace stub with full deployment guide including env
  var reference tables (server, auth, rate limiting, LLM providers),
  migration instructions, multi-instance checklist, health checks
- security: update DoS mitigation to reference rate limiting, add
  resource links

SDK Overview:
- Add DSPy mention to Python SDK features

* fix: use canonical Apache 2.0 license

* docs: update for v0.2.1 release with GHCR image references (#8)

- Update Docker image from duragraph/server:latest to ghcr.io/duragraph/duragraph:0.2.1
- Add Docker Image section to self-hosted installation guide
- Add docker pull option to getting-started quick start
- Add version badge to introduction page
- Add Current Release section to roadmap

* docs: convert ASCII diagrams to Mermaid for better rendering (#9)

Replace ASCII box/arrow diagrams with Mermaid syntax in 5 files:
- architecture/data-flow.mdx (CQRS write/read paths)
- architecture/security-model.mdx (defense-in-depth chain)
- user-guide/governance/overview.mdx (governance layer)
- user-guide/memory/overview.mdx (memory hierarchy)
- user-guide/installation/self-hosted.mdx (architecture overview)

astro-mermaid already configured; diagrams render automatically.

* docs: reposition messaging to lead with architecture strengths (#10)

- Rewrite introduction to lead with event sourcing, CQRS, and DuraGraph's
  own identity instead of LangGraph compatibility
- Update landing page: replace LangGraph stats/features with ES+CQRS,
  multi-LLM native, and polyglot SDKs
- Soften migration guide: remove sales-pitch framing, keep practical tutorial
- Demote LangGraph compatibility to a migration path, not a headline

* docs(architecture): add async-events, DDD, and Python SDK pages

Three architecture deep-dives that were drafted but never committed.
Same shape as the existing components/data-flow/overview pages
(Starlight frontmatter, Mermaid diagrams, cross-links).

- async-events.mdx — NATS JetStream event taxonomy across the five
  domains, multi-tenant accounts, streams, and consumers; guided
  tour of duragraph-spec/async/asyncapi.yml.
- domain-driven-design.mdx — the three-layer model (domain /
  application / infrastructure), dependency rule, aggregates, and
  why each pattern was chosen.
- python-sdk.mdx — Python SDK internals: the three roles (REST
  client, Graph DSL, Worker daemon), how the worker claims tasks,
  heartbeats, and drains.

Also gitignore graphify-out/ which the graphify tool drops in the
repo root.

* ci(docs): port docs CI + deploy workflows for monorepo

After the docs/ import, docs/.github/workflows/ is dead weight —
GitHub Actions only reads workflows from the repo root. Port both:

- .github/workflows/docs-ci.yml: prettier check + Astro build +
  link validation, paths-filtered to docs/**.
- .github/workflows/docs-deploy.yml: Cloudflare Pages deploy on push
  to main + PR previews. Same paths filter.

Both jobs use defaults.run.working-directory: docs so pnpm operations
run inside the imported subtree. The deploy job also passes
workingDirectory: docs to wrangler-action so it picks up the right
dist/.

Strip trailing whitespace in 2 imported MDX files (sdk/go.mdx,
sdk/python.mdx) — pre-commit hook in this repo is stricter than
the source repo had.

Operator action: ensure CLOUDFLARE_API_TOKEN and CLOUDFLARE_ACCOUNT_ID
are set as secrets on Duragraph/duragraph (not just on the source
duragraph-docs repo). Without those, docs-deploy fails — but Docs CI
will still pass.

* fix: address PR #174 review comments

CI gating:
- docs-deploy.yml: skip Cloudflare deploy + PR-comment steps for PRs
  from forks, where repo secrets aren't exposed.

Broken badge:
- docs/README.md: rewrite the CI badge URL to point at the engine repo's
  docs-deploy.yml workflow (the source repo is being archived).

Content drift:
- docs/src/content/docs/README.mdx: replace the Fumadocs claim with
  Astro + Starlight, and fix the dev port (3000 -> 4321, Astro default
  per docs/package.json + astro.config.mjs).
- docs/src/content/docs/api.mdx: drop the MkDocs OpenAPI plugin
  reference; point readers at the existing Scalar-based interactive
  reference at /api/reference and at schemas/openapi/duragraph.yaml in
  the engine repo. Update example URLs from http://localhost:8000/...
  to the engine's actual http://localhost:8081/api/v1/... surface
  (verified against cmd/duragraph/cmd/dev.go default and
  internal/infrastructure/http/handlers/run.go + thread.go routes).
- docs/src/content/docs/docs/user-guide/installation/requirements.mdx:
  bump Go version from 1.23+ to 1.25+ to match go.mod (go 1.25.0).
- docs/src/content/docs/docs/api-reference/rest-api.mdx: replace the
  fictional X-RateLimit-Reset header with the headers the
  ratelimit_simple middleware actually emits (X-RateLimit-Limit,
  X-RateLimit-Remaining, Retry-After) and align the 429 body with the
  middleware's actual response shape.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: backend Go server code area: ci/cd Workflows, automation area: deployment Docker, cloud configs area: docs Documentation area: frontend Dashboard (Svelte) priority: high High priority

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant