#
tokens: 46317/50000 2/1630 files (page 113/186)
lines: on (toggle) GitHub
raw markdown copy reset
This is page 113 of 186. Use http://codebase.md/xmlui-org/xmlui/tools/vscode/resources/cantFindIt.jpg?lines=true&page={x} to view the full context.

# Directory Structure

```
├── .changeset
│   ├── config.json
│   └── cyan-tools-design.md
├── .eslintrc.cjs
├── .github
│   ├── build-checklist.png
│   ├── ISSUE_TEMPLATE
│   │   ├── bug_report.md
│   │   └── feature_request.md
│   └── workflows
│       ├── deploy-blog-optimized.yml
│       ├── deploy-blog-swa.yml
│       ├── deploy-blog.yml
│       ├── deploy-docs-optimized.yml
│       ├── deploy-docs-swa.yml
│       ├── deploy-docs.yml
│       ├── prepare-versions.yml
│       ├── release-packages.yml
│       ├── run-all-tests.yml
│       └── run-smoke-tests.yml
├── .gitignore
├── .prettierrc.js
├── .vscode
│   ├── launch.json
│   └── settings.json
├── blog
│   ├── .gitignore
│   ├── .gitkeep
│   ├── CHANGELOG.md
│   ├── extensions.ts
│   ├── index.html
│   ├── index.ts
│   ├── package.json
│   ├── public
│   │   ├── blog
│   │   │   ├── images
│   │   │   │   ├── an-advanced-codefence.gif
│   │   │   │   ├── an-advanced-codefence.mp4
│   │   │   │   ├── blog-page-component.png
│   │   │   │   ├── blog-scrabble.png
│   │   │   │   ├── codefence-runner.png
│   │   │   │   ├── integrated-blog-search.png
│   │   │   │   ├── lorem-ipsum.png
│   │   │   │   ├── playground-checkbox-source.png
│   │   │   │   ├── playground.png
│   │   │   │   ├── use-xmlui-mcp-to-find-a-howto.png
│   │   │   │   └── xmlui-demo-gallery.png
│   │   │   ├── introducing-xmlui.md
│   │   │   ├── lorem-ipsum.md
│   │   │   ├── newest-post.md
│   │   │   ├── older-post.md
│   │   │   ├── xmlui-playground.md
│   │   │   └── xmlui-powered-blog.md
│   │   ├── mockServiceWorker.js
│   │   ├── resources
│   │   │   ├── favicon.ico
│   │   │   ├── files
│   │   │   │   └── for-download
│   │   │   │       └── xmlui
│   │   │   │           └── xmlui-standalone.umd.js
│   │   │   ├── github.svg
│   │   │   ├── llms.txt
│   │   │   ├── logo-dark.svg
│   │   │   ├── logo.svg
│   │   │   ├── pg-popout.svg
│   │   │   ├── rss.svg
│   │   │   └── xmlui-logo.svg
│   │   ├── serve.json
│   │   ├── staticwebapp.config.json
│   │   └── web.config
│   ├── scripts
│   │   ├── download-latest-xmlui.js
│   │   ├── generate-rss.js
│   │   ├── get-releases.js
│   │   └── utils.js
│   ├── src
│   │   ├── components
│   │   │   ├── BlogOverview.xmlui
│   │   │   ├── BlogPage.xmlui
│   │   │   └── PageNotFound.xmlui
│   │   ├── config.ts
│   │   ├── Main.xmlui
│   │   └── themes
│   │       └── blog-theme.ts
│   └── tsconfig.json
├── CONTRIBUTING.md
├── docs
│   ├── .gitignore
│   ├── CHANGELOG.md
│   ├── ComponentRefLinks.txt
│   ├── content
│   │   ├── _meta.json
│   │   ├── components
│   │   │   ├── _meta.json
│   │   │   ├── _overview.md
│   │   │   ├── APICall.md
│   │   │   ├── App.md
│   │   │   ├── AppHeader.md
│   │   │   ├── AppState.md
│   │   │   ├── AutoComplete.md
│   │   │   ├── Avatar.md
│   │   │   ├── Backdrop.md
│   │   │   ├── Badge.md
│   │   │   ├── BarChart.md
│   │   │   ├── Bookmark.md
│   │   │   ├── Breakout.md
│   │   │   ├── Button.md
│   │   │   ├── Card.md
│   │   │   ├── Carousel.md
│   │   │   ├── ChangeListener.md
│   │   │   ├── Checkbox.md
│   │   │   ├── CHStack.md
│   │   │   ├── ColorPicker.md
│   │   │   ├── Column.md
│   │   │   ├── ContentSeparator.md
│   │   │   ├── CVStack.md
│   │   │   ├── DataSource.md
│   │   │   ├── DateInput.md
│   │   │   ├── DatePicker.md
│   │   │   ├── DonutChart.md
│   │   │   ├── DropdownMenu.md
│   │   │   ├── EmojiSelector.md
│   │   │   ├── ExpandableItem.md
│   │   │   ├── FileInput.md
│   │   │   ├── FileUploadDropZone.md
│   │   │   ├── FlowLayout.md
│   │   │   ├── Footer.md
│   │   │   ├── Form.md
│   │   │   ├── FormItem.md
│   │   │   ├── FormSection.md
│   │   │   ├── Fragment.md
│   │   │   ├── H1.md
│   │   │   ├── H2.md
│   │   │   ├── H3.md
│   │   │   ├── H4.md
│   │   │   ├── H5.md
│   │   │   ├── H6.md
│   │   │   ├── Heading.md
│   │   │   ├── HSplitter.md
│   │   │   ├── HStack.md
│   │   │   ├── Icon.md
│   │   │   ├── IFrame.md
│   │   │   ├── Image.md
│   │   │   ├── Items.md
│   │   │   ├── LabelList.md
│   │   │   ├── Legend.md
│   │   │   ├── LineChart.md
│   │   │   ├── Link.md
│   │   │   ├── List.md
│   │   │   ├── Logo.md
│   │   │   ├── Markdown.md
│   │   │   ├── MenuItem.md
│   │   │   ├── MenuSeparator.md
│   │   │   ├── ModalDialog.md
│   │   │   ├── NavGroup.md
│   │   │   ├── NavLink.md
│   │   │   ├── NavPanel.md
│   │   │   ├── NoResult.md
│   │   │   ├── NumberBox.md
│   │   │   ├── Option.md
│   │   │   ├── Page.md
│   │   │   ├── PageMetaTitle.md
│   │   │   ├── Pages.md
│   │   │   ├── Pagination.md
│   │   │   ├── PasswordInput.md
│   │   │   ├── PieChart.md
│   │   │   ├── ProgressBar.md
│   │   │   ├── Queue.md
│   │   │   ├── RadioGroup.md
│   │   │   ├── RealTimeAdapter.md
│   │   │   ├── Redirect.md
│   │   │   ├── Select.md
│   │   │   ├── Slider.md
│   │   │   ├── Slot.md
│   │   │   ├── SpaceFiller.md
│   │   │   ├── Spinner.md
│   │   │   ├── Splitter.md
│   │   │   ├── Stack.md
│   │   │   ├── StickyBox.md
│   │   │   ├── SubMenuItem.md
│   │   │   ├── Switch.md
│   │   │   ├── TabItem.md
│   │   │   ├── Table.md
│   │   │   ├── TableOfContents.md
│   │   │   ├── Tabs.md
│   │   │   ├── Text.md
│   │   │   ├── TextArea.md
│   │   │   ├── TextBox.md
│   │   │   ├── Theme.md
│   │   │   ├── TimeInput.md
│   │   │   ├── Timer.md
│   │   │   ├── ToneChangerButton.md
│   │   │   ├── ToneSwitch.md
│   │   │   ├── Tooltip.md
│   │   │   ├── Tree.md
│   │   │   ├── VSplitter.md
│   │   │   ├── VStack.md
│   │   │   ├── xmlui-animations
│   │   │   │   ├── _meta.json
│   │   │   │   ├── _overview.md
│   │   │   │   ├── Animation.md
│   │   │   │   ├── FadeAnimation.md
│   │   │   │   ├── FadeInAnimation.md
│   │   │   │   ├── FadeOutAnimation.md
│   │   │   │   ├── ScaleAnimation.md
│   │   │   │   └── SlideInAnimation.md
│   │   │   ├── xmlui-pdf
│   │   │   │   ├── _meta.json
│   │   │   │   ├── _overview.md
│   │   │   │   └── Pdf.md
│   │   │   ├── xmlui-spreadsheet
│   │   │   │   ├── _meta.json
│   │   │   │   ├── _overview.md
│   │   │   │   └── Spreadsheet.md
│   │   │   └── xmlui-website-blocks
│   │   │       ├── _meta.json
│   │   │       ├── _overview.md
│   │   │       ├── Carousel.md
│   │   │       ├── HelloMd.md
│   │   │       ├── HeroSection.md
│   │   │       └── ScrollToTop.md
│   │   └── extensions
│   │       ├── _meta.json
│   │       ├── xmlui-animations
│   │       │   ├── _meta.json
│   │       │   ├── _overview.md
│   │       │   ├── Animation.md
│   │       │   ├── FadeAnimation.md
│   │       │   ├── FadeInAnimation.md
│   │       │   ├── FadeOutAnimation.md
│   │       │   ├── ScaleAnimation.md
│   │       │   └── SlideInAnimation.md
│   │       └── xmlui-website-blocks
│   │           ├── _meta.json
│   │           ├── _overview.md
│   │           ├── Carousel.md
│   │           ├── FancyButton.md
│   │           ├── HeroSection.md
│   │           └── ScrollToTop.md
│   ├── extensions.ts
│   ├── index.html
│   ├── index.ts
│   ├── package.json
│   ├── public
│   │   ├── feed.rss
│   │   ├── mockServiceWorker.js
│   │   ├── pages
│   │   │   ├── _meta.json
│   │   │   ├── app-structure.md
│   │   │   ├── build-editor-component.md
│   │   │   ├── build-hello-world-component.md
│   │   │   ├── components-intro.md
│   │   │   ├── context-variables.md
│   │   │   ├── forms.md
│   │   │   ├── globals.md
│   │   │   ├── glossary.md
│   │   │   ├── helper-tags.md
│   │   │   ├── hosted-deployment.md
│   │   │   ├── howto
│   │   │   │   ├── assign-a-complex-json-literal-to-a-component-variable.md
│   │   │   │   ├── chain-a-refetch.md
│   │   │   │   ├── control-cache-invalidation.md
│   │   │   │   ├── debounce-user-input-for-api-calls.md
│   │   │   │   ├── debounce-with-changelistener.md
│   │   │   │   ├── debug-a-component.md
│   │   │   │   ├── delay-a-datasource-until-another-datasource-is-ready.md
│   │   │   │   ├── delegate-a-method.md
│   │   │   │   ├── do-custom-form-validation.md
│   │   │   │   ├── expose-a-method-from-a-component.md
│   │   │   │   ├── filter-and-transform-data-from-an-api.md
│   │   │   │   ├── group-items-in-list-by-a-property.md
│   │   │   │   ├── handle-background-operations.md
│   │   │   │   ├── hide-an-element-until-its-datasource-is-ready.md
│   │   │   │   ├── make-a-set-of-equal-width-cards.md
│   │   │   │   ├── make-a-table-responsive.md
│   │   │   │   ├── make-navpanel-width-responsive.md
│   │   │   │   ├── modify-a-value-reported-in-a-column.md
│   │   │   │   ├── paginate-a-list.md
│   │   │   │   ├── pass-data-to-a-modal-dialog.md
│   │   │   │   ├── react-to-button-click-not-keystrokes.md
│   │   │   │   ├── set-the-initial-value-of-a-select-from-fetched-data.md
│   │   │   │   ├── share-a-modaldialog-across-components.md
│   │   │   │   ├── sync-selections-between-table-and-list-views.md
│   │   │   │   ├── update-ui-optimistically.md
│   │   │   │   ├── use-built-in-form-validation.md
│   │   │   │   └── use-the-same-modaldialog-to-add-or-edit.md
│   │   │   ├── howto.md
│   │   │   ├── intro.md
│   │   │   ├── layout.md
│   │   │   ├── markup.md
│   │   │   ├── mcp.md
│   │   │   ├── modal-dialogs.md
│   │   │   ├── news-and-reviews.md
│   │   │   ├── reactive-intro.md
│   │   │   ├── refactoring.md
│   │   │   ├── routing-and-links.md
│   │   │   ├── samples
│   │   │   │   ├── color-palette.xmlui
│   │   │   │   ├── color-values.xmlui
│   │   │   │   ├── shadow-sizes.xmlui
│   │   │   │   ├── spacing-sizes.xmlui
│   │   │   │   ├── swatch.xmlui
│   │   │   │   ├── theme-gallery-brief.xmlui
│   │   │   │   └── theme-gallery.xmlui
│   │   │   ├── scoping.md
│   │   │   ├── scripting.md
│   │   │   ├── styles-and-themes
│   │   │   │   ├── common-units.md
│   │   │   │   ├── layout-props.md
│   │   │   │   ├── theme-variable-defaults.md
│   │   │   │   ├── theme-variables.md
│   │   │   │   └── themes.md
│   │   │   ├── template-properties.md
│   │   │   ├── test.md
│   │   │   ├── tutorial-01.md
│   │   │   ├── tutorial-02.md
│   │   │   ├── tutorial-03.md
│   │   │   ├── tutorial-04.md
│   │   │   ├── tutorial-05.md
│   │   │   ├── tutorial-06.md
│   │   │   ├── tutorial-07.md
│   │   │   ├── tutorial-08.md
│   │   │   ├── tutorial-09.md
│   │   │   ├── tutorial-10.md
│   │   │   ├── tutorial-11.md
│   │   │   ├── tutorial-12.md
│   │   │   ├── universal-properties.md
│   │   │   ├── user-defined-components.md
│   │   │   ├── vscode.md
│   │   │   ├── working-with-markdown.md
│   │   │   ├── working-with-text.md
│   │   │   ├── xmlui-animations
│   │   │   │   ├── _meta.json
│   │   │   │   ├── _overview.md
│   │   │   │   ├── Animation.md
│   │   │   │   ├── FadeAnimation.md
│   │   │   │   ├── FadeInAnimation.md
│   │   │   │   ├── FadeOutAnimation.md
│   │   │   │   ├── ScaleAnimation.md
│   │   │   │   └── SlideInAnimation.md
│   │   │   ├── xmlui-charts
│   │   │   │   ├── _meta.json
│   │   │   │   ├── _overview.md
│   │   │   │   ├── BarChart.md
│   │   │   │   ├── DonutChart.md
│   │   │   │   ├── LabelList.md
│   │   │   │   ├── Legend.md
│   │   │   │   ├── LineChart.md
│   │   │   │   └── PieChart.md
│   │   │   ├── xmlui-pdf
│   │   │   │   ├── _meta.json
│   │   │   │   ├── _overview.md
│   │   │   │   └── Pdf.md
│   │   │   └── xmlui-spreadsheet
│   │   │       ├── _meta.json
│   │   │       ├── _overview.md
│   │   │       └── Spreadsheet.md
│   │   ├── resources
│   │   │   ├── devdocs
│   │   │   │   ├── debug-proxy-object-2.png
│   │   │   │   ├── debug-proxy-object.png
│   │   │   │   ├── table_editor_01.png
│   │   │   │   ├── table_editor_02.png
│   │   │   │   ├── table_editor_03.png
│   │   │   │   ├── table_editor_04.png
│   │   │   │   ├── table_editor_05.png
│   │   │   │   ├── table_editor_06.png
│   │   │   │   ├── table_editor_07.png
│   │   │   │   ├── table_editor_08.png
│   │   │   │   ├── table_editor_09.png
│   │   │   │   ├── table_editor_10.png
│   │   │   │   ├── table_editor_11.png
│   │   │   │   ├── table-editor-01.png
│   │   │   │   ├── table-editor-02.png
│   │   │   │   ├── table-editor-03.png
│   │   │   │   ├── table-editor-04.png
│   │   │   │   ├── table-editor-06.png
│   │   │   │   ├── table-editor-07.png
│   │   │   │   ├── table-editor-08.png
│   │   │   │   ├── table-editor-09.png
│   │   │   │   └── xmlui-rendering-of-tiptap-markdown.png
│   │   │   ├── favicon.ico
│   │   │   ├── files
│   │   │   │   ├── clients.json
│   │   │   │   ├── daily-revenue.json
│   │   │   │   ├── dashboard-stats.json
│   │   │   │   ├── demo.xmlui
│   │   │   │   ├── demo.xmlui.xs
│   │   │   │   ├── downloads
│   │   │   │   │   └── downloads.json
│   │   │   │   ├── for-download
│   │   │   │   │   ├── index-with-api.html
│   │   │   │   │   ├── index.html
│   │   │   │   │   ├── mockApi.js
│   │   │   │   │   ├── start-darwin.sh
│   │   │   │   │   ├── start-linux.sh
│   │   │   │   │   ├── start.bat
│   │   │   │   │   └── xmlui
│   │   │   │   │       └── xmlui-standalone.umd.js
│   │   │   │   ├── getting-started
│   │   │   │   │   ├── cl-tutorial-final.zip
│   │   │   │   │   ├── cl-tutorial.zip
│   │   │   │   │   ├── cl-tutorial2.zip
│   │   │   │   │   ├── cl-tutorial3.zip
│   │   │   │   │   ├── cl-tutorial4.zip
│   │   │   │   │   ├── cl-tutorial5.zip
│   │   │   │   │   ├── cl-tutorial6.zip
│   │   │   │   │   ├── getting-started.zip
│   │   │   │   │   ├── hello-xmlui.zip
│   │   │   │   │   ├── xmlui-empty.zip
│   │   │   │   │   └── xmlui-starter.zip
│   │   │   │   ├── howto
│   │   │   │   │   └── component-icons
│   │   │   │   │       └── up-arrow.svg
│   │   │   │   ├── invoices.json
│   │   │   │   ├── monthly-status.json
│   │   │   │   ├── news-and-reviews.json
│   │   │   │   ├── products.json
│   │   │   │   ├── releases.json
│   │   │   │   ├── tutorials
│   │   │   │   │   ├── datasource
│   │   │   │   │   │   └── api.ts
│   │   │   │   │   └── p2do
│   │   │   │   │       ├── api.ts
│   │   │   │   │       └── todo-logo.svg
│   │   │   │   └── xmlui.json
│   │   │   ├── github.svg
│   │   │   ├── images
│   │   │   │   ├── apiaction-tutorial
│   │   │   │   │   ├── add-success.png
│   │   │   │   │   ├── apiaction-param.png
│   │   │   │   │   ├── change-completed.png
│   │   │   │   │   ├── change-in-progress.png
│   │   │   │   │   ├── confirm-delete.png
│   │   │   │   │   ├── data-error.png
│   │   │   │   │   ├── data-progress.png
│   │   │   │   │   ├── data-success.png
│   │   │   │   │   ├── display-1.png
│   │   │   │   │   ├── item-deleted.png
│   │   │   │   │   ├── item-updated.png
│   │   │   │   │   ├── missing-api-key.png
│   │   │   │   │   ├── new-item-added.png
│   │   │   │   │   └── test-message.png
│   │   │   │   ├── chat-api
│   │   │   │   │   └── domain-model.svg
│   │   │   │   ├── components
│   │   │   │   │   ├── image
│   │   │   │   │   │   └── breakfast.jpg
│   │   │   │   │   ├── markdown
│   │   │   │   │   │   └── colors.png
│   │   │   │   │   └── modal
│   │   │   │   │       ├── deep_link_dialog_1.jpg
│   │   │   │   │       └── deep_link_dialog_2.jpg
│   │   │   │   ├── create-apps
│   │   │   │   │   ├── collapsed-vertical.png
│   │   │   │   │   ├── using-forms-warning-dialog.png
│   │   │   │   │   └── using-forms.png
│   │   │   │   ├── datasource-tutorial
│   │   │   │   │   ├── data-with-header.png
│   │   │   │   │   ├── filtered-data.png
│   │   │   │   │   ├── filtered-items.png
│   │   │   │   │   ├── initial-page-items.png
│   │   │   │   │   ├── list-items.png
│   │   │   │   │   ├── next-page-items.png
│   │   │   │   │   ├── no-data.png
│   │   │   │   │   ├── pagination-1.jpg
│   │   │   │   │   ├── pagination-1.png
│   │   │   │   │   ├── polling-1.png
│   │   │   │   │   ├── refetch-data.png
│   │   │   │   │   ├── slow-loading.png
│   │   │   │   │   ├── test-message.png
│   │   │   │   │   ├── Thumbs.db
│   │   │   │   │   ├── unconventional-data.png
│   │   │   │   │   └── unfiltered-items.png
│   │   │   │   ├── flower.jpg
│   │   │   │   ├── get-started
│   │   │   │   │   ├── add-new-contact.png
│   │   │   │   │   ├── app-modified.png
│   │   │   │   │   ├── app-start.png
│   │   │   │   │   ├── app-with-boxes.png
│   │   │   │   │   ├── app-with-toast.png
│   │   │   │   │   ├── boilerplate-structure.png
│   │   │   │   │   ├── cl-initial.png
│   │   │   │   │   ├── cl-start.png
│   │   │   │   │   ├── contact-counts.png
│   │   │   │   │   ├── contact-dialog-title.png
│   │   │   │   │   ├── contact-dialog.png
│   │   │   │   │   ├── contact-menus.png
│   │   │   │   │   ├── contact-predicates.png
│   │   │   │   │   ├── context-menu.png
│   │   │   │   │   ├── dashboard-numbers.png
│   │   │   │   │   ├── default-contact-list.png
│   │   │   │   │   ├── delete-contact.png
│   │   │   │   │   ├── delete-task.png
│   │   │   │   │   ├── detailed-template.png
│   │   │   │   │   ├── edit-contact-details.png
│   │   │   │   │   ├── edited-contact-saved.png
│   │   │   │   │   ├── empty-sections.png
│   │   │   │   │   ├── filter-completed.png
│   │   │   │   │   ├── fullwidth-desktop.png
│   │   │   │   │   ├── fullwidth-mobile.png
│   │   │   │   │   ├── initial-table.png
│   │   │   │   │   ├── items-and-badges.png
│   │   │   │   │   ├── loading-message.png
│   │   │   │   │   ├── new-contact-button.png
│   │   │   │   │   ├── new-contact-saved.png
│   │   │   │   │   ├── no-empty-sections.png
│   │   │   │   │   ├── personal-todo-initial.png
│   │   │   │   │   ├── piechart.png
│   │   │   │   │   ├── review-today.png
│   │   │   │   │   ├── rudimentary-dashboard.png
│   │   │   │   │   ├── section-collapsed.png
│   │   │   │   │   ├── sectioned-items.png
│   │   │   │   │   ├── sections-ordered.png
│   │   │   │   │   ├── spacex-list-with-links.png
│   │   │   │   │   ├── spacex-list.png
│   │   │   │   │   ├── start-personal-todo-1.png
│   │   │   │   │   ├── submit-new-contact.png
│   │   │   │   │   ├── submit-new-task.png
│   │   │   │   │   ├── syntax-highlighting.png
│   │   │   │   │   ├── table-with-badge.png
│   │   │   │   │   ├── template-with-card.png
│   │   │   │   │   ├── test-emulated-api.png
│   │   │   │   │   ├── Thumbs.db
│   │   │   │   │   ├── todo-logo.png
│   │   │   │   │   └── xmlui-tools.png
│   │   │   │   ├── HelloApp.png
│   │   │   │   ├── HelloApp2.png
│   │   │   │   ├── logos
│   │   │   │   │   ├── xmlui1.svg
│   │   │   │   │   ├── xmlui2.svg
│   │   │   │   │   ├── xmlui3.svg
│   │   │   │   │   ├── xmlui4.svg
│   │   │   │   │   ├── xmlui5.svg
│   │   │   │   │   ├── xmlui6.svg
│   │   │   │   │   └── xmlui7.svg
│   │   │   │   ├── pdf
│   │   │   │   │   └── dummy-pdf.jpg
│   │   │   │   ├── rendering-engine
│   │   │   │   │   ├── AppEngine-flow.svg
│   │   │   │   │   ├── Component.svg
│   │   │   │   │   ├── CompoundComponent.svg
│   │   │   │   │   ├── RootComponent.svg
│   │   │   │   │   └── tree-with-containers.svg
│   │   │   │   ├── reviewers-guide
│   │   │   │   │   ├── AppEngine-flow.svg
│   │   │   │   │   └── incbutton-in-action.png
│   │   │   │   ├── tools
│   │   │   │   │   └── boilerplate-structure.png
│   │   │   │   ├── try.svg
│   │   │   │   ├── tutorial
│   │   │   │   │   ├── app-chat-history.png
│   │   │   │   │   ├── app-content-placeholder.png
│   │   │   │   │   ├── app-header-and-content.png
│   │   │   │   │   ├── app-links-channel-selected.png
│   │   │   │   │   ├── app-links-click.png
│   │   │   │   │   ├── app-navigation.png
│   │   │   │   │   ├── finished-ex01.png
│   │   │   │   │   ├── finished-ex02.png
│   │   │   │   │   ├── hello.png
│   │   │   │   │   ├── splash-screen-advanced.png
│   │   │   │   │   ├── splash-screen-after-click.png
│   │   │   │   │   ├── splash-screen-centered.png
│   │   │   │   │   ├── splash-screen-events.png
│   │   │   │   │   ├── splash-screen-expression.png
│   │   │   │   │   ├── splash-screen-reuse-after.png
│   │   │   │   │   ├── splash-screen-reuse-before.png
│   │   │   │   │   └── splash-screen.png
│   │   │   │   └── tutorial-01.png
│   │   │   ├── llms.txt
│   │   │   ├── logo-dark.svg
│   │   │   ├── logo.svg
│   │   │   ├── pg-popout.svg
│   │   │   └── xmlui-logo.svg
│   │   ├── serve.json
│   │   └── web.config
│   ├── scripts
│   │   ├── download-latest-xmlui.js
│   │   ├── generate-rss.js
│   │   ├── get-releases.js
│   │   └── utils.js
│   ├── src
│   │   ├── components
│   │   │   ├── BlogOverview.xmlui
│   │   │   ├── BlogPage.xmlui
│   │   │   ├── Boxes.xmlui
│   │   │   ├── Breadcrumb.xmlui
│   │   │   ├── ChangeLog.xmlui
│   │   │   ├── ColorPalette.xmlui
│   │   │   ├── DocumentLinks.xmlui
│   │   │   ├── DocumentPage.xmlui
│   │   │   ├── DocumentPageNoTOC.xmlui
│   │   │   ├── Icons.xmlui
│   │   │   ├── IncButton.xmlui
│   │   │   ├── IncButton2.xmlui
│   │   │   ├── NameValue.xmlui
│   │   │   ├── PageNotFound.xmlui
│   │   │   ├── PaletteItem.xmlui
│   │   │   ├── Palettes.xmlui
│   │   │   ├── SectionHeader.xmlui
│   │   │   ├── TBD.xmlui
│   │   │   ├── Test.xmlui
│   │   │   ├── ThemesIntro.xmlui
│   │   │   ├── ThousandThemes.xmlui
│   │   │   ├── TubeStops.xmlui
│   │   │   ├── TubeStops.xmlui.xs
│   │   │   └── TwoColumnCode.xmlui
│   │   ├── config.ts
│   │   ├── Main.xmlui
│   │   └── themes
│   │       ├── docs-theme.ts
│   │       ├── earthtone.ts
│   │       ├── xmlui-gray-on-default.ts
│   │       ├── xmlui-green-on-default.ts
│   │       └── xmlui-orange-on-default.ts
│   └── tsconfig.json
├── LICENSE
├── package-lock.json
├── package.json
├── packages
│   ├── tsconfig.json
│   ├── xmlui-animations
│   │   ├── .gitignore
│   │   ├── CHANGELOG.md
│   │   ├── demo
│   │   │   └── Main.xmlui
│   │   ├── index.html
│   │   ├── index.ts
│   │   ├── meta
│   │   │   └── componentsMetadata.ts
│   │   ├── package.json
│   │   └── src
│   │       ├── Animation.tsx
│   │       ├── AnimationNative.tsx
│   │       ├── FadeAnimation.tsx
│   │       ├── FadeInAnimation.tsx
│   │       ├── FadeOutAnimation.tsx
│   │       ├── index.tsx
│   │       ├── ScaleAnimation.tsx
│   │       └── SlideInAnimation.tsx
│   ├── xmlui-devtools
│   │   ├── .gitignore
│   │   ├── CHANGELOG.md
│   │   ├── demo
│   │   │   └── Main.xmlui
│   │   ├── index.html
│   │   ├── index.ts
│   │   ├── meta
│   │   │   └── componentsMetadata.ts
│   │   ├── package.json
│   │   ├── src
│   │   │   ├── devtools
│   │   │   │   ├── DevTools.tsx
│   │   │   │   ├── DevToolsNative.module.scss
│   │   │   │   ├── DevToolsNative.tsx
│   │   │   │   ├── ModalDialog.module.scss
│   │   │   │   ├── ModalDialog.tsx
│   │   │   │   ├── ModalVisibilityContext.tsx
│   │   │   │   ├── Tooltip.module.scss
│   │   │   │   ├── Tooltip.tsx
│   │   │   │   └── utils.ts
│   │   │   ├── editor
│   │   │   │   └── Editor.tsx
│   │   │   └── index.tsx
│   │   └── vite.config-overrides.ts
│   ├── xmlui-hello-world
│   │   ├── .gitignore
│   │   ├── index.ts
│   │   ├── meta
│   │   │   └── componentsMetadata.ts
│   │   ├── package.json
│   │   └── src
│   │       ├── HelloWorld.module.scss
│   │       ├── HelloWorld.tsx
│   │       ├── HelloWorldNative.tsx
│   │       └── index.tsx
│   ├── xmlui-os-frames
│   │   ├── .gitignore
│   │   ├── demo
│   │   │   └── Main.xmlui
│   │   ├── index.html
│   │   ├── index.ts
│   │   ├── meta
│   │   │   └── componentsMetadata.ts
│   │   ├── package.json
│   │   └── src
│   │       ├── index.tsx
│   │       ├── IPhoneFrame.module.scss
│   │       ├── IPhoneFrame.tsx
│   │       ├── MacOSAppFrame.module.scss
│   │       ├── MacOSAppFrame.tsx
│   │       ├── WindowsAppFrame.module.scss
│   │       └── WindowsAppFrame.tsx
│   ├── xmlui-pdf
│   │   ├── .gitignore
│   │   ├── CHANGELOG.md
│   │   ├── demo
│   │   │   ├── components
│   │   │   │   └── Pdf.xmlui
│   │   │   └── Main.xmlui
│   │   ├── index.html
│   │   ├── index.ts
│   │   ├── meta
│   │   │   └── componentsMetadata.ts
│   │   ├── package.json
│   │   └── src
│   │       ├── index.tsx
│   │       ├── LazyPdfNative.tsx
│   │       ├── Pdf.module.scss
│   │       └── Pdf.tsx
│   ├── xmlui-playground
│   │   ├── .gitignore
│   │   ├── CHANGELOG.md
│   │   ├── demo
│   │   │   └── Main.xmlui
│   │   ├── index.html
│   │   ├── index.ts
│   │   ├── meta
│   │   │   └── componentsMetadata.ts
│   │   ├── package.json
│   │   └── src
│   │       ├── hooks
│   │       │   ├── usePlayground.ts
│   │       │   └── useToast.ts
│   │       ├── index.tsx
│   │       ├── playground
│   │       │   ├── Box.module.scss
│   │       │   ├── Box.tsx
│   │       │   ├── CodeSelector.module.scss
│   │       │   ├── CodeSelector.tsx
│   │       │   ├── ConfirmationDialog.module.scss
│   │       │   ├── ConfirmationDialog.tsx
│   │       │   ├── Editor.tsx
│   │       │   ├── Header.module.scss
│   │       │   ├── Header.tsx
│   │       │   ├── Playground.tsx
│   │       │   ├── PlaygroundContent.module.scss
│   │       │   ├── PlaygroundContent.tsx
│   │       │   ├── PlaygroundNative.module.scss
│   │       │   ├── PlaygroundNative.tsx
│   │       │   ├── Preview.tsx
│   │       │   ├── StandalonePlayground.tsx
│   │       │   ├── StandalonePlaygroundNative.module.scss
│   │       │   ├── StandalonePlaygroundNative.tsx
│   │       │   ├── ThemeSwitcher.module.scss
│   │       │   ├── ThemeSwitcher.tsx
│   │       │   └── utils.ts
│   │       ├── providers
│   │       │   ├── Toast.module.scss
│   │       │   └── ToastProvider.tsx
│   │       ├── state
│   │       │   └── store.ts
│   │       ├── themes
│   │       │   └── theme.ts
│   │       └── utils
│   │           └── helpers.ts
│   ├── xmlui-search
│   │   ├── .gitignore
│   │   ├── CHANGELOG.md
│   │   ├── demo
│   │   │   └── Main.xmlui
│   │   ├── index.html
│   │   ├── index.ts
│   │   ├── meta
│   │   │   └── componentsMetadata.ts
│   │   ├── package.json
│   │   └── src
│   │       ├── index.tsx
│   │       ├── Search.module.scss
│   │       └── Search.tsx
│   ├── xmlui-spreadsheet
│   │   ├── .gitignore
│   │   ├── demo
│   │   │   └── Main.xmlui
│   │   ├── index.html
│   │   ├── index.ts
│   │   ├── meta
│   │   │   └── componentsMetadata.ts
│   │   ├── package.json
│   │   └── src
│   │       ├── index.tsx
│   │       ├── Spreadsheet.tsx
│   │       └── SpreadsheetNative.tsx
│   └── xmlui-website-blocks
│       ├── .gitignore
│       ├── CHANGELOG.md
│       ├── demo
│       │   ├── components
│       │   │   ├── HeroBackgroundBreakoutPage.xmlui
│       │   │   ├── HeroBackgroundsPage.xmlui
│       │   │   ├── HeroContentsPage.xmlui
│       │   │   ├── HeroTextAlignPage.xmlui
│       │   │   ├── HeroTextPage.xmlui
│       │   │   └── HeroTonesPage.xmlui
│       │   ├── Main.xmlui
│       │   └── themes
│       │       └── default.ts
│       ├── index.html
│       ├── index.ts
│       ├── meta
│       │   └── componentsMetadata.ts
│       ├── package.json
│       ├── public
│       │   └── resources
│       │       ├── building.jpg
│       │       └── xmlui-logo.svg
│       └── src
│           ├── Carousel
│           │   ├── Carousel.module.scss
│           │   ├── Carousel.tsx
│           │   ├── CarouselContext.tsx
│           │   └── CarouselNative.tsx
│           ├── FancyButton
│           │   ├── FancyButton.module.scss
│           │   ├── FancyButton.tsx
│           │   └── FancyButton.xmlui
│           ├── Hello
│           │   ├── Hello.tsx
│           │   ├── Hello.xmlui
│           │   └── Hello.xmlui.xs
│           ├── HeroSection
│           │   ├── HeroSection.module.scss
│           │   ├── HeroSection.spec.ts
│           │   ├── HeroSection.tsx
│           │   └── HeroSectionNative.tsx
│           ├── index.tsx
│           ├── ScrollToTop
│           │   ├── ScrollToTop.module.scss
│           │   ├── ScrollToTop.tsx
│           │   └── ScrollToTopNative.tsx
│           └── vite-env.d.ts
├── playwright.config.ts
├── README.md
├── tools
│   ├── codefence
│   │   └── xmlui-code-fence-docs.md
│   ├── create-app
│   │   ├── .gitignore
│   │   ├── CHANGELOG.md
│   │   ├── create-app.ts
│   │   ├── helpers
│   │   │   ├── copy.ts
│   │   │   ├── get-pkg-manager.ts
│   │   │   ├── git.ts
│   │   │   ├── install.ts
│   │   │   ├── is-folder-empty.ts
│   │   │   ├── is-writeable.ts
│   │   │   ├── make-dir.ts
│   │   │   └── validate-pkg.ts
│   │   ├── index.ts
│   │   ├── package.json
│   │   ├── templates
│   │   │   ├── default
│   │   │   │   └── ts
│   │   │   │       ├── gitignore
│   │   │   │       ├── index.html
│   │   │   │       ├── index.ts
│   │   │   │       ├── public
│   │   │   │       │   ├── mockServiceWorker.js
│   │   │   │       │   ├── resources
│   │   │   │       │   │   ├── favicon.ico
│   │   │   │       │   │   └── xmlui-logo.svg
│   │   │   │       │   └── serve.json
│   │   │   │       └── src
│   │   │   │           ├── components
│   │   │   │           │   ├── ApiAware.xmlui
│   │   │   │           │   ├── Home.xmlui
│   │   │   │           │   ├── IncButton.xmlui
│   │   │   │           │   └── PagePanel.xmlui
│   │   │   │           ├── config.ts
│   │   │   │           └── Main.xmlui
│   │   │   ├── index.ts
│   │   │   └── types.ts
│   │   └── tsconfig.json
│   ├── create-xmlui-hello-world
│   │   ├── index.js
│   │   └── package.json
│   └── vscode
│       ├── .gitignore
│       ├── .vscode
│       │   ├── launch.json
│       │   └── tasks.json
│       ├── .vscodeignore
│       ├── build.sh
│       ├── CHANGELOG.md
│       ├── esbuild.js
│       ├── eslint.config.mjs
│       ├── formatter-docs.md
│       ├── generate-test-sample.sh
│       ├── LICENSE.md
│       ├── package-lock.json
│       ├── package.json
│       ├── README.md
│       ├── resources
│       │   ├── xmlui-logo.png
│       │   └── xmlui-markup-syntax-highlighting.png
│       ├── src
│       │   ├── extension.ts
│       │   └── server.ts
│       ├── syntaxes
│       │   └── xmlui.tmLanguage.json
│       ├── test-samples
│       │   └── sample.xmlui
│       ├── tsconfig.json
│       └── tsconfig.tsbuildinfo
├── turbo.json
└── xmlui
    ├── .gitignore
    ├── bin
    │   ├── bootstrap.cjs
    │   ├── bootstrap.js
    │   ├── build-lib.ts
    │   ├── build.ts
    │   ├── index.ts
    │   ├── preview.ts
    │   ├── start.ts
    │   ├── vite-xmlui-plugin.ts
    │   └── viteConfig.ts
    ├── CHANGELOG.md
    ├── conventions
    │   ├── component-qa-checklist.md
    │   ├── copilot-conventions.md
    │   ├── create-xmlui-components.md
    │   ├── mermaid.md
    │   ├── testing-conventions.md
    │   └── xmlui-in-a-nutshell.md
    ├── dev-docs
    │   ├── accessibility.md
    │   ├── build-system.md
    │   ├── build-xmlui.md
    │   ├── component-behaviors.md
    │   ├── component-metadata.md
    │   ├── components-with-options.md
    │   ├── containers.md
    │   ├── data-operations.md
    │   ├── glossary.md
    │   ├── index.md
    │   ├── next
    │   │   ├── component-dev-guide.md
    │   │   ├── configuration-management-enhancement-summary.md
    │   │   ├── documentation-scripts-refactoring-complete-summary.md
    │   │   ├── documentation-scripts-refactoring-plan.md
    │   │   ├── duplicate-pattern-extraction-summary.md
    │   │   ├── error-handling-standardization-summary.md
    │   │   ├── generating-component-reference.md
    │   │   ├── index.md
    │   │   ├── logging-consistency-implementation-summary.md
    │   │   ├── project-build.md
    │   │   ├── project-structure.md
    │   │   ├── theme-context.md
    │   │   ├── tiptap-design-considerations.md
    │   │   ├── working-with-code.md
    │   │   ├── xmlui-runtime-architecture
    │   │   └── xmlui-wcag-accessibility-report.md
    │   ├── react-fundamentals.md
    │   ├── release-method.md
    │   ├── standalone-app.md
    │   ├── theme-variables-refactoring.md
    │   ├── ud-components.md
    │   └── xmlui-repo.md
    ├── package.json
    ├── scripts
    │   ├── coverage-only.js
    │   ├── e2e-test-summary.js
    │   ├── extract-component-metadata.js
    │   ├── generate-docs
    │   │   ├── build-downloads-map.mjs
    │   │   ├── build-pages-map.mjs
    │   │   ├── components-config.json
    │   │   ├── configuration-management.mjs
    │   │   ├── constants.mjs
    │   │   ├── create-theme-files.mjs
    │   │   ├── DocsGenerator.mjs
    │   │   ├── error-handling.mjs
    │   │   ├── extensions-config.json
    │   │   ├── folders.mjs
    │   │   ├── generate-summary-files.mjs
    │   │   ├── get-docs.mjs
    │   │   ├── input-handler.mjs
    │   │   ├── logger.mjs
    │   │   ├── logging-standards.mjs
    │   │   ├── MetadataProcessor.mjs
    │   │   ├── pattern-utilities.mjs
    │   │   └── utils.mjs
    │   ├── generate-metadata-markdown.js
    │   ├── get-langserver-metadata.js
    │   ├── inline-links.mjs
    │   └── README-e2e-summary.md
    ├── src
    │   ├── abstractions
    │   │   ├── _conventions.md
    │   │   ├── ActionDefs.ts
    │   │   ├── AppContextDefs.ts
    │   │   ├── ComponentDefs.ts
    │   │   ├── ContainerDefs.ts
    │   │   ├── ExtensionDefs.ts
    │   │   ├── FunctionDefs.ts
    │   │   ├── RendererDefs.ts
    │   │   ├── scripting
    │   │   │   ├── BlockScope.ts
    │   │   │   ├── Compilation.ts
    │   │   │   ├── LogicalThread.ts
    │   │   │   ├── LoopScope.ts
    │   │   │   ├── modules.ts
    │   │   │   ├── ScriptParserError.ts
    │   │   │   ├── Token.ts
    │   │   │   ├── TryScope.ts
    │   │   │   └── TryScopeExp.ts
    │   │   └── ThemingDefs.ts
    │   ├── components
    │   │   ├── _conventions.md
    │   │   ├── abstractions.ts
    │   │   ├── Accordion
    │   │   │   ├── Accordion.md
    │   │   │   ├── Accordion.module.scss
    │   │   │   ├── Accordion.spec.ts
    │   │   │   ├── Accordion.tsx
    │   │   │   ├── AccordionContext.tsx
    │   │   │   ├── AccordionItem.tsx
    │   │   │   ├── AccordionItemNative.tsx
    │   │   │   └── AccordionNative.tsx
    │   │   ├── Animation
    │   │   │   └── AnimationNative.tsx
    │   │   ├── APICall
    │   │   │   ├── APICall.md
    │   │   │   ├── APICall.spec.ts
    │   │   │   ├── APICall.tsx
    │   │   │   └── APICallNative.tsx
    │   │   ├── App
    │   │   │   ├── App.md
    │   │   │   ├── App.module.scss
    │   │   │   ├── App.spec.ts
    │   │   │   ├── App.tsx
    │   │   │   ├── AppLayoutContext.ts
    │   │   │   ├── AppNative.tsx
    │   │   │   ├── AppStateContext.ts
    │   │   │   ├── doc-resources
    │   │   │   │   ├── condensed-sticky.xmlui
    │   │   │   │   ├── condensed.xmlui
    │   │   │   │   ├── horizontal-sticky.xmlui
    │   │   │   │   ├── horizontal.xmlui
    │   │   │   │   ├── vertical-full-header.xmlui
    │   │   │   │   ├── vertical-sticky.xmlui
    │   │   │   │   └── vertical.xmlui
    │   │   │   ├── IndexerContext.ts
    │   │   │   ├── LinkInfoContext.ts
    │   │   │   ├── SearchContext.tsx
    │   │   │   ├── Sheet.module.scss
    │   │   │   └── Sheet.tsx
    │   │   ├── AppHeader
    │   │   │   ├── AppHeader.md
    │   │   │   ├── AppHeader.module.scss
    │   │   │   ├── AppHeader.spec.ts
    │   │   │   ├── AppHeader.tsx
    │   │   │   └── AppHeaderNative.tsx
    │   │   ├── AppState
    │   │   │   ├── AppState.md
    │   │   │   ├── AppState.spec.ts
    │   │   │   ├── AppState.tsx
    │   │   │   └── AppStateNative.tsx
    │   │   ├── AutoComplete
    │   │   │   ├── AutoComplete.md
    │   │   │   ├── AutoComplete.module.scss
    │   │   │   ├── AutoComplete.spec.ts
    │   │   │   ├── AutoComplete.tsx
    │   │   │   ├── AutoCompleteContext.tsx
    │   │   │   └── AutoCompleteNative.tsx
    │   │   ├── Avatar
    │   │   │   ├── Avatar.md
    │   │   │   ├── Avatar.module.scss
    │   │   │   ├── Avatar.spec.ts
    │   │   │   ├── Avatar.tsx
    │   │   │   └── AvatarNative.tsx
    │   │   ├── Backdrop
    │   │   │   ├── Backdrop.md
    │   │   │   ├── Backdrop.module.scss
    │   │   │   ├── Backdrop.spec.ts
    │   │   │   ├── Backdrop.tsx
    │   │   │   └── BackdropNative.tsx
    │   │   ├── Badge
    │   │   │   ├── Badge.md
    │   │   │   ├── Badge.module.scss
    │   │   │   ├── Badge.spec.ts
    │   │   │   ├── Badge.tsx
    │   │   │   └── BadgeNative.tsx
    │   │   ├── Bookmark
    │   │   │   ├── Bookmark.md
    │   │   │   ├── Bookmark.module.scss
    │   │   │   ├── Bookmark.spec.ts
    │   │   │   ├── Bookmark.tsx
    │   │   │   └── BookmarkNative.tsx
    │   │   ├── Breakout
    │   │   │   ├── Breakout.module.scss
    │   │   │   ├── Breakout.spec.ts
    │   │   │   ├── Breakout.tsx
    │   │   │   └── BreakoutNative.tsx
    │   │   ├── Button
    │   │   │   ├── Button-style.spec.ts
    │   │   │   ├── Button.md
    │   │   │   ├── Button.module.scss
    │   │   │   ├── Button.spec.ts
    │   │   │   ├── Button.tsx
    │   │   │   └── ButtonNative.tsx
    │   │   ├── Card
    │   │   │   ├── Card.md
    │   │   │   ├── Card.module.scss
    │   │   │   ├── Card.spec.ts
    │   │   │   ├── Card.tsx
    │   │   │   └── CardNative.tsx
    │   │   ├── Carousel
    │   │   │   ├── Carousel.md
    │   │   │   ├── Carousel.module.scss
    │   │   │   ├── Carousel.spec.ts
    │   │   │   ├── Carousel.tsx
    │   │   │   ├── CarouselContext.tsx
    │   │   │   ├── CarouselItem.tsx
    │   │   │   ├── CarouselItemNative.tsx
    │   │   │   └── CarouselNative.tsx
    │   │   ├── ChangeListener
    │   │   │   ├── ChangeListener.md
    │   │   │   ├── ChangeListener.spec.ts
    │   │   │   ├── ChangeListener.tsx
    │   │   │   └── ChangeListenerNative.tsx
    │   │   ├── chart-color-schemes.ts
    │   │   ├── Charts
    │   │   │   ├── AreaChart
    │   │   │   │   ├── AreaChart.md
    │   │   │   │   ├── AreaChart.spec.ts
    │   │   │   │   ├── AreaChart.tsx
    │   │   │   │   └── AreaChartNative.tsx
    │   │   │   ├── BarChart
    │   │   │   │   ├── BarChart.md
    │   │   │   │   ├── BarChart.module.scss
    │   │   │   │   ├── BarChart.spec.ts
    │   │   │   │   ├── BarChart.tsx
    │   │   │   │   └── BarChartNative.tsx
    │   │   │   ├── DonutChart
    │   │   │   │   ├── DonutChart.spec.ts
    │   │   │   │   └── DonutChart.tsx
    │   │   │   ├── LabelList
    │   │   │   │   ├── LabelList.module.scss
    │   │   │   │   ├── LabelList.spec.ts
    │   │   │   │   ├── LabelList.tsx
    │   │   │   │   └── LabelListNative.tsx
    │   │   │   ├── Legend
    │   │   │   │   ├── Legend.spec.ts
    │   │   │   │   ├── Legend.tsx
    │   │   │   │   └── LegendNative.tsx
    │   │   │   ├── LineChart
    │   │   │   │   ├── LineChart.md
    │   │   │   │   ├── LineChart.module.scss
    │   │   │   │   ├── LineChart.spec.ts
    │   │   │   │   ├── LineChart.tsx
    │   │   │   │   └── LineChartNative.tsx
    │   │   │   ├── PieChart
    │   │   │   │   ├── PieChart.md
    │   │   │   │   ├── PieChart.spec.ts
    │   │   │   │   ├── PieChart.tsx
    │   │   │   │   ├── PieChartNative.module.scss
    │   │   │   │   └── PieChartNative.tsx
    │   │   │   ├── RadarChart
    │   │   │   │   ├── RadarChart.md
    │   │   │   │   ├── RadarChart.spec.ts
    │   │   │   │   ├── RadarChart.tsx
    │   │   │   │   └── RadarChartNative.tsx
    │   │   │   ├── Tooltip
    │   │   │   │   ├── TooltipContent.module.scss
    │   │   │   │   ├── TooltipContent.spec.ts
    │   │   │   │   └── TooltipContent.tsx
    │   │   │   └── utils
    │   │   │       ├── abstractions.ts
    │   │   │       └── ChartProvider.tsx
    │   │   ├── Checkbox
    │   │   │   ├── Checkbox.md
    │   │   │   ├── Checkbox.spec.ts
    │   │   │   └── Checkbox.tsx
    │   │   ├── CodeBlock
    │   │   │   ├── CodeBlock.module.scss
    │   │   │   ├── CodeBlock.spec.ts
    │   │   │   ├── CodeBlock.tsx
    │   │   │   ├── CodeBlockNative.tsx
    │   │   │   └── highlight-code.ts
    │   │   ├── collectedComponentMetadata.ts
    │   │   ├── ColorPicker
    │   │   │   ├── ColorPicker.md
    │   │   │   ├── ColorPicker.module.scss
    │   │   │   ├── ColorPicker.spec.ts
    │   │   │   ├── ColorPicker.tsx
    │   │   │   └── ColorPickerNative.tsx
    │   │   ├── Column
    │   │   │   ├── Column.md
    │   │   │   ├── Column.tsx
    │   │   │   ├── ColumnNative.tsx
    │   │   │   ├── doc-resources
    │   │   │   │   └── list-component-data.js
    │   │   │   └── TableContext.tsx
    │   │   ├── component-utils.ts
    │   │   ├── ComponentProvider.tsx
    │   │   ├── ComponentRegistryContext.tsx
    │   │   ├── container-helpers.tsx
    │   │   ├── ContentSeparator
    │   │   │   ├── ContentSeparator.md
    │   │   │   ├── ContentSeparator.module.scss
    │   │   │   ├── ContentSeparator.spec.ts
    │   │   │   ├── ContentSeparator.tsx
    │   │   │   └── ContentSeparatorNative.tsx
    │   │   ├── DataSource
    │   │   │   ├── DataSource.md
    │   │   │   └── DataSource.tsx
    │   │   ├── DateInput
    │   │   │   ├── DateInput.md
    │   │   │   ├── DateInput.module.scss
    │   │   │   ├── DateInput.spec.ts
    │   │   │   ├── DateInput.tsx
    │   │   │   └── DateInputNative.tsx
    │   │   ├── DatePicker
    │   │   │   ├── DatePicker.md
    │   │   │   ├── DatePicker.module.scss
    │   │   │   ├── DatePicker.spec.ts
    │   │   │   ├── DatePicker.tsx
    │   │   │   └── DatePickerNative.tsx
    │   │   ├── DropdownMenu
    │   │   │   ├── DropdownMenu.md
    │   │   │   ├── DropdownMenu.module.scss
    │   │   │   ├── DropdownMenu.spec.ts
    │   │   │   ├── DropdownMenu.tsx
    │   │   │   ├── DropdownMenuNative.tsx
    │   │   │   ├── MenuItem.md
    │   │   │   └── SubMenuItem.md
    │   │   ├── EmojiSelector
    │   │   │   ├── EmojiSelector.md
    │   │   │   ├── EmojiSelector.spec.ts
    │   │   │   ├── EmojiSelector.tsx
    │   │   │   └── EmojiSelectorNative.tsx
    │   │   ├── ExpandableItem
    │   │   │   ├── ExpandableItem.module.scss
    │   │   │   ├── ExpandableItem.spec.ts
    │   │   │   ├── ExpandableItem.tsx
    │   │   │   └── ExpandableItemNative.tsx
    │   │   ├── FileInput
    │   │   │   ├── FileInput.md
    │   │   │   ├── FileInput.module.scss
    │   │   │   ├── FileInput.spec.ts
    │   │   │   ├── FileInput.tsx
    │   │   │   └── FileInputNative.tsx
    │   │   ├── FileUploadDropZone
    │   │   │   ├── FileUploadDropZone.md
    │   │   │   ├── FileUploadDropZone.module.scss
    │   │   │   ├── FileUploadDropZone.spec.ts
    │   │   │   ├── FileUploadDropZone.tsx
    │   │   │   └── FileUploadDropZoneNative.tsx
    │   │   ├── FlowLayout
    │   │   │   ├── FlowLayout.md
    │   │   │   ├── FlowLayout.module.scss
    │   │   │   ├── FlowLayout.spec.ts
    │   │   │   ├── FlowLayout.spec.ts-snapshots
    │   │   │   │   └── Edge-cases-boxShadow-is-not-clipped-1-non-smoke-darwin.png
    │   │   │   ├── FlowLayout.tsx
    │   │   │   └── FlowLayoutNative.tsx
    │   │   ├── Footer
    │   │   │   ├── Footer.md
    │   │   │   ├── Footer.module.scss
    │   │   │   ├── Footer.spec.ts
    │   │   │   ├── Footer.tsx
    │   │   │   └── FooterNative.tsx
    │   │   ├── Form
    │   │   │   ├── Form.md
    │   │   │   ├── Form.module.scss
    │   │   │   ├── Form.spec.ts
    │   │   │   ├── Form.tsx
    │   │   │   ├── formActions.ts
    │   │   │   ├── FormContext.ts
    │   │   │   └── FormNative.tsx
    │   │   ├── FormItem
    │   │   │   ├── FormItem.md
    │   │   │   ├── FormItem.module.scss
    │   │   │   ├── FormItem.spec.ts
    │   │   │   ├── FormItem.tsx
    │   │   │   ├── FormItemNative.tsx
    │   │   │   ├── HelperText.module.scss
    │   │   │   ├── HelperText.tsx
    │   │   │   ├── ItemWithLabel.tsx
    │   │   │   └── Validations.ts
    │   │   ├── FormSection
    │   │   │   ├── FormSection.md
    │   │   │   ├── FormSection.ts
    │   │   │   └── FormSection.xmlui
    │   │   ├── Fragment
    │   │   │   ├── Fragment.spec.ts
    │   │   │   └── Fragment.tsx
    │   │   ├── Heading
    │   │   │   ├── abstractions.ts
    │   │   │   ├── H1.md
    │   │   │   ├── H1.spec.ts
    │   │   │   ├── H2.md
    │   │   │   ├── H2.spec.ts
    │   │   │   ├── H3.md
    │   │   │   ├── H3.spec.ts
    │   │   │   ├── H4.md
    │   │   │   ├── H4.spec.ts
    │   │   │   ├── H5.md
    │   │   │   ├── H5.spec.ts
    │   │   │   ├── H6.md
    │   │   │   ├── H6.spec.ts
    │   │   │   ├── Heading.md
    │   │   │   ├── Heading.module.scss
    │   │   │   ├── Heading.spec.ts
    │   │   │   ├── Heading.tsx
    │   │   │   └── HeadingNative.tsx
    │   │   ├── HoverCard
    │   │   │   ├── HoverCard.tsx
    │   │   │   └── HovercardNative.tsx
    │   │   ├── HtmlTags
    │   │   │   ├── HtmlTags.module.scss
    │   │   │   ├── HtmlTags.spec.ts
    │   │   │   └── HtmlTags.tsx
    │   │   ├── Icon
    │   │   │   ├── AdmonitionDanger.tsx
    │   │   │   ├── AdmonitionInfo.tsx
    │   │   │   ├── AdmonitionNote.tsx
    │   │   │   ├── AdmonitionTip.tsx
    │   │   │   ├── AdmonitionWarning.tsx
    │   │   │   ├── ApiIcon.tsx
    │   │   │   ├── ArrowDropDown.module.scss
    │   │   │   ├── ArrowDropDown.tsx
    │   │   │   ├── ArrowDropUp.module.scss
    │   │   │   ├── ArrowDropUp.tsx
    │   │   │   ├── ArrowLeft.module.scss
    │   │   │   ├── ArrowLeft.tsx
    │   │   │   ├── ArrowRight.module.scss
    │   │   │   ├── ArrowRight.tsx
    │   │   │   ├── Attach.tsx
    │   │   │   ├── Binding.module.scss
    │   │   │   ├── Binding.tsx
    │   │   │   ├── BoardIcon.tsx
    │   │   │   ├── BoxIcon.tsx
    │   │   │   ├── CheckIcon.tsx
    │   │   │   ├── ChevronDownIcon.tsx
    │   │   │   ├── ChevronLeft.tsx
    │   │   │   ├── ChevronRight.tsx
    │   │   │   ├── ChevronUpIcon.tsx
    │   │   │   ├── CodeFileIcon.tsx
    │   │   │   ├── CodeSandbox.tsx
    │   │   │   ├── CompactListIcon.tsx
    │   │   │   ├── ContentCopyIcon.tsx
    │   │   │   ├── DarkToLightIcon.tsx
    │   │   │   ├── DatabaseIcon.module.scss
    │   │   │   ├── DatabaseIcon.tsx
    │   │   │   ├── DocFileIcon.tsx
    │   │   │   ├── DocIcon.tsx
    │   │   │   ├── DotMenuHorizontalIcon.tsx
    │   │   │   ├── DotMenuIcon.tsx
    │   │   │   ├── EmailIcon.tsx
    │   │   │   ├── EmptyFolderIcon.tsx
    │   │   │   ├── ErrorIcon.tsx
    │   │   │   ├── ExpressionIcon.tsx
    │   │   │   ├── FillPlusCricleIcon.tsx
    │   │   │   ├── FilterIcon.tsx
    │   │   │   ├── FolderIcon.tsx
    │   │   │   ├── GlobeIcon.tsx
    │   │   │   ├── HomeIcon.tsx
    │   │   │   ├── HyperLinkIcon.tsx
    │   │   │   ├── Icon.md
    │   │   │   ├── Icon.module.scss
    │   │   │   ├── Icon.spec.ts
    │   │   │   ├── Icon.tsx
    │   │   │   ├── IconNative.tsx
    │   │   │   ├── ImageFileIcon.tsx
    │   │   │   ├── Inspect.tsx
    │   │   │   ├── LightToDark.tsx
    │   │   │   ├── LinkIcon.tsx
    │   │   │   ├── ListIcon.tsx
    │   │   │   ├── LooseListIcon.tsx
    │   │   │   ├── MoonIcon.tsx
    │   │   │   ├── MoreOptionsIcon.tsx
    │   │   │   ├── NoSortIcon.tsx
    │   │   │   ├── PDFIcon.tsx
    │   │   │   ├── PenIcon.tsx
    │   │   │   ├── PhoneIcon.tsx
    │   │   │   ├── PhotoIcon.tsx
    │   │   │   ├── PlusIcon.tsx
    │   │   │   ├── SearchIcon.tsx
    │   │   │   ├── ShareIcon.tsx
    │   │   │   ├── SortAscendingIcon.tsx
    │   │   │   ├── SortDescendingIcon.tsx
    │   │   │   ├── StarsIcon.tsx
    │   │   │   ├── SunIcon.tsx
    │   │   │   ├── svg
    │   │   │   │   ├── admonition_danger.svg
    │   │   │   │   ├── admonition_info.svg
    │   │   │   │   ├── admonition_note.svg
    │   │   │   │   ├── admonition_tip.svg
    │   │   │   │   ├── admonition_warning.svg
    │   │   │   │   ├── api.svg
    │   │   │   │   ├── arrow-dropdown.svg
    │   │   │   │   ├── arrow-left.svg
    │   │   │   │   ├── arrow-right.svg
    │   │   │   │   ├── arrow-up.svg
    │   │   │   │   ├── attach.svg
    │   │   │   │   ├── binding.svg
    │   │   │   │   ├── box.svg
    │   │   │   │   ├── bulb.svg
    │   │   │   │   ├── code-file.svg
    │   │   │   │   ├── code-sandbox.svg
    │   │   │   │   ├── dark_to_light.svg
    │   │   │   │   ├── database.svg
    │   │   │   │   ├── doc.svg
    │   │   │   │   ├── empty-folder.svg
    │   │   │   │   ├── expression.svg
    │   │   │   │   ├── eye-closed.svg
    │   │   │   │   ├── eye-dark.svg
    │   │   │   │   ├── eye.svg
    │   │   │   │   ├── file-text.svg
    │   │   │   │   ├── filter.svg
    │   │   │   │   ├── folder.svg
    │   │   │   │   ├── img.svg
    │   │   │   │   ├── inspect.svg
    │   │   │   │   ├── light_to_dark.svg
    │   │   │   │   ├── moon.svg
    │   │   │   │   ├── pdf.svg
    │   │   │   │   ├── photo.svg
    │   │   │   │   ├── share.svg
    │   │   │   │   ├── stars.svg
    │   │   │   │   ├── sun.svg
    │   │   │   │   ├── trending-down.svg
    │   │   │   │   ├── trending-level.svg
    │   │   │   │   ├── trending-up.svg
    │   │   │   │   ├── txt.svg
    │   │   │   │   ├── unknown-file.svg
    │   │   │   │   ├── unlink.svg
    │   │   │   │   └── xls.svg
    │   │   │   ├── TableDeleteColumnIcon.tsx
    │   │   │   ├── TableDeleteRowIcon.tsx
    │   │   │   ├── TableInsertColumnIcon.tsx
    │   │   │   ├── TableInsertRowIcon.tsx
    │   │   │   ├── TrashIcon.tsx
    │   │   │   ├── TrendingDownIcon.tsx
    │   │   │   ├── TrendingLevelIcon.tsx
    │   │   │   ├── TrendingUpIcon.tsx
    │   │   │   ├── TxtIcon.tsx
    │   │   │   ├── UnknownFileIcon.tsx
    │   │   │   ├── UnlinkIcon.tsx
    │   │   │   ├── UserIcon.tsx
    │   │   │   ├── WarningIcon.tsx
    │   │   │   └── XlsIcon.tsx
    │   │   ├── IconProvider.tsx
    │   │   ├── IconRegistryContext.tsx
    │   │   ├── IFrame
    │   │   │   ├── IFrame.md
    │   │   │   ├── IFrame.module.scss
    │   │   │   ├── IFrame.spec.ts
    │   │   │   ├── IFrame.tsx
    │   │   │   └── IFrameNative.tsx
    │   │   ├── Image
    │   │   │   ├── Image.md
    │   │   │   ├── Image.module.scss
    │   │   │   ├── Image.spec.ts
    │   │   │   ├── Image.tsx
    │   │   │   └── ImageNative.tsx
    │   │   ├── Input
    │   │   │   ├── index.ts
    │   │   │   ├── InputAdornment.module.scss
    │   │   │   ├── InputAdornment.tsx
    │   │   │   ├── InputDivider.module.scss
    │   │   │   ├── InputDivider.tsx
    │   │   │   ├── InputLabel.module.scss
    │   │   │   ├── InputLabel.tsx
    │   │   │   ├── PartialInput.module.scss
    │   │   │   └── PartialInput.tsx
    │   │   ├── InspectButton
    │   │   │   ├── InspectButton.module.scss
    │   │   │   └── InspectButton.tsx
    │   │   ├── Items
    │   │   │   ├── Items.md
    │   │   │   ├── Items.spec.ts
    │   │   │   ├── Items.tsx
    │   │   │   └── ItemsNative.tsx
    │   │   ├── Link
    │   │   │   ├── Link.md
    │   │   │   ├── Link.module.scss
    │   │   │   ├── Link.spec.ts
    │   │   │   ├── Link.tsx
    │   │   │   └── LinkNative.tsx
    │   │   ├── List
    │   │   │   ├── doc-resources
    │   │   │   │   └── list-component-data.js
    │   │   │   ├── List.md
    │   │   │   ├── List.module.scss
    │   │   │   ├── List.spec.ts
    │   │   │   ├── List.tsx
    │   │   │   └── ListNative.tsx
    │   │   ├── Logo
    │   │   │   ├── doc-resources
    │   │   │   │   └── xmlui-logo.svg
    │   │   │   ├── Logo.md
    │   │   │   ├── Logo.tsx
    │   │   │   └── LogoNative.tsx
    │   │   ├── Markdown
    │   │   │   ├── CodeText.module.scss
    │   │   │   ├── CodeText.tsx
    │   │   │   ├── Markdown.md
    │   │   │   ├── Markdown.module.scss
    │   │   │   ├── Markdown.spec.ts
    │   │   │   ├── Markdown.tsx
    │   │   │   ├── MarkdownNative.tsx
    │   │   │   ├── parse-binding-expr.ts
    │   │   │   └── utils.ts
    │   │   ├── metadata-helpers.ts
    │   │   ├── ModalDialog
    │   │   │   ├── ConfirmationModalContextProvider.tsx
    │   │   │   ├── Dialog.module.scss
    │   │   │   ├── Dialog.tsx
    │   │   │   ├── ModalDialog.md
    │   │   │   ├── ModalDialog.module.scss
    │   │   │   ├── ModalDialog.spec.ts
    │   │   │   ├── ModalDialog.tsx
    │   │   │   ├── ModalDialogNative.tsx
    │   │   │   └── ModalVisibilityContext.tsx
    │   │   ├── NavGroup
    │   │   │   ├── NavGroup.md
    │   │   │   ├── NavGroup.module.scss
    │   │   │   ├── NavGroup.spec.ts
    │   │   │   ├── NavGroup.tsx
    │   │   │   ├── NavGroupContext.ts
    │   │   │   └── NavGroupNative.tsx
    │   │   ├── NavLink
    │   │   │   ├── NavLink.md
    │   │   │   ├── NavLink.module.scss
    │   │   │   ├── NavLink.spec.ts
    │   │   │   ├── NavLink.tsx
    │   │   │   └── NavLinkNative.tsx
    │   │   ├── NavPanel
    │   │   │   ├── NavPanel.md
    │   │   │   ├── NavPanel.module.scss
    │   │   │   ├── NavPanel.spec.ts
    │   │   │   ├── NavPanel.tsx
    │   │   │   └── NavPanelNative.tsx
    │   │   ├── NestedApp
    │   │   │   ├── AppWithCodeView.module.scss
    │   │   │   ├── AppWithCodeView.tsx
    │   │   │   ├── AppWithCodeViewNative.tsx
    │   │   │   ├── defaultProps.tsx
    │   │   │   ├── logo.svg
    │   │   │   ├── NestedApp.module.scss
    │   │   │   ├── NestedApp.tsx
    │   │   │   ├── NestedAppNative.tsx
    │   │   │   ├── Tooltip.module.scss
    │   │   │   ├── Tooltip.tsx
    │   │   │   └── utils.ts
    │   │   ├── NoResult
    │   │   │   ├── NoResult.md
    │   │   │   ├── NoResult.module.scss
    │   │   │   ├── NoResult.spec.ts
    │   │   │   ├── NoResult.tsx
    │   │   │   └── NoResultNative.tsx
    │   │   ├── NumberBox
    │   │   │   ├── numberbox-abstractions.ts
    │   │   │   ├── NumberBox.md
    │   │   │   ├── NumberBox.module.scss
    │   │   │   ├── NumberBox.spec.ts
    │   │   │   ├── NumberBox.tsx
    │   │   │   └── NumberBoxNative.tsx
    │   │   ├── Option
    │   │   │   ├── Option.md
    │   │   │   ├── Option.spec.ts
    │   │   │   ├── Option.tsx
    │   │   │   ├── OptionNative.tsx
    │   │   │   └── OptionTypeProvider.tsx
    │   │   ├── PageMetaTitle
    │   │   │   ├── PageMetaTilteNative.tsx
    │   │   │   ├── PageMetaTitle.md
    │   │   │   ├── PageMetaTitle.spec.ts
    │   │   │   └── PageMetaTitle.tsx
    │   │   ├── Pages
    │   │   │   ├── Page.md
    │   │   │   ├── Pages.md
    │   │   │   ├── Pages.module.scss
    │   │   │   ├── Pages.tsx
    │   │   │   └── PagesNative.tsx
    │   │   ├── Pagination
    │   │   │   ├── Pagination.md
    │   │   │   ├── Pagination.module.scss
    │   │   │   ├── Pagination.spec.ts
    │   │   │   ├── Pagination.tsx
    │   │   │   └── PaginationNative.tsx
    │   │   ├── PositionedContainer
    │   │   │   ├── PositionedContainer.module.scss
    │   │   │   ├── PositionedContainer.tsx
    │   │   │   └── PositionedContainerNative.tsx
    │   │   ├── ProfileMenu
    │   │   │   ├── ProfileMenu.module.scss
    │   │   │   └── ProfileMenu.tsx
    │   │   ├── ProgressBar
    │   │   │   ├── ProgressBar.md
    │   │   │   ├── ProgressBar.module.scss
    │   │   │   ├── ProgressBar.spec.ts
    │   │   │   ├── ProgressBar.tsx
    │   │   │   └── ProgressBarNative.tsx
    │   │   ├── Queue
    │   │   │   ├── Queue.md
    │   │   │   ├── Queue.spec.ts
    │   │   │   ├── Queue.tsx
    │   │   │   ├── queueActions.ts
    │   │   │   └── QueueNative.tsx
    │   │   ├── RadioGroup
    │   │   │   ├── RadioGroup.md
    │   │   │   ├── RadioGroup.module.scss
    │   │   │   ├── RadioGroup.spec.ts
    │   │   │   ├── RadioGroup.tsx
    │   │   │   ├── RadioGroupNative.tsx
    │   │   │   ├── RadioItem.tsx
    │   │   │   └── RadioItemNative.tsx
    │   │   ├── RealTimeAdapter
    │   │   │   ├── RealTimeAdapter.tsx
    │   │   │   └── RealTimeAdapterNative.tsx
    │   │   ├── Redirect
    │   │   │   ├── Redirect.md
    │   │   │   ├── Redirect.spec.ts
    │   │   │   └── Redirect.tsx
    │   │   ├── ResponsiveBar
    │   │   │   ├── README.md
    │   │   │   ├── ResponsiveBar.md
    │   │   │   ├── ResponsiveBar.module.scss
    │   │   │   ├── ResponsiveBar.spec.ts
    │   │   │   ├── ResponsiveBar.tsx
    │   │   │   └── ResponsiveBarNative.tsx
    │   │   ├── Select
    │   │   │   ├── HiddenOption.tsx
    │   │   │   ├── OptionContext.ts
    │   │   │   ├── Select.md
    │   │   │   ├── Select.module.scss
    │   │   │   ├── Select.spec.ts
    │   │   │   ├── Select.tsx
    │   │   │   ├── SelectContext.tsx
    │   │   │   └── SelectNative.tsx
    │   │   ├── SelectionStore
    │   │   │   ├── SelectionStore.md
    │   │   │   ├── SelectionStore.tsx
    │   │   │   └── SelectionStoreNative.tsx
    │   │   ├── Slider
    │   │   │   ├── Slider.md
    │   │   │   ├── Slider.module.scss
    │   │   │   ├── Slider.spec.ts
    │   │   │   ├── Slider.tsx
    │   │   │   └── SliderNative.tsx
    │   │   ├── Slot
    │   │   │   ├── Slot.md
    │   │   │   ├── Slot.spec.ts
    │   │   │   └── Slot.ts
    │   │   ├── SlotItem.tsx
    │   │   ├── SpaceFiller
    │   │   │   ├── SpaceFiller.md
    │   │   │   ├── SpaceFiller.module.scss
    │   │   │   ├── SpaceFiller.spec.ts
    │   │   │   ├── SpaceFiller.tsx
    │   │   │   └── SpaceFillerNative.tsx
    │   │   ├── Spinner
    │   │   │   ├── Spinner.md
    │   │   │   ├── Spinner.module.scss
    │   │   │   ├── Spinner.spec.ts
    │   │   │   ├── Spinner.tsx
    │   │   │   └── SpinnerNative.tsx
    │   │   ├── Splitter
    │   │   │   ├── HSplitter.md
    │   │   │   ├── HSplitter.spec.ts
    │   │   │   ├── Splitter.md
    │   │   │   ├── Splitter.module.scss
    │   │   │   ├── Splitter.spec.ts
    │   │   │   ├── Splitter.tsx
    │   │   │   ├── SplitterNative.tsx
    │   │   │   ├── utils.ts
    │   │   │   ├── VSplitter.md
    │   │   │   └── VSplitter.spec.ts
    │   │   ├── Stack
    │   │   │   ├── CHStack.md
    │   │   │   ├── CHStack.spec.ts
    │   │   │   ├── CVStack.md
    │   │   │   ├── CVStack.spec.ts
    │   │   │   ├── HStack.md
    │   │   │   ├── HStack.spec.ts
    │   │   │   ├── Stack.md
    │   │   │   ├── Stack.module.scss
    │   │   │   ├── Stack.spec.ts
    │   │   │   ├── Stack.tsx
    │   │   │   ├── StackNative.tsx
    │   │   │   ├── VStack.md
    │   │   │   └── VStack.spec.ts
    │   │   ├── StickyBox
    │   │   │   ├── StickyBox.md
    │   │   │   ├── StickyBox.module.scss
    │   │   │   ├── StickyBox.tsx
    │   │   │   └── StickyBoxNative.tsx
    │   │   ├── Switch
    │   │   │   ├── Switch.md
    │   │   │   ├── Switch.spec.ts
    │   │   │   └── Switch.tsx
    │   │   ├── Table
    │   │   │   ├── doc-resources
    │   │   │   │   └── list-component-data.js
    │   │   │   ├── react-table-config.d.ts
    │   │   │   ├── Table.md
    │   │   │   ├── Table.module.scss
    │   │   │   ├── Table.spec.ts
    │   │   │   ├── Table.tsx
    │   │   │   ├── TableNative.tsx
    │   │   │   └── useRowSelection.tsx
    │   │   ├── TableOfContents
    │   │   │   ├── TableOfContents.module.scss
    │   │   │   ├── TableOfContents.spec.ts
    │   │   │   ├── TableOfContents.tsx
    │   │   │   └── TableOfContentsNative.tsx
    │   │   ├── Tabs
    │   │   │   ├── TabContext.tsx
    │   │   │   ├── TabItem.md
    │   │   │   ├── TabItem.tsx
    │   │   │   ├── TabItemNative.tsx
    │   │   │   ├── Tabs.md
    │   │   │   ├── Tabs.module.scss
    │   │   │   ├── Tabs.spec.ts
    │   │   │   ├── Tabs.tsx
    │   │   │   └── TabsNative.tsx
    │   │   ├── Text
    │   │   │   ├── Text.md
    │   │   │   ├── Text.module.scss
    │   │   │   ├── Text.spec.ts
    │   │   │   ├── Text.tsx
    │   │   │   └── TextNative.tsx
    │   │   ├── TextArea
    │   │   │   ├── TextArea.md
    │   │   │   ├── TextArea.module.scss
    │   │   │   ├── TextArea.spec.ts
    │   │   │   ├── TextArea.tsx
    │   │   │   ├── TextAreaNative.tsx
    │   │   │   ├── TextAreaResizable.tsx
    │   │   │   └── useComposedRef.ts
    │   │   ├── TextBox
    │   │   │   ├── TextBox.md
    │   │   │   ├── TextBox.module.scss
    │   │   │   ├── TextBox.spec.ts
    │   │   │   ├── TextBox.tsx
    │   │   │   └── TextBoxNative.tsx
    │   │   ├── Theme
    │   │   │   ├── NotificationToast.tsx
    │   │   │   ├── Theme.md
    │   │   │   ├── Theme.module.scss
    │   │   │   ├── Theme.spec.ts
    │   │   │   ├── Theme.tsx
    │   │   │   └── ThemeNative.tsx
    │   │   ├── TimeInput
    │   │   │   ├── TimeInput.md
    │   │   │   ├── TimeInput.module.scss
    │   │   │   ├── TimeInput.spec.ts
    │   │   │   ├── TimeInput.tsx
    │   │   │   ├── TimeInputNative.tsx
    │   │   │   └── utils.ts
    │   │   ├── Timer
    │   │   │   ├── Timer.md
    │   │   │   ├── Timer.spec.ts
    │   │   │   ├── Timer.tsx
    │   │   │   └── TimerNative.tsx
    │   │   ├── Toggle
    │   │   │   ├── Toggle.module.scss
    │   │   │   └── Toggle.tsx
    │   │   ├── ToneChangerButton
    │   │   │   ├── ToneChangerButton.md
    │   │   │   ├── ToneChangerButton.spec.ts
    │   │   │   └── ToneChangerButton.tsx
    │   │   ├── ToneSwitch
    │   │   │   ├── ToneSwitch.md
    │   │   │   ├── ToneSwitch.module.scss
    │   │   │   ├── ToneSwitch.spec.ts
    │   │   │   ├── ToneSwitch.tsx
    │   │   │   └── ToneSwitchNative.tsx
    │   │   ├── Tooltip
    │   │   │   ├── Tooltip.md
    │   │   │   ├── Tooltip.module.scss
    │   │   │   ├── Tooltip.spec.ts
    │   │   │   ├── Tooltip.tsx
    │   │   │   └── TooltipNative.tsx
    │   │   ├── Tree
    │   │   │   ├── testData.ts
    │   │   │   ├── Tree-dynamic.spec.ts
    │   │   │   ├── Tree-icons.spec.ts
    │   │   │   ├── Tree.md
    │   │   │   ├── Tree.spec.ts
    │   │   │   ├── TreeComponent.module.scss
    │   │   │   ├── TreeComponent.tsx
    │   │   │   └── TreeNative.tsx
    │   │   ├── TreeDisplay
    │   │   │   ├── TreeDisplay.md
    │   │   │   ├── TreeDisplay.module.scss
    │   │   │   ├── TreeDisplay.tsx
    │   │   │   └── TreeDisplayNative.tsx
    │   │   ├── ValidationSummary
    │   │   │   ├── ValidationSummary.module.scss
    │   │   │   └── ValidationSummary.tsx
    │   │   └── VisuallyHidden.tsx
    │   ├── components-core
    │   │   ├── abstractions
    │   │   │   ├── ComponentRenderer.ts
    │   │   │   ├── LoaderRenderer.ts
    │   │   │   ├── standalone.ts
    │   │   │   └── treeAbstractions.ts
    │   │   ├── action
    │   │   │   ├── actions.ts
    │   │   │   ├── APICall.tsx
    │   │   │   ├── FileDownloadAction.tsx
    │   │   │   ├── FileUploadAction.tsx
    │   │   │   ├── NavigateAction.tsx
    │   │   │   └── TimedAction.tsx
    │   │   ├── ApiBoundComponent.tsx
    │   │   ├── appContext
    │   │   │   ├── date-functions.ts
    │   │   │   ├── math-function.ts
    │   │   │   └── misc-utils.ts
    │   │   ├── AppContext.tsx
    │   │   ├── behaviors
    │   │   │   ├── Behavior.tsx
    │   │   │   └── CoreBehaviors.tsx
    │   │   ├── component-hooks.ts
    │   │   ├── ComponentDecorator.tsx
    │   │   ├── ComponentViewer.tsx
    │   │   ├── CompoundComponent.tsx
    │   │   ├── constants.ts
    │   │   ├── DebugViewProvider.tsx
    │   │   ├── descriptorHelper.ts
    │   │   ├── devtools
    │   │   │   ├── InspectorDialog.module.scss
    │   │   │   ├── InspectorDialog.tsx
    │   │   │   └── InspectorDialogVisibilityContext.tsx
    │   │   ├── EngineError.ts
    │   │   ├── event-handlers.ts
    │   │   ├── InspectorButton.module.scss
    │   │   ├── InspectorContext.tsx
    │   │   ├── interception
    │   │   │   ├── abstractions.ts
    │   │   │   ├── ApiInterceptor.ts
    │   │   │   ├── ApiInterceptorProvider.tsx
    │   │   │   ├── apiInterceptorWorker.ts
    │   │   │   ├── Backend.ts
    │   │   │   ├── Errors.ts
    │   │   │   ├── IndexedDb.ts
    │   │   │   ├── initMock.ts
    │   │   │   ├── InMemoryDb.ts
    │   │   │   ├── ReadonlyCollection.ts
    │   │   │   └── useApiInterceptorContext.tsx
    │   │   ├── loader
    │   │   │   ├── ApiLoader.tsx
    │   │   │   ├── DataLoader.tsx
    │   │   │   ├── ExternalDataLoader.tsx
    │   │   │   ├── Loader.tsx
    │   │   │   ├── MockLoaderRenderer.tsx
    │   │   │   └── PageableLoader.tsx
    │   │   ├── LoaderComponent.tsx
    │   │   ├── markup-check.ts
    │   │   ├── parts.ts
    │   │   ├── renderers.ts
    │   │   ├── rendering
    │   │   │   ├── AppContent.tsx
    │   │   │   ├── AppRoot.tsx
    │   │   │   ├── AppWrapper.tsx
    │   │   │   ├── buildProxy.ts
    │   │   │   ├── collectFnVarDeps.ts
    │   │   │   ├── ComponentAdapter.tsx
    │   │   │   ├── ComponentWrapper.tsx
    │   │   │   ├── Container.tsx
    │   │   │   ├── containers.ts
    │   │   │   ├── ContainerWrapper.tsx
    │   │   │   ├── ErrorBoundary.module.scss
    │   │   │   ├── ErrorBoundary.tsx
    │   │   │   ├── InvalidComponent.module.scss
    │   │   │   ├── InvalidComponent.tsx
    │   │   │   ├── nodeUtils.ts
    │   │   │   ├── reducer.ts
    │   │   │   ├── renderChild.tsx
    │   │   │   ├── StandaloneComponent.tsx
    │   │   │   ├── StateContainer.tsx
    │   │   │   ├── UnknownComponent.module.scss
    │   │   │   ├── UnknownComponent.tsx
    │   │   │   └── valueExtractor.ts
    │   │   ├── reportEngineError.ts
    │   │   ├── RestApiProxy.ts
    │   │   ├── script-runner
    │   │   │   ├── asyncProxy.ts
    │   │   │   ├── AttributeValueParser.ts
    │   │   │   ├── bannedFunctions.ts
    │   │   │   ├── BindingTreeEvaluationContext.ts
    │   │   │   ├── eval-tree-async.ts
    │   │   │   ├── eval-tree-common.ts
    │   │   │   ├── eval-tree-sync.ts
    │   │   │   ├── ParameterParser.ts
    │   │   │   ├── process-statement-async.ts
    │   │   │   ├── process-statement-common.ts
    │   │   │   ├── process-statement-sync.ts
    │   │   │   ├── ScriptingSourceTree.ts
    │   │   │   ├── simplify-expression.ts
    │   │   │   ├── statement-queue.ts
    │   │   │   └── visitors.ts
    │   │   ├── StandaloneApp.tsx
    │   │   ├── StandaloneExtensionManager.ts
    │   │   ├── TableOfContentsContext.tsx
    │   │   ├── theming
    │   │   │   ├── _themes.scss
    │   │   │   ├── component-layout-resolver.ts
    │   │   │   ├── extendThemeUtils.ts
    │   │   │   ├── hvar.ts
    │   │   │   ├── layout-resolver.ts
    │   │   │   ├── parse-layout-props.ts
    │   │   │   ├── StyleContext.tsx
    │   │   │   ├── StyleRegistry.ts
    │   │   │   ├── ThemeContext.tsx
    │   │   │   ├── ThemeProvider.tsx
    │   │   │   ├── themes
    │   │   │   │   ├── base-utils.ts
    │   │   │   │   ├── palette.ts
    │   │   │   │   ├── root.ts
    │   │   │   │   ├── solid.ts
    │   │   │   │   ├── theme-colors.ts
    │   │   │   │   └── xmlui.ts
    │   │   │   ├── themeVars.module.scss
    │   │   │   ├── themeVars.ts
    │   │   │   ├── transformThemeVars.ts
    │   │   │   └── utils.ts
    │   │   ├── utils
    │   │   │   ├── actionUtils.ts
    │   │   │   ├── audio-utils.ts
    │   │   │   ├── base64-utils.ts
    │   │   │   ├── compound-utils.ts
    │   │   │   ├── css-utils.ts
    │   │   │   ├── DataLoaderQueryKeyGenerator.ts
    │   │   │   ├── date-utils.ts
    │   │   │   ├── extractParam.ts
    │   │   │   ├── hooks.tsx
    │   │   │   ├── LruCache.ts
    │   │   │   ├── mergeProps.ts
    │   │   │   ├── misc.ts
    │   │   │   ├── request-params.ts
    │   │   │   ├── statementUtils.ts
    │   │   │   └── treeUtils.ts
    │   │   └── xmlui-parser.ts
    │   ├── index-standalone.ts
    │   ├── index.scss
    │   ├── index.ts
    │   ├── language-server
    │   │   ├── server-common.ts
    │   │   ├── server-web-worker.ts
    │   │   ├── server.ts
    │   │   ├── services
    │   │   │   ├── common
    │   │   │   │   ├── docs-generation.ts
    │   │   │   │   ├── lsp-utils.ts
    │   │   │   │   ├── metadata-utils.ts
    │   │   │   │   └── syntax-node-utilities.ts
    │   │   │   ├── completion.ts
    │   │   │   ├── diagnostic.ts
    │   │   │   ├── format.ts
    │   │   │   └── hover.ts
    │   │   └── xmlui-metadata-generated.js
    │   ├── logging
    │   │   ├── LoggerContext.tsx
    │   │   ├── LoggerInitializer.tsx
    │   │   ├── LoggerService.ts
    │   │   └── xmlui.ts
    │   ├── logo.svg
    │   ├── parsers
    │   │   ├── common
    │   │   │   ├── GenericToken.ts
    │   │   │   ├── InputStream.ts
    │   │   │   └── utils.ts
    │   │   ├── scripting
    │   │   │   ├── code-behind-collect.ts
    │   │   │   ├── Lexer.ts
    │   │   │   ├── modules.ts
    │   │   │   ├── Parser.ts
    │   │   │   ├── ParserError.ts
    │   │   │   ├── ScriptingNodeTypes.ts
    │   │   │   ├── TokenTrait.ts
    │   │   │   ├── TokenType.ts
    │   │   │   └── tree-visitor.ts
    │   │   ├── style-parser
    │   │   │   ├── errors.ts
    │   │   │   ├── source-tree.ts
    │   │   │   ├── StyleInputStream.ts
    │   │   │   ├── StyleLexer.ts
    │   │   │   ├── StyleParser.ts
    │   │   │   └── tokens.ts
    │   │   └── xmlui-parser
    │   │       ├── CharacterCodes.ts
    │   │       ├── diagnostics.ts
    │   │       ├── fileExtensions.ts
    │   │       ├── index.ts
    │   │       ├── lint.ts
    │   │       ├── parser.ts
    │   │       ├── ParserError.ts
    │   │       ├── scanner.ts
    │   │       ├── syntax-kind.ts
    │   │       ├── syntax-node.ts
    │   │       ├── transform.ts
    │   │       ├── utils.ts
    │   │       ├── xmlui-serializer.ts
    │   │       └── xmlui-tree.ts
    │   ├── react-app-env.d.ts
    │   ├── syntax
    │   │   ├── monaco
    │   │   │   ├── grammar.monacoLanguage.ts
    │   │   │   ├── index.ts
    │   │   │   ├── xmlui-dark.ts
    │   │   │   ├── xmlui-light.ts
    │   │   │   └── xmluiscript.monacoLanguage.ts
    │   │   └── textMate
    │   │       ├── index.ts
    │   │       ├── xmlui-dark.json
    │   │       ├── xmlui-light.json
    │   │       ├── xmlui.json
    │   │       └── xmlui.tmLanguage.json
    │   ├── testing
    │   │   ├── assertions.ts
    │   │   ├── component-test-helpers.ts
    │   │   ├── ComponentDrivers.ts
    │   │   ├── drivers
    │   │   │   ├── DateInputDriver.ts
    │   │   │   ├── index.ts
    │   │   │   ├── ModalDialogDriver.ts
    │   │   │   ├── NumberBoxDriver.ts
    │   │   │   ├── TextBoxDriver.ts
    │   │   │   ├── TimeInputDriver.ts
    │   │   │   ├── TimerDriver.ts
    │   │   │   └── TreeDriver.ts
    │   │   ├── fixtures.ts
    │   │   ├── index.ts
    │   │   ├── infrastructure
    │   │   │   ├── index.html
    │   │   │   ├── main.tsx
    │   │   │   ├── public
    │   │   │   │   ├── mockServiceWorker.js
    │   │   │   │   ├── resources
    │   │   │   │   │   ├── bell.svg
    │   │   │   │   │   ├── box.svg
    │   │   │   │   │   ├── doc.svg
    │   │   │   │   │   ├── eye.svg
    │   │   │   │   │   ├── flower-640x480.jpg
    │   │   │   │   │   ├── sun.svg
    │   │   │   │   │   ├── test-image-100x100.jpg
    │   │   │   │   │   └── txt.svg
    │   │   │   │   └── serve.json
    │   │   │   └── TestBed.tsx
    │   │   └── themed-app-test-helpers.ts
    │   └── vite-env.d.ts
    ├── tests
    │   ├── components
    │   │   ├── CodeBlock
    │   │   │   └── hightlight-code.test.ts
    │   │   ├── playground-pattern.test.ts
    │   │   └── Tree
    │   │       └── Tree-states.test.ts
    │   ├── components-core
    │   │   ├── abstractions
    │   │   │   └── treeAbstractions.test.ts
    │   │   ├── container
    │   │   │   └── buildProxy.test.ts
    │   │   ├── interception
    │   │   │   ├── orderBy.test.ts
    │   │   │   ├── ReadOnlyCollection.test.ts
    │   │   │   └── request-param-converter.test.ts
    │   │   ├── scripts-runner
    │   │   │   ├── AttributeValueParser.test.ts
    │   │   │   ├── eval-tree-arrow-async.test.ts
    │   │   │   ├── eval-tree-arrow.test.ts
    │   │   │   ├── eval-tree-func-decl-async.test.ts
    │   │   │   ├── eval-tree-func-decl.test.ts
    │   │   │   ├── eval-tree-pre-post.test.ts
    │   │   │   ├── eval-tree-regression.test.ts
    │   │   │   ├── eval-tree.test.ts
    │   │   │   ├── function-proxy.test.ts
    │   │   │   ├── parser-regression.test.ts
    │   │   │   ├── process-event.test.ts
    │   │   │   ├── process-function.test.ts
    │   │   │   ├── process-implicit-context.test.ts
    │   │   │   ├── process-statement-asgn.test.ts
    │   │   │   ├── process-statement-destruct.test.ts
    │   │   │   ├── process-statement-regs.test.ts
    │   │   │   ├── process-statement-sync.test.ts
    │   │   │   ├── process-statement.test.ts
    │   │   │   ├── process-switch-sync.test.ts
    │   │   │   ├── process-switch.test.ts
    │   │   │   ├── process-try-sync.test.ts
    │   │   │   ├── process-try.test.ts
    │   │   │   └── test-helpers.ts
    │   │   ├── test-metadata-handler.ts
    │   │   ├── theming
    │   │   │   ├── border-segments.test.ts
    │   │   │   ├── component-layout.resolver.test.ts
    │   │   │   ├── layout-property-parser.test.ts
    │   │   │   ├── layout-resolver.test.ts
    │   │   │   ├── layout-resolver2.test.ts
    │   │   │   ├── layout-vp-override.test.ts
    │   │   │   └── padding-segments.test.ts
    │   │   └── utils
    │   │       ├── date-utils.test.ts
    │   │       ├── format-human-elapsed-time.test.ts
    │   │       └── LruCache.test.ts
    │   ├── language-server
    │   │   ├── completion.test.ts
    │   │   ├── format.test.ts
    │   │   ├── hover.test.ts
    │   │   └── mockData.ts
    │   └── parsers
    │       ├── common
    │       │   └── input-stream.test.ts
    │       ├── markdown
    │       │   └── parse-binding-expression.test.ts
    │       ├── parameter-parser.test.ts
    │       ├── paremeter-parser.test.ts
    │       ├── scripting
    │       │   ├── eval-tree-arrow.test.ts
    │       │   ├── eval-tree-pre-post.test.ts
    │       │   ├── eval-tree.test.ts
    │       │   ├── function-proxy.test.ts
    │       │   ├── lexer-literals.test.ts
    │       │   ├── lexer-misc.test.ts
    │       │   ├── module-parse.test.ts
    │       │   ├── parser-arrow.test.ts
    │       │   ├── parser-assignments.test.ts
    │       │   ├── parser-binary.test.ts
    │       │   ├── parser-destructuring.test.ts
    │       │   ├── parser-errors.test.ts
    │       │   ├── parser-expressions.test.ts
    │       │   ├── parser-function.test.ts
    │       │   ├── parser-literals.test.ts
    │       │   ├── parser-primary.test.ts
    │       │   ├── parser-regex.test.ts
    │       │   ├── parser-statements.test.ts
    │       │   ├── parser-unary.test.ts
    │       │   ├── process-event.test.ts
    │       │   ├── process-implicit-context.test.ts
    │       │   ├── process-statement-asgn.test.ts
    │       │   ├── process-statement-destruct.test.ts
    │       │   ├── process-statement-regs.test.ts
    │       │   ├── process-statement-sync.test.ts
    │       │   ├── process-statement.test.ts
    │       │   ├── process-switch-sync.test.ts
    │       │   ├── process-switch.test.ts
    │       │   ├── process-try-sync.test.ts
    │       │   ├── process-try.test.ts
    │       │   ├── simplify-expression.test.ts
    │       │   ├── statement-hooks.test.ts
    │       │   └── test-helpers.ts
    │       ├── style-parser
    │       │   ├── generateHvarChain.test.ts
    │       │   ├── parseHVar.test.ts
    │       │   ├── parser.test.ts
    │       │   └── tokens.test.ts
    │       └── xmlui
    │           ├── lint.test.ts
    │           ├── parser.test.ts
    │           ├── scanner.test.ts
    │           ├── transform.attr.test.ts
    │           ├── transform.circular.test.ts
    │           ├── transform.element.test.ts
    │           ├── transform.errors.test.ts
    │           ├── transform.escape.test.ts
    │           ├── transform.regression.test.ts
    │           ├── transform.script.test.ts
    │           ├── transform.test.ts
    │           └── xmlui.ts
    ├── tests-e2e
    │   ├── api-bound-component-regression.spec.ts
    │   ├── api-call-as-extracted-component.spec.ts
    │   ├── assign-to-object-or-array-regression.spec.ts
    │   ├── binding-regression.spec.ts
    │   ├── children-as-template-context-vars.spec.ts
    │   ├── compound-component.spec.ts
    │   ├── context-vars-regression.spec.ts
    │   ├── data-bindings.spec.ts
    │   ├── datasource-and-api-usage-in-var.spec.ts
    │   ├── datasource-direct-binding.spec.ts
    │   ├── datasource-onLoaded-regression.spec.ts
    │   ├── modify-array-item-regression.spec.ts
    │   ├── namespaces.spec.ts
    │   ├── push-to-array-regression.spec.ts
    │   ├── screen-breakpoints.spec.ts
    │   ├── scripting.spec.ts
    │   ├── state-scope-in-pages.spec.ts
    │   └── state-var-scopes.spec.ts
    ├── tsconfig.json
    ├── tsdown.config.ts
    ├── vite.config.ts
    └── vitest.config.ts
```

# Files

--------------------------------------------------------------------------------
/xmlui/tests/components-core/scripts-runner/eval-tree.test.ts:
--------------------------------------------------------------------------------

```typescript
  1 | import { describe, expect, it, assert } from "vitest";
  2 | 
  3 | import { Parser } from "../../../src/parsers/scripting/Parser";
  4 | import {
  5 |   evalBinding,
  6 |   evalBindingExpression,
  7 | } from "../../../src/components-core/script-runner/eval-tree-sync";
  8 | import { createEvalContext } from "./test-helpers";
  9 | import { evalBindingAsync } from "../../../src/components-core/script-runner/eval-tree-async";
 10 | 
 11 | describe("Evaluate binding expression tree (exp)", () => {
 12 |   const literalCases = [
 13 |     { src: "undefined", exp: undefined },
 14 |     { src: "null", exp: null },
 15 |     { src: "Infinity", exp: Infinity },
 16 |     { src: "false", exp: false },
 17 |     { src: "true", exp: true },
 18 |     { src: "123", exp: 123 },
 19 |     { src: "123.25", exp: 123.25 },
 20 |     { src: "123.25e11", exp: 123.25e11 },
 21 |     { src: "0b11_11", exp: 0x0f },
 22 |     { src: "0x12_ae", exp: 0x12ae },
 23 |     {
 24 |       src: "123456789123456789123456789",
 25 |       exp: BigInt("123456789123456789123456789"),
 26 |     },
 27 |     { src: '"Hello"', exp: "Hello" },
 28 | 
 29 |     { src: "Math", exp: Math },
 30 |     { src: "Math", con: { Math: 123 }, exp: 123 },
 31 |     { src: "::Math", exp: Math },
 32 |     { src: "::Math", con: { Math: 123 }, exp: Math },
 33 |   ];
 34 |   literalCases.forEach((c) => {
 35 |     it(`Eval literal: ${c.src}`, () => {
 36 |       // --- Arrange
 37 |       const wParser = new Parser(c.src);
 38 | 
 39 |       // --- Act/Assert
 40 |       const expr = wParser.parseExpr();
 41 |       expect(expr).not.equal(null);
 42 |       if (!expr) return;
 43 |       const context = createEvalContext({ localContext: (c as any).con ?? {} });
 44 |       const value = evalBinding(expr, context);
 45 |       expect(value).equal(c.exp);
 46 |     });
 47 |   });
 48 | 
 49 |   it(`Eval literal: NaN`, () => {
 50 |     // --- Arrange
 51 |     const wParser = new Parser("NaN");
 52 | 
 53 |     // --- Act/Assert
 54 |     const expr = wParser.parseExpr();
 55 |     expect(expr).not.equal(null);
 56 |     if (!expr) return;
 57 |     const context = createEvalContext({ localContext: {} });
 58 |     const value = evalBinding(expr, context);
 59 |     expect(isNaN(value)).equal(true);
 60 |   });
 61 | 
 62 |   const identifierCases = [
 63 |     { src: "alma", con: { alma: undefined }, exp: undefined },
 64 |     { src: "alma", con: { alma: 112 }, exp: 112 },
 65 |     { src: "banana", con: { alma: 112, banana: 223 }, exp: 223 },
 66 |     { src: "alma", con: { alma: "abc", banana: 223 }, exp: "abc" },
 67 |     { src: "alma", con: { alma: true, banana: 223 }, exp: true },
 68 |     { src: "alma", con: { alma: false, banana: 223 }, exp: false },
 69 |     { src: "alma", con: { alma: 123.5, banana: 223 }, exp: 123.5 },
 70 |   ];
 71 |   identifierCases.forEach((c) => {
 72 |     it(`Eval identifier: ${c.src}/${JSON.stringify(c.con)}`, () => {
 73 |       // --- Arrange
 74 |       const wParser = new Parser(c.src);
 75 | 
 76 |       // --- Act/Assert
 77 |       const expr = wParser.parseExpr();
 78 |       expect(expr).not.equal(null);
 79 |       if (!expr) return;
 80 |       const context = createEvalContext({ localContext: c.con });
 81 |       const value = evalBinding(expr, context);
 82 |       expect(value).equal(c.exp);
 83 |     });
 84 |   });
 85 | 
 86 |   const memberAccessCases = [
 87 |     { src: "alma.b", con: { alma: { b: 123 } }, exp: 123 },
 88 |     { src: "alma.b.c", con: { alma: { b: { c: 123, d: 234 } } }, exp: 123 },
 89 |     { src: "alma.b.d", con: { alma: { b: { c: 123, d: 234 } } }, exp: 234 },
 90 |     { src: "alma.length", con: { alma: "banana" }, exp: 6 },
 91 |     {
 92 |       src: "alma.b.d.length",
 93 |       con: { alma: { b: { c: 123, d: "hello" } } },
 94 |       exp: 5,
 95 |     },
 96 |     { src: "Math.sin", con: { alma: "banana" }, exp: Math.sin },
 97 |   ];
 98 |   memberAccessCases.forEach((c) => {
 99 |     it(`Eval member access: ${c.src}/${JSON.stringify(c.con)}`, () => {
100 |       // --- Arrange
101 |       const wParser = new Parser(c.src);
102 | 
103 |       // --- Act/Assert
104 |       const expr = wParser.parseExpr();
105 |       expect(expr).not.equal(null);
106 |       if (!expr) return;
107 |       const context = createEvalContext({ localContext: c.con });
108 |       const value = evalBinding(expr, context);
109 |       expect(value).equal(c.exp);
110 |     });
111 |   });
112 | 
113 |   const calculatedMemberAccessCases = [
114 |     { src: 'alma["b"]', con: { alma: { b: 123 } }, exp: 123 },
115 |     {
116 |       src: 'alma["b"]["c"]',
117 |       con: { alma: { b: { c: 123, d: 234 } } },
118 |       exp: 123,
119 |     },
120 |     {
121 |       src: 'alma["b"]["d"]',
122 |       con: { alma: { b: { c: 123, d: 234 } } },
123 |       exp: 234,
124 |     },
125 |     { src: 'alma["length"]', con: { alma: "banana" }, exp: 6 },
126 |     { src: "alma[0]", con: { alma: [1, true, "banana"] }, exp: 1 },
127 |     { src: "alma[1]", con: { alma: [1, true, "banana"] }, exp: true },
128 |     { src: "alma[2]", con: { alma: [1, true, "banana"] }, exp: "banana" },
129 |   ];
130 |   calculatedMemberAccessCases.forEach((c) => {
131 |     it(`Eval member access: ${c.src}/${JSON.stringify(c.con)}`, () => {
132 |       // --- Arrange
133 |       const wParser = new Parser(c.src);
134 | 
135 |       // --- Act/Assert
136 |       const expr = wParser.parseExpr();
137 |       expect(expr).not.equal(null);
138 |       if (!expr) return;
139 |       const context = createEvalContext({ localContext: c.con });
140 |       const value = evalBinding(expr, context);
141 |       expect(value).equal(c.exp);
142 |     });
143 |   });
144 | 
145 |   const optionalMemberAccessCases = [
146 |     { src: "alma?.b", con: { alma: { b: 123 } }, exp: 123 },
147 |     { src: "alma?.b", con: { alma: { b: null } }, exp: null },
148 |     { src: "alma?.b", con: { pear: { b: 123 }, alma: undefined }, exp: undefined },
149 |     { src: "alma?.b?.c", con: { alma: { b: { c: 123, d: 234 } } }, exp: 123 },
150 |     { src: "alma?.b?.c", con: { alma: { b: { c: null, d: 234 } } }, exp: null },
151 |     {
152 |       src: "alma?.b?.c",
153 |       con: { pear: { b: { c: 123, d: 234 } }, alma: undefined },
154 |       exp: undefined,
155 |     },
156 |     {
157 |       src: "alma?.b?.c",
158 |       con: { alma: { b: { w: 123, d: 234 } } },
159 |       exp: undefined,
160 |     },
161 |     {
162 |       src: "alma?.b?.c",
163 |       con: { pear: { b: { w: 123, d: 234 } }, alma: undefined },
164 |       exp: undefined,
165 |     },
166 |   ];
167 |   optionalMemberAccessCases.forEach((c) => {
168 |     it(`Eval member access: ${c.src}/${JSON.stringify(c.con)}`, () => {
169 |       // --- Arrange
170 |       const wParser = new Parser(c.src);
171 | 
172 |       // --- Act/Assert
173 |       const expr = wParser.parseExpr();
174 |       expect(expr).not.equal(null);
175 |       if (!expr) return;
176 |       const context = createEvalContext({ localContext: c.con });
177 |       const value = evalBinding(expr, context);
178 |       expect(value).equal(c.exp);
179 |     });
180 |   });
181 | 
182 |   const defaultedMemberAccessCases = [
183 |     { src: "alma.b", con: { alma: { b: 123 } }, exp: 123 },
184 |     { src: "alma.b", con: { alma: { b: null } }, exp: null },
185 |     { src: "alma.b", con: { pear: { b: 123 }, alma: undefined }, exp: undefined },
186 |     { src: "alma.b.c", con: { alma: { b: { c: 123, d: 234 } } }, exp: 123 },
187 |     { src: "alma.b.c", con: { alma: { b: { c: null, d: 234 } } }, exp: null },
188 |     {
189 |       src: "alma.b.c",
190 |       con: { pear: { b: { c: 123, d: 234 } }, alma: undefined },
191 |       exp: undefined,
192 |     },
193 |     {
194 |       src: "alma.b.c",
195 |       con: { alma: { b: { w: 123, d: 234 } } },
196 |       exp: undefined,
197 |     },
198 |     {
199 |       src: "alma.b.c",
200 |       con: { pear: { b: { w: 123, d: 234 } }, alma: undefined },
201 |       exp: undefined,
202 |     },
203 |   ];
204 |   defaultedMemberAccessCases.forEach((c) => {
205 |     it(`Eval forced optional member access: ${c.src}/${JSON.stringify(c.con)}`, () => {
206 |       // --- Arrange
207 |       const wParser = new Parser(c.src);
208 | 
209 |       // --- Act/Assert
210 |       const expr = wParser.parseExpr();
211 |       expect(expr).not.equal(null);
212 |       if (!expr) return;
213 |       const context = createEvalContext({
214 |         localContext: c.con,
215 |         appContext: {},
216 |         options: { defaultToOptionalMemberAccess: true },
217 |       });
218 |       const value = evalBinding(expr, context);
219 |       expect(value).equal(c.exp);
220 |     });
221 |   });
222 | 
223 |   const sequenceCases = [
224 |     { src: "0, alma.b", con: { alma: { b: 123 } }, exp: 123 },
225 |     {
226 |       src: "1, a+b, alma.b.c",
227 |       con: { alma: { b: { c: 123, d: 234 } }, a: 0, b: 0 },
228 |       exp: 123,
229 |     },
230 |     {
231 |       src: "2, a+b, alma.b.d",
232 |       con: { alma: { b: { c: 123, d: 234 } }, a: 0, b: 0 },
233 |       exp: 234,
234 |     },
235 |     { src: "1, 2, 3, alma.length", con: { alma: "banana" }, exp: 6 },
236 |     {
237 |       src: "alma, alma, alma.b.d.length",
238 |       con: { alma: { b: { c: 123, d: "hello" } } },
239 |       exp: 5,
240 |     },
241 |   ];
242 |   sequenceCases.forEach((c) => {
243 |     it(`Eval calculated member access: ${c.src}/${JSON.stringify(c.con)}`, () => {
244 |       // --- Arrange
245 |       const wParser = new Parser(c.src);
246 | 
247 |       // --- Act/Assert
248 |       const expr = wParser.parseExpr();
249 |       expect(expr).not.equal(null);
250 |       if (!expr) return;
251 |       const context = createEvalContext({ localContext: c.con });
252 |       const value = evalBinding(expr, context);
253 |       expect(value).equal(c.exp);
254 |     });
255 |   });
256 | 
257 |   const arrayLiteralCases = [
258 |     {
259 |       src: "[ alma.a, alma.b]",
260 |       con: { alma: { a: 234, b: 123 } },
261 |       exp: [234, 123],
262 |     },
263 |     {
264 |       src: '[ "banana", alma.a, alma.b]',
265 |       con: { alma: { a: 234, b: 123 } },
266 |       exp: ["banana", 234, 123],
267 |     },
268 |     {
269 |       src: '[ "banana", alma.a, alma.b.c]',
270 |       con: { alma: { a: 234, b: { f: false, c: true } } },
271 |       exp: ["banana", 234, true],
272 |     },
273 |   ];
274 |   arrayLiteralCases.forEach((c) => {
275 |     it(`Array literal: ${c.src}/${JSON.stringify(c.con)}`, () => {
276 |       // --- Arrange
277 |       const wParser = new Parser(c.src);
278 | 
279 |       // --- Act/Assert
280 |       const expr = wParser.parseExpr();
281 |       expect(expr).not.equal(null);
282 |       if (!expr) return;
283 |       const context = createEvalContext({ localContext: c.con });
284 |       const value = evalBinding(expr, context);
285 |       expect(value.length).equal(c.exp.length);
286 |       for (let i = 0; i < value.length; i++) {
287 |         expect(value[i]).equal(c.exp[i]);
288 |       }
289 |     });
290 |   });
291 | 
292 |   const objectLiteralCases = [
293 |     {
294 |       src: "{ a: alma.a, b: alma.b }",
295 |       con: { alma: { a: 234, b: 123 } },
296 |       exp: { a: 234, b: 123 },
297 |     },
298 |     {
299 |       src: "{ a: true, b: alma.b }",
300 |       con: { alma: { a: 234, b: 123 } },
301 |       exp: { a: true, b: 123 },
302 |     },
303 |     {
304 |       src: '{ a: alma.a, b: "banana" }',
305 |       con: { alma: { a: 234, b: 123 } },
306 |       exp: { a: 234, b: "banana" },
307 |     },
308 |     {
309 |       src: '{ "q": alma.a, b: "banana" }',
310 |       con: { alma: { a: 234, b: 123 } },
311 |       exp: { q: 234, b: "banana" },
312 |     },
313 |     {
314 |       src: '{ 123: alma.a, b: "banana" }',
315 |       con: { alma: { a: 234, b: 123 } },
316 |       exp: { 123: 234, b: "banana" },
317 |     },
318 |     {
319 |       src: '{ [1+2]: alma.a, b: "banana" }',
320 |       con: { alma: { a: 234, b: 123 } },
321 |       exp: { 3: 234, b: "banana" },
322 |     },
323 |     {
324 |       src: '{ ["abc".length]: alma.a, b: "banana" }',
325 |       con: { alma: { a: 234, b: 123 } },
326 |       exp: { 3: 234, b: "banana" },
327 |     },
328 |     {
329 |       src: '{ ["app" + "le"]: alma.a, b: "banana" }',
330 |       con: { alma: { a: 234, b: 123 } },
331 |       exp: { apple: 234, b: "banana" },
332 |     },
333 |   ];
334 |   objectLiteralCases.forEach((c) => {
335 |     it(`Array literal: ${c.src}/${JSON.stringify(c.con)}`, () => {
336 |       // --- Arrange
337 |       const wParser = new Parser(c.src);
338 | 
339 |       // --- Act/Assert
340 |       const expr = wParser.parseExpr();
341 |       expect(expr).not.equal(null);
342 |       if (!expr) return;
343 |       const context = createEvalContext({ localContext: c.con });
344 |       const value = evalBinding(expr, context);
345 |       for (const key in c.exp) {
346 |         expect(value[key]).equal((c.exp as any)[key]);
347 |       }
348 |     });
349 |   });
350 | 
351 |   const unaryCases = [
352 |     { src: "+alma.b", con: { alma: { b: 123 } }, exp: 123 },
353 |     { src: "-alma.b", con: { alma: { b: 123 } }, exp: -123 },
354 |     { src: "!alma.b", con: { alma: { b: 0 } }, exp: true },
355 |     { src: "!alma.b", con: { alma: { b: 123 } }, exp: false },
356 |     { src: "~alma.b", con: { alma: { b: 123 } }, exp: -124 },
357 |     { src: "~alma.b", con: { alma: { b: 0 } }, exp: -1 },
358 |     { src: "typeof alma.b", con: { alma: { b: 0 } }, exp: "number" },
359 |     { src: "typeof alma.b", con: { alma: { b: "Hello" } }, exp: "string" },
360 |     { src: "typeof alma.b", con: { alma: { b: false } }, exp: "boolean" },
361 |     { src: "typeof alma.b", con: { alma: { b: null } }, exp: "object" },
362 |     { src: "typeof alma.b", con: { alma: {} }, exp: "undefined" },
363 |     { src: "typeof alma.b", con: { alma: { b: {} } }, exp: "object" },
364 |     { src: "typeof alma.b", con: { alma: { b: [1, 2, 3] } }, exp: "object" },
365 |   ];
366 |   unaryCases.forEach((c) => {
367 |     it(`Unary operation: ${c.src}/${JSON.stringify(c.con)}`, () => {
368 |       // --- Arrange
369 |       const wParser = new Parser(c.src);
370 | 
371 |       // --- Act/Assert
372 |       const expr = wParser.parseExpr();
373 |       expect(expr).not.equal(null);
374 |       if (!expr) return;
375 |       const context = createEvalContext({ localContext: c.con });
376 |       const value = evalBinding(expr, context);
377 |       expect(value).equal(c.exp);
378 |     });
379 |   });
380 | 
381 |   const binaryCases = [
382 |     { src: "alma.b * c", con: { alma: { b: 123 }, c: 3 }, exp: 369 },
383 |     { src: "alma.b / c", con: { alma: { b: 123 }, c: 3 }, exp: 41 },
384 |     { src: "alma.b % c", con: { alma: { b: 125 }, c: 3 }, exp: 2 },
385 |     { src: "alma.b + 3", con: { alma: { b: 123 } }, exp: 126 },
386 |     {
387 |       src: "123456789123456789 + 123456789123456789123",
388 |       con: {},
389 |       exp: BigInt("123580245912580245912"),
390 |     },
391 |     { src: '"👍" + "🚀"', con: {}, exp: "👍🚀" },
392 |     { src: '"Hello," + " World!"', con: {}, exp: "Hello, World!" },
393 |     { src: "alma.b - 3", con: { alma: { b: 123 } }, exp: 120 },
394 |     { src: "alma.b >> 2", con: { alma: { b: 123 } }, exp: 30 },
395 |     { src: "alma.b >> 2", con: { alma: { b: 123 } }, exp: 30 },
396 |     { src: "-alma.b >> 2", con: { alma: { b: 123 } }, exp: -31 },
397 |     { src: "alma.b >>> 2", con: { alma: { b: 123 } }, exp: 30 },
398 |     { src: "-alma.b >>> 2", con: { alma: { b: 123 } }, exp: 1073741793 },
399 |     { src: "alma.b < 3", con: { alma: { b: 123 } }, exp: false },
400 |     { src: "alma.b <= 123", con: { alma: { b: 123 } }, exp: true },
401 |     { src: "alma.b > 123", con: { alma: { b: 123 } }, exp: false },
402 |     { src: "alma.b >= 123", con: { alma: { b: 123 } }, exp: true },
403 |     { src: "alma.b >= 123", con: { alma: { b: 123 } }, exp: true },
404 |     { src: "2 in [12, 123, 1234]", con: { alma: { b: 123 } }, exp: true },
405 |     { src: '"PI" in Math', con: { alma: { b: 123 } }, exp: true },
406 |     { src: "alma.b == 3", con: { alma: { b: 123 } }, exp: false },
407 |     { src: "alma.b == 123", con: { alma: { b: 123 } }, exp: true },
408 |     { src: "alma.b === 123", con: { alma: { b: 123 } }, exp: true },
409 |     { src: "alma.b != 3", con: { alma: { b: 123 } }, exp: true },
410 |     { src: "alma.b != 123", con: { alma: { b: 123 } }, exp: false },
411 |     { src: "alma.b !== 123", con: { alma: { b: 123 } }, exp: false },
412 |     { src: "alma.b & 12", con: { alma: { b: 123 } }, exp: 8 },
413 |     { src: "alma.b | 12", con: { alma: { b: 123 } }, exp: 127 },
414 |     { src: "alma.b ^ 12", con: { alma: { b: 123 } }, exp: 119 },
415 |     { src: "alma.b && 12", con: { alma: { b: 123 } }, exp: 12 },
416 |     { src: "alma.b && 12 > 3", con: { alma: { b: 123 } }, exp: true },
417 |     { src: "alma.b || 12", con: { alma: { b: 123 } }, exp: 123 },
418 |     { src: "alma.b || 12 > 3", con: { alma: { b: 123 } }, exp: 123 },
419 |     { src: "alma.b < 3 || 12 > 3", con: { alma: { b: 123 } }, exp: true },
420 |     { src: "12 + 23 * 4", con: {}, exp: 104 },
421 |     { src: "(12 + 23) * 4", con: {}, exp: 140 },
422 |     { src: "12 * 23 + 4", con: {}, exp: 280 },
423 |     { src: "alma.b ?? 12", con: { alma: { b: null } }, exp: 12 },
424 |     { src: "alma.b ?? 12", con: { alma: { b: undefined } }, exp: 12 },
425 |     { src: "alma.b ?? 12", con: { alma: { b: 234 } }, exp: 234 },
426 |   ];
427 |   binaryCases.forEach((c) => {
428 |     it(`Binary operation: ${c.src}/${JSON.stringify(c.con)}`, () => {
429 |       const context = createEvalContext({ localContext: c.con });
430 |       const value = evalBindingExpression(c.src, context);
431 |       expect(value).equal(c.exp);
432 |     });
433 |   });
434 | 
435 |   const exponentialCases = [
436 |     {
437 |       src: "2**3",
438 |       exp: 8,
439 |     },
440 |     {
441 |       src: "2**3**2",
442 |       exp: 512,
443 |     },
444 |     {
445 |       src: "4**2**3",
446 |       exp: 65536,
447 |     },
448 |     {
449 |       src: "1.5**2",
450 |       exp: 2.25,
451 |     },
452 |     {
453 |       src: "1.5**2**3",
454 |       exp: 25.62890625,
455 |     },
456 |   ];
457 |   exponentialCases.forEach((c) => {
458 |     it(`Conditional: ${c.src}`, () => {
459 |       // --- Arrange
460 |       const wParser = new Parser(c.src);
461 | 
462 |       // --- Act/Assert
463 |       const expr = wParser.parseExpr();
464 |       expect(expr).not.equal(null);
465 |       if (!expr) return;
466 |       const context = createEvalContext({ localContext: {} });
467 |       const value = evalBinding(expr, context);
468 |       expect(value).equal(c.exp);
469 |     });
470 |   });
471 | 
472 |   const functionInvocationCases = [
473 |     {
474 |       src: "Math.sin(0)",
475 |       con: { alma: { a: 234, b: 123 } },
476 |       exp: 0,
477 |     },
478 |     {
479 |       src: "Math.cos(0.0)",
480 |       con: { alma: { a: 234, b: 123 } },
481 |       exp: 1,
482 |     },
483 |     {
484 |       src: "alma.mul(2, alma.mul(3,4)) + Math.cos(0)",
485 |       con: { alma: { mul: (a: any, b: any) => a * b, b: 123 } },
486 |       exp: 25,
487 |     },
488 |   ];
489 |   functionInvocationCases.forEach((c) => {
490 |     it(`Function call: ${c.src}/${JSON.stringify(c.con)}`, () => {
491 |       // --- Arrange
492 |       const wParser = new Parser(c.src);
493 | 
494 |       // --- Act/Assert
495 |       const expr = wParser.parseExpr();
496 |       expect(expr).not.equal(null);
497 |       if (!expr) return;
498 |       const context = createEvalContext({ localContext: c.con });
499 |       const value = evalBinding(expr, context);
500 |       expect(value).equal(c.exp);
501 |     });
502 |   });
503 | 
504 |   const itemReferenceCases = [
505 |     {
506 |       src: "$item",
507 |       con: { $item: 123 },
508 |       exp: 123,
509 |     },
510 |   ];
511 |   itemReferenceCases.forEach((c) => {
512 |     it(`Item reference: ${c.src}/${JSON.stringify(c.con)}`, () => {
513 |       // --- Arrange
514 |       const wParser = new Parser(c.src);
515 | 
516 |       // --- Act/Assert
517 |       const expr = wParser.parseExpr();
518 |       expect(expr).not.equal(null);
519 |       if (!expr) return;
520 |       const context = createEvalContext({ localContext: c.con });
521 |       const value = evalBinding(expr, context);
522 |       expect(value).equal(c.exp);
523 |     });
524 |   });
525 | 
526 |   const appContextCases = [
527 |     {
528 |       src: "alma.b",
529 |       con: { pear: 123 },
530 |       aCon: { alma: { b: 234 } },
531 |       exp: 234,
532 |     },
533 |     {
534 |       src: "alma.b",
535 |       con: { alma: { b: 123 } },
536 |       aCon: { alma: { b: 234 } },
537 |       exp: 123,
538 |     },
539 |   ];
540 |   appContextCases.forEach((c) => {
541 |     it(`App context: ${c.src}/${JSON.stringify(c.con)}`, () => {
542 |       // --- Arrange
543 |       const wParser = new Parser(c.src);
544 | 
545 |       // --- Act/Assert
546 |       const expr = wParser.parseExpr();
547 |       expect(expr).not.equal(null);
548 |       if (!expr) return;
549 |       const context = createEvalContext({ localContext: c.con, appContext: c.aCon });
550 |       const value = evalBinding(expr, context);
551 |       expect(value).equal(c.exp);
552 |     });
553 |   });
554 | 
555 |   it("Array literal with spread array", () => {
556 |     // --- Arrange
557 |     const wParser = new Parser("[5, ...[1,2,3], 4]");
558 | 
559 |     // --- Act/Assert
560 |     const expr = wParser.parseExpr();
561 |     expect(expr).not.equal(null);
562 |     if (!expr) return;
563 |     const context = createEvalContext({ localContext: {}, appContext: {} });
564 |     const value = evalBinding(expr, context);
565 |     expect(value.length).equal(5);
566 |     expect(value[0]).equal(5);
567 |     expect(value[1]).equal(1);
568 |     expect(value[2]).equal(2);
569 |     expect(value[3]).equal(3);
570 |     expect(value[4]).equal(4);
571 |   });
572 | 
573 |   it("Spread out of context", () => {
574 |     // --- Arrange
575 |     const wParser = new Parser("...[1,2,3]");
576 | 
577 |     // --- Act/Assert
578 |     const expr = wParser.parseExpr();
579 |     expect(expr).not.equal(null);
580 |     if (!expr) return;
581 |     try {
582 |       const context = createEvalContext({ localContext: {}, appContext: {} });
583 |       evalBinding(expr, context);
584 |     } catch (err: any) {
585 |       expect(err.message.indexOf("(...)")).greaterThan(-1);
586 |       return;
587 |     }
588 |     assert.fail("Exception expected");
589 |   });
590 | 
591 |   it("Array literal with spread object", () => {
592 |     // --- Arrange
593 |     const wParser = new Parser("[5, ...{a: 1, b: 2}]");
594 | 
595 |     // --- Act/Assert
596 |     const expr = wParser.parseExpr();
597 |     expect(expr).not.equal(null);
598 |     if (!expr) return;
599 |     try {
600 |       const context = createEvalContext({ localContext: {}, appContext: {} });
601 |       evalBinding(expr, context);
602 |     } catch (err: any) {
603 |       expect(err.message.indexOf("array operand")).greaterThan(-1);
604 |       return;
605 |     }
606 |     assert.fail("Exception expected");
607 |   });
608 | 
609 |   it("Object literal with spread array", () => {
610 |     // --- Arrange
611 |     const wParser = new Parser("{ a:1, ...[1,2,3], b:4}");
612 | 
613 |     // --- Act/Assert
614 |     const expr = wParser.parseExpr();
615 |     expect(expr).not.equal(null);
616 |     if (!expr) return;
617 |     const context = createEvalContext({ localContext: {}, appContext: {} });
618 |     const value = evalBinding(expr, context);
619 |     expect(value[0]).equal(1);
620 |     expect(value[1]).equal(2);
621 |     expect(value[2]).equal(3);
622 |     expect(value["a"]).equal(1);
623 |     expect(value["b"]).equal(4);
624 |   });
625 | 
626 |   it("Object literal with spread object", () => {
627 |     // --- Arrange
628 |     const wParser = new Parser("{ a:1, ...{ c:3, d:5}, b:4}");
629 | 
630 |     // --- Act/Assert
631 |     const expr = wParser.parseExpr();
632 |     expect(expr).not.equal(null);
633 |     if (!expr) return;
634 |     const context = createEvalContext({ localContext: {}, appContext: {} });
635 |     const value = evalBinding(expr, context);
636 |     expect(value["a"]).equal(1);
637 |     expect(value["b"]).equal(4);
638 |     expect(value["c"]).equal(3);
639 |     expect(value["d"]).equal(5);
640 |   });
641 | 
642 |   it("Function call with spread array", () => {
643 |     // --- Arrange
644 |     const wParser = new Parser("myFunc(1, 2, ...[3, 4], 5)");
645 | 
646 |     // --- Act/Assert
647 |     const expr = wParser.parseExpr();
648 |     expect(expr).not.equal(null);
649 |     if (!expr) return;
650 |     const context = createEvalContext({
651 |       localContext: {
652 |         myFunc(...args: any[]) {
653 |           return args.join(":");
654 |         },
655 |       },
656 |       appContext: {},
657 |     });
658 |     const value = evalBinding(expr, context);
659 |     expect(value).equal("1:2:3:4:5");
660 |   });
661 | 
662 |   it("Function call with spread object", () => {
663 |     // --- Arrange
664 |     const wParser = new Parser("myFunc(1, 2, ...{a: 1, b:2}, 5)");
665 | 
666 |     // --- Act/Assert
667 |     const expr = wParser.parseExpr();
668 |     expect(expr).not.equal(null);
669 |     if (!expr) return;
670 | 
671 |     try {
672 |       const context = createEvalContext({
673 |         localContext: {
674 |           myFunc(...args: any[]) {
675 |             return args.join(":");
676 |           },
677 |         },
678 |         appContext: {},
679 |       });
680 |       evalBinding(expr, context);
681 |     } catch (err: any) {
682 |       expect(err.message.indexOf("array operand")).greaterThan(-1);
683 |       return;
684 |     }
685 |     assert.fail("Exception expected");
686 |   });
687 | 
688 |   it("Sync function call with promise raises error", () => {
689 |     // --- Arrange
690 |     const wParser = new Parser("delay(120)");
691 | 
692 |     // --- Act/Assert
693 |     const expr = wParser.parseExpr();
694 |     expect(expr).not.equal(null);
695 |     if (!expr) return;
696 | 
697 |     try {
698 |       const context = createEvalContext({
699 |         localContext: {
700 |           delay: async (time: number) => new Promise((resolve) => setTimeout(resolve, time)),
701 |         },
702 |         appContext: {},
703 |       });
704 |       evalBinding(expr, context);
705 |     } catch (err: any) {
706 |       expect(err.message).contains("Promise");
707 |       return;
708 |     }
709 |     assert.fail("Exception expected");
710 |   });
711 | 
712 |   it("Async function call works", async () => {
713 |     // --- Arrange
714 |     const wParser = new Parser("delay(120)");
715 |     const expr = wParser.parseExpr();
716 |     expect(expr).not.equal(null);
717 |     if (!expr) return;
718 | 
719 |     // --- Act
720 |     const context = createEvalContext({
721 |       localContext: {
722 |         delay: async (time: number) => {
723 |           new Promise((resolve) => setTimeout(resolve, time));
724 |           return 123;
725 |         },
726 |       },
727 |       appContext: {},
728 |     });
729 |     const value = await evalBindingAsync(expr, context, undefined);
730 | 
731 |     // --- Assert
732 |     expect(value).equal(123);
733 |   });
734 | 
735 |   it("delete alma", () => {
736 |     // --- Arrange
737 |     const wParser = new Parser("delete alma");
738 | 
739 |     // --- Act/Assert
740 |     const expr = wParser.parseExpr();
741 |     expect(expr).not.equal(null);
742 |     if (!expr) return;
743 |     const context = createEvalContext({ localContext: { alma: {} } });
744 |     const value = evalBinding(expr, context);
745 |     expect(value).equal(true);
746 |     expect(context.localContext.alma).equal(undefined);
747 |   });
748 | 
749 |   it("delete alma.b #1", () => {
750 |     // --- Arrange
751 |     const wParser = new Parser("delete alma.b");
752 | 
753 |     // --- Act/Assert
754 |     const expr = wParser.parseExpr();
755 |     expect(expr).not.equal(null);
756 |     if (!expr) return;
757 |     const context = createEvalContext({ localContext: { alma: {} } });
758 |     const value = evalBinding(expr, context);
759 |     expect(value).equal(true);
760 |     expect(context.localContext.alma.b).equal(undefined);
761 |   });
762 | 
763 |   it("delete alma.b #2", () => {
764 |     // --- Arrange
765 |     const wParser = new Parser("delete alma.b");
766 | 
767 |     // --- Act/Assert
768 |     const expr = wParser.parseExpr();
769 |     expect(expr).not.equal(null);
770 |     if (!expr) return;
771 |     const context = createEvalContext({ localContext: { alma: { b: "hello" } } });
772 |     const value = evalBinding(expr, context);
773 |     expect(value).equal(true);
774 |     expect(context.localContext.alma.b).equal(undefined);
775 |   });
776 | 
777 |   it("delete 123", () => {
778 |     // --- Arrange
779 |     const wParser = new Parser("delete 123");
780 | 
781 |     // --- Act/Assert
782 |     const expr = wParser.parseExpr();
783 |     expect(expr).not.equal(null);
784 |     if (!expr) return;
785 |     const context = createEvalContext({});
786 |     const value = evalBinding(expr, context);
787 |     expect(value).equal(false);
788 |   });
789 | 
790 |   it("|| regression #1", () => {
791 |     // --- Arrange
792 |     const wParser = new Parser("123 || ++a");
793 | 
794 |     // --- Act/Assert
795 |     const expr = wParser.parseExpr();
796 |     expect(expr).not.equal(null);
797 |     if (!expr) return;
798 |     const context = createEvalContext({
799 |       localContext: { a: 0 },
800 |     });
801 |     const value = evalBinding(expr, context);
802 |     expect(value).equal(123);
803 |     expect(context.localContext.a).equal(0);
804 |   });
805 | 
806 |   it("|| regression #2", () => {
807 |     // --- Arrange
808 |     const wParser = new Parser("true || ++a");
809 | 
810 |     // --- Act/Assert
811 |     const expr = wParser.parseExpr();
812 |     expect(expr).not.equal(null);
813 |     if (!expr) return;
814 |     const context = createEvalContext({
815 |       localContext: { a: 0 },
816 |     });
817 |     const value = evalBinding(expr, context);
818 |     expect(value).equal(true);
819 |     expect(context.localContext.a).equal(0);
820 |   });
821 | 
822 |   it("|| regression #3 (async)", async () => {
823 |     // --- Arrange
824 |     const wParser = new Parser("123 || ++a");
825 | 
826 |     // --- Act/Assert
827 |     const expr = wParser.parseExpr();
828 |     expect(expr).not.equal(null);
829 |     if (!expr) return;
830 |     const context = createEvalContext({
831 |       localContext: { a: 0 },
832 |     });
833 |     const value = await evalBindingAsync(expr, context, context.mainThread);
834 |     expect(value).equal(123);
835 |     expect(context.localContext.a).equal(0);
836 |   });
837 | 
838 |   it("|| regression #4 (async)", async () => {
839 |     // --- Arrange
840 |     const wParser = new Parser("true || ++a");
841 | 
842 |     // --- Act/Assert
843 |     const expr = wParser.parseExpr();
844 |     expect(expr).not.equal(null);
845 |     if (!expr) return;
846 |     const context = createEvalContext({
847 |       localContext: { a: 0 },
848 |     });
849 |     const value = await evalBindingAsync(expr, context, context.mainThread);
850 |     expect(value).equal(true);
851 |     expect(context.localContext.a).equal(0);
852 |   });
853 | 
854 |   it("&& regression #1", () => {
855 |     // --- Arrange
856 |     const wParser = new Parser("'' && ++a");
857 | 
858 |     // --- Act/Assert
859 |     const expr = wParser.parseExpr();
860 |     expect(expr).not.equal(null);
861 |     if (!expr) return;
862 |     const context = createEvalContext({
863 |       localContext: { a: 0 },
864 |     });
865 |     const value = evalBinding(expr, context);
866 |     expect(value).equal("");
867 |     expect(context.localContext.a).equal(0);
868 |   });
869 | 
870 |   it("&& regression #2", () => {
871 |     // --- Arrange
872 |     const wParser = new Parser("false && ++a");
873 | 
874 |     // --- Act/Assert
875 |     const expr = wParser.parseExpr();
876 |     expect(expr).not.equal(null);
877 |     if (!expr) return;
878 |     const context = createEvalContext({
879 |       localContext: { a: 0 },
880 |     });
881 |     const value = evalBinding(expr, context);
882 |     expect(value).equal(false);
883 |     expect(context.localContext.a).equal(0);
884 |   });
885 | 
886 |   it("&& regression #3 (async)", async () => {
887 |     // --- Arrange
888 |     const wParser = new Parser("0 && ++a");
889 | 
890 |     // --- Act/Assert
891 |     const expr = wParser.parseExpr();
892 |     expect(expr).not.equal(null);
893 |     if (!expr) return;
894 |     const context = createEvalContext({
895 |       localContext: { a: 0 },
896 |     });
897 |     const value = await evalBindingAsync(expr, context, context.mainThread);
898 |     expect(value).equal(0);
899 |     expect(context.localContext.a).equal(0);
900 |   });
901 | 
902 |   it("&& regression #4 (async)", async () => {
903 |     // --- Arrange
904 |     const wParser = new Parser("false && ++a");
905 | 
906 |     // --- Act/Assert
907 |     const expr = wParser.parseExpr();
908 |     expect(expr).not.equal(null);
909 |     if (!expr) return;
910 |     const context = createEvalContext({
911 |       localContext: { a: 0 },
912 |     });
913 |     const value = await evalBindingAsync(expr, context, context.mainThread);
914 |     expect(value).equal(false);
915 |     expect(context.localContext.a).equal(0);
916 |   });
917 | 
918 |   it(`Evals template literals`, () => {
919 |     // --- Arrange
920 |     const wParser = new Parser("`\\u0058\\x59a${2+3}b${var1}d${undef}${NaN}${null}\\${1+2}`");
921 | 
922 |     // --- Act/Assert
923 |     const expr = wParser.parseExpr();
924 |     const context = createEvalContext({ localContext: { var1: "c", undef: undefined } });
925 |     const value = evalBinding(expr, context);
926 |     expect(value).to.equal("XYa5bcdundefinedNaNnull${1+2}");
927 |   });
928 | 
929 |   it(`Evals template literals (async)`, async () => {
930 |     // --- Arrange
931 |     const wParser = new Parser("`\\u0058\\x59a${2+3}b${var1}d${undef}${NaN}${null}\\${1+2}`");
932 | 
933 |     // --- Act/Assert
934 |     const expr = wParser.parseExpr();
935 |     const context = createEvalContext({ localContext: { var1: "c", undef: undefined } });
936 |     const value = await evalBindingAsync(expr, context, context.mainThread);
937 |     expect(value).to.equal("XYa5bcdundefinedNaNnull${1+2}");
938 |   });
939 | 
940 |   it(`template literal method call`, async () => {
941 |     // --- Arrange
942 |     const wParser = new Parser("`a  `.trim()");
943 | 
944 |     // --- Act/Assert
945 |     const expr = wParser.parseExpr();
946 |     const context = createEvalContext({
947 |       localContext: {},
948 |     });
949 |     const value = await evalBindingAsync(expr, context, context.mainThread);
950 |     expect(value).to.equal("a");
951 |   });
952 | });
953 | 
```

--------------------------------------------------------------------------------
/xmlui/src/components-core/script-runner/process-statement-sync.ts:
--------------------------------------------------------------------------------

```typescript
  1 | import type { LogicalThread } from "../../abstractions/scripting/LogicalThread";
  2 | import type { LoopScope } from "../../abstractions/scripting/LoopScope";
  3 | import type { BlockScope } from "../../abstractions/scripting/BlockScope";
  4 | import {
  5 |   T_ARROW_EXPRESSION_STATEMENT,
  6 |   T_ASSIGNMENT_EXPRESSION,
  7 |   T_BLOCK_STATEMENT,
  8 |   T_BREAK_STATEMENT,
  9 |   T_CONST_STATEMENT,
 10 |   T_CONTINUE_STATEMENT,
 11 |   T_DO_WHILE_STATEMENT,
 12 |   T_EMPTY_STATEMENT,
 13 |   T_EXPRESSION_STATEMENT,
 14 |   T_FOR_IN_STATEMENT,
 15 |   T_FOR_OF_STATEMENT,
 16 |   T_FOR_STATEMENT,
 17 |   T_FUNCTION_DECLARATION,
 18 |   T_IDENTIFIER,
 19 |   T_IF_STATEMENT,
 20 |   T_LET_STATEMENT,
 21 |   T_LITERAL,
 22 |   T_RETURN_STATEMENT,
 23 |   T_SWITCH_STATEMENT,
 24 |   T_THROW_STATEMENT,
 25 |   T_TRY_STATEMENT,
 26 |   T_VAR_STATEMENT,
 27 |   T_WHILE_STATEMENT,
 28 |   type ArrayDestructure,
 29 |   type AssignmentExpression,
 30 |   type Identifier,
 31 |   type Literal,
 32 |   type ObjectDestructure,
 33 |   type Statement,
 34 |   type VarDeclaration,
 35 | } from "./ScriptingSourceTree";
 36 | import { reportEngineError } from "../reportEngineError";
 37 | import { StatementExecutionError, ThrowStatementError } from "../EngineError";
 38 | import {
 39 |   innermostBlockScope,
 40 |   innermostLoopScope,
 41 |   createLoopScope,
 42 |   provideLoopBody,
 43 |   releaseLoopScope,
 44 |   ensureMainThread,
 45 |   innermostTryScope,
 46 |   provideTryBody,
 47 |   createTryScope,
 48 |   provideCatchBody,
 49 |   provideFinallyBody,
 50 |   provideFinallyErrorBody,
 51 |   hoistFunctionDeclarations,
 52 |   toStatementItems,
 53 |   closing,
 54 |   guard,
 55 | } from "./process-statement-common";
 56 | import type { BindingTreeEvaluationContext } from "./BindingTreeEvaluationContext";
 57 | import { evalBinding, executeArrowExpressionSync } from "./eval-tree-sync";
 58 | import type {
 59 |   StatementRunTimeInfo,
 60 |   StatementWithInfo,
 61 |   QueueInfo,
 62 |   StatementQueueItem,
 63 |   ProcessOutcome,
 64 | } from "./statement-queue";
 65 | import { StatementQueue, mapStatementsToQueueItems, mapToItem } from "./statement-queue";
 66 | import { createXmlUiTreeNodeId } from "../../parsers/scripting/Parser";
 67 | 
 68 | const SYNC_EVAL_TIMEOUT = 1000;
 69 | 
 70 | // --- Helper function to process the entire queue synchronously
 71 | export function processStatementQueue(
 72 |   statements: Statement[],
 73 |   evalContext: BindingTreeEvaluationContext,
 74 |   thread?: LogicalThread,
 75 | ): QueueInfo {
 76 |   if (!thread) {
 77 |     // --- Create the main thread for the queue
 78 |     thread = ensureMainThread(evalContext);
 79 |   }
 80 | 
 81 |   // --- Hoist function declarations to the top scope
 82 |   hoistFunctionDeclarations(thread, statements);
 83 | 
 84 |   // --- Set start tick to observe timeout
 85 |   evalContext.startTick = new Date().valueOf();
 86 | 
 87 |   // --- Fill the queue with items
 88 |   const queue = new StatementQueue();
 89 |   queue.push(mapStatementsToQueueItems(toStatementItems(statements)));
 90 | 
 91 |   // --- Prepare queue diagnostics information
 92 |   const diagInfo: QueueInfo = {
 93 |     processedStatements: 0,
 94 |     maxQueueLength: queue.length,
 95 |     unshiftedItems: 0,
 96 |     clearToLabels: 0,
 97 |     maxBlocks: 0,
 98 |     maxLoops: 0,
 99 |   };
100 | 
101 |   // --- Consume the queue
102 |   while (queue.length > 0) {
103 |     // --- Check sync timeout
104 |     if (
105 |       evalContext.startTick !== undefined &&
106 |       new Date().valueOf() - evalContext.startTick > SYNC_EVAL_TIMEOUT
107 |     ) {
108 |       throw new Error(`Sync evaluation timeout exceeded ${SYNC_EVAL_TIMEOUT} milliseconds`);
109 |     }
110 | 
111 |     // --- Process the first item
112 |     const queueItem = queue.dequeue();
113 |     thread.breakLabelValue = queue.length > 0 ? queue.peek()!.label : -1;
114 | 
115 |     let outcome: ProcessOutcome | undefined;
116 |     try {
117 |       // --- Sign that the statement is about to start
118 |       void evalContext?.onStatementStarted?.(evalContext, queueItem!.statement);
119 | 
120 |       // --- Execute the statement
121 |       outcome = processStatement(
122 |         queueItem!.statement,
123 |         queueItem!.execInfo ?? {},
124 |         evalContext,
125 |         thread,
126 |       );
127 |     } catch (err) {
128 |       if (thread.tryBlocks && thread.tryBlocks.length > 0) {
129 |         // --- We have a try block to handle this error
130 |         const tryScope = thread.tryBlocks[thread.tryBlocks.length - 1];
131 | 
132 |         // --- Sign the error to raise. Next time the guarded try block will execute the catch block, if there is any
133 |         tryScope.errorToThrow = err;
134 |         tryScope.errorSource = tryScope.processingPhase;
135 |         tryScope.processingPhase = "error";
136 | 
137 |         // --- Let's skip the remaining parts of the current block (try/catch/finally)
138 |         outcome = {
139 |           clearToLabel: tryScope.tryLabel,
140 |         };
141 |       } else {
142 |         if (err instanceof ThrowStatementError) {
143 |           reportEngineError(err);
144 |         } else {
145 |           // TODO: Provide source code information
146 |           reportEngineError(
147 |             new StatementExecutionError(err as any /* queueItem!.statement?.source */),
148 |             err,
149 |           );
150 |         }
151 |       }
152 |     }
153 | 
154 |     // --- Modify the queue's content according to the outcome
155 |     if (outcome) {
156 |       if (outcome.toUnshift) {
157 |         queue.unshift(outcome.toUnshift);
158 | 
159 |         diagInfo.unshiftedItems += outcome.toUnshift.length;
160 |       }
161 |       if (outcome.clearToLabel !== undefined) {
162 |         queue.clearToLabel(outcome.clearToLabel);
163 | 
164 |         diagInfo.clearToLabels++;
165 |       }
166 |     }
167 | 
168 |     // --- Sign that the statement has been completed
169 |     void evalContext?.onStatementCompleted?.(evalContext, queueItem!.statement);
170 | 
171 |     // --- Provide diagnostics
172 |     if (queue.length > diagInfo.maxQueueLength) {
173 |       diagInfo.maxQueueLength = queue.length;
174 |     }
175 |     if (thread.blocks && thread.blocks!.length > diagInfo.maxBlocks) {
176 |       diagInfo.maxBlocks = thread.blocks!.length;
177 |     }
178 |     if (thread.loops && thread.loops.length > diagInfo.maxLoops) {
179 |       diagInfo.maxLoops = thread.loops.length;
180 |     }
181 |     diagInfo.processedStatements++;
182 |   }
183 | 
184 |   // --- Done.
185 |   return diagInfo;
186 | }
187 | 
188 | /**
189 |  * Process the specified statement synchronously
190 |  * @param statement Statement to process
191 |  * @param evalContext Evaluation context used for processing
192 |  * @param thread Logical thread to use for statement processing
193 |  * @returns Items to put back into the queue of statements
194 |  */
195 | function processStatement(
196 |   statement: Statement,
197 |   execInfo: StatementRunTimeInfo,
198 |   evalContext: BindingTreeEvaluationContext,
199 |   thread: LogicalThread,
200 | ): ProcessOutcome {
201 |   // --- These items should be put in the statement queue after return
202 |   let toUnshift: StatementQueueItem[] = [];
203 |   let clearToLabel: number | undefined;
204 | 
205 |   // --- Process the statement according to its type
206 |   switch (statement.type) {
207 |     case T_FUNCTION_DECLARATION:
208 |       // --- Function declarations are already hoisted, nothing to do
209 |       break;
210 | 
211 |     case T_VAR_STATEMENT:
212 |       if (thread !== evalContext.mainThread) {
213 |         throw new Error("'var' declarations are not allowed within functions");
214 |       }
215 |       break;
216 | 
217 |     case T_EMPTY_STATEMENT:
218 |       // --- Nothing to do
219 |       break;
220 | 
221 |     case T_BLOCK_STATEMENT:
222 |       // --- No statement, nothing to process
223 |       if (statement.stmts.length === 0) break;
224 | 
225 |       // --- Create a new block scope
226 |       thread.blocks ??= [];
227 |       thread.blocks.push({ vars: {} });
228 | 
229 |       // --- Hoist function declarations to the innermost block scope
230 |       hoistFunctionDeclarations(thread, statement.stmts);
231 | 
232 |       // --- Queue the block scope's body...
233 |       toUnshift = mapStatementsToQueueItems([
234 |         ...toStatementItems(statement.stmts),
235 |         // --- ...and an empty statement to remove the block scope
236 |         closing(),
237 |       ]);
238 |       break;
239 | 
240 |     case T_EXPRESSION_STATEMENT:
241 |       // --- Just evaluate it
242 |       const statementValue = evalBinding(statement.expr, evalContext, thread);
243 |       if (thread.blocks && thread.blocks.length !== 0) {
244 |         thread.blocks[thread.blocks.length - 1].returnValue = statementValue;
245 |       }
246 |       break;
247 | 
248 |     case T_ARROW_EXPRESSION_STATEMENT:
249 |       // --- Compile the arrow expression
250 |       const arrowFuncValue = executeArrowExpressionSync(
251 |         statement.expr,
252 |         evalContext,
253 |         thread,
254 |         ...(evalContext.eventArgs ?? []),
255 |       );
256 |       if (thread.blocks && thread.blocks.length !== 0) {
257 |         thread.blocks[thread.blocks.length - 1].returnValue = arrowFuncValue;
258 |       }
259 |       break;
260 | 
261 |     case T_LET_STATEMENT: {
262 |       // --- Create a new variable in the innermost scope
263 |       const block = innermostBlockScope(thread);
264 |       if (!block) {
265 |         throw new Error("Missing block scope");
266 |       }
267 |       processDeclarations(block, evalContext, thread, statement.decls);
268 |       break;
269 |     }
270 | 
271 |     case T_CONST_STATEMENT: {
272 |       // --- Create a new variable in the innermost scope
273 |       const block = innermostBlockScope(thread);
274 |       if (!block) {
275 |         throw new Error("Missing block scope");
276 |       }
277 |       processDeclarations(block, evalContext, thread, statement.decls, true);
278 |       break;
279 |     }
280 | 
281 |     case T_IF_STATEMENT:
282 |       // --- Evaluate the condition
283 |       const condition = !!evalBinding(statement.cond, evalContext, thread);
284 |       if (condition) {
285 |         toUnshift = mapToItem(statement.thenB);
286 |       } else if (statement.elseB) {
287 |         toUnshift = mapToItem(statement.elseB);
288 |       }
289 |       break;
290 | 
291 |     case T_RETURN_STATEMENT: {
292 |       // --- Check if return is valid here
293 |       let blockScope = innermostBlockScope(thread);
294 |       if (blockScope === undefined) {
295 |         throw new Error("Return requires a block scope");
296 |       }
297 | 
298 |       // --- Store the return value
299 |       thread.returnValue = statement.expr
300 |         ? evalBinding(statement.expr, evalContext, thread)
301 |         : undefined;
302 | 
303 |       // --- Check for try blocks
304 |       if ((thread.tryBlocks ?? []).length > 0) {
305 |         // --- Mark the loop's try scope to exit with "return"
306 |         const returnTryScope = thread.tryBlocks![0];
307 |         returnTryScope.exitType = "return";
308 | 
309 |         // --- Remove the try/catch/finally block's scope
310 |         if (returnTryScope.processingPhase !== "postFinally") {
311 |           thread.blocks!.pop();
312 |         }
313 | 
314 |         // --- Clear the last part of the try/catch/finally block
315 |         const tryScope = innermostTryScope(thread);
316 |         clearToLabel = tryScope.tryLabel;
317 |       } else {
318 |         // --- Delete the remaining part of the queue
319 |         clearToLabel = -1;
320 |       }
321 |       break;
322 |     }
323 | 
324 |     case T_WHILE_STATEMENT: {
325 |       // --- Create or get the loop's scope (guard is falsy for the first execution)
326 |       let loopScope = execInfo.guard ? innermostLoopScope(thread) : createLoopScope(thread);
327 | 
328 |       // --- Evaluate the loop condition
329 |       const condition = !!evalBinding(statement.cond, evalContext, thread);
330 |       if (condition) {
331 |         toUnshift = provideLoopBody(loopScope!, statement, thread.breakLabelValue);
332 |       } else {
333 |         // --- When the condition is not met, we're done.
334 |         releaseLoopScope(thread);
335 |       }
336 |       break;
337 |     }
338 | 
339 |     case T_DO_WHILE_STATEMENT: {
340 |       if (!execInfo.guard) {
341 |         // --- First loop execution (do-while is a post-test loop)
342 |         toUnshift = provideLoopBody(createLoopScope(thread), statement, thread.breakLabelValue);
343 |         break;
344 |       }
345 | 
346 |       // --- Evaluate the loop condition
347 |       const condition = !!evalBinding(statement.cond, evalContext, thread);
348 |       if (condition) {
349 |         toUnshift = provideLoopBody(innermostLoopScope(thread), statement, thread.breakLabelValue);
350 |       } else {
351 |         // --- When the condition is not met, we're done.
352 |         releaseLoopScope(thread);
353 |       }
354 |       break;
355 |     }
356 | 
357 |     case T_CONTINUE_STATEMENT: {
358 |       // --- Search for the innermost non-switch loop scope, release the switch scopes
359 |       if (!thread.loops || thread.loops.length === 0) {
360 |         throw new Error("Missing loop scope");
361 |       }
362 | 
363 |       let loopScope: LoopScope | undefined;
364 |       while (thread.loops.length > 0) {
365 |         loopScope = innermostLoopScope(thread);
366 |         if (!loopScope.isSwitch) {
367 |           break;
368 |         }
369 |         thread.loops.pop();
370 |       }
371 | 
372 |       if (!loopScope) {
373 |         throw new Error("Missing loop scope");
374 |       }
375 | 
376 |       if (
377 |         loopScope.tryBlockDepth >= 0 &&
378 |         loopScope.tryBlockDepth < (thread.tryBlocks ?? []).length
379 |       ) {
380 |         // --- Mark the loop's try scope to exit with "continue"
381 |         for (let i = loopScope.tryBlockDepth; i < thread.tryBlocks!.length; i++) {
382 |           thread.tryBlocks![loopScope.tryBlockDepth]!.exitType = "continue";
383 |         }
384 | 
385 |         // --- Clear the last part of the try/catch/finally block
386 |         const tryScope = innermostTryScope(thread);
387 |         clearToLabel = tryScope.tryLabel;
388 |       } else {
389 |         clearToLabel = loopScope.continueLabel;
390 |         releaseLoopScope(thread, false);
391 |       }
392 |       break;
393 |     }
394 | 
395 |     case T_BREAK_STATEMENT: {
396 |       const loopScope = innermostLoopScope(thread);
397 |       if (loopScope === undefined) {
398 |         throw new Error("Missing loop scope");
399 |       }
400 | 
401 |       if (!!loopScope.isSwitch) {
402 |         // --- Break is in a switch case
403 |         clearToLabel = loopScope.breakLabel;
404 |         break;
405 |       }
406 | 
407 |       // --- Break is in a loop construct
408 |       if (
409 |         loopScope.tryBlockDepth >= 0 &&
410 |         loopScope.tryBlockDepth < (thread.tryBlocks ?? []).length
411 |       ) {
412 |         // --- Mark the loop's try scope to exit with "break"
413 |         for (let i = loopScope.tryBlockDepth; i < thread.tryBlocks!.length; i++) {
414 |           thread.tryBlocks![loopScope.tryBlockDepth]!.exitType = "break";
415 |         }
416 | 
417 |         // --- Clear the last part of the try/catch/finally block
418 |         const tryScope = innermostTryScope(thread);
419 |         clearToLabel = tryScope.tryLabel;
420 |       } else {
421 |         clearToLabel = loopScope.breakLabel;
422 |         releaseLoopScope(thread);
423 |       }
424 |       break;
425 |     }
426 | 
427 |     case T_FOR_STATEMENT:
428 |       if (!execInfo.guard) {
429 |         // --- Init the loop with a new scope
430 |         createLoopScope(thread, 1);
431 | 
432 |         // --- Create a new block for the loop variables
433 |         thread.blocks ??= [];
434 |         thread.blocks.push({ vars: {} });
435 | 
436 |         const guardStatement = guard(statement);
437 |         if (statement.init) {
438 |           // --- Unshift the initialization part and the guarded for-loop
439 |           toUnshift = mapStatementsToQueueItems([{ statement: statement.init }, guardStatement]);
440 |         } else {
441 |           // --- No init, unshift only the guard statement
442 |           toUnshift = mapStatementsToQueueItems([guardStatement]);
443 |         }
444 |       } else {
445 |         // --- Initialization already done. Evaluate the condition
446 |         if (!statement.cond || evalBinding(statement.cond, evalContext, thread)) {
447 |           // --- Stay in the loop, inject the body, the update expression, and the loop guard
448 |           const loopScope = innermostLoopScope(thread);
449 | 
450 |           if (statement.upd) {
451 |             const updateStmt: StatementWithInfo = {
452 |               statement: {
453 |                 type: T_EXPRESSION_STATEMENT,
454 |                 nodeId: createXmlUiTreeNodeId(),
455 |                 expr: statement.upd,
456 |               },
457 |             };
458 |             toUnshift = mapStatementsToQueueItems([
459 |               { statement: statement.body },
460 |               updateStmt,
461 |               { statement, execInfo },
462 |             ]);
463 |           } else {
464 |             toUnshift = mapStatementsToQueueItems([
465 |               { statement: statement.body },
466 |               { statement, execInfo },
467 |             ]);
468 |           }
469 |           // --- The next queue label is for "break"
470 |           loopScope.breakLabel = thread.breakLabelValue ?? -1;
471 | 
472 |           // --- The guard action's label is for "continue"
473 |           loopScope.continueLabel = toUnshift[1].label;
474 |         } else {
475 |           // --- The condition is not met, we're done. Remove the loop's scope from the evaluation context
476 |           releaseLoopScope(thread);
477 |         }
478 |       }
479 |       break;
480 | 
481 |     case T_FOR_IN_STATEMENT:
482 |       if (!execInfo.guard) {
483 |         // --- Get the object keys
484 |         const keyedObject = evalBinding(statement.expr, evalContext, thread);
485 |         if (keyedObject == undefined) {
486 |           // --- Nothing to do, no object to traverse
487 |           break;
488 |         }
489 | 
490 |         // --- Init the loop with a new scope
491 |         createLoopScope(thread, 1);
492 | 
493 |         // --- Create a new block for the loop variables
494 |         thread.blocks ??= [];
495 |         thread.blocks.push({ vars: {} });
496 | 
497 |         toUnshift = mapStatementsToQueueItems([
498 |           { statement, execInfo: { guard: true, keys: Object.keys(keyedObject), keyIndex: 0 } },
499 |         ]);
500 |       } else {
501 |         // --- Just for the sake of extra safety
502 |         if (execInfo.keyIndex === undefined || execInfo.keys === undefined) {
503 |           throw new Error("Keys information expected in for..in loop");
504 |         }
505 | 
506 |         // --- Any key left?
507 |         if (execInfo.keyIndex < execInfo.keys.length) {
508 |           // --- Set the binding variable to the next key
509 |           const propValue = execInfo.keys[execInfo.keyIndex++];
510 |           switch (statement.varB) {
511 |             case "none": {
512 |               const assigmentExpr: AssignmentExpression = {
513 |                 type: T_ASSIGNMENT_EXPRESSION,
514 |                 leftValue: {
515 |                   type: T_IDENTIFIER,
516 |                   name: statement.id.name,
517 |                 } as Identifier,
518 |                 op: "=",
519 |                 expr: {
520 |                   type: T_LITERAL,
521 |                   value: propValue,
522 |                 } as Literal,
523 |               } as AssignmentExpression;
524 |               evalBinding(assigmentExpr, evalContext, thread);
525 |               break;
526 |             }
527 | 
528 |             case "const":
529 |             case "let":
530 |               {
531 |                 // --- Create a new variable in the innermost scope
532 |                 const block = innermostBlockScope(thread);
533 |                 if (!block) {
534 |                   throw new Error("Missing block scope");
535 |                 }
536 |                 block.vars[statement.id.name] = propValue;
537 |                 if (statement.varB === "const") {
538 |                   block.constVars ??= new Set<string>();
539 |                   block.constVars.add(statement.id.name);
540 |                 }
541 |               }
542 |               break;
543 |           }
544 | 
545 |           // --- Inject the loop body
546 |           const loopScope = innermostLoopScope(thread);
547 |           toUnshift = mapStatementsToQueueItems([
548 |             { statement: statement.body },
549 |             { statement, execInfo },
550 |           ]);
551 | 
552 |           // --- The next queue label is for "break"
553 |           loopScope.breakLabel = thread.breakLabelValue ?? -1;
554 | 
555 |           // --- The guard action's label is for "continue"
556 |           loopScope.continueLabel = toUnshift[1].label;
557 |         } else {
558 |           // --- The for..in loop is complete. Remove the loop's scope from the evaluation context
559 |           releaseLoopScope(thread);
560 |         }
561 |       }
562 |       break;
563 | 
564 |     case T_FOR_OF_STATEMENT:
565 |       if (!execInfo.guard) {
566 |         // --- Get the object keys
567 |         const iteratorObject = evalBinding(statement.expr, evalContext, thread);
568 |         if (iteratorObject == null || typeof iteratorObject[Symbol.iterator] !== "function") {
569 |           // --- The object is not an iterator
570 |           throw new Error("Object in for..of is not iterable");
571 |         }
572 | 
573 |         // --- Init the loop with a new scope
574 |         createLoopScope(thread, 1);
575 | 
576 |         // --- Create a new block for the loop variables
577 |         thread.blocks ??= [];
578 |         thread.blocks.push({ vars: {} });
579 | 
580 |         toUnshift = mapStatementsToQueueItems([
581 |           { statement, execInfo: { guard: true, iterator: iteratorObject[Symbol.iterator]() } },
582 |         ]);
583 |       } else {
584 |         // --- Just for the sake of extra safety
585 |         if (execInfo.iterator === undefined) {
586 |           throw new Error("Iterator expected in for..of loop");
587 |         }
588 | 
589 |         // --- Any iteration left?
590 |         const nextIteration = execInfo.iterator.next();
591 |         if (nextIteration.done) {
592 |           // --- The for..of loop is complete. Remove the loop's scope from the evaluation context
593 |           releaseLoopScope(thread);
594 |           break;
595 |         }
596 | 
597 |         // --- Set the binding variable to the next key
598 |         const propValue = nextIteration.value;
599 |         switch (statement.varB) {
600 |           case "none": {
601 |             const assigmentExpr: AssignmentExpression = {
602 |               type: T_ASSIGNMENT_EXPRESSION,
603 |               leftValue: {
604 |                 type: T_IDENTIFIER,
605 |                 name: statement.id.name,
606 |               } as Identifier,
607 |               op: "=",
608 |               expr: {
609 |                 type: T_LITERAL,
610 |                 value: propValue,
611 |               } as Literal,
612 |             } as AssignmentExpression;
613 |             evalBinding(assigmentExpr, evalContext, thread);
614 |             break;
615 |           }
616 | 
617 |           case "const":
618 |           case "let":
619 |             {
620 |               // --- Create a new variable in the innermost scope
621 |               const block = innermostBlockScope(thread);
622 |               if (!block) {
623 |                 throw new Error("Missing block scope");
624 |               }
625 |               block.vars[statement.id.name] = propValue;
626 |               if (statement.varB === "const") {
627 |                 block.constVars ??= new Set<string>();
628 |                 block.constVars.add(statement.id.name);
629 |               }
630 |             }
631 |             break;
632 |         }
633 | 
634 |         // --- Inject the loop body
635 |         const loopScope = innermostLoopScope(thread);
636 |         toUnshift = mapStatementsToQueueItems([
637 |           { statement: statement.body },
638 |           { statement, execInfo },
639 |         ]);
640 | 
641 |         // --- The next queue label is for "break"
642 |         loopScope.breakLabel = thread.breakLabelValue ?? -1;
643 | 
644 |         // --- The guard action's label is for "continue"
645 |         loopScope.continueLabel = toUnshift[1].label;
646 |       }
647 |       break;
648 | 
649 |     case T_THROW_STATEMENT: {
650 |       throw new ThrowStatementError(evalBinding(statement.expr, evalContext, thread));
651 |     }
652 | 
653 |     case T_TRY_STATEMENT: {
654 |       if (!execInfo.guard) {
655 |         // --- Execute the try block
656 |         toUnshift = provideTryBody(thread, createTryScope(thread, statement));
657 |         break;
658 |       }
659 | 
660 |       // --- Evaluate try
661 |       const tryScope = innermostTryScope(thread);
662 |       switch (tryScope.processingPhase) {
663 |         case "error":
664 |           // --- There was an error we may handle with catch
665 |           switch (tryScope.errorSource) {
666 |             case "try":
667 |               // --- Remove the "try" block's scope
668 |               thread.blocks!.pop();
669 | 
670 |               // --- Go on with catch or finally
671 |               if (statement.catchB) {
672 |                 if (tryScope.statement.catchV) {
673 |                   const block = innermostBlockScope(thread)!;
674 |                   block.vars[tryScope.statement.catchV.name] =
675 |                     tryScope.errorToThrow instanceof ThrowStatementError
676 |                       ? tryScope.errorToThrow.errorObject
677 |                       : tryScope.errorToThrow;
678 |                 }
679 |                 delete tryScope.errorToThrow;
680 |                 tryScope.processingPhase = "catch";
681 |                 toUnshift = provideCatchBody(thread, tryScope);
682 |               } else if (tryScope.statement.finallyB) {
683 |                 // --- No catch, move on finally
684 |                 tryScope.processingPhase = "finally";
685 |                 toUnshift = provideFinallyBody(thread, tryScope);
686 |               }
687 |               break;
688 |             case "catch":
689 |               // --- Remove the "catch" block's scope
690 |               thread.blocks!.pop();
691 | 
692 |               // --- Move to the finally block
693 |               tryScope.processingPhase = "finally";
694 |               toUnshift = provideFinallyBody(thread, tryScope);
695 |               break;
696 |             case "finally":
697 |               // --- Remove the "finally" block's scope
698 |               thread.blocks!.pop();
699 | 
700 |               // --- Move to the post finally execution
701 |               tryScope.processingPhase = "postFinally";
702 |               toUnshift = provideFinallyErrorBody(tryScope);
703 |               break;
704 |           }
705 |           break;
706 |         case "try":
707 |           // --- We completed the try block successfully
708 |           tryScope.processingPhase = "finally";
709 |           if (statement.finallyB) {
710 |             toUnshift = provideFinallyBody(thread, tryScope);
711 |           }
712 |           break;
713 |         case "catch":
714 |           // --- We completed the catch block successfully, remove the handled error
715 |           tryScope.processingPhase = "finally";
716 |           if (statement.finallyB) {
717 |             toUnshift = provideFinallyBody(thread, tryScope);
718 |           }
719 |           break;
720 |         case "finally":
721 |           tryScope.processingPhase = "postFinally";
722 |           toUnshift = provideFinallyErrorBody(tryScope);
723 |           break;
724 | 
725 |         case "postFinally":
726 |           // --- We completed the finally block successfully
727 |           const innermostTry = thread.tryBlocks!.pop()!;
728 | 
729 |           // --- Is there any special exit type?
730 |           switch (innermostTry.exitType) {
731 |             case "break": {
732 |               const loopScope = innermostLoopScope(thread);
733 |               if (loopScope === undefined) {
734 |                 throw new Error("Missing loop scope");
735 |               }
736 |               releaseLoopScope(thread);
737 |               clearToLabel = loopScope.breakLabel;
738 |               break;
739 |             }
740 |             case "continue": {
741 |               const loopScope = innermostLoopScope(thread);
742 |               if (loopScope === undefined) {
743 |                 throw new Error("Missing loop scope");
744 |               }
745 | 
746 |               clearToLabel = loopScope.continueLabel;
747 |               releaseLoopScope(thread, false);
748 |               break;
749 |             }
750 |             case "return":
751 |               clearToLabel = -1;
752 |               break;
753 |           }
754 | 
755 |           // --- Should we raise an error?
756 |           if (innermostTry.errorToThrow) {
757 |             throw innermostTry.errorToThrow;
758 |           }
759 |           break;
760 |       }
761 |       break;
762 |     }
763 | 
764 |     case T_SWITCH_STATEMENT: {
765 |       // --- Create or get the loop's scope (guard is falsy for the first execution)
766 |       if (execInfo.guard) {
767 |         // --- Complete the switch
768 |         releaseLoopScope(thread);
769 |       } else {
770 |         let loopScope = createLoopScope(thread);
771 |         loopScope.isSwitch = true;
772 |         thread.blocks!.push({ vars: {} });
773 | 
774 |         // --- Evaluate the switch value
775 |         const switchValue = evalBinding(statement.expr, evalContext, thread);
776 | 
777 |         // --- Find the matching label
778 |         let matchingIndex = -1;
779 |         for (let i = 0; i < statement.cases.length; i++) {
780 |           const currentCase = statement.cases[i];
781 | 
782 |           // --- Check for default case
783 |           if (currentCase.caseE === undefined) {
784 |             matchingIndex = i;
785 |             break;
786 |           }
787 | 
788 |           // --- Check for matching case
789 |           const caseValue = evalBinding(currentCase.caseE, evalContext, thread);
790 |           if (caseValue === switchValue) {
791 |             matchingIndex = i;
792 |             break;
793 |           }
794 |         }
795 | 
796 |         // --- Merge all statements from the matching label
797 |         const statementFlow: Statement[] = [];
798 |         if (matchingIndex >= 0) {
799 |           for (let i = matchingIndex; i < statement.cases.length; i++) {
800 |             statementFlow.push(...statement.cases[i].stmts!);
801 |           }
802 |         }
803 | 
804 |         // --- Queue the statement flow and the guard
805 |         toUnshift = mapStatementsToQueueItems([
806 |           ...toStatementItems(statementFlow),
807 |           guard(statement),
808 |         ]);
809 |         loopScope.breakLabel = toUnshift[toUnshift.length - 1].label;
810 |       }
811 |       break;
812 |     }
813 |   }
814 | 
815 |   // --- The statement may remove the innermost scope
816 |   if (execInfo.removeBlockScope) {
817 |     if (thread.blocks && thread.blocks.length > 0) {
818 |       thread.blocks.pop();
819 |     }
820 |   }
821 | 
822 |   // --- Done.
823 |   return { toUnshift, clearToLabel };
824 | }
825 | 
826 | // --- Process a variable declaration
827 | export function processDeclarations(
828 |   block: BlockScope,
829 |   evalContext: BindingTreeEvaluationContext,
830 |   thread: LogicalThread,
831 |   declarations: VarDeclaration[],
832 |   addConst = false,
833 |   useValue = false,
834 |   baseValue = undefined,
835 | ): void {
836 |   for (let i = 0; i < declarations.length; i++) {
837 |     let value: any;
838 |     const decl = declarations[i];
839 |     if (useValue) {
840 |       value = baseValue;
841 |     } else if (decl.expr) {
842 |       //TODO illesg here, functionInvocation for global function (e.g. window.confirm... )
843 |       value = evalBinding(decl.expr, evalContext, thread);
844 |     }
845 |     visitDeclaration(block, decl, value, addConst);
846 |   }
847 | 
848 |   // --- Visit a variable
849 |   function visitDeclaration(
850 |     block: BlockScope,
851 |     decl: VarDeclaration,
852 |     baseValue: any,
853 |     addConst: boolean,
854 |   ): void {
855 |     // --- Process each declaration
856 |     if (decl.id) {
857 |       visitIdDeclaration(block, decl.id, baseValue, addConst);
858 |     } else if (decl.aDestr) {
859 |       visitArrayDestruct(block, decl.aDestr, baseValue, addConst);
860 |     } else if (decl.oDestr) {
861 |       visitObjectDestruct(block, decl.oDestr, baseValue, addConst);
862 |     } else {
863 |       throw new Error("Unknown declaration specifier");
864 |     }
865 |   }
866 | 
867 |   // --- Visits a single ID declaration
868 |   function visitIdDeclaration(
869 |     block: BlockScope,
870 |     id: string,
871 |     baseValue: any,
872 |     addConst: boolean,
873 |   ): void {
874 |     if (block.vars[id]) {
875 |       throw new Error(`Variable ${id} is already declared in the current scope.`);
876 |     }
877 |     block.vars[id] = baseValue;
878 |     if (addConst) {
879 |       block.constVars ??= new Set<string>();
880 |       block.constVars.add(id);
881 |     }
882 |   }
883 | 
884 |   // --- Visits an array destructure declaration
885 |   function visitArrayDestruct(
886 |     block: BlockScope,
887 |     arrayD: ArrayDestructure[],
888 |     baseValue: any,
889 |     addConst: boolean,
890 |   ): void {
891 |     for (let i = 0; i < arrayD.length; i++) {
892 |       const arrDecl = arrayD[i];
893 |       const value = baseValue?.[i];
894 |       if (arrDecl.id) {
895 |         visitIdDeclaration(block, arrDecl.id, value, addConst);
896 |       } else if (arrDecl.aDestr) {
897 |         visitArrayDestruct(block, arrDecl.aDestr, value, addConst);
898 |       } else if (arrDecl.oDestr) {
899 |         visitObjectDestruct(block, arrDecl.oDestr, value, addConst);
900 |       }
901 |     }
902 |   }
903 | 
904 |   // --- Visits an object destructure declaration
905 |   function visitObjectDestruct(
906 |     block: BlockScope,
907 |     objectD: ObjectDestructure[],
908 |     baseValue: any,
909 |     addConst: boolean,
910 |   ): void {
911 |     for (let i = 0; i < objectD.length; i++) {
912 |       const objDecl = objectD[i];
913 |       const value = baseValue?.[objDecl.id!];
914 |       if (objDecl.aDestr) {
915 |         visitArrayDestruct(block, objDecl.aDestr, value, addConst);
916 |       } else if (objDecl.oDestr) {
917 |         visitObjectDestruct(block, objDecl.oDestr, value, addConst);
918 |       } else {
919 |         visitIdDeclaration(block, objDecl.alias ?? objDecl.id!, value, addConst);
920 |       }
921 |     }
922 |   }
923 | }
924 | 
```
Page 113/186FirstPrevNextLast